Next Article in Journal
Correction: Maurer et al. Gut Microbial Disruption in Critically Ill Patients with COVID-19-Associated Pulmonary Aspergillosis. J. Fungi 2022, 8, 1265
Next Article in Special Issue
Identification and Nutritional, Bioactive, and Antioxidant Evaluation of a Novel Mushroom Species, Inonotus chrysosporus
Previous Article in Journal
Natural Selection Drives AT-Biased Codon Usage in Mitochondrial Genomes of Early-Diverging Conidiobolus Fungi (Zoopagomycota)
Previous Article in Special Issue
Comparative Optimization of Microwave and Ultrasound-Assisted Extraction of Bioactive Compounds and Proteins from Craterellus cornucopioides
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Comparative Evaluation of YOLOv8 and YOLOv11 for Digital Phenotyping of Edible Mushrooms Under Controlled Cultivation Conditions

Mushroom Research Division, National Institute of Horticultural and Herbal Science, RDA, Eumseong 27709, Chungbuk, Republic of Korea
*
Author to whom correspondence should be addressed.
J. Fungi 2026, 12(4), 232; https://doi.org/10.3390/jof12040232
Submission received: 30 January 2026 / Revised: 6 March 2026 / Accepted: 21 March 2026 / Published: 24 March 2026
(This article belongs to the Special Issue Edible Mushrooms: Advances and Perspectives)

Abstract

Digital phenotyping is increasingly recognized as an essential tool for the quantitative analysis of fungal morphology, particularly in controlled indoor cultivation systems where large numbers of fruiting bodies must be assessed consistently and non-destructively. While YOLOv8-based deep learning approaches have previously been applied in phenotypic analyses of edible mushrooms, the applicability of newer YOLO architectures to fungal phenotyping remains largely unexplored. In this study, we present a controlled-environment digital phenotyping framework for indoor mushroom cultivation and conduct a systematic benchmarking evaluation of YOLOv11 for phenotypic segmentation in comparison with YOLOv8. Using bottle-cultivated Pleurotus ostreatus and Flammulina velutipes as representative edible basidiomycetes, we performed a controlled comparison of YOLOv8-seg and YOLOv11-seg using identical datasets, preprocessing pipelines, and hyperparameter configurations. The results demonstrate that YOLOv11 achieves segmentation performance comparable to that of YOLOv8 across all evaluated metrics (ΔmAP50–95 < 0.01) while substantially reducing computational complexity, including fewer trainable parameters, lower FLOPs, and decreased gradient load. Validation against caliper-based physical measurements revealed moderate, trait-dependent agreement, whereas inter-model consistency between YOLOv8 and YOLOv11 remained consistently high across diverse morphological and segmentation scenarios. These findings suggest that recent developments in object detection architectures can improve computational efficiency without compromising phenotypic measurement fidelity. More broadly, this study highlights the importance of periodically evaluating emerging detection architectures within biological phenotyping pipelines to ensure scalable, sustainable, and high-throughput fungal phenotyping under controlled-environment cultivation systems.

1. Introduction

Since ancient times, mushrooms have been valued for their distinctive flavor, economic importance, and medicinal properties [1,2]; to date, more than 15,000 species have been described, approximately 2000 of which are considered edible [3]. Owing to their saprophytic nature, mushrooms can grow on diverse substrates, including soil and food and agricultural residues. Taxonomically, mushrooms are sporulating fungi belonging to the phylum Basidiomycota and the class Agaricomycetes. The structure of each fruiting body is composed of a stipe (stem), pileus (cap), and lamellae (gills), and variation in these external morphological components is directly linked to commercial quality, developmental stage, and cultivation performance [4].
Phenotypes refer to the observable characteristics arising from interactions between genetic background and environmental conditions [5]. In cultivated mushrooms, phenotypic traits such as fruiting body size, shape, and proportional morphology are essential indicators for assessing market quality, breeding outcomes, and cultivation stability. Throughout the history of mushroom domestication, selective breeding has been used to enhance desirable phenotypic traits for edible purposes [6]. The intensification and automation of modern mushroom cultivation systems have increased production efficiency while simultaneously challenging conventional phenotypic evaluation methods; traditional phenotyping approaches remain labor-intensive, time-consuming, and prone to operator-dependent variability, particularly under high-throughput indoor cultivation conditions [7,8]. As a result, there is a growing demand for efficient, objective, and automated phenotyping strategies. In parallel with advances in digital agriculture, artificial intelligence (AI)-based image analysis has emerged as a promising tool for quantitative phenotyping, with increasing relevance for fungal morphology assessment [9,10].
Instance segmentation is a key methodological development, integrating object detection and semantic segmentation to enable pixel-level delineation of biological structures within convolutional neural network (CNN)-based frameworks [11,12]. In plant phenotyping, instance segmentation has been successfully applied to tasks such as disease assessment and yield-related trait extraction [13,14,15]. In fungal research, computer vision approaches based on the You Only Look Once (YOLO) family have been applied to toxic mushroom classification, fruiting body detection, and phenotypic analysis in cultivated systems [16,17,18]. Owing to its favorable balance between inference speed and accuracy, YOLO has become a widely adopted architecture for real-time object detection. Since its initial introduction in 2016 [19], the framework has undergone continuous architectural refinement. Among the Ultralytics YOLO series, several recent variants, including YOLOv5, YOLOv8, and the recently released YOLOv11, provide support for instance segmentation, thereby enabling pixel-level phenotypic analyses of complex biological structures [16].
Beyond accuracy-oriented performance, recent studies on digital phenotyping have emphasized the importance of system-level requirements in AI model selection, particularly under large-scale, automated, and resource-constrained environments. During indoor mushroom cultivation, phenotypic monitoring often requires continuous image acquisition and processing under constrained computational resources [20]. In such contexts, computational efficiency, architectural compactness, and training stability are critical factors that directly affect the scalability and sustainability of phenotyping pipelines. Consequently, architectural suitability and long-term deployability must be accounted for when evaluating phenotyping models, especially for high-throughput fungal morphology analysis. Recent studies on automated cultivation and digital phenotyping further indicate that lightweight deep learning models play a critical role in enabling scalable and context-aware farming systems, especially where real-time perception and continuous operation are required [21].
Although a growing number of studies have explored AI-based phenotypic analysis, systematic investigations focusing on instance segmentation-based phenotyping of cultivated mushrooms remain limited. Existing studies have predominantly relied on YOLOv8 for the detection and phenotypic characterization of fruiting bodies [9,17,22]. However, digital phenotyping systems deployed in controlled cultivation environments require not only segmentation accuracy but also long-term computational efficiency, scalability, and operational stability. Despite recent advances in object detection architectures, including the release of YOLOv11 with improved computational efficiency, the practical suitability of these emerging architectures for high-throughput fungal phenotyping pipelines has not been systematically evaluated in mushroom cultivation systems [23]. To address this gap, we establish a controlled-environment digital phenotyping benchmark using cultivated mushrooms grown in standardized polypropylene bottle systems. Within this framework, YOLOv8 and YOLOv11 are evaluated under identical training conditions to compare segmentation accuracy, agreement with physical ground-truth measurements, and computational efficiency. Through this systematic evaluation, we aim to determine whether recent architectural refinements can enhance the operational efficiency of fungal phenotyping systems while maintaining reliable measurement performance. Such comparative benchmarking provides practical guidance for selecting suitable detection architectures in scalable mushroom phenotyping platforms and supports the sustainable deployment of AI-assisted cultivation monitoring systems under controlled production environments.

