Welcome to Journal of Graphics share: 

Journal of Graphics ›› 2024, Vol. 45 ›› Issue (3): 433-445.DOI: 10.11996/JG.j.2095-302X.2024030433

Previous Articles     Next Articles

Detection of dress code violations based on improved YOLOv5s

LI Yuehua(), ZHONG Xin, YAO Zhangyan, HU Bin()   

  1. School of Information Science and Technology, Nantong University, Nantong Jiangsu 226000, China
  • Received:2023-10-20 Accepted:2024-01-30 Online:2024-06-30 Published:2024-06-06
  • Contact: HU Bin (1985-), lecturer, Ph.D. His main research interest covers computer vision. E-mail:hubin@ntu.edu.cn
  • About author:

    LI Yuehua (1977-),associate professor, master. His main research interests cover embedded systems, internet of things and intelligent control technology. E-mail:lyh@ntu.edu.cn

  • Supported by:
    National Natural Science Foundation of China(62072259);National Natural Science Foundation-Young Scientists Fund(62102199)

Abstract:

Addressing the issue of non-compliance in the attire of culinary staff in the complex background of the catering kitchen, where existing algorithms tend to have low detection accuracy and are prone to false detections and omissions, this paper proposed an improved attire compliance detection algorithm, YOLOv5s-ESW, based on YOLOv5s. Firstly, a novel multi-scale attention mechanism was introduced into the main network to enhance the network’s feature extraction capability. Secondly, within the neck network, the spatial and channel reconstruction convolution module (SCConv) replaced the original convolution module (Conv) to reduce model parameter redundancy and simultaneously enhanced model accuracy. Lastly, the WIoU loss function was introduced in the prediction part to accelerate convergence and enhance the model’s generalization capability. The improved algorithm was applied to a self-compiled dataset of catering kitchen staff attire for experimentation. The results validated that the improved model has elevated its mean detection accuracy by 4.1% and reduced its parameter quantity by 11.4%. While enhancing detection accuracy, the model also reduced network complexity, thereby satisfying the requirements for attire compliance detection among catering kitchen staff.

Key words: dress code detection, attention mechanism, convolution, loss function, YOLOv5s-ESW algorithm

CLC Number: