JKBPM

Article Details

Vol. 1 No. 1 (2026): Februari

Articles

Website-Based Convolutional Neural Network for Banana Freshness Detection to Prevent Health Risks

A Arya Gunawan K Ketut Artaye
Abstract

Purpose: This study aimed to develop a web-based system to detect the freshness level of Cavendish bananas using image-based classification to help assess fruit quality and reduce losses during distribution.

Methodology/approach: This study used a dataset of 1,030 labeled images of Cavendish bananas categorized into four classes: fresh, ripe, unripe, and rotten. Image preprocessing techniques, such as resizing, normalization, and data augmentation, were applied. A Convolutional Neural Network (CNN) model was trained using Python with machine learning libraries, and the trained model was integrated into a web application built with Streamlit to enable real-time image-based predictions.

Results: The proposed CNN model achieved an accuracy of 99%, with average precision, recall, and F1-score values of 0.99. The web-based system successfully provided real-time freshness predictions through image uploads or camera captures.

Conclusions: This study confirms that the web-based CNN system effectively detects Cavendish banana freshness with high accuracy. The integration into a Streamlit application enables real-time and practical use for quality assessment. The system demonstrates the potential of machine learning to support agricultural quality control, reduce post-harvest losses, and enhance food safety.

Limitations: This study was limited to Cavendish banana images and controlled image conditions; therefore, performance may vary when applied to other banana varieties or different lighting environments.

Contributions: This study contributes to the application of machine learning and computer vision in agricultural quality assessment. The system provides a practical tool for farmers, distributors, and consumers to objectively evaluate banana freshness, reduce economic losses, and support public health.

