Welcome to Journal of Graphics share: 

Journal of Graphics ›› 2025, Vol. 46 ›› Issue (2): 249-258.DOI: 10.11996/JG.j.2095-302X.2025020249

• Image Processing and Computer Vision • Previous Articles     Next Articles

Research on improved YOLOv8 detection algorithm for diesel vehicle emission of black smoke

ZHANG Lili1,3(), YANG Kang1, ZHANG Ke1, WEI Wei1, LI Jing1, TAN Hongxin2(), ZHANG Xiangyu3   

  1. 1. School of Information Engineering, Beijing Institute of Petrochemical Technology, Beijing 102617 China
    2. PLA, No. 93184 Troop, Beijing 100076, China
    3. Xinghe Environmental Protection Technology Co., LTD., Zhengzhou Henan 450001, China
  • Received:2024-07-22 Accepted:2024-11-25 Online:2025-04-30 Published:2025-04-24
  • Contact: TAN Hongxin
  • About author:First author contact:

    ZHANG Lili (1988-), associate professor, Ph.D. His main research interest covers intelligent transportation. E-mail:zhanglili@bipt.edu.cn

  • Supported by:
    Ningxia Natural Science Foundation(2023AAC03889);Beijing Digital Education Research Project(BDEC2022619048);Research and Development Program of Beijing Municipal Education Commission(KM202410017006)

Abstract:

The emission of black smoke from diesel vehicles is a critical and challenging issue in road traffic environmental protection enforcement. Due to the influence of complex environmental conditions, to address the limitations of existing black smoke detection methods in terms of accuracy and speed, a lightweight detection model of black smoke emission from diesel vehicles based on improved YOLOv8 was proposed. Firstly, based on the YOLOv8 backbone network, a lightweight feature extraction module C2f-FasterRep was designed to improve the feature extraction capability of the model, while the C2f-FasterRep module integrated a context-anchored attention mechanism module to capture long-range contextual information. The global average pooling and bar convolution were employed to enhance the features in the central region of the feature map, thereby improving the detection accuracy. Secondly, a new network structure was proposed in the neck part to fuse the features extracted from the backbone network. The channel attention module and dimensional matching mechanism were employed to fuse features of different scales, enhancing the model’s multi-scale feature fusion capability. Lastly, the detection head of the YOLOv8 model was optimized using a Transformer decoder structure. An intersection-parallel-ratio aware query mechanism was incorporated to optimize the decoder query, improving the model’s performance for classification and localization. In order to ensure the authenticity and effectiveness of the experiment, data were collected and tested and verified using the detection equipment deployed on a road section in Xuchang, Henan Province. The experimental results demonstrated that the mAp of the proposed method was achieved at 95.4%, the precision at 94.5%, and the recall rate at 97.5%. Compared with existing black smoke detection methods, the proposed approach exhibited higher detection accuracy and faster detection speed. The results of ablation experiments confirmed that the proposed lightweight feature extraction module, feature fusion module and detection head contributed to improving the accuracy of model detection.

Key words: object detection, black smoke detection, YOLOv8, lightweight model, attention mechanism

CLC Number: