Skip to content
Conference

Research on a cigarette defect detection algorithm based on an improved YOLOv8s

Sep 2026 · International Conference on Artificial Intelligence, Machine, Vision and Control · Vol 14345, pp. 143450P - 143450P-8 · 0 citations · 8 references
Engineering

Abstract

To address the challenges of diverse visual defect types, small defect targets, and the low efficiency and limited stability of conventional manual inspection during cigarette production, this paper proposes a cigarette defect detection algorithm based on an improved YOLOv8s. First, YOLOv8s is adopted as the baseline model. Considering both detection accuracy and the number of model parameters, a lightweight StarNet is introduced as the backbone feature extraction network. The star operation is employed to enhance the model’s capability to represent nonlinear features of cigarette defects, thereby improving feature discrimination while reducing both parameter count and computational complexity. Second, to reduce the relatively high computational overhead of the C2f module in the neck network of the original YOLOv8s, a C2f_Star module is designed. By embedding Star Blocks into the feature fusion process, the proposed module further compresses the model while preserving multiscale feature propagation capability. Finally, experiments are conducted on a self-built cigarette visual defect dataset containing five defect categories: flattened end, reversed orientation, insufficient filling, cigarette-tip breakage, and cigarette-body breakage. The experimental results show that the improved model has 5.17 M parameters, 14.6 G computational complexity, and a model size of 10.6 MB, representing reductions of 53.6%, 49.1%, and 52.9%, respectively, compared with the original YOLOv8s. Meanwhile, the model achieves mAP50 and mAP50-95 values of 99.1% and 76.4%, respectively. Compared with several mainstream detection algorithms, the proposed model maintains high detection accuracy while achieving a smaller model size and higher inference speed, satisfying the requirements for lightweight, real-time, and high-precision deployment in cigarette visual defect detection scenarios.

View source

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.