Research Article

Horticultural Science and Technology. 2026.
https://doi.org/10.7235/HORT.20260056

ABSTRACT


MAIN

  • Introduction

  • Materials and Methods

  •   Plant materials

  •   Data annotation

  •   Object detection algorithms

  •   Model training

  •   Two-class and one-class model configurations

  •   Model evaluation

  • Results and Discussion

  •   Performance comparison between YOLOv11 and RF-DETR

  •   Detection performance in the bi-leader and tall-spindle image datasets

  •   Detection performance for red and insufficiently colored fruit

  •   Detection performance under one-class and two-class configurations

  • Conclusions

Introduction

Apple (Malus domestica Borkh.) production is sensitive to weather variability associated with recent climate change (Dalhaus et al. 2020). In Korea, adverse weather in 2023 coincided with cold injury and anthracnose outbreaks, and national apple production decreased by 30.3% from the previous year to 394,428 tons (Statistics Korea 2023; MAFRA 2024). Although production recovered partially in 2024, insufficient solar radiation during the growing season resulted in poor coloration and reduced fruit quality in major production regions (KREI 2024). High temperatures could further inhibit anthocyanin accumulation and delay red coloration in apples (Lim et al. 2019; Moon et al. 2022). These weather-related changes affect not only total fruit production but also the proportion of marketable fruit, thereby increasing uncertainty in farm management, labor allocation, marketing, and yield estimation.

Therefore, reliable production statistics are important for orchard management and agricultural policies. Since 2009, the national apple production statistics in Korea have been estimated through sample surveys (Statistics Korea 2016). Direct counting of fruits is a simple means of estimating fruit load, but it requires substantial time and labor and becomes inefficient as the survey area increases (Meena et al. 2014; Syal et al. 2014; Häni et al. 2020; Maheswari et al. 2021). Consequently, computer vision methods based on deep learning have been investigated for fruit detection and counting, as well as for maturity and coloration classification (Tian et al. 2019; Sekharamantry et al. 2023; Lee et al. 2024; Gwak et al. 2024). These methods can provide a scalable basis for orchard surveys; however, their practical utility depends on their reliable performance under variable field conditions.

Fruit detection performance in commercial orchards is affected by occlusion, illumination, the viewing angle, the distance from the lens, and the fruit size. Leaves, branches, and fruit clusters can obscure fruit boundaries and reduce detection accuracy, whereas uneven illumination can make fruit regions difficult to distinguish from the background (Xuan et al. 2020; Fu et al. 2024). Improving the robustness of object detection models under these conditions is necessary before image-based methods can be reliably applied to fruit-load surveys (Hu et al. 2023; Gwak et al. 2024; Yang et al. 2024).

Apple training systems influence the canopy shape, branch arrangement, within-canopy light distribution, and spatial clustering of fruits (Ferree and Warrington 2003; Robinson 2007). Within-canopy shading and high crop loads can influence fruit visibility in tall-spindle orchards (Sagong and Yoon 2015; Yang et al. 2015; Kim et al. 2023). Multi-leader systems, including bi-leader systems, have recently been introduced to improve light distribution, canopy accessibility, and compatibility with mechanized orchard operations (Park et al. 2022; Park et al. 2024). Differences in the canopy structure and fruit density may alter the frequency and severity of occlusions encountered by an object-detection model. Nevertheless, studies comparing the detection performance outcomes across image datasets obtained from contrasting apple training systems remain limited.

Fruit coloration presents an additional challenge for image-based orchard surveys. Red coloration is an important factor in apple appearance and marketability and is strongly affected by the within-canopy light environment. Fruits located in poorly illuminated canopy positions may remain insufficiently colored at harvest (Lim et al. 2019; Moon et al. 2022; Park et al. 2024). Identifying these fruits separately from red fruits would allow an image-based survey to describe fruit coloring status in addition to fruit number. However, insufficiently colored fruits have lower chromatic contrast with leaves and other background vegetation compared to red fruits. The similarity between adjacent coloration stages can also increase classification errors in fruit maturity models (Lee et al. 2024). These challenges should be considered when developing an image-based model for orchard surveys. Such a model should be able to detect apples that are partially obscured by leaves or branches and distinguish red fruits from insufficiently colored fruits.

The objectives of this study were to (1) compare the numerical detection performance of the nano, medium, and large variants of YOLOv11 and RF-DETR using the results from three training runs for each model–dataset combination, (2) evaluate class-specific performance outcomes for red and insufficiently colored fruits, and (3) evaluate the effect of removing the coloration distinction using separately trained one-class models and a supplementary analysis in which the two classes in the existing confusion matrices were collapsed without retraining.

Materials and Methods

Plant materials

Images were acquired in 2024 and 2025 from orchards representing the different training systems (Table 1 and Fig. 1). The apple cultivars were “Hongro” and “Fuji.” All images were collected within four days before the respective harvests, between 14:00 and 17:00, using a mobile phone (Galaxy Z Flip 3; Samsung Electronics, Korea) which is convenient to use in the field. The camera was positioned approximately 1.5 m from the trunk, and all images had a fixed resolution of 1,638 × 4,000 pixels. The bi-leader and tall-spindle datasets contained 237 and 184 source images, respectively. One image was collected per tree, and the dataset was split such that no tree was represented in more than one of the training, validation, or test subsets. Orchard-level blocking was not applied; therefore, different trees from the same orchard may have been present in the training and test subsets.

Table 1.

Orchard locations, geographic coordinates, cultivars, training systems, tree ages, row orientations, and image acquisition dates

No. Location Latitude
(°N)
Longitude
(°E)
Cultivar Training
system
Tree age
(yr)
Row
orientation
Data
acquisition
1 Dansan-myeon, Yeongju-si 36.967 128.570 Hongro Bi-leader 9 NW-SE 2024-09-03
2 Dansan-myeon, Yeongju-si 36.931 128.607 Hongro Bi-leader 8 N-S 2024-09-03
3 Punggi-eup, Yeongju-si 36.909 128.516 Hongro Bi-leader 8 NW-SE 2024-09-03
4 Goje-myeon, Geochang-gun 35.881 127.868 Hongro Bi-leader 3 NE-SW 2024-09-09
5 Cheongtong-myeon, Yeongcheon-si 36.022 128.821 Fuji Bi-leader 3 NW-SE 2024-09-22
6 Mulya-myeon, Bonghwa-gun 36.972 128.740 Fuji Bi-leader 3 N-S 2024-11-05
7 Goje-myeon, Geochang-gun 35.880 127.869 Fuji Bi-leader 3 NE-SW 2024-11-06
8 Gigye-myeon, Pohang-si 36.062 129.222 Fuji Bi-leader 4 NW-SE 2024-11-09
9 Hyeondong-myeon, Cheongsong-gun 36.234 129.023 Hongro Tall-spindle 14 N-S 2025-09-08
10 Bukhu-myeon, Andong-si 36.668 128.634 Hongro Tall-spindle 9 NE-SW 2025-09-11
11 Bukhu-myeon, Andong-si 36.668 128.634 Fuji Tall-spindle 9 NE-SW 2025-10-28

Coordinates are approximate decimal-degree locations derived from the provided parcel addresses.

https://cdn.apub.kr/journalsite/sites/kshs/2026-044-00/N020260056/images/HST_20260056_F1.jpg
Fig. 1.

Examples of orchard images used for model training: (A, B) bi-leader orchards and (C, D) tall-spindle orchards.

Data annotation

Images were annotated on the Roboflow platform using two object classes: red and insufficiently colored fruits. All images were annotated by a single annotator. A fruit was assigned to the red class when at least 70% of its visible surface was red. Otherwise, it was assigned to the insufficiently colored class. The 70% cutoff was based on the Korean apple grading standard for “Hongro” (NAQS 2023) and was applied uniformly to both cultivars as an operational annotation threshold, not as a cultivar-specific commercial grade. For partially occluded fruits, classification was based only on the visible portion. Fruits near the cutoff were assigned using the same rule (red surface ≥70% or <70%); no separate ambiguous class was used. Fruits that could not be reliably identified at the available image resolution were excluded from annotation. When preparing the original dataset, prior to augmentation, the bi-leader image dataset was divided into 166 training, 47 validation, and 24 test images, and the tall-spindle image dataset was divided into 101 training, 39 validation, and 44 test images. Only the training subsets were augmented fivefold. This process produced working partitions of 830 training, 47 validation, and 24 test images for the bi-leader image dataset and 505 training, 39 validation, and 44 test images for the tall-spindle image dataset.

The bi-leader image dataset contained 22,053 red fruit instances and 1,072 insufficiently colored fruit instances, whereas the tall-spindle image dataset contained 8,061 red fruit instances and 709 insufficiently colored fruit instances. Insufficiently colored fruits accounted for 4.6% and 8.1% of the annotated fruit instances in the bi-leader and tall-spindle image datasets, respectively.

Object detection algorithms

Two object detection models were evaluated: YOLOv11, a one-stage convolutional neural network detector provided through Ultralytics, and RF-DETR, an end-to-end real-time detection transformer provided through Roboflow. YOLOv11 emphasizes low-latency inference and uses nonmaximum suppression (NMS), whereas RF-DETR uses a query-based transformer framework without NMS (Khanam and Hussain 2024; Robinson et al. 2025). Platform-designated nano (N), medium (M), and large (L) model variants of YOLOv11 and RF-DETR were evaluated for each image dataset.

Model training

The models were trained on the Roboflow platform. The original images (1,638 × 4,000 pixels) were resized to 1,024 × 1,024 pixels. The training subsets were augmented fivefold using horizontal and vertical flipping, rotation (±15°), grayscale transformation (15%), brightness adjustment (±15%), blur (1.05 px), and noise (1.05%), as summarized in Table 2; validation and test images were not augmented. Grayscale augmentation was included to improve the robustness to variable smartphone shooting conditions, as similarly applied to smartphone-acquired apple images by Yan et al. (2025). Three training runs were available for each of the six two-class model variants in each image dataset, resulting in 36 evaluated runs. Three runs were also evaluated for each one-class medium model–dataset combination, yielding 12 one-class runs.

Table 2.

Image preparation and augmentation settings recorded for the evaluated datasets. augmentation was applied only to the training subsets

Augmentation Parameters Description
Resize 1,024 × 1,024 Standardized input size
Augmentation multiplier 5× (training subset only) Fivefold randomized augmentation of training images
Flip Horizontal, Vertical Increase resilience to orientation changes
Rotation ±15° Increase robustness to camera angle variations
Grayscale 15% Random grayscale conversion
Brightness ±15% Increase resilience to lighting variations
Blur 1.05 px Increase robustness to defocus
Noise 1.05% Increase resilience to artifacts and sensor noise

