A Prediction-Based Anomaly Detection Method for Traffic Flow Data with Multi-Domain Feature Extraction
The core idea of prediction-based anomaly detection is to identify anomalies by constructing a prediction model and comparing predicted and observed values. However, most existing traffic flow prediction models primarily focus on spatio-temporal features, neglecting comprehensive frequency-domain feature learning. Additionally, anomaly detection accuracy is often limited by insufficient prediction error analysis. To address this limitation, this paper proposes a prediction-based anomaly detection method for traffic flow data with multi-domain feature extraction. The prediction model is built as follows: first, Bidirectional Long Short-Term Memory network (Bi-LSTM) and a Graph Attention Network (GAT) extract temporal and spatial features, respectively. Then, Fast Fourier Transform (FFT) converts time-domain signals into the frequency domain, where Transformer learns magnitude and phase features. Finally, a prediction model is constructed using the extracted time-domain and frequency-domain features. For error analysis, this paper innovatively applies Chebyshev’s inequality to determine the error threshold, identifying anomalies based on whether errors exceed this threshold. Experimental results show that integrating multi-domain features can more comprehensively capture data characteristics and improve model prediction accuracy. In the anomaly detection experiment, it was verified that constructing a high-accuracy prediction model and conducting reasonable error analysis can effectively enable anomaly detection in the data.
Authors
- Mengyi Guo (ORCID: https://orcid.org/0000-0003-4798-509X)
- Jinfeng Qu (ORCID: https://orcid.org/0000-0001-6875-8393)
- Fengxiang Guo (ORCID: https://orcid.org/0000-0002-3194-0762)
- Yingying Lyu (ORCID: https://orcid.org/0009-0003-5467-9506)
- Jinke Zhang (ORCID: https://orcid.org/0000-0003-4629-9899)
- Xianguang Jia (ORCID: https://orcid.org/0009-0004-4661-1779)
Institutions
- Kunming University of Science and Technology (CN)
Publication Details
- Journal
- Applied Sciences
- Published
- 2025-03-16
- DOI
- https://doi.org/10.3390/app15063234
- Citations
- 1
- Primary Topic
- Anomaly Detection Techniques and Applications
- Type
- article
- Field-Weighted Citation Impact
- 2.48
Funders
- National Natural Science Foundation of China