# Patent

## Title
System and method for statistically separating and characterizing noise which is added to a signal of a machine or a system

## Abstract

Method for finding the probability density function type and the variance properties of the noise component N of a raw signal S of a machine or a system, said raw signal S being combined of a pure signal component P and said noise component N, the method comprising: (a) defining a window within said raw signal; (b) recording the raw signal S; (c) numerically differentiating the raw signal S within the range of said window at least a number of times m to obtain an m order differentiated signal; (d) finding a histogram that best fits the m order differentiated signal; (e) finding a probability density function type that fits the distribution of the histogram; (f) determining the variance of the histogram, said histogram variance being essentially the m order variance σ2(m) of the noise component N; and (g) knowing the histogram distribution type, and the m order variance σ2(m) of the histogram, transforming the m order variance σ2(m) to the zero order variance σ2(0), σ2(0) being the variance of the pdf of the noise component N, and wherein the histogram type as found in step (e) being the probability density function type of the noise component N.

## Background
CROSS-REFERENCE TO RELATED APPLICATIONS
This application is a continuation of U.S. patent application Ser. No. 11/109,061, filed Apr. 18, 2005, issued as U.S. Pat. No. 7,552,154, which claims foreign priority benefits from Israeli Patent Application No. 166837, filed Feb. 10, 2005. The entire content of both applications are each incorporated by reference herein.


FIELD OF THE INVENTION
The present invention relates to the field of estimating and characterizing noise which is added to a signal of a machine or a system. More particularly, the invention relates to a method and system for estimating and characterizing the component of the added noise of a signal. The method of the invention enables the finding of both the statistical nature and the type of the probability distribution or density functions of the noise component as well as its variance.
BACKGROUND OF THE INVENTION
The importance of the knowledge of the fundamental properties of stochastic systems and processes has been recently acknowledged by a growing portion of the scientific and engineering community. Among other properties of stochastic processes, the nature of the noise component which contaminates the pure signal of the system is of major importance. The term “noisy signal” or “raw signal” whenever referred to in this application, refers to a signal which comprises a noise component and a pure signal which are inseparable. Throughout this application, the term “noise” refers to any random or unknown component whose exact behavior cannot be exactly predicted, but knowing its probability density function is highly valuable. Also, the term “variance” relates to the second moment of the probability density function and is used as is common in the art of Statistics and Probability theories. Moreover, throughout this application the terms “machine”, “system” and “process” are used interchangeably with respect to the method of the invention. An accurate estimation of the noise properties can provide to the system designer very important tools for improving the system behavior. An accurate determination of the noise properties is particularly important for dynamical systems where non-linear behavior is expected and in which the noise may seriously alter any estimation of the states of the system, if not to cause a total divergence of the parameters of the system model. Such conditions are particularly common in non-linear systems when modeled by recursive or adaptive methods such as Weiner or Kalman filtering. The principles and theory of Kalman and Weiner filtering are described, for example, in Gelb, A., “Applied Optimal Estimation”, Chapter 1, pp. 1-7, The MIT Press, Cambridge, Mass., 1974.
The following United States patents are believed to represent the state of the art for Signal estimation, noise characteristics, and Kalman and adaptive filtering in applicable systems: U.S. Pat. Nos. 6,829,534; 6,740,518; 6,718,259; 6,658,261; 6,836,679; 6,754,293; and 6,697,492.
The theory of non-linear filtering and its applications are discussed in:

    (a) Grewal, M. S. et al., Kalman Filtering, Prentice-Hall, 1993;
    (b) Jazwinski, A. H., Stochastic Processes and Filtering Theory, Academic Press, New York, 1970, chapters 1 and 2, pp. 1-13;
    (c) Gelb, A., Applied Optimal Estimation, The MIT Press, Cambridge, Mass., 1974 Chapter 1, pp. 1-7; and
    (d) Wiener, N., Journal of Mathematical and Physical Sciences 2, 132 (1923).


The art of signal processing, probability and stochastic processes and noise characteristics are also discussed in:

    (a) Bruno Aiazzi et al., IEEE Signal Processing Lett. 6 138 (1999);
    (b) R. Chandramouli et al., “Probability, Random Variables and Stochastic Processes”, A. Papoulis, McGraw-Hill USA, (1965);
    (c) IEEE Signal Processing Lett. 6 129;
    (d) Zbyszek P. Karkuszewski, Christopher Jarzynski, and Wojciech H. Zurek, Phys Rev. Lett. 89, 170405 (2002);
    (e) A. F. Faruqi and K. J. Turner Applied Mathematics and Computation, 115, 213 (2000);′
    (f) J. P. M. Heald and J. Stark, Phys. Rev. Lett. 84, 2366 (2000);
    (g) A. A. Dorogovtsev, Stochastic Analysis and Random Maps in Hilbert Space, VSP Publishing, The Netherlands, (1994) (in particular see the consideration for high-order stochastic derivative in chap. 1);
    (h) H. Kleinert and S. V. Shabanov, Phys. Lett. A, 235, 105, (1997);
    (i) Elachi, C., Science, 209, 1073-1082, (1980);
    (j) Valeri Kontorovich et al., IEEE Signal Processing Lett. 3, 19 (1996);
    (k) Steve Kay., IEEE Signal Processing Lett. 5, 318 (1998);
    (l) Michael I. Tribelsky, Phys. Rev. Lett. 89, 070201 (2002).


The theory of curve fitting, differentiation and high order derivatives is discussed in:

    (a) G. Di Nunno, Pure Mathematics 12, 1, (2001); and
    (b) K. Weierstrass, Mathematische Werke, Bd. III, Berlin 1903, pp. 1-17.


