Xi'an University of Posts and Telecommunications, Xi'an, 710121, China.
Sci Rep. 2022 Oct 7;12(1):16802. doi: 10.1038/s41598-022-20983-1.
An increasing number of researchers are using deep learning technology to classify and process garbage in rural areas, and have achieved certain results. However, the existing garbage detection models still have problems such as high complexity, missed detection of small targets, low detection accuracy and poor real-time performance. To address these issues, we train a model and apply it to garbage classification and detection in rural areas. In general, we propose an attention combination mechanism based on the YOLOv5 algorithm to build a better backbone network structure, add a new small object detection layer in the head network to enhance the model's ability to detect small objects, adopt the CIoU loss function to optimize the output prediction bounding box, and choose the Adam optimization algorithm to train the model. Our proposed YOLOv5s-CSS model detects a single garbage image in 0.021 s with a detection accuracy of 96.4%. Compared with the YOLOv5 algorithm and the classic detection algorithm, the improved algorithm has better detection speed and detection accuracy. At the same time, the complexity of the network model is reduced to a certain extent, which can meet the requirements of real-time detection of rural domestic garbage.
越来越多的研究人员开始使用深度学习技术对农村垃圾进行分类和处理,并取得了一定的成果。然而,现有的垃圾检测模型仍然存在复杂性高、小目标漏检、检测精度低和实时性差等问题。针对这些问题,我们对模型进行训练并将其应用于农村地区的垃圾分类和检测。总的来说,我们提出了一种基于 YOLOv5 算法的注意力组合机制,构建更好的骨干网络结构,在头部网络中添加新的小目标检测层,增强模型对小目标的检测能力,采用 CIoU 损失函数优化输出预测框,选择 Adam 优化算法训练模型。我们提出的 YOLOv5s-CSS 模型对单个垃圾图像的检测速度为 0.021s,检测准确率为 96.4%。与 YOLOv5 算法和经典检测算法相比,改进后的算法具有更好的检测速度和检测精度。同时,网络模型的复杂度也得到了一定程度的降低,可以满足农村生活垃圾实时检测的要求。