Volume 25 Issue 4
Aug.  2025
Turn off MathJax
Article Contents
ZHANG Ding-kai, WANG Yi-zhe, WANG Peng-fei, PENG Qing, DING Lu. Expressway traffic anomaly event detection model based on dual spatio-temporal masks and bidirectional Mamba state space modeling[J]. Journal of Traffic and Transportation Engineering, 2025, 25(4): 311-327. doi: 10.19818/j.cnki.1671-1637.2025.04.022
Citation: ZHANG Ding-kai, WANG Yi-zhe, WANG Peng-fei, PENG Qing, DING Lu. Expressway traffic anomaly event detection model based on dual spatio-temporal masks and bidirectional Mamba state space modeling[J]. Journal of Traffic and Transportation Engineering, 2025, 25(4): 311-327. doi: 10.19818/j.cnki.1671-1637.2025.04.022

Expressway traffic anomaly event detection model based on dual spatio-temporal masks and bidirectional Mamba state space modeling

doi: 10.19818/j.cnki.1671-1637.2025.04.022
Funds:

National Natural Science Fundation of China 52472350

National Social Science Fundation of China 19XMZ018

Humanities and Social Sciences Research Project of Ministry of Education 20YJAZH130

Zhejiang Provincial Basic Public Welfare Research Program LY23G020007

Zhejiang Provincial Basic Public Welfare Research Program LGF20F020004

General Scientific Research Project of Education of Zhejiang Province Y202147441