It is an object of the present invention to provide a method for the statistical separation and determination of the noise properties from the noisy signal.
It is another object of the invention to provide such a method that can be performed in real-time.
It is still another object of the present invention to provide such a method for characterizing the noise which is adaptive.
It is still another object of the present invention to provide said method for characterizing the noise that can determine not only the variance of the noisy signal, but also the type of the probability density function (pd) of the noise component.
It is still another object of the present invention to provide said method for characterizing the noise that does not depend on a priori knowledge of the structure of the pure signal.
It is still another object of the present invention to provide said method for characterizing the noise that does not depend on the structure of the pure signal.
It is still another object of the present invention to provide said method for characterizing the noise that involves defining a window of the analyzed signal, and given said window, the method does not depend on any accumulative information outside said window boundaries.
Other objects and advantages of the present invention will become apparent as the description proceeds.
SUMMARY OF THE INVENTION
The present invention refers to a method for finding the probability density function and the variance properties of the noise component N of a raw signal S of a machine or a system, said raw signal S being combined of a pure signal component P and said noise component N, the method comprising the steps of: (a) defining a window within said raw signal; (b) recording the raw signal S; (c) numerically differentiating the raw signal S within the range of said window at least a number of times m to obtain an m order differentiated signal; (d) finding a histogram that best fits the m order differentiated signal; (e) finding a probability density function type that fits the distribution of the histogram; (f) determining the variance (or any equivalent parameter, depending on the specific said pdf type) of the histogram, said histogram variance being essentially the m order variance σ2(m) of the noise component N; and (g) knowing the histogram distribution type, and the m order variance or σ2(m) of the histogram, transforming the m order variance σ2(m) to the zero order variance σ2(0), said σ2(0) being the variance of the pdf of the noise component N, and wherein the histogram type as found in step (e) being the probability density function type of the noise component N.
Preferably, the method is repeatedly performed as the raw signal S progresses.
Preferably, the method is performed in real-time.
Preferably, the probability density function type that fits the distribution of the histogram is the one from a list that found to be best fitting the distribution of the histogram.
Preferably, the list comprises only one probability density function type.
Preferably, the one probability density function type is the Gaussian type.
Preferably, the transformation is performed by means of a specific expression suitable for the said fitted probability density function, wherein said specific expression is derived from the following general expression




  
    F
    
      n
      i
    
    
      (
      m
      )
    
  
  =
  
    
      ∫
      
        D
        z
      
    
    ⁢
    
      ∫
      
        
          {
          
            
              ∏
              
                j
                =
                1
              
              m
            
            ⁢
            
              
                S
                j
                m
              
              ⁢
              
                f
                ⁡
                
                  (
                  ξ
                  )
                
              
            
          
          }
        
        ⁢
        
          d
          
            ξ
            
              (
              m
              )
            
          
        
      
    
  




Preferably, when the fitted probability distribution function is Gaussian, the transform is performed by means of the following specific expression




  
    
      
        d
        m
      
      ⁢
      
        N
        ⁡
        
          (
          
            0
            ,
            
              σ
              0
              2
            
          
          )
        
      
    
    
      d
      
        i
        m
      
    
  
  =
  
    
      α
      ⁡
      
        (
        m
        )
      
    
    ⁢
    
      N
      ⁡
      
        (
        
          0
          ,
          
            
              β
              ⁡
              
                (
                m
                )
              
            
            ⁢
            
              σ
              0
              2
            
          
        
        )
      
    
  




The present invention also relates to an apparatus for determining the probability density function type and the variance properties of the noise component N of a raw signal S of a machine or a system, said raw signal S being combined of a pure signal component P and said noise component N, the system comprises: (a) differentiating module, for receiving and numerically differentiating the raw signal S within the range of a predefined window at least a number of times m to obtain an m order differentiated signal; (b) a module for finding a histogram that best fits the m order differentiated signal; (c) a list containing at least one type of predefined probability density function; (d) a module for finding one probability density function type from said list that best fits the distribution of the histogram; (e) a module for determining the variance of the histogram, said histogram variance being essentially the m order variance σ2(m) of the noise component N; and (f) a module for, given the histogram distribution type and the m order variance σ2(m) of the histogram, transforming the m order variance σ2(m) to the zero order variance σ2(0), said σ2(0) being the variance of the pdf of the noise component N, wherein the histogram type as found in step (d) being the probability density function type of the noise component N.
Preferably, the apparatus components operate repeatedly to find the updated probability density function type and the variance properties of the noise component as the signal S progresses.
The present invention also relates to a system for receiving a raw signal S which is combined from a pure signal P and a noise component N, and for outputting a signal which is essentially said pure signal, wherein the system comprises: (a) apparatus as described above for receiving said raw signal and outputting the probability density function and distribution type of said noise component into a filter; and (b) a filter receiving said raw signal and also receiving said probability density function and distribution type of said noise component from said apparatus, and given said received data, processing and outputting a signal which is essentially said pure signal.
Preferably, the filter is an adaptive filter.
Preferably, the filter is a Kalman Filter.
Preferably, the system of the invention as described above operates continuously in real time.



BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 shows a general system according to the prior art.
FIG. 2 illustrates a simulated raw signal S that contains a pure component P and a noise component N.
FIG. 3 shows the 50th differentiation of signal S of FIG. 2.
FIG. 4 shows a histogram that was drawn for the 50 times differentiated signal of FIG. 3. The solid line in FIG. 4 represents a Least Mean Square fit of the point of the histogram to a Gaussian Functions from which the Gaussian parameters are extracted.
FIG. 5 shows the re-normalized values σ(0) as extracted from the corresponding σ(m) found for the raw signal of FIG. 2 that was differentiated m=1, 2, 3, . . . , 200 times.
FIG. 6 illustrates how the method of the present invention can be used in conjunction with a Kalman filter.
FIG. 7 illustrates a simulation of the first derivative (m=1) of a 200K normal distributed, N(0, σ02≦1), noise signal (only partially shown) with the corresponding deduced histogram (fitted to a Gaussian and arbitrarily scaled). Also shown is the original density function used to generate the noise signal (dashed curve). As expected, σ=√{square root over (2)}σ0.
FIG. 8 illustrates a simulation of the Fifth derivative (m=5) of a normal distributed, noise signal (see also FIG. 7). As expected, σ=√{square root over (252)}σ0.
FIG. 9 illustrates an apparatus for performing a method according to one embodiment of the invention.



DETAILED DESCRIPTION
As said, the knowledge of the properties of the expected noise component provides to the system designer a very significant tool for improving the system structure and behavior. The essence of this invention is to perform relatively simple numerical calculations on the noisy signal in order to derive both the type of the probability density function of the noise and the properties of said of the probability density function and in particular the variance of said function.
FIG. 1 shows a typical system. A raw signal S which is combined of a pure signal P and an additive noise N component is provided to the system. Throughout this application, it should be noted that the invention relates to the characterizing of the noise which is added not only to an input signal, but may also relate to a noise that is added to a signal within the system. The present invention can provide the properties of the noise component N, given said signal S.
The method of the present invention comprises of the following steps:

    1. Defining a portion of the raw signal that may dynamically progress according to the development of the signal, hereinafter defined as the “window”, or the “analysis window”, provided that the number of elements in said window is statistically sufficient;
    2. Recording the noisy signal S which is combined of a pure signal portion P and of a noise component N;
    3. Numerically differentiating the raw signal at least a number of times m to obtain an m times differentiated signal;
    4. Finding the histogram of the differentiated signal;
    5. Providing a list of optional probability density functions, and from said list finding the one probability density function that is best fitted to the histogram distribution;
    6. Determining from the best fitted probability density function the parameters that characterize that function, said function being the probability density function of the m order differentiated raw signal S, but essentially being a close approximation to the in order differentiated probability density function of the noise component N. The arguments for supporting this assumption are given hereinafter;
    7. Transforming the parameters of the fitted, in order differentiated probability density function to extract the parameters of the zero order probability density function of the noise component N of signal S. The transformation is performed using an expression which is suitable for the fitted probability density function type (as will be elaborated later, expressions (3) and (4) which are given below are general expressions that are suitable for any type of probability density function, while the simplified expression (5) is suitable for Gaussian probability density function);


