Performance Comparasion of DenseNet-121 and MobileNetV2 for Cacao Fruit Disease Image Classification
Abstract
Introduction: Cacao fruit diseases significantly impact cocoa yield and quality in Indonesia. Early detection is critical, yet traditional methods are often time-consuming and error-prone due to the visual similarity of disease symptoms. This study aims to compare the performance of two Convolutional Neural Network (CNN) architectures—DenseNet-121 and MobileNetV2—for automated image classification of cacao fruit diseases. Methods: The dataset comprises 8000 images augmented from 2000 original photos taken in cocoa plantations in Bali, categorized into four classes: fruit rot, fruit-sucking pests, pod borers, and healthy fruits. Both CNN models were trained using the Adam optimizer, a learning rate of 0.001, and a dropout rate of 0.4. The input images were resized to 224×224 pixels. Evaluation metrics included accuracy, precision, recall, and F1-score. Results: DenseNet-121 outperformed MobileNetV2 across all metrics. DenseNet-121 achieved an accuracy of 94.50%, precision of 94.75%, recall of 94.25%, and F1-score of 94.50%. In comparison, MobileNetV2 reached an accuracy of 93.88%. Although MobileNetV2 offered faster training time and lower model complexity, DenseNet-121 demonstrated superior feature extraction and stability, supported by its deeper architecture and greater parameter capacity. Conclusions: DenseNet-121 is more effective than MobileNetV2 in classifying cacao fruit diseases, providing higher accuracy and robustness. Despite requiring more computational resources, it is better suited for developing a web-based cocoa disease detection tool to assist farmers in timely and accurate disease identification.
Downloads
References
D. Sihwinarti, A. J. Darmawan, A. Heptariza, I. Made, S. Ramayu, and K. N. Erawati, “Zero Waste Circular Economy: Transforming Chocolate Production into Chocolate Jam in Bali,” Jurnal Ekonomi, vol. 13, p. 2024, doi: 10.54209/ekonomi.v13i02.
L. Fudjaja, R. Ryadha, Saadah Saadah, N. M. Viantika, M. Ridwan, and R. Darma, “Fostering cocoa industry resilience: A collaborative approach to managing farm gate price fluctuations in West Sulawesi, Indonesia,” Open Agric, vol. 9, no. 1, Jan. 2024, doi: 10.1515/opag-2022-0312.
D. S. Arsyad et al., “A one health exploration of the reasons for low cocoa productivity in West Sulawesi,” One Health, vol. 8, Dec. 2019, doi: 10.1016/j.onehlt.2019.100107.
P. M. Etaware, “Some Identifiable Factors Responsible for the Variation in Cocoa Production in Nigeria and Other Cocoa Producing Nations, Adjudicated by Their Contributions to the Global Market,” Frontiers in Agronomy, vol. 4, Mar. 2022, doi: 10.3389/fagro.2022.731019.
C. Cilas and P. Bastide, “Challenges to Cocoa Production in the Face of Climate Change and the Spread of Pests and Diseases,” Agronomy, vol. 10, no. 9, Sep. 2020, doi: 10.3390/agronomy10091232.
E. Tovurawa, B. Dlamini, S. E. Moore, V. Marivate, and A. Modupe, “Cacao Plant Disease Detection and Classification,” Jan. 07, 2025. doi: 10.21203/rs.3.rs-5763786/v1.
S. P. M. Reis et al., “Genome-Wide Analysis of Moniliophthora roreri Facilitates the Development of Species-Specific Primers for Biomonitoring Frosty Pod Rot of Cacao,” PhytoFrontiersTM, Jan. 2025, doi: 10.1094/PHYTOFR-03-24-0032-R.
E. C. S. San Diego, S. G. C. Rodrin, and E. R. Arboleda, “CLASSIFICATION OF PROMINENT CACAO POD DISEASES USING MULTI-FEATURE VISUAL ANALYSIS AND K-NEAREST NEIGHBORS ALGORITHM,” Journal of Engineering and Technology for Industrial Applications, vol. 11, no. 51, pp. 28–34, Feb. 2025, doi: 10.5935/jetia.v11i51.1367.
E. A. Iñiguez Freites, “Automated Detection of the Main Pests in Cocoa Crops (<em>Theobroma cacao</em> L.) and Potential Natural Enemies Through Computerized Monitoring in the Dominican Republic,” Feb. 26, 2025. doi: 10.20944/preprints202502.2119.v1.
Z. Gao, Y. Tian, S.-C. Lin, and J. Lin, “A CT Image Classification Network Framework for Lung Tumors Based on Pre-trained MobileNetV2 Model and Transfer learning, And Its Application and Market Analysis in the Medical field.”
R. Archana and P. S. E. Jeevaraj, “Deep learning models for digital image processing: a review,” Artif Intell Rev, vol. 57, no. 1, Jan. 2024, doi: 10.1007/s10462-023-10631-z.
J. Lu, L. Tan, and H. Jiang, “Review on convolutional neural network (CNN) applied to plant leaf disease classification,” Aug. 01, 2021, MDPI AG. doi: 10.3390/agriculture11080707.
A. A. Elngar et al., “Image Classification Based On CNN: A Survey,” Journal of Cybersecurity and Information Management (JCIM), vol. 6, no. 1, p. 18, 2021, doi: 10.5281/zenodo.4897990.
A. A. Khan, O. Chaudhari, and R. Chandra, “A review of ensemble learning and data augmentation models for class imbalanced problems: Combination, implementation and evaluation,” Jun. 15, 2024, Elsevier Ltd. doi: 10.1016/j.eswa.2023.122778.
Z. Wang et al., “A Comprehensive Survey on Data Augmentation,” May 2024, [Online]. Available: http://arxiv.org/abs/2405.09591
T. Kumar, A. Mileo, R. Brennan, and M. Bendechache, “Image Data Augmentation Approaches: A Comprehensive Survey and Future directions,” Jan. 2023, doi: 10.1109/ACCESS.2024.3470122.
M. D’incà, C. Tzelepis, I. Patras, and N. Sebe, “Improving Fairness using Vision-Language Driven Image Augmentation.” [Online]. Available: https://github.com/Moreno98/
H. P. Hadi, E. H. Rachmawanto, and R. R. Ali, “Comparison of DenseNet-121 and MobileNet for Coral Reef Classification,” MATRIK : Jurnal Manajemen, Teknik Informatika dan Rekayasa Komputer, vol. 23, no. 2, pp. 333–342, Mar. 2024, doi: 10.30812/matrik.v23i2.3683.
A. Bello, S. C. Ng, and M. F. Leung, “Skin Cancer Classification Using Fine-Tuned Transfer Learning of DENSENET-121,” Applied Sciences (Switzerland), vol. 14, no. 17, Sep. 2024, doi: 10.3390/app14177707.
S. Chakraborty, A. Roy, P. Pramanik, D. Valenkova, and R. Sarkar, “A Dual Attention-aided DenseNet-121 for Classification of Glaucoma from Fundus Images,” Jun. 2024, [Online]. Available: http://arxiv.org/abs/2406.15113
M. A. Mutasodirin and F. M. Falakh, “Efficient Weather Classification Using DenseNet and EfficientNet,” Jurnal Informatika: Jurnal Pengembangan IT, vol. 9, no. 2, pp. 173–179, Aug. 2024, doi: 10.30591/jpit.v9i2.7539.
J. A. Patel, G. V. Lakhani, R. K. Vaghela, and D. L. Labana, “DenseMobile Net: Deep Ensemble Model for Precision and Innovation in Indian Food Recognition,” in ASEC 2024, Basel Switzerland: MDPI, Feb. 2025, p. 3. doi: 10.3390/engproc2025087003.
J. Potsangbam and S. Shuleenda Devi, “Classification of Breast Cancer Histopathological Images Using Transfer Learning with DenseNet121,” in Procedia Computer Science, Elsevier B.V., 2024, pp. 1990–1997. doi: 10.1016/j.procs.2024.04.188.
Q. Zhu, H. Zhuang, M. Zhao, S. Xu, and R. Meng, “A study on expression recognition based on improved mobilenetV2 network,” Sci Rep, vol. 14, no. 1, Dec. 2024, doi: 10.1038/s41598-024-58736-x.
T. Barman and S. Susan, “Multi-Label Remote Sensing Image Classification using MobileNetV2,” in 2024 15th International Conference on Computing Communication and Networking Technologies, ICCCNT 2024, Institute of Electrical and Electronics Engineers Inc., 2024. doi: 10.1109/ICCCNT61001.2024.10725506.
S. K. Bharadwaj, R. Jha, J. Kumar, D. K. Mishra, V. Shinde, and V. K. Jadon, “COMPARATIVE STUDY OF MOBILENETV2, SIMPLE CNN AND VGG19 FOR IMAGE CLASSIFICATION,” Journal of Data Acquisition and Processing, vol. 39, no. 1, p. 152, doi: 10.5281/zenodo.7546488.
M. Khoiruddin and S. Tena, “Fruit and Vegetable Classification using Convolutional Neural Network with MobileNetV2,” Journal of Applied and Research Computer Science and Information Systems, vol. 2, no. 2, pp. 203–210, 2024, doi: 10.61098/jarcis.v2i2.197.
L. Cao, “A MobileNetV2 model of transfer learning is employed for remote sensing image classification.”
E. Shavna Gracia, N. Anisa Sri Winarsih, and D. Nuswantoro, “Comparison of VGG16, MobileNetV2, InceptionV3, ResNet50, and Custom CNN Architectures for Furniture Image Classification,” vol. 16, no. 01, 2025, doi: 10.35970/infotekmesin.v16i1.2500.
S. Joshi, R. Shah, Y. Chandola, and V. Uniyal, “Classification of Brain MRI Images using End-to-End Trained AlexNet & End-to-End Pre-Trained MobileNet,” 2024. [Online]. Available: www.ijrpr.com
B. J. Bipin Nair, B. Arjun, S. Abhishek, N. M. Abhinav, and V. Madhavan, “Classification of Indian Medicinal Flowers using MobileNetV2,” in Proceedings of the 18th INDIAcom; 2024 11th International Conference on Computing for Sustainable Global Development, INDIACom 2024, Institute of Electrical and Electronics Engineers Inc., 2024, pp. 1512–1518. doi: 10.23919/INDIACom61295.2024.10498274.

