Implementation of an Automatic Waste Sorting System using YOLOv5s with TFLite Conversion on Raspberry Pi


  • Jefrian Arya Hernanda * Mail Universitas Islam Indonesia, Daerah Istimewa Yogyakarta, Indonesia
  • Kurniawan Dwi Irianto Universitas Islam Indonesia, Daerah Istimewa Yogyakarta, Indonesia
  • (*) Corresponding Author
Keywords: Waste Classification; YOLOv5s; TensorFlow Lite; Raspberry Pi; Object Detection

Abstract

Waste management remains a major environmental challenge in Indonesia, particularly due to the low level of public awareness in sorting waste based on its type. This research aims to design and implement an image-based automatic waste sorting system using the YOLOv5s algorithm with TensorFlow Lite conversion on a Raspberry Pi 3B+. The research was conducted through a system development approach without involving human respondents, focusing on performance evaluation using an image dataset consisting of three categories: paper and tissue, plastic bottles, and cans. The proposed system integrates hardware components, including a camera, servo motors, an ultrasonic sensor, and an LCD, with software components such as YOLOv5s, OpenCV, and TensorFlow Lite. The model performance was evaluated using precision, recall, and mean Average Precision (mAP), while system functionality was assessed through hardware testing. The results show that the model achieved a precision of 0.986, recall of 0.978, and mAP@0.5 of 0.99, indicating excellent detection performance. In addition, the implementation of TensorFlow Lite significantly improved computational efficiency, with the system achieving a processing speed of 173.9 frames per second (FPS). These results demonstrate that the proposed system is capable of performing accurate and efficient real-time waste classification on resource-constrained devices. This research contributes by providing an efficient and practical implementation of real-time waste sorting using a lightweight deep learning model on embedded hardware.

Downloads

Download data is not yet available.

References

Abdillah, H., Syahbana, A. N., Husain, G. I. Al, & Agustin, S. (2024). Detektif Sampah : Klasifikasi Jenis Sampah Organik dan Anorganik Menggunakan Metode YOLOv5 Berbasis Website. Jurnal INOVATIF WIRA WACANA, 3(20), 128–135. https://doi.org/10.58300/inovatif.v3i2.878

Dai, J. (2020). Real-time and accurate object detection on edge device with TensorFlow Lite. Journal of Physics: Conference Series, 1651(1). https://doi.org/10.1088/1742-6596/1651/1/012114

Dewi, N. M. N. B. S. (2021). Analisa Limbah Rumah Tangga Terhadap Dampak Pencemaran Lingkungan. Jurnal Ganec Swara, 15(2), 1159–1164. http://journal.unmasmataram.ac.id/index.php/GARA

Fajar, S. F., Regasari, R. R. M. P., & Setyawan, G. E. (2025). Rancang Bangun Pemilahan Sampah Plastik Otomatis Menggunakan YOLO Pada Raspberry Pi. Jurnal Pengembangan Teknologi Informasi Dan Ilmu Komputer, 9(11). http://j-ptiik.ub.ac.id

Fauzi, Y., Andiono, E., & Khamali, M. (2020). Aplikasi Object Detection and Tracking Untuk Penyandang Tunanetra dengan Internet of Things (IoT) (Menggunakan Bahasa Pemrograman Phyton). Jurnal Gerbang STMIK Bani Saleh, 1(10).

Gui, S., Song, S., Qin, R., & Tang, Y. (2024). Remote Sensing Object Detection in the Deep Learning Era—A Review. Remote Sensing, 16(2). https://doi.org/10.3390/rs16020327

Hasibuan, M. R. R. (2023). Manfaat Daur Ulang Sampah Organik dan Anorganik untuk Kesehatan Lingkungan. https://doi.org/10.31219/osf.io/yb42t

Hendri, F. R., & Utaminingrum, F. (2022). Rancang Bangun Sistem Pengklasifikasi Jenis Sampah Organik dan Anorganik menggunakan metode You Only Look Once versi 3 berbasis Raspberry Pi. Jurnal Pengembangan Teknologi Informasi Dan Ilmu Komputer, 6(7), 3509–3514. http://j-ptiik.ub.ac.id

Jiang, P., Ergu, D., Liu, F., Cai, Y., & Ma, B. (2022). A Review of Yolo Algorithm Developments. Procedia Computer Science, 199, 1066–1073. https://doi.org/10.1016/j.procs.2022.01.135

Ke, H., Li, H., Wang, B., Tang, Q., Lee, Y. H., & Yang, C. F. (2024). Integrations of LabelImg, You Only Look Once (YOLO), and Open Source Computer Vision Library (OpenCV) for Chicken Open Mouth Detection. Sensors and Materials, 36(11), 4903–4913. https://doi.org/10.18494/SAM5108

Papakyriakou, D., & Barbounakis, I. S. (2023). Benchmarking and Review of Raspberry Pi (RPi) 2B vs RPi 3B vs RPi 3B+ vs RPi 4B (8GB). International Journal of Computer Applications, 185(3), 37–52. https://doi.org/10.5120/ijca2023922693

Rahman, M. (2021). Faktor Penyebab dan Dampak serta Kebijakannya Terhadap Permasalahan Pencemaran Sampah. https://doi.org/10.31219/osf.io/x6dve

Rizqolima, A. H., & Widhiantoro, D. (2025). Analisis Perbandingan Algoritma Deepface, YOLO, dan Tensorflow dalam Pengenalan Wajah. Seminar Nasional Inovasi Vokasi, 4, 768–777.

Santoso, U. R. N., Gamar, F., & Darmawan, A. (2025). Implementasi Transformasi Homografi dan YOLO v4-Tiny untuk Deteksi Botol dan Kaleng. Jurnal Teknologi Dan Sistem Informasi Bisnis, 7(3), 442–449. https://doi.org/10.47233/jteksis.v7i3.1981

Swasotomo, S. D. (2025). Metode Waterfall dalam Pengembangan Sistem Informasi.

Wahyuningsih, S., Widiati, B., Melinda, T., & Abdullah, T. (2023). Sosialisasi Pemilahan Sampah Organik dan Non-Organik Serta Pengadaan Tempat Sampah Organik dan Non-Organik. DEDIKASI SAINTEK: Jurnal Pengabdian Masyarakat, 2(1), 7–15. https://doi.org/10.58545/djpm.v2i1.103

Wibysono, A. Y., Susilawati, H., & Matin, I. M. M. (2022). Rancang Bangun Alat Pemilah Sampah Organik dan Non Organik Berbasis Raspberry Pi. Jurnal FUSE – Teknik Elektro, 2(2), 88–96. https://doi.org/10.52434/jft.v2i2.2338

Zulfachmi, Z., Zahara, A., & Hardinata, D. (2024). Klasifikasi Stingless Bee Menggunakan Metode Image Classification Berbasis OpenCV. Jurnal Bangkit Indonesia, 13(2), 7–12. https://doi.org/10.52771/bangkitindonesia.v13i2.321


Bila bermanfaat silahkan share artikel ini

Berikan Komentar Anda terhadap artikel Implementation of an Automatic Waste Sorting System using YOLOv5s with TFLite Conversion on Raspberry Pi

Dimensions Badge
Article History
Published: 2026-04-30
Abstract View: 23 times
PDF Download: 0 times
Issue
Section
Articles