FIG. 9 shows an apparatus for performing a method according to one embodiment of the invention. In particular, FIG. 9 shows a Noise Estimation Unit 12 and provides a block diagram illustrating the method. A noisy, raw signal S=P+N which is combined of a pure component P and a noise component N is provided over line 40 (step 2 above) to a Noise Estimation Unit 12. The signal S is differentiated m times by the differentiation block 41 (step 3 above). Then, block 42 draws a histogram for the (m) times differentiated signal as provided by block 41 (step 4 above). Block 43 receives the histogram from block 42, and finds a probability density function type that best fits the distribution of the histogram (step 5 above). For that purpose, block 43 may use the library 44 containing several probability density function types to find the one probability density function that best fits the histogram, or alternatively it may apply an assumed probability density function from block 45 (for example, a Gaussian distribution) (also step 5 above). After finding the probability density function that best fits the histogram, block 47 which receives the probability density function type over line 50, and the histogram over line 51 determines the (m) order variance σ2(m) of the histogram (step 6). The (m) order variance, as well as the probability density function type are provided into the transformation block 46, which in turn uses this data (pdf) type and σ2(m) in order to find the zero order variance σ2(0) while the pdf type remains the same as for the m order pdf (step 7). Block 46 then outputs both the zero order probability density function type and the variance σ2(0) of the noise to any system that may use these valuable parameters of the noise.
Now, the present invention will be described by means of an example. FIGS. 2 to 5 demonstrate the method of the present invention.
EXAMPLE
FIG. 2 illustrates a simulated raw signal S that contains a pure component P and a noise component N. The duration of the S signal (i.e., the “window” considered) was of 0.7 s. It should be clear to any one who is skilled in the art that the window's length can be shorter or longer, depending on the specific case considered. It should also be clear to any one who is skilled in the art that the length of the window can be equal to or, preferably, shorter than the length of the signal. The noise component was intentionally selected to have Gaussian probability density function with a σ(0)=14. The S signal of FIG. 2 was numerically differentiated 200 times (step 3 above). The 50th differentiation of signal S is shown in FIG. 3. From the differentiation result of FIG. 3, a histogram was drawn as shown in FIG. 4 (the discrete points form this histogram). A Gaussian function was then fitted (in the Least Means Square sense) to yield the solid line of FIG. 4. Then, the parameters of said 50th order differentiation probability density function of FIG. 4 were extracted. More particularly, the σ(50) was found to be 4.432413969422223e+015. Next, using and an expression σ0=ƒ(σm) (i.e., the initial value is a function of the extracted value after the differentiation step) that will be elaborated further hereinafter, σ(0) was found to be 13.958. In addition, from the same expression and the various σ(m), the value of σ(0) was separately extracted. FIG. 5 shows the extracted values of σ(0) as found according to the method of the present invention for the raw signal of FIG. 2 that was differentiated m=1, 2, 3, . . . , 200 times. It can be seen that σ(0) was found to be very close to the intended, initial value of 14 for all said values of m. More particularly, the σ(0) of the noise component was found to be very close to the value the intended, initial value of 14 as was pre-selected for the pdf (probability density function) of the noise component N in this simulation. It can also be concluded that m of as low as 4 or 5 may be sufficient to extract the value of σ(0) with high accuracy, as the calculated σ(0) for all m larger than 5 are extremely close to the original value 14. Therefore, it can also be concluded that in most cases there is no practical need to differentiate to orders higher than 10.
One of the advantages of the invention as described is the fact that the method can be relatively easily performed in real-time, as the amount of data that is necessary for performing the analysis is relatively small, i.e., only to the extent of statistical validity. Moreover, the method requires the use of very limited amount of memory resources, as no historical data of the signal is advantageous. The only information necessary is that contained in the selected window, and the window in most cases can be narrow.
The present invention is applicable to most types of probability density functions. For each type of pdf one can easily derive the suitable expression as is necessary in step 7 above. Therefore, it is preferably recommended to keep in the list of step 5 above at least one type of probability density function, or preferably more, to keep those functions that are most expected for noise probability density functions.
Theoretical Considerations
Considering a stochastic process ξ(ni), with ni the collection of stochastic events, in a measurable space (state-space) so that variance values of the stochastic variables considered here are finite, a differentiating operator, operating on a signal vector, may be defined with respect to the index of the signal data points in their sequenced order (or equivalently, treating the signal as a time series vector with a unit time step). By doing this, one may realize that a differentiation procedure, of the first order, is equivalent to numerical subtracting the element ni from the element ni+1, in the stochastic signal. Since in such random set of points each point is totally independent of all other points and correlated to any other data point within the set only by the mutual statistics of the sample space, denoted by Ω (i.e. all points (i, j) are uncorrelated where i≠′j), the equivalence to subtracting the element ni, from the element ni+1 in the noise signal would be the equivalent of the subtraction of two independent Random Variables with identical statistical distribution (IID).
In contrast with the case of the first derivative, where one could assume that all individual data points were uncorrelated, higher order derivatives involve correlated expressions that lead, in the general case, to non-trivial expressions for the resultant probability functions.
Considering the above definitions and referring to some arbitrary random variable function V(ni, ξ), referred here as the original data signal with ξ as the stochastic random variable, one can now derive the second order derivative index series, V(2)(ni(2),ξ(2)), with ξ(2) refers to the (yet) unknown stochastic random variable corresponding to the second-order derivative vector by realizing that ni(1)=n1−ni−1 and ni+1(1)=ni+1−n1 so that ni(2)=ni+1(1)−ni1=ni+1−2ni+ni−1. These expressions imply that the probability density function of the second order derivative is the equivalent pdf of the sum of three independent, however non-identical, random variables (InID), all with similar, however not identical, probability density functions. Referring now to the general result that given two independent random variables ξ1 and ξ2 on the space Rk with μ and ν their respective distribution functions and ƒ and g denote their respective density functions, than the distribution of the sum ξ1+ξ2 is the convolution μ*ν and the analogue density function of the sum equals the convolution integral denoted by ƒ*g.
Using the notation ƒξ1ξ2ξ3=ƒξ1*ƒξ2*ƒξ3 this implies:

ƒni(2)=(ƒni*ƒ(−2ni))*fni  (1)

Following the above arguments, for higher derivatives, it can now easily be deduced that the m'th derivative of a random variable derived from an arbitrary statistically defined variable can be obtained by noting that the correlation elements that dictate the derivative expressions are given by the matrix (hereinafter: “the Stochastic-Derivative Matrix”):



  
    
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        1
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
    
    
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        1
      
      
        
          
        
      
      
        
          -
          1
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
    
    
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        1
      
      
        
          
        
      
      
        
          -
          2
        
      
      
        
          
        
      
      
        1
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
    
    
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        1
      
      
        
          
        
      
      
        
          -
          3
        
      
      
        
          
        
      
      
        3
      
      
        
          
        
      
      
        
          -
          1
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
    
    
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        1
      
      
        
          
        
      
      
        
          -
          4
        
      
      
        
          
        
      
      
        6
      
      
        
          
        
      
      
        
          -
          4
        
      
      
        
          
        
      
      
        1
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
    
    
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
      
        1
      
      
        
          
        
      
      
        
          -
          5
        
      
      
        
          
        
      
      
        10
      
      
        
          
        
      
      
        
          -
          10
        
      
      
        
          
        
      
      
        5
      
      
        
          
        
      
      
        
          -
          1
        
      
      
        
          
        
      
      
        
          
        
      
      
        
          
        
      
    
    
      
        
          
        
      
      
        
          
        
      
      
        1
      
      
        
          
        
      
      
        
          -
          6
        
      
      
        
          
        
      
      
        15
      
      
        
          
        
      
      
        
          -
          20
        
      
      
        
          
        
      
      
        15
      
      
        
          
        
      
      
        
          -
          6
        
      
      
        
          
        
      
      
        1
      
      
        
          
        
      
      
        
          
        
      
    
    
      
        
          
        
      
      
        1
      
      
        
          
        
      
      
        
          -
          7
        
      
      
        
          
        
      
      
        21
      
      
        
          
        
      
      
        
          -
          35
        
      
      
        
          
        
      
      
        35
      
      
        
          
        
      
      
        
          -
          21
        
      
      
        
          
        
      
      
        7
      
      
        
          
        
      
      
        
          -
          1
        
      
      
        
          
        
      
    
    
      
        1
      
      
        
          
        
      
      
        
          -
          8
        
      
      
        
          
        
      
      
        28
      
      
        
          
        
      
      
        
          -
          56
        
      
      
        
          
        
      
      
        70
      
      
        
          
        
      
      
        
          -
          56
        
      
      
        
          
        
      
      
        28
      
      
        
          
        
      
      
        
          -
          8
        
      
      
        
          
        
      
      
        1
      
    
  




  
    
      
    
    ⁢
    ...
  



