YOLOv13-ECNet:面向交通事故检测的轻量跨尺度注意力模型

骆炫羽 ,  王文胜 ,  沈逸

交通信息与安全 ›› 2026, Vol. 44 ›› Issue (3) : 37 -50.

PDF (7731KB)
交通信息与安全 ›› 2026, Vol. 44 ›› Issue (3) : 37 -50. DOI: 10.3963/j.issn.1674-4861.2026.03.004
交通安全

YOLOv13-ECNet:面向交通事故检测的轻量跨尺度注意力模型

作者信息 +

YOLOv13-ECNet: A Lightweight Cross-scale Attention Model for Traffic Accident Detection

Author information +
文章历史 +
PDF (7915K)

摘要

针对交通事故检测中事故目标形态多变、成像条件退化和样本长尾分布导致的漏检、误检,以及检测稳定性不足问题,研究了1种面向交通事故检测的轻量跨尺度注意力模型YOLOv13-ECNet,旨在为监控终端赋予自动化异常感知能力。交通事故目标常表现为车体碰撞形变、侧翻、起火、烟雾遮挡和多车交互等非规则状态,目标边界与局部纹理特征不稳定;道路监控图像又易受夜间弱光、雨雾天气、运动模糊、远距离成像和车辆遮挡等因素影响,导致事故区域与复杂背景之间的可分性降低。以YOLOv13为基础架构,在其颈部至检测头的P3路径中构建两级极轻量级联增强架构,该结构保持主干网络、检测头、损失函数和训练策略不变,仅在P3路径的横向连接融合前进行局部增强,以减少多尺度融合过程中事故细节信息被弱化的问题。方法中加入EMA(efficient multi-scale attention)多尺度交互模块,通过通道分组、并行多尺度分支和跨空间信息交互增强细粒度纹理与局部上下文表征能力,以改善夜间、雨雾和遮挡场景下事故目标的漏检问题;在EMA输出特征基础上级联CloFormer-EA模块,利用局部高频聚合与全局低频建模的双通路机制,强化对车体形变、烟雾、火焰,以及多车相对位置关系等异常特征的表达。为验证方法有效性,在涵盖白天、夜间、雨雾和遮挡等多种复杂成像条件的8 047张场景交通事故数据集上开展实验,结果表明:与YOLOv13-n相比,参数增加0.86%,计算量增加1.61%,平均精度均值mAP@0.5:0.95提升4.11%;相较于YOLOv5n与YOLOv11n,平均精度均值提升了3.11%、0.94%,参数量最高减少了4.38%,计算复杂度最高下降11.3%,且在边缘设备上的推理延迟低至33.20 ms,体现出较好的精度-效率权衡与边缘部署适配性。

Abstract

Missed and false detections and unstable detection performance result from irregular accident morphologies, degraded imaging conditions, and long-tailed sample distributions. A lightweight cross-scale attention model, YOLOv13-ECNet, is proposed for traffic accident detection on surveillance terminals. Accident targets occur in irregular states such as collision deformation, rollover, fire, smoke occlusion, and multi-vehicle interaction; their boundaries and local texture features remain unstable. Road surveillance images are further degraded by nighttime low illumination, rain and fog, motion blur, long-distance imaging, and occlusion. These factors reduce the separability between accident regions and backgrounds. YOLOv13 serves as the basic architecture, and a two-stage lightweight cascaded structure is added to the P3 path from the neck to the detection head. The backbone, detection head, loss function, and training strategy remain unchanged, and local enhancement is applied before lateral feature fusion along the P3 path. An efficient multi-scale attention (EMA) module enhances fine-grained texture and local context through channel grouping, parallel multi-scale branches, and cross-spatial interaction. A CloFormer-EA module is cascaded after EMA to model local high-frequency details and global low-frequency context for vehicle deformation, smoke, flame, and multi-vehicle spatial relations. Comparative experiments cover more than 8 000 accident images under daytime, nighttime, rain-fog, and occlusion conditions. Relative to YOLOv13-n, parameters increase by 0.86% and computation by 1.61%, while mAP@0.5:0.95 rises by 4.11%. Relative to YOLOv5n and YOLOv11n, mAP@0.5:0.95 rises by 3.11% and 0.94%, respectively. Parameters are reduced by up to 4.38%, and computational complexity declines by up to 11.3%. Edge inference latency reaches 33.20 ms, indicating a favorable accuracy-efficiency trade-off for edge deployment.

关键词

交通安全 / 交通事故检测 / YOLOv13 / 跨尺度注意力 / 轻量化模型 / 目标检测

Key words

