مهندسی بیوسیستم ایران

مهندسی بیوسیستم ایران

ارزیابی آماری پایداری معماری‌های یادگیری عمیق در تشخیص بیماری‌های برگ گوجه‌فرنگی

نوع مقاله : مقاله پژوهشی

نویسنده
گروه مهندسی میانیک بیوسیستم، دانشکدگان کشاورزی و منابع طبیعی، دانشگاه تهران، کرج، ایران
چکیده
تشخیص دقیق و به‌موقع بیماری‌های برگ گوجه‌فرنگی نقش اساسی در کاهش خسارات، افزایش بهره‌وری و دستیابی به کشاورزی پایدار دارد. بخش عمده‌ای از مطالعات در زمینه یادگیری عمیق در این حوزه، تنها به یک اجرای منفرد بسنده کرده و پایداری آماری را نادیده گرفته‌اند؛ موضوعی که اعتبار و کاربردپذیری عملی این روش‌ها را محدود می‌سازد. هدف این پژوهش، پر کردن این شکاف از طریق ارائه یک چارچوب ارزیابی جامع و پایدار برای مقایسه معماری‌های مختلف یادگیری عمیق در تشخیص بیماری‌های برگ گوجه‌فرنگی است. در این راستا، یک شبکه عصبی پیچشی پایه آموزش‌دیده از ابتدا، در کنار چندین مدل پیشرفته مبتنی بر یادگیری انتقالی از خانواده‌های ResNet، GoogLeNet، EfficientNet و DenseNet بر روی مجموعه‌داده استاندارد مرجع مورد ارزیابی تطبیقی قرار گرفت. برای تضمین مقایسه‌ای واقع‌بینانه، تمامی مدل‌ها تحت ۲۵ اجرای کاملاً مستقل با مقداردهی اولیه تصادفی آموزش داده شدند و شاخص‌های متنوعی شامل دقت، صحت، بازخوانی، امتیاز F1، ضریب همبستگی متیوز، مساحت زیر منحنی ROC و انحراف معیار نتایج، محاسبه و تحلیل شد. نتایج نشان داد که مدل‌های مبتنی بر یادگیری انتقالی، علاوه بر دستیابی به دقت بالاتر، از پایداری آماری به‌مراتب بیشتری نسبت به شبکه پایه برخوردارند. در میان آن‌ها، DenseNet-121 با دقت میانگین ۰٫۹۹۶ و کمترین انحراف معیار (۰٫۰۰۱۱)، پایدارترین عملکرد را داشت. تحلیل کیفی ماتریس‌های اغتشاش نیز کاهش معنادار خطاهای بین‌کلاسی را تأیید کرد. این یافته‌ها نشان می‌دهد که ارزیابی چنداجرایی و توجه به پایداری آماری، گامی ضروری برای انتخاب مدل‌های قابل اعتماد در سامانه‌های هوشمند تشخیص بیماری گیاهان و توسعه کاربردهای عملی در کشاورزی آینده است.
کلیدواژه‌ها
موضوعات

عنوان مقاله English

Statistical Reliability Assessment of Deep Learning Architectures for Tomato Leaf Disease Classification

نویسنده English

shahin rafiee
Department of Biosystems Mechanical Engineering, Faculty of Agriculture and Natural Resources, University of Tehran, Karaj, Iran
چکیده English

Accurate and timely detection of tomato leaf diseases is essential for reducing crop losses, improving productivity, and supporting sustainable agriculture. Despite the growing success of deep learning approaches in this field, most existing studies report results based on a single training run and primarily focus on peak accuracy, while neglecting statistical stability. This limitation weakens the reliability and real-world applicability of many proposed models. To address this gap, this study introduces a stability-oriented evaluation framework for a comprehensive comparison of deep learning architectures for tomato leaf disease classification. A baseline convolutional neural network trained from scratch was systematically compared with state-of-the-art transfer learning models from the ResNet, GoogLeNet, EfficientNet, and DenseNet families using a standard benchmark dataset. To ensure a fair and realistic assessment, all models were trained under 25 fully independent runs with random initialization. Performance was evaluated using multiple metrics, including accuracy, precision, recall, F1-score, Matthews correlation coefficient, area under the ROC curve, and the standard deviation of results across repeated runs. The results demonstrate that transfer learning models consistently outperform the baseline CNN not only in terms of average accuracy but also in statistical stability. Among all evaluated architectures, DenseNet-121 achieved the most reliable performance, with a mean accuracy of 0.996 and the lowest standard deviation (0.0011). Qualitative analysis of confusion matrices further confirmed reduced inter-class misclassifications. These findings highlight the importance of multi-run stability analysis for selecting dependable deep learning models in practical smart agriculture systems.

