Comparative Evaluation of YOLOv8 and YOLOv11 for Digital Phenotyping of Edible Mushrooms Under Controlled Cultivation Conditions
Abstract
1. Introduction
2. Materials and Methods
2.1. Preparation of Mushroom Material and Image Acquisition
2.2. Dataset Construction
2.3. Model Configuration and Training Procedure
2.4. Evaluation Metrics
2.4.1. Detection and Segmentation Accuracy
2.4.2. Evaluation Metrics for Computational Efficiency and Model Complexity
- FLOPs (B): total floating-point operations per forward pass, reflecting computational demand;
- Params (M): number of trainable parameters, representing model size and memory usage;
- Gradients (G): number of gradient tensors updated during backpropagation, indicating optimization cost;
- Layers (L): total number of computational blocks.
2.4.3. Evaluation Framework for Validation Against Physical Measurements
- Pearson’s correlation coefficient (r) to evaluate linear association;
- Coefficient of determination (R2) from simple linear regression to assess explanatory power;
- Mean absolute error (MAE) to describe the mean magnitude of deviation between predicted and actual values;
- Mean relative error (MRE) to describe the proportional deviation between predicted and actual values relative to the corresponding physical measurement.
2.4.4. Statistical Analysis and Visualization
3. Results
3.1. Comparative Performance of YOLOv8 and YOLOv11
3.2. Computational Efficiency and Model Complexity
3.3. Validation Against Physical Measurements
4. Discussion
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Morais, M.H.; Ramos, A.C.; Matos, N.; Santos-Oliveira, E.J. Production of shiitake mushroom (Lentinus edodes) on ligninocellulosic residues. Food Sci. Technol. Int. 2000, 6, 123–128. [Google Scholar] [CrossRef]
- Sánchez, C. Modern aspects of mushroom culture technology. Appl. Microbiol. Biotechnol. 2004, 64, 756–762. [Google Scholar] [CrossRef]
- Chang, S.-T.; Miles, P.G. Mushrooms: Cultivation, Nutritional Value, Medicinal Effect, and Environmental Impact, 2nd ed.; CRC Press: Boca Raton, FL, USA, 2004. [Google Scholar]
- Chang, S.-T.; Hayes, W.A. The Biology and Cultivation of Edible Mushrooms; Academic Press: Cambridge, MA, USA, 2013; pp. 3–9. [Google Scholar]
- Suarez, E.; Blaser, M.; Sutton, M. Automating leaf area measurement in citrus: Development and validation of a Python-based tool. Appl. Sci. 2025, 15, 9750. [Google Scholar] [CrossRef]
- Cheong, J.C.; Lee, C.J.; Suh, J.S.; Moon, Y.H. Comparison of physico-chemical and nutritional characteristics of pre-inoculation and post-harvest Flammulina velutipes media. J. Mushroom Sci. Prod. 2012, 10, 174–178. [Google Scholar]
- Cheong, J.C.; Lee, C.J.; Moon, J.W. Comprehensive model for medium composition for mushroom bottle cultivation. J. Mushrooms 2016, 14, 111–118. [Google Scholar] [CrossRef]
- Sapkota, R.; Karkee, M. Object detection with multimodal large vision-language models: An in-depth review. Inf. Fusion 2025, 126, 103575. [Google Scholar] [CrossRef]
- Wei, Z.; Wang, J.; You, H.; Ji, R.; Wang, F.; Shi, L.; Yu, H. A lightweight context-aware framework for toxic mushroom detection in complex ecological environments. Ecol. Inform. 2025, 90, 103256. [Google Scholar] [CrossRef]
- Dhanya, V.G.; Subeesh, A.; Kushwaha, N.L.; Vishwakarma, D.K.; Kumar, T.N.; Ritika, G.; Singh, A.N. Deep learning-based computer vision approaches for smart agricultural applications. Artif. Intell. Agric. 2022, 6, 211–229. [Google Scholar] [CrossRef]
- Hafiz, A.M.; Bhat, G.M. A survey on instance segmentation: State of the art. Int. J. Multimed. Inf. Retr. 2020, 9, 171–189. [Google Scholar] [CrossRef]
- Coulibaly, S.; Kamsu-Foguem, B.; Kamissoko, D.; Traore, D. Deep learning for precision agriculture: A bibliometric analysis. Intell. Syst. Appl. 2022, 16, 200102. [Google Scholar] [CrossRef]
- Sapkota, R.; Ahmed, D.; Karkee, M. Comparing YOLOv8 and Mask R-CNN for instance segmentation in complex orchard environments. Artif. Intell. Agric. 2024, 13, 84–99. [Google Scholar] [CrossRef]
- Rashid, J.; Khan, I.; Ali, G.; Alturise, F.; Alkhalifah, T. Real-time multiple guava leaf disease detection from a single leaf using a hybrid deep learning technique. Comput. Mater. Continua 2023, 74, 1235–1257. [Google Scholar] [CrossRef]
- Maji, A.K.; Marwaha, S.; Kumar, S.; Arora, A.; Chinnusamy, V.; Islam, S. SlypNet: Spikelet-based yield prediction of wheat using advanced plant phenotyping and computer vision techniques. Front. Plant Sci. 2022, 13, 889853. [Google Scholar] [CrossRef]
- Sapkota, R.; Karkee, M. Comparing YOLOv11 and YOLOv8 for instance segmentation of occluded and non-occluded immature green fruits in complex orchard environment. arXiv 2025, arXiv:2410.19869. [Google Scholar]
- Xie, L.; Jing, J.; Wu, H.; Kang, Q.; Zhao, Y.; Ye, D. MPG-YOLO: Enoki mushroom precision grasping with segmentation and pulse mapping. Agronomy 2025, 15, 432. [Google Scholar] [CrossRef]
- Qi, W.; Chen, H.; Zheng, X.; Zhang, T.; Liu, Y. Detection and classification of shiitake mushroom fruiting bodies based on Mamba YOLO. Sci. Rep. 2025, 15, 133. [Google Scholar] [CrossRef]
- Redmon, J. You only look once: Unified, real-time object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: Las Vegas, NV, USA, 2016. [Google Scholar]
- Gong, R.; Zhang, H.; Li, G.; He, J. Edge Computing-Enabled Smart Agriculture: Technical Architectures, Practical Evolution, and Bottleneck Breakthroughs. Sensors 2025, 25, 5302. [Google Scholar] [CrossRef] [PubMed]
- Tariq, M.U.; Saqib, S.M.; Mazhar, T.; Khan, M.A.; Shahzad, T.; Hamam, H. Edge-enabled smart agriculture framework: Integrating IoT, lightweight deep learning, and agentic AI for context-aware farming. Results Eng. 2025, 28, 107342. [Google Scholar] [CrossRef]
- Xu, X.; Li, J.; Zhou, J.; Feng, P.; Yu, H.; Ma, Y. Three-dimensional reconstruction, phenotypic traits extraction, and yield estimation of shiitake mushrooms based on structure from motion and multi-view stereo. Agriculture 2025, 15, 298. [Google Scholar] [CrossRef]
- Khan, A.T.; Jensen, S.M. LEAF-Net: A unified framework for leaf extraction and analysis in multi-crop phenotyping using YOLOv11. Agriculture 2025, 15, 196. [Google Scholar] [CrossRef]
- Ho Bao Thuy, Q.; Suzuki, A. Technology of mushroom cultivation. Viet. J. Sci. Technol. 2019, 57, 265–286. [Google Scholar]
- Badgujar, C.M.; Poulose, A.; Gan, H. Agricultural object detection with YOLO: A bibliometric and systematic review. Comput. Electron. Agric. 2024, 223, 109090. [Google Scholar] [CrossRef]
- Zakeri, R.; Zamani, A.; Taghizadeh, A.; Abbaszadeh, M.; Saadatfar, B. M18K: A comprehensive RGB-D dataset and benchmark for mushroom detection and instance segmentation. arXiv 2024, arXiv:2407.11275. [Google Scholar]
- Abdullah, A.; Amran, G.A.; Tahmid, S.M.A.; Alabrah, A.; Al-Bakhrani, A.A.; Ali, A. Deep-learning-based detection of diseased tomato leaves. Agronomy 2024, 14, 1593. [Google Scholar] [CrossRef]
- Wang, C.; Li, H.; Deng, X.; Liu, Y.; Wu, T.; Liu, W.; Xiao, R.; Wang, Z.; Wang, B. Improved You Only Look Once v.8 Model Based on Deep Learning: Precision Detection and Recognition of Fresh Leaves from Yunnan Large-Leaf Tea Tree. Agriculture 2024, 14, 2324. [Google Scholar] [CrossRef]
- 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. [Google Scholar] [CrossRef]
- Solimani, F.; Cardellicchio, A.; Dimauro, G.; Petrozza, A.; Summerer, S.; Cellini, F.; Renò, A. Optimizing tomato plant phenotyping using an enhanced YOLOv8 architecture. Comput. Electron. Agric. 2024, 218, 108728. [Google Scholar] [CrossRef]
- Wu, C.; Zhang, S.; Wang, W.; Wu, Z.; Yang, S.; Chen, W. Phenotypic parameter computation using YOLOv11-DYPF keypoint detection. Aquac. Eng. 2025, 111, 102571. [Google Scholar] [CrossRef]
- Sanchez, S.A.; Romero, H.J.; Morales, A.D. Comparison of performance metrics of pretrained object detection models. IOP Conf. Ser. Mater. Sci. Eng. 2020, 844, 012024. [Google Scholar] [CrossRef]
- Sheng, H.; Zhang, D.; Yang, D.; Yang, D.; Liu, X.; Ke, W. Occlusion-Robust Multi-Target Tracking and Segmentation Framework with Mask Enhancement. Appl. Sci. 2025, 15, 6969. [Google Scholar] [CrossRef]
- Murat, A.A.; Kiran, M.S. A comprehensive review on YOLO versions for object detection. Eng. Sci. Technol. Int. J. 2025, 70, 102161. [Google Scholar] [CrossRef]
- Lu, C.-P.; Liaw, J.-J.; Wu, T.-C.; Hung, T.-F. Development of a mushroom growth measurement system applying deep learning for image recognition. Agronomy 2019, 9, 32. [Google Scholar] [CrossRef]
- Frossard, E.; Liebisch, F.; Hgaza, V.K.; Kiba, D.I.; Kirchgessner, N.; Müller, L.; Müller, P.; Pouya, N.; Ringger, C.; Walter, A. Image-based phenotyping of water yam growth and nitrogen status. Agronomy 2021, 11, 249. [Google Scholar] [CrossRef]
- Shi, Y.; Zhang, C.; Sun, Z.; Liu, J.; Li, B. OMC-YOLO: A lightweight grading detection method for oyster mushrooms. Horticulturae 2024, 10, 742. [Google Scholar] [CrossRef]
- He, L.H.; Zhou, Y.Z.; Liu, L.; Cao, W.; Ma, J.H. Research on object detection and recognition in remote sensing images based on YOLOv11. Sci. Rep. 2025, 15, 14032. [Google Scholar] [CrossRef] [PubMed]
- Mihajlovic, M.; Marjanovic, M. Enhancing Instance Segmentation in High-Resolution Images Using Slicing-Aided Hyper Inference and Spatial Mask Merging Optimized via R-Tree Indexing. Mathematics 2025, 13, 3079. [Google Scholar] [CrossRef]
- Su, C.; Lin, H.; Wang, D. Nav-YOLO: A lightweight and efficient object detection method for edge devices. ISPRS Int. J. Geo-Inf. 2025, 14, 364. [Google Scholar] [CrossRef]
- Padilla, R.; Passos, W.L.; Dias, T.L.B.; Netto, S.L.; da Silva, E.A.B. A Comparative Analysis of Object Detection Metrics with a Companion Open-Source Toolkit. Electronics 2020, 9, 279. [Google Scholar] [CrossRef]
- Long, X.; Deng, K.; Wang, G.; Zhang, Y. PP-YOLO: An effective and efficient implementation of object detector. arXiv 2020, arXiv:2007.12099. [Google Scholar] [CrossRef]






| Species | Model | Class | Box P | Box R | Box mAP50 | Box mAP50–95 | Mask P | Mask R | Mask mAP50 | Mask mAP50–95 | Seg P | Seg R | Seg mAP50 | Seg mAP50–95 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Pleurotus ostreatus | YOLOv8 | all | 0.80 | 0.79 | 0.85 | 0.55 | 0.81 | 0.75 | 0.82 | 0.45 | 0.81 | 0.60 | 0.72 | 0.34 |
| stipe | 0.77 | 0.70 | 0.77 | 0.39 | 0.76 | 0.64 | 0.72 | 0.32 | 0.72 | 0.55 | 0.63 | 0.25 | ||
| pileus | 0.84 | 0.88 | 0.92 | 0.72 | 0.86 | 0.86 | 0.92 | 0.60 | 0.90 | 0.64 | 0.81 | 0.43 | ||
| YOLOv11 | all | 0.82 | 0.78 | 0.84 | 0.55 | 0.81 | 0.75 | 0.82 | 0.45 | 0.82 | 0.64 | 0.73 | 0.36 | |
| stipe | 0.79 | 0.70 | 0.76 | 0.38 | 0.77 | 0.66 | 0.73 | 0.30 | 0.74 | 0.60 | 0.66 | 0.28 | ||
| pileus | 0.85 | 0.85 | 0.92 | 0.71 | 0.85 | 0.85 | 0.91 | 0.59 | 0.91 | 0.67 | 0.80 | 0.45 | ||
| Flammulina velutipes | YOLOv8 | all | 0.73 | 0.75 | 0.77 | 0.46 | 0.66 | 0.65 | 0.64 | 0.23 | 0.66 | 0.62 | 0.61 | 0.22 |
| stipe | 0.70 | 0.68 | 0.69 | 0.38 | 0.60 | 0.56 | 0.53 | 0.18 | 0.60 | 0.51 | 0.50 | 0.17 | ||
| pileus | 0.77 | 0.82 | 0.84 | 0.54 | 0.71 | 0.75 | 0.74 | 0.27 | 0.71 | 0.72 | 0.71 | 0.26 | ||
| YOLOv11 | all | 0.72 | 0.76 | 0.77 | 0.48 | 0.66 | 0.68 | 0.66 | 0.24 | 0.67 | 0.65 | 0.65 | 0.24 | |
| stipe | 0.68 | 0.67 | 0.69 | 0.39 | 0.60 | 0.58 | 0.56 | 0.19 | 0.59 | 0.55 | 0.54 | 0.18 | ||
| pileus | 0.76 | 0.84 | 0.85 | 0.57 | 0.71 | 0.77 | 0.77 | 0.29 | 0.75 | 0.75 | 0.77 | 0.31 |
| Pearson (r) | R-Score (R2) | MAE (mm) | MRE (%) | ||
|---|---|---|---|---|---|
| Pileus (diameter) | YOLOv08/ Physical Measurements | 0.20 | 0.04 | 5.06 | 12.43 |
| YOLOv11/ Physical Measurements | 0.23 | 0.05 | 5.02 | 12.40 | |
| YOLOv08/ YOLOv11 | 0.95 | 0.91 | 1.16 | 3.09 | |
| Pileus (thickness) | YOLOv08/ Physical Measurements | 0.16 | 0.03 | 5.68 | 20.41 |
| YOLOv11/ Physical Measurements | 0.17 | 0.03 | 5.54 | 19.90 | |
| YOLOv08/ YOLOv11 | 0.94 | 0.89 | 0.86 | 4.07 | |
| Stipe (thickness) | YOLOv08/ Physical Measurements | 0.43 | 0.18 | 4.60 | 61.46 |
| YOLOv11/ Physical Measurements | 0.39 | 0.15 | 4.51 | 60.42 | |
| YOLOv08/ YOLOv11 | 0.93 | 0.86 | 0.63 | 5.01 | |
| Stipe (length) | YOLOv08/ Physical Measurements | 0.42 | 0.17 | 9.03 | 7.82 |
| YOLOv11/ Physical Measurements | 0.43 | 0.19 | 8.88 | 7.70 | |
| YOLOv08/ YOLOv11 | 0.98 | 0.96 | 1.44 | 1.28 |
| Pearson (r) | R-Score (R2) | MAE (mm) | MRE (%) | ||
|---|---|---|---|---|---|
| Pileus (diameter) | YOLOv08/ Physical Measurements | 0.42 | 0.18 | 2.01 | 15.61 |
| YOLOv11/ Physical Measurements | 0.41 | 0.17 | 1.99 | 15.35 | |
| YOLOv08/ YOLOv11 | 0.98 | 0.96 | 0.22 | 2.19 | |
| Pileus (thickness) | YOLOv08/ Physical Measurements | 0.22 | 0.05 | 3.23 | 74.49 |
| YOLOv11/ Physical Measurements | 0.19 | 0.04 | 3.23 | 74.76 | |
| YOLOv08/ YOLOv11 | 0.98 | 0.95 | 0.18 | 2.25 | |
| Stipe (thickness) | YOLOv08/ Physical Measurements | 0.39 | 0.15 | 3.71 | 124.93 |
| YOLOv11/ Physical Measurements | 0.39 | 0.15 | 3.90 | 131.22 | |
| YOLOv08/ YOLOv11 | 0.94 | 0.88 | 0.28 | 3.93 | |
| Stipe (length) | YOLOv08/ Physical Measurements | −0.27 | 0.07 | 11.19 | 9.58 |
| YOLOv11/ Physical Measurements | −0.27 | 0.07 | 11.09 | 9.49 | |
| YOLOv08/ YOLOv11 | 0.95 | 0.90 | 1.38 | 1.34 |
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. |
© 2026 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.
Share and Cite
Choi, D.-H.; Oh, Y.-L.; Oh, M.; Lee, E.-J.; Woo, S.-I.; Kim, M.; Im, J.-H. Comparative Evaluation of YOLOv8 and YOLOv11 for Digital Phenotyping of Edible Mushrooms Under Controlled Cultivation Conditions. J. Fungi 2026, 12, 232. https://doi.org/10.3390/jof12040232
Choi D-H, Oh Y-L, Oh M, Lee E-J, Woo S-I, Kim M, Im J-H. Comparative Evaluation of YOLOv8 and YOLOv11 for Digital Phenotyping of Edible Mushrooms Under Controlled Cultivation Conditions. Journal of Fungi. 2026; 12(4):232. https://doi.org/10.3390/jof12040232
Chicago/Turabian StyleChoi, Doo-Ho, Youn-Lee Oh, Minji Oh, Eun-Ji Lee, Sung-I Woo, Minseek Kim, and Ji-Hoon Im. 2026. "Comparative Evaluation of YOLOv8 and YOLOv11 for Digital Phenotyping of Edible Mushrooms Under Controlled Cultivation Conditions" Journal of Fungi 12, no. 4: 232. https://doi.org/10.3390/jof12040232
APA StyleChoi, D.-H., Oh, Y.-L., Oh, M., Lee, E.-J., Woo, S.-I., Kim, M., & Im, J.-H. (2026). Comparative Evaluation of YOLOv8 and YOLOv11 for Digital Phenotyping of Edible Mushrooms Under Controlled Cultivation Conditions. Journal of Fungi, 12(4), 232. https://doi.org/10.3390/jof12040232

