Abstract
Detecting and explaining anomalies in complex event sequences, such as medical records or system logs, is a significant challenge due to their high-dimensional and temporal nature. We present EventThread3 ($ET^3$), a system that combines deep learning with interactive visualization to detect and explain anomalies. By using a Variational AutoEncoder (VAE) to learn "normal" behavior, the system flags outliers and provides "comparison glyphs" to help experts identify missing or redundant events. Evaluation on clinical and security datasets shows that $ET^3$ outperforms traditional baselines and provides actionable insights for domain experts.
Introduction
Anomaly detection in event sequences—such as a patient's journey through a hospital or a user's navigation on a website—is difficult due to high dimensionality and temporal variance. While machine learning models can flag anomalies, they often function as "black boxes." A doctor might be told a patient's record is anomalous, but without knowing why (e.g., "this patient missed a critical medication"), the information isn't actionable. This work aims to bridge the gap between automated detection and human interpretation, ensuring that anomaly flags are accompanied by clear, visual explanations.
Methodology
The Detection Engine (LSTM-VAE)
The authors propose a two-part solution starting with a Variational AutoEncoder (VAE) using Long Short-Term Memory (LSTM) units. The Encoder compresses sequences into a latent space, while the Decoder reconstructs them.
Sequences that are hard to reconstruct or fall into sparse areas of the latent space (measured via Local Outlier Factor) are flagged as anomalies. The reconstruction serves as a "mean sequence" template representing expected normal behavior, which is critical for the subsequent visual comparison.
The Visualization System ($ET^3$)
The $ET^3$ system features seven coordinated views designed for deep exploration. The most innovative component is the Comparison Glyph, which visually encodes the abnormality of time slots and events, the type of anomaly (missing vs. redundant), and the "support rate" from normal sequences.
Datasets and Evaluation
The system was evaluated using two primary datasets:
- SND-CERT: A benchmark dataset of operating system calls for intrusion detection, used for quantitative performance comparison.
- MIMIC-III: A de-identified electronic health record database, focusing on ~10,000 cardiovascular patients for clinical case studies.
Key Insights
- Reconstruction as a "Normal" Template: Comparing real sequences to VAE-generated "synthetic normal" versions allows the system to pinpoint exactly where the two diverge.
- Categorizing Anomalies: The system identifies Missing Events (high reconstruction probability but absent in reality) and Redundant Events (present in reality but low reconstruction probability).
- Human-in-the-Loop: Users can adjust anomaly thresholds and filter comparison groups on the fly, acknowledging that "normality" is often subjective and context-dependent.
Results
Quantitatively, the VAE approach outperformed traditional baselines like k-Nearest Neighbors (kNN) and Hidden Markov Models (HMM) in both true positive rates and Precision-Recall performance.
Qualitatively, a case study with four cardiologists demonstrated the system's practical value. It identified a patient flagged for missing Hydralazine (a common heart failure medication) and incorrectly receiving Phenobarbital (an epilepsy drug rarely used for seniors). Experts concluded the system is a powerful tool for monitoring medical errors or drug misuse.
Limitations and Future Work
Current limitations include the independent measurement of anomaly scores and support rates. Future work will focus on developing an integrated "associative measurement" for abnormality and adapting the model for real-time streaming data, such as live ICU monitoring.
Summary updated