کلیدواژه‌ها English

Transfer Learning
Convolutional Neural Networks
Model Robustness
Overfitting
Plant Health Monitoring

Introduction

Tomato (Solanum lycopersicum) is one of the most important agricultural crops worldwide and plays a critical role in food security and agricultural sustainability. However, tomato production is continuously threatened by a wide range of fungal, bacterial, and viral diseases that can significantly reduce yield and quality if not detected at early stages. Timely and accurate disease diagnosis is therefore essential for effective crop management, reduction of economic losses, and minimization of excessive pesticide usage. Conventional disease identification based on visual inspection relies heavily on expert knowledge, is time-consuming, subjective, and often unreliable, particularly when different diseases exhibit visually similar symptoms.

Recent advances in precision agriculture have accelerated the adoption of artificial intelligence and computer vision techniques for automated plant disease detection. Deep learning, and especially convolutional neural networks (CNNs), has demonstrated strong capability in learning discriminative features directly from leaf images. Nevertheless, many existing studies primarily report results from a single training run and focus mainly on accuracy, while overlooking the statistical stability and reliability of model performance. This limitation raises concerns regarding the robustness and practical applicability of proposed models. To address this gap, the present study provides a systematic comparative evaluation of a baseline CNN trained from scratch and several transfer learning architectures, with a particular emphasis on performance consistency across multiple independent runs.

Materials and Methods

The experiments were conducted using the tomato subset of the publicly available PlantVillage dataset, which includes RGB images of healthy leaves and nine common tomato diseases, namely Bacterial Spot, Early Blight, Late Blight, Leaf Mold, Septoria Leaf Spot, Two‑Spotted Spider Mites, Target Spot, Tomato Mosaic Virus, and Tomato Yellow Leaf Curl Virus. After data refinement, the dataset was divided into training, validation, and test sets following a standard split protocol.

A total of six deep learning models were implemented using the PyTorch framework. These models included a custom Baseline CNN trained from scratch and five transfer learning architectures—ResNet-18, ResNet-34, ResNet50, EfficientNet‑B0, and DenseNet-121—initialized with ImageNet pre-trained weights. All input images were resized to 224×224 pixels and normalized using ImageNet statistics. Data augmentation techniques, including random rotations and horizontal flips, were applied to enhance generalization.

To ensure statistical reliability and reduce the influence of random weight initialization, each model was trained and evaluated under 25 fully independent runs. Model performance was assessed using accuracy, precision, recall, F1-score, Matthews correlation coefficient (MCC), area under the ROC curve (AUC), and confusion matrices. Mean values and standard deviations across the repeated runs were reported to capture both performance level and stability.

Results and Discussion

The experimental results revealed a pronounced performance gap between the baseline model and transfer learning architectures. The Baseline CNN exhibited clear signs of overfitting and high variability across runs, leading to inferior generalization and unstable classification behavior. In contrast, all transfer learning models achieved substantially higher accuracy and more consistent performance.

Among the evaluated architectures, DenseNet-121 emerged as the most reliable model, achieving the highest average accuracy and F1-score while exhibiting the lowest standard deviation across the 25 independent runs. This indicates a high degree of statistical stability and robustness to random initialization. Qualitative analysis of confusion matrices further showed that DenseNet-121 significantly reduced misclassifications among visually similar disease classes, demonstrating superior class-level discrimination. While other transfer learning models such as ResNet and EfficientNet also delivered strong performance, their variability across runs was slightly higher compared to DenseNet-121.

