基于改进YOLOv8注意力机制的烟头检测
Cigarette Butt Detection Based on Improved YOLOv8n Attention Mechanism
摘要: 为了解决公共场所烟头检测任务中烟头目标尺寸小、背景复杂造成传统检测模型漏检率高的问题,本文提出一种改进YOLOv8的烟头检测方法。该算法是在YOLOv8原始网络的基础上加上SE、CBAM、CAA多注意力模块,提高网络的特征提取能力,再根据烟头检测任务的特点提出了一种小目标数据增强方法和自适应损失权重调整。经过改进后的模型,在自建的烟头检测数据集上,平均精度均值mAP50达到了0.773,比原来的YOLOv8提高了2.2个百分点,漏检率由原来的32.1%降低到30.1%,R和mAP50-90分别提升了0.6和0.8个百分点,有效地提高了小目标烟头的检测性能,可以满足公共场所实时禁烟监控的应用要求。
Abstract: To address the high miss rate of traditional detection models caused by the small size of cigarette butt targets and complex backgrounds in public area detection tasks, this paper proposes an improved YOLOv8n-based cigarette butt detection method. The algorithm enhances the original YOLOv8n network by integrating multiple attention modules, including SE, CBAM, and CAA, to improve the network’s feature extraction capability. In addition, a small-object data augmentation strategy and adaptive loss weight adjustment method are proposed based on the specific characteristics of cigarette butt detection. The improved model achieved an average precision (mAP50) of 0.773 on our self-built cigarette butt detection dataset, which is 2.2 percentage points higher than the original YOLOv8. The missed detection rate dropped from 32.1% to 30.1%, and R and mAP50-90 increased by 0.6 and 0.8 percentage points respectively. This effectively boosts the detection performance for small cigarette butts, making it suitable for real-time smoking ban monitoring in public places.
参考文献
|
[1]
|
田艳萍, 金淼, 陈习文, 等. 基于小目标遮挡感知的烟头检测算法[J]. 计算机工程与应用, 2025, 61(20): 270-280.
|
|
[2]
|
唐晟玮, 沈琴琴, 曹阳. LA-DETR: 面向无人机航拍图像的轻量化小目标检测算法[J/OL]. 计算机工程与应用: 1-17. https://link.cnki.net/urlid/11.2127.TP.20260424.1525.009, 2026-05-19.
|
|
[3]
|
张益宁. 基于注意力机制和多尺度特征融合的垃圾图像检测研究[D]: [硕士学位论文]. 重庆: 重庆科技学院, 2023.
|
|
[4]
|
祖绍彭, 杨秋菊, 吐尔逊·买买提, 等. 改进YOLOv8n的轻量化仓储多目标检测算法研究[J/OL]. 软件导刊: 1-10. https://link.cnki.net/urlid/42.1671.TP.20260414.1415.035, 2026-05-19.
|
|
[5]
|
张善淇. 基于深度学习的多尺度特征融合道路目标检测算法研究[D]: [硕士学位论文]. 东莞: 东莞理工学院, 2025.
|
|
[6]
|
刘晓阳, 李思腾, 刘梦佳, 等. 基于YOLOv8n改进的PCB缺陷检测算法相关研究[C]//广西网络安全和信息化联合会. 第十二届工程技术管理与数字化转型学术交流会论文集. 天津: 天津天狮学院, 2025: 12-13.
|
|
[7]
|
郭洪才, 庄卫东, 秦韬, 等. 基于YOLOv8的甜菜苗间除草作物识别研究[J]. 农机化研究, 2026, 48(2): 156-164+242.
|
|
[8]
|
刘宏志, 马跃, 邱彬, 等. 改进YOLOv11n在输电线路绝缘子主要缺陷检测中的应用研究[J]. 高压电器, 2025, 61(10): 149-158.
|
|
[9]
|
陈濠霖, 黄植佳, 文睿浩, 等. 基于改进YOLOv8的鹌鹑蛋缺陷检测研究[J]. 现代农业装备, 2026, 47(2): 102-108.
|
|
[10]
|
Zhu, J. (2024) The Effect of Hyperparameters on the Model Convergence Rate of Cliff Walking Problem Based on Q-Learning. Applied and Computational Engineering, 110, 6-12. [Google Scholar] [CrossRef]
|
|
[11]
|
Liang, X., Xiang, J., Qin, S., Xiao, Y., Chen, L., Zou, D., et al. (2025) Small Target Detection Algorithm Based on Sahi-Improved-YOLOv8 for UAV Imagery: A Case Study of Tree Pit Detection. Smart Agricultural Technology, 12, Article 101181. [Google Scholar] [CrossRef]
|