Automated identification and classification of Coffee Leaf Diseases using a Deep Learning Approach
DOI:
https://doi.org/10.61453/jods.v20260106Keywords:
Coffee Leaf Diseases, Deep Learning, 2D-CNN, Image Classification, Data Augmentation, LAB Color Space, CLAHE, Multi-Stage Classification, Agricultural applicationsAbstract
Coffee is regarded as the most consumed drink around the globe and has accounted for a major source of income in the regions where it is cultivated. To meet the coffee marketplace's requirements around the globe, cultivators must improve and analyze its cultivation and quality. Several factors, such as environmental changes and plant leaf diseases such as Miner, Rust, Phoma, and Cercospora are major hindrances to increasing the yield of coffee. These diseases often appear visually similar in their early stages, making accurate identification challenging using traditional methods. To overcome this issue, we developed a deep learning solution based on 2D Convolutional Neural Networks (2D-CNN) to automatically detect and classify these diseases from leaf images. Our dataset was compiled from three publicly available sources and enhanced through LAB color space transformation and Contrast Limited Adaptive Histogram Equalization (CLAHE) to improve image clarity. We implemented a multi-stage classification approach, tailoring the CNN architecture and data augmentation strategies at each stage to maximize performance. The model achieved a remarkable 99.86% accuracy on the final test set, demonstrating its strong potential as a reliable and efficient tool for disease detection in real-world coffee farming scenarios.
References
Aladhadh, S., Almatroodi, S. A., Habib, S., Alabdulatif, A., Khattak, S. U., & Islam, M. (2022). An efficient lightweight hybrid model with attention mechanism for enhancer sequence recognition. Biomolecules, 13(1), 70. https://doi.org/10.3390/biom13010070
Albahli, S., & Nawaz, M. (2022). DCNet: DenseNet-77-based CornerNet model for the tomato plant leaf disease detection and classification. Frontiers in Plant Science, 13, 957961. https://doi.org/10.3389/fpls.2022.957961
Albattah, W., Nawaz, M., Javed, A., Masood, M., & Albahli, S. (2022). A novel deep learning method for detection and classification of plant diseases. Complex & Intelligent Systems, 8(1), 507–524. https://doi.org/10.1007/s40747-021-00536-1
Ali, J., Singh, S. K., Jiang, W., Alenezi, A. M., Islam, M., Daradkeh, Y. I., & Mehmood, A. (2025). A deep dive into cybersecurity solutions for AI-driven IoT-enabled smart cities in advanced communication networks. Computer Communications, 229, 108000. https://doi.org/10.1016/j.comcom.2024.108000
Aufar, Y., Abdillah, M. H., & Romadoni, J. (2023). Web-based CNN application for Arabica coffee leaf disease prediction in smart agriculture. Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi), 7(1), 71–79. https://doi.org/10.29207/resti.v7i1.4622
Ayikpa, K. J., Mamadou, D., Gouton, P., & Adou, K. J. (2022). Experimental evaluation of coffee leaf disease classification and recognition based on machine learning and deep learning algorithms. Journal of Computer Science, 18(12), 1201–1212. https://doi.org/10.3844/jcssp.2022.1201.1212
Chang, S. J., & Huang, C. Y. (2021). Deep learning model for the inspection of coffee bean defects. Applied Sciences, 11(17), 8226. https://doi.org/10.3390/app11178226
Habib, S., Alyahya, S., Islam, M., Alnajim, A. M., Alabdulatif, A., & Alabdulatif, A. (2022). Design and implementation: An IoT-framework-based automated wastewater irrigation system. Electronics, 12(1), 28. https://doi.org/10.3390/electronics12010028
Habib, S., Khan, I., Aladhadh, S., Islam, M., & Khan, S. (2022). External features-based approach to date grading and analysis with image processing. Emerging Science Journal, 6(4), 694. https://doi.org/10.28991/ESJ-2022-06-04-03
Hoosain, M. S., Paul, B. S., & Ramakrishna, S. (2020). The impact of 4IR digital technologies and circular thinking on the United Nations Sustainable Development Goals. Sustainability, 12(23), 10143. https://doi.org/10.3390/su122310143
Jaworska, M., & Majchrzak, W. (2025). The coffee market in global terms: Production and trade considerations. Journal of Agribusiness and Rural Development, 76(2), 177–186. https://doi.org/10.17306/j.jard.2025.00015r2
Jepkoech, J., Kenduiywo, B., Mugo, D., & Chebet, E. (2021). JMuBEN [Data set]. Mendeley Data. https://doi.org/10.17632/t2r6rszp5c.1
Jepkoech, J., Mugo, D., Kenduiywo, B., & Chebet, E. (2021). JMuBEN2 (Version 1) [Data set]. Mendeley Data. https://doi.org/10.17632/tgv3zb82nd.1
Jepkoech, J., Mugo, D. M., Kenduiywo, B. K., & Too, E. C. (2021). Arabica coffee leaf images dataset for coffee leaf disease detection and classification. Data in Brief, 36, 107142. https://doi.org/10.1016/j.dib.2021.107142
Khan, H., Jan, Z., Ullah, I., Alwabli, A., Alharbi, F., Habib, S., Islam, M., Shin, B. J., Lee, M. Y., & Koo, J. (2024). A deep dive into AI integration and advanced nanobiosensor technologies for enhanced bacterial infection monitoring. Nanotechnology Reviews, 13(1), 20240056. https://doi.org/10.1515/ntrev-2024-0056
Krohling, E. G. J. M., R. A., & Ventura, J. A. (2019). BRACOL—A Brazilian Arabica coffee leaf images dataset for the identification and quantification of coffee diseases and pests [Data set]. Mendeley Data. https://doi.org/10.17632/yy2k5y8mxg.1
Waqas, N., Islam, M., Yahya, M., Habib, S., Aloraini, M., & Khan, S. (2025). Med-ReLU: A parameter-free hybrid activation function for deep artificial neural network used in medical image segmentation. Computers, Materials & Continua, 84(2). https://doi.org/10.32604/cmc.2025.064660
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Journal of Data Science

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