Classification of Avocado Varieties and Maturity Levels Using Quantized MobileNetV2 in a Mobile Application

Main Article Content

Rahmat Hidayat
Hidra Amnur
Fajar Shidiq
Anla Harpanda

Abstract

Visual grading of avocado ripeness and variety by distributors and consumers is subjective, and published deep-learning studies on avocado rarely report what happens when a trained model is integrated into a working application. This study presents a proof-of-concept, end-to-end system that classifies two Indonesian avocado varieties (Aligator and Miki) and four ripeness stages (unripe, half-ripe, ripe, overripe) from smartphone photographs. Two MobileNetV2 transfer-learning models were trained on a self-collected image set photographed from several fruits over multiple observation days, with training, validation and test subsets separated by fruit identity to prevent data leakage. The models were converted to post-training-quantized TensorFlow Lite (≈2.7 MB each) and served through a FastAPI–MySQL backend to a Flutter application. On a held-out test set of 32 images, the variety model classified all images correctly (100%; Wilson 95% CI 89.3–100%), and the ripeness model reached 84.4% accuracy (95% CI 68.2–93.1%), a macro-F1 of 0.814, a Cohen's κ of 0.686 and a quadratic-weighted κ of 0.900, against a majority-class baseline of 62.5% (one-sided exact binomial p = 0.006). Four of the five ripeness errors were half-ripe fruits predicted as unripe; half-ripe recall was 0.375 (3/8). Integration testing exposed two defects invisible to offline evaluation, a class-label ordering error and double input normalization, which caused near-constant predictions until corrected. Because the test set is small and drawn from a limited number of fruits, the results should be read as preliminary, and larger fruit-level evaluation and field testing with users are needed.

Article Details

How to Cite
Hidayat, R., Amnur, H., Shidiq, F., & Harpanda, A. (2026). Classification of Avocado Varieties and Maturity Levels Using Quantized MobileNetV2 in a Mobile Application. JITSI : Jurnal Ilmiah Teknologi Sistem Informasi, 7(3), 273 - 279. https://doi.org/10.62527/jitsi.7.3.619
Section
Articles

References

[1] T. Ramirez-Guerrero, M. I. Hernandez-Perez, M. S. Tabares, A. Marulanda-Tobon, E. Villanueva, and A. Peña, “Agroclimatic and phytosanitary events and emerging technologies for their identification in avocado crops: A systematic literature review,” Agronomy, vol. 13, no. 8, Art. no. 1976, 2023, doi: 10.3390/agronomy13081976.
[2] M. Dyrmann, H. Karstoft, and H. S. Midtiby, “Plant species classification using deep convolutional neural network,” Biosystems Engineering, vol. 151, pp. 72–80, 2016, doi: 10.1016/j.biosystemseng.2016.08.024.
[3] N. Aherwadi, U. Mittal, J. Singla, N. Z. Jhanjhi, A. Yassine, and M. S. Hossain, “Prediction of fruit maturity, quality, and its life using deep learning algorithms,” Electronics, vol. 11, no. 24, Art. no. 4100, 2022, doi: 10.3390/electronics11244100.
[4] C. A. Jaramillo-Acevedo, W. E. Choque-Valderrama, G. E. Guerrero-Álvarez, and C. A. Meneses-Escobar, “Hass avocado ripeness classification by mobile devices using digital image processing and ANN methods,” International Journal of Food Engineering, vol. 16, no. 12, 2020, doi: 10.1515/ijfe-2019-0161.
[5] P. Xavier, P. M. Rodrigues, and C. L. M. Silva, “Shelf-life management and ripening assessment of ‘Hass’ avocado (Persea americana) using deep learning approaches,” Foods, vol. 13, no. 8, Art. no. 1150, 2024, doi: 10.3390/foods13081150.
[6] Hidayat, R., Nuryana, Z., Erianda, A., Alanda, A., Rasyidah, Amnur, H. (2026). Visual Analysis and Scientometric Mapping of Deep Learning Techniques for Grapevine Disease Classification. In: Badioze Zaman, H., et al. Advances in Visual Informatics. IVIC 2025. Lecture Notes in Computer Science, vol 16215. Springer, Singapore.
[7] Y. J. Davur, W. Kämper, K. Khoshelham, S. J. Trueman, and S. H. Bai, “Estimating the ripeness of Hass avocado fruit using deep learning with hyperspectral imaging,” Horticulturae, vol. 9, no. 5, Art. no. 599, 2023, doi: 10.3390/horticulturae9050599.
[8] N. Ruseno, F. Ernawan, M. A. Salamat, M. S. Arshad, and H. Amnur, “An Enhanced YOLOv8 Model Integrated with CNN for Real-Time Vehicle License Plate Recognition,” JOIV : International Journal on Informatics Visualization, vol. 10, no. 1, doi: http://dx.doi.org/10.62527/joiv.10.1.5145.
[9] S. Nuanmeesri, “Utilization of multi-channel hybrid deep neural networks for avocado ripeness classification,” Engineering, Technology & Applied Science Research, vol. 14, no. 4, pp. 14862–14867, 2024, doi: 10.48084/etasr.7651.
[10] W. Widiati and T. Haryanto, “Deep learning for automatic classification of avocado fruit maturity,” Jurnal Pilar Nusa Mandiri, vol. 20, no. 1, pp. 75–80, 2024, doi: 10.33480/pilar.v20i1.5043.
[11] M. Sandler, A. Howard, M. Zhu, A. Zhmoginov, and L.-C. Chen, “MobileNetV2: Inverted residuals and linear bottlenecks,” in Proc. IEEE/CVF Conf. Computer Vision and Pattern Recognition (CVPR), 2018, pp. 4510–4520, doi: 10.1109/CVPR.2018.00474.
[12] B. Jacob, S. Kligys, B. Chen, M. Zhu, M. Tang, A. Howard, H. Adam, and D. Kalenichenko, “Quantization and training of neural networks for efficient integer-arithmetic-only inference,” in Proc. IEEE/CVF Conf. Computer Vision and Pattern Recognition (CVPR), 2018, pp. 2704–2713, doi: 10.1109/CVPR.2018.00286.
[13] S. Kapoor and A. Narayanan, “Leakage and the reproducibility crisis in machine-learning-based science,” Patterns, vol. 4, no. 9, Art. no. 100804, 2023, doi: 10.1016/j.patter.2023.100804.
[14] A. Buslaev, V. I. Iglovikov, E. Khvedchenya, A. Parinov, M. Druzhinin, and A. A. Kalinin, “Albumentations: Fast and flexible image augmentations,” Information, vol. 11, no. 2, Art. no. 125, 2020, doi: 10.3390/info11020125.
[15] J. Cohen, “A coefficient of agreement for nominal scales,” Educational and Psychological Measurement, vol. 20, no. 1, pp. 37–46, 1960, doi: 10.1177/001316446002000104.
[16] L. D. Brown, T. T. Cai, and A. DasGupta, “Interval estimation for a binomial proportion,” Statistical Science, vol. 16, no. 2, pp. 101–133, 2001, doi: 10.1214/ss/1009213286.