Artificial intelligence and deep learning for cherry sorting in Turkey

27 Jun 2025
1200

To reduce the production and marketing costs of cherry production, it is necessary to find accurate and rapid classification methods.

Traditional classification methods are frequently prone to errors, require specialized knowledge, and consume a significant amount of time.

In a study published in Nature's "Scientific Reports," researchers from Burdur Mehmet Akif Ersoy University in Turkey present the results of a study aimed at improving the accuracy of cherry classification through the integration of advanced deep learning and image processing techniques, tools that are offering significant advantages in terms of efficiency and fruit quality control.

In this study, the YOLOv8 model was improved in the detection and classification of various cherry cultivars thanks to the addition of Swin Transformer and Deformable Attention Transformer.

Classification and AI techniques

This approach improves the efficiency and accuracy of cherry production and marketing processes, strengthens the role of artificial intelligence in agricultural technologies, and is expected to enhance the sector's competitive advantage.

Studying the scientific literature, studies on cherry classification focus on the classification of cherries that have already been harvested and are leafless.

However, it is necessary for farmers to accurately identify the type of fruit while it is still on the tree, rather than after harvesting, to optimize the harvesting stages, ensure the classification of fruits in line with market demands, improve quality control, and facilitate better export strategies.

Consequently, this investigation stands out from existing studies by focusing on the identification of cherries while they are still on the tree, a task that has been little studied in the current body of research.

Figure 1. Overall operational flow of the proposed framework. Source: Arısoy and Uysal, 2025

Dataset and results

Stella, Regina, Rainer, White Cherry, and Ziraat 900 composed the dataset used in this investigation.

The results indicate that the cherry varieties were successfully classified using deep learning and image processing techniques.

When the 4 models of the study are compared with each other, in the proposed Yolov8n-Multipleattn model, in particular, the precision for the "Regina" class increased to 87%, reflecting a better ability to correctly identify cases of this class.

Similarly, the "Star" class achieves an improved F1 score of 0.93, supported by balanced precision and recall (both at 93%) and a higher accuracy of 92.50%.

Performance and future outlook

This demonstrates greater consistency in recognizing cases of this class.

Moreover, the "Rainier" and "White Cherry" classes maintain their high performance, with the "White Cherry" class achieving nearly perfect metrics (F1 score: 0.99, accuracy: 100%).

However, to further improve the model's performance, it is advisable to use both larger and more diverse datasets, ensuring that the data is collected from a variety of geographical regions.

This will improve the model's generalization capabilities.

Moreover, the integration of the model into mobile platforms, including drones and wearable devices, could lead to the development of real-time applications, which would enhance the effectiveness of agricultural processes.

Thanks to these encouraging results, we can expect improvements in quality control and efficiency in agriculture, which can also be applied to the classification of other types of fruit.

Source: Varol Arısoy, M., Uysal, İ. BiFPN-enhanced SwinDAT-based cherry variety classification with YOLOv8. Sci Rep 15, 5427 (2025). https://doi.org/10.1038/s41598-025-89624-7 

Opening image source: SL Fruit Service 

Melissa Venturi
University fo Bologna (ITA)


Cherry Times - All rights reserved

What to read next

How mild climate in France is changing dormancy in Regina sweet cherry trees

Production

04 Nov 2025

A recent study in France shows how mild winters disrupt dormancy in the Regina sweet cherry tree, leading to delayed blooming, malformed flowers, and lower productivity. These findings highlight the urgent need to adapt fruit farming to ongoing climate change in temperate regions

Chile kicks off cherry season in Norte Chico with Nimba: early harvest and standout size

Varieties

20 Oct 2025

Chile’s 2025 cherry season begins in Norte Chico with Nimba cv, harvested in week 42. Over 80% of the fruit exceeds 28 mm. With high productivity and low chill requirement, it’s a strategic choice to enter early markets and optimize exports.

In evidenza

EU cherry consumption on the rise: 2024 set to be a record year for the last decade

Consumption

26 Dec 2025

In 2024, cherry consumption in the European Union reached 629,000 tonnes, marking a +4.5% increase on an annual basis and reaching its highest level in ten years. Production, imports and exports are also growing, with Italy and Spain among the leading countries.

Climate emergencies: over €900,000 in compensation for Spanish cherry growers in Extremadura

Production

25 Dec 2025

La Junta de Extremadura ha distribuito 904.540 euro nel secondo pagamento dell’aiuto straordinario 2024 per i cerasicoltori colpiti dal maltempo. La misura, parte del Decreto Legge 3/2025, prevede un’ultima tranche da un milione di euro in arrivo nei prossimi giorni.

Tag Popolari