and are governed by the following expression, denoted here as the Stochastic-Derivative matrix Skm, and given by





  
    
  
  ⁢
  
    
      
        S
        j
        
          (
          m
          )
        
      
      =
      
        
          
            (
            
              -
              1
            
            )
          
          
            j
            +
            1
          
        
        ⁢
        
          (
          
            
              
                m
              
            
            
              
                j
              
            
          
          )
        
      
    
    ,
  




where





   
  
    (
    
      
        
          m
        
      
      
        
          j
        
      
    
    )
  




denote the elements of the binomial coefficients, and the Stochastic-Derivative matrix Skm, as defined above is in fact a variant of Pascal Triangle.

In terms of a summation of the individual elements needed to account for the probability density function of the m'th order numerical derivative, the summation may be written as:




  
    
      
        
          f
          m
        
        =
        
          
            ∑
            
              j
              =
              1
            
            m
          
          ⁢
          
            
          
          ⁢
          
            
              S
              j
              
                (
                m
                )
              
            
            ⁢
            
              f
              ⁡
              
                (
                z
                )
              
            
          
        
      
    
    
      
        (
        2
        )
      
    
  




wherein ƒ(z) represents the probability density function of the original random variable. For instance, for the second derivative this is equivalent to ƒni(2)=(ƒni*ƒ(−2ni))*ƒni. Generalizing the above, for a set of random variables ξ1, ξm and a function z=g(ξ1, ξ2, . . . ξm), one can form a new random variable: ξz=g(ξ1, ξ2, . . . ξm). In particular, the density and distribution functions of ξz, in terms of the density and distribution functions of ξ1, ξ2, . . . ξm can easily be obtained. To do so one denotes Dz={(ξ1, ξ2, . . . ξm):g(ξ1, ξ2, . . . ξm)≦z} noting that (ξz≦z)={g(ξ1, ξ2, . . . ξm)≦z}={(ξ1, ξ2, . . . ξm)εDz} so that:

Fz(z)=P(Z≦z)=P((ξ1, ξ2, . . . ξm)εDz)

which gives:





  
    
  
  ⁢
  
    
      
        
          F
          z
        
        ⁡
        
          (
          z
          )
        
      
      =
      
        
          ∫
          
            D
            z
          
          
            
          
        
        ⁢
        
          ∫
          
            
              
                f
                
                  
                    ξ
                    1
                  
                  ,
                  
                    ξ
                    2
                  
                  ,
                  
                    ...ξ
                    m
                  
                
              
              ⁡
              
                (
                
                  
                    ξ
                    1
                  
                  ,
                  
                    ξ
                    2
                  
                  ,
                  
                    ...
                    ⁢
                    
                      
                    
                    ⁢
                    
                      ξ
                      m
                    
                  
                
                )
              
            
            ⁢
            
              d
              
                ξ
                1
              
            
          
        
      
    
    ,
    
      
    
    ⁢
    
      d
      
        ξ
        2
      
    
    ,
    
      ...
      ⁢
      
        
      
      ⁢
      
        d
        
          ξ
          m
        
      
    
  




Thus, in order to find the distribution probability function of the new random variable ξz, given the distribution functions of the random variables ξj's, one needs to define the range of the validity of the new variable z and to evaluate the integral using the mutual density function.
For the case of independent random variables, the above expression simplifies with the integrand replaced by




  
    
  
  ⁢
  
    
      ∏
      
        j
        =
        1
      
      m
    
    ⁢
    
      
    
    ⁢
    
      
        f
        
          ξ
          j
        
      
      .
    
  




Finally:





  
    
      
        
          
            
              
                
                  F
                  z
                
                ⁡
                
                  (
                  z
                  )
                
              
              =
              
              ⁢
              
                
                  ∫
                  
                    D
                    z
                  
                  
                    
                  
                
                ⁢
                
                  ∫
                  
                    
                      ∏
                      
                        j
                        =
                        1
                      
                      m
                    
                    ⁢
                    
                      
                    
                    ⁢
                    
                      
                        f
                        
                          ξ
                          j
                        
                      
                      ⁢
                      
                        d
                        
                          ξ
                          1
                        
                      
                      ⁢
                      
                        
                      
                      ⁢
                      
                        d
                        
                          ξ
                          2
                        
                      
                      ⁢
                      
                        
                      
                      ⁢
                      ...
                      ⁢
                      
                        
                      
                      ⁢
                      
                        d
                        
                          ξ
                          N
                        
                      
                    
                  
                
              
            
          
        
        
          
            
              =
              
              ⁢
              
                
                  ∫
                  
                    D
                    z
                  
                  
                    
                  
                
                ⁢
                
                  ∫
                  
                    
                      [
                      
                        
                          ∏
                          
                            j
                            =
                            1
                          
                          m
                        
                        ⁢
                        
                          
                            S
                            j
                            m
                          
                          ⁢
                          
                            
                              f
                              j
                            
                            ⁡
                            
                              (
                              ξ
                              )
                            
                          
                        
                      
                      ]
                    
                    ⁢
                    
                      d
                      
                        ξ
                        
                          (
                          m
                          )
                        
                      
                    
                  
                
              
            
          
        
      
    
    
      
        (
        3
        )
      
    
  




Since the density function is the same for all individual elements of the multiplication term under the integral, expression (3) can symbolically be written as:





  
    
      
        
          
            F
            
              n
              i
            
            
              (
              m
              )
            
          
          =
          
            
              ∫
              
                D
                z
              
              
                
              
            
            ⁢
            
              ∫
              
                
                  {
                  
                    
                      ∏
                      
                        j
                        =
                        1
                      
                      m
                    
                    ⁢
                    
                      
                        S
                        j
                        m
                      
                      ⁢
                      
                        f
                        ⁡
                        
                          (
                          ξ
                          )
                        
                      
                    
                  
                  }
                
                ⁢
                
                  d
                  
                    ξ
                    
                      (
                      m
                      )
                    
                  
                
              
            
          
        
        ,
      
    
    
      
        (
        4
        )
      
    
  




wherein Fni(m) represents the probability distribution function of





  
    
  
  ⁢
  
    
      
        ∂
        m
      
      ⁢
      
        V
        ⁡
        
          (
          
            
              n
              i
            
            ,
            ξ
          
          )
        
      
    
    
      ∂
      
        i
        m
      
    
  




that can be easily evaluated to derive the respective density function, recalling that the term





  
    
  
  ⁢
  
    
      ∏
      
        j
        =
        1
      
      m
    
    ⁢
    
      
        S
        j
        m
      
      ⁢
      
        f
        ⁡
        
          (
          ξ
          )
        
      
    
  




really represents a convolution of the original probability function weighted accordingly.

The following discussion is focused on the case where the probability density function of the noise statistics is Gaussian. For the Gaussian case, the analysis yields a relatively straightforward expression as the Gaussian pdf belongs to the few probability functions that convolve into similar functions. A Gaussian distribution is therefore considered, where ξ is referred to as the random variable, N(0,σ02), i.e. a Gaussian distribution with the first moment equals zero, and the variance is given by σ02 as an illustrative probability (the derivation of the following with mean values other than zero is straightforward).
For the above, it can be found that the following expression (5) explicitly describes the resultant statistics, wherein β(m) is the sum of the squares of the elements of the m+1's row in the Stochastic-Derivative matrix given above, and α(m) is the inverse of the square-root of the sum of the squares of the elements of the m+1's row of the Stochastic-Derivative matrix given above.




  
    
      
        
          
            
              d
              m
            
            ⁢
            
              N
              ⁡
              
                (
                
                  0
                  ,
                  
                    σ
                    0
                    2
                  
                
                )
              
            
          
          
            d
            
              i
              m
            
          
        
        =
        
          
            α
            ⁡
            
              (
              m
              )
            
          
          ⁢
          
            N
            ⁡
            
              (
              
                0
                ,
                
                  
                    β
                    ⁡
                    
                      (
                      m
                      )
                    
                  
                  ⁢
                  
                    σ
                    0
                    2
                  
                
              
              )
            
          
        
      
    
    
      
        (
        5
        )
      
    
  




Note that for a normal distribution function, as used above, the condition α∞1/√{square root over (β)} is required by the normalization condition.
Using equation (5) and the arguments above, the probability density function of a zero mean normal distribution for the exemplary cases of the first (equation 6), second (equation 7), and fifth (equation 8) derivatives respectively can be derived to be as follows:




  
    
      
        
          
            
              
                
                  d
                  
                    N
                    ⁡
                    
                      (
                      
                        a
                        ,
                        
                          σ
                          0
                          2
                        
                      
                      )
                    
                  
                
                
                  d
                  i
                
              
              =
              
              ⁢
              
                
                  1
                  
                    
                      
                        1
                        2
                      
                      +
                      
                        1
                        2
                      
                    
                  
                
                ⁢
                
                  N
                  ⁡
                  
                    (
                    
                      0
                      ,
                      
                        
                          (
                          
                            
                              2
                              ⁢
                              
                                σ
                                0
                              
                            
                          
                          )
                        
                        2
                      
                    
                    )
                  
                
              
            
          
        
        
          
            
              =
              
              ⁢
              
                
                  1
                  
                    2
                  
                
                ⁢
                
                  N
                  ⁡
                  
                    (
                    
                      0
                      ,
                      
                        
                          (
                          
                            
                              2
                              ⁢
                              
                                σ
                                0
                              
                            
                          
                          )
                        
                        2
                      
                    
                    )
                  
                
              
            
          
        
      
    
    
      
        (
        6
        )
      
    
  
  
    
      
        
          
            
              
                
                  
                    d
                    2
                  
                  ⁢
                  
                    N
                    ⁡
                    
                      (
                      
                        0
                        ,
                        
                          σ
                          0
                          2
                        
                      
                      )
                    
                  
                
                
                  d
                  
                    i
                    2
                  
                
              
              =
              
              ⁢
              
                
                  1
                  
                    
                      
                        1
                        2
                      
                      +
                      
                        2
                        2
                      
                      +
                      
                        1
                        2
                      
                    
                  
                
                ⁢
                
                  N
                  ⁡
                  
                    (
                    
                      0
                      ,
                      
                        
                          [
                          
                            
                              (
                              
                                
                                  
                                    2
                                    2
                                  
                                  +
                                  
                                    1
                                    2
                                  
                                  +
                                  
                                    1
                                    2
                                  
                                
                              
                              )
                            
                            ⁢
                            
                              σ
                              0
                            
                          
                          ]
                        
                        2
                      
                    
                    )
                  
                
              
            
          
        
        
          
            
              =
              
              ⁢
              
                
                  1
                  
                    6
                  
                
                ⁢
                
                  N
                  ⁡
                  
                    (
                    
                      0
                      ,
                      
                        
                          (
                          
                            
                              6
                            
                            ⁢
                            
                              σ
                              0
                            
                          
                          )
                        
                        2
                      
                    
                    )
                  
                
              
            
          
        
      
    
    
      
        (
        7
        )
      
    
  
  
    
      
        
          
            
              
                
                  
                    d
                    5
                  
                  ⁢
                  
                    N
                    ⁡
                    
                      (
                      
                        0
                        ,
                        
                          σ
                          0
                          2
                        
                      
                      )
                    
                  
                
                
                  d
                  
                    i
                    5
                  
                
              
              =
              
              ⁢
              
                1
                
                  
                    
                      1
                      2
                    
                    +
                    
                      5
                      2
                    
                    +
                    
                      10
                      2
                    
                    +
                    
                      10
                      2
                    
                    +
                    
                      5
                      2
                    
                    +
                    
                      1
                      2
                    
                  
                
              
            
          
        
        
          
            
              
              ⁢
              
                N
                ⁡
                
                  (
                  
                    0
                    ,
                    
                      
                        (
                        
                          
                            252
                          
                          ⁢
                          
                            σ
                            0
                          
                        
                        )
                      
                      2
                    
                  
                  )
                
              
            
          
        
        
          
            
              =
              
              ⁢
              
                
                  1
                  
                    252
                  
                
                ⁢
                
                  N
                  ⁡
                  
                    (
                    
                      0
                      ,
                      
                        
                          (
                          
                            
                              252
                            
                            ⁢
                            
                              σ
                              0
                            
                          
                          )
                        
                        2
                      
                    
                    )
                  
                
              
            
          
        
      
    
    
      
        (
        8
        )
      
    
  