2. Materials and Methods

2.1. Preparation of Mushroom Material and Image Acquisition

In 2024, under controlled-environment conditions, Pleurotus ostreatus and Flammulina velutipes were cultivated for phenotypic analysis based on established bottle cultivation protocols reported in previous studies [6,7,24]. Both edible mushroom species were grown in 800 mL polypropylene bottles under standardized and controlled conditions. For the cultivation of P. ostreatus, a substrate composed of poplar sawdust, beet pulp, and cottonseed meal was prepared in a 50:30:20 (v/v) ratio. In the case of F. velutipes, the cultivation medium consisted of corn cob, rice bran, beet pulp, soybean hull, wheat bran, crushed oyster shell, and waste limestone mixed in a 35:33:10:6:6:6:4 (v/v) ratio. All media were sterilized at 121 °C for 90 min prior to inoculation. Fruiting bodies were developed at 23 °C and 80–90% relative humidity following conventional controlled bottle cultivation practices. All images presented in this study were acquired from mature fruiting bodies at the commercial harvest stage to ensure consistency in morphological traits and to focus our analysis on phenotypic features directly relevant to market-oriented evaluation.
Side-view images of mushroom fruiting bodies were acquired under strictly controlled illumination and spatial conditions to construct a standardized dataset suitable for deep learning-based digital phenotyping. To minimize background noise, shadow interference, and illumination heterogeneity, a custom-built imaging chamber (PODO Co., Ltd., Korea) was constructed, specifically designed to provide reproducible imaging conditions across all samples. Within the chamber, a high-resolution RGB camera (EOS M50, Canon Inc., Tokyo, Japan) equipped with a Fujinon CF8ZA-1S industrial lens (8 mm focal length, f/1.8) was mounted in a fixed position. Illumination was provided by dual diffused LED panels symmetrically installed at 45° angles relative to the sample plane (Figure 1). During image acquisition, mushroom bottles were placed sequentially at four predefined positions on the chamber floor to account for minor spatial variability while maintaining consistent imaging geometry. These controlled imaging conditions were intentionally adopted to minimize environmental variability and to ensure a fair and reproducible comparison between deep learning models, rather than to replicate all complexities of commercial production environments.
All acquired images were stored in RGB color mode using lossless compression (Figure 2). Image preprocessing was performed using Python-based routines implemented with the OpenCV library (version 4.x). The preprocessing pipeline included background normalization to reduce residual illumination heterogeneity, global color correction based on channel-wise intensity normalization, and resizing of all images to 640 × 640 pixels using bilinear interpolation to comply with YOLO input requirements [25]. No additional data augmentation or manual color manipulation were applied during preprocessing. An identical workflow was applied to all training, validation, and test datasets to ensure reproducibility and fair comparison between deep learning models. Image resizing was performed solely to meet standardized model input requirements and was consistently applied across all datasets, ensuring that relative performance comparisons between models were not biased by preprocessing differences.

2.2. Dataset Construction