Training was performed using Roboflow-managed settings. Specific model release versions, pretrained-weight configurations, run-specific batch sizes, random seeds, optimizer settings, learning rates, and software versions were not disclosed in the accessible Roboflow platform interface or training records. The last training epochs recorded for all 48 runs are listed in Supplementary Table S1.

Two-class and one-class model configurations

Two class configurations were evaluated. In the two-class configuration, red and insufficiently colored fruits were retained as separate labels. The nano, medium, and large variants of YOLOv11 and RF-DETR were evaluated for each image dataset. Platform labels Apple and Green apple were mapped to red and insufficiently colored fruits, respectively. In the one-class configuration, both labels were merged into a single apple class before training. Only the medium variants were evaluated for this configuration. Three training runs were evaluated for each one-class model–dataset combination. The supplementary confusion-matrix analysis described below used the existing two-class evaluations and did not retrain the models.

Model evaluation

The model performance was evaluated on test subsets using the Roboflow Industry Standard setting. The precision, recall, and the F1-score were extracted at the test optimal confidence for each run; these values represent test-selected operating points rather than thresholds selected on the validation subset or pre-specified deployment thresholds. The run-specific thresholds for both two-class and one-class evaluations are listed in Supplementary Table S2. Evaluation metrics consisted of class-specific average precision (AP) at an intersection-over-union (IoU) threshold of 0.50 (AP@50), mean AP across classes (mAP@50), and mAP@50–95 averaged over IoU thresholds from 0.50 to 0.95 in increments of 0.05. For detection matching, a true positive requires the correct class label and sufficient overlap with a reference box. Unmatched predictions and reference boxes are false positives and false negatives, respectively. Metrics for both class configurations were summarized as the arithmetic mean ± sample standard deviation (SD, denominator n − 1) across three training runs for each model–dataset combination. The comparisons were descriptive, and no inferential significance tests were performed.

Precision=TPTP+FP

Recall=TPTP+FN

mAP=∑i=1kAPik

F1-score=2×Precision×RecallPrecision+Recall

Here, TP, FP, FN, and k denote the true positives, false positives, false negatives, and the number of classes, respectively.

Precision is the proportion of predicted objects that are true positives, whereas recall is the proportion of reference objects that are detected. The F1-score is the harmonic mean of precision and recall. AP is the area under the precision–recall curve for a class, and mAP is the mean AP across classes. Additionally, mAP@50-95 is the average of the AP over the IoU thresholds from 0.50 to 0.95. For a one-class model, the mAP is numerically identical to the AP because only one class is present. For the two-class models, the precision, recall, and the F1-score were calculated for each class and then macro-averaged across the red and insufficiently colored classes. Thus, the reported macro-F1 is the arithmetic mean of the two class-specific F1-scores and is not necessarily equal to the harmonic mean of the reported macro-precision and macro-recall values.

For supplementary analysis, complete test confusion matrices were available at the displayed optimal confidence level for two additional runs of each medium model in each dataset (eight evaluations). With the existing prediction-to-reference assignments fixed, the two fruit classes were collapsed into apple. The four fruit-to-fruit cells were summed as TP, the background-to-fruit cells as FP, and the fruit-to-background cells as FN. The micro-precision, micro-recall, and micro-F1 were recalculated from these totals. For a paired comparison, two-class micro-F1 was calculated from the diagonal fruit cells and the corresponding FP and FN counts in the same matrix. This operation changed label accounting only; it did not modify boxes, scores, matching assignments, or post-processing. Original run matrices that required reevaluation were excluded. Matrix exports did not specify the matching IoU, and this analysis did not recalculate the AP.

Results and Discussion

Performance comparison between YOLOv11 and RF-DETR

Across the three training runs, RF-DETR yielded numerically higher mean mAP@50 values than YOLOv11 for all model sizes in both image datasets (Table 3). In the bi-leader dataset, the mean mAP@50 ranged from 81.25% to 82.23% for RF-DETR and from 71.26% to 72.81% for YOLOv11. The corresponding ranges in the tall-spindle dataset were 82.83–84.28% and 74.99–77.72%. Mean F1-scores were 76.70–77.43% for RF-DETR and 73.00–75.47% for YOLOv11 in the bi-leader dataset, compared with 78.47–79.73% and 74.23–77.07%, respectively, in the tall-spindle dataset.

Table 3.

Two-class test performance across three training runs for each model–dataset combination