Conclusions

This study presents a comprehensive and statistically reliable evaluation of deep learning architectures for tomato leaf disease classification. The findings confirm that transfer learning is crucial for achieving both high accuracy and robust generalization in agricultural image analysis. The baseline CNN trained from scratch failed to deliver consistent and dependable results, whereas pre-trained deep architectures showed clear advantages. DenseNet-121, in particular, provided the best balance between classification accuracy and statistical stability across repeated executions. The main contribution of this work lies in highlighting the importance of multi-run stability analysis and qualitative confusion matrix evaluation as essential criteria for selecting reliable models in real-world smart agriculture applications. Future research will explore extending this framework to field-acquired datasets and investigating transformer-based models with an emphasis on improving generalization and stability.

Funding

This research did not receive any specific grant from funding agencies in the public, commercial, or not-for-profit sectors.

Declaration of Generative AI and AI-assisted technologies in the writing process

there is nothing to disclose.

Data availability statement

Data available on request from the authors.

Acknowledgements

The authors would like to express their sincere appreciation to the Vice-Chancellor for Research of the University of Tehran for the moral support provided during the implementation of this study. The authors also thank the respected reviewers for their constructive structural and scientific comments.

Ethical considerations

The authors avoided data fabrication, falsification, and plagiarism, and any form of misconduct.

Conflict of interest

The authors declare no conflict of interest.

