Computer Vision-Based Plastic Waste Detection and Weight Estimation

  • Andri Dwi Utomo Institut Teknologi Bacharuddin Jusuf Habibie
  • Mar’atuttahirah Mar’atuttahirah Institut Teknologi Bacharuddin Jusuf Habibie
  • A. Inayah Auliyah Institut Teknologi Bacharuddin Jusuf Habibie
  • Muhammad Nur Institut Teknologi Bacharuddin Jusuf Habibie
Keywords: computer vision, plastic waste detection, YOLOv8n, weight estimation, Random Forest Regression

Abstract

Plastic waste management is an increasingly critical environmental challenge due to the growing volume of waste and the limitations of conventional manual weighing methods, which are inefficient and prone to human error. This study proposes a computer vision-based system for automatic detection, classification, and weight estimation of plastic waste using the YOLOv8n model for object detection and Random Forest Regression for weight estimation. The YOLOv8n model is used to detect and classify seven types of plastic waste based on the Resin Identification Code (RIC), namely PET, HDPE, PVC, LDPE, PP, PS, and OTHER. Subsequently, weight estimation is performed using a Random Forest Regression model based on bounding box features, including width, height, area, aspect ratio, and perimeter. The proposed system is evaluated using an unseen test set to ensure unbiased performance measurement. Experimental results show that the YOLOv8n model achieves a mean Average Precision (mAP@0.5) of 91.93% and mAP@0.5:0.95 of 73.27%, while the Random Forest Regression model achieves an R² score of 95.5% with a Mean Absolute Error (MAE) of 4.28 grams. These results demonstrate that the integration of object detection and regression enables accurate and automatic estimation of plastic waste weight, thereby improving the efficiency and objectivity of waste management systems.

References

Adjie, D., & Zakaria, H. (2026). Implementasi Metode Design Science Research (DSR) untuk Optimalisasi Monitoring Server VoIP Berbasis Web Menggunakan Pendekatan Agile. Jurnal Fasilkom, 16(1), 175–182.

Almira, V., Maimunah, & Sukmasetya, P. (2024). Prediksi Jumlah Sampah di TPSA Menggunakan Pendekatan Machine Learning. Jurnal Media Informatika Budidarma, 8(1), 508–516. https://doi.org/10.30865/mib.v8i1.7278

Annatasya, S., Febrina, O., Riaudan, E., Zahra, Q. A., Vincentia, D., Wardani, I. P., Luhur, M. A., Studi, P., & Negara, A. (2024). Hidup Lebih Ramah Lingkungan dengan Mengurangi Kantong Plastik di Pesisir Teluk Lampung. 3, 1–6. https://doi.org/10.23960/jmw.v3i2.48

Cottom, J. W., Cook, E., & Velis, C. A. (2024). A local-to-global emissions inventory of macroplastic pollution. Nature, 633(8028), 101–108. https://doi.org/10.1038/s41586-024-07758-6

Delport, P. M. J., Von Solms, R., & Gerber, M. (2024). Methodological Guidelines for Design Science Research. Procedia Computer Science, 237, 195–203. https://doi.org/https://doi.org/10.1016/j.procs.2024.05.096

Dharmasaputra, K. D., & Hartato, B. P. (2025). Pengujian YOLOv8 dan Centroid Tracking pada Sistem Deteksi, Klasifikasi, dan Penghitungan Jumlah Kendaraan. Journal of Applied Informatics and Computing, 9(5), 2310–2319. https://doi.org/10.30871/jaic.v9i5.10873

Dongre, S., Dalvi, P., Dabhiya, M., Bhagat, S., Dabhade, A., & Bharane, S. (2026). EcoSort: Agentic AI-Driven Waste Classification, Weight Estimation, and Gamified Civic Engagement for Smart City Waste Management. International Journal of Advanced Research in Science, Communication and Technology, 6(8), 447–457. https://doi.org/10.48175/IJARSCT-35556

Faizal, L., Yuyun, Y., & Hazriani, H. (2023). Identifikasi Sampah Plastik Menggunakan Algoritma Deep Learning. Jurnal Ilmiah Sistem Informasi Dan Teknik Informatika (JISTI), 6(2), 162–171. https://doi.org/10.57093/jisti.v6i2.176

