Anomaly Detection Using Generative Language Models and Deep Feature-Based Time Series Similarity
Junpyo Lee, Jungmu Choi, Jung Min Park et al. · IEEE Access · 2025
Time series data play a critical role in decision-making across domains such as environmental monitoring, industrial equipment management, and financial market analysis. However, these data are highly susceptible to distortions caused by noise, anomalies, and sensor failures. Early detection and interpretability of abnormal patterns are essential to ensuring the reliability of data-driven systems. This paper proposes a novel anomaly detection framework that integrates large language models (LLMs) with time series retrieval-augmented generation. Traditional anomaly detection methods often rely on statistical models or single deep learning architectures, which struggle to capture irregular patterns and lack interpretability. Our method segments time series into interpretable subsequences, embeds them into high-dimensional vectors, and retrieves similar historical cases from a vector database. In addition, structural similarity across spatially adjacent sensors is quantified using Dynamic Time Warping (DTW) and Z-score metrics. These analytical results are then used to construct prompts, which are passed to an LLM to generate natural language decisions and explanations. The proposed framework enables both accurate detection and human-readable reasoning. Evaluated on real-world air quality monitoring data from South Korea, our approach reduced the false positive rate by over 50%, while maintaining recall, thereby validating its practical reliability and explainability compared to a segmentation-only approach.
Cited by 4 works. doi:10.1109/access.2025.3604216
Authors
References
- Long Short-Term Memory
- U-Net: Convolutional Networks for Biomedical Image Segmentation
- Exploiting Generative AI to Scale up Intelligent Tutoring Systems
- Density Estimation for Statistics and Data Analysis
- Dynamic programming algorithm optimization for spoken word recognition
- Nonlinear principal component analysis using autoassociative neural networks
- Support vector machines
- Optimal Detection of Changepoints With a Linear Computational Cost
- Time series classification from scratch with deep neural networks: A strong baseline
- Fast Kd-Trees for the Kullback-Leibler Divergence and Other Decomposable Bregman Divergences