Dataset Model Precision
(%)
Recall
(%)
F1
(%)
mAP@50
(%)
mAP@50–95
(%)
Bi-leader YOLOv11-N 76.67 ± 2.48 69.73 ± 1.67 73.00 ± 2.08 72.34 ± 3.02 48.23 ± 2.18
Bi-leader YOLOv11-M 82.70 ± 2.60 70.00 ± 0.35 75.47 ± 1.44 72.81 ± 2.38 49.62 ± 1.69
Bi-leader YOLOv11-L 77.57 ± 1.27 71.13 ± 1.50 73.90 ± 1.21 71.26 ± 2.53 47.27 ± 1.22
Bi-leader RF-DETR-N 77.57 ± 0.46 76.03 ± 1.15 76.77 ± 0.32 81.25 ± 0.31 54.18 ± 0.55
Bi-leader RF-DETR-M 79.07 ± 3.68 74.80 ± 4.41 76.70 ± 1.68 82.22 ± 1.41 54.70 ± 0.49
Bi-leader RF-DETR-L 77.97 ± 4.63 77.50 ± 4.65 77.43 ± 0.42 82.23 ± 1.30 54.99 ± 0.51
Tall-spindle YOLOv11-N 80.47 ± 1.50 69.90 ± 2.42 74.23 ± 2.31 74.99 ± 0.80 40.82 ± 0.27
Tall-spindle YOLOv11-M 83.40 ± 1.21 69.93 ± 3.00 75.10 ± 3.12 75.99 ± 3.19 43.17 ± 2.60
Tall-spindle YOLOv11-L 78.83 ± 0.06 76.43 ± 1.44 77.07 ± 0.98 77.72 ± 0.56 44.20 ± 0.90
Tall-spindle RF-DETR-N 83.13 ± 3.89 75.90 ± 1.85 79.07 ± 0.64 83.57 ± 0.83 47.71 ± 0.46
Tall-spindle RF-DETR-M 82.03 ± 1.62 78.20 ± 0.26 79.73 ± 0.49 84.28 ± 1.21 48.33 ± 0.93
Tall-spindle RF-DETR-L 82.27 ± 0.23 75.37 ± 1.10 78.47 ± 0.67 82.83 ± 0.77 47.57 ± 1.08

Values are the mean ± sample SD (n = 3), in percent. N, Nano; M, Medium; L, Large. Precision, recall, and F1 are the platform-reported class-macro metrics at each run’s test optimal confidence. Comparisons are descriptive.

Increasing the model size did not produce a consistent increase in the mean mAP@50. The highest YOLOv11 values were found for the medium variant in the bi-leader dataset (72.81 ± 2.38%) and the large variant in the tall-spindle dataset (77.72 ± 0.56%). For RF-DETR, the medium and large variants had nearly identical means in the bi-leader dataset (82.22 ± 1.41% and 82.23 ± 1.30%), whereas medium had the highest mean in the tall-spindle dataset (84.28 ± 1.21%).

Previous studies have reported stronger apple-detection performance under different acquisition and classification conditions. Sekharamantry et al. (2023) reported an F1-score of approximately 98% and an mAP@0.5 of 91.25% using images acquired at 30–60 cm, whereas the present images were acquired at approximately 1.5 m from the trunk to capture broader canopy scenes. Zhao et al. (2023) reported an overall F1-score of 91.8% for mature and immature apple detection, which decreased to 88.7% in wide-field images containing more than 30 apples. Johanson et al. (2024) identified a small relative apple size as a major challenge in orchard detection and quantified the influence of this metric on detector performance outcomes. Zhang et al. (2026) similarly reported increased missed detections under medium-to-long-range views as fruit targets became smaller. In the present study, the bi-leader and tall-spindle datasets contained approximately 98 and 48 fruits per image, respectively, and the classes were defined by fruit coloration rather than maturity stage.

Other studies also show that the imaging distance, relative fruit size, and occlusion can affect apple detection. Gao et al. (2020) used a Kinect V2 sensor placed 0.5 m from the canopy wall and reported a mAP rate of 87.9%. Sun et al. (2022) reported AP values of 47.0%, 68.1%, and 87.5% correspondingly for small, medium, and large fruit targets. Ji et al. (2022) also reported better detection of small fruit targets when the input image size increased from 416 × 416 to 640 × 640 pixels. Gao et al. (2020) reported AP rates of 90.9% for fruits without occlusion, and 84.8% for fruits occluded by other fruit. In this study, images were taken from a distance of about 1.5 m using a mobile phone and included broad canopy scenes. Therefore, the detection performance differences between previous studies and this study may be due to the relative size and overlap of fruits, which vary depending on the imaging conditions. Relatively small fruits and overlapping fruits in the broad canopy images may have affected the detection performance in this study.

Detection performance in the bi-leader and tall-spindle image datasets

The between-dataset pattern depended on the model and evaluation metrics (Table 3). Mean mAP@50 was higher in the tall-spindle dataset for all six variants, whereas the mean mAP@50–95 was higher in the bi-leader dataset for all six. For YOLOv11-M, mAP@50 was 72.81 ± 2.38% in the bi-leader dataset and 75.99 ± 3.19% in the tall-spindle dataset; RF-DETR-M yielded results of 82.22 ± 1.41% and 84.28 ± 1.21%, respectively. Conversely, for mAP@50–95 the outcomes were 49.62 ± 1.69% versus 43.17 ± 2.60% for YOLOv11-M and 54.70 ± 0.49% versus 48.33 ± 0.93% for RF-DETR-M. The F1 pattern was not uniform: YOLOv11-M had a slightly higher mean in the bi-leader dataset, whereas the other five variants had higher means in the tall-spindle dataset.

The bi-leader images contained an average of 98 annotated fruits per image, compared with 48 annotated fruits in the tall-spindle images. This higher fruit density may have increased interfruit overlap and partial occlusion, which can contribute to missed detections and lower recall (Chu et al. 2023; Ma et al. 2025). The mAP@50-95 averages the AP over IoU thresholds from 0.50 to 0.95 and therefore represents detection performance under both lenient and strict box-overlap criteria. The numerically higher mAP@50–95 in the bi-leader dataset indicates a higher average precision across the evaluated IoU thresholds.