Following image acquisition, all valid images were organized and preprocessed to construct a reliable dataset for AI model training and evaluation under controlled-environment conditions. The dataset consisted exclusively of mature mushroom fruiting bodies cultivated in bottle-based systems, as mature stages exhibit clearly distinguishable pileus and stipe structures that are essential for instance segmentation-based phenotypic analysis. Although the dataset focused on mature fruiting bodies, substantial morphological variability was preserved, including variations in individual size, stipe length, pileus shape, and degrees of fruiting body overlap, reflecting realistic heterogeneity within controlled indoor cultivation systems.
Image annotation was performed on mushroom images (403 side-view images of P. ostreatus and 201 of F. velutipes) using polygon-based instance segmentation with Label Studio (v1.13, Heartex, San Francisco, CA, USA; https://labelstud.io/, accessed on 10 January 2026) in 2025. The size of our dataset is consistent with previously reported instance segmentation studies in fungal phenotyping, where polygon-based manual annotation substantially limits the feasible scale of annotated images. Two phenotypic categories, pileus and stipe, were manually delineated for each fruiting body (Figure 3). To ensure annotation reliability, all labels were cross-validated by two independent annotators, and discrepancies were resolved through consensus-based review to maintain inter-annotator consistency. The unequal number of images between species reflects inherent differences in cultivation yield and image availability, and was consistently preserved across all subsets to avoid introducing artificial sampling bias.
The annotated dataset was partitioned into training (60%), validation (20%), and test (20%) subsets using stratified random sampling based on predefined morphological categories to ensure balanced representation across subsets [26]. All annotation management and dataset processing steps were conducted using Visual Studio Code (v1.99.3, Microsoft Corp., Redmond, WA, USA; https://code.visualstudio.com/, accessed on 10 January 2026) and integrated within the Ultralytics YOLO framework, ensuring seamless compatibility between the annotation schema and the model input pipeline [16,27]. The final dataset conformed to the COCO-format instance segmentation structure, enabling reproducible and fair comparative analysis across different YOLO architectures. Stratification was performed based on coarse morphological attributes, including relative fruiting body size and the presence of overlapping individuals, rather than species identity, to maintain phenotypic diversity across subsets.

2.3. Model Configuration and Training Procedure

Comparative analyses of analytical performance across different YOLO architectures have been reported in various agricultural and phenotyping studies [16,28,29]. In this study, two YOLO-based instance segmentation models, YOLOv8-seg and YOLOv11-seg, were employed for a systematic comparison of mushroom phenotypic segmentation performance. Both models were implemented using the Ultralytics YOLO framework (v8.2.0, Ultralytics Inc., Austin, TX, USA; https://github.com/ultralytics/ultralytics, accessed on 10 January 2026) within the Python 3.12 and PyTorch 2.3.1 environments. All computations were conducted on a Windows 11 workstation equipped with an NVIDIA RTX 4080 GPU (16 GB VRAM, NVIDIA Corp., Santa Clara, CA, USA) and 32 GB RAM, providing sufficient computational capacity for high-resolution instance segmentation.
To ensure controlled and reproducible comparisons between the two architectures, both YOLOv8-seg and YOLOv11-seg were trained under identical hyperparameter settings, following configuration guidelines reported in previous benchmarking studies [8]. Prior to training, all input images were resized to 640 × 640 pixels. The batch size was dynamically adjusted based on available GPU memory, and the learning rate was set to 0.01, the momentum to 0.937, and the weight decay to 0.0005. Stochastic gradient descent (SGD) was used as the optimizer, and training was performed for 120 epochs, including three warm-up epochs to stabilize gradient updates.
Identical hyperparameters were adopted to isolate the effects of architectural differences between YOLOv8 and YOLOv11, rather than to maximize the absolute performance of each model through architecture-specific tuning. Under this controlled setup, observed differences in segmentation accuracy and computational efficiency can be attributed primarily to variations in network design and information flow.
YOLOv8 employs a conventional C2f backbone combined with a spatial pyramid pooling-fast (SPPF) neck, which supports hierarchical multi-scale feature extraction [30]. In contrast, YOLOv11 introduces the C2f-Fusion and RepNCSPELAN modules, which enhance feature reuse and contextual representation while reducing redundant computation [31]. These architectural modifications primarily alter feature aggregation and propagation mechanisms. To maintain fairness in performance evaluations, both YOLOv8 and YOLOv11 were trained using the same datasets, preprocessing pipeline, and hyperparameter configurations, enabling direct comparison of their suitability, for instance in segmentation-based mushroom phenotypic analysis [16].

2.4. Evaluation Metrics

Model performance was evaluated under identical training and hyperparameter conditions to ensure direct comparability between architectures. This controlled comparative design was adopted to assess how incremental architectural developments influence phenotypic measurement reliability and computational feasibility within scalable fungal phenotyping systems. Although other instance segmentation frameworks exist, we focused on YOLO-based architectures to maintain methodological consistency within a real-time detection framework relevant to computationally constrained deployment environments. Validation against physical measurements was subsequently performed to examine biological consistency.

2.4.1. Detection and Segmentation Accuracy

Following the training procedure, the YOLO models were quantitatively evaluated using four standard COCO-based metrics: precision (P), recall (R), mAP50, and mAP50–95. Precision measures the proportion of correctly identified positive detections among all detections, while recall represents the proportion of correctly detected targets among all ground-truth instances. The mean average precision (mAP) was computed using the COCO evaluation protocol, where mAP50 corresponds to an intersection-over-union (IoU) threshold of 0.50 and mAP50–95 represents the mean value across thresholds from 0.50 to 0.95 at 0.05 increments [32].
P = T P T P + F P R = T P T P + F N m A P = 1 n i = 0 n A P i A P i = 0 1 p ( r ) d r
In the equation above, TP, FP, and FN denote true positives, false positives, and false negatives, respectively, and A P i is the area under the precision–recall curve for class i. For mask-based segmentation, these metrics were computed on a pixel-wise IoU basis between predicted and ground-truth masks.
To further evaluate segmentation robustness under partial spatial overlap between pileus and stipe regions, performance was additionally assessed on occlusion-affected instances within the test dataset. Occlusion cases were defined as instances in which annotated morphological components exhibited spatial overlap in side-view images. For these instances, the same evaluation metrics described above were recalculated using an identical IoU-based protocol [33].

2.4.2. Evaluation Metrics for Computational Efficiency and Model Complexity

To evaluate the computational efficiency and scalability of the YOLO models, the following model descriptors were quantified using the THOP (PyTorch) library:
  • 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.
These metrics were used to quantitatively assess the segmentation accuracy and computational efficiency of the YOLO models. The evaluation process was designed to verify whether architecturally refining YOLOv11 could achieve a lower computational burden and parameter count compared with YOLOv8 while maintaining comparable accuracy across segmentation metrics [34].

2.4.3. Evaluation Framework for Validation Against Physical Measurements

To verify the biological validity of YOLO-derived measurements, the predicted dimensional traits (pileus diameter, pileus thickness, stipe length, and stipe thickness) were compared against physically measured ground-truth data obtained using a digital caliper. All pixel-based outputs were converted into metric units (mm) using a calibration target captured under identical imaging conditions. Based on previous studies, the agreement between predicted and observed measurements was quantified using four statistical indices [35,36]:
  • 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.
These indices were computed according to the following formulations:
r =   i = 1 n ( y i y ¯ ) ( y i ^ y ^ ̿ ) ( y i y ¯ ) 2 ( y i ^ y ^ ̿ ) 2 ,   R 2 = 1   i ( y i y i ^ ) 2 i ( y i y ¯ ) 2 ,   M A E =   1 n i = 1 n | y i y i ^ | ,   M R E =   1 n i = 1 n | y i y i ^ | y i
where y i and y i ^ denote the observed (physical measurement) and predicted values, respectively, and n represents the number of samples. All statistical analyses were performed using Python 3.12, NumPy 1.26, and SciPy 1.11, and graphical summaries were generated using Matplotlib 3.8 and Pandas 2.2.

2.4.4. Statistical Analysis and Visualization

All performance values, including both accuracy and computational indicators, were analyzed separately for P. ostreatus and F. velutipes. The mean and standard deviation were calculated for each metric, and independent-sample t-tests were conducted at a 95% confidence level (p < 0.05) to evaluate the statistical significance of differences between YOLOv8 and YOLOv11. Correlation analyses were further performed between computational complexity (FLOPs, Params, gradients) and accuracy (mAP50–95) to determine the balance between efficiency and precision. FLOPs, Params, and gradient values were visualized as bar graphs, while the learning loss and mAP convergence trends were depicted using epoch-wise line charts to assess stability during training.

3. Results

3.1. Comparative Performance of YOLOv8 and YOLOv11

Both YOLOv8-seg and YOLOv11-seg successfully detected and segmented pileus and stipe regions across all test images of Pleurotus ostreatus and Flammulina velutipes under controlled imaging conditions (Table 1). Quantitative evaluation indicated that YOLOv11 achieved a segmentation performance comparable to YOLOv8 across all accuracy metrics, with computational efficiency examined separately in subsequent sections. The dataset included mushrooms with substantial morphological variability, including differences in pileus diameter, stipe length, and fruiting body density, which frequently resulted in overlapping and partially occluded structures in bottle cultivation environments.
To further examine segmentation robustness under the effects of structural occlusion between pileus and stipe, we additionally calculated occlusion-stratified segmentation metrics (seg_mAP50 and seg_mAP50–95), which are reported in Table 1. These metrics provide additional insight into segmentation stability under partial overlap conditions commonly observed in dense bottle-cultivated mushroom systems.
For P. ostreatus, YOLOv8 achieved a precision (P) of 0.80 and recall (R) of 0.79 for bounding-box detection, with a mAP50 of 0.85 and mAP50–95 of 0.55. Corresponding mask-based segmentation yielded a mAP50 of 0.82 and mAP50–95 of 0.45. Under occlusion-stratified evaluation, mAP50–95 decreased to 0.34 at the aggregated (“all”) level. Under identical training conditions, YOLOv11 produced comparable bounding-box detection results (mAP50–95 = 0.55), identical mask-based segmentation performance (mAP50–95 = 0.45), and a slightly higher occlusion-stratified mAP50–95 of 0.36. Class-wise analysis indicated that stipe regions exhibited a larger reduction under occlusion conditions than pileus regions in both models, suggesting increased sensitivity of elongated structures to boundary ambiguity under partial spatial overlap. Despite this degradation, inter-model differences remained minimal across box-, mask-, and occlusion-aware evaluations.
For F. velutipes, both models exhibited relatively lower precision and recall values compared with P. ostreatus, likely due to smaller pixel occupancy and increased structural overlap in side-view images. YOLOv8 achieved mAP50–95 values of 0.46 for bounding-box detection and 0.23 for mask-based segmentation, with a further decrease to 0.22 under occlusion-stratified conditions. YOLOv11 achieved mAP50–95 values of 0.48 (box), 0.24 (mask), and 0.24 under occlusion-aware evaluation. As observed in P. ostreatus, stipe regions demonstrated greater performance sensitivity to occlusion than pileus regions. Nevertheless, the relative performance ranking between YOLOv8 and YOLOv11 remained consistent across box-, mask-, and occlusion-aware metrics.
Qualitative inspection of segmentation outputs further demonstrated that both YOLOv8 and YOLOv11 generated consistent mask delineation of pileus and stipe regions across diverse morphological conditions. As shown in Figure 4, both models accurately segmented fruiting bodies with varying sizes and degrees of overlap, producing visually comparable mask boundaries. Although YOLOv11 occasionally produced visually smoother boundary delineation along pileus margins, these differences were qualitative in nature and did not correspond to statistically significant differences in quantitative accuracy metrics.
Overall, our quantitative and qualitative results indicate that YOLOv11 maintains segmentation performance comparable to YOLOv8 at a level comparable to YOLOv8 under controlled-environment conditions, providing a robust phenotypic performance baseline for subsequent evaluation of computational efficiency and model scalability.

3.2. Computational Efficiency and Model Complexity

As illustrated in Figure 5, YOLOv11 demonstrated a clear reduction in computational requirements compared with YOLOv8. The total number of floating-point operations (FLOPs) decreased from 39.9 G to 32.8 G, corresponding to an approximate reduction of 17.8%. Similarly, the number of trainable parameters was reduced from 11.8 M to 10.01 M (15.2% reduction), and the gradient load decreased from 11.79 M to 10.08 M, suggesting reduced optimization overhead during training. These results indicate that YOLOv11 adopts a more compact network configuration with reduced computational and memory demands. Although the total number of network layers increased slightly (from 85 to 113), this reflects architectural restructuring rather than added computational burden, enabled by modular components such as C2f-Fusion and RepNCSPELAN.
Training and validation loss curves are presented in Figure 6. Across both the P. ostreatus and F. velutipes datasets, YOLOv11 showed slightly faster convergence and marginally lower validation loss compared with YOLOv8, particularly for segmentation loss. Validation loss curves for YOLOv11 reached stable plateaus approximately 15–20% earlier in terms of training epochs than those of YOLOv8. After approximately 60 training epochs, both the box and segmentation losses of YOLOv11 remained consistently 10–18% lower than those observed for YOLOv8. These trends indicate improved training efficiency and convergence stability under identical training conditions, rather than direct gains in segmentation accuracy.
Despite the reduced computational complexity, YOLOv11 maintained a segmentation accuracy comparable to that of YOLOv8 (ΔmAP50–95 < 0.01), demonstrating that the observed efficiency gains were not accompanied by a loss of representational capability. Collectively, these results suggest that YOLOv11 provides a favorable balance between segmentation performance and computational efficiency for high-throughput phenotyping under controlled-environment conditions.

3.3. Validation Against Physical Measurements

To assess the biological consistency of YOLO-derived phenotypic measurements, model outputs were compared with digital caliper-based physical measurements for four key traits: pileus diameter, pileus thickness, stipe length, and stipe thickness (Table 2 and Table 3). The agreement between predicted and observed values was evaluated using Pearson’s correlation coefficient (r), the coefficient of determination (R2), mean absolute error (MAE), and mean relative error (MRE), providing complementary perspectives on association strength, explanatory power, absolute deviation, and proportional error.
For P. ostreatus (Table 2), image-derived measurements exhibited trait-dependent levels of agreement with physical measurements. The pileus diameter showed limited correspondence, with YOLOv8 achieving r = 0.20, R2 = 0.04, MAE = 5.06 mm, and MRE = 12.43%, while YOLOv11 produced similar values (r = 0.23, R2 = 0.05, MAE = 5.02 mm, MRE = 12.40%). The pileus thickness displayed consistently low correlation across both models (r ≈ 0.16–0.17, R2 ≈ 0.03), accompanied by moderate relative error (MRE ≈ 20%). In contrast, stipe-related traits demonstrated relatively stronger associations, with r values ranging from 0.39 to 0.43 and the R2 exceeding 0.15, while MRE values varied depending on trait scale (7–61%). Despite these differences in absolute agreement with physical measurements, the inter-model consistency between YOLOv8 and YOLOv11 was exceptionally high across all traits (r ≥ 0.93, R2 ≥ 0.86, MAE ≤ 1.44 mm, MRE ≤ 5.01%), indicating nearly identical dimensional predictions under identical training conditions.
A comparable trend was observed for F. velutipes (Table 3), reflecting its slender morphology and frequent overlap of fruiting bodies. For pileus diameter, moderate agreement with physical measurements was obtained for both YOLOv8 (r = 0.42, R2 = 0.18, MAE = 2.01 mm, MRE = 15.61%) and YOLOv11 (r = 0.41, R2 = 0.17, MAE = 1.99 mm, MRE = 15.35%). Pileus thickness exhibited limited correspondence across models, accompanied by elevated relative error values (MRE ≈ 74%), reflecting the small absolute measurement scale of this trait. Similarly, stipe thickness showed high proportional error (MRE > 120%), whereas absolute deviations (MAE ≈ 3.7–3.9 mm) remained within a moderate range. Stipe length demonstrated low correlation (r = −0.27), yet relative error remained below 10%. Notably, inter-model reproducibility remained extremely high for all traits (r ≥ 0.94, R2 ≥ 0.88, MAE ≤ 1.38 mm, MRE ≤ 3.93%), demonstrating consistent phenotypic interpretation between the two architectures.
Overall, these results indicate that YOLO-derived phenotypic measurements capture consistent morphological trends in a consistent manner across models. Although absolute agreement with physical measurements was moderate and strongly trait-dependent, proportional error analysis (MRE) further revealed that traits with smaller measurement scales exhibited amplified relative deviations. Nevertheless, YOLOv11 reproduced the analytical behavior of YOLOv8 with comparable R2, MAE, and MRE values. When considered together with the observed reductions in computational complexity, our findings support the applicability of YOLOv11 as an efficient and non-destructive analytical tool for controlled-environment phenotyping workflows. This comparative framework further provides a practical basis for the periodic re-evaluation of emerging detection models within digital fungal phenotyping pipelines.

4. Discussion

In this study, we systematically evaluated two widely adopted YOLO segmentation models, YOLOv8 and YOLOv11, within the context of automated fungal phenotyping [37]. Rather than focusing on algorithmic novelty, the objective was to examine how incremental advances in object detection architectures translate into practical implications for mushroom morphological analysis. Both models successfully identified and segmented pileus and stipe regions under controlled imaging conditions, demonstrating stable performance across diverse morphological configurations of Pleurotus ostreatus and Flammulina velutipes.
The results indicate that YOLOv11 achieves segmentation accuracy equivalent to YOLOv8 while operating with reduced computational complexity. Although quantitative performance indices such as precision, recall, and mAP50–95 showed only marginal differences between models (ΔmAP50–95 < 0.01), computational analysis revealed reductions in FLOPs, trainable parameters, and gradient load in YOLOv11 under identical training conditions. These findings suggest that recent architectural refinements primarily influence efficiency and convergence behavior rather than substantially altering final detection accuracy [38,39,40]. The observed reductions in computational load further reflect a comparatively lightweight computational profile of YOLOv11 in practical deployment. From a phenotyping perspective, such efficiency-oriented improvements are particularly relevant in workflows requiring repeated model deployment and large-scale data processing. Our occlusion-stratified evaluation further indicates that both YOLO architectures maintain stable segmentation performance under partial structural overlap between the pileus and stipe, a common challenge in dense mushroom cultivation environments.
This study did not incorporate architectural ablation experiments or module-level modifications, as the primary objective was not to optimize or redesign the underlying segmentation architecture. Instead, the focus was placed on evaluating how incremental architectural evolution within a standardized detection framework translates into phenotypic measurement outcomes under controlled cultivation conditions. Although other state-of-the-art instance segmentation frameworks, such as Mask R-CNN or foundation-model-based approaches, have demonstrated strong performance in general computer vision benchmarks, we specifically prioritized YOLO-based architectures due to their favorable balance between inference speed, deployment simplicity, and computational feasibility in indoor cultivation environments. Therefore, the comparative scope was intentionally constrained to real-time YOLO frameworks to ensure methodological consistency and deployment relevance.
Importantly, the additional occlusion-stratified evaluation conducted in this study provides further insight into segmentation robustness under structurally complex conditions. In bottle-cultivated systems, partial spatial overlap between pileus and stipe regions is unavoidable, particularly in side-view imaging configurations. Representative qualitative examples of these structurally complex segmentation scenarios are illustrated in Figure 4, where overlapping pileus and stipe regions frequently occur within dense bottle-cultivated mushroom clusters. The observed reduction in segmentation accuracy under occlusion conditions confirms that boundary delineation is sensitive to mutual structural interference, especially for elongated stipe regions. Nevertheless, the relative performance consistency between YOLOv8 and YOLOv11 across both standard and occlusion-aware evaluations indicates that architectural refinements in YOLOv11 do not introduce additional susceptibility to overlapping structures. These findings suggest that incremental advancements in general-purpose object detection architectures may yield practical benefits for fungal phenotyping systems without compromising robustness under realistic structural constraints. As deep learning models continue to evolve, computational efficiency, training stability, and scalability may become increasingly critical factors for sustainable deployment in high-throughput biological applications [41,42], underscoring the importance of periodically re-evaluating emerging detection frameworks within phenotyping pipelines.
Validation against physical measurements highlighted the inherent limitations of two-dimensional image-based phenotyping, particularly for thickness-related traits and highly occluded structures. These challenges are particularly pronounced in mushroom phenotyping because dense cultivation systems frequently produce overlapping fruiting bodies and irregular morphological boundaries. Such structural complexity inherently increases segmentation difficulty compared with many plant phenotyping scenarios involving more spatially separated organs. Moderate-to-low Pearson’s r and R2 values reflect the geometric ambiguity and scale sensitivity associated with projecting three-dimensional structures onto two-dimensional images [35]. Nevertheless, inter-model consistency between YOLOv8 and YOLOv11 remained exceptionally high across all evaluated traits (r ≥ 0.94, R2 ≥ 0.86), indicating that both architectures captured largely comparable phenotypic information despite differences in computational footprint [36].
The inclusion of mean relative error (MRE) provided an additional scale-independent interpretation of measurement deviation. While MAE quantifies absolute differences in millimeters, MRE expresses proportional error relative to trait magnitude, facilitating comparison across traits with distinct measurement ranges. Elevated MRE values observed in thickness-related traits, particularly in F. velutipes, likely reflect their small absolute dimensions, where minor deviations produce amplified proportional effects. These observations highlight the importance of interpreting proportional and absolute error metrics jointly when assessing automated phenotyping performance.
Several limitations should be acknowledged. The present models were trained under controlled bottle cultivation conditions, and application to other mushroom species or cultivation environments may require dataset expansion and domain adaptation. Furthermore, despite careful annotation procedures, manual polygon labeling inevitably introduces some subjectivity, particularly in overlapping or poorly defined structural regions. Future integration of multi-view imaging or depth-sensing approaches may help reduce geometric ambiguity and improve quantitative correspondence with physical measurements.
Despite these limitations, the framework presented herein demonstrates the feasibility of integrating continually evolving deep learning models into fungal phenotyping workflows. By systematically benchmarking successive YOLO architectures under biologically realistic cultivation conditions, this study provides practical evidence that incremental advances in general-purpose detection frameworks can directly translate into scalable improvements for automated fungal phenotyping systems. The ability to non-destructively quantify morphological traits within cultivation systems offers practical advantages for monitoring uniformity, yield-related traits, and breeding-relevant characteristics. Crucially, this study emphasizes that phenotyping platforms should not remain static; instead, they should be periodically re-evaluated and optimized in response to ongoing advancements in detection architectures. In this context, YOLOv11, rather than representing a paradigm shift in accuracy, can be seen as an example of how incremental improvements in computational efficiency can enhance the scalability and sustainability of digital mushroom phenotyping systems.
From a methodological perspective, this study contributes to fungal phenotyping research by providing a systematic evaluation framework for integrating emerging object detection architectures into biological measurement pipelines. While we do not propose a new segmentation algorithm, we instead demonstrate how successive deep learning architectures can be rigorously assessed in terms of segmentation robustness, computational efficiency, and agreement with physical measurements within a controlled cultivation system. This type of benchmarking framework is particularly important for digital phenotyping applications, where the practical deployment of evolving AI models must be continuously validated against biological measurement standards.
In summary, the primary contribution of YOLOv11 in this study lies in delivering analytical equivalence to YOLOv8 while reducing computational demand and improving operational efficiency. These findings highlight the importance of continuously aligning fungal phenotyping pipelines with emerging developments in object detection technology to support scalable, high-throughput, and sustainable morphological analysis under controlled-environment conditions.

5. Conclusions

In this study, we evaluated the performance of YOLOv8 and YOLOv11 segmentation models within an automated fungal phenotyping framework for Pleurotus ostreatus and Flammulina velutipes cultivated in bottle-based systems. By enabling the non-destructive extraction of key morphological traits from side-view images, the proposed approach provides a practical alternative to conventional destructive phenotyping methods. Both models demonstrated stable and reliable segmentation of pileus and stipe structures across two morphologically distinct mushroom species.
Quantitative analyses showed that YOLOv11 achieved segmentation accuracy comparable to YOLOv8 (ΔmAP50–95 < 0.01) while operating with reduced computational complexity, including lower FLOPs, fewer trainable parameters, and reduced gradient load. High inter-model consistency across all evaluated traits further confirmed that computational refinements in YOLOv11 preserved phenotypic interpretation without compromising analytical reliability.
Comparison with caliper-based physical measurements indicated that image-derived traits captured systematic morphological variation, although correspondence with physical measurements remained trait-dependent due to occlusion effects and geometric constraints inherent to two-dimensional imaging. The incorporation of proportional error analysis further emphasized the importance of scale-aware interpretation when applying automated image-based phenotyping to small morphological traits.
Importantly, these findings suggest that ongoing advancements in object detection architectures can enhance the scalability and sustainability of fungal phenotyping systems even when absolute accuracy gains are modest. In this context, YOLOv11 represents a computationally efficient implementation method that maintains analytical equivalence while offering a comparatively lightweight and scalable solution for high-throughput, non-destructive phenotyping under controlled-environment cultivation conditions. Continuous evaluation and integration of emerging detection models will therefore be essential to ensure that digital phenotyping platforms remain aligned with technological progress.

Author Contributions

Conceptualization, D.-H.C., Y.-L.O. and J.-H.I.; data curation, M.O. and S.-I.W.; formal analysis, Y.-L.O. and J.-H.I.; funding acquisition, J.-H.I.; investigation, D.-H.C., E.-J.L. and M.K.; methodology, D.-H.C. and J.-H.I.; project administration, J.-H.I.; resources, Y.-L.O., M.O., S.-I.W. and M.K.; supervision, Y.-L.O. and J.-H.I.; validation, D.-H.C. and J.-H.I.; visualization, D.-H.C.; writing—original draft, D.-H.C.; writing—review and editing, D.-H.C., Y.-L.O. and J.-H.I. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the postdoctoral research program support project (PJ01716801), the “Development of core mushroom resources and safety preservation technology”, as part of the studies conducted by the Rural Development Administration (PJ01733103).

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The data supporting the findings of this study are available on Zenodo at https://doi.org/10.5281/zenodo.18372009. Additional data and materials are available from the corresponding authors upon reasonable request.

Acknowledgments

D.H. gratefully acknowledges the support of the Mushroom Research Division, Ginseng and Specialty Crops Department, Rural Development Administration (RDA), Republic of Korea. This study was carried out as part of a professional researcher support program within the Mushroom Research Division, under which the experimental work and manuscript preparation were conducted. During revision, an AI-assisted tool was used solely for English language editing (grammar and readability). It was not used for data analysis, interpretation, or the generation of scientific content. The authors take full responsibility for the content of the manuscript.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. 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]
  2. Sánchez, C. Modern aspects of mushroom culture technology. Appl. Microbiol. Biotechnol. 2004, 64, 756–762. [Google Scholar] [CrossRef]
  3. 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]
  4. Chang, S.-T.; Hayes, W.A. The Biology and Cultivation of Edible Mushrooms; Academic Press: Cambridge, MA, USA, 2013; pp. 3–9. [Google Scholar]
  5. 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]
  6. 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]
  7. 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]
  8. Sapkota, R.; Karkee, M. Object detection with multimodal large vision-language models: An in-depth review. Inf. Fusion 2025, 126, 103575. [Google Scholar] [CrossRef]
  9. 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]
  10. 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]
  11. 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]
  12. 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]
  13. 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]
  14. 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]
  15. 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]
  16. 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]
  17. 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]
  18. 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]
  19. 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]
  20. 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]
  21. 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]
  22. 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]
  23. 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]
  24. Ho Bao Thuy, Q.; Suzuki, A. Technology of mushroom cultivation. Viet. J. Sci. Technol. 2019, 57, 265–286. [Google Scholar]
  25. 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]
  26. 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]
  27. 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]
  28. 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]
  29. 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]
  30. 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]
  31. 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]
  32. 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]
  33. 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]
  34. 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]
  35. 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]
  36. 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]
  37. 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]
  38. 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]
  39. 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]
  40. 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]
  41. 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]
  42. 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]