traffic safety / traffic accident detection / YOLOv13 / cross-scale attention / lightweight model / object detection

引用本文

引用格式 ▾
骆炫羽,王文胜,沈逸. YOLOv13-ECNet:面向交通事故检测的轻量跨尺度注意力模型[J]. 交通信息与安全, 2026, 44(3): 37-50 DOI:10.3963/j.issn.1674-4861.2026.03.004

登录浏览全文

4963

注册一个新账户 忘记密码

参考文献

[1]

张浩晨, 张竹林, 史瑞岩, 等 . YOLO—CDC:优化改进YOLOv8的车辆目标检测算法[J]. 计算机工程与应用, 2025, 61(13): 124-137.

[2]

ZHANG H C, ZHANG Z L, SHI R Y, et al. YOLO—CDC:an optimized and improved YOLOv8 vehicle object detection algorithm[J]. Computer Engineering and Applications, 2025, 61(13): 124-137.(in Chinese)

[3]

王天硕, 高景伯, 童盛军 . 面向不平衡数据的SMOTE—LSTM车辆事故检测方法[J]. 交通信息与安全, 2025, 43(1): 52-60.

[4]

WANG T S, GAO J B, TONG S J . Vehicle accident detection method based on SMOTE—LSTM for imbalanced data[J]. Journal of Transport Information and Safety, 2025, 43(1): 52-60.(in Chinese)

[5]

孙竞航 . 基于4D毫米波雷达的路侧感知与交通安全态势评估[D]. 长春: 吉林大学, 2025.

[6]

SUN J H . Roadside perception and traffic safety situation assessment based on 4D millimeter wave radar[D]. Changchun:Jilin University, 2025.(in Chinese)

[7]

WANG T, KIM S, JI W, et al. DeepAccident:a motion and accident prediction benchmark for V2X autonomous driving[C]. The AAAI Conference on Artificial Intelligence,Vancouver,Canada:AAAI Press, 2024.

[8]

TERVEN J, CORDOVA—ESPARZA D, ROMERO—GONZALEZ J A . A comprehensive review of YOLO architectures in computer vision:from YOLOv1 to YOLOv8 and YOLO—NAS[J]. Machine Learning and Knowledge Extraction, 2023, 5(4): 1680-1716.

[9]

周力, 代亮, 杨杰, 等 . 基于CRD—YOLOv5s的交通场景目标检测[J]. 长安大学学报(自然科学版), 2025, 45(5): 186-199.

[10]

ZHOU L, DAI L, YANG J, et al. Traffic scene object detection based on CRD—YOLOv5s[J]. Journal of Chang'an University(Natural Science Edition), 2025, 45(5): 186-199.(in Chinese)

[11]

邓召学, 刘灿, 郝丙森, 等 . 面向长尾分布和特征缺失的交通标志目标检测算法[J]. 吉林大学学报(工学版), 2026, 56(6): 1642-1654.

[12]

DENG Z X, LIU C, HAO B S, et al. Traffic sign object detection algorithm oriented to long tail distribution and feature missing[J]. Journal of Jilin University(Engineering and Technology Edition), 2026, 56(6): 1642-1654.(in Chinese)

[13]

翟永杰, 朱浩硕, 李佳蔚, 等 . VDD—YOLO:用于车辆变形损伤的评估方法[J]. 科学技术与工程, 2025, 25(29): 12560-12569.

[14]

ZHAI Y J, ZHU H S, LI J W, et al. VDD—YOLO:an evaluation method for vehicle deformation damage[J]. Science Technology and Engineering, 2025, 25(29): 12560-12569.(in Chinese)

[15]

张逊逊, 朱旭, 李晓伟 . 基于特征交互和多模态自适应融合的车辆再识别方法[J]. 交通信息与安全, 2025, 43(4): 110-118.

[16]

ZHANG X X, ZHU X, LI X W . Vehicle re—identification method based on feature interaction and multimodal adaptive fusion[J]. Journal of Transport Information and Safety, 2025, 43(4): 110-118.(in Chinese)

[17]

LEI M, LI S, WU Y, et al. YOLOv13:real—time object detection with hypergraph—enhanced adaptive visual perception[EB/OL].(2025—06—17)[2025—12—08]. https://arxiv.org/abs/2506.17733.

[18]

OUYANG D, HE S, ZHAN J, et al. Efficient multi—scale attention module with cross—spatial learning[C]. IEEE International Conference on Acoustics,Speech and Signal Processing(ICASSP),Rhodes Island,Greece:IEEE, 2023.

[19]

FAN Q, HUANG H, CHEN M, et al. Rethinking local perception in lightweight vision transformer[C]. The IEEE/CVF International Conference on Computer Vision(ICCV),Paris,France:IEEE, 2023.

[20]

HUANG D, ZHANG G Y, LI Z X, et al. Light—YOLO:a lightweight and high—performance network for detecting small obstacles on roads at night[J]. Computer Vision and Image Understanding, 2025, 259: 104428.

[21]

KHAN S H, NASEER M, HAYAT M, et al. Transformers in vision:a survey[J]. ACM Computing Surveys, 2022, 54(10): 1-41.

[22]

LIN T Y, MAIRE M, BELONGIE S, et al. Microsoft COCO:common objects in context[C]. European Conference on Computer Vision (ECCV),Zurich,Switzerland:Springer, 2014.

[23]

赵静, 李京谦, 杨蕾, 等 . 基于PConv—CGLU与重参数检测头的轻量化膜下棉苗实时检测算法[J]. 农业工程学报, 2025, 41(18): 151-162.

[24]

ZHAO J, LI J Q, YANG L, et al. Lightweight real—time detection algorithm for cotton seedlings under plastic film based on PConv—CGLU and re—parameterized detection head[J]. Transactions of the Chinese Society of Agricultural Engineering, 2025, 41(18): 151-162.(in Chinese)

[25]

HUANG P, TIAN S, SU Y, et al. IA—CIOU:an improved IOU bounding box loss function for SAR ship target detection methods[J]. IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, 2024, 17: 10569-10583.

[26]

ZHANG H, XU C, ZHANG X . Shape—IoU:more precise metric considering bounding box shape and scale[EB/OL].(2023—12—29)[2025—12—01].https://arxiv.org/abs/2312.17663.

[27]

REZATOFIGHI H, TSOI N, GWAK J, et al. Generalized intersection over union:a metric and a loss for bounding box regression[C]. The IEEE/CVF Conference on Computer Vision and Pattern Recognition(CVPR). Long Beach,USA:IEEE, 2019.

[28]

ZHENG Z, WANG P, REN D, et al. Enhancing geometric factors in model learning and inference for object detection and instance segmentation[J]. IEEE Transactions on Cybernetics, 2022, 52(8): 8574-8586.

[29]

赵文红, 王巍, 姚振, 等 . 注意力增强的YOLOv5在电力线绝缘子缺陷检测中的应用[J]. 太赫兹科学与电子信息学报, 2025, 23(11): 1-8.

[30]

ZHAO W H, WANG W, YAO Z, et al. Application of attention—enhanced YOLOv5 in power line insulator defect detection[J]. Journal of Terahertz Science and Electronic Information Technology, 2025, 23(11): 1-8.(in Chinese)

[31]

崔广, 李宇杰, 王艳, 等 . 基于改进YOLOv8s算法的地铁轨道缺陷目标智能检测方法[J]. 交通运输工程学报, 2025, 25(6): 1-12.

[32]

CUI G, LI Y J, WANG Y, et al. Intelligent detection method for subway track defects based on improved YOLOv8s algorithm[J]. Journal of Traffic and Transportation Engineering, 2025, 25(6): 1-12.(in Chinese)

[33]

周屯极, 张扬宇, 孟可, 等 . MCT—YOLO:航拍视角下小目标检测算法[J]. 计算机工程与应用, 2025, 61(10): 1-10.

[34]

ZHOU T J, ZHANG Y Y, MENG K, et al. MCT—YOLO:small object detection algorithm from aerial view[J]. Computer Engineering and Applications, 2025, 61(10): 1-10.(in Chinese)

[35]

ALLMENDINGER A, SALTIK A O, PETEINATOS G G, et al. Assessing the capability of YOLO— and transformer—based object detectors for real—time weed detection[J]. Precision Agriculture, 2025, 26: 52.

[36]

姜天豪, 王瑞 . 基于多头注意力时空图卷积网络的交通事故预测[J]. 上海大学学报(自然科学版), 2025, 31(4): 632-644.

[37]

JIANG T H, WANG R . Traffic accident prediction based on multi—head attention spatio—temporal graph convolutional networks[J]. Journal of Shanghai University(Natural Science Edition), 2025, 31(4): 632-644.(in Chinese)

基金资助

国家重点研发计划项目(2020YFB1713203)

北京市教育委员会科研计划项目(KM202411232023)

北京信息科技大学“青年骨干教师”支持计划项目(YBT202403)

AI Summary AI Mindmap
PDF (7731KB)

0

访问

0

被引

详细

导航
相关文章

AI思维导图

/

〈 〉