Abstract
The Laser Interferometer Gravitational-Wave Observatory (LIGO) is highly sensitive to cosmic events but is frequently hindered by "glitches"—transient instrumental or environmental noise. Traditional classification methods rely on manual labeling, which is unscalable and fails to adapt to evolving noise profiles. This paper presents the Cross-Temporal Spectrogram Autoencoder (CTSAE), a fully unsupervised framework for glitch clustering. By utilizing a hybrid Convolutional Neural Network (CNN) and Vision Transformer (ViT) architecture across multiple temporal scales, CTSAE learns robust latent representations without human intervention. Experimental results on the GravitySpy O3 dataset demonstrate that CTSAE significantly outperforms existing semi-supervised methods, providing a scalable solution for noise characterization in gravitational wave astronomy.
Introduction
The detection of gravitational waves requires unprecedented precision, making LIGO sensitive to even the slightest environmental disturbances. These disturbances, known as glitches, can mimic or mask astrophysical signals, necessitating rigorous data cleaning. While the Gravity Spy project has successfully utilized crowdsourcing and supervised learning to categorize these events, the approach faces two critical limitations: the labeling bottleneck—where the sheer volume of auxiliary data exceeds human capacity—and the non-stationary nature of detector noise, which renders static models obsolete as hardware is upgraded.
To address these challenges, we introduce the Cross-Temporal Spectrogram Autoencoder (CTSAE). CTSAE is designed to discover and cluster glitch morphologies in a completely unsupervised manner, allowing for the identification of known classes and the discovery of novel noise types without requiring pre-labeled training data.
Methodology
Multi-Branch Temporal Input
Unlike standard models that analyze a single fixed-duration spectrogram, CTSAE employs a multi-branch input strategy. The model processes four distinct spectrograms of the same event at varying resolutions: 0.5s, 1.0s, 2.0s, and 4.0s. This multi-scale approach ensures the model captures both high-frequency, short-duration "snaps" and lower-frequency, long-duration "rumbles" that might be missed at a single scale.
CNN-ViT Hybrid Architecture
Each temporal branch utilizes a hybrid block combining CNNs and Vision Transformers (ViTs):
- CNN Layers: Responsible for extracting local spatial features and textures, effectively identifying the immediate "shape" of the glitch.
- ViT Layers: Capture global context and long-range dependencies, modeling how the noise evolves across the entire temporal window.
CLS Fusion Module
The core innovation of CTSAE is the shared CLS (classification) token fusion module. Instead of processing branches in isolation, the model uses a unified CLS token across all four temporal branches. This mechanism forces the branches to communicate, reconciling features from different time scales into a single, cohesive representation. This fusion avoids the computational redundancy of "all-attention" mechanisms while focusing on the most discriminative features.
Unsupervised Clustering
CTSAE functions as an autoencoder, compressing high-dimensional spectrogram data into a low-dimensional latent vector. Following training, a K-Means clustering algorithm is applied to these latent vectors to group similar glitches. This allows the model to organize data based on structural similarity rather than human-provided labels.
Experimental Setup
The model was evaluated using the GravitySpy O3 dataset, focusing on the main strain channel. The dataset comprises 41,745 glitches across 23 human-defined categories (e.g., "Blips," "Whistles," "Koi Fish"). The data was partitioned into training (70%), validation (10%), and testing (20%) sets. Crucially, while ground-truth labels were available, they were only used post-hoc to evaluate the accuracy of the unsupervised clusters.
Results and Discussion
Performance Metrics
The performance was measured using the Adjusted Rand Index (ARI) and Normalized Mutual Information (NMI), which quantify the alignment between unsupervised clusters and ground-truth labels.
- Comparison with DIRECT: CTSAE achieved an ARI of 0.4091, nearly doubling the performance of the semi-supervised DIRECT model (0.2137), which is currently utilized in LIGO pipelines.
- Comparison with VAT: CTSAE outperformed Virtual Adversarial Training (VAT) when VAT was provided with 1% labeled data. CTSAE only trailed VAT when the latter was granted 5% or more labeled data, highlighting the efficiency of the CTSAE feature extraction.
Qualitative Insights
Qualitative analysis of the autoencoder's reconstructions indicates that the model effectively "denoises" spectrograms, focusing on the essential structural features of the glitch while ignoring background fluctuations. Furthermore, the multi-temporal approach proved vital; glitches that appeared identical in a 0.5s window were easily distinguished when the model incorporated the 4.0s context.
Conclusion and Future Work
CTSAE represents a significant advancement in the unsupervised analysis of gravitational wave data. By successfully outperforming semi-supervised benchmarks, it demonstrates that deep temporal fusion can compensate for a lack of manual labels.
Future research will focus on addressing class imbalance within the GravitySpy dataset to better identify rare glitch types. Additionally, the team aims to expand CTSAE to auxiliary channels—such as seismic and power line monitors—to facilitate root-cause analysis of instrumental noise. This scalability is essential for the next generation of gravitational wave detectors, where the volume of data will far exceed human labeling capabilities.
Summary updated