TL;DR
SOM-CPC is a new unsupervised framework that combines Contrastive Predictive Coding (CPC) with Self-Organizing Maps (SOM) to visualize high-dimensional, high-rate time series on an interpretable 2D grid. By focusing on temporal consistency rather than data reconstruction, it significantly outperforms traditional autoencoder-based models in clustering and topological organization.
What Problem Does This Paper Address?
We are swimming in high-rate time series data—think of the hundreds of samples per second coming from medical wearables (EEG/ECG) or audio sensors. While Deep Learning (DL) is great at compressing this data, the resulting "latent space" is often a "black box" that is difficult for humans to interpret.
Existing solutions have major gaps:
- PCA is linear and often discards vital non-linear information.
- t-SNE creates beautiful clusters but doesn't learn a reusable mapping (you can't easily project new data onto an existing t-SNE plot).
- Deep SOMs (like SOM-VAE) usually rely on reconstruction loss. They try to recreate every tiny wiggle in the signal. However, in high-rate data, those wiggles are often just high-frequency noise. Trying to reconstruct noise actually hampers the model's ability to find meaningful underlying patterns (like sleep stages or speaker identities).
Methods
The authors propose SOM-CPC, which swaps out the standard autoencoder for a contrastive learning objective.
- The Feature Extractor (CPC): Instead of reconstructing the input, the model plays a "prediction game." It takes a window of data and tries to predict the latent representation of future windows while distinguishing them from "negative" samples (random windows from elsewhere). This forces the model to ignore transient noise and focus on "slowly-changing" underlying states.
- The Visualization (SOM): A Self-Organizing Map is integrated directly into the latent space. It consists of a 2D grid of "nodes." During training, the model pulls the "winning" node (the one closest to the data point) and its neighbors toward the data.
- Joint Optimization: Unlike "disjoint" methods where you train a model and then fit a SOM, SOM-CPC uses a joint loss function: $$L_{total} = L_{InfoNCE} (Contrastive) + \alpha L_{topo} (Topological)$$ This allows the SOM to act as a regularizer, helping the encoder learn a more structured and smooth latent space.
Datasets
The model was evaluated on three distinct types of high-rate data:
- Synthetic Data: Sinusoids with frequencies that change via a random walk (20-40 Hz), corrupted with Gaussian noise.
- Physiological Data (MASS Database): Real-world whole-night sleep recordings including EEG, EMG, and EOG (sampled at 128 Hz). The goal was to map windows to five sleep stages (Wake, REM, N1, N2, N3).
- Audio Data (LibriSpeech): Voice recordings from 10 different speakers (sampled at 16 kHz). This tested the model's ability to handle extremely high-rate data and complex semantic structures.
Key Insights and Ideas
- Reconstruction is the Enemy of Clustering: The "aha moment" here is that autoencoders (VAEs) are often too good. By trying to preserve every detail for reconstruction, they fail to group similar states together. CPC’s focus on mutual information across time acts as a natural filter for relevant features.
- The "Topological Anchor": Jointly training the SOM and the encoder creates a "pull" that organizes the latent space. In the audio experiments, this revealed sub-clusters (like different room acoustics for the same speaker) that were completely invisible in standard PCA projections.
- Gaussian > Plus: The authors found that a Gaussian neighborhood kernel in the SOM is superior to the "plus-shaped" kernel used in previous works (like SOM-VAE). The Gaussian kernel provides a more global influence during early training, leading to better overall organization.
Key Results
SOM-CPC consistently outperformed baselines across all metrics:
- Synthetic: It achieved a regression error ($SE_{target}$) of 0.72, compared to 8.02 for SOM-VAE. It also showed much lower Topographic Error (TE), meaning the 2D map better represented the true high-dimensional relationships.
- Sleep Data: SOM-CPC achieved a Purity of 0.78 and NMI of 0.27, outperforming DESOM and SOM-VAE. Qualitatively, as seen above, it produced a clear trajectory of sleep cycles (Wake $\rightarrow$ REM $\rightarrow$ Deep Sleep) on the 2D map, whereas disjoint methods yielded messy, overlapping clusters.
- Audio: The model reached a Purity of 1.00 for speaker identification. Most impressively, it separated recordings of the same speaker into different clusters based on the chapter they were reading, successfully picking up on subtle changes in room acoustics that other models missed.
Limitations and Future Work
While powerful, the authors note a few challenges:
- Hyperparameter Sensitivity: The model requires careful tuning of $\alpha$ (the weight of the SOM loss) and the decay rate of the neighborhood kernel. If the kernel narrows too quickly, the map becomes unstable.
- Stopping Criteria: In a purely unsupervised setting, it is difficult to know exactly when to stop training. The authors found that the best clustering performance doesn't always align with the lowest loss value.
- Future Directions: The authors suggest exploring "soft-cluster" assignments or adding a Gaussian latent prior to further improve the smoothness of the representations. They also see potential in "multi-modal" future predictions to handle data that might branch into multiple possible future states.
Summary updated