Skip to main content

Violation Detection Method Based on Improved YOLOv5s

  • Conference paper
  • First Online:
Proceedings of 2023 Chinese Intelligent Systems Conference (CISC 2023)

Part of the book series: Lecture Notes in Electrical Engineering ((LNEE,volume 1089))

Included in the following conference series:

  • 556 Accesses

Abstract

In order to reduce the number of traffic accidents caused by violations, violations are detected, and drivers or passengers who violate regulations are warned and punished to encourage them to comply with traffic rules. Traditional methods for violation detecting in complex environments have low detection accuracy and poor adaptability to the environment. In response to these problems, the YOLOv5s network model is improved. The SPP module is replaced by the ghostSPPF module to reduce the number of model parameters, the CBS module in the backbone network is replaced by the MP2 module to upgrade the channel dimensionality, the C3 structure is replaced by the C2f structure, and the BCEwithlogitsloss loss function is replaced by the QFocalLoss loss function. The improved network model has been used to detect the violation of drivers using mobile phones while driving. The mAP of the improved YOLOv5s network model can reach 93.02%, which is higher than the mAP of 91.37% of the original YOLOv5s network model. The detection frame rate of the improved YOLOv5s network model can reach 87.33FPS, which can meet the needs of real-time traffic violation detection.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 259.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 329.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. Xun, C.: Automatic Container Code Recognition Based on Deep Learning. Changchun University of Science and Technology (2020). https://doi.org/10.26977/d.cnki.gccgc.2020.000084

  2. Liu, S., Gu, Y., Rao, W., et al.: Illegal vehicle detection method based on optimized YOLOv3 algorithm. J. Chongqing Univ. Technol. (Nat. Sci.) 35(04), 135–141 (2021)

    Google Scholar 

  3. Pan, W., Luo, Y.: Vehicle target detection based on improved YOLOV3. Comput. Appl. Softw. 40(01), 167–172, 204 (2023)

    Google Scholar 

  4. Shi, J.-w., Yang, L.-q., Fang, Y.-h., et al.: Helmet wearing detection method based on Improved YOLOv4. Comput. Eng. Des. 44(02), 518–525 (2023). https://doi.org/10.16208/j.issn1000-7024.2023.02.027

  5. Li, J., Ge, Y., Liu, Y.-p.: Traffic sign recognition for dim small targets based on improved YOLOv5. Computer Systems & Applications, pp. 1–8 (2023). https://doi.org/10.15888/j.cnki.csa.009056

  6. Zhao, M., Yu, H., Li, H.-q., et al.: Detection of fish stocks by fused with SKNet and YOLOv5 deep learning. J. Dalian Ocean Univ. 37(02), 312–319 (2022). https://doi.org/10.16535/j.cnki.dlhyxb.2021-324

  7. Deng, T., Tan, S., Pu, L.: Traffic light recognition method based on improved YOLOv5s. Comput. Eng. 48(09), 55–62 (2022). https://doi.org/10.19678/j.issn.1000-3428.0062843

  8. Long, S., Song, X., Zhang, S., et al.: Research on vehicle detection in aerial images with improved YOLOv5s. Laser J. 43(10), 22–29 (2022). https://doi.org/10.14016/j.cnki.jgzz.2022.10.022

  9. Jiang, C., Zhang, H., Zhang, E., et al.: Pedestrian and vehicle target detection algorithm based on improved YOLOv5s. J. Yangzhou Univ. (Nat. Sci. Ed.) 25(06), 45–49 (2022). https://doi.org/10.19411/j.1007-824x.2022.06.008

  10. Chen, Z., Qi, H., Wang, X.: Research on mask wearing detection based on improved YOLOv5 algorithm. Electron. Des. Eng. 30(22), 67–72 (2022). https://doi.org/10.14022/j.issn1674-6236.2022.22.014

  11. Yang, X.-l., Cai, Y.-w.: Pedestrian detection system based on YOLOV5S and its implementation. Comput. Inf. Technol. 30(01), 28–30 (2022). https://doi.org/10.19414/j.cnki.1005-1228.2022.01.006

  12. Wang, L., Duan, J., Xin, L.: YOLOv5 helmet wear detection method with introduction of attention mechanism. Comput. Eng. Appl. 58(09), 303–312 (2022)

    Google Scholar 

  13. Huang, Y., Liu, H., Chen, Q., et al.: Transmission line insulator fault detection method based on USRNet and improved YOLOv5x. High-Voltage Technol. 48(09), 3437–3446 (2022). https://doi.org/10.13336/j.1003-6520.hve.20220314

  14. Wang, L., He, M.-t., Xu, S., et al.: Garbage classification and detection based on YOLOv5s network. Packag. Eng. 42(08), 50–56 (2021). https://doi.org/10.19554/j.cnki.1001-3563.2021.08.007

  15. Gu, Y., Cao, M., Xiu, J., et al.: Algorithm for detecting violations based on YOLOv4 network. J. Chongqing Univ. Technol. (Nat. Sci.) 35(08), 114–121 (2021)

    Google Scholar 

  16. Gao, W., Shan, M., Song, N., et al.: Detection of microaneurysms in fundus images based on improved YOLOv4 with SENet embedded. J. Biomed. Eng. 39(04), 713–720 (2022)

    Google Scholar 

  17. Qi, L., Gao, J.: Small object detection based on improved YOLOv7. Comput. Eng. 49(01), 41–48 (2023). https://doi.org/10.19678/j.issn.1000-3428.0065942

  18. Wang, X.: An improved traffic sign recognition and detection on rainy environment based on YOLOv5. Mod. Inf. Technol. 6(20), 71–75, 80 (2022). https://doi.org/10.19850/j.cnki.2096-4706.2022.20.018

  19. Ma, N., Cao, Y., Wang, Z., et al.: Landing runway detection algorithm based on YOLOv5 network architecture. Laser Optoelectron. Prog. 59(14), 199–205 (2022)

    Google Scholar 

  20. Feng, H., Huang, C., Wen, Y.: Remote sensing image small target detection based on improved YOLOv3. J. Comput. Appl. 42(12), 3723–3732 (2022)

    Google Scholar 

  21. Zhnag, R., Dong, f., Cheng, X.: Application of improved YOLOv5s algorithm in non-motorized helmet wearing detection. J. Henan Univ. Sci. Technol. (Nat. Sci.) 44(01), 44–53, 57 (2023). https://doi.org/10.15926/j.cnki.issn1672-6871.2023.01.007

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Shuo Liu .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Liu, S., Liang, Yc., Ma, Xc., Guo, Yq. (2023). Violation Detection Method Based on Improved YOLOv5s. In: Jia, Y., Zhang, W., Fu, Y., Wang, J. (eds) Proceedings of 2023 Chinese Intelligent Systems Conference. CISC 2023. Lecture Notes in Electrical Engineering, vol 1089. Springer, Singapore. https://doi.org/10.1007/978-981-99-6847-3_51

Download citation

Publish with us

Policies and ethics