Mathematical formulation and iterative procedure for robust EMD
The local median approach replaces the standard weighted mean with a weighted median, providing robustness against outliers while preserving the adaptive nature of kernel smoothing.
At each point \(t\), we find the local median as the solution to a weighted L1 minimization:
This is exactly the weighted median of the observations \(\{X_s\}\) with weights \(\{K_h(s-t)\}\).
We use the Epanechnikov kernel with bandwidth \(h\):
| Property | Weighted Mean | Weighted Median |
|---|---|---|
| Optimization | \(\min_m \sum w_i(y_i - m)^2\) | \(\min_m \sum w_i|y_i - m|\) |
| Breakdown Point | 0% | 50% |
| Single Outlier Effect | Unbounded influence | Bounded influence |
| Computation | Simple average | Requires sorting |
Explore the local median approach with these interactive visualizations.
Click anywhere on the chart to see the weighted median calculation at that point
The local median smoothing is applied iteratively with decreasing bandwidth to extract multiple IMFs.
Valid for \(t \in [h_k, 1-h_k]\) (boundary handling).
The residual from iteration \(k\) becomes the input for iteration \(k+1\).
The bandwidth sequence controls the scale of features extracted at each iteration.
Equivalently: \(h_k = h_1 \cdot 2^{-(k-1)/2}\)
| Iteration | Bandwidth | Formula | Captures |
|---|---|---|---|
| 1 | 0.1 | \(h_1\) | Gross trend / low frequency |
| 2 | 0.0707 | \(h_1/\sqrt{2}\) | Medium-scale features |
| 3 | 0.05 | \(h_1/2\) | Finer oscillations |
| 4 | 0.0354 | \(h_1/(2\sqrt{2})\) | High frequency details |
| 5 | 0.025 | \(h_1/4\) | Finest resolvable scale |
The sifting process produces a sequence of Intrinsic Mode Functions.
where \(K\) is determined by the stopping criterion.
The sum of all IMFs approximates the original signal (minus the final residual).