Optics and Precision Engineering, Volume. 33, Issue 12, 1984(2025)

Improved lightweight garbage detection method for YOLOv8n in complex environments

Shizheng SUN1、*, Lingling HE1, Shuai ZHENG2, and Zeyin HE1
Author Affiliations
  • 1School of Mechatronics and Vehicle Engineering, Chongqing Jiaotong University, Chongqing400074, China
  • 2School of Shipping and Naval Architecture, Chongqing Jiaotong University, Chongqing400074, China
  • show less

    To address the issues of a large number of parameters and false or missed detections by garbage-detection models in complex environments, this paper proposed a lightweight garbage-detection model based on an improved YOLOv8n. First, a lightweight network structure, MobileNet V3_ECA, was introduced as the backbone of YOLOv8n, which enhanced the model’s ability to represent garbage-feature regions and reduced the model’s parameter count. Second, the Context Anchor Attention (CAA) mechanism was integrated into the backbone to strengthen the extraction of garbage-related features. Next, Omni-Dimensional Dynamic Convolution (ODConv) replaced the standard convolutions in the neck network, refining local feature mapping and enabling the fusion of fine-grained local garbage features. Finally, the Wise Intersection over Union (WIoU v3) bounding-box loss function was adopted to improve the regression performance of the network’s bounding boxes. Compared with the original YOLOv8n, the improved model is improved by 1.1% in mAP@0.5, the detection speed is increased by 11.7%, and the parameter Params, model size and floating-point operation FLOPs are reduced by 70.8%, 66.1% and 70.7%, respectively. Experimental results demonstrate that the improved model can effectively improve the detection accuracy and significantly reduce the complexity of the model, which has important engineering significance for the deployment and application of the model to the edge detection equipment.

    Keywords
    Tools

    Get Citation

    Copy Citation Text

    Shizheng SUN, Lingling HE, Shuai ZHENG, Zeyin HE. Improved lightweight garbage detection method for YOLOv8n in complex environments[J]. Optics and Precision Engineering, 2025, 33(12): 1984

    Download Citation

    EndNote(RIS)BibTexPlain Text
    Save article for my favorites
    Paper Information

    Category:

    Received: Dec. 4, 2024

    Accepted: --

    Published Online: Aug. 15, 2025

    The Author Email: Shizheng SUN (ssz091011@163.com)

    DOI:10.37188/OPE.20253312.1984

    Topics