Introduction
High-rate time series data, such as EEG signals, audio streams, and industrial sensor feeds, present a significant challenge for interpretability. While deep learning excels at feature extraction, the resulting high-dimensional latent spaces often remain "black boxes" to human observers. Existing approaches like Deep Self-Organizing Maps (SOMs) attempt to map this data onto interpretable 2D grids. However, many current implementations rely on autoencoders, which prioritize raw signal reconstruction. This "reconstruction trap" often forces models to encode high-frequency noise, cluttering the representation and obscuring the underlying states of interest.
Methodology: From Reconstruction to Prediction
The SOM-CPC framework addresses these limitations by replacing the reconstruction objective with a contrastive one. The architecture integrates two core components:
- Contrastive Predictive Coding (CPC): Instead of reconstructing the current data window, the model learns to predict future latent states. By employing the InfoNCE loss, the model is trained to distinguish the correct future window from a set of negative samples. This objective encourages the model to ignore transient noise and focus on "slowly-changing" features—the stable patterns that define the underlying state.
- Self-Organizing Map (SOM): The model jointly learns a 2D grid of codebook vectors. A topological loss ensures that similar data points are mapped to adjacent nodes, creating a physically meaningful "neighborhood" structure.
Unlike disjoint methods that train a feature extractor and SOM sequentially, SOM-CPC utilizes joint optimization. This allows the feature extractor to learn a representation space specifically optimized for the SOM's topological constraints.
Experimental Evaluation
The researchers evaluated SOM-CPC across three distinct domains:
- Synthetic Data: Sinusoids with frequency changes driven by a random walk, testing the model's ability to track evolving parameters.
- Physiological Data (MASS Database): Whole-night sleep recordings (EEG, EMG, EOG) aimed at recreating the five stages of sleep (Wake, REM, N1, N2, N3) in an unsupervised manner.
- Audio Data (LibriSpeech): Voice recordings from 10 speakers to evaluate clustering of discrete identities.
Key Results and Insights
SOM-CPC consistently outperformed strong baselines such as SOM-VAE and DESOM across all metrics. In synthetic tests, it achieved a regression error ($SE_{target}$) of 0.72, a massive improvement over SOM-VAE's 8.02. For sleep stage monitoring, the model reached a Cohen’s Kappa of 0.61, significantly higher than the 0.51–0.53 range of autoencoder-based competitors.
A critical insight from the study is the "Reconstruction Trap." Autoencoders, by attempting to preserve every bit of information for reconstruction, fail to discard the noise that prevents clean clustering. In contrast, contrastive learning acts as a natural filter for high-level state information. Furthermore, because CPC is predictive, it inherently captures the temporal "flow" of data, resulting in smoother trajectories across the 2D map compared to models requiring manually-tuned smoothness penalties.
In audio experiments, SOM-CPC demonstrated "knowledge discovery" capabilities by not only clustering by speaker but also identifying sub-clusters based on room acoustics—patterns not present in the original labels.
Conclusion and Future Directions
SOM-CPC provides a robust framework for creating structured, interpretable representations of high-rate time series. By leveraging contrastive predictive coding, it avoids the pitfalls of reconstruction-based models and uncovers meaningful underlying states. Future work may explore "soft" cluster assignments, cluster hardening to improve map sharpness, and multi-modal future predictions for more complex data streams.
Summary updated