Automatic detection of mode mixing in empirical mode decomposition using non-stationarity detection: application to selecting IMFs of interest and denoising
- 3.8k Downloads
Empirical mode decomposition splits a signal into several intrinsic mode functions (IMF). An algorithm for the automatic selection of the modes containing the signal of interest was recently proposed. This algorithm is based on statistical analysis describing the noise repartition between IMFs. This algorithm uses an estimate of the signal noise content from the energy of the first IMF, which is supposed to contain a specific part of the total noise and to contain noise only. Mode mixing can give rise to an over-estimation of the noise in the signal. This can lead to more IMFs to be considered as containing only noise and to be erroneously discarded before reconstruction. We propose to use mode mixing detection based on a stationarity test applied to the first IMF. In case of mode mixing, we propose to correct the noise estimation by extracting from the first IMF the part corresponding to the signal of interest. The results obtained with synthetic signals as well as with real mechanical and biomedical signals demonstrate a good performance of the approach proposed here. The first two modes do lose some of their IMF properties in the process. We offer some comments on how these properties can be recovered if needed.
Keywordsempirical mode decomposition mode mixing non-stationary signal detection mode selection denoising
List of abbreviations
empirical mode decomposition
intrinsic mode functions.
The use of the Hilbert-Huang transform is becoming increasingly popular in various domains of research. The method is based on the empirical mode decomposition (EMD), which allows the iterative decomposition of a signal into a series of functions that are referred to as intrinsic mode functions (IMF) .
Noise in the signal of interest will result in the contamination of each mode by a part of the noise. The study of the spectral content and of the statistical characteristics of the EMD modes, computed from Gaussian white noise, led to the definition of a model that can quantify the information content of each IMF . This model was generalized by Flandrin et al.  in the case of fractional Gaussian noise. These models can be used for denoising or for the suppression of an unwanted baseline wander (detrending) of the signal of interest. A fundamental hypothesis that is made, when these models are used for the above application, is that the first IMF contains a specific part of the noise as derived from the above models. An estimate of the energy of the first IMF is then used to adapt the denoising algorithm to the signal and to its corrupting noise. If an error is made in estimating the actual level of noise from the first IMF, it can seriously decrease the performance of the algorithm.
One source of such error can be mode mixing, which corresponds to the alternating presence of several components of the signal of interest on the same IMF . In our application, this mixing mainly involves the high frequency part of the noise and the first high frequency component of the signal. This type of mixing will invalidate the fundamental assumption of the method that the first IMF contains only noise and lead to an over-estimation of the level of noise in the signal.
An algorithm that can prevent mode mixing has recently been proposed . This algorithm is, however, limited to the EMD analysis of signals composed of pure sinusoids. When used on signals that contain non-stationary elements, like those commonly found in real signals (especially those of biomedical or mechanical origin), this algorithm does not perform well. Several authors have, therefore, developed algorithms that are specifically adapted to their signals. An example of this is the algorithm proposed by Blanco-Velasco et al.  for the analysis of ECG. The algorithm presented here does not make any a priori hypothesis concerning the nature of the signal components and therefore can be considered as a very general alternative to existing algorithms used for this purpose.
We first present shortly the classic algorithm for selecting the pertinent modes of a signal. Then, we introduce an improvement of this algorithm, using a stationarity test on the first IMF that allows us to make a more robust estimate of the statistical cutoff values used for selecting IMFs. We then present an evaluation of the performance of our algorithm when applied to synthetic signals and real signals obtained from mechanical and biomedical systems.
Algorithms for IMF selection
We consider that the EMD of a signal x[n] (n = 1,..., N) results in a set of K IMFs d k [n] (k = 1,..., K) and a residual signal r[n]. The signal x is considered to be composed of a signal s[n] that is corrupted with a fractional Gaussian noise Gnf H [n]. The signal Gnf H [n] is stationary by definition.
with C H = W H /βH, β H = 0.719 for H = 0.5, and ρ H = 2.01 + 0.2 × (H - 0.5) + 0.12 × (H - 0.5)2.
where, in the case of H = 0.5 and for a confidence interval of 99%: a H = 0.45 and b H = -1.95. Values of β H , a H , and b H can be found in  for other values of H.
Estimate the energy of the noise W H  on d 1[n]
Estimate the pure noise content, W H [2,..., k], using the estimate in (1)
Estimate the confidence interval T H [1,..., k]
Compare the energy of the IMFs 2 to K with the confidence interval
All the IMFs that have energy greater than the confidence interval are considered to be components of the signal and not to be pure noise.
If the desired result is to remove the noise, the signal is partially reconstructed by summing the selected IMFs and the residual r[n].
The proposed approach
In the absence of any mode mixing, the first IMF (d1[n]) contains noise only and is therefore stationary. If some mode mixing is present, d1[n] is not stationary. We propose here to detect mode mixing using a test of stationarity. To test the stationarity of the first IMF, we used an algorithm developed by Xiao et al. . It is a general and robust method that only requires the user to choose the level of significance for the detection. The value we used in this work is p = 0.05.
If mode mixing is present in the first IMF (d1[n]), it becomes necessary to distinguish between the part of its energy due to noise and the part due to the signal mixed in with the IMF. To do this, we simply consider here the first IMF to be a noisy signal. We therefore apply a wavelet filter, fwavelet, to separate the part due to the original signal, s[n], from the part due to noise, b[n].
Test if d 1[n] is stationary, if yes go to (4)
- 2.Extract from d 1[n] the part that is noise b[n] and the part that is signal s[n] by wavelet filtering (f wavelet(x))
s[n] = f wavelet(d 1[n])
b[n] = d 1[n] - s[n]
- 3.Mode de-mixing
d 1[n] = b[n]
d 2[n] = d 2[n] + s[n]
Apply the classic algorithm for selecting IMFs as described in the previous section.
Every kind of wavelet filter could be used, e.g. discrete wavelet filter or wavelet packet filter. The choice depends on the characteristics of the signal of interest. In this work we chose to use a discrete wavelet filter, which is the simplest of all possible wavelet filters.
Evaluation of the new algorithm
In this work, we tested our algorithm on several kinds of signals: a purely synthetic signal made from three Gabor atoms, a signal generated by a vibrating ball bearing, and finally, an ECG signal generated using a model proposed by McSharry et al. . We evaluated the robustness of our method by adding Gaussian white noise to these signals to obtain SNR values of 20, 18, 16, 14, and 12 dB. For each SNR, we studied 500 realizations.
2. IMF selection or denoising performances
where x and Open image in new window are the original and the denoised signal, respectively.
We compared the 'classic' method (from ) to the improved approach proposed in this paper. We also compared the classic method to our approach, but without adding to the reconstruction the part of the first IMF corresponding to the signal (step 3b). In that way, we tested separately the effect of the cutoff values correction, on the reconstruction of the signal.
We also studied the influence of the wavelet choice and of the number of decomposition levels (step 2a) on the performance of the new algorithm proposed. We tested the Daubechie of order 8, Meyer and Haar wavelets and 5, 8, and 10 decomposition levels. In all experiments, the noise estimation in the decomposition levels was done using the heuristic variant of the Stein's unbiased rule. A soft threshold was then applied on each decomposition level before the reconstruction of the denoised original signal.
3. IMF characteristics
The IMFs and the residual signal from the first IMF are summed up after the application of the algorithm to reconstruct the signal. In the de-mixing step of the proposed algorithm, we chose to add the part of the signal extracted from the first IMF to the second IMF. This addition of a part of the first IMF to the second can make the second IMF lose some of its characteristics as a true IMF. Although this does not affect the process of signal reconstruction and does not diminish the quality of the reconstructed signal, it may be important to preserve the characteristics of the EMD decomposition, if further processing of the signal is to be done. As an example we may be interested in the Hilbert-Huang spectrum of the different IMFs.
To clarify the issue of how much our algorithms have induced the second IMF to differ from a true IMF, we created a method to quantify how close the modified IMF is to a true IMF.
If a signal (s(t)) has all the properties of an IMF, its EMD will result in one and only one IMF that will be identical to the signal itself. In this case, the first IMF's energy relative to the signal will be 100%. If the analyzed signal is not a pure IMF, its decomposition is going to result in several IMFs. Therefore, the energy of the first IMF, obtained from the signal, will be increasingly smaller as the signal is further away from being a pure IMF.
We therefore defined an 'IMF-likeness' measure to quantify the modification to the second IMF. We first applied EMD to the IMFi (modified second IMF) to be tested. Then, we computed the energy of the first IMF, obtained from this decomposition of IMFi, divided by its original energy (energy of IMFi). If IMFi still has the characteristics of an IMF, this ratio gives a number close to 1, but gives a smaller value when IMFi is less like an IMF.
Figure 4 (lower panel) presents the influence of the choice of wavelet. We can notice that the different wavelets influence the quality of the results. In particular, Haar's wavelet provides the worst results. Meyer's and Daubechie's wavelets give similar results even if the error is slightly lower for Meyer's wavelet. The error obtained using either of these two wavelets is lower than 5%. The number of levels of the wavelet decomposition had a negligible effect on the quality of the reconstruction (results not shown). This can be explained by the relatively great difference in the frequency content of the signal and of the noise contained in the first IMF of the synthetic signal under study.
Median of the relative energy (lower quartile-upper quartile), expressed as a percentage of the first IMF obtained after EMD of the: first denoised IMF (A), second IMF + first denoised IMF (B)
We have proposed in this paper an improvement of an existing algorithm used for selecting the IMFs of interest, which is useful in case of mode mixing that can affect the performances of the original algorithm. The existing algorithm uses the first IMF to provide an estimate of the noise contained in each of the IMFs of an EMD. The presence of a mixing of modes introduces errors to this estimation and may lead to a bad selection of the IMFs of interest. Our approach is based on the detection of mode mixing by a test of stationarity on the first IMF, and on the extraction of the part of the first IMF that corresponds to pure noise. The choice of the stationarity test and of the noise extraction algorithm has to be made according to the specific signal of interest. In this work, we chose a stationarity test based on the statistical study of time-frequency surrogates of the signal, and a wavelet filter for separating noise from signal in the first IMF. These choices present the advantage of not making a priori assumptions about the signals under study. The only strong hypothesis is that the corrupting noise is stationary and stays stationary during the decomposition process by EMD. We have shown improved results with respect to the algorithm for signals having very different characteristics. We have demonstrated that our algorithm is robust with respect to noise for all of the studied signals. A de-mixing step is used in the algorithm. We have shown, specifically for the synthetic signals, that this step may not lead to an improvement, depending on the application, i.e. depending on whether the signal is simply to be reconstructed or if a further analysis of the individual IMFs using Hilbert spectrum is the objective of the processing. The evaluation of the proposed IMF likeness measure could indicate if this step is suitable for a further spectral analysis. If the measure obtained on the first denoised IMF is higher than the one obtained on the sum of this first denoised IMF and the second one, we would suggest not doing the step 3b. In this case, it is more suitable to add a new IMF corresponding to the first denoised one, before computing the Hilbert-Huang spectrum of the signal of interest. A deeper analysis of the reasons of these losses of IMF characteristics may help to define more efficient strategies in order to further improve the spectral estimation of the signals of interest.
This work was supported by the Icelandic center for the research «RANNIS».
- 3.Flandrin P, Goncalves P, Rilling G: EMD Equivalent Filter Banks, from Interpretation to Applications. Edited by: NE Huang, SSP Shen. Hilbert-Huang Transform and Its Applications (World Scientific, Singapore, 2005); 57-74.Google Scholar
- 4.Deering R, Kaiser JF: The use of a masking signal to improve empirical mode decomposition. In IEEE International Conference on Acoustics, Speech, and Signal Proceedings. Philadelphia, PA, USA; 2005.Google Scholar
- 6.Xiao J, Borgnat P, Flandrin P: Testing stationarity with time-frequency surrogates. In XVth European Signal Proceedings Conference. Poznan, Poland; 2007.Google Scholar
This article is published under license to BioMed Central Ltd. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.