Detection performance for red and insufficiently colored fruit

Class-specific AP@50 was lower for insufficiently colored fruits than for red fruits across all model variants and both datasets (Table 4). Based on the three-run means, the between-class AP@50 gap in the bi-leader dataset was 30.47–34.86 percentage points for YOLOv11 and 19.32–20.20 percentage points for RF-DETR. The corresponding gaps in the tall-spindle dataset were 14.94–18.22 and 6.94–9.63 percentage points. For the insufficiently colored class, RF-DETR achieved mean AP@50 rates of 71.15–72.56% in the bi-leader dataset and 78.02–80.57% in the tall-spindle dataset, compared with 53.83–57.57% and 65.88–70.25% for YOLOv11. RF-DETR also had higher mean AP@50 for insufficiently colored fruit in both datasets.

Table 4.

Class-specific test average precision across three training runs for each model–dataset combination

Model Metric
(%)
Bi-leader
Red fruit
Bi-leader
Insufficiently
colored fruit
Tall-spindle
Red fruit
Tall-spindle
Insufficiently
colored fruit
YOLOv11-N AP@50 88.57 ± 0.67 56.11 ± 5.37 84.10 ± 1.81 65.88 ± 3.40
YOLOv11-N AP@50–95 53.97 ± 0.54 42.50 ± 3.83 45.25 ± 0.35 36.39 ± 0.88
YOLOv11-M AP@50 88.04 ± 2.45 57.57 ± 2.31 84.74 ± 0.86 67.25 ± 7.24
YOLOv11-M AP@50–95 54.70 ± 1.69 44.55 ± 1.70 47.18 ± 0.74 39.15 ± 4.46
YOLOv11-L AP@50 88.69 ± 2.43 53.83 ± 2.63 85.19 ± 0.36 70.25 ± 0.76
YOLOv11-L AP@50–95 54.37 ± 1.07 40.18 ± 1.36 47.99 ± 2.97 40.40 ± 1.17
RF-DETR-N AP@50 91.34 ± 0.76 71.15 ± 0.19 87.04 ± 0.86 80.10 ± 0.86
RF-DETR-N AP@50–95 55.20 ± 0.27 53.17 ± 0.86 49.63 ± 1.23 45.79 ± 0.45
RF-DETR-M AP@50 91.88 ± 0.42 72.56 ± 2.46 87.99 ± 0.70 80.57 ± 1.82
RF-DETR-M AP@50–95 55.19 ± 0.59 54.22 ± 1.49 50.92 ± 2.00 45.74 ± 2.14
RF-DETR-L AP@50 91.94 ± 0.24 72.52 ± 2.37 87.65 ± 0.35 78.02 ± 1.74
RF-DETR-L AP@50–95 55.80 ± 0.38 54.17 ± 1.15 50.56 ± 1.18 44.58 ± 1.86

Values are the mean ± sample SD (n = 3), in percent. N, Nano; M, Medium; L, Large. The two class-specific AP values were averaged within each run to obtain the corresponding mAP in Table 3.

Insufficiently colored fruits can be difficult to distinguish from foliage owing to low chromatic contrast, whereas leaves, branches, and adjacent fruits obscure object boundaries. Studies targeting immature or green fruits in dense canopies have explicitly addressed these visibility challenges (Lu et al. 2022; Wang et al. 2024), and occlusion-aware apple detection has been investigated in clustered orchards (Chu et al. 2023; Fu et al. 2024). In this study, insufficiently colored fruits represented only 4.6% of bi-leader instances and 8.1% of the tall-spindle instances. The larger AP gap in the bi-leader dataset occurred along with a lower minority class proportion and greater average fruit density. Separate effects of class imbalance and fruit density were not quantified.

Another methodological consideration is that grayscale augmentation removed color information from a portion of the training images while retaining the original class labels. The effect of grayscale augmentation on coloration discrimination was not evaluated separately, and its contribution to the overall model performance could not be isolated.

Detection performance under one-class and two-class configurations

Across the three training runs, the separately trained one-class medium models yielded mean mAP@50 values of 89.48 ± 0.85% and 91.73 ± 0.65% for YOLOv11 and RF-DETR, respectively, in the bi-leader dataset, and 86.83 ± 0.06% and 89.36 ± 0.41% in the tall-spindle dataset (Table 5). Mean F1-scores were correspondingly 86.80 ± 0.69% and 87.33 ± 0.45% in the bi-leader dataset and 83.47 ± 0.23% and 84.50 ± 0.36% in the tall-spindle dataset. RF-DETR also yielded numerically higher mean mAP@50 rates than YOLOv11 for both datasets in a one-class configuration. However, at mAP@50–95, the pattern was less consistent: the bi-leader one-class models yielded nearly identical means for YOLOv11 and RF-DETR (55.89% and 55.84%, respectively), whereas RF-DETR yielded a numerically higher mean than YOLOv11 in the tall-spindle dataset (51.41% vs. 50.32%). The one-class mAP@50 means were numerically higher than the corresponding two-class means of 72.81%, 82.22%, 75.99%, and 84.28% (Table 3).

Table 5.

One-class test performance across three training runs for the medium models

