TL;DR
PSDNorm is a novel deep learning normalization layer designed specifically for signals that accounts for temporal auto-correlations and spectral content. By aligning feature maps to a running "average" power spectrum using Optimal Transport, it achieves state-of-the-art performance in sleep staging across 10 diverse datasets and proves to be four times more data-efficient than standard normalization methods.
What Problem Does This Paper Address?
In biomedical applications like sleep staging (classifying EEG signals into sleep phases), models often fail when deployed in the real world. This is due to distribution shift: data collected from different subjects, using different recording devices, or in different clinical settings can look vastly different to a machine learning model.
Standard normalization layers like BatchNorm or InstanceNorm are the industry workhorses for stabilizing training, but they have a major flaw when it comes to signals: they treat every time point as an independent sample. They normalize the mean and variance but ignore the "rhythm" or frequency content of the signal—what engineers call the Power Spectral Density (PSD). While some preprocessing techniques exist to align these spectra, they cannot be easily integrated inside a neural network as a trainable layer.
Methods
The authors introduce PSDNorm, a "plug-and-play" layer that can replace BatchNorm or InstanceNorm in any architecture. Instead of just shifting and scaling values, PSDNorm performs a more sophisticated alignment:
- PSD Estimation: It uses the Welch method to estimate the frequency content (PSD) of the incoming feature maps.
- Running Barycenter: During training, the layer maintains a "running average" PSD (a Riemannian barycenter) that represents the typical spectral distribution of the training data.
- f-Monge Mapping: It applies a linear filter—implemented as a temporal convolution—to transform the input signal so its spectrum matches the running average. This is based on the theory of Optimal Transport, specifically Monge mapping between Gaussian distributions.
- Differentiability: Crucially, the entire process is differentiable, allowing the model to learn through the normalization process.
Datasets
The study is one of the largest of its kind, utilizing 10 different sleep datasets (including SHHS, MROS, and PhysioNet) totaling over 10,000 subjects and 10 million samples.
To test true "real-world" performance, the authors used a Leave-One-Dataset-Out (LODO) protocol. They trained the model on nine datasets and tested it on the tenth, completely unseen dataset, repeating this for all ten combinations.
Key Insights and Ideas
- Spectral Alignment is Key: Standard normalization only fixes the "volume" (variance) of a signal. PSDNorm fixes the "tone" (spectral distribution). PSDNorm achieves a much tighter alignment of signals across a batch compared to InstanceNorm.
- Data Efficiency: One of the most striking findings is that PSDNorm is incredibly robust to data scarcity. A model using PSDNorm trained on only 25% of the data can outperform a standard BatchNorm model trained on the full 10,000-subject dataset.
- Robustness to Hard Cases: PSDNorm provides the biggest boosts on the most "difficult" subjects—those whose signals are furthest from the norm—making the model more reliable for diverse patient populations.
Key Results
- State-of-the-Art (SOTA): PSDNorm consistently outperformed BatchNorm, LayerNorm, and InstanceNorm across both CNN (U-Sleep) and Transformer-based architectures.
- Quantitative Gains: On the challenging LODO task, PSDNorm achieved a mean Balanced Accuracy of 79.51%, surpassing BatchNorm (78.14%) and InstanceNorm (79.26%).
- Statistical Significance: Critical Difference analysis confirms that PSDNorm's improvements are statistically significant across multiple architectures.
- Low Overhead: Despite the complex math involving Fourier Transforms, PSDNorm only increases training time by about 10% and has a negligible impact on inference speed.
Limitations and Future Work
The authors identify a few areas for further exploration:
- Hyperparameter Tuning: PSDNorm introduces a filter size parameter ($f$). While the paper shows performance is stable for $f$ values between 5 and 11, choosing this automatically for different types of signals remains a challenge.
- Gaussian Assumption: The underlying Monge mapping assumes a Gaussian distribution for the second-order statistics. While this works well for EEG, it might need adaptation for highly non-Gaussian signals.
- Broader Applications: The current work focuses on sleep staging. Future research could extend PSDNorm to other domains like audio processing, seismic signal analysis, or other biomedical signals like ECG.
Summary updated