Submitted:
30 May 2025
Posted:
03 June 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
1.1. YOLOv8
1.2. Mask R-CNN
2. Materials and Methods
2.1. Dataset Acquisition
2.2. Dataset Preparation
2.3. Models and Training
2.4. Inference Confidence Threshold (CT)
2.5. Severity Determination
2.6. Severity Level Classification
2.7. Evaluation Metrics
2.7.1. Pixel Level Evaluation Metrics
2.7.2. Severity Level Evaluation Metrics
3. Results
3.1. Pixel Level Evaluation
3.2. Severity Level Evaluation
4. Discussion
4.1. Performance of Custom Models
4.2. Limitations and Trade-Offs Across Metrics and Severity Levels
4.3. Implications for Agricultural Applications
5. Conclusion
- 1.
- Mask R-CNN models excelled in pixel-level metrics, with the mask_rcnn_R101_FPN_3x model achieving an MIoU of 86% and an F1 score of 92.4%. The best-performing YOLOv8 model, YOLOv8s-Seg, recorded an MIoU of 80.8% and an F1-score of 89.3%.
- 2.
- In severity level classification, YOLOv8 models outperformed, with YOLOv8n-Seg achieving the highest F1-score of 95.1%. In comparison, the best Mask R-CNN model achieved an F1-score of 94.7% in this task.
- 3.
- Despite the superior pixel-level metrics, Mask R-CNN models showed a tendency to underestimate severity. This resulted in predicted areas generally smaller than the ground truth, leading to more significant errors in classifying higher severity levels.
- 4.
- The confidence threshold (CT) proved to be a critical performance factor. YOLOv8n-Seg, although sensitive to changes in CT, delivered the best severity classification results at its optimal threshold.
- 5.
- YOLOv8 models demonstrated significantly faster average inference times than Mask R-CNN models, with the fastest YOLOv8 model processing at 27 ms and the best Mask R-CNN model at 89 ms.
- 6.
- This study underscores the importance of carefully selecting evaluation metrics based on the specific application. The choice of metrics can significantly impact the perceived performance of the models, highlighting that the final application should guide the evaluation criteria.
6. Future Work
Author Contributions
Conflicts of Interest
References
- Gold, K.M. Plant Disease Sensing: Studying Plant-Pathogen Interactions at Scale. mSystems 2021, 6.
- Wilson, C.R. Plant pathogens – the great thieves of vegetable value. 2016.
- Andrahannadi, D.T.; He, J.; Wang, M.L. Development of a web based system to practice the estimation of plant disease severity. 2020.
- Bock, C.H.; Barbedo, J.G.A.; Del Ponte, E.M.; Bohnenkamp, D.; Mahlein, A.-K. From visual estimates to fully automated sensor-based measurements of plant disease severity: status and challenges for improving accuracy. Phytopathology Research 2020, 2, 1-30.
- Trecha, C.O.; Lovatto, P.B.; Mauch, C.R. Constraints of conventional cultivation and the potential of organic cultivation of bell peppers in Brazil. Revista Thema 2017, 14, 291-302.
- Bogusz, S.; Libardi, S.H.; Dias, F.F.; Coutinho, J.P.; Bochi, V.C.; Rodrigues, D.; de Melo, A.M.; Godoy, H.T. Brazilian Capsicum peppers: capsaicinoid content and antioxidant activity. Journal of the science of food and agriculture 2018, 98, 217-224.
- Gomes, G.P.; Constantino, L.V.; Corte, L.E.; Riger, C.J.; Chaves, D.S.A.; Gonçalves, L.S.A. Characterization of biochemical compounds and antioxidant activity of "dedo-de-moça" chili pepper accessions. Horticultura Brasileira 2019.
- Rangel, L.I.; Spanner, R.E.; Ebert, M.K.; Pethybridge, S.J.; Stukenbrock, E.H.; de Jonge, R.; Secor, G.A.; Bolton, M.D. Cercospora beticola: The intoxicating lifestyle of the leaf spot pathogen of sugar beet. Molecular Plant Pathology 2020, 21, 1020-1041.
- Weiland, J.J.; Koch, G. Sugarbeet leaf spot disease (Cercospora beticola Sacc.)dagger. Molecular plant pathology 2004, 5, 157-66.
- Singh, A.; Ganapathysubramanian, B.; Singh, A.K.; Sarkar, S. Machine learning for high-throughput stress phenotyping in plants. Trends in plant science 2016, 21, 110-124.
- Schneider, C.A.; Rasband, W.S.; Eliceiri, K.W. NIH Image to ImageJ: 25 years of image analysis. Nature Methods 2012, 9, 671-675.
- Schindelin, J.; Arganda-Carreras, I.; Frise, E.; Kaynig, V.; Longair, M.; Pietzsch, T.; Preibisch, S.; Rueden, C.; Saalfeld, S.; Schmid, B.; Tinevez, J.-Y.; White, D.J.; Hartenstein, V.; Eliceiri, K.; Tomancak, P.; Cardona, A. Fiji: an open-source platform for biological-image analysis. Nature Methods 2012, 9, 676-682.
- Amorim, L.; Rezende, J.A.M.; Bergamin Filho, A.; Camargo, L.E.A. Manual of plant pathology. 2016.
- Cao, X.; Liu, Y.; Yu, R.; Han, D.; Su, B. A Comparison of UAV RGB and Multispectral Imaging in Phenotyping for Stay Green of Wheat Population. Remote Sensing 2021, 13, 5173.
- Singh, V.; Sharma, N.; Singh, S. A Review of Imaging Techniques for Plant Disease Detection. Artificial Intelligence in Agriculture 2020, 4, 229–242. Available online: https://www.sciencedirect.com/science/article/pii/S2589721720300295.
- Faye, D.; Diop, I.; Mbaye, N.; Dione, D.; Diedhiou, M.M. Plant Disease Severity Assessment Based on Machine Learning and Deep Learning: A Survey. Journal of Computer and Communications 2023.
- Toda, Y.; Okura, F. How convolutional neural networks diagnose plant disease. Plant Phenomics 2019.
- Barburiceanu, S.; Meza, S.; Orza, B.; Malutan, R.; Terebes, R. Convolutional neural networks for texture feature extraction. Applications to leaf disease classification in precision agriculture. IEEE Access 2021, 9, 160085-160103.
- Geng, Q.; Zhou, Z.; Cao, X. Survey of recent progress in semantic image segmentation with CNNs. Science China Information Sciences 2018, 61, 1-18.
- Dhaka, V.S.; Kundu, N.; Rani, G.; Zumpano, E.; Vocaturo, E. Role of Internet of Things and Deep Learning Techniques in Plant Disease Detection and Classification: A Focused Review. Sensors 2023, 23(18), 7877.
- Maurmo, D.; Gagliardi, M.; Ruga, T.; Zumpano, E.; Vocaturo, E. Boosting Agricultural Diagnostics: Cassava Disease Detection with Transfer Learning and Explainable AI. In Proceedings of the 2024 IEEE International Conference on Big Data (BigData), IEEE, 2024; pp. 4702–4710.
- Gangwar, A.; Dhaka, V.S.; Rani, G.; Khandelwal, S.; Zumpano, E.; Vocaturo, E. Time and Space Efficient Multi-Model Convolution Vision Transformer for Tomato Disease Detection from Leaf Images with Varied Backgrounds. Computers, Materials & Continua 2024, 79(1).
- Hafiz, A.M.; Bhat, G.M. A survey on instance segmentation: state of the art. International Journal of Multimedia Information Retrieval 2020, 9, 171-189.
- Sharma, R.; Saqib, M.; Lin, C.-T.; Blumenstein, M. A Survey on Object Instance Segmentation. SN Computer Science 2022, 3, 1-23.
- Charisis, C.; Argyropoulos, D. Deep learning-based instance segmentation architectures in agriculture: A review of the scopes and challenges. Smart Agricultural Technology 2024.
- Das, S.; Roy, D.; Das, P. Disease Feature Extraction and Disease Detection from Paddy Crops Using Image Processing and Deep Learning Technique. 2020.
- Storey, G.; Meng, Q.; Li, B. Leaf Disease Segmentation and Detection in Apple Orchards for Precise Smart Spraying in Sustainable Agriculture. Sustainability 2022.
- Kumar, D.; Kukreja, V. Early recognition of wheat powdery mildew disease based on mask RCNN. 2022, 542-546.
- Udawant, P.; Srinath, P. Cotton Leaf Disease Detection Using Instance Segmentation. J. Cases Inf. Technol. 2022, 24, 1-10.
- Valicharla, S.K. Weed Recognition in Agriculture: A Mask R-CNN Approach. 2021.
- Brucal, S.G.E.; de Jesus, L.C.M.; Peruda, S.R.; Samaniego, L.; Yong, E.D. Development of Tomato Leaf Disease Detection using YoloV8 Model via RoboFlow 2.0. 2023 IEEE 12th Global Conference on Consumer Electronics (GCCE) 2023, 692-694.
- Dong, M.T.C.; Anh, T.; Khanh, G.V.; Thanh, N.; Huong, B.; Thanh, D. Rice Leaf Diseases Detection Using YOLOv8. JST: Engineering and Technology for Sustainable Development 2024.
- Qadri, S.A.A.; Huang, N.-F.; Wani, T.M.; Bhat, S.A. Plant Disease Detection and Segmentation using End-to-End YOLOv8: A Comprehensive Approach. 2023 IEEE 13th International Conference on Control System, Computing and Engineering (ICCSCE) 2023, 155-160.
- Sharma, J.; Kumar, D.; Chattopadhay, S.; Kukreja, V.; Verma, A. Wheat Powdery Mildew Automatic Identification Through YOLOv8 Instance Segmentation. 2024 11th International Conference on Reliability, Infocom Technologies and Optimization (Trends and Future Directions) (ICRITO) 2024, 1-5.
- Sapkota, R.; Ahmed, D.; Karkee, M. Comparing YOLOv8 and Mask RCNN for object segmentation in complex orchard environments. ArXiv 2023, abs/2312.07935.
- Wang, N.; Liu, H.; Li, Y.; Zhou, W.; Ding, M. Segmentation and phenotype calculation of rapeseed pods based on YOLO v8 and mask R-convolution neural networks. Plants 2023, 12, 3328.
- Gentilhomme, T.; Villamizar, M.; Corre, J.; Odobez, J.-M. Towards smart pruning: ViNet, a deep-learning approach for grapevine structure estimation. Computers and Electronics in Agriculture 2023, 207, 107736.
- Kok, E.; Wang, X.; Chen, C. Obscured tree branches segmentation and 3D reconstruction using deep learning and geometrical constraints. Computers and electronics in agriculture 2023, 210, 107884.
- Yamati, Facundo R Ispizua; Bömer, Jonas; Noack, Niklas; Linkugel, Thomas; Paulus, Stefan; Mahlein, Anne-Katrin. Configuration of a multisensor platform for advanced plant phenotyping and disease detection: Case study on Cercospora leaf spot in sugar beet. Smart Agricultural Technology 2025, 10, 100740.
- Ozguven, Mehmet Metin; Adem, Kemal. Automatic detection and classification of leaf spot disease in sugar beet using deep learning algorithms. Physica A: statistical mechanics and its applications 2019, 535, 122537.
- Leite, Douglas; Brito, Alisson; Faccioli, Gregorio. Advancements and outlooks in utilizing Convolutional Neural Networks for plant disease severity assessment: A comprehensive review. Smart Agricultural Technology 2024, 9, 100573.
- Shi, Tingting; Liu, Yongmin; Zheng, Xinying; Hu, Kui; Huang, Hao; Liu, Hanlin; Huang, Hongxu. Recent advances in plant disease severity assessment using convolutional neural networks. Scientific Reports 2023, 13(1), 2336.
- Jocher, G.; Chaurasia, A.; Qiu, J. Ultralytics YOLO, Software available under AGPL-3.0 license. 2023.
- Wang, X.; Li, H.; Yue, X.; Meng, L. A comprehensive survey on object detection YOLO. 2023.
- Bolya, D.; Zhou, C.; Xiao, F.; Lee, Y.J. Yolact: Real-time instance segmentation. 2019, 9157-9166.
- Wu, Y.; Kirillov, A.; Massa, F.; Lo, W.-Y.; Girshick, R. Detectron2. 2019.
- Rani, A.; Arroyo, D.O.; Durdevic, P. Defect Detection in Synthetic Fibre Ropes using Detectron2 Framework. ArXiv 2023, abs/2309.01469.
- Noon, S. K.; Amjad, M.; Qureshi, M. A.; Mannan, A. Handling severity levels of multiple co-occurring cotton plant diseases using improved YOLOX model. IEEE Access 2022, 10, 134811–134825.
- Lamba, S.; Baliyan, A.; Kukreja, V.; Tripathy, R. An ensemble (CNN-LSTM) model for severity detection of bacterial blight rice disease. In Mobile Radio Communications and 5G Networks: Proceedings of Third MRCN 2022; Springer, 2023; pp 159–171.
- Fernández-Campos, M.; Huang, Y.-T.; Jahanshahi, M. R.; Wang, T.; Jin, J.; Telenko, D. E. P.; Góngora-Canul, C.; Cruz, C. D. Wheat spike blast image classification using deep convolutional neural networks. Frontiers in Plant Science 2021, 12, 673505.
- Patil, R. R.; Kumar, S.; Chiwhane, S.; Rani, R.; Pippal, S. K. An artificial-intelligence-based novel rice grade model for severity estimation of rice diseases. Agriculture 2022, 13, 47.
- Gatis, . REMBG, Available at: https://github.com/danielgatis/rembg. Accessed on: May 24, 2023. 2021.
- Reddy, S.S.; Rao, V.R.M.; Voosala, P.; Nrusimhadri, S. You only look once model-based object identification in computer vision. IAES International Journal of Artificial Intelligence (IJ-AI) 2024.
- Madden, L.V.; Hughes, G.; Van Den Bosch, F. The study of plant disease epidemics. 2007.
- Michereff, S.J.; Noronha, M.A.; de Andrade, D.E.G.T.; de Oliveira, E.P.; Xavier Filha, M.S.; Moreira, P.A.A. Development and validation of a diagrammatic scale for cercospora leaf spot of bell pepper. Summa phytopathologica 2006, 32, 260-266.
- Sokolova, M.; Lapalme, G. A systematic analysis of performance measures for classification tasks. Information processing & management 2009, 45, 427-437.













| Dataset Split | Samples n° | Lesions Annotated |
|---|---|---|
| Train | 1040 | 3943 |
| Valid | 294 | 1131 |
| Test | 309 | 1208 |
| Total | 1645 | 6282 |
| Severity(%) | Level |
|---|---|
| Healthy | 0 |
| 0-1.5 | I |
| 1.5-3.5 | II |
| 3.5-8.0 | III |
| 8.0-16 | IV |
| 16.3-31 | V |
| ≥ 50 | VI |
| Model | mAP50 |
|---|---|
| mask_rcnn_R101_FPN_3x | 0.894 |
| mask_rcnn_R50_FPN_3x | 0.893 |
| mask_rcnn_R101_C4_3x | 0.901 |
| mask_rcnn_R50_C4_3x | 0.897 |
| YOLOv8n-Seg | 0.925 |
| YOLOv8s-Seg | 0.915 |
| YOLOv8m-Seg | 0.909 |
| YOLOv8l-Seg | 0.906 |
| Model | MIoU | Accuracy | Precision | Recall | F1-Score | CT | Inf.Time (ms) |
|---|---|---|---|---|---|---|---|
| mask_rcnn_R101_FPN_3x | 0.860 | 0.999 | 0.942 | 0.907 | 0.924 | 0.3 | 119 |
| mask_rcnn_R50_FPN_3x | 0.848 | 0.999 | 0.957 | 0.881 | 0.918 | (0.6 - 0.7) | 89 |
| mask_rcnn_R101_C4_3x | 0.838 | 0.999 | 0.956 | 0.870 | 0.911 | 0.8 | 473 |
| mask_rcnn_R50_C4_3x | 0.840 | 0.999 | 0.942 | 0.883 | 0.911 | 0.9 | 477 |
| YOLOv8n-Seg | 0.807 | 0.998 | 0.911 | 0.853 | 0.881 | 0.6 | 27 |
| YOLOv8s-Seg | 0.808 | 0.998 | 0.905 | 0.882 | 0.893 | (0.4-0.5) | 34 |
| YOLOv8m-Seg | 0.805 | 0.998 | 0.906 | 0.876 | 0.891 | (0.1-0.4) | 41 |
| YOLOv8l-Seg | 0.805 | 0.998 | 0.906 | 0.878 | 0.892 | (0.2-0.4) | 62 |
| Model | RMSE | CT |
|---|---|---|
| mask_rcnn_R101_FPN_3x | 0.132 | 0.3 |
| mask_rcnn_R50_FPN_3x | 0.184 | 0.3 |
| mask_rcnn_R101_C4_3x | 0.186 | 0.1 |
| mask_rcnn_R50_C4_3x | 0.159 | 0.1 |
| YOLOv8n-Seg | 0.153 | 0.6 |
| YOLOv8s-Seg | 0.136 | 0.3 |
| YOLOv8m-Seg | 0.150 | 0.1 |
| YOLOv8l-Seg | 0.149 | 0.2 |
| Model | Precision | Recall | F1-Score | CT |
|---|---|---|---|---|
| mask_rcnn_R101_FPN_3x | 0.949 | 0.948 | 0.947 | 0.6 |
| mask_rcnn_R50_FPN_3x | 0.928 | 0.926 | 0.924 | (0.3-0.4) |
| mask_rcnn_R101_C4_3x | 0.931 | 0.929 | 0.928 | (0.1-0.2) |
| mask_rcnn_R50_C4_3x | 0.930 | 0.929 | 0.928 | (0.1) |
| YOLOv8n-Seg | 0.952 | 0.951 | 0.951 | (0.6-0.7) |
| YOLOv8s-Seg | 0.949 | 0.948 | 0.948 | (0.3-0.4) |
| YOLOv8m-Seg | 0.946 | 0.945 | 0.948 | (0.1-0.4) |
| YOLOv8l-Seg | 0.949 | 0.948 | 0.948 | (0.1) |
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. |
© 2025 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 (http://creativecommons.org/licenses/by/4.0/).