Keywords: Banana Freshness Detection Convolutional Neural Network Image Classification Machine Learning Streamlit
How to Cite
Gunawan, A., & Artaye, K. (2026). Website-Based Convolutional Neural Network for Banana Freshness Detection to Prevent Health Risks. Jurnal Kecerdasan Buatan Dan Pembelajaran Mesin, 1(1), 1–22. https://doi.org/10.35912/jkbpm.v1i1.6025
References
  1. Christian, J., & Al Idrus, S. I. (2023). Introduction to Citrus Fruit Ripens Using the Deep Learning Convolutional Neural Network (CNN) Learning Method. Asian Journal of Applied Education (AJAE), 2(3), 459-470. doi:https://doi.org/10.55927/ajae.v2i3.5003
  2. Fatahna, I., Sari, P. D. K., Wulanningrum, R., & Utomo, W. C. (2025). Implementasi Computer Vision Terhadap Jenis Kualitas Pisang Susu Menggunakan Metode YOLOv8n Berbasis WebApps. Paper presented at the Seminar Nasional Teknologi & Sains. doi:https://doi.org/10.29407/9ezqf773
  3. Febriansyah, F., Oktavianus, D., & Nasrullah, A. (2023). Pengembangan Produk Olahan Hasil Pertanian Tidak Layak Jual Pepaya APeS dan Pisang KeMPeS. Yumary: Jurnal Pengabdian kepada Masyarakat, 4(2), 165-174. doi:10.35912/yumary.v4i2.2445
  4. Ferbangkara, S., Mulyani, Y., Mardiana, M., Pratama, R. W. A., Putri, R. A. M., & Rafi'syaiim, M. A. (2025). Analisis Akurasi dan Optimalisasi Dataset untuk Klasifikasi Tanaman Aristolochia acuminata dengan Algoritma CNN. Jurnal Teknologi Riset Terapan, 3(1), 13-20. doi:10.35912/jatra.v3i1.5014 doi:https://doi.org/10.35912/jatra.v3i1.5014
  5. Haritha, M., Raju, G., Jacob, A. M., & Thampi, G. (2024). Remediation of waste water through natural coagulants such as lemon and banana peel. Paper presented at the E3S Web of Conferences. doi:https://doi.org/10.1051/e3sconf/202452903004
  6. Ikhtiar, M., Riswan, K. A., Asrina, A., & Puspitasari, A. (2024). Hubungan Perceived Severity Dengan Perilaku BABS Pada Masyarakat Pesisir kab. Takalar Tahun 2024. Media Kesehatan Politeknik Kesehatan Makassar, 19(1), 77-83. doi:https://doi.org/10.32382/medkes.v19i1.654
  7. Kalsum, U., Subandi, Y., & Wiratma, H. D. (2023). Petani Tanggamus Mitra PT. Great Giant Pineapple Mengekspor Pisang Mas ke Singapura Tahun 2021. Primer: Jurnal Ilmiah Multidisiplin, 1(2), 152-164. doi:https://doi.org/10.55681/primer.v1i2.63
  8. Khairina, S. Q., Hidayatulloh, F. S., & Triyonggo, Y. (2025). Pengaruh Kompetensi Dan Employee Engagement Terhadap Kinerja Karyawan Dengan Iklim Organisasi Sebagai Mediasi. Jurnal Manajemen Dan Organisasi, 16(4), 421-432. doi:https://doi.org/10.29244/jmo.v16i4.66574
  9. Kurniyanti, V. A., & Murdiani, D. (2022). Perbandingan Model Waterfall Dengan Prototype Pada Pengembangan System Informasi Berbasis Website. Jurnal Syntax Fusion, 2(08), 669-675. doi:https://doi.org/10.54543/fusion.v2i08.210
  10. Marhaen, M., Kusmiadi, R., & Ropalia, R. (2023). Kajian Penggunaan Daun Pisang Kering dalam Pematangan Buah Pisang (Musa Paradisiaca L CV. Kepok) dengan Metode Pemeraman di Lubang Tanah. Jurnal Ilmiah Pertanian dan Peternakan, 1(1), 35-46. doi:https://doi.org/10.35912/jipper.v1i1.2602
  11. Marpaung, F., Aulia, F., & Nabila, R. C. (2022). Computer Vision Dan Pengolahan Citra Digital: Pustaka Aksara. (ISBN: 978-623-8230-27-3)
  12. Martinus, M., Ferbangkara, S., Annisa, R., Hidayatullah, V., Pratama, R. W. A., & Makarim, A. R. (2025). Pemodelan AI dengan CNN Untuk Klasifikasi Tanaman Uvaria Grandiflora di Hutan Tropis Indonesia. Jurnal Teknologi Riset Terapan, 3(1), 1-11. doi:10.35912/jatra.v3i1.5012 doi:https://doi.org/10.35912/jatra.v3i1.5012
  13. Noordianty, A. S., Najma, S., & Nurlaela, R. S. (2024). Kajian Literatur: Penerapan Aspek Sanitasi Terhadap Mutu dan Produk Pangan. Karimah Tauhid, 3(7), 7308-7317. doi:https://doi.org/10.30997/karimahtauhid.v3i7.14024
  14. Nugraha, R. S., & Hermawan, A. (2023). Optimasi Akurasi Metode Convolutional Neural Network Untuk Klasifikasi Kualitas Buah Apel Hijau. Jurnal Mnemonic, 6(2), 149-156. doi:https://doi.org/10.36040/mnemonic.v6i2.6730
  15. Pramukti, P., & Setiawan, I. R. (2025). Implementasi Algoritma Yolov8 (You Only Look Once) Untuk Deteksi Jenis Buah Pisang Secara Real-Time. doi:https://doi.org/10.37150/x3pp0849
  16. Raja, H. F. M., Muhammad, M. A., Martinus, M., Pandu, W., Muhkito, A., & Muhammad, A. (2025). Classification of Rare Mussaenda Species in Indonesia's Tropical Forests Using the CNN Algorithm. Jurnal Teknologi Riset Terapan, 2(2), 115-122. doi:10.35912/jatra.v2i2.5011
  17. Ramdany, S., Kaidar, S. A., Aguchino, B., Putri, C., & Anggie, R. (2024). Penerapan UML class diagram dalam perancangan sistem informasi perpustakaan berbasis web. Journal of Industrial and Engineering System, 5(1). doi:https://doi.org/10.31599/2e9afp31
  18. Rozan, K., Rozaki, Z., Wulandari, R., & Distrianada, R. I. (2024). Pemanfaatan Teknologi oleh Petani Milenial. Paper presented at the Seminar Nasional Agribisnis.
  19. Siswanto, S., Dewi, M. U., Kholifah, S., Widhiati, G., & Aryani, W. (2023). Penggunaan Model Deep Learning Untuk Meningkatkan Efisiensi Dalam Aplikasi Machine Learning. Jurnal Penelitian Sistem Informasi (JPSI), 1(4), 215-238. doi:https://doi.org/10.54066/jpsi.v1i4.1619
  20. Subagiya, B. (2023). Eksplorasi penelitian Pendidikan Agama Islam melalui kajian literatur: Pemahaman konseptual dan aplikasi praktis. Ta'dibuna: Jurnal Pendidikan Islam, 12(3), 304-318. doi:https://doi.org/10.32832/tadibuna.v12i3.14113
  21. Surbakti, Y. S. B. (2025). Metode Waterfall Dalam System Development Life Cycle (SDLC): March.
  22. Syaharani, M. A., Budianto, T. A. C., & Adam, R. I. (2024). Klasifikasi Buah Segar Dan Busuk Menggunakan Algoritma Convolutional Neural Network (CNN). JATI (Jurnal Mahasiswa Teknik Informatika), 8(5), 10823-10827. doi:https://doi.org/10.36040/jati.v8i5.11132
  23. Wahyuni, N. P. O., Noer, I., & Trisnanto, T. B. (2022). Sikap konsumen dalam pembelian buah pisang Cavendish di pasar modern Kota Bandar Lampung. Journal of Food System and Agribusiness, 201-207. doi:https://doi.org/10.25181/jofsa.v6i2.2455
  24. Wijaya, P., Makarim, A. R., Muhammad, M. A., Febriyani, C., Hidayatullah, V., & Annisa, R. (2024). Technology-Based Classification of Clerodendrum Paniculatum Using CNN and Confusion Matrix. Jurnal Teknologi Riset Terapan, 2(1), 27-36. doi:10.35912/jatra.v2i1.4598