Figure 1. Custom-built imaging chamber for standardized acquisition of mushroom phenotypic data. The chamber was designed to minimize background noise, shadow artifacts, and illumination variability during image capture. Captured images were saved in RGB mode with lossless compression, followed by preprocessing steps, including background normalization, color correction, and resizing to 640 × 640 pixels, for YOLO-based phenotypic analysis.
Figure 1. Custom-built imaging chamber for standardized acquisition of mushroom phenotypic data. The chamber was designed to minimize background noise, shadow artifacts, and illumination variability during image capture. Captured images were saved in RGB mode with lossless compression, followed by preprocessing steps, including background normalization, color correction, and resizing to 640 × 640 pixels, for YOLO-based phenotypic analysis.
Jof 12 00232 g001
Figure 2. Raw images of P. ostreatus (A) and F. velutipes (B). Images illustrate variability in growth stage, individual size, and clustering patterns included in the dataset under controlled conditions in the imaging chamber.
Figure 2. Raw images of P. ostreatus (A) and F. velutipes (B). Images illustrate variability in growth stage, individual size, and clustering patterns included in the dataset under controlled conditions in the imaging chamber.
Jof 12 00232 g002
Figure 3. Polygon-based annotation images used for dataset construction: P. ostreatus (A) and F. velutipes (B). Pileus and stipe regions were manually annotated using Label Studio to support instance segmentation tasks.
Figure 3. Polygon-based annotation images used for dataset construction: P. ostreatus (A) and F. velutipes (B). Pileus and stipe regions were manually annotated using Label Studio to support instance segmentation tasks.
Jof 12 00232 g003
Figure 4. Qualitative comparison of instance segmentation results obtained using YOLOv8 and YOLOv11 for P. ostreatus (A) and F. velutipes (B). The top row shows segmentation results generated by YOLOv8, while the bottom row shows the corresponding results generated by YOLOv11. For each species, identical mushroom samples were analyzed by both models to enable direct visual comparison. The images illustrate typical structural characteristics observed in bottle cultivation systems, including overlapping pileus regions, partial occlusion between neighboring fruiting bodies, and elongated stipe structures that introduce boundary ambiguity during segmentation. Despite these structural challenges, both YOLO architectures produced visually comparable segmentation outputs across diverse morphological configurations.
Figure 4. Qualitative comparison of instance segmentation results obtained using YOLOv8 and YOLOv11 for P. ostreatus (A) and F. velutipes (B). The top row shows segmentation results generated by YOLOv8, while the bottom row shows the corresponding results generated by YOLOv11. For each species, identical mushroom samples were analyzed by both models to enable direct visual comparison. The images illustrate typical structural characteristics observed in bottle cultivation systems, including overlapping pileus regions, partial occlusion between neighboring fruiting bodies, and elongated stipe structures that introduce boundary ambiguity during segmentation. Despite these structural challenges, both YOLO architectures produced visually comparable segmentation outputs across diverse morphological configurations.
Jof 12 00232 g004
Figure 5. Relative changes in FLOPs, parameters, layers, and gradients of YOLOv11 compared with YOLOv8. YOLOv11 achieved a 17.8% reduction in FLOPs and approximately 15% fewer parameters and gradients, despite an increase in network depth (113 vs. 85 layers).
Figure 5. Relative changes in FLOPs, parameters, layers, and gradients of YOLOv11 compared with YOLOv8. YOLOv11 achieved a 17.8% reduction in FLOPs and approximately 15% fewer parameters and gradients, despite an increase in network depth (113 vs. 85 layers).
Jof 12 00232 g005
Figure 6. Training and validation loss trends of YOLOv8 and YOLOv11 models for (A) Pleurotus ostreatus and (B) Flammulina velutipes. The graphs illustrate the epoch-wise decrease in segmentation (left) and bounding-box (right) losses for both species, showing stable convergence patterns. YOLOv11 exhibited slightly faster convergence and lower validation loss, indicating improved learning efficiency and robustness during phenotypic segmentation.
Figure 6. Training and validation loss trends of YOLOv8 and YOLOv11 models for (A) Pleurotus ostreatus and (B) Flammulina velutipes. The graphs illustrate the epoch-wise decrease in segmentation (left) and bounding-box (right) losses for both species, showing stable convergence patterns. YOLOv11 exhibited slightly faster convergence and lower validation loss, indicating improved learning efficiency and robustness during phenotypic segmentation.
Jof 12 00232 g006
Table 1. Quantitative performance evaluation of YOLOv8 and YOLOv11 for mushroom phenotypic analysis.
Table 1. Quantitative performance evaluation of YOLOv8 and YOLOv11 for mushroom phenotypic analysis.
SpeciesModelClassBox PBox RBox
mAP50
Box
mAP50–95
Mask PMask RMask
mAP50
Mask
mAP50–95
Seg PSeg RSeg
mAP50
Seg
mAP50–95
Pleurotus
ostreatus
YOLOv8all0.800.790.850.550.810.750.820.450.810.600.720.34
stipe0.770.700.770.390.760.640.720.320.720.550.630.25
pileus0.840.880.920.720.860.860.920.600.900.640.810.43
YOLOv11all0.820.780.840.550.810.750.820.450.820.640.730.36
stipe0.790.700.760.380.770.660.730.300.740.600.660.28
pileus0.850.850.920.710.850.850.910.590.910.670.800.45
Flammulina
velutipes
YOLOv8all0.730.750.770.460.660.650.640.230.660.620.610.22
stipe0.700.680.690.380.600.560.530.180.600.510.500.17
pileus0.770.820.840.540.710.750.740.270.710.720.710.26
YOLOv11all0.720.760.770.480.660.680.660.240.670.650.650.24
stipe0.680.670.690.390.600.580.560.190.590.550.540.18
pileus0.760.840.850.570.710.770.770.290.750.750.770.31
Table 2. Validation of phenotypic trait measurements predicted by YOLO in Pleurotus ostreatus.
Table 2. Validation of phenotypic trait measurements predicted by YOLO in Pleurotus ostreatus.
Pearson (r)R-Score (R2)MAE (mm)MRE (%)
Pileus
(diameter)
YOLOv08/
Physical Measurements
0.200.045.0612.43
YOLOv11/
Physical Measurements
0.230.055.0212.40
YOLOv08/
YOLOv11
0.950.911.163.09
Pileus
(thickness)
YOLOv08/
Physical Measurements
0.160.035.6820.41
YOLOv11/
Physical Measurements
0.170.035.5419.90
YOLOv08/
YOLOv11
0.940.890.864.07
Stipe
(thickness)
YOLOv08/
Physical Measurements
0.430.184.6061.46
YOLOv11/
Physical Measurements
0.390.154.5160.42
YOLOv08/
YOLOv11
0.930.860.635.01
Stipe
(length)
YOLOv08/
Physical Measurements
0.420.179.037.82
YOLOv11/
Physical Measurements
0.430.198.887.70
YOLOv08/
YOLOv11
0.980.961.441.28
Table 3. Validation of phenotypic trait measurements predicted by YOLO in Flammulina velutipes.
Table 3. Validation of phenotypic trait measurements predicted by YOLO in Flammulina velutipes.
Pearson (r)R-Score (R2)MAE (mm)MRE (%)
Pileus
(diameter)
YOLOv08/
Physical Measurements
0.420.182.0115.61
YOLOv11/
Physical Measurements
0.410.171.9915.35
YOLOv08/
YOLOv11
0.980.960.222.19
Pileus
(thickness)
YOLOv08/
Physical Measurements
0.220.053.2374.49
YOLOv11/
Physical Measurements
0.190.043.2374.76
YOLOv08/
YOLOv11
0.980.950.182.25
Stipe
(thickness)
YOLOv08/
Physical Measurements
0.390.153.71124.93
YOLOv11/
Physical Measurements
0.390.153.90131.22
YOLOv08/
YOLOv11
0.940.880.283.93
Stipe
(length)
YOLOv08/
Physical Measurements
−0.270.0711.199.58
YOLOv11/
Physical Measurements
−0.270.0711.099.49
YOLOv08/
YOLOv11
0.950.901.381.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.

Share and Cite

MDPI and ACS Style

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

AMA Style

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 Style

Choi, 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 Style

Choi, 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

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop