Wheat Leaf Disease Detection: A Lightweight Approach with Shallow CNN Based Feature Refinement
Abstract
:1. Introduction
- We introduced a hybrid model for wheat disease detection using a small dataset, leveraging both a deep learning framework and transfer learning. Our approach was tested on complex images captured in realistic growth scenarios with diverse backgrounds;
- We evaluated the proposed model by applying a range of diverse metrics, like accuracy, precision, recall, F1-score, and confusion matrix;
- We justified our model by distinguishing it from other cutting-edge models through the use of precision, recall, and accuracy;
- We validated the lightweight nature of our model and its suitability for deployment on edge devices by evaluating its size and trainable parameters in comparison to other cutting-edge research.
2. Related Works
3. Background
3.1. Transfer Learning Strategies
- Inductive Transfer Learning:In this type of learning, the source and target domains remain unchanged, yet the tasks differ. This strategy involves using previously trained models, typically trained on a large dataset, to reduce the search space or accelerate learning for the target task. By transmitting knowledge from the source task to the target task, the model could benefit from features learned during pretraining, improving performance on the target task;
- Transductive Transfer Learning:This type of learning occurs when the source and target tasks are the same, yet the domains differ. In this scenario, the aim is to adjust the source model to the target domain, taking into account differences in data distribution, characteristics, or other domain-specific factors. The model is fine-tuned using labeled data from the target domain to improve its efficiency on the target task within the new domain;
- Unsupervised Transfer Learning:Unsupervised TL addresses situations where both the source and target tasks, as well as the domains, are different. This strategy aims to discover a good representation or feature space for the target domain using data from the source domain. By learning relevant features from the source data without task-specific annotations, the model can generalize better to the target task in the new domain, even when labeled data are scarce or unavailable.
The Literature on Transfer Learning in Agriculture
4. Materials and Methods
4.1. Data Collection
4.2. Data Preprocessing
4.3. Data Augmentation
4.4. The Proposed Methodology
4.5. Convolutional Neural Network
CropNet
4.6. Deep Neural Networks
4.7. Hyperparameter Tuning
4.8. Model Training
4.9. Model Selection
4.10. Performance Evaluation Metrics
4.11. Proposed IoT System for Wheat Disease Detection
5. Results and Discussion
5.1. Custom DNN with Pretrained Feature Extractors
5.2. Custom CNN with Pretrained Feature Extractors
CropNet Performances
5.3. Confusion Matrix Analysis
6. Further Discussion
7. Conclusions and Future Work
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Erenstein, O.; Jaleta, M.; Mottaleb, K.A.; Sonder, K.; Donovan, J.; Braun, H.J. Global trends in wheat production, consumption and trade. In Wheat Improvement: Food Security in a Changing Climate; Springer International Publishing: Cham, Switzerland, 2022; pp. 47–66. [Google Scholar]
- Bhola, A.; Kumar, P. Deep feature-support vector machine based hybrid model for multi-crop leaf disease identification in Corn, Rice, and Wheat. Multimed. Tools Appl. 2024, 1–21. [Google Scholar] [CrossRef]
- Pantazi, X.E.; Moshou, D.; Tamouridou, A.A. Automated leaf disease detection in different crop species through image features analysis and One Class Classifiers. Comput. Electron. Agric. 2019, 156, 96–104. [Google Scholar] [CrossRef]
- Huang, L.; Liu, Y.; Huang, W.; Dong, Y.; Ma, H.; Wu, K.; Guo, A. Combining random forest and XGBoost methods in detecting early and mid-term winter wheat stripe rust using canopy level hyperspectral measurements. Agriculture 2022, 12, 74. [Google Scholar] [CrossRef]
- Waldamichael, F.G.; Debelee, T.G.; Schwenker, F.; Ayano, Y.M.; Kebede, S.R. Machine learning in cereal crops disease detection: A review. Algorithms 2022, 15, 75. [Google Scholar] [CrossRef]
- Prodeep, A.R.; Hoque, A.M.; Kabir, M.M.; Rahman, M.S.; Mridha, M. Plant disease identification from leaf images using deep CNN’S efficientnet. In Proceedings of the 2022 International Conference on Decision Aid Sciences and Applications (DASA), Chiangrai, Thailand, 23–25 March 2022; pp. 523–527. [Google Scholar]
- Jouini, O.; Sethom, K.; Bouallegue, R. Wheat leaf disease detection using CNN in Smart Agriculture. In Proceedings of the 2023 International Wireless Communications and Mobile Computing (IWCMC), Marrakesh, Morocco, 19–23 June 2023; pp. 1660–1665. [Google Scholar]
- Elsherbiny, O.; Elaraby, A.; Alahmadi, M.; Hamdan, M.; Gao, J. Rapid Grapevine Health Diagnosis Based on Digital Imaging and Deep Learning. Plants 2024, 13, 135. [Google Scholar] [CrossRef]
- Ghosh, P.; Mondal, A.K.; Chatterjee, S.; Masud, M.; Meshref, H.; Bairagi, A.K. Recognition of sunflower diseases using hybrid deep learning and its explainability with AI. Mathematics 2023, 11, 2241. [Google Scholar] [CrossRef]
- Orchi, H.; Sadik, M.; Khaldoun, M.; Sabir, E. Automation of crop disease detection through conventional machine learning and deep transfer learning approaches. Agriculture 2023, 13, 352. [Google Scholar] [CrossRef]
- Tang, Z.; Yang, J.; Li, Z.; Qi, F. Grape disease image classification based on lightweight convolution neural networks and channelwise attention. Comput. Electron. Agric. 2020, 178, 105735. [Google Scholar] [CrossRef]
- Verma, S.; Kumar, P.; Singh, J.P. A unified lightweight CNN-based model for disease detection and identification in corn, rice, and wheat. IETE J. Res. 2023, 1–12. [Google Scholar] [CrossRef]
- Aboneh, T.; Rorissa, A.; Srinivasagan, R.; Gemechu, A. Computer vision framework for wheat disease identification and classification using Jetson GPU infrastructure. Technologies 2021, 9, 47. [Google Scholar] [CrossRef]
- Hamzaoui, M.; Ould-Elhassen Aoueileyine, M.; Romdhani, L.; Bouallegue, R. An Improved Deep Learning Model for Underwater Species Recognition in Aquaculture. Fishes 2023, 8, 514. [Google Scholar] [CrossRef]
- Hayajneh, A.M.; Aldalahmeh, S.A.; Alasali, F.; Al-Obiedollah, H.; Zaidi, S.A.; McLernon, D. Tiny machine learning on the edge: A framework for transfer learning empowered unmanned aerial vehicle assisted smart farming. IET Smart Cities 2024, 6, 10–26. [Google Scholar] [CrossRef]
- Shafik, W.; Tufail, A.; De Silva Liyanage, C.; Apong, R.A.A.H.M. Using transfer learning-based plant disease classification and detection for sustainable agriculture. BMC Plant Biol. 2024, 24, 136. [Google Scholar] [CrossRef] [PubMed]
- Račič, M.; Oštir, K.; Zupanc, A.; Čehovin Zajc, L. Multi-Year Time Series Transfer Learning: Application of Early Crop Classification. Remote Sens. 2024, 16, 270. [Google Scholar] [CrossRef]
- Zhao, Y.; Han, S.; Meng, Y.; Feng, H.; Li, Z.; Chen, J.; Song, X.; Zhu, Y.; Yang, G. Transfer-learning-based approach for yield prediction of winter wheat from planet data and SAFY Model. Remote Sens. 2022, 14, 5474. [Google Scholar] [CrossRef]
- Al Sahili, Z.; Awad, M. The power of transfer learning in agricultural applications: AgriNet. Front. Plant Sci. 2022, 13, 992700. [Google Scholar] [CrossRef] [PubMed]
- Long, M.; Hartley, M.; Morris, R.J.; Brown, J.K. Classification of wheat diseases using deep learning networks with field and glasshouse images. Plant Pathol. 2023, 72, 536–547. [Google Scholar] [CrossRef] [PubMed]
- Shorten, C.; Khoshgoftaar, T.M. A survey on image data augmentation for deep learning. J. Big Data 2019, 6, 1–48. [Google Scholar]
- Jouini, O.; Sethom, K.; Bouallegue, R. The Impact of the Application of Deep Learning Techniques with IoT in Smart Agriculture. In Proceedings of the 2023 International Wireless Communications and Mobile Computing (IWCMC), Marrakesh, Morocco, 19–23 June 2023; pp. 977–982. [Google Scholar]
- Krizhevsky, A.; Sutskever, I.; Hinton, G.E. ImageNet classification with deep convolutional neural networks. Commun. ACM 2017, 60, 84–90. [Google Scholar] [CrossRef]
- Schmidhuber, J. Deep learning in neural networks: An overview. Neural Networks 2015, 61, 85–117. [Google Scholar] [CrossRef]
- Saleem, M.H.; Potgieter, J.; Arif, K.M. Plant disease classification: A comparative evaluation of convolutional neural networks and deep learning optimizers. Plants 2020, 9, 1319. [Google Scholar] [CrossRef] [PubMed]
- Available online: https://keras.io/api/callbacks (accessed on 12 May 2024).
- Gordon-Rodriguez, E.; Loaiza-Ganem, G.; Pleiss, G.; Cunningham, J.P. Uses and abuses of the cross-entropy loss: Case studies in modern deep learning. arXiv 2020, arXiv:2011.05231. [Google Scholar]
- Assunção, E.; Gaspar, P.D.; Mesquita, R.; Simões, M.P.; Alibabaei, K.; Veiros, A.; Proença, H. Real-time weed control application using a jetson nano edge device and a spray mechanism. Remote Sens. 2022, 14, 4217. [Google Scholar] [CrossRef]
- Assunção, E.; Gaspar, P.D.; Alibabaei, K.; Simões, M.P.; Proença, H.; Soares, V.N.; Caldeira, J.M. Real-time image detection for edge devices: A peach fruit detection application. Future Internet 2022, 14, 323. [Google Scholar] [CrossRef]
- Jouini, O.; Sethom, K.; Namoun, A.; Aljohani, N.; Alanazi, M.H.; Alanazi, M.N. A Survey of Machine Learning in Edge Computing: Techniques, Frameworks, Applications, Issues, and Research Directions. Technologies 2024, 12, 81. [Google Scholar] [CrossRef]
- Elsherbiny, O.; Zhou, L.; He, Y.; Qiu, Z. A novel hybrid deep network for diagnosing water status in wheat crop using IoT-based multimodal data. Comput. Electron. Agric. 2022, 203, 107453. [Google Scholar] [CrossRef]
- Howard, A.; Sandler, M.; Chu, G.; Chen, L.C.; Chen, B.; Tan, M.; Wang, W.; Zhu, Y.; Pang, R.; Vasudevan, V.; et al. Searching for mobilenetv3. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Seoul, Republic of Korea, 27 October–2 November 2019; pp. 1314–1324. [Google Scholar]
- Reddy, S.R.; Varma, G.S.; Davuluri, R.L. Deep neural network (dnn) mechanism for identification of diseased and healthy plant leaf images using computer vision. Ann. Data Sci. 2024, 11, 243–272. [Google Scholar] [CrossRef]
- Hassan, S.M.; Maji, A.K.; Jasiński, M.; Leonowicz, Z.; Jasińska, E. Identification of plant-leaf diseases using CNN and transfer-learning approach. Electronics 2021, 10, 1388. [Google Scholar] [CrossRef]
- Fawcett, T. An introduction to ROC analysis. Pattern Recognit. Lett. 2006, 27, 861–874. [Google Scholar] [CrossRef]
- Durmuş, H.; Güneş, E.O.; Kırcı, M. Disease detection on the leaves of the tomato plants by using deep learning. In Proceedings of the 2017 6th International Conference on Agro-Geoinformatics, Fairfax, VI, USA, 7–10 August 2017; pp. 1–5. [Google Scholar]
- Shafi, U.; Rafia Mumtaz, R.; Qureshi, M.D.M.; Mahmood, Z.; Tanveer, S.K.; Ul Haq, I.; Zaidi, S.M.H. Embedded AI for Wheat Yellow Rust Infection Type Classification. IEEE Access 2023, 11, 23726–23738. [Google Scholar] [CrossRef]
- Ibarra-Pérez, T.; Jaramillo-Martínez, R.; Correa-Aguado, H.; Ndjatchi, C.; Martínez-Blanco, M.; Guerrero-Osuna, H.; Mirelez-Delgado, F.; Casas-Flores, J.; Reveles-Martínez, R.; Hernández-Gonzálezz, U. A Performance Comparison of CNN Models for Bean Phenology Classification Using Transfer Learning Techniques. AgriEngineering 2024, 6, 841–857. [Google Scholar] [CrossRef]
- Gill, H.S.; Bath, B.S.; Singh, R.; Riar, A.S. Wheat crop classification using deep learning. Multimed. Tools Appl. 2024, 1–17. [Google Scholar] [CrossRef]
- Genaev, M.A.; Skolotneva, E.S.; Gultyaeva, E.I.; Orlova, E.A.; Bechtold, N.P.; Afonnikov, D.A. Image-based wheat fungi diseases identification by deep learning. Plants 2021, 10, 1500. [Google Scholar] [CrossRef] [PubMed]
- Wen, X.; Zeng, M.; Chen, J.; Maimaiti, M.; Liu, Q. Recognition of Wheat Leaf Diseases Using Lightweight Convolutional Neural Networks against Complex Backgrounds. Life 2023, 13, 2125. [Google Scholar] [CrossRef]
Data Augmentation Technique | Range |
---|---|
Rotation | [−20°, +20°] |
Width shift | [−0.2, +0.2] |
Height shift | [−0.2, +0.2] |
Horizontal flip | Yes |
Zoom | [0.8, 1.2] |
Hyperparamter | Value |
---|---|
Learning rate | 10 × 10 |
Epochs | 100 |
Optimizer | Adamax |
Batch size | 30 |
Momentum | 0.99 |
Loss function | Categorical cross-entropy |
Model | Training Accuracy | Training Loss | Validation Acc | Validation Loss |
---|---|---|---|---|
DNN | 0.952 | 0.307 | 0.960 | 0.127 |
DNN | 0.856 | 0.473 | 0.940 | 0.208 |
DNN | 0.883 | 0.402 | 0.938 | 0.171 |
DNN | 0.646 | 0.963 | 0.714 | 0.786 |
DNN | 0.883 | 0.426 | 0.948 | 0.171 |
DNN | 0.747 | 0.723 | 0.836 | 0.491 |
DNN | 0.419 | 1.33 | 0.488 | 0.125 |
Model | Accuracy | Precision | Recall | F1-Score |
---|---|---|---|---|
DNN | 94% | 93.7% | 93.5% | 93.6% |
DNN | 85.60% | 87% | 85.6% | 85.6% |
DNN | 93.80% | 94% | 93.88% | 93.80% |
DNN | 95.20% | 95.20% | 95.20% | 95.20% |
DNN | 94.40% | 95% | 94% | 94% |
DNN | 70.40% | 72% | 70% | 70% |
DNN | 43.20% | 39% | 43% | 40% |
Model | Training Accuracy | Training Loss | Validation Acc | Validation Loss |
---|---|---|---|---|
CustomCNN | 0.982 | 0.077 | 0.844 | 0.453 |
CustomCNN | 0.901 | 0.267 | 0.888 | 0.273 |
CustomCNN | 0.989 | 0.037 | 0.960 | 0.117 |
CustomCNN | 0.801 | 0.535 | 0.748 | 0.685 |
CustomCNN | 0.605 | 0.997 | 0.606 | 1.05 |
CustomCNN | 0.985 | 0.043 | 0.964 | 0.09 |
CustomCNN | 0.984 | 0.054 | 0.950 | 0.191 |
CropNet | 0.999 | 0.3 | 0.999 | 0.29 |
Model | Accuracy | Precision | Recall | F1-Score |
---|---|---|---|---|
CustomCNN | 86.40% | 87% | 86% | 86% |
CustomCNN | 88.40% | 88.50% | 88.40% | 88.40% |
CustomCNN | 95.30% | 95.20% | 95.20% | 95.2% |
CustomCNN | 76.40% | 77% | 76% | 76% |
CustomCNN | 98% | 98% | 97.90% | 98% |
CustomCNN | 59% | 59% | 59% | 59% |
CustomCNN | 92% | 92% | 92% | 92% |
CropNet | 99.80% | 99% | 100% | 99.70% |
Author | Crops | Technique | Data Augmentation | Accuracy (%) |
---|---|---|---|---|
Shafi [37] | Wheat | Fine-Tuned ResNet50 model | No | 96 |
Ibarra-Pérez [38] | Beans | Re-trained GoogleNet model | Yes | 96.71 |
Gill [39] | Wheat | Combination of CNN, RNN, and LSTM model | Yes | 95.68 |
Elsherbiny [8] | Grapes | Combination of CNN and LSTM | Yes | 96.6 |
Long [20] | Wheat | Custom CNN called CerealConv | No | 97.05 |
Genaev [40] | Wheat | Fine-Tuned EfficientB0 model | Yes | 94.2 |
Wen [41] | Wheat | Fine-Tuned MnasNet model | Yes | 98.65 |
This work | Wheat | Custom CNN combined with EfficientNetB0 called CropNet | Yes | 99.80 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Jouini, O.; Aoueileyine, M.O.-E.; Sethom, K.; Yazidi, A. Wheat Leaf Disease Detection: A Lightweight Approach with Shallow CNN Based Feature Refinement. AgriEngineering 2024, 6, 2001-2022. https://doi.org/10.3390/agriengineering6030117
Jouini O, Aoueileyine MO-E, Sethom K, Yazidi A. Wheat Leaf Disease Detection: A Lightweight Approach with Shallow CNN Based Feature Refinement. AgriEngineering. 2024; 6(3):2001-2022. https://doi.org/10.3390/agriengineering6030117
Chicago/Turabian StyleJouini, Oumayma, Mohamed Ould-Elhassen Aoueileyine, Kaouthar Sethom, and Anis Yazidi. 2024. "Wheat Leaf Disease Detection: A Lightweight Approach with Shallow CNN Based Feature Refinement" AgriEngineering 6, no. 3: 2001-2022. https://doi.org/10.3390/agriengineering6030117
APA StyleJouini, O., Aoueileyine, M. O. -E., Sethom, K., & Yazidi, A. (2024). Wheat Leaf Disease Detection: A Lightweight Approach with Shallow CNN Based Feature Refinement. AgriEngineering, 6(3), 2001-2022. https://doi.org/10.3390/agriengineering6030117