Firdaus, A. Z., Lelono, D., & Natan, O. (2025). Sistem Klasifikasi Sampah Otomatis Berbasis Deteksi Objek Real-Time Pada Single Board Computer Dengan Algoritma YOLO. IJEIS (Indonesian Journal of Electronics and Instrumentation Systems), 15(1), 49–60. https://doi.org/10.22146/ijeis.104520

Fitriyono, A., Hammam, M. T. A. Al, Saputra, B. W., Naufal, M., & Pramunendar, R. A. (2025). Perbandingan Performa YOLOv8s dan YOLOv8n untuk Deteksi Jalan Berlubang. Bulletin of Data Science, 5(1), 10–21. https://doi.org/10.47065/bulletinds.v5i1.9751

Ginting, Y., Hantoro, K., Yunizar Pratama Yusuf, A., & Bhayangkara Jakarta Raya, U. (n.d.). Deteksi Jenis Sampah Plastik Berbasis Mobile Menggunakan Model Transfer Learning. https://doi.org/10.37817/tekinfo.v25i2

Hakim, A. R. (2025). Sistem Pendeteksi Sampah Plastik Menggunakan Algoritma YOLOv8. http://etd.repository.ugm.ac.id/

Harahap, I. P., & Muliantara, A. (2024). Deteksi Objek pada Citra Menggunakan Model YOLO. Jurnal Nasional Teknologi Informasi Dan Aplikasinya (JNATIA), 2(3), 469–474.

Hassadiqin, H., & Utaminingrum, F. (2023). Sistem Pengklasifikasi Jenis Sampah Plastik berdasarkan Resin Identification Code menggunakan Metode YOLOv5s berbasis Raspberry Pi (Vol. 7, Number 7). http://j-ptiik.ub.ac.id

Heinonen, M. (2021, September). Metrological Challenges of Plastics Recycling. Proceedings of the 20th International Metrology Congress (CIM 2021). http://www.cim2021.com

Hendradi, P., Kurniawan, W., Dewi, Y. S., Kusumawati, K., Nurhayati, N., & Chafid, N. (2025). PELATIHAN APLIKASI BANK SAMPAH BERBASIS WEB PADA BANK SAMPAH BERKAH SEJAHTERA DESA RAWA PANJANG. Jurnal AbdiMas Nusa Mandiri, 7(1), 1–8. https://doi.org/10.33480/abdimas.v7i1.6112

Islam, Md. A., Karim, W., Alam, Md. M., Rahman, S. S., Rahman, Md. A., Abian, A. I., Raiaan, M. A. K., Yeo, K. C., Mathur, D., & Azam, S. (2026). Learning to Weigh Waste: A Physics-Informed Multimodal Fusion Framework and Large-Scale Dataset for Commercial and Industrial Applications. https://doi.org/10.48550/arXiv.2603.00931

Jiao, L., Zhang, F., Liu, F., Yang, S., Li, L., Feng, Z., & Qu, R. (2020). A Survey of Deep Learning-Based Object Detection. IEEE Access, 8, 128837–128868. https://doi.org/10.1109/ACCESS.2019.2939201

Kroell, N., Chen, X., Maghmoumi, A., Koenig, M., Feil, A., & Greiff, K. (2021). Sensor-based particle mass prediction of lightweight packaging waste using machine learning algorithms. Waste Management, 136, 253–265. https://doi.org/https://doi.org/10.1016/j.wasman.2021.10.017

Kunwar, S., Owabumoye, B. R., & Alade, A. S. (2024). Plastic Waste Classification Using Deep Learning: Insights from the WaDaBa Dataset. https://doi.org/10.48550/arXiv.2412.20232

Larasati, K., Frimawaty, E., & Chairani, E. (2024). Life Cycle Assessment of Plastic Packaging Production. Journal of Environmental Science and Sustainable Development, 7(1), 460–479. https://doi.org/10.7454/jessd.v7i1.1220

Mahardhika, D. S., & Pakereng, M. A. I. (2026). Deteksi Objek Secara Real-Time Berbasis YOLOv8 dan Algoritma DeepSORT. Jurnal Media Computer Science, 5(1), 671–686. https://jurnal.mediacomputerscience.org

