Detection of Sellable Non-Organic Waste Using YOLOv4 Based on Flask Web


Authors

(1) * Luthfi Nurul Huda   (Universitas Amikom Yogyakarta)  
        Indonesia
(*) Corresponding Author

Abstract


Non-organic waste management in Islamic boarding school environments requires a sorting system that is fast, accurate, and easy to use, particularly for waste types that have selling value. In the Al-Hasyimiyah area of Nurul Jadid Islamic Boarding School, waste sorting has been implemented to help maintain environmental cleanliness and support the reuse of economically valuable waste. However, the sorting process still faces challenges because some students are not yet able to distinguish types of non-organic waste based on category and selling price. This study aims to develop an image-based non-organic waste detection system to estimate selling prices using the You Only Look Once version 4 (YOLOv4) method implemented in a Flask-based web application. The dataset consisted of 1,170 JPG images and one MP4 video with five waste classes: aluminium, mixed plastic container, plastic bottle, plastic cup, and cardboard. The dataset was divided into 819 training data, 234 validation data, and 117 testing data. The research stages included problem identification, dataset collection, preprocessing, image resizing to 416 × 416 pixels, annotation using LabelImg, data splitting, YOLOv4 training, model testing, selling price estimation, and Flask web implementation. The experimental results showed that the best configuration was obtained using batch 64 and max_batches 2500, achieving an mAP of 90.70%, precision of 79%, recall of 89%, and F1-score of 84%. Testing on 251 objects produced 226 detected objects and 25 undetected objects, resulting in an overall accuracy of 90%. The findings indicate that YOLOv4 can be effectively used as a supporting tool for detecting and estimating the selling price of non-organic waste


Keywords

Computer Vision; Flask; Non-Organic Waste; Price Estimation; YOLOv4



Full Text: PDF



References


Aini, Q., Lutfiani, N., Kusumah, H., & Zahran, M. S. (2021). Deteksi dan pengenalan objek dengan model machine learning: Model YOLO. CESS (Journal of Computer Engineering, System and Science), 6(2), 192. https://doi.org/10.24114/cess.v6i2.25840

Alfarizi, D. N., Pangestu, R. A., Aditya, D., Setiawan, M. A., & Penelitian, M. (2023). Penggunaan metode YOLO pada deteksi objek: Sebuah tinjauan literatur sistematis. Jurnal Sistem dan Teknologi Informasi, 1(1), 54–63.

Arnita, Marpaung, F., Aulia, F., Suryani, N., & Nabila, R. C. (2022). Computer vision dan pengolahan citra digital (A. B. Surya, Ed.). Pustaka Aksara. www.pustakaaksara.co.id

Aziz, F. (2021). Deteksi objek menggunakan metode You Only Look Once (YOLO) untuk identifikasi penyakit padi [Thesis].

Bochkovskiy, A., Wang, C., & Liao, H. M. (2020). YOLOv4: Optimal speed and accuracy of object detection.

Cholissodin, I., & Soebroto, A. A. (2020). AI, machine learning & deep learning: Teori dan implementasi. http://bit.ly/3piOnnU

Darmawan, A. C. (2022). Pengembangan aplikasi berbasis web dengan Python Flask untuk klasifikasi data menggunakan metode Decision Tree C4.5. Jurnal Pendidikan Konseling, 4(5), 5351–5362.

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

Gunawan, T. S., Ashraf, A., & Riza, B. S. (2020). Development of video-based emotion recognition using deep learning with Google Colab. TELKOMNIKA, 18(5), 2463–2471. https://doi.org/10.12928/TELKOMNIKA.v18i5.16717

Guo, D., Cheng, L., Zhang, M., & Sun, Y. (2023). Garbage detection and classification based on improved YOLOv4. Journal of Physics: Conference Series. https://doi.org/10.1088/1742-6596/2024/1/012023

Holiyanti, R., Sukmawati, Fahmi, I., & Rozikin, C. (2022). Pendeteksi sampah metal untuk daur ulang menggunakan metode Convolutional Neural Network. Jurnal Teknik Informatika dan Sistem Informasi, 8, 261–274. https://doi.org/10.28932/jutisi.v8i1.4492

Mahasin, M., & Dewi, I. A. (2022). Comparison of CSPDarkNet53, CSPResNeXt-50, and EfficientNet-B0 backbones on YOLOv4 as object detector. Jurnal Teknologi Informasi, 2(3), 64–72.

Muttaqin, M. R., & Ramadhan, Y. R. (2023). Deteksi jenis sampah secara realtime menggunakan metode Single Shot Multibox Detector (SSD). Jurnal Mahasiswa Teknik Informatika, 7(3), 1890–1895.

Ramadhani, R. D., Thohari, A. N. A., Kartiko, C., Junaidi, A., & Laksana, T. G. (2021). Optimasi akurasi metode Convolutional Neural Network. Jurnal RESTI, 5(2), 11–12. https://doi.org/10.29207/resti.v5i2.2754

Ramadhany, A. (2023). Deteksi sampah organik dan non-organik menggunakan metode Mask R-CNN untuk mendukung kampanye zero waste di lingkungan Pondok Pesantren Nurul Jadid berbasis Web Flask.

Sihananto, A. N., Muharrom, M., Haromainy, A., Sari, A. P., Mubarrok, A. H., & Ramadhan, D. (2022). Pemilahan jenis sampah menggunakan algoritma CNN. Jurnal Ilmiah Teknologi Informasi, 17.

Yu, J., & Zhang, W. (2021). Face mask wearing detection algorithm based on improved YOLOv4.

Yusup, R. M., Anugrah, A. F., Muslimah, D. D., Widya, M., Permana, N., & Yuliani, S. (2024). Pendeteksian objek menggunakan OpenCV dan metode YOLOv4-Tiny untuk membantu tunanetra. Journal of Computer Science and Information Technology, 1(2), 59–68.




Refbacks

  • There are currently no refbacks.


Copyright (c) 2026 Luthfi Nurul Huda

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


    Published by Universitas Nurul Jadid

This journal is an open access journal distributed under the terms of the

Creative Commons Attribution-ShareAlike 4.0 International License