Garbage Recognition based on YOLOv8-seg
An Instance Segmentation Approach for Automated Waste Sorting
DOI:
https://doi.org/10.6919/ICJE.202604_12(4).0029Keywords:
Garbage Recognition; Instance Segmentation; YOLOv8-seg; Deep Learning; TACO Dataset; Computer Vision.Abstract
Rapid urbanization and population growth have led to a sharp increase in municipal solid waste, bringing severe challenges to environmental sustainability and public health. Effective waste classification and recycling are critical to alleviating these problems. However, traditional manual sorting is labor-intensive, inefficient, and prone to human error. In recent years, computer vision and deep learning have provided promising solutions for automated waste recognition. Object detection models can identify garbage and generate bounding boxes, but they struggle to capture the irregular shapes of waste, which is crucial for robotic grasping and automated sorting systems. To address this limitation, this paper explores the application of YOLOv8-seg, a state-of-the-art one-stage instance segmentation algorithm. It enables accurate garbage recognition and pixel-level segmentation in complex environments. We trained and evaluated the YOLOv8-seg model on the public TACO (Trash Annotations in Context) dataset. The model can simultaneously perform waste classification and generate instance masks. The network architecture-especially the C2f module and decoupled segmentation head-is analyzed in detail to clarify its feature extraction and mask generation mechanisms. Experimental results show that YOLOv8-seg achieves a strong balance between accuracy and inference speed, outperforming traditional two-stage models such as Mask R-CNN in real-time scenarios. Specifically, the model achieves a mask mAP@50 of 82.6% while maintaining a high frame rate suitable for edge deployment. This work provides a solid technical foundation for building intelligent waste-sorting robots and supports the development of automated environmental management.
Downloads
References
[1] Proenca, P. F., & Simoes, P. TACO: Trash Annotations in Context for Litter Detection[J]. arXiv preprint arXiv:2003.06975, 2020.
[2] Ting Wang, Pengfei Yuan, Aili Wang. Dangerous Goods Detection in X-Ray Security Inspection Images Based on Improved YOLOv8-seg[J]. Electronics, 2026, 15(5): 1112.
[3] Dorsaf Sebai, Jihene Boughanmi, Achref Antri. YOLOv8-Seg for Multi-Tissue Segmentation of Fetal Brain MRI: A FeTA Benchmark and Comparative Study with U-Net Variants[J]. Journal of Imaging Informatics in Medicine, 2026, (prepublish): 1-11.
[4] Meihua Gu, Guiping Yao, Xiaoxiao Dong, Yang Pan. Multi-scale clothing image instance segmentation method based on improved YOLOv8-seg[J]. Pattern Analysis and Applications, 2025, 29(1): 14.
[5] Alsuwaylimi, A. A. Enhanced YOLOv8-Seg Instance Segmentation for Real-Time Submerged Debris Detection[J]. IEEE Access, 2024, 12: 117833-117849.
[6] Yang, S., Tang, J., Bai, D. C., & [et al.]. (2025). Inferring the grasping sequence of prickly ash branches in complex stacked scenarios using an improved YOLOv8-Seg [In Chinese with English abstract]. Transactions of the Chinese Society of Agricultural Engineering, 41(24), 210–219.
[7] Zhang, R. Q., Liu, P., Chen, W. J., & [et al.]. (2025). Measurement method for the phenotypic parameters of Lentinula edodes fruiting bodies based on improved YOLOv8-Seg model [In Chinese with English abstract]. Transactions of the Chinese Society of Agricultural Engineering, 41(23), 143–151.
[8] Xu, Z. H., Zhu, J. B., Zhang, H. W., Zhou, L. L., & Jiang, H. B. (2025). Prostate region detection and image segmentation method based on improved YOLOV8-Seg model. China Medical Equipment, 22(11), 40–45.
[9] Cao, M., Duan, W. F., Ma, M. X., Ai, F. R., & Zhou, K. (2025). Homogeneity evaluation of biological printer products based on improved YOLOv8-Seg model. Journal of Zhejiang University (Engineering Science), 59(6), 1277–1283.
[10] Emre Can Bingol, Hamed Al Raweshidy. From Benchmarking to Optimisation: A Comprehensive Study of Aircraft Component Segmentation for Apron Safety Using YOLOv8-Seg[J]. Applied Sciences, 2025, 15(21): 11582.
[11] Wu, T., Liu, J., Liang, S. J., Xu, G. W., Li, P., You, H., & Nie, W. (n.d.). YOLOv8-seg insulator defect detection method based on multi-scale feature optimization and lightweight pruning. Southern Power System Technology, 1–14.
[12] Wang, X. L., Deng, P., Zhang, J., Zhang, T. H., & Wang, J. J. (2026). Automatic and accurate identification of rock mass RQD based on improved YOLOv8-seg. Chinese Journal of Geotechnical Engineering, 1–11.
[13] Guo, J. Q., He, X. H., Teng, Q. Z., & Lü, C. Y. (2025). Particle target extraction algorithm for core CT images based on YOLOv8-seg. Journal of Sichuan University (Natural Science Edition), 62(1), 116–125.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 International Core Journal of Engineering

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.




