DSPRelated.com
Forums
Online · Live + on demand
February 9-11, 2027
Price goes up Jan 1: register now to lock in today's rate
Register Now →

Source separation problem.

Started by Alex ●August 4, 2009
On Aug 5, 4:56&#4294967295;am, Jerry Avins <j...@ieee.org> wrote:
> Alex wrote: > > &#4294967295; &#4294967295;... > > > What kind of signal are these? Here is some extra information: > > > All my signals are a 40kHz. > > X, Y, X2 and Y2 have values that can go from -inf to +inf. > > Ah! I see the problem! How are these limits represented in your data? > Can you distinguish between inf and inf/2? > > Get real. > > &#4294967295; &#4294967295;... > > Jerry > -- > Engineering is the art of making what you want from things you can get. > &#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;
Come on - you don't understand inf/2? Did you even go to school? Do you even understand inf-1? inf/2 is like forever but half as much! Hardy

HardySpicer wrote:

> On Aug 5, 4:56 am, Jerry Avins <j...@ieee.org> wrote: >
>>Ah! I see the problem! How are these limits represented in your data? >>Can you distinguish between inf and inf/2? >>Get real.
> Come on - you don't understand inf/2? Did you even go to school? Do > you even understand inf-1? > inf/2 is like forever but half as much!
Here is one for you, smart boy: Can you distinguish delta_function(x) and (delta_function(x))^N ? VLV
On 2009-08-05 20:25:56 +0200, Jerry Avins <jya@ieee.org> said:

> Rune Allnor wrote: >> On 5 Aug, 16:23, Alex wrote: >> >>> I'm a PhD in Computer Graphics, but just a beginner in DSP, so please >>> tell me what else you will need to know and I'll do my best to be >>> specific considering that I cannot talk a lot about the device I'm >>> using. :-/ >> >> Then talk with your boss. If you can't say more >> than this, there nothing anybody outside your >> project can help you with. > > There's a lot that hasn't made sense here. > > Since this is about *D*SP, the signals are sampled and digitized. For > our purposes, they don't exist between samples. > > The sources are combined in the sampling. There is no need to separate > them otherwise. You wrote "SquareRoot(x13 * x13 + y13 * y13) = 1". It > follows that (x13 * x13 + y13 * y13) = 1. (1^2 = 1) Since each > collected sample is the sum of x[n] and y[n], are all samples uniformly > unity? > > That is what you wrote, but you also wrote that x and y have different > dominant frequencies, so it seems unlikely. I conclude once again that > you write one thing and intend another. > > Jerry
Ok... let me start again because I have the impresion I've not been really clear, and as I said I'm just starting with DSP so please ask whatever else you need to know. I have a device which give me 2 signals, X and Y sampled at a frequence of 40kHz and the samples are synchronized in between X and Y, so that if we take one sample x[n] and y[n] we know they have been acquired at the same time. The signals have an amplitude of 10 and they are independent. Each one of these signals is an addition of two others. So: X = X1 + X2 and Y = Y1 + Y2 of course X1, Y1, X2 and Y2 are unknown, but I know the following 5 properties about them. 1) X1 is a 40kHz signal with a frequency spectrum [0kHz - 3500kHz] and his amplitude is 1 2) Y1 is a 40kHz signal with a frequency spectrum [0kHz - 3500kHz] and his amplitude is 1 3) X2 is a 40kHz signal with a frequency spectrum [3000kHz - 7000kHz] and his amplitude is 10 4) Y2 is a 40kHz signal with a frequency spectrum [3000kHz - 7000kHz] and his amplitude is 10 5) We also know that X1 and Y1 are not independent. If we take a couple of samples x1[n] and y1[n] they have this property: SquareRoot(x1[n]*x1[n] + y1[n]*y1[n]) = 1 or in a simplified version: x1[n]*x1[n] + y1[n]*y1[n] = 1 I tried two different ways to separate the signals to find X1,Y1,X2 and Y2: - I used a normal filter like Butterworth or Chebyshev to filter X and Y and find X1 and Y1 (filtered version of X and Y). Then I used X1,Y1 to compute X2,Y2 by simply substracting to the original signal. X2 = X - X1 and Y2 = Y - Y1. The problem this solution had is that only some of the properties are taken into consideration. The properties 3 and 4 are fully respected, properties 1 and 2 only partially because the resulting signals X1 and Y1 have an amplitude of 10. The property 5 is completely ignored. - A second alternative I tried is the following. I used a normal filter like before to filter X and find X1 and divide the amplitude by 10 so that the amplitude of X1 is 1. Then I used the property 5 to find Y1 using X1 (using the equation Y1 = SquareRoot(1 - X1*X1) for each sample). Finally I used X1,Y1 to compute X2,Y2 by simply substracting to the original signal like before. In this solution all the properties are more or less taken into account, but the signal Y is not even used to compute Y1, which is definitelly not right. Now my question is: Is there another solution which will use both signals and will enable all the properties to be taken into consideration? Alex
On 2009-08-05 11:28:53 +0200, Rune Allnor <allnor@tele.ntnu.no> said:
>> > > This is bullshit, as pure and as piled as I've ever > seen it. Everybody *want* perfect results. No one ever > gets them. That's life. >
Was this insulting remark completely necesary mister Rune? Or should I say mister Rude? Alex
Alex wrote:

   ...

> Ok... let me start again because I have the impresion I've not been > really clear, and as I said I'm just starting with DSP so please ask > whatever else you need to know.
Indeed, you have not been clear. We seem to have fallen into the "I know what I mean and you're smarter than I" trap. Neither proposition holds.
> I have a device which give me 2 signals, X and Y sampled at a frequence > of 40kHz and the samples are synchronized in between X and Y, so that if > we take one sample x[n] and y[n] we know they have been acquired at the > same time. The signals have an amplitude of 10 and they are independent. > > Each one of these signals is an addition of two others. So: > > X = X1 + X2 and Y = Y1 + Y2
I don't think you said that until now.
> of course X1, Y1, X2 and Y2 are unknown, but I know the following 5 > properties about them. > > 1) X1 is a 40kHz signal with a frequency spectrum [0kHz - 3500kHz] and > his amplitude is 1 > 2) Y1 is a 40kHz signal with a frequency spectrum [0kHz - 3500kHz] and > his amplitude is 1 > 3) X2 is a 40kHz signal with a frequency spectrum [3000kHz - 7000kHz] > and his amplitude is 10 > 4) Y2 is a 40kHz signal with a frequency spectrum [3000kHz - 7000kHz] > and his amplitude is 10 > 5) We also know that X1 and Y1 are not independent. If we take a couple > of samples x1[n] and y1[n] they have this property: > SquareRoot(x1[n]*x1[n] + y1[n]*y1[n]) = 1 or in a simplified version: > x1[n]*x1[n] + y1[n]*y1[n] = 1 > > I tried two different ways to separate the signals to find X1,Y1,X2 and Y2: > > - I used a normal filter like Butterworth or Chebyshev to filter X and Y > and find X1 and Y1 (filtered version of X and Y). Then I used X1,Y1 to > compute X2,Y2 by simply substracting to the original signal. X2 = X - X1 > and Y2 = Y - Y1. The problem this solution had is that only some of the > properties are taken into consideration. The properties 3 and 4 are > fully respected, properties 1 and 2 only partially because the resulting > signals X1 and Y1 have an amplitude of 10. The property 5 is completely > ignored. > > - A second alternative I tried is the following. I used a normal filter > like before to filter X and find X1 and divide the amplitude by 10 so > that the amplitude of X1 is 1. Then I used the property 5 to find Y1 > using X1 (using the equation Y1 = SquareRoot(1 - X1*X1) for each > sample). Finally I used X1,Y1 to compute X2,Y2 by simply substracting to > the original signal like before. In this solution all the properties are > more or less taken into account, but the signal Y is not even used to > compute Y1, which is definitelly not right. > > Now my question is: Is there another solution which will use both > signals and will enable all the properties to be taken into consideration?
I might try this: Extract X1 and Y1 with suitable lowpass filters. Extract X2 and Y2 with suitable highpass filters. Each of these will be contaminated by the frequency overlap of the bands, so (X1[n])^2 + (Y1[n])^2 will differ from 1 and (X2[n])^2 + (Y2[n])^2 will differ from 10. Adjust the values to best satisfy the norm condition (least square fit?). The responses of the "suitable" filters should be determined to minimize the norm errors without further correction. This is not a cookbook implementation. It require experimenting even to see if it's practical. If you can dispense with some of your signal bands, sharp cutoffs at 3250 for both filters will be the simplest option. Jerry -- Engineering is the art of making what you want from things you can get. &#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;
Alex,

I think you may be better off trying to find out more underlying
properties in your X1, Y1, X2 and Y2. The fact that you have a
x^2+y^2=1 property in one of the signals is very telling that there
should be other properties that can be useful to you. Searching for
more info to work with is usually more worthwhile than searching for
the best method for the limited info.

For example, how does the spectrum looks like? Are the signals
stationary? What should the auto-correlation function look like for
each of them? What other stochastic, time domain or freq domain
properties can you find out about them? When you say a signal is 0~3.5
KHz, surely it doesn't have a uniform distribution over the range,
right?

Google for "source separation" or "component analysis" and you may
find some starting points. Another thing you can consider is adaptive
filtering. Base your error function on the norm property and iterate
your filter towards the best solution.

Then again, my advice is to dig up more properties of your signals
before looking for a solution.

P.S. Yes, your second method makes no sense.