Moghaddam, H. M., Keramati, M., Bahrami, A., Ghanizadeh, A. R., Amlashi, A. T., Isleem, H. F., Navazani, M., & Dessouky, S. (2024). Application of Hybridized Ensemble Learning and Equilibrium Optimization in Estimating Damping Ratios of Municipal Solid Waste. Scientific Reports, 14, 17584. https://doi.org/10.1038/s41598-024-68428-7

Nugroho, D., Sapariah, H., Nugraha, D. A., Hasana, N., & Apdilah, D. (2026). Perkembangan dan Implementasi Kecerdasan Buatan: Dari Sistem Pakar Hingga Computer Vision di Era Digital. Journal of Innovative and Creativity, 6(2), 37169–37176. https://joecy.org/index.php/joecy

Pardede, J., & Hardiansah, H. (2022). Deteksi Objek Kereta Api Menggunakan Metode Faster R-CNN dengan Arsitektur VGG16. MIND (Multimedia Artificial Intelligent Networking Database) Journal, 7(1), 21–36. https://doi.org/10.26760/mindjournal.v7i1.21-36

Premananda, I. G. A., Tjahyanto, A., & Mukhlason, A. (2022). Design Science Research Methodology and Its Application to Developing a New Timetabling Algorithm. Proceedings of the 2022 IEEE International Conference on Cybernetics and Computational Intelligence (CyberneticsCom), 433–438. https://doi.org/10.1109/CyberneticsCom55287.2022.9865486

Rezatofighi, H., Tsoi, N., Gwak, J., Sadeghian, A., Reid, I., & Savarese, S. (2019). Generalized Intersection over Union: A Metric and A Loss for Bounding Box Regression. https://doi.org/10.48550/arXiv.1902.09630

Salamah, A., Kusumanto, R. D., & Evelina. (2023). Sistem Monitoring Volume dan Berat Sampah pada Alat Pemilah Sampah Organik dan Anorganik Berbasis Internet of Things Menggunakan Aplikasi Blynk. Jurnal Teliska, 16(3), 1–6. https://doi.org/10.5281/zenodo.8207096

Santiago, G. A., Sugiartawan, P., & Ardriani, N. N. D. (2024). Object Detection Based on You Look Only Once Version 8 for Real-Time Applications. Jurnal RESISTOR (Rekayasa Sistem Komputer), 7(2), 159–166. https://doi.org/10.31598/jurnalresistor.v7i2.361911

Shukhratov, I., Pimenov, A., Stepanov, A., Mikhailova, N., Baldycheva, A., & Somov, A. (2024). Optical Detection of Plastic Waste Through Computer Vision. Intelligent Systems with Applications, 22, 200341. https://doi.org/10.1016/j.iswa.2024.200341

Sihananto, A. N., Haromainy, M. M. Al, Sari, A. P., Mubarrok, A. H., & Ramadhan, D. (2022). Pemilahan Jenis Sampah Menggunakan Algoritma CNN. SCAN, 17(3), 23–27.

SIPSN - Sistem Informasi Pengelolaan Sampah Nasional. (n.d.). Retrieved December 24, 2025, from https://sipsn.kemenlh.go.id/sipsn/public/data/capaian

Tran, D. T., & Nguyen, T. B. T. (2025). An Intelligent Plastic Waste Detection and Classification System Based on Deep Learning and Delta Robot. Journal of Technical Education Science, 20(1), 33–42. https://doi.org/10.54644/jte.2025.1555

Wen, S.-C., & Yang, C.-H. (2021). Time Series Analysis and Prediction of Nonlinear Systems with Ensemble Learning Framework Applied to Deep Learning Neural Networks. Information Sciences, 572, 1–16. https://doi.org/10.1016/j.ins.2021.04.094

Winardi, K., Nugroho, Y. F. T., Johannes, & Herdiatmoko, H. F. (2026). Penerapan Algoritma Random Forest Regression dalam Prediksi Harga Saham BBRI. HOAQ: Jurnal Teknologi Informasi, 17(1), 9–18. https://doi.org/10.52972/hoaq.vol17no1

Published
2026-07-30
Abstract viewed = 15 times
PDF downloaded = 10 times