Infrared and Laser Engineering, Volume. 53, Issue 11, 20240256(2024)

An improved YOLOv8s method and its application in road traffic target detection

Jiageng SANG1,2, Zhijia ZHANG1, Chuanmin XIAO3, Haibo LUO2, and Junyao ZHANG4
Author Affiliations
  • 1College of Artificial Intelligence, Shenyang University of Technology, Shenyang 110870, China
  • 2Shenyang Institute of Automation, Chinese Academy of Sciences, Shenyang 110169, China
  • 3The Third Militray Representative Office of the Air Force Equipment Department, Shenyang 110144, China
  • 4China Academy of Machinery Shenyang Research Institute of Foundry Co., Ltd., Shenyang 110022, China
  • show less
    Figures & Tables(17)
    Effect comparison of visible images (a) and infrared images (b)
    YOLOv8 structure diagram
    Improved YOLOv8s network structure diagram
    SPD structure diagram
    Structure diagram of mixed attention mechanism
    Comparative illustration of the small object detection layer before and after its introduction
    Comparative diagram showing the effects before and after the introduction of the SPD module
    Test result diagram and thermal map effect comparison diagram I. (a) Original image; (b) Shallow heat map; (c) Intermediate heat map; (d) Deep heat map
    Test result diagram and thermal map effect comparison diagram II. (a) Original image; (b) Shallow heat map; (c) Intermediate heat map; (d) Deep heat map
    Before and after the attention mechanism is introduced
    Replacement loss function before and after comparison
    Comparison of test results. (a) YOLOv8s test result; (b) Test results for the improved network
    • Table 1. Different size prior box sizes

      View table
      View in Article

      Table 1. Different size prior box sizes

      Feature map sizePrior frame size [w/pixel, h/pixel]
      20×20[116,90][156,198][373,326]
      40×40[30,61][62.45][59,119]
      80×80[10,13][16,30][33,23]
      160×160[5,6][8,14][15,11]
    • Table 2. Results of ablation experiments with different improved methods

      View table
      View in Article

      Table 2. Results of ablation experiments with different improved methods

      YOLOv8sNew headsSPDMy_attIOUPRmAP@0.5mAP@0.5-0.95Size/MBFPS/s
      86.2%75.1%84.0%55.5%21.4106.2
      86.6%77.5%86.8%58.3%21.994.2
      86.7%79.6%88.4%59.7%23.690.1
      86.8%77.9%87.5%58.3%22.486.9
      85.9%77.7%87.0%57.8%21.787.3
      86.7%80.6%88.9%60.6%24.585.8
      87.6%80.6%89.2%60.7%24.684.8
    • Table 3. Comparison of different attention mechanisms

      View table
      View in Article

      Table 3. Comparison of different attention mechanisms

      AttentionPRmAP@0.5mAP@0.5-0.95Size/MBFPS/s
      SE86.8%78.9%88.0%59.5%24.087.5
      CBAM86.2%79.3%88.0%59.2%24.682.7
      CA86.7%80.1%88.4%59.6%25.084.0
      EMA87.1%79.3%88.3%59.6%25.279.3
      My_att86.7%80.6%88.9%60.6%24.585.8
    • Table 4. Comparison results of different loss functions

      View table
      View in Article

      Table 4. Comparison results of different loss functions

      IOU lossmAP@0.5mAP@0.5-0.95FPS/s
      CIOU88.9%60.2%85.8
      F-CIOU89.1%60.4%85.4
      EIOU89.1%60.4%84.7
      F-EIOU89.2%60.7%84.8
    • Table 5. Different target detection algorithms compare experimental results

      View table
      View in Article

      Table 5. Different target detection algorithms compare experimental results

      ModelPRmAP@0.5mAP@0.5-0.95Size/MBFPS/s
      YOLOv5s85.0%73.0%82.7%54.5%18.599.4
      YOLOv5m87.2%75.3%84.9%57.4%50.579.5
      YOLOv786.1%78.6%86.7%54.7%74.857.8
      YOLOv8n84.6%69.4%80.0%51.3%6.2106.4
      YOLOv8s86.2%73.5%83.4%55.5%21.490.2
      YOLOv8m85.8%75.9%85.0%57.8%52.087.2
      YOLOv8l87.0%76.2%85.6%59.0%87.676.8
      YOLOv8x86.6%76.8%86.1%59.5%136.763.4
      YOLOv9e88.0%77.7%87.4%61.4%139.962.7
      YOLOv9c87.3%76.2%85.3%58.4%102.867.0
      Ours87.6%80.6%89.3%60.7%24.584.8
    Tools

    Get Citation

    Copy Citation Text

    Jiageng SANG, Zhijia ZHANG, Chuanmin XIAO, Haibo LUO, Junyao ZHANG. An improved YOLOv8s method and its application in road traffic target detection[J]. Infrared and Laser Engineering, 2024, 53(11): 20240256

    Download Citation

    EndNote(RIS)BibTexPlain Text
    Save article for my favorites
    Paper Information

    Category: 图像处理

    Received: Jun. 11, 2024

    Accepted: --

    Published Online: Dec. 13, 2024

    The Author Email:

    DOI:10.3788/IRLA20240256

    Topics