Classification of Purple Passion Fruit Ripeness Levels Using Convolutional Neural Network (CNN)

Authors

  • Mochammad Gani Alfa Alkhoiri Siregar Universitas Negeri Medan
  • Said Iskandar Al Idrus Universitas Negeri Medan
  • Hermawan Syahputra Universitas Negeri Medan
  • Insan Taufik Universitas Negeri Medan
  • Kana Saputra S Universitas Negeri Medan

DOI:

https://doi.org/10.59934/jaiea.v5i2.1787

Keywords:

Purple passion fruit, Fruit classification, Convolutional Neural Network, Machine learning, Web application

Abstract

Passiflora edulis Sims (purple passion fruit) is a fruit that offers numerous health benefits and possesses high economic value. However, the manual assessment of ripeness by traders tends to be subjective and inconsistent, leading to post-harvest losses of up to 50%. This study developed a classification model for determining the ripeness level of purple passion fruit using a Convolutional Neural Network (CNN) and implemented it in a web-based application. The CNN model was designed to classify four ripeness stages (unripe, half-ripe, ripe, and rotten) with the addition of a non-passion-fruit class to enhance the system’s robustness. The dataset consisted of 2,000 images divided into five classes: four ripeness levels of purple passion fruit (unripe, half-ripe, ripe, and rotten) and one non-passion-fruit class as a comparator. All images were in JPG and PNG formats. The CNN architecture comprised four convolutional layers with 16, 32, 64, and 128 filters, respectively. Evaluation of various data-splitting ratios (80:20, 70:30, 60:40) and learning rates (0.001, 0.0001, 0.01) showed that the optimal configuration was achieved at a ratio of 80:20 with a learning rate of 0.001, resulting in a training accuracy of 96.72% and a testing accuracy of 95.76%, with a loss value of 0.1811. Validation using 5-Fold Cross Validation produced an average accuracy of 95.40%. The model was integrated into a web application developed using Flask and JavaScript, deployed on the PythonAnywhere cloud platform, enabling users to upload images and automatically obtain ripeness predictions to assist traders in sorting fruits more quickly and accurately.

Downloads

Download data is not yet available.

References

S. Rahayuningsih and A. Nugraha, “Analisis sektor pertanian sebagai sektor unggulan di Indonesia,” Jurnal Agribisnis Indonesia, vol. 9, no. 2, pp. 112–121, 2021.

L. Muntafiah and N. Hidayati, “Analisis kandungan kimia dan manfaat buah markisa ungu (Passiflora edulis Sims),” Jurnal Sains dan Kesehatan, vol. 2, no. 3, pp. 45–52, 2019.

R. Nugroho and D. Wibowo, “Kandungan flavonoid dan aktivitas antioksidan buah markisa ungu,” Jurnal Kimia dan Pangan, vol. 8, no. 1, pp. 25–33, 2020.

M. Rosiana and S. Yuliani, “Aktivitas antibakteri ekstrak kulit buah markisa ungu terhadap Staphylococcus aureus dan Escherichia coli,” Jurnal Bioteknologi, vol. 7, no. 1, pp. 59–66, 2021.

N. Lestari and M. Syahrial, “Pemanfaatan markisa ungu dalam industri pangan dan minuman,” Jurnal Agroindustri, vol. 12, no. 2, pp. 88–95, 2020.

Badan Pusat Statistik (BPS), Statistik Produksi Hortikultura Indonesia Tahun 2020. Jakarta: BPS, 2021.

R. Rukmana, Budidaya dan Pascapanen Buah Markisa Ungu. Yogyakarta: Kanisius, 2022.

R. Sembiring and H. Fitriani, “Pengaruh tingkat kematangan terhadap kualitas buah markisa ungu,” Jurnal Teknologi Pertanian, vol. 5, no. 3, pp. 101–109, 2019.

D. Wahyuni and R. Firmansyah, “Analisis metode penentuan kematangan buah secara manual dan digital,” Jurnal Keteknikan Pertanian, vol. 11, no. 1, pp. 23–30, 2020.

I. A. Putra and M. Pradana, “Penerapan convolutional neural network (CNN) untuk deteksi penyakit tanaman padi,” Jurnal Teknologi Informasi Pertanian, vol. 9, no. 2, pp. 77–86, 2021.

N. Hasanah and D. Ramadhani, “Pengenalan pola warna dan tekstur buah menggunakan deep learning CNN,” Jurnal Sains Komputer, vol. 6, no. 3, pp. 114–122, 2020.

L. Salamah and A. Supriyadi, “Klasifikasi kematangan dan ukuran buah nanas menggunakan CNN berbasis Android,” Jurnal Teknologi dan Rekayasa, vol. 5, no. 1, pp. 14–21, 2023.

X. Tu, Y. Li, and Q. Zhang, “Detection and classification of passion fruit ripeness using RGB-depth images and CNN,” Computers and Electronics in Agriculture, vol. 156, pp. 563–572, 2018.

Y. LeCun, Y. Bengio, and G. Hinton, “Deep learning,” Nature, vol. 521, no. 7553, pp. 436–444, 2015.

A. Krizhevsky, I. Sutskever, and G. E. Hinton, “ImageNet classification with deep convolutional neural networks,” Advances in Neural Information Processing Systems (NeurIPS), vol. 25, pp. 1097–1105, 2012.

M. Nielsen, Neural Networks and Deep Learning. Determination Press, 2015.

M. Ulum and E. Prasetyo, “Klasifikasi tingkat kematangan cabai rawit menggunakan CNN dan K-Nearest Neighbor,” Jurnal Ilmu Komputer, vol. 12, no. 1, pp. 45–54, 2024.

A. Setya Nugraha and H. Hermawan, “Optimasi akurasi CNN untuk klasifikasi kualitas buah apel hijau,” Jurnal Teknologi Informasi dan Komputer, vol. 7, no. 2, pp. 99–107, 2023.

D. Kurniawan and B. Santoso, “Klasifikasi tingkat kematangan buah markisa menggunakan jaringan syaraf tiruan,” Jurnal Pengolahan Citra Digital, vol. 6, no. 1, pp. 31–38, 2020.

M. Azhari and F. Wijaya, “Implementasi CNN untuk identifikasi tanda tangan pada aplikasi mobile,” Jurnal Informatika dan Komputer, vol. 9, no. 2, pp. 55–63, 2021.

Downloads

Published

2026-02-15

How to Cite

Siregar, M. G. A. A., Said Iskandar Al Idrus, Hermawan Syahputra, Insan Taufik, & Kana Saputra S. (2026). Classification of Purple Passion Fruit Ripeness Levels Using Convolutional Neural Network (CNN). Journal of Artificial Intelligence and Engineering Applications (JAIEA), 5(2), 2152–2159. https://doi.org/10.59934/jaiea.v5i2.1787