Assadi, H. (2025). Identification and classification of tomato leaf diseases using deep convolutional neural networks. In Proceedings of the Conference on Sustainable Development in Agriculture, Animal Science, and Food Industries with an Emphasis on Quality Improvement, Health, and Food Security. Tehran, Iran. (In Persian).
Afsharipour, M., & Shamsi, M. (2022). A review of deep learning technique developments in image processing for crop disease detection. 14th National Congress of Biosystems Mechanical Engineering and Mechanization of Iran. https://civilica.com/doc/1535909. (In Persian).
Agarwal, M., Singh, A., Arjaria, S., Sinha, A., & Gupta, S. (2020). ToLeD: Tomato leaf disease detection using convolution neural network. Procedia Computer Science, 167, 293–301.
Agh-Atabai, H. H., Sheikhzadeh, M. J., & Torshizi, M. (2016). Detection of tomato leaf diseases from images using deep learning. National Conference on Monitoring and Forecasting in Plant Protection. https://sid.ir/paper/876674/fa. (In Persian).
Ahmadi, I. (2025). Detection and Classification of Some Diseases of Tomato Crops Using. Transfer Learning. Journal of Agricultural Machinery, 15(3), 319-335. https://doi.org/10.22067/jam.2024.88500.1258
Ali, A. M., Słowik, A., Hezam, I. M., & Abdel‑Basset, M. (2024). Sustainable smart system for vegetables plant disease detection: Four vegetable case studies. Computers and Electronics in Agriculture, 227(Part 2), 109672. https://doi.org/10.1016/j.compag.2024.109672
Atila, Ü., Uçar, M., Akyol, K., & Uçar, E. (2021). Plant leaf disease classification using EfficientNet deep learning model. Ecological Informatics, 61, 101182. https://doi.org/10.1016/j.ecoinf.2020.101182
Azadshahraki, F., K. Sharifi, B. Jamshidi, R. Karimzadeh, and H. Naderi. (2022). Diagnosis of Early Blight Disease in Tomato Plant based on Visible/Near-Infrared Spectroscopy and Principal Components Analysis- Artificial Neural Network Prior to Visual Disease Symptoms. Journal of Agricultural Machinery 12 (1): 81-94. DOI: 10.22067/jam.2021.67436.1001
Chungcharoen, T., Donis-Gonzalez, I., Phetpan, K., Udompetaikul, V., Sirisomboon, P., & Suwalak, R. (2022). Machine learning-based prediction of nutritional status in oil palm leaves using proximal multispectral images. Computers and Electronics in Agriculture, 198, 107019. https://doi.org/10.1016/j.compag.2022.107019
Das, A., Pathan, F., Kabir, M. M., Jim, J. R., Mridha, M. F., & Ouishy, M. R. (2025a). XLTLDisNet: A novel and lightweight approach to identify tomato leaf diseases with transparency. Heliyon, 11, e42575.
Das, A., Pathan, F., Jim, J. R. M., Kabir, M. M., & Mridha, M. F. (2025b). Deep learning-based classification, detection, and segmentation of tomato leaf diseases: A state-of-the-art review. Artificial Intelligence in Agriculture, 15, 192–220. https://doi.org/10.1016/j.aiia.2025.02.006
Durmus, H., Gunes, E. O., & Kirci, M. (2017). Disease detection on the leaves of the tomato plants by using deep learning. In *2017 6th International Conference on Agro-Geoinformatics* (pp. 1-5). IEEE.
Fawcett, T. (2006). An introduction to ROC analysis. Pattern Recognition Letters, 27(8), 861–874. https://doi.org/10.1016/j.patrec.2005.10.010
Ferentinos, K. P. (2018). Deep learning models for plant disease detection and diagnosis. Computers and Electronics in Agriculture, 145, 311–318. https://doi.org/10.1016/j.compag.2018.01.009
Fuentes, A., Yoon, S., Kim, S. C., & Park, D. S. (2022). A robust deep-learning-based detector for real-time tomato plant diseases and pests recognition. Sensors, 17(8), 17.
Ghanbari, F., Gonbadi, H., & Saberi, M. (2022). Application of deep neural networks in tomato leaf disease detection. Iranian Journal of Agricultural Science and Technology, 53(1), 28‑42. (In Persian)
Ghasemi Varjani, Z., Mohtasebi, S. S., Ghasemi, H., & Omrani, E. (2018). Development of a new hybrid system for apple leaf disease detection. Iranian Biosystems Engineering (Iranian Journal of Agricultural Sciences), 49(2), 215–225. https://sid.ir/paper/144198/fa. (In Persian).
Ghosh, S. K., & Ghosh, A. (2022). ENResNet: A novel residual neural network for chest X-ray enhancement based COVID-19 detection. Biomedical Signal Processing and Control, 72, 103286. https://doi.org/10.1016/j.bspc.2021.103286
Gilligan, C. A. (2008). Sustainable agriculture and plant diseases: an epidemiological perspective. Philosophical Transactions of the Royal Society B: Biological Sciences, 363(1492), 741–759.
He, K., Zhang, X., Ren, S., & Sun, J. (2016). Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (pp. 770‑778). https://doi.org/10.1109/CVPR.2016.90
He, K., Zhang, X., Ren, S., and Sun, J. (2016). Deep residual learning for image recognition. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 770–778. https://doi.org/10.1109/CVPR.2016.90
He, Z., & Tong, M. (2025). LT-YOLO: A lightweight network for detecting tomato leaf diseases. Computers, Materials and Continua, 82(3), 4301–4317. https://doi.org/10.32604/cmc.2025.060550
Hong, H., Lin, J., & Huang, F. (2020). Tomato disease detection and classification by deep learning. In 2020 International Conference on Big Data, Artificial Intelligence and Internet of Things Engineering (ICBAIE) (pp. 25-29). IEEE.
Hosseini, H., Mohammadzamani, D., & Arbab, A. (2017). System for detecting powdery mildew and anthracnose fungal diseases of cucumber leaves using image processing and artificial neural networks. Plant Protection, 40(4), 15–28. (In Persian).
Huang, G., Liu, Z., Van Der Maaten, L., and Weinberger, K. Q. (2017). Densely connected convolutional networks. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 4700–4708. https://doi.org/10.1109/CVPR.2017.243
Karimi, A., & Naderifar, V. (2022). A novel method for transforming plant disease classification using wavelets. Intelligent Information Systems, 1(4), 41–49. (In Persian).
Karthik, R., Hariharan, M., Anand, S., Mathikshara, P., Johnson, A., & Menaka, R. (2020). Attention embedded residual CNN for disease detection in tomato leaves. Applied Soft Computing, 86, 105933.
Kingma, D. P., & Ba, J. (2015). Adam: A method for stochastic optimization. ICLR.
Kumar, N. S., Sony, J., Premkumar, A., Meenakshi, R., & Nair, J. J. (2024). Transfer learning‑based object detection models for improved diagnosis of tomato leaf disease. Procedia Computer Science, 235, 3025–3034. https://doi.org/10.1016/j.procs.2024.04.286
Matthews, B. W. (1975). Comparison of the predicted and observed secondary structure of T4 phage lysozyme. Biochimica et Biophysica Acta (BBA) – Protein Structure, 405(2), 442–451. https://doi.org/10.1016/0005-2795(75)90109-9
Mohanty, S. P., Hughes, D. P., & Salathé, M. (2016). Using deep learning for image-based plant disease detection. Frontiers in Plant Science, 7, 1419. https://doi.org/10.3389/fpls.2016.01419
Naderibani, A., Bagherpour, H., & Amiri-Piryan, J. (2024). Development and optimization of a specialized deep learning algorithm for detecting various leaf diseases of quince trees. Agricultural Machinery, 14(4), 445–458. (In Persian).
Nagamani, H. S., & Sarojadevi, H. (2022). Tomato leaf disease detection using deep learning techniques. International Journal of Advanced Computer Science and Applications, 13(1), 305–311.
Najafabadiha, M., Mohammadzamani, D., & Gholami-Parshkouhi, M. (2023). Detection of three grape leaf diseases based on image processing using moth-flame optimizer and support vector machine. Research in Agricultural Systems Engineering and Mechanization, 24(87), 39–54. (In Persian).
Nasiri, S., & Khojasteh-Nezhad, M. (2022). Image-processing-based method for automatic grape leaf disease detection. Iranian Biosystems Engineering, 53(1), 61–76. (In Persian).
Odusami, M., Misra, S., Abayomi-Alli, O., Adigun, M., Crawford, B., & Soto, J. D. (2021). Analysis of features of Alzheimer’s disease: Detection of early stage from functional brain changes in magnetic resonance images using a finetuned ResNet-18 network. Diagnostics, 11(6), Article 1071. https://doi.org/10.3390/diagnostics11061071
Paymode, A. S., & Malode, V. B. (2022). Transfer learning for multi-crop leaf disease image classification using convolutional neural network VGG. Artificial Intelligence in Agriculture, 6, 23–33.
Peyman, S. H., Bakhshipour Ziaratgahi, A., & Jafari, A. (2016). Feasibility of using image processing for rice leaf disease detection. Agricultural Machinery, 6(1), 69–79. (In Persian).
Pourderbani, R., & Sabzi, S. (2023). Detection of common cauliflower diseases using image processing and deep learning. Journal of Environmental Sciences Studies, 8(3), 7087–7092. (In Persian).
PyTorch. (2023). ResNet: Torchvision main documentation. https://pytorch.org/vision/main/models/resnet.html
Qabulio, M., Memon, M.S., Iqbal, S., Kumar, P., & Tsetse, A. (2024). Effective tomato leaf disease identification model using MobileNetV3Small. International Journal of Information Systems and Computer Technologies, 3(1), 57–72.
Quan, S., Wang, J., Jia, Z., Yang, M., & Xu, Q. (2023). MS-Net: A novel lightweight and precise model for plant disease identification. Frontiers in Plant Science, 14, 1276728. https://doi.org/10.3389/fpls.2023.1276728
Reimers, N., & Gurevych, I. (2017). Reporting score distributions makes a difference: Performance study of LSTM networks for sequence tagging. Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing (EMNLP), 338–348. https://aclanthology.org/D17-1035/
Rezaei, M., Diepeveen, D., Laga, H., Jones, M. G. K., & Sohel, F. (2024). Plant disease recognition in a low data scenario using few-shot learning. Computers and Electronics in Agriculture, 219, 108812. https://doi.org/10.1016/j.compag.2024.108812
Rostaei, M., & Norouzi, M. (2024). Analysis of transfer learning methods in optimizing apple tree disease detection. Journal of Agricultural Information Science and Technology, 7(13–1), 23–33. https://doi.org/10.22092/jaist.2024.364053.1105. (In Persian)
Ruhad, F. M., Fahim, M., Hossain, M. S., Monir, M. F., Islam, A., & Amin, M. A. (2025). Beyond classification: Benchmarking object detection models for efficient tomato leaf disease identification on a real-world dataset. Smart Agricultural Technology, 12, 101336. https://doi.org/10.1016/j.atech.2025.101336
Shanthi, D. L., Vinutha, K., Ashwini, N., & Vashistha, S. (2024). Tomato Leaf Disease Detection Using CNN. Procedia Computer Science, 235, 2975–2984.
Shehu, H. A., Ackley, A., Marvellous, M., & Eteng, O. E. (2025). Early detection of tomato leaf diseases using transformers and transfer learning. European Journal of Agronomy, 168, 127625. https://doi.org/10.1016/j.eja.2025.127625
Shishechi, S. (2024). A review of plant disease detection methods using deep learning. 1st National Conference on Environment, Water, and Clean Energy. (In Persian).
Soleimani Dizicheh, E., Razavi, S. M., Rouhani, H., & Khani Moghaddam, A. M. (2016). Detection of peach powdery mildew disease using image processing and neural networks. Iranian Plant Protection Congress. (In Persian).
Sun, H., Nicholaus, I. T., Fu, R., & Kang, D.-K. (2024). YOLO-FMDI: A Lightweight YOLOv8 Focusing on a Multi-Scale Feature Diffusion Interaction Neck for Tomato Pest and Disease Detection. Electronics, 13(15), 2974.
Szegedy, C., Liu, W., Jia, Y., Sermanet, P., Reed, S., Anguelov, D., Erhan, D., Vanhoucke, V., and Rabinovich, A. (2015). Going deeper with convolutions. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 1–9. https://doi.org/10.1109/CVPR.2015.7298594
Tan, M., and Le, Q. (2019). EfficientNet: Rethinking model scaling for convolutional neural networks. Proceedings of the 36th International Conference on Machine Learning (ICML), 6105–6114. https://doi.org/10.48550/arXiv.1905.11946
Too, E. C., Yujian, L., Njuki, S., & Yingchun, L. (2019). A comparative study of fine‑tuning deep learning models for plant disease identification. Computers and Electronics in Agriculture, 161, 272‑279.
Zhang, Y., Huang, S., Zhou, G., Hu, Y., & Li, L. (2023). Identification of tomato leaf diseases based on multi-channel automatic orientation recurrent attention network. Computers and Electronics in Agriculture, 205, 107605. https://doi.org/10.1016/j.compag.2022.107605
Zhang, Y., Wang, L., & Zhao, X. (2020). ResNet‑based tomato leaf disease classification. IEEE Access, 8, 196076‑196087.
Zhao, J., Xu, L., Ma, Z., Li, J., Wang, X., Liu, Y., & Du, X. (2025). A review of plant leaf disease identification by deep learning algorithms. Frontiers in Plant Science, 16, 1637241. https://doi.org/10.3389/fpls.2025.1637241
Zhao, X., Liu, Q., & Zhang, Y. (2022). Customized EfficientNet models for tomato leaf disease identification. Expert Systems with Applications, 200, 117084.
Zhao, Z. Q., Zheng, P., Xu, S. T., & Wu, X. (2019). Object detection with deep learning: A review. IEEE Transactions on Neural Networks and Learning Systems, 30(11), 3212–3232. https://doi.org/10.1109/TNNLS.2018.2876865.
دوره 57، شماره 3
پاییز 1405
صفحه 25-53

  • تاریخ دریافت 05 اسفند 1404
  • تاریخ بازنگری 28 فروردین 1405
  • تاریخ پذیرش 20 خرداد 1405