IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v11y2023i13p2884-d1180733.html
   My bibliography  Save this article

Traffic Accident Detection Using Background Subtraction and CNN Encoder–Transformer Decoder in Video Frames

Author

Listed:
  • Yihang Zhang

    (Department of Autonomous Things Intelligence, Dongguk University-Seoul, Seoul 04620, Republic of Korea)

  • Yunsick Sung

    (Division of AI Software Convergence, Dongguk University-Seoul, Seoul 04620, Republic of Korea)

Abstract

Artificial intelligence plays a significant role in traffic-accident detection. Traffic accidents involve a cascade of inadvertent events, making traditional detection approaches challenging. For instance, Convolutional Neural Network (CNN)-based approaches cannot analyze temporal relationships among objects, and Recurrent Neural Network (RNN)-based approaches suffer from low processing speeds and cannot detect traffic accidents simultaneously across multiple frames. Furthermore, these networks dismiss background interference in input video frames. This paper proposes a framework that begins by subtracting the background based on You Only Look Once (YOLOv5), which adaptively reduces background interference when detecting objects. Subsequently, the CNN encoder and Transformer decoder are combined into an end-to-end model to extract the spatial and temporal features between different time points, allowing for a parallel analysis between input video frames. The proposed framework was evaluated on the Car Crash Dataset through a series of comparison and ablation experiments. Our framework was benchmarked against three accident-detection models to evaluate its effectiveness, and the proposed framework demonstrated a superior accuracy of approximately 96%. The results of the ablation experiments indicate that when background subtraction was not incorporated into the proposed framework, the values of all evaluation indicators decreased by approximately 3%.

Suggested Citation

  • Yihang Zhang & Yunsick Sung, 2023. "Traffic Accident Detection Using Background Subtraction and CNN Encoder–Transformer Decoder in Video Frames," Mathematics, MDPI, vol. 11(13), pages 1-15, June.
  • Handle: RePEc:gam:jmathe:v:11:y:2023:i:13:p:2884-:d:1180733
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/11/13/2884/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/11/13/2884/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Lvyang Qiu & Shuyu Li & Yunsick Sung, 2021. "DBTMPE: Deep Bidirectional Transformers-Based Masked Predictive Encoder Approach for Music Genre Classification," Mathematics, MDPI, vol. 9(5), pages 1-17, March.
    2. Minhee Kang & Wooseop Lee & Keeyeon Hwang & Young Yoon, 2022. "Vision Transformer for Detecting Critical Situations and Extracting Functional Scenario for Automated Vehicle Safety Assessment," Sustainability, MDPI, vol. 14(15), pages 1-19, August.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Zhe Jiang & Shuyu Li & Yunsick Sung, 2022. "Enhanced Evaluation Method of Musical Instrument Digital Interface Data based on Random Masking and Seq2Seq Model," Mathematics, MDPI, vol. 10(15), pages 1-17, August.
    2. Shuyu Li & Yunsick Sung, 2023. "MRBERT: Pre-Training of Melody and Rhythm for Automatic Music Generation," Mathematics, MDPI, vol. 11(4), pages 1-14, February.
    3. Yihang Zhang & Yunsick Sung, 2023. "Hybrid Traffic Accident Classification Models," Mathematics, MDPI, vol. 11(4), pages 1-16, February.
    4. Yihang Zhang & Yunsick Sung, 2023. "Traffic Accident Detection Method Using Trajectory Tracking and Influence Maps," Mathematics, MDPI, vol. 11(7), pages 1-14, April.
    5. Zepeng Gao & Jianbo Feng & Chao Wang & Yu Cao & Bonan Qin & Tao Zhang & Senqi Tan & Riya Zeng & Hongbin Ren & Tongxin Ma & Youshan Hou & Jie Xiao, 2022. "Research on Vehicle Active Steering Stability Control Based on Variable Time Domain Input and State Information Prediction," Sustainability, MDPI, vol. 15(1), pages 1-18, December.
    6. Yu-Huei Cheng & Che-Nan Kuo, 2022. "Machine Learning for Music Genre Classification Using Visual Mel Spectrum," Mathematics, MDPI, vol. 10(23), pages 1-19, November.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:11:y:2023:i:13:p:2884-:d:1180733. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.