Image dataset Model Precision
(%)
Recall
(%)
F1-score
(%)
mAP@50
(%)
mAP@50-95
(%)
Bi-leader YOLOv11 88.77 ± 2.14 84.90 ± 0.69 86.80 ± 0.69 89.48 ± 0.85 55.89 ± 0.60
RF-DETR 89.00 ± 0.72 85.67 ± 1.31 87.33 ± 0.45 91.73 ± 0.65 55.84 ± 0.18
Tall-spindle YOLOv11 84.67 ± 2.31 82.33 ± 1.79 83.47 ± 0.23 86.83 ± 0.06 50.32 ± 1.54
RF-DETR 84.40 ± 0.87 84.57 ± 0.93 84.50 ± 0.36 89.36 ± 0.41 51.41 ± 0.09

Values are the mean ± sample SD (n = 3), in percent. The apple class combines red and insufficiently colored fruits. Precision, recall, and F1 are the platform-reported values at each run’s test optimal confidence.

The supplementary matrix-collapse analysis conducted in this study examined the effect of removing coloration distinctions from existing evaluations without retraining (Supplementary Table S3). In the bi-leader dataset, 33 fruit-to-fruit color errors per YOLOv11-M evaluation and 25 per RF-DETR-M evaluation were reclassified as correct for apple detection. Micro-F1 increased from 85.57% to 87.07% for both YOLOv11-M runs and from 84.74% to 85.92% and 86.39% to 87.47% for RF-DETR-M. In the tall-spindle dataset, the corresponding numbers were 21 color errors for YOLOv11-M and 28 for RF-DETR-M. Micro-F1 increased from 79.82% to 81.20% for both YOLOv11-M runs and from 80.96% to 82.79% and 81.89% to 83.73% for RF-DETR-M. Across the eight evaluations, the removal of the coloration requirement increased micro-F1 by 1.07–1.84 percentage points.

The matrix-collapse analysis showed that some detections were correct at the fruit level but incorrect in terms of the coloration class. However, false-positive predictions and missed fruits remained after the classes were merged. The bi-leader medium models had 128–332 false positives and 253–470 missed fruit per evaluation, whereas the tall-spindle models had 258–293 false positives and 237–278 missed fruit. Thus, the increase in micro-F1 reflected only the removal of coloration-class errors from the existing evaluations. Because the original prediction–reference matches and run-specific test optimal confidence levels were retained, this analysis did not involve recalculating the AP and was not equivalent to retraining a one-class model. The micro-F1 values in Supplementary Table S3 also differ from the macro-F1 values in Table 3, which assign equal weights to the two coloration classes.

Conclusions

Across three training runs per two-class model–dataset combination, RF-DETR yielded numerically higher mean mAP@50 rates than YOLOv11 in both orchard datasets. Insufficiently colored fruits showed a lower class-specific AP outcome than red fruits, and the between-class gap was larger in the bi-leader dataset. Collapsing the two coloration classes in eight existing medium-model confusion matrices increased micro-F1 by 1.07–1.84 percentage points without retraining. Separately trained one-class medium models also showed higher mean mAP@50 rates than the corresponding two-class models, although this comparison reflected both the change in class definition and separate model training.

One-class models may be preferable when only the total fruit number is required. The two-class models additionally provide information pertaining to coloration status. RF-DETR consistently achieved higher mean mAP@50 rates than YOLOv11 in both datasets, supporting the further evaluation of this model in orchard surveys. The present study used a limited number of orchard images collected in 2024 and 2025. Future studies should evaluate the models using larger and more diverse image datasets collected from additional orchards and seasons.

Supplementary Material