This was indeed verified by numerical simulations where a normal distributed random set of 200K elements was generated (FIGS. 7 and 8), where FIG. 7 illustrates a simulation of the first derivative (m=1) of a 200K normal distributed, N(0,σ02=1), noise signal (only partially shown) with the corresponding deduced histogram (fitted to a Gaussian and arbitrarily scaled). Also shown is the original density function used to generate the noise signal. As expected, σ=√{square root over (2)}σ0. Additionally, FIG. 8 illustrates a simulation of the Fifth derivative (m=5) of a normal distributed, noise signal (see also FIG. 7). As expected, or σ=√{square root over (252)}σ0.
In relation to the above, it should be clear that the histograms of the resultant vectors were then taken and are shown to have Gaussian shapes with variance values compatible with the above results.
Following the above theoretical considerations, it can obviously be concluded that expressions (3) and (4) can be used in the transformation step 7 above, while the simplified expression (5) can be used when the distribution is Gaussian.
To demonstrate one of the proposed motivations for the use of a high-order numerical derivative of a stochastic signal, we now refer to the derivation of the noise-level of an experimental output, where noise, either due to experimental set-up or due to the process itself (or due to both), is added to the signal. It is the aim of the following to demonstrate how to extract a simulated noise component such that the simulated noise is statistically identical to the noise part in the original experimental signal.
For simplicity we assume that the arbitrary noisy, raw signal can be represented by an arbitrary smooth and continuous signal contaminated by noise wherein S=P+N, N being the noise that is added to the pure signal P. Let us further assume that within the interval of validity of P, one can approximate P (for instance, in the Least Mean Square sense) by an m-degree polynomial function that may belong to a complete orthogonal polynomial basis. This can be proven to be possible for any bounded, smoothed and continuous function P (see for example the classical proof by K. Weierstrass, Mathematische Werke, Bd. III, Berlin 1903, pp. 1-17, and can also be found in most textbooks on Functional Analysis), but may be of practical use only when the interval is not too long, as compared to the structure of the signal, and for a relatively low polynomial degree.
Assuming the above, it turns out that




  
    
  
  ⁢
  
    
      
        
          
            d
            
              m
              +
              1
            
          
          ⁢
          S
        
        
          d
          
            k
            
              m
              +
              1
            
          
        
      
      =
      
        
          
            d
            
              m
              +
              1
            
          
          ⁢
          N
        
        
          d
          
            k
            
              m
              +
              1
            
          
        
      
    
    ,
  




as the m'th derivative of P, under the above assumptions, is constant and thus vanishes for higher orders. For most experimental data, m would not exceed 5 (see the above example). However the present approach holds for any arbitrarily higher order.

Now, if the characteristics of the statistical properties of the high-order derivative of the original noise




  
    
  
  ⁢
  
    
      
        ∂
        
          m
          +
          1
        
      
      
        ∂
        
          i
          
            m
            +
            1
          
        
      
    
    ⁢
    
      (
      N
      )
    
  




is known, i.e. the probability density function that statistically describes the initial noise subject to high-order numerical derivative, in terms of the parameters (assumed to be unknown) of the statistical nature of the noise (assumed to be known), one can obtain the specific parameters of the original noise and thus deduce the noise-level in the original signal S.