Copyright (c) 2025 Indonesian Journal of Data and Science

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
License and Copyright Agreement
By submitting a manuscript to the Indonesian Journal of Data and Science (IJODAS), the author(s) confirm and agree to the following:
- All co-authors have given their consent to enter into this agreement.
- The submitted manuscript has not been formally published elsewhere, except as an abstract, thesis, or in the context of a lecture, review, or overlay journal.
- The manuscript is not currently under review or consideration by another journal or publisher.
- All authors have approved the manuscript and its submission to IJODAS, and where applicable, have received institutional approval (tacit or explicit) from affiliated organizations.
- The authors have secured appropriate permissions to reproduce any third-party material included in the manuscript that may be under copyright.
- The authors agree to abide by the licensing and copyright terms outlined below.
Copyright Policy
Authors who publish in IJODAS retain the copyright to their work and grant the journal the right of first publication. The published work is simultaneously licensed under a Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0) , which permits others to share and adapt the work for non-commercial purposes, with proper attribution to the authors and the initial publication in this journal.
Reuse and Distribution
- Authors may enter into separate, additional contractual arrangements for non-exclusive distribution of the journal-published version of the article (e.g., institutional repositories, book chapters), provided there is proper acknowledgment of its initial publication in IJODAS.
- Prior to and during the submission process, we encourage authors to archive preprints and accepted versions of their work on personal websites or institutional repositories. This method supports scholarly communication, visibility, and early citation.
For more details on the terms of the Creative Commons license used by IJODAS, please visit the official license page.