Supplementary materials are available at Horticultural Science and Technology website (https://www.hst-j.org).

  • Supplementary Table S1. Last recorded training epochs across three runs for each model–dataset and class configuration

    HORT_20260056_Table_S1.pdf
  • Supplementary Table S2. Test optimal confidence thresholds used for the two-class and one-class performance summaries

    HORT_20260056_Table_S2.pdf
  • Supplementary Table S3. Matrix-based class collapse without retraining in the additional medium-model evaluations

    HORT_20260056_Table_S3.pdf

Acknowledgements

This work was supported by the 2026 Research Fund of Gyeongkuk National University.

References

1

Chu P, Li Z, Zhang K, Chen D, Lammers K, Lu R (2023) O2RNet: Occluder-occludee relational network for robust apple detection in clustered orchard environments. Smart Agric Technol 5:100284. https://doi.org/10.1016/j.atech.2023.100284

10.1016/j.atech.2023.100284
2

Dalhaus T, Schlenker W, Blanke MM, Bravin E, Finger R (2020) The effects of extreme weather on apple quality. Sci Rep 10:7919. https://doi.org/10.1038/s41598-020-64806-7

10.1038/s41598-020-64806-732404968PMC7220945
3

Ferree DC, Warrington IJ (eds) (2003) Apples: Botany, Production and Uses. CABI Publishing, Wallingford, UK

10.1079/9780851995922.0000
4

Fu H, Guo Z, Feng Q, Xie F, Zuo Y, Li T (2024) MSOAR-YOLOv10: Multi-scale occluded apple detection for enhanced harvest robotics. Horticulturae 10:1246. https://doi.org/10.3390/horticulturae10121246

10.3390/horticulturae10121246
5

Gao F, Fu L, Zhang X, Majeed Y, Li R, Karkee M, Zhang Q (2020) Multi-class fruit-on-plant detection for apple in SNAP system using Faster R-CNN. Comput Electron Agric 176:105634. https://doi.org/10.1016/j.compag.2020.105634

10.1016/j.compag.2020.105634
6

Gwak HJ, Jeong YJ, Chun IJ, Lee CH (2024) Estimation of fruit number of apple tree based on YOLOv5 and regression model. Journal of IKEEE 28:150-157. https://doi.org/10.7471/ikeee.2024.28.2.150

10.7471/ikeee.2024.28.2.150
7

Häni N, Roy P, Isler V (2020) MinneApple: A benchmark dataset for apple detection and segmentation. IEEE Robot Autom Lett 5:852-858. https://doi.org/10.1109/LRA.2020.2965061

10.1109/LRA.2020.2965061
8

Hu J, Fan C, Wang Z, Ruan J, Wu S (2023) Fruit detection and counting in apple orchards based on improved YOLOv7 and multi-object tracking methods. Sensors 23:5903. https://doi.org/10.3390/s23135903

10.3390/s2313590337447752PMC10347148
9

Ji W, Pan Y, Xu B, Wang J (2022) A real-time apple targets detection method for picking robot based on ShufflenetV2-YOLOX. Agriculture 12:856. https://doi.org/10.3390/agriculture12060856

10.3390/agriculture12060856
10

Johanson R, Wilms C, Johannsen O, Frintrop S (2024) S3AD: Semi-supervised small apple detection in orchard environments. In: Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pp 7076-7085. https://doi.org/10.1109/WACV57701.2024.00692

10.1109/WACV57701.2024.00692
11

Khanam R, Hussain M (2024) YOLOv11: An overview of the key architectural enhancements. arXiv preprint arXiv:2410.17725. https://doi.org/10.48550/arXiv.2410.17725

10.48550/arXiv.2410.17725
12

Kim CS, Choi BH, Jung YJ, Yoon TM (2023) Comparison of light utilization efficiency in terms of the planting distance, orientation, and tree height for a high-density apple orchard. Hortic Sci Technol 41:260-270. https://doi.org/10.7235/HORT.20230024

10.7235/HORT.20230024
13

Korean Rural Economic Institute (KREI) (2024) Major fruit production expected to increase compared with the previous year. Agricultural Outlook Center, Naju, Korea. https://aglook.krei.re.kr/upload/observeFiles/cbafcfa1163c496b802951521e97bd04.pdf. Accessed 27 July 2026

14

Lee SJ, Shin MH, Jayasooriya LSH, Wijethunga WMUD, Lee SK, Cho JG, Jang SH, Cho BK, Kim JG (2024) Prediction of fruit maturity of ‘Mihwang’ peach using deep learning. Hortic Sci Technol 42:80-93. https://doi.org/10.7235/HORT.20240007

10.7235/HORT.20240007
15

Lim HK, Shin H, Son IC, Oh Y, Kim K, Han H, Oh S, Kim D (2019) Defoliation and fruit coloration in ‘Fuji’/M.9 apple affected by Cu-EDTA and Fe-EDTA foliar spray. Hortic Sci Technol 37:448-454. https://doi.org/10.7235/HORT.20190045

10.7235/HORT.20190045
16

Lu S, Chen W, Zhang X, Karkee M (2022) Canopy-attention-YOLOv4-based immature/mature apple fruit detection on dense-foliage tree architectures for early crop load estimation. Comput Electron Agric 193:106696. https://doi.org/10.1016/j.compag.2022.106696

10.1016/j.compag.2022.106696
17

Ma N, Sun Y, Li C, Liu Z, Song H (2025) AHG-YOLO: Multi-category detection for occluded pear fruits in complex orchard scenes. Front Plant Sci 16:1580325. https://doi.org/10.3389/fpls.2025.1580325

10.3389/fpls.2025.158032540487208PMC12141327
18

Maheswari P, Raja P, Apolo-Apolo OE, Pérez-Ruiz M (2021) Intelligent fruit yield estimation for orchards using deep learning based semantic segmentation techniques—A review. Front Plant Sci 12:684328. https://doi.org/10.3389/fpls.2021.684328

10.3389/fpls.2021.68432834249054PMC8267528
19

Meena N, Aggarwal N, Joshi S, Gupta S (2014) Development of detection, counting and yield estimation algorithm for agricultural products. International Journal of Engineering Research & Technology 3:590-595

20

Ministry of Agriculture, Food and Rural Affairs (MAFRA) (2024) Ensuring affordable domestic fruit: Stable production, efficient distribution, and diverse consumer choice. MAFRA, Sejong, Korea. https://www.mafra.go.kr/bbs/home/792/569930/artclView.do. Accessed 27 July 2026

21

Moon YJ, Kang IK, Moon BW (2022) Fruit quality in ‘Hongro’ apple affected by porous film mulching and K₂SO₄ foliar spray. Hortic Sci Technol 40:199-209. https://doi.org/10.7235/HORT.20220019

10.7235/HORT.20220019
22

National Agricultural Products Quality Management Service (NAQS) (2023) Standard specifications for agricultural products (NAQS Notification No. 2023-12). Korean Law Information Center. https://www.law.go.kr/%ED%96%89%EC%A0%95%EA%B7%9C%EC%B9%99/%EB%86%8D%EC%82%B0%EB%AC%BC%ED%91%9C%EC%A4%80%EA%B7%9C%EA%B2%A9/. Accessed 20 November 2025

23

Park IH, Han SG, Hong WJ, Lee JS, Hong NK, Yoon TM (2022) Planting density and application of BA for the production of well-feathered bi-axis apple trees. Hortic Sci Technol 40:504-512. https://doi.org/10.7235/HORT.20220045

10.7235/HORT.20220045
24

Park IH, Han SG, Kim CS, Jeong YJ, Jeon JH, Yoon TM (2024) Early performance of multi-leader apple training systems in Korea. Hortic Sci Technol 42:104-116. https://doi.org/10.7235/HORT.20240009

10.7235/HORT.20240009
25

Robinson I, Robicheaux P, Popov M, Ramanan D, Peri N (2025) RF-DETR: Neural architecture search for real-time detection transformers. arXiv preprint arXiv:2511.09554

26

Robinson TL (2007) Effects of tree density and tree shape on apple orchard performance. Acta Hortic 732:405-414. https://doi.org/10.17660/ActaHortic.2007.732.61

10.17660/ActaHortic.2007.732.61
27

Sagong DH, Yoon TM (2015) Optimum crop load in different planting densities of adult ‘Fuji’/M.9 apple tree for preventing biennial bearing and stabilizing tree vigor. Hortic Sci Technol 33:1-10. https://doi.org/10.7235/hort.2015.13126

10.7235/hort.2015.13126
28

Sekharamantry PK, Melgani F, Malacarne J (2023) Deep learning-based apple detection with attention module and improved loss function in YOLO. Remote Sens 15:1516. https://doi.org/10.3390/rs15061516

10.3390/rs15061516
29

Statistics Korea (2016) Results of the 2016 production survey of autumn Chinese cabbage and radish, soybeans, apples, and pears. Statistics Korea, Daejeon, Korea. https://www.kostat.go.kr/boardDownload.es?bid=228&list_no=358295&seq=3. Accessed 27 July 2026

30

Statistics Korea (2023) Results of the 2023 production survey of autumn Chinese cabbage and radish, soybeans, apples, and pears. Statistics Korea, Daejeon, Korea. https://www.kostat.go.kr/board.es?act=view&bid=228&list_no=428570. Accessed 27 July 2026

31

Sun M, Xu L, Chen X, Ji Z, Zheng Y, Jia W (2022) BFP Net: Balanced feature pyramid network for small apple detection in complex orchard environment. Plant Phenomics 2022:9892464. https://doi.org/10.34133/2022/9892464

10.34133/2022/989246436320456PMC9595048
32

Syal A, Garg D, Sharma S (2014) Apple fruit detection and counting using computer vision techniques. In: 2014 IEEE International Conference on Computational Intelligence and Computing Research. IEEE, pp 1-6. https://doi.org/10.1109/ICCIC.2014.7238364

10.1109/ICCIC.2014.7238364
33

Tian Y, Yang G, Wang Z, Wang H, Li E, Liang Z (2019) Apple detection during different growth stages in orchards using the improved YOLO-V3 model. Comput Electron Agric 157:417-426. https://doi.org/10.1016/j.compag.2019.01.012

10.1016/j.compag.2019.01.012
34

Wang J, Shang Y, Zheng X, Zhou P, Li S, Wang H (2024) GreenFruitDetector: Lightweight green fruit detector in orchard environment. PLOS ONE 19:e0312164. https://doi.org/10.1371/journal.pone.0312164

10.1371/journal.pone.031216439541312PMC11563454
35

Xuan G, Gao C, Shao Y, Zhang M, Wang Y, Zhong J, Li Q, Peng H (2020) Apple detection in natural environment using deep learning algorithms. IEEE Access 8:216772-216780. https://doi.org/10.1109/ACCESS.2020.3040423

10.1109/ACCESS.2020.3040423
36

Yan Z, Wu Y, Zhao W, Zhang S, Li X (2025) Research on an apple recognition and yield estimation model based on the fusion of improved YOLOv11 and DeepSORT. Agriculture 15:765. https://doi.org/10.3390/agriculture15070765

10.3390/agriculture15070765
37

Yang SJ, Sagong DH, Yoon TM, Song YY, Park MY, Kweon HJ (2015) Vegetative growth, productivity, and fruit quality in tall spindle of ‘Fuji’/M.9 apple trees. Hortic Sci Technol 33:155-165. https://doi.org/10.7235/hort.2015.13190

10.7235/hort.2015.13190
38

Yang X, Zhao W, Wang Y, Yan WQ, Li Y (2024) Lightweight and efficient deep learning models for fruit detection in orchards. Sci Rep 14:26086. https://doi.org/10.1038/s41598-024-76662-w

10.1038/s41598-024-76662-w39477987PMC11525789
39

Zhang X, Mamat S, Liu X, Liu J, Liu R, Wu G, Zhu P, Li H, Ma M, Liu X (2026) MSRRT-DETR: A high-precision apple detection method with strong cross-domain generalization capability in complex orchard scenes. PLOS ONE 21:e0342854. https://doi.org/10.1371/journal.pone.0342854

10.1371/journal.pone.034285441824488PMC12987427
40

Zhao Z, Wang J, Zhao H (2023) Research on apple recognition algorithm in complex orchard environment based on deep learning. Sensors 23:5425. https://doi.org/10.3390/s23125425

10.3390/s2312542537420591PMC10301557
페이지 상단으로 이동하기