FIG. 6 illustrates how the method of the present invention can be used in conjunction with a Kalman (or Extended Kalman) filter. The Kalman filter 11 receives at its input the raw signal S, which, as said, is a combination of a pure signal P and of the noise component N. For a linear system, when the distribution of the noise is Gaussian, and given the variance σ2(0) of the noise distribution, a Kalman filter can provide at its output a best estimation (optimal) of the pure signal P. In the system of FIG. 6, the raw signal S is provided in parallel to both the Kalman filter 11 and to the input of the Noise Estimation Unit 12, which operates according to the method of the present invention, or more particularly, according to the method as disclosed in steps 1-7 above. The Noise Estimation Unit therefore analyzes the raw signal S according to the method of the invention, and provides in real-time to the Kalman filter over line 13 the variance σ2(0) of the noise component N. The variance σ2(0) of the noise component is one of the few parameters of the initial information that the Kalman filter requires in order to output the estimated pure signal P over line 14. Moreover, the Noise Estimation Unit can output over line 15 both the type of the probability density function, and the value of the variance σ2(0) to any other component that may require, or use this data.
It should be noted that the exemplary system of FIG. 6 can operate essentially with most types of filters. In that case, another type of filter replaces the Kalman filter 11 of FIG. 6. This feature can be obtained in view of the fact that the Noise Estimation Unit 12 of the present invention can operate essentially with most types of probability density functions, and moreover, the unknown type of the probability density function, as well as its variance σ2(0) can be determined and outputted by the Noise Estimation Unit 12 of the present invention.
While some embodiments of the invention have been described by way of illustration, it will be apparent that the invention can be put into practice with many modifications, variations and adaptations, and with the use of numerous equivalents or alternative solutions that are within the scope of persons skilled in the art, without departing from the spirit of the invention or exceeding the scope of the claims.

## Claims

1. A method for an electronic noise estimation unit to determine the probability density function type of a noise component in a signal, the method comprising:
using the electronic noise estimation unit, numerically differentiating the signal within a window at least m number of times to obtain an m-order differentiated signal;
providing a histogram having a distribution that approximates the m-order differentiated signal;
selecting a probability density function type that approximates the distribution of the histogram from a library of probability density function types available to the noise estimation unit, wherein the probability density function type that approximates the distribution of the histogram is the probability density function type of the noise component; and
outputting the probability density function type of the noise component on an output line of the electronic noise estimation unit.

2. The method of claim 1, wherein the distribution of the histogram best fits the m-order differentiated signal and the probability density function type best fits the distribution of the histogram.

3. A method for an electronic noise estimation unit to characterize noise in a signal, the method comprising:
using the electronic noise estimation unit, numerically differentiating the signal within a window at least m number of times to obtain an m-order differentiated signal;
providing a histogram having a distribution that approximates the m-order differentiated signal;
providing a probability density function type that approximates the distribution of the histogram, wherein said providing a probability density function type includes selecting a probability density function type from a library of probability density function types available to the noise estimation unit;
determining a variance of the histogram;
determining a zero-order variance using the variance of the histogram and the probability density function type; and
outputting at least one of the probability density function type or the zero-order variance on an output line of the electronic noise estimation unit.

4. The method of claim 3, wherein the signal comprises a noise component and a raw signal component.

5. The method of claim 4, wherein the variance of the histogram is the m-order variance of the noise component from the signal.

6. The method of claim 4, wherein the zero-order variance is a variance of the probability density function of the noise component from the signal.

7. The method of claim 3, wherein the window of the signal is recorded.

8. The method of claim 3, wherein the probability density function type that approximates the distribution of the histogram is selected from a plurality of probability density function types.

9. The method of claim 3, wherein the distribution of the histogram best fits the m-order differentiated signal and the probability density function type best fits the distribution of the histogram.

10. An apparatus for estimating noise in a signal, the apparatus comprising:
a differentiation module configured to receive the signal and numerically differentiate the signal within a range of a window at least m number of times to obtain an m-order differentiated signal;
a first module configured to determine a histogram that approximates the m-order differentiated signal;
a second module configured to determine a probability density function type that approximates the distribution of the histogram;
a third module configured to determine a variance of the histogram;
a fourth module configured to determine a zero-order variance using the variance of the histogram and the probability density function type; and
an interface module configured to output at least one of the zero-order variance or the probability density function type.

11. The apparatus according to claim 10, wherein the apparatus is further configured to determine another probability density function type and another zero-order variance for a noise component of the signal within another range of another window.

12. The apparatus of claim 10, wherein the probability density function type is determined from a plurality of probability density function types.

13. The apparatus of claim 10, wherein the first, second, third, and fourth modules are the same module.

14. The apparatus of claim 10, wherein the zero-order variance estimates a variance of the probability density function type of a noise component from the signal.

15. A system for estimating a pure signal component of a raw signal that includes the pure signal component and a noise signal component, the system comprising:
an electronic noise estimation unit including:
a differentiation module configured to receive a raw signal and numerically differentiate the raw signal within a range of a window at least m number of times to obtain an m-order differentiated signal;
a first module configured to determine a histogram that approximates the m-order differentiated signal;
a second module configured to determine a probability density function type that approximates the distribution of the histogram;
a third module configured to determine a variance of the histogram; and
a fourth module configured to determine a zero-order variance using the variance of the histogram and the probability density function type; and
a filter coupled to the noise estimation unit, wherein the filter is configured to receive the zero-order variance and the raw signal and to output the estimated pure signal component of the raw signal.

16. The system of claim 15, wherein the filter is an adaptive filter.

17. The system of claim 15, wherein the filter is a Kalman Filter.

18. The system of claim 15, wherein the electronic noise estimation unit is configured to determine a zero-order variance on the raw signal in real time.