Abstract
To analyze differences in deep neural network fruit detection performance of various olive cultivars, three cultivars that are widespread in Croatia were selected: Oblica, Leccino, and Istarska bjelica. For that purpose, a database comprising over 300 images and more than 86,000 manually labeled olive fruits collected from July to November 2025 in a chosen experimental olive grove was created. YOLOv11 was selected as the base architecture for the deep neural network. The deep neural network used was not pre-trained. Four models were trained: one model was trained using all images of all olive cultivars from the image dataset, and three others were trained using only images of selected cultivars. Furthermore, for the purpose of analysis, the images were divided into two groups: images of early-stage fruit and images of late-stage fruit. The results of the analysis, using these models and test images, revealed substantial variations in detection performance across different cultivars. A greater discrepancy was also observed in the detection results for early and late images of Leccino fruits (ΔmAP = 14.69%), whereas this difference was smaller for the other cultivars. Ultimately, based on the analysis conducted, the use of a general model rather than cultivar-specific models is recommended.
1. Introduction
The olive tree (Olea europaea L.) is one of the most widely cultivated crops worldwide, with global consumption of olive oil and table olives steadily increasing and estimated at approximately 6.2 million tons in 2026 [1]. As olive oil is a basic ingredient of the Mediterranean diet, improving the efficiency and sustainability of olive production has become a priority in modern agriculture. Within the broader framework of precision oliviculture, Roma and Catania [2] highlighted the growing importance of remote and proximal sensing technologies, image analysis, and machine learning for monitoring olive groves and supporting site-specific management. These technologies enable more accurate assessment of spatial variability, monitoring of physiological and structural tree characteristics, and reliable yield estimation. For instance, Stateras and Kalivas [3] demonstrated the potential of high-resolution unmanned aerial vehicle (UAV) imagery, multispectral data, and object-based image analysis for characterizing olive tree canopies and developing yield forecasting models. Their results showed that canopy volume, vegetation indices, and terrain slope could be used to estimate olive yield. The authors also emphasized the potential of advanced sensing technologies and automated data analysis for improving the efficiency and sustainability of olive production.
However, moving from canopy-level estimation to direct fruit-level detection is essential for accurate yield assessment, harvest logistics coordination, optimal harvest timing based on fruit maturity [4], disease detection [5], and the development of automated robotic harvesting systems [6].
Over the past 10 to 15 years, classical image processing and computer vision methods, which rely on manually engineered features, have been increasingly replaced by deep learning approaches, leading to substantial improvements in fruit detection performance [7,8].
The first architectures were mostly classic convolutional networks (CNNs) that performed detection in two steps (region proposal and classification). Thus, the first paper using deep learning and R-CNN architecture for sweet pepper detection was published in 2015 [9]. The largest number of related papers was focused on the detection of apples, mangoes and citrus fruits [10,11,12,13,14]. After 2019, single-pass detection (mainly YOLO architecture) has become the dominant approach [15,16], while in recent years the application of transformer deep neural network architectures has also been investigated due to their ability to include a wider context of the image in the detection of a particular object, although the results are still lower than those achieved with YOLO architectures [17,18]. For example, even in earlier works that used deep neural networks, the results of apple and mango detection expressed through the F1-score (the harmonic mean of precision and recall) were above 0.90 [10,14]. Most recent F1-score results are often above 0.95. Zeeshan et al. reported accuracy of 93.8%, precision of 98%, recall of 94.8%, and F1-score of 96.5% for orange detection [19], while Sekharamantry et al. achieved almost perfect apple fruit detection results using a modified YOLO architecture (precision: 0.97, recall: 0.99, and F1-score: 0.98) [20]. Similarly, the Kiwi-YOLO architecture presented in [21] demonstrated outstanding performance in complex environments for kiwifruit recognition, achieving precision, recall, and mean average precision (mAP) of 94.4%, 98.9%, and 97.7%, respectively. Unlike apples or citrus fruits, however, olive fruit detection presents a substantially more challenging computer vision problem due to the small size of the fruit, dense foliage causing pronounced occlusion, variable natural illumination, and strong visual similarity between unripe green olives and surrounding leaves [22,23].
In accordance with the previously mentioned trends, various neural network architectures for olive fruit detection have been intensively researched and applied. In [18], eight neural network architectures were evaluated (3 variants of Faster R-CNN with ResNet-50 backbones, 4 variants of YOLO and one Deformable DETR) while detection results of YOLOv8, Faster R-CNN and RetinaNet were compared in [24]. Despite the inherent visual challenges, the research presented in the papers yielded very good results with respect to standard evaluation metrics [17,24].
However, while recent studies have addressed real-time olive detection and maturity grading using specialized detectors such as Olive-EfficientDet and modified YOLOv11 architectures [22,25], existing datasets and experimental protocols still exhibit critical limitations that hinder practical deployment.
First, there are limitations related to controlled acquisition conditions. Several benchmark studies rely on high-end DSLR cameras mounted on tripods at fixed angles and restricted daytime intervals (e.g., 10:00–17:00) to maximize focus and phenotypic visibility [17,24]. In realistic agricultural workflows, particularly when using standard cameras mounted on commercial UAVs, users cannot afford such time-consuming acquisition protocols, which inevitably introduce motion blur, scale variations, and uneven lighting.
Second, the existing research is constrained by limited cultivar diversity and cross-cultivar generalization. Although a few studies have included multiple olive cultivars [22,26,27], most existing research focuses on a single cultivar or omits cultivar identity altogether. Consequently, little is known about how well a model trained on one cultivar generalizes to others, or whether cultivar-specific models outperform a general multi-cultivar model.
Finally, there are limitations related to the overlooked impact of ripening dynamics. Because olive fruits undergo pronounced changes in size, color, and contrast against the canopy during maturation [28], detection performance can vary considerably across the season [22,25]. Yet, the interaction between cultivar-specific ripening dynamics and object detection accuracy across early and late developmental stages remains insufficiently explored.
To address these gaps, this study investigates deep neural network (DNN)-based olive fruit detection across three widespread cultivars in Croatia—Oblica, Leccino, and Istarska bjelica—selected specifically for their contrasting morphological traits and ripening dynamics [29,30,31,32] (Figure 1). Oblica, the predominant indigenous cultivar accounting for 64% of Croatia’s olive assortment, produces large, spherical fruits (averaging approximately 5 g) that ripen early and transition to dark pigmentation. Leccino, the most widespread introduced cultivar (8.6%), develops vigorous, dense canopies with medium-sized, elliptical fruits that ripen early and uniformly. In contrast, Istarska bjelica develops a moderately vigorous, dense canopy with medium-sized, ovoid fruits (averaging approximately 4 g) that ripen late and retain a light yellow-green coloration even at full maturity [31,32]. These distinct differences in fruit size, shape, canopy density, and seasonal color transitions make these three cultivars an ideal testbed for evaluating how cultivar-specific visual characteristics and ripening stages affect detection performance under real-world UAV imaging conditions.
Figure 1.
Examples of Istarska bjelica (first row), Leccino (second row) and Oblica (third row) fruits at various dates (in the same olive grove). Date format: DD/MM/YYYY.
Therefore, the novelty of this research is as follows: (1) the image dataset was collected at multiple times during fruit growth and the oil accumulation period; (2) a standard camera on a commercial UAV was used; (3) the analysis was conducted for three cultivars that differ in visual characteristics and ripening dynamics.
Specifically, this study aims to answer the following research questions:
- Is there a considerable difference in the detection results of these three cultivars?
- To what extent does the time of recording with respect to the stage of development and ripening of the fruit affect the detection results?
- Are the results achieved by a neural network model trained on multiple olive cultivars better or worse than models trained on only one cultivar?
The answers to these questions can certainly help in defining the future approach to model development, understanding the detection results for the purpose of further planning activities and in the development of commercial applications.
2. Materials and Methods
2.1. Experimental Olive Grove
The experimental olive grove is located in Croatia, Zadar County (Tinj near Benkovac, coordinates: 44°00′24.4″ N 15°29′26.2″ E). The olive grove was planted in 2007 on an area of 12 hectares with various cultivars, including Oblica, Istarska bjelica, Leccino, Ascolana Tenera, Pendolino, Frantoio and Carolea (Figure 2). Planting distance is 6 m between rows and 5 m from tree to tree. Measurements were conducted in the northeastern part of the olive grove, and periodic recordings (10 times from July to November 2025) were conducted on a sample of about two hundred trees. All agrotechnical and elaiotechnical measures are implemented in the plantation.
Figure 2.
Experimental olive grove in Tinj, Croatia.
2.2. Dataset and Image Collection
Images of the olive trees were collected using a DJI Mavic 3 Multispectral UAV (Da-Jiang Innovations, Shenzen, China). This platform features an RGB sensor and five narrow-band sensors (Blue, Green, Red, Red Edge, and Near-infrared), providing both RGB and multispectral images. For the research presented in this paper, multispectral images were not used. The data collection procedure consisted of taking photos (not videos) from a height of about 2 m. The distance from the tree crown was from 1.5 to 2.5 m so that the entire tree could be captured in the picture (Figure 3).
Figure 3.
Example of an image taken with RGB camera on DJI Mavic 3M drone. Distance to the canopy is about 2 m, flight altitude: 2 m.
RGB Camera settings (20 megapixels, 4/3 CMOS sensor with mechanical shutter) were set to automatic mode. One image of the canopy was taken for each tree. As previously stated, the recordings were conducted on ten occasions from July to November 2025. Except for one recording in cloudy weather, all other recordings were conducted in sunny conditions with light wind or no wind. Because no single image can capture the entire tree from this proximity, it is necessary to estimate the total number of olive fruits based on the visible portion of the canopy.
The image dataset used for this work is publicly accessible at https://doi.org/10.5281/zenodo.21976264 (accessed on 24 August 2026) [33].
The final annotation of all olive fruits in the image dataset was done in two stages. In the first stage, object proposals (olives) were generated by applying a general model developed on the dataset presented in [18]. That model uses the same architecture (YOLOv11) but it was trained on a different image dataset—Split Olive Dataset—that consists of 91 images taken with different mobile phone cameras (Samsung S23, Huawei P30, etc.) during the years 2022, 2023, and 2024 at various locations and times of day, mainly around Split, Croatia (including local islands) but also around Kavala, Greece. This dataset is also available online [34].
Following the application of the general model, proposals for detected objects (olives) were obtained in the images. After the first stage, the second stage incorporated manual labeling of each image using the CVAT annotation tool [35]. The images were annotated by eight people. Prior to the actual labeling, detailed written instructions, including examples, were prepared for all annotators, with the aim of minimizing discrepancies in how different individuals applied the labels. To this end, several training sessions were also held, during which the labeling procedure was reviewed and discussed collectively. This step was necessary due to the very nature of the problem. Specifically, images frequently exhibit occlusions, shadows, and motion blur, making it difficult to establish clear boundaries for whether to label a fruit when its presence is uncertain. Furthermore, the decision on the usefulness of a labeled object for the training process can vary depending on the quality of the example being labeled. Since the name of the annotator responsible for labeling each particular image was recorded, a sample of images from each annotator was subsequently selected and reviewed by another annotator in order to identify and correct any potential systematic deviations.
The final dataset contains 316 full resolution images containing 86,790 annotated olives. The train/validation/test split was performed in the following manner: first, 3 images per cultivar were separated for the “early” and 3 for the “late” data acquisition periods, resulting in 18 images set aside as the test set. Subsequently, the remaining 298 images were divided into 268 training and 30 validation images (a 90/10 split) for the “All cultivars” dataset. The same splitting strategy was applied to the remaining cultivar-specific datasets. Tiling was performed only after splitting the dataset to prevent data leakage between the subsets (e.g., all tiles originating from a single image remained within the same set).
Overview of the collected and annotated images with the number of labeled olive fruits per cultivar is given in Table 1.
Table 1.
Olive cultivars and number of images taken on a particular date and annotated olives in collected image database. Note: By November, most of the fruit had already been harvested, so the numbers of images and fruits in the table are lower.
2.3. Image Pre-Processing and YOLOv11 Network Model
Background clutter from sky, soil, and surrounding olive trees and vegetation increases the proportion of irrelevant negative regions in training data. Also, neighboring trees in the background, and their olive fruits, are not necessarily of the same cultivar which is essential for this research. For that reason, depth-based segmentation was done in order to effectively isolate the relevant object (olive tree) from the background in the UAV settings [36].
After discarding parts of the image that are not of interest (Figure 4), the modified images are tiled and fed into the YOLOv11 model [34]. Compared to previous versions of YOLO, the version used has an improved backbone and neck architecture, which enhances feature extraction capabilities for more accurate object detection and complex tasks. Furthermore, YOLOv11 achieves higher mean average precision (mAP) on standard datasets while using fewer parameters than YOLOv8m, making it computationally efficient without compromising accuracy. These findings were confirmed in [18], which compared the results of olive fruit detection obtained using the YOLOv11 architecture with those obtained using the YOLOv8 and YOLOv9 architectures, as well as several other architectures (Faster R-CNN R50 and DETR).
Figure 4.
Background removal using monocular depth estimation (a) input image; (b) depth image; (c) extracted part of the original image.
2.4. Evaluation Metrics
A number of metrics defined below are proposed for quantitative assessment.
Intersection over Union (IoU) is an evaluation metric used in image segmentation models to measure how accurately the predicted object frame overlaps with the actual ground truth frame.
Using the calculated Intersection over Union (IoU) value, each predicted bounding box is classified into one of the following categories:
- -
- True Positive (TP): detection is correct (predicted olive frame matches correctly) if valid IoU ≥ threshold;
- -
- False Positive (FP): the detection is wrong (a frame is provided for the object which is not in the picture, or the intended frame does not match the correct one) if IoU < threshold;
- -
- False Negative (FN): the object (olive fruit) in the image is not detected.
Precision is the proportion of all the model’s positive classifications that are actually positive. It is mathematically defined as:
Precision = TP/(TP + FP).
In this research, TP is the number of olive fruits correctly identified by the algorithm, and FP is the number of instances wrongly proposed by the algorithm as potential olive fruits.
Recall is a proportion of all actual positives that were classified correctly as positives. It is mathematically defined as:
Recall = TP/(TP + FN).
In this research, FN is the number of olive fruits that were not identified by the algorithm.
The mean Average Precision (mAP) is a measure of the accuracy of a model in identifying and classifying objects within an image. It combines precision and recall over different confidence thresholds to give a comprehensive measure of a model’s performance.
where APi is the average precision for the i-th class and N is total number of all classes in the target dataset. mAP@0.5 represents the mean average precision for object detection calculated at an IoU threshold of 0.5 (when the predicted bounding box and the corresponding ground-truth bounding box have an IoU of at least 0.5). Since only one object class of the olive fruit is considered in this work, mAP@0.5 is effectively AP@0.5 of the olive fruit class.
2.5. Experimental Platform
The experiments were conducted on a workstation PC with an AMD Ryzen 9 7900X CPU, an NVIDIA RTX 5080 GPU with 16 GB of VRAM, and 32 GB of RAM. To train the neural networks on the olive fruit detection task, the Ultralytics Python 3.10.5 library was used [37]. All the networks were trained for a maximum of 300 epochs with early stopping enabled and a batch size of 4. The original images were tiled to preserve the native image resolution during training, resulting in 16 tiles of 1320 × 989 pixels per image. The learning rate was set to 0.01, the Stochastic Gradient Descent (SGD) optimizer was used due to the abundance of training examples, and data augmentation was applied to the images to improve generalization. Augmentation parameters included HSV adjustments (hue: 0.015, saturation: 0.7, value: 0.4), translation of 0.1, scaling of 0.5, horizontal flipping with a probability of 0.5, and mosaic augmentation (combining multiple training images into a single composite image).
3. Results
3.1. General vs. Cultivar-Specific Model Comparison
To analyze the impact of adapting the YOLO architecture to a specific cultivar, four models were trained. The first model, “All cultivars,” was trained on images of all cultivars, whereas the “Leccino,” “Oblica,” and “Istarska bjelica” models were trained solely on images of their respective cultivars. The training settings used are described in the previous section. The performance results of the models generated in this way are presented in Table 2 (mAP) and Table 3 (precision and recall).
Table 2.
Mean average precision (mAP) detection results: general (“All cultivars”) vs. cultivar-specific models. The input to the neural network consisted of a set of test images containing either all cultivars (“All cultivars”) or a single cultivar (“Leccino”, “Oblica”, or “Istarska bjelica”), evaluated using each of the four trained models.
Table 3.
Precision (P) and recall (R) detection results: general (“All cultivars”) vs. cultivar-specific models. The input to the neural network consisted of a set of test images containing either all cultivars (“All cultivars”) or a single cultivar (“Leccino”, “Oblica”, or “Istarska bjelica”), evaluated using each of the four trained models.
These tables illustrate how effectively each cultivar was detected by the individual models. For example, the “All cultivars” model, which was trained on images without restrictions on the cultivar, achieved the best overall detection results. The lowest mAP using this model was obtained for images of the Oblica cultivar (0.631), while the mAP for the Istarska bjelica cultivar reached 0.882. Some combinations showed considerably worse performance. For example, when evaluating the model trained on the Leccino cultivar on Oblica test images, the mAP dropped to 0.477, and with the model trained on the Istarska bjelica cultivar, it dropped even further to 0.474.
A similar trend can be observed for the precision and recall values, although notable differences in precision occur on Oblica images when applying the models trained on the Leccino and Istarska bjelica cultivars (0.552 vs. 0.707). In this case as well, the highest precision and recall values were achieved by the model trained on all cultivars (the “All cultivars” model).
To assess the impact of class imbalance, given that annotated instances for Istarska bjelica were substantially more numerous than those for the other cultivars, an additional evaluation of the detection results was conducted. For this analysis, 85 images of Istarska bjelica were randomly excluded from the original training set. A total of 11,406 labeled fruits were retained across the remaining 11 images of Istarska bjelica trees, yielding a balanced training set with an approximately equal number of annotated instances across all three cultivars (Table 4). Subsequently, two new models were trained: the “Istarska bjelica” model and the “All cultivars” model (while the models for Leccino and Oblica remained unchanged). Although the resulting mAP, precision, and recall values were slightly lower, they did not alter the overall conclusions drawn from the evaluation of the original models (Table 5 and Table 6).
Table 4.
Olive cultivars, number of images per model, and annotated olives in a balanced training dataset with a reduced number of Istarska bjelica images.
Table 5.
Mean average precision (mAP) detection results: general (“All cultivars”) vs. cultivar-specific models. The input to the neural network consisted of a set of test images containing either all cultivars (“All cultivars”) or a single cultivar (“Leccino”, “Oblica”, or “Istarska bjelica”), evaluated using each of the four models trained on the balanced dataset.
Table 6.
Precision (P) and recall (R) detection results: general (“All cultivars”) vs. cultivar-specific models. The input to the neural network consisted of a set of test images containing either all cultivars (“All cultivars”) or a single cultivar (“Leccino”, “Oblica”, or “Istarska bjelica”), evaluated using each of the four models trained on the balanced dataset.
Specifically, when evaluating the “All cultivars” model across all three cultivars, mAP, precision, and recall decreased from 0.853 to 0.836, from 0.836 to 0.816, and from 0.762 to 0.755, respectively. For the same model (“All cultivars”), detection performance specifically on Istarska bjelica dropped from 0.882 to 0.861 (mAP), from 0.846 to 0.820 (precision), and from 0.800 to 0.782 (recall).
Similarly, when evaluating the “Istarska bjelica” model across all cultivars, mAP, precision, and recall decreased from 0.784 to 0.735, from 0.809 to 0.797, and from 0.703 to 0.659, respectively. For the same model (“Istarska bjelica”), detection metrics on Istarska bjelica dropped from 0.872 to 0.832 (mAP), from 0.838 to 0.818 (precision), and from 0.789 to 0.754 (recall).
3.2. Early vs. Late Image Acquisition-Time Detection Results
The detection results were also analyzed according to the time of image collection. Specifically, images collected up to October 1st were categorized as “early” images, whereas those collected afterward were categorized as “late” images. In accordance with this division, the detection performance of the selected architecture (YOLOv11) for the observed olive cultivars was analyzed. The obtained results for mAP, Precision and Recall are presented in Table 7 and Table 8. The values reported in these tables correspond to the cultivar-specific models, i.e., detection results obtained on test images of a particular cultivar using the YOLOv11 model trained exclusively on images of that same cultivar. In contrast, the “All cultivars” model was trained on all available images without cultivar restrictions.
Table 7.
Mean average precision (mAP) detection results for cultivar-specific models: early vs. late image acquisition. Only “early” and “late” test images of trees belonging to the respective cultivar used to train each model were evaluated.
Table 8.
Precision (P) and recall (R) detection results for cultivar-specific models: early vs. late image acquisition. Only “early” and “late” test images of trees belonging to the respective cultivar used to train each model were evaluated.
As can be seen from Table 7, the largest difference in mAP values between samples recorded before October 1st and those recorded later was observed for the Leccino cultivar (0.820 vs. 0.715), whereas for the remaining two cultivars, these differences were considerably smaller. The same can be concluded for the Precision and Recall values (Table 8).
The same analysis approach is presented in Table 9 and Table 10, but in this case, detection results are given for the YOLOv11 model that was trained on images of all cultivars from the image dataset (the “All cultivars” model).
Table 9.
Mean average precision (mAP) detection results: early vs. late image acquisition. YOLOv11 model used: “All cultivars”.
Table 10.
Precision (P) and recall (R) detection results on “All cultivars” model—Early vs. late image acquisition. YOLOv11 model used: “All cultivars”.
In this case, the obtained mAP, precision, and recall values are higher—as expected based on the previous analysis, in which the general model performed best—yet a notable difference in detection performance for the Leccino cultivar remains evident. Nevertheless, this difference (Early vs. Late) is reduced (Figure 5). For example, the difference in mAP between early and late images for the “Leccino” model is 0.820 − 0.715 = 0.105, whereas for the “All cultivars” model it decreases to 0.864 − 0.791 = 0.073. Overall, the highest performance is achieved for Istarska bjelica, which can be attributed to its largest share of samples in the training set.
Figure 5.
Comparison of detection performance on images of Leccino trees evaluated using the “Leccino” and “All cultivars” models.
A clearer comparison of these results can be obtained by introducing the relative difference in calculated values between early and late values for mAP, precision and recall (Table 11). The relative difference (Δ%) is calculated using the following expression:
where E is the early value and L is the late value for the observed metrics (mAP, precision, recall).
Δ% = (E − L)/L × 100,
Table 11.
Relative difference (%) for mAP, precision, and recall (early vs. late images).
As shown in Table 11, the greatest deviation across all observed values was recorded for the Leccino cultivar, while the lowest was observed for Istarska bjelica.
4. Discussion
Before discussing the obtained results, it is necessary to address the limitations of this study. The imaging was conducted in a single olive grove over the course of a single season. As can be seen from Table 1—which details the number of images collected and labeled for each imaging session—the distribution of samples is not uniform across all sessions and cultivars. During the observed season, the Oblica cultivar yielded considerably less than expected, resulting in a smaller number of fruits labeled for training purposes. This outcome was anticipated; consequently, continued data acquisition (and labeling) in future seasons will allow for the balancing of labeled fruit counts across cultivars and will certainly enhance the reliability of the analysis. The experiment is ongoing this year as well, with a new, expanded version of the publicly available dataset expected in the third quarter of 2027.
An additional evaluation on a balanced subset of images, conducted to examine the influence of the higher proportion of Istarska bjelica instances in the training set, confirmed that this class imbalance does not substantially affect comparative detection performance across cultivars. In this scenario, slightly lower detection metrics are expected due to the considerably reduced number of training images. Note that the reduced dataset for ‘Istarska bjelica’ contains only 11 randomly selected images. Consequently, the distribution of the remaining samples across capture dates may not reflect an ideal distribution. The extent to which a more uniform distribution across capture dates might affect the final results remains a subject for future analysis, though we do not anticipate any significant changes.
Furthermore, due to their earlier harvest times, the Leccino and Istarska bjelica cultivars generally yield fewer usable images for processing. Consequently, the chosen date for categorizing images into “early” and “late” groups is open to discussion; however, the aim was to examine whether olive fruit detection performance varies based on the developmental stage of the fruits in the orchard (and thus altered visual characteristics), so the specific date selection is not critical in this context.
Although the analysis was conducted by comparing only three olive cultivars, it should be noted that the image dataset used also included 50 images of other cultivars (Ascolana Tenera, Pendolino, Frantoio), which accounted for approximately 8% of the total number of labeled fruits. These cultivars were also included so that some of the trained models could be as general as possible and useful for detecting olive fruits of other cultivars as well.
5. Conclusions
In this work, differences in the DNN-based detection of fruits of different olive cultivars were investigated. For this purpose, three cultivars with differences in visual characteristics and ripening dynamics were selected. Following the preparation of an image dataset collected in an olive grove from fruit growth and maturation until harvest, and the subsequent evaluation of the deep neural network fruit detection results, the answers to the questions that were raised in the introduction section of this paper, and that were the motivation of this research, can be given. First, a substantial difference in detection results was observed among the three cultivars studied. This difference cannot be attributed solely to the unbalanced number of fruit samples for each cultivar in the image dataset used, as the results vary considerably even for cultivars with a comparable number of samples (Leccino and Oblica).
Taking into account the aforementioned limitations of the image dataset used, it is still possible to answer the question: “To what extent does the time of recording with respect to the stage of development and ripening of the fruit affect the detection results?” The conclusion is that notable discrepancies may occur for certain cultivars.
In response to the third question “Are the results achieved by a neural network model trained on multiple olive cultivars better or worse than models trained on only one cultivar?”, it can be said that the general model is recommended for use. Although in some aspects the results of the most represented cultivar in the training image dataset (Istarska bjelica) are slightly better, the difference is negligible. This is the most interesting conclusion because it indicates that a general model trained on several cultivars can be effectively applied in practical applications and that it is not necessary to train models on individual cultivars, which greatly facilitates the implementation and development of commercial applications. Successful fruit detection is a prerequisite for the subsequent steps of this research, which include assessing the maturity of the detected fruit and estimating the total yield.
However, it should be noted that this research was conducted in only one orchard and within a single growing season. To draw definitive conclusions regarding the general applicability and potential commercial use of the proposed approach, further validation is required across a larger number of orchards with varying characteristics and locations, as well as over multiple seasons and under different data acquisition conditions.
Author Contributions
Conceptualization, J.G. and V.P.; methodology, J.G. and V.P.; software, T.S. and J.M.; validation, V.P., F.S. and J.G.; formal analysis, J.G. and V.P.; investigation, J.G., F.S., M.Š. and V.P.; resources, V.P. and J.G.; data curation, J.G., T. S., F.S., M.Š., J.M. and V.P.; writing—original draft preparation, J.G. and V.P.; writing—review and editing, J.G., V.P. and J.M.; visualization, T.S. and V.P.; supervision, J.G. and V.P.; project administration, V.P.; funding acquisition, V.P. All authors have read and agreed to the published version of the manuscript.
Funding
This research was supported by the Croatian Science Foundation under the project number HRZZ IP-2024-05-6393.
Data Availability Statement
The original images used in the study are openly available in the Zenodo.org EU Open Research Repository at https://doi.org/10.5281/zenodo.21976264.
Conflicts of Interest
The authors declare no conflicts of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| RGB | Red, green and blue |
| CNN | Convolutional Neural Network |
| R-CNN | Region-based Convolutional Neural Network |
| YOLO | You Only Look Once |
| mAP | mean Average Precision |
References
- IOC Statistics Dashboard. 2026. Available online: https://www.internationaloliveoil.org/what-we-do/statistics/#datafiles (accessed on 25 November 2026).
- Roma, E.; Catania, P. Precision Oliviculture: Research Topics, Challenges, and Opportunities—A Review. Remote Sens. 2022, 14, 1668. [Google Scholar] [CrossRef] [Scilit]
- Stateras, D.; Kalivas, D. Assessment of Olive Tree Canopy Characteristics and Yield Forecast Model Using High Resolution UAV Imagery. Agriculture 2020, 10, 385. [Google Scholar] [CrossRef] [Scilit]
- Ma, J.; Li, M.; Fan, W.; Liu, J. State-of-the-Art Techniques for Fruit Maturity Detection. Agronomy 2024, 14, 2783. [Google Scholar] [CrossRef] [Scilit]
- Alrashdi, I.; Sharawi, M.; Ali, A.M.; Sallam, K.M.; Arain, B.; Abdel-Basset, M. Utilizing deep learning models for early detection and classification of fruit diseases: Towards sustainable agriculture and enhanced food quality. Sci. Rep. 2026, 16, 8167. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Kapach, K.; Barnea, E.; Mairon, R.; Edan, Y.; Ben-Shahar, O. Computer vision for fruit harvesting robots–state of the art and challenges ahead. Int. J. Comput. Vis. Robot. 2012, 3, 4–34. [Google Scholar] [CrossRef] [Scilit]
- Koirala, A.; Walsh, K.B.; Wang, Z.; McCarthy, C. Deep learning—Method overview and review of use for fruit detection and yield estimation. Comput. Electron. Agric. 2019, 162, 219–234. [Google Scholar] [CrossRef] [Scilit]
- Xiao, F.; Wang, H.; Xu, Y.; Zhang, R. Fruit Detection and Recognition Based on Deep Learning for Automatic Harvesting: An Overview and Review. Agronomy 2023, 13, 1625. [Google Scholar] [CrossRef] [Scilit]
- Sa, I.; McCool, C.; Lehnert, C.; Perez, T. On visual detection of highly-occluded objects for harvesting automation in horticulture. In Proceedings of the IEEE International Conference on Robotics and Automation, Seattle, WA, USA, 26–30 May 2015. [Google Scholar]
- Bargoti, S.; Underwood, J. Deep fruit detection in orchards. In Proceedings of the IEEE International Conference on Robotics and Automation, Singapore, 29 May–3 June 2017; IEEE: Piscataway, NJ, USA, 2017; pp. 3626–3633. [Google Scholar] [CrossRef] [Scilit]
- Chen, S.W.; Shivakumar, S.S.; Dcunha, S.; Das, J.; Okon, E.; Qu, C.; Taylor, C.J.; Kumar, V. Counting apples and oranges with deep learning: A data-driven approach. IEEE Rob. Autom. Lett. 2017, 2, 781–788. [Google Scholar] [CrossRef] [Scilit]
- Liang, Q.; Zhu, W.; Long, J.; Wang, Y.; Sun, W.; Wu, W. A real-time detection framework for on-tree mango based on SSD network. In International Conference on Intelligent Robotics and Applications; Springer: Berlin/Heidelberg, Germany, 2018; pp. 423–436. [Google Scholar] [CrossRef] [Scilit]
- Tao, Y.; Zhou, J.; Wang, K.; Shen, W. Rapid detection of fruits in orchard scene based on deep neural network. In Proceedings of the ASABE 2018 Annual International Meeting, Detroit, MI, USA, 29 July–1 August 2018. [Google Scholar]
- Koirala, A.; Wang, Z.; Walsh, K.; McCarthy, C. Deep learning for real-time fruit detection and orchard fruit load estimation: Benchmarking of ‘MangoYOLO’. Precis. Agric. 2019, 20, 1107–1135. [Google Scholar] [CrossRef] [Scilit]
- Liu, S.; Xue, J.; Zhang, T.; Lv, P.; Qin, H.; Zhao, T. Research progress and prospect of key technologies of fruit target recognition for robotic fruit picking. Front. Plant Sci. 2024, 15, 1423338. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Pugazhend, P.; Badgujar, C.M.; Sapkota, R.; Dhillon, R.; Ganapathy, M.R. Advances in agricultural fruit detection using you only look once (YOLO) algorithm: A review. Smart Agric. Technol. 2026, 13, 101896. [Google Scholar] [CrossRef] [Scilit]
- Yang, X.; Lin, Y.; Xiao, Q.; Liang, Z.; Ma, L.; ShuoGuo, Y.; Ade, K.; Tong, Z.; Chen, Y.; Cao, Y. A lightweight YOLO-TinyFuse model for small target detection of olive fruits. Front. Plant Sci. 2026, 17, 1773377. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Musić, J.; Bonković, M.; Sikora, T.; Papić, V. Evaluation of Deep Neural Network Architectures and Image Datasets for Olive Fruit Detection. In Proceedings of the 2025 International Conference on Software, Telecommunications and Computer Networks (SoftCOM), Split, Croatia, 18–20 September 2025; IEEE: Piscataway, NJ, USA, 2025; pp. 1–6. [Google Scholar] [CrossRef] [Scilit]
- Zeeshan, S.; Aized, T.; Riaz, F. The Design and Evaluation of an Orange-Fruit Detection Model in a Dynamic Environment Using a Convolutional Neural Network. Sustainability 2023, 15, 4329. [Google Scholar] [CrossRef] [Scilit]
- Sekharamantry, P.K.; Melgani, F.; Malacarne, J. Deep Learning-Based Apple Detection with Attention Module and Improved Loss Function in YOLO. Remote Sens. 2023, 15, 1516. [Google Scholar] [CrossRef] [Scilit]
- Zhou, J.; Sun, F.; Wu, H.; Lv, Q.; Feng, F.; Zhao, B.; Li, X. Kiwi-YOLO: A Kiwifruit Object Detection Algorithm for Complex Orchard Environments. Agronomy 2025, 15, 2424. [Google Scholar] [CrossRef] [Scilit]
- Zhu, X.; Chen, F.; Zhang, X.; Zheng, Y.; Peng, X.; Chen, C. Detection the maturity of multi-cultivar olive fruit in orchard environments based on Olive-EfficientDet. Sci. Hortic. 2024, 324, 112607. [Google Scholar] [CrossRef] [Scilit]
- Lin, X. Detecting Olives with Synthetic or Real Data? Olive the Above. In Proceedings of the 2023 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Detroit, MI, USA, 1–5 October 2023. [Google Scholar] [CrossRef] [Scilit]
- Osco-Mamani, E.; Santana-Carbajal, O.; Chaparro-Cruz, I.; Ochoa-Donoso, D.; Alcazar-Alay, S. The Detection and Counting of Olive Tree Fruits Using Deep Learning Models in Tacna, Perú. AI 2025, 6, 25. [Google Scholar] [CrossRef] [Scilit]
- Zhu, F.; Wang, S.; Liu, M.; Wang, W.; Feng, W. A Lightweight Algorithm for Detection and Grading of Olive Ripeness Based on Improved YOLOv11n. Agronomy 2025, 15, 1030. [Google Scholar] [CrossRef] [Scilit]
- Aljaafreh, A.; Elzagzoug, E.Y.; Abukhait, J.; Soliman, A.H.; Alja’Afreh, S.S.; Sivanathan, A.; Hughes, J. A real-time olive fruit detection for harvesting robot based on YOLO algorithms. Acta Technol. Agric. 2023, 26, 121–132. [Google Scholar] [CrossRef] [Scilit]
- Ponce, J.M.; Aquino, A.; Millan, B.; Andújar, J.M. Automatic Counting and Individual Size and Mass Estimation of Olive-Fruits Through Computer Vision Techniques. IEEE Access 2019, 7, 59451–59465. [Google Scholar] [CrossRef] [Scilit]
- Beltran, G.; Rio, C.; Sanchez, S.; Martinez, L. Seasonal changes in olive fruit characteristics and oil accumulation during ripening process. Sci. Food Agric. 2004, 84, 1783–1790. [Google Scholar] [CrossRef] [Scilit]
- Croatian Bureau of Statistics. Total Area by Most Common Fruit Species and Varieties (in Hectares), Republic of Croatia. 2017. Available online: https://podaci.dzs.hr/media/jxrinwvf/sljh2017.pdf (accessed on 25 November 2026).
- International Olive Oil Council. World Catalogue of Olive Varieties. 2000. Available online: https://worldolivecatalogue.internationaloliveoil.org/en/document/module-1-varieties/varieties-table (accessed on 25 November 2026).
- Poljuha, D.; Sladonja, B.; Brkić Bubola, K.; Radulović, M.; Brščić, K.; Šetić, E.; Krapac, M.; Milotić, A. A Multidisciplinary Approach to the Characterisation of Autochthonous Istrian Olive (Olea europaea L.) Varieties. Food Technol. Biotechnol. 2008, 46, 347–354. [Google Scholar]
- Gašparec-Skočić, L.; Milat, V. Olive and Olive Oil. A Gift from God to the Croats; Mavi: Croatian Centre for Agriculture, Food and Rural Affairs: Zagreb, Croatia, 2011. [Google Scholar]
- Split Olive Image Dataset v2. Available online: https://zenodo.org/records/21976264 (accessed on 24 August 2026). [CrossRef]
- Split Olive Dataset v1. Available online: https://zenodo.org/search?q=Split_Olive_DATASETv1&l=list&p=1&s=10&sort=bestmatch (accessed on 11 November 2026).
- CVAT: Data Annotation Platform for Vision AI. Available online: https://www.cvat.ai (accessed on 14 August 2026).
- Depth Anything 3. Available online: https://depth-anything-3.github.io (accessed on 14 August 2026).
- Ultralytics YOLO11. Available online: https://docs.ultralytics.com/models/yolo11#ultralytics-yolo11 (accessed on 24 August 2026).
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.