More Information
  • Corresponding author: WANG Yi-zhe (1993-), male, postdoctor, PhD, 16wangyizhe@tongji.edu.cn
  • Received Date: 2025-01-15
  • Accepted Date: 2025-04-30
  • Rev Recd Date: 2025-02-27
  • Publish Date: 2025-08-28
  • To address the challenges in traffic anomaly event detection, a traffic anomaly event detection model was proposed based on dual spatio-temporal masks and bidirectional Mamba state space modeling (DSTBM). Masks on the basis of the temporal and spatial extent of anomaly events and their influence range were introduced. The spatio-temporal dynamic effects on traffic caused by anomalies were learned, and the time periods and spatial regions of mask anomalies and their influence range were adapted automatically. A bidirectional Mamba state space model was designed to integrate multi-scale feature extraction with bidirectional state space modeling. The directionality of state space modeling was extended to capture the short-term dynamic features and multi-scale spatio-temporal dependencies of anomalies, and to reduce detection latency. Additionally, an anomaly scoring method was developed through the combination of the isolation forest algorithm with K-means clustering. Anomaly scores were calculated based on spatio-temporal traffic features to distinguish between normal and abnormal traffic states. The proposed model was evaluated on three real datasets. Experimental results demonstrate that DSTBM outperforms all baseline models in the comparative experiments on the SJC and OKA datasets. The indicator precision rate, recall rate, and F1 score, as the evaluation metric for model accuracy, are enhanced by at least 15.32%, 14.98%, and 15.61%, respectively. The indicator latency rate for measuring the model response speed is reduced by 19.79%. In addition, a domestic case study shows that DSTBM maintains effective anomaly detection capabilities in complex urban road environments. The recall rate is 0.607 and the total latency is 12.2 min when K=10%. This highlights its potential applicability and room for enhancement in high-density and intricate road networks. The proposed DSTBM model can effectively capture complex spatio-temporal dependencies and reduce detection latency for traffic anomalies.

     

  • loading
  • [1]
    PAN D, HAMDAR S. From traffic analysis to real-time management: a hazard-based modeling for incident durations extracted through traffic detector data anomaly detection[J]. Transportation Research Record: Journal of the Transportation Research Board, 2024, 2678(2): 389-400. doi: 10.1177/03611981231174445
    [2]
    CHEN Hua, LIU Wei. A review of research on abnormal traffic incident detection in urban roads[C]//China Highway and Transportation Society. Proceedings of 2022 World Transport Convention (WTC2022). Beijing: China Highway and Transportation Society, 2022: 587-593.
    [3]
    YAO Lei, LIU Yuan. Traffic incident duration prediction based on adaptive neural-fuzzy inference system[J]. Computer Engineering, 2014, 40(2): 189-192, 198.
    [4]
    OUNOUGHI C, YAHIA S B. Data fusion for ITS: a systematic literature review[J]. Information Fusion, 2023, 89: 267-291. doi: 10.1016/j.inffus.2022.08.016
    [5]
    SATTAR S, LI S N, CHAPMAN M. Developing a near real-time road surface anomaly detection approach for road surface monitoring[J]. Measurement, 2021, 185: 109990. doi: 10.1016/j.measurement.2021.109990
    [6]
    KALAIR K, CONNAUGHTON C. Anomaly detection and classification in traffic flow data from fluctuations in the flow-density relationship[J]. Transportation Research Part C: Emerging Technologies, 2021, 127: 103178. doi: 10.1016/j.trc.2021.103178
    [7]
    WANG Yuan-yuan, WU Guang-ye, WU Ke-wen, et al. Freeway abnormal traffic situation detection considering data heterogeneity and masking[J]. Journal of Transportation Engineering, 2024, 24(6): 94-99, 112.
    [8]
    YAN Y, ZHANG S, TANG J J, et al. Understanding characteristics in multivariate traffic flow time series from complex network structure[J]. Physica A: Statistical Mechanics and Its Applications, 2017, 477: 149-160. doi: 10.1016/j.physa.2017.02.040
    [9]
    YAO Jun-feng, HE Rui, SHI Tong-tong, et al. Review on machine learning-based traffic flow prediction methods[J]. Journal of Traffic and Transportation Engineering, 2023, 23(3): 44-67.
    [10]
    WU J, CUI Z M, SHI Y J, et al. Traffic flow anomaly detection based on wavelet denoising and support vector regression[J]. Journal of Algorithms and Computational Technology, 2013, 7(2): 209-225. doi: 10.1260/1748-3018.7.2.209
    [11]
    DJENOURI Y, BELHADI A, LIN J C, et al. Adapted K-nearest neighbors for detecting anomalies on spatio-temporal traffic flow[J]. IEEE Access, 2019, 7: 10015-10027. doi: 10.1109/ACCESS.2019.2891933
    [12]
    KONG X J, SONG X M, XIA F, et al. LoTAD: long-term traffic anomaly detection based on crowdsourced bus trajectory data[J]. World Wide Web, 2018, 21(3): 825-847. doi: 10.1007/s11280-017-0487-4
    [13]
    FITTERS W, CUZZOCREA A, HASSANI M. Enhancing LSTM prediction of vehicle traffic flow data via outlier correlations[C]//IEEE. 2021 IEEE 45th Annual Computers, Software, and Applications Conference (COMPSAC). New York: IEEE, 2021: 210-217.
    [14]
    ZHENG Da-qing, LIN Chen-wei, WANG Bing-jie. Traffic flow occasional anomaly detection based on attention-LSTM model[J]. Journal of Tongji University (Natural Science), 2023, 51(6): 923-931.
    [15]
    ZHU G X, ZHAO H B, LIU H Q, et al. A novel LSTM-GAN algorithm for time series anomaly detection[C]//IEEE. 2019 Prognostics and System Health Management Conference (PHM-Qingdao). Qingdao: IEEE, 2019: 1-6.
    [16]
    WANG S, ZHANG Y, HU Y L, et al. Knowledge fusion enhanced graph neural network for traffic flow prediction[J]. Physica A: Statistical Mechanics and Its Applications, 2023, 623: 128842. doi: 10.1016/j.physa.2023.128842
    [17]
    LIU T B, ZHANG J D. An adaptive traffic flow prediction model based on spatiotemporal graph neural network[J]. The Journal of Supercomputing, 2023, 79(14): 15245-15269. doi: 10.1007/s11227-023-05261-9
    [18]
    CUI Jian-xun, YAO Jia, ZHAO Bo-yuan. Review on short- term traffic flow prediction methods based on deep learning[J]. Journal of Traffic and Transportation Engineering, 2024, 24(2): 50-64.
    [19]
    JIN M, KOH H Y, WEN Q S, et al. A survey on graph neural networks for time series: forecasting, classification, imputation, and anomaly detection[J]. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2024, 46(12): 10466-10485. doi: 10.1109/TPAMI.2024.3443141
    [20]
    ZHENG Y, KOH H Y, JIN M, et al. Correlation-aware spatial-temporal graph learning for multivariate time-series anomaly detection[J]. IEEE Transactions on Neural Networks and Learning Systems, 2023, 35(9): 11802-11816.
    [21]
    HU Y, QU A, WORK D. Detecting extreme traffic events via a context augmented graph autoencoder[J]. ACM Transactions on Intelligent Systems and Technology, 2022, 13(6): 1-23.
    [22]
    ZHANG H Y, ZHAO S Y, LIU R H, et al. Automatic traffic anomaly detection on the road network with spatial-temporal graph neural network representation learning[J]. Wireless Communications and Mobile Computing, 2022, 2022(1): 4222827. doi: 10.1155/2022/4222827
    [23]
    DENG L Y, LIAN D F, HUANG Z Y, et al. Graph convolutional adversarial networks for spatiotemporal anomaly detection[J]. IEEE Transactions on Neural Networks and Learning Systems, 2022, 33(6): 2416-2428. doi: 10.1109/TNNLS.2021.3136171
    [24]
    WANG C Z, XING S W, GAO R, et al. Disentangled dynamic deviation transformer networks for multivariate time series anomaly detection[J]. Sensors, 2023, 23(3): 1104.
    [25]
    QU H H, NING L B, AN R, et al. A survey of Mamba[J]. arXiv, (2025-06-17). https://doi.org/10.48550/arXiv.2408.01129.
    [26]
    YUAN D, XUE J Z, SU J S, et al. ST-mamba: spatial-temporal mamba for traffic flow estimation recovery using limited data[C]//IEEE. 2024 IEEE/CIC International Conference on Communications in China (ICCC). New York: IEEE, 2024: 1928-1933.
    [27]
    TAN X, ZHAO M. Self-supervised state space model for real-time traffic accident prediction using eKAN networks[J]. arXiv, (2024-09-09) https://doi.org/10.48550/arXiv.2409.05933.
    [28]
    ZHANG Y Z, TIWARI P, ZHENG Q, et al. A multimodal coupled graph attention network for joint traffic event detection and sentiment classification[J]. IEEE Transactions on Intelligent Transportation Systems, 2023, 24(8): 8542-8554.
    [29]
    SU Qian-hua. Traffic abnormal event detection algorithm based on multi-source perception fusion data[D]. Dalian: Dongbei University of Finance and Economics, 2023.
    [30]
    ZHOU W, YU Y H, ZHAN Y F, et al. A vision-based abnormal trajectory detection framework for online traffic incident alert on freeways[J]. Neural Computing and Applications, 2022, 34(17): 14945-14958.
    [31]
    SHAO Z Q, BELL M G H, WANG Z, et al. Spatial-temporal selective state space (St-Mamba) model for traffic flow prediction[J]. arXiv, (2024-05-18). https://doi.org/10.48550/arXiv.2404.13257.
    [32]
    CHOI J, KIM H, AN M, et al. SpoT-Mamba: learning long-range dependency on spatio-temporal graphs with selective state spaces[J]. arXiv, (2024-06-17). https://doi.org/10.48550/arXiv.2406.11244.
    [33]
    ZHANG H W, ZHU Y, WANG D, et al. A survey on Visual Mamba[J]. arXiv, (2024-04-26). https://doi.org/10.48550/arXiv.2404.15956.
    [34]
    SUO Y F, DING Z N, ZHANG T. The mamba model: a novel approach for predicting ship trajectories[J]. Journal of Marine Science and Engineering, 2024, 12(8): 1321.
    [35]
    HE K, CHEN X, XIE S, et al. Masked autoencoders are scalable vision learners[C]//IEEE. Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. New York: IEEE, 2022: 16000-16009.
    [36]
    GONG Xiao-xing, DONG Pei-xin. Traffic flow anomaly data detection model based on improved isolation forest algorithm[J]. Journal of Chongqing Jiaotong University (Natural Science), 2024, 43(5): 61-69, 90.
    [37]
    LIU C, CHEN J M, LIU H Y, et al. Toward efficient traffic incident detection via explicit edge-level incident modeling[J]. IEEE Internet of Things Journal, 2024, 11(11): 20015-20029.
    [38]
    SU Y, ZHAO Y J, NIU C H, et al. Robust anomaly detection for multivariate time series through stochastic recurrent neural network[C]//ACM. Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. New York: ACM, 2019: 2828-2837.
    [39]
    XU J, WU H, WANG J, et al. Anomaly transformer: time series anomaly detection with association discrepancy[C]//ICLR. Proceedings of the 10th International Conference on Learning Representations (ICLR). Appleton: ICLR, 2022: 1-20.
    [40]
    ZHANG C Y, ZHANG Y, SHAO Q T, et al. BjTT: a large- scale multimodal dataset for traffic prediction[J]. IEEE Transactions on Intelligent Transportation Systems, 2024, 25(11): 18992-19003.

Catalog

    Article Metrics

    Article views (178) PDF downloads(9) Cited by()
    Related

    /

    DownLoad:  Full-Size Img  PowerPoint
    Return
    Return