Abstract:The issue of domestic waste and its associated hazards has captured people's attention. The advancements in robotics and object detection technologies have opened up prospects for the automated processing of domestic waste. In light of the problems such as the low detection accuracy of current domestic waste detection algorithms in complex backgrounds and with diverse target sizes, the large number of model parameters, the imbalance in the comprehensive performance of deep learning detection algorithms, and the challenges in deployment on embedded devices, an lightweight garbage detection algorithm based on improved YOLOv5 has been proposed. In the YOLOv5 model, the GSConv module is employed to substitute the traditional convolution to lower the computational complexity. The CBAM attention mechanism is introduced to extract and fuse spatial and channel information, thereby strengthening the network's expressive capacity for the target. The model is compressed via weight quantization to reduce the model size and accelerate the inference speed. Experimental outcomes indicate that in comparison with the original YOLOv5 algorithm, the improved algorithm has raised the accuracy and average precision of the model by 3% and 2.3% respectively, reduced the file size by 26.6%, and its comprehensive performance exceeds that of traditional deep learning object detection algorithms, presenting greater friendliness to the embedded platform.