Variational Autoencoders for P-wave Detection on Strong Motion Earthquake Spectrograms

Turkan Simge Ispak, Salih Tileylioglu, Erdem Akagunduz · 2026

Read Variational Autoencoders for P-wave Detection on Strong Motion Earthquake Spectrograms by Turkan Simge Ispak, Salih Tileylioglu, Erdem Akagunduz (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2601-05759.txt.

Introduction

Turkan Simge Ispak and 2 co-authors reframe earthquake P-wave detection as an anomaly problem in a 2026 study of strong-motion records. Picking the first arriving wave quickly is critical for early warning, yet records are noisy and labeled examples are scarce. Their tool is the variational autoencoder, a model that learns normal patterns and flags deviations.

Across nearly five hundred configurations, design choices traded reconstruction accuracy against detection power. Skip connections rebuilt signals almost perfectly but also rebuilt noise, masking the warning signal. Attention mechanisms, which favor global context, detected arrivals best, especially within forty kilometers of the source. The findings argue that deliberately imperfect reconstruction is a feature, not a flaw, for self-supervised warning systems.

Catalog record

CREATORTurkan Simge Ispak, Salih Tileylioglu, Erdem Akagunduz
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE38 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2601-05759

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Variational Autoencoders for P-wave Detection on Strong Motion Earthquake Spectrograms Turkan Simge Ispak, Salih Tileylioglu, Erdem Akagunduz Abstract Accurate P-wave detection is critical for earthquake early warning, yet strong-motion records pose challenges due to high noise levels, limited labeled data, and complex waveform characteristics. This study reframes P-wave arrival detection as a self-supervised anomaly detection task to evaluate how architectural variations regulate the trade-off between reconstruction fidelity and anomaly discrimination. Through a comprehensive grid search of 492 Variational Autoencoder configurations, we show that while skip connections minimize reconstruction error (Mean Absolute Error ≈ \approx 0.0012), they induce “overgeneralization”, allowing the model to reconstruct noise and masking the detection signal. In contrast, attention mechanisms prioritize global context over local detail and yield the highest detection performance with an area-under-the-curve of 0.875. The attention-based Variational Autoencoder achieves an area-under-the-curve of 0.91 in the 0 to 40-kilometer near-source range, demonstrating high suitability for immediate early warning applications. These findings establish that architectural constraints favoring global context over pixel-perfect reconstruction are essential for robust, self-supervised P-wave detection. keywords Deep Learning, P-wave Detection, Strong Motion Spectrograms, Earthquake Early Warning, Variational Autoencoders 1 Introduction Earthquake Early Warning (EEW) Systems aim to detect the earliest P-wave onsets quickly and reliably in order to minimize the loss of life and infrastructure damage caused by earthquakes. Seismograph networks sense weak motion situated far from cities, while strong motion stations are placed around the cities to observe the effects in the built environment near faults ( 13 ) . Strong motion sensors record higher amplitudes in noisier settings, which complicates onset detection, but they also have the potential to increase the reliability and speed of the early warning system by expanding data coverage. Traditional methods such as Short-Term Average/Long-Term Average ( \mathit{STA/LTA} ) algorithms ( 20 ) rely on predefined thresholds to detect P-wave arrivals. While effective under ideal conditions, these approaches often struggle to generalize in noisy environments or when applied to diverse seismic datasets. Moreover, as a signal processing approach, PPHASEPICKER ( 10 ) tracks the rate of change of damping energy to determine the P-wave onset. Tests have shown that it offers higher accuracy compared to the \mathit{STA/LTA} method and is successful even at low signal-to-noise ratios. However, it may require specific signal processing parameters and manual verification. In contrast, machine learning methods have shown promise by leveraging data-driven models to learn intricate patterns within seismic data ( 15 ; 14 ) . Figure 1: Detection performance versus reconstruction quality for the four VAE architectures tested in our experiments. Detection is measured by the Area Under the Receiver Operating Characteristic Curve ( \mathit{AUC} , higher is better), and reconstruction is measured by the Mean Absolute Error ( \mathit{MAE} , lower is better). Models that reconstruct more accurately tend to detect anomalies less, effectively demonstrating a trade-off relationship. In low-label-data regimes, self-supervised Variational Autoencoders (VAE) have emerged as a powerful tool for recognizing P-wave arrivals ( 9 ) . Their reconstruction-driven approach captures lower-dimensional manifold representations of complex data without the need for massive labeled datasets. However, if this learned manifold becomes too expressive, the model may fail to discriminate between normal and anomalous data. When models overgeneralize, they can reconstruct out-of-distribution patterns (such as noise) as effectively as the target P-waves ( 6 ; 1 ) . This creates a fundamental trade-off between reconstruction quality and detection performance. For robust early warning, it is crucial to identify architectural elements that leverage this trade-off, forcing the model to selectively fail on anomalies to maximize the detection signal. Currently, the specific architectural inductive biases required to achieve this balance in seismic data remain largely unexplored. In this work, we address this gap by systematically evaluating four Variational Autoencoder (VAE) architectures for P-wave detection on strong motion spectrograms. We explicitly investigate how common architectural biases, namely U-Net style skip connections and transformer self-attention bottlenecks, act as capacity controls that influence this behavior. We hypothesize that while skip connections favor fine detail and high-fidelity reconstruction, attention mechanisms promote global context and superior discriminative focus. By analyzing these components in the frequency domain, we aim to determine which configurations maximize the reconstruction gap between noise and P-wave arrivals, thereby directly improving detection performance. The architectures explored in this study are: a baseline encoder–decoder (Basic-VAE), a U-Net–style model with skip connections (Skip-VAE), a variant with attention blocks (Attention-VAE), and a hybrid combining both (Hybrid-VAE). Figure 1 illustrates the resulting trade-off where the Attention-VAE achieves the best detection performance, while the Skip-VAE yield the lowest reconstruction error. The Hybrid-VAE balances these tasks, whereas the Basic-VAE serves as a baseline performance floor. Figure 2: Unified diagram of the proposed VAE architectures. Components marked with an asterisk (*) are optional, defining four configurations: Basic-VAE (baseline encoder–decoder), Skip-VAE (incorporating long-range skip connections), Attention-VAE (incorporating the self-attention bottleneck), and Hybrid-VAE (incorporating both). The encoder and decoder are symmetric, where each standard residual block consists of two convolutional layers with ReLU activation and a local skip connection. 2 Related Work 2.1 Deep Learning for Seismic Phase Detection In recent years, deep learning has emerged as the state-of-the-art for seismic phase picking, primarily through supervised learning models trained on millions of labeled seismograms. The most prominent of these is PhaseNet proposed by 22 , which reformulates phase picking as an image segmentation task. PhaseNet employs a U-Net architecture introduced by 16 , a fully convolutional encoder-decoder network, to produce probability masks for P-wave, S-wave, and noise, demonstrating remarkable performance on broadband seismic data. Following this trend, other models have incorporated attention mechanisms, first introduced in the Transformer architecture by 18 , to better focus on signal onsets. 17 utilized a recurrent neural network (RNN) with an attention mechanism for P-wave picking and polarity determination. More recently, the Earthquake Transformer (EQTransformer) proposed by 14 adopted the full Transformer architecture, demonstrating its power for simultaneous detection and phase picking. These and other supervised methods ( 15 ; 11 ) have set a high benchmark for accuracy. However, their primary limitation is their reliance on large, meticulously hand-labeled datasets, which are often unavailable or difficult to curate for the specific domain of noisy, near-field strong-motion records. 2.2 Self-Supervised Convolutional Variational Autoencoders and Anomaly Detection Unsupervised and self-supervised methods have proven success in overcoming the data-labeling bottleneck. Generative models are particularly well-suited for this task, with Autoencoders (AEs) being a common choice for learning compressed representations of data. Variational Autoencoders (VAEs), first proposed by 12 , are a powerful extension. Unlike standard AEs, VAEs learn a probabilistic and regularized latent space. This probabilistic structure is a key advantage, as it encourages a continuous and generalized representation, which is highly effective for separating ”normal” from ”anomalous” data. For analyzing spectrograms, which are time-frequency representations, this framework is naturally extended by using convolutional encoders and decoders (Conv-VAEs) to effectively model the local dependencies and hierarchical features within the sequential data ( 8 ) . This approach frames P-wave detection as a self-supervised anomaly detection problem. The model is trained as a one-class classifier, learning the underlying distribution of a single ”normal” class in this case, P-wave arrivals. The model thus learns to reconstruct only the patterns of incoming P-waves. When presented with anomalous inputs (such as

Read the complete text