Physiological time series such as electrocardiograms (ECG) and electroencephalograms (EEG) exhibit complex temporal structure, substantial acquisition variability, and a strong need for transparent decision-making. Although deep models can achieve high detection performance, they often provide limited insight into why a segment is anomalous, how local anomalies relate over time, and whether a detection belongs to a broader recurring pattern. We propose Signal2Symbol, a neuro-symbolic framework for explainable biosignal anomaly detection. The method first converts ECG/EEG signals into symbolic sequences using either a learned VQ-VAE (Vector Quantized Variational Autoencoder) codebook or a SAX (Symbolic Aggregate approXimation) baseline. It then constructs bigram enriched token-window transactions and scores anomalies through rare itemset evidence derived from minimal rare itemset mining. Detected anomalous windows are merged into intervals and related using Allen interval algebra, enabling composite temporal explanations such as escalation chains, artifact overlap, and cross-channel synchrony. Finally, we introduce a rare temporal concept lattice based on Formal Concept Analysis (FCA), which groups anomalous intervals by shared rare symbolic evidence, Allen temporal relations, channel context, and robustness attributes. The resulting Galois lattice compresses many local detections into interpretable families of temporal-symbolic anomalies. We evaluate on three public benchmarks: MIT-BIH Arrhythmia (beat-level ECG), PTB-XL (record-level ECG), and the Bonn EEG dataset (segment-level EEG). We stress-test robustness under additive noise and baseline-wander perturbations. The results highlight the value of neuro-symbolic tokenization for temporal anomaly analysis and show that Allen/FCA reasoning provides compact, interpretable summaries of local detections.
Figures & tables
Fig. 1 : Signal2Symbol pipeline. Raw ECG/EEG signals are tokenized using SAX or VQ-VAE, transformed into bigram-enriched symbolic transactions, scored by rare-pattern evidence, merged into intervals, related through Allen algebra, and organized into FCA/Galois lattices for visual explanation.
Fig. 2 : VQ-VAE tokenization. Each ECG beat or EEG window is encoded, assigned to the nearest codebook prototype, reconstructed through a decoder, and represented as a symbolic token aligned with timestamps.
Interval
R1
R2
long-duration
escalation
overlap-artifact
A1
×
×
A2
×
×
×
A3
×
×
A4
×
×
×
A5
×
×
×
×
TABLE I : Toy Formal Context mapping anomaly intervals to attributes.
Fig. 3 : Concept lattice of the toy formal context in Table I .
Dataset
Method
AUROC ↑
AUPRC ↑
MIT-BIH
IF (200 trees)
0.790
0.405
LOF ( k=20 )
0.737
0.423
USAD
0.750
0.341
SAX+Rare
0.605
0.198
Signal2Symbol (VQ-VAE+Rare)
0.818
0.547
PTB-XL
IF (200 trees)
0.546
0.615
TABLE II : Detection results across ECG and EEG datasets. MIT-BIH is evaluated at beat-level, PTB-XL at record-level (lead II only), and Bonn at segment-level.
Setting
AUROC ↑
AUPRC ↑
Notes
Tokenizer
SAX ( ∣Σ∣=5,P=16 )
0.579
0.911
fixed discretization
SAX ( ∣Σ∣=6,P=16 )
0.536
0.898
larger alphabet
SAX ( ∣Σ∣=6,P=20 )
0.512
0.891
more segments
VQ-VAE ( K=128 )
0.710
0.959
learned codebook
VQ-VAE ( K=256 )
0.710
0.959
saturates at K=128
TABLE III : Ablation study: effect of tokenizer, alphabet size, and PAA resolution on Bonn EEG.
Fig. 4 : Sensitivity of AUROC and AUPRC to the support threshold τ on the Bonn EEG dataset. The VQ-VAE model exhibits remarkable stability across lower thresholds.
Dataset
Intervals
Concepts
Compression ↑
Intent ↓
Bonn EEG
2061
40
51.5 ×
3.2
MIT-BIH
2154
32
67.3 ×
4.1
PTB-XL
585
144
4.1 ×
4.0
TABLE IV : Explanation quality across datasets. Compression is the ratio of detected anomaly intervals to retained iceberg-lattice concepts; Intent is the mean number of attributes per retained concept.
Method
Clean AUROC
Noise Δ
Wander Δ
SAX+Rare ( ∣Σ∣=5 )
0.579
− 0.002
− 0.024
VQ-VAE+Rare ( K=128 )
0.710
0.000
0.000
TABLE V : Robustness ( Δ AUROC vs. clean) on Bonn EEG. Noise column reports worst-case Δ across SNR ∈{5,10,20} dB; Wander column across amplitudes ∈{0.1,0.3,0.5} .
Fig. 5 : Rare Temporal Concept Lattice generated from 30 anomaly intervals on Bonn EEG (Set E, Seizure). The FCA lattice compresses individual detections into a hierarchy of concepts based on shared temporal attributes (e.g., long-duration ) and rare symbolic patterns ( Ri ). Deeper nodes represent more specific anomaly signatures.
Time-Series Anomaly Detection identifies unusual patterns or events in sequential data, from sensor readings and network traffic to health and industrial telemetry.
Department of Industrial and Management Engineering Korea University · Mirae Asset Securities · Department of Industrial Engineering Seoul National University
German Research Center for Artificial Intelligence (DFKI), Kaiserslautern, Germany · Rheinland-Pfälzische Technische Universität Kaiserslautern-Landau, Germany · Paul Wurth S.A, Luxembourg