Research on Cigarette Recognition based on Improved YOLOv5

Authors

  • Jinbing Wang
  • Lei Zhang
  • Zhaoqing Li

DOI:

https://doi.org/10.6919/ICJE.202504_11(4).0007

Keywords:

YOLOv5 Algorithm; Strip Tobacco Identification; Ghost Module; CA Attention Mechanism.

Abstract

To address the critical challenges of misclassification in automated strip tobacco sorting and inefficiency in manual verification within tobacco logistics centers, this study presents an enhanced YOLOv5s-based framework that optimizes real-time performance and recognition accuracy through systematic architectural improvements. First, a Coordinate Attention (CA) mechanism is strategically integrated into the backbone network to enhance discriminative feature extraction, enabling precise localization of tobacco strip targets. Subsequently, the conventional nearest-neighbor upsampling operator is replaced with the Content-Aware ReAssembly of FEatures (CARAFE) module, effectively expanding the receptive field while maintaining computational efficiency. Furthermore, a Ghost convolution-based lightweight redesign is implemented in the feature extraction layers, achieving a 45.8% reduction in model parameters without compromising detection capability. Complementing these algorithmic advancements, we construct a dedicated tobacco image acquisition system under industrial operating conditions, compiling a domain-specific dataset containing 12,800 annotated instances of strip tobacco with morphological variations. Experimental validation demonstrates that the optimized model achieves a mean average precision (mAP@0.5) of 99.3% and maintains 99.9% classification accuracy on the error correction testbed, while operating at 48 FPS on an NVIDIA Jetson Xavier NX edge device. These quantitative results confirm the framework's capability to fulfill the stringent requirements of high-speed industrial sorting systems, achieving a 21.6% improvement in processing throughput compared to baseline YOLOv5s while sustaining sub-millisecond latency thresholds.

Downloads

Download data is not yet available.

References

[1] CAO Yue. Research on the Key Technology of Photoelectric Automatic Identification and Classification of Strip Smoke[D]. Sichuan: University of Electronic Science and Technology of China, 2019: 1-4.

[2] QIU Tianheng, WANG Ling, WANG Peng, et al. Research on Object Detection Algorithm Based on Improved YOLOv5[J]. Computer Engineering and Applications, 2022, 58(13): 63-73.

[3] CAO Dongmei, GUO Zhuang, LI Dongbo. Research on the Classification and Location of Cigarette Based on Halcon[J]. Machine Design and Manufacturing Engineering, 2018, 47(9): 71-74.

[4] ZHOU Zhixiang, YANG Xudong, CHEN Bo, et al. Cigarette Recognition System Based on Template Matching[J]. Packaging Engineering, 2020, 41(21): 261-269.

[5] LI Mengxue. Research on Cigarette Classification and Recognition Algorithm of Transmission Platform Based on Vision[D]. Chengdu: University of Electronic Science and Technology of China, 2018.

[6] WANG Haoran. Research and Application of Error Detection System of Special Tobacco Sorting Line of W TOBACCO COMPANY[D]. Shandong: Shandong University of Finance and Economics, 2021.

[7] HOU Qibin, ZHOU Daquan, FENG Jiashi. Coordinate Attention for Efficient Mobile Network Design[C]// Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2021: 13713-13722.

[8] WANG Jiaqi, CHEN Kai, XU Rui, et al. CARAFE: Content-Aware Reassembly of Features[C]// 2019 IEEE/CVF International Conference on Computer Vision (ICCV). Seoul, South Korea, 2019: 3007-3016.

[9] HAN Kai. GhostNet: More Features from Cheap Operations[C]// Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2020: 56-61.

[10] REDMON Joseph, DIVVALA Santosh, GIRSHICK Ross, et al. You Only Look Once: Unified, Real-Time Object Detection[C]// 2016 IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA, 2016: 779-788.

[11] XU Degang, WANG Lu, LI Fan. Review of Typical Object Detection Algorithms for Deep Learning[J]. Computer Engineering and Applications, 2021, 57(8): 10-25.

[12] YANG Qisheng, LI Wenkuan, YANG Xiaofeng, et al. Improved YOLOv5 Method for Detecting Growth Status of Apple Flowers[J]. Computer Engineering and Applications, 2022, 58(4): 237-246.

[13] HU Jie, SHEN Li, ALBANIE Samuel, et al. Squeeze-and-Excitation Networks[J]. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2020, 42(8): 2011-2023.

[14] WOO Sanghyun, PARK Jongchan, LEE Joon-Young, et al. CBAM: Convolutional Block Attention Module[C]// Proceedings of the European Conference on Computer Vision (ECCV), 2018: 3-19.

[15] GIRSHICK Ross. Fast R-CNN[C]// Proceedings of IEEE International Conference on Computer Vision (ICCV), 2015: 1440-1448.

[16] LIU Wei, ANGUELOV Dragomir, ERHAN Dumitru, et al. SSD: Single Shot MultiBox Detector[C]// European Conference on Computer Vision, 2016: 21-37.

Downloads

Published

2025-03-19

Issue

Section

Articles

How to Cite

Wang, Jinbing, Lei Zhang, and Zhaoqing Li. 2025. “Research on Cigarette Recognition Based on Improved YOLOv5”. International Core Journal of Engineering 11 (4): 60-69. https://doi.org/10.6919/ICJE.202504_11(4).0007.