Hybrid Deep Learning Model for Coffee Leaf Disease Detection Using CNN DeiT
DOI:
10.33395/sinkron.v10i3.16200Keywords:
Coffee Plant Disease Detection, Convolutional Neural Networks (CNN), Data-efficient Image Transformer (DeiT), Hybrid Deep Learning Model, Robust Image ClassificationAbstract
Coffee production plays a crucial role in the agricultural economy; however, its productivity is significantly affected by plant diseases that are difficult to detect at early stages. Accurate disease identification remains challenging due to subtle visual differences and high intra-class variability in leaf symptoms. To address this problem, this study proposes a hybrid deep learning framework that integrates Convolutional Neural Networks (CNN) and Data-efficient Image Transformers (DeiT) for automated coffee leaf disease classification. The proposed architecture leverages CNN to capture fine-grained local features, while DeiT models global contextual relationships through self-attention mechanisms, enabling a more comprehensive feature representation.
The model is trained and evaluated on a dataset of 6,048 labeled images across four classes: Healthy, Rust, Red Spider, and Leaf Miner. Experimental results demonstrate that the proposed CNN–DeiT model outperforms baseline CNN and Transformer-based approaches, achieving an accuracy of 93.1%, an F1-score of 92.3%, and a ROC-AUC of 95.6%. Robustness analysis shows that performance degradation remains limited (1.6%–3.4%) under various perturbation conditions, while out-of-distribution evaluation indicates strong generalization capability with only a minor accuracy decrease. These findings confirm that the hybrid CNN–Transformer architecture effectively enhances classification performance, robustness, and generalization. This study contributes to the advancement of deep learning methodologies in agricultural image analysis by providing a robust and scalable framework for plant disease classification, with potential applications in precision agriculture and data-driven crop management.
Downloads
References
Abuhayi, B. M., & Mossa, A. A. (2023). Coffee disease classification using Convolutional Neural Network based on feature concatenation. Informatics in Medicine Unlocked, 39(February), 101245. https://doi.org/10.1016/j.imu.2023.101245
Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., Gelly, S., Uszkoreit, J., & Houslby, N. (2021). An image is worth 16 x 16 words : International Conference on Learning Representations, 1–21.
Foreign, A., & Service, A. (2025). Coffee : World Markets and Trade Record World Production Forecast Indonesia Robusta Output Rebounds. December.
Foysal, A. H., Ahmed, F., & Haque, Z. (n.d.). Multi-Class Plant Leaf Disease Detection : A CNN-based Approach with Mobile App Integration.
Ganesamoorthi, M., & Ravikumar, S. S. (2025). Unified Deep Learning Pipeline for License Plate Recognition: From Detection to Ocr With Faster Rcnn, Fcn, and Crnn. 2025 5th International Conference on Intelligent Communications and Computing (ICICC), 235–240. https://doi.org/10.1109/ICICC66840.2025.11199678
Günde, M., Keskin, F., & Icsik, G. (2025). Empowering few-shot plant disease diagnosis with DeiT and MAML++. Cluster Computing, 29(1). https://doi.org/10.1007/s10586-025-05810-2
Jayanti, N., & George Selan, C. (2022). Analisis Nilai Akurasi Pengolahan Citra Pendeteksian Rintangan Kerja Traktor Menggunakan K-Means Clustering. Jurnal Informatika Progres, 14(1), 25–32. https://doi.org/10.56708/progres.v14i1.318
Kaushik, P., Jain, E., Kukreja, V., Hariharan, S., Krishnamoorthy, M., Ahuja, V., Bhattacherjee, A., Kaushal, R. K., & Chen, S. Y. (2025). Modelling radiological features fusion and explainable AI in pneumonia detection: A graph- based deep learning and transformer approach. Results in Engineering, 26(January), 105225. https://doi.org/10.1016/j.rineng.2025.105225
Liu, Y., Wang, Y., & Shi, H. (2023). A Convolutional Recurrent Neural-Network-Based Machine Learning for Scene Text Recognition Application. Symmetry, 15(4). https://doi.org/10.3390/sym15040849
Lu, J., Tan, L., & Jiang, H. (2021). Review on convolutional neural network (CNN) applied to plant leaf disease classification. Agriculture (Switzerland), 11(8), 1–18. https://doi.org/10.3390/agriculture11080707
Motisi, N., Bommel, P., Leclerc, G., Robin, M. H., Aubertot, J. N., Butron, A. A., Merle, I., Treminio, E., & Avelino, J. (2022). Improved forecasting of coffee leaf rust by qualitative modeling: Design and expert validation of the ExpeRoya model. Agricultural Systems, 197(August 2021). https://doi.org/10.1016/j.agsy.2021.103352
Murugavalli, S., & Gopi, R. (2025). Plant leaf disease detection using vision transformers for precision agriculture. Scientific Reports, 15, 1–17. https://doi.org/10.1038/s41598‑025‑05102‑0
Muslim, R., Akbar, A., & Imran, B. (2023). Disease Detection of Rice and Chili Based on Image Classification Using Convolutional Neural Network Android-Based. 19(2). https://doi.org/10.33480/pilar.v19i2.4669
Muslim, R., Zaeniah, Z., Akbar, A., Imran, B., & Zaenudin, Z. (2023). Disease Detection of Rice and Chili Based on Image Classification Using Convolutional Neural Network Android-Based. Jurnal Pilar Nusa Mandiri, 19(2), 85–96. https://doi.org/10.33480/pilar.v19i2.4669
Priambodo, B., Fadlil, A., & Sunardi. (2025). PERBANDINGAN CNN UNTUK DETEKSI PENYAKIT DAUN TANAMAN NEW PLANT DISEASES BERBASIS CLOUD COMPUTING. JURNAL INFORMATIKA TEKNOLOGI DAN SAINS (JINTEKS), 7(4), 1817–1826.
R. Lumbanraja, F., Rosdiana, S., Sudarsono, H., & Junaidi, A. (2020). Sistem Pakar Diagnosis Hama Dan Penyakit Tanaman Kopi Menggunkan Metode Breadth First Search (Bfs) Berbasis Web. Explore: Jurnal Sistem Informasi Dan Telematika, 11(1), 1. https://doi.org/10.36448/jsit.v11i1.1452
Saputra, A. A., Susilo, B., Yusa, M., & Nurjanah, U. (2022). Sistem Pendeteksi Genus Gulma Pada Tanaman Jagung Menggunakan Algoritme Single Shot Detector. Rekursif: Jurnal Informatika, 10(1), 48–60. https://doi.org/10.33369/rekursif.v10i1.18634
Singh, N., Kaur, S., Ranjan, S., John, R., Kumar, A., Chand, J., Bhardwaj, R., & Riar, A. (2025). NIRCoreVision : A novel deep learning-based framework with GUI integration for core set selection from NIRS data using 1D CNN and k-means clustering. Journal of Agriculture and Food Research, 24(September), 102390. https://doi.org/10.1016/j.jafr.2025.102390
Teja, M. D., & Rayalu, G. M. (2025). Optimizing heart disease diagnosis with advanced machine learning models : a comparison of predictive performance. 6.
Tonmoy, M. R., Dey, N., Member, S., Mridha, M. F., & Member, S. (n.d.). MobilePlantViT : A Mobile-friendly Hybrid ViT for Generalized Plant. 1–8.
Touvron, H., Cord, M., Douze, M., Massa, F., & Sablayrolles, A. (2020). Training data-efficient image transformers & distillation through attention.
Xu, J., Gu, B., & Tian, G. (2022). Review of agricultural IoT technology. Artificial Intelligence in Agriculture, 6, 10–22. https://doi.org/10.1016/j.aiia.2022.01.001
Yu, J. M., Ma, H. J., & Kong, J. L. (2025). Receipt Recognition Technology Driven by Multimodal Alignment and Lightweight Sequence Modeling. Electronics (Switzerland), 14(9), 1–29. https://doi.org/10.3390/electronics14091717
Downloads
How to Cite
Issue
Section
License
Copyright (c) 2026 Jepri Banjarnahor, Reclesia Br Harianja, Syafridatul maulidah, Nenda Sartika Manalu

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






















Moraref
PKP Index
Indonesia OneSearch
OCLC Worldcat
Index Copernicus
Scilit
