Submitted:
21 May 2025
Posted:
22 May 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
- (1)
- Constructed and publicly released a blueberry image dataset containing complex noise scenarios, including real-world samples with backlighting, occlusion, and overlapping fruits.
- (2)
- Designed the GLKRep (Grouped Large Kernel Reparameterization) module, which integrates structural reparameterization with grouped large-kernel convolutions to enhance contextual awareness while reducing computational costs.
- (3)
- Proposed the Unify dual-layer detection module with an adaptive receptive field mechanism to achieve precise fusion and recognition of multi-scale targets.
- (4)
- Introduced the VariFocal Loss function to improve the model’s ability to distinguish occluded and densely distributed targets, thereby enhancing overall detection accuracy.
2. Materials
2.1. Data Sample Acquisition
2.2. Dataset Analysis and Data Augmentation
3. Methods
3.1. Overview Structure

3.2. GLKRep Modules

3.3. Unify Modules
3.4. VariFocal-Loss Function
4. Experiments
4.1. Experimental Setup
4.2. Evaluation Indicators
4.3. Performance Comparison of YOLO-Blueberry and YOLOv8n

4.4. Comparison Experiments
| Models | Precision P/% | Recall R/% | mAP@0.5-0.95/% | FLOPs/GB | Parameters/M |
|---|---|---|---|---|---|
| Faster R-CNN | 96.2 | 97.1 | 91.7 | 8.2 | 3.0 |
| SDD | 90.3 | 92.5 | 90.1 | 35.2 | 26.3 |
| YOLOv5n | 95.2 | 94.8 | 94.6 | 24.0 | 9.1 |
| YOLOv7n-tiny | 96.3 | 95.4 | 93.8 | 11.9 | 4.2 |
| YOLOv8n | 95.7 | 96.2 | 94.2 | 8.9 | 3.0 |
| YOLOv9t | 96.9 | 96.5 | 95.2 | 7.8 | 2.8 |
| YOLOv10n | 96.2 | 95.7 | 94.9 | 28.7 | 11.1 |
| YOLOv11 | 96.7 | 93.9 | 82.1 | 13.2 | 6.0 |
| YOLO-Blueberry(Ours) | 97.8 | 95.5 | 97.5 | 7.2 | 2.6 |


4.5. VariFocal Loss Parameter Analysis
| 0.5 | 1.0 | 2.0 | 2.5 | 5.0 | 7.5 | 10.0 | |
|---|---|---|---|---|---|---|---|
| 0.1 | 95.7 | 96.3 | 97.6 | 96.5 | 97.3 | 96.6 | 94.7 |
| 0.2 | 96.7 | 96.9 | 98.0 | 97.0 | 97.5 | 96.4 | 93.9 |
| 0.5 | 97.1 | 97.4 | 98.4 | 97.7 | 97.7 | 97.0 | 95.2 |
| 0.7 | 97.3 | 98.5 | 98.7 | 98.1 | 98.0 | 97.3 | 96.5 |
| 1.0 | 97.8 | 96.3 | 98.5 | 98.0 | 98.2 | 97.5 | 96.8 |
4.6. Ablation Experiments
| Baseline | +GLKRep | +Unify | +VariFocal | mAP@0.5-0.95/% | FLOPs/GB | Parameters/M |
|---|---|---|---|---|---|---|
| ✔ | × | × | × | 91.7 | 8.2 | 3.0 |
| ✔ | ✔ | × | × | 94.1 | 7.9 | 2.8 |
| ✔ | ✔ | ✔ | × | 96.8 | 7.5 | 2.7 |
| ✔ | ✔ | ✔ | ✔ | 97.5 | 7.2 | 2.6 |

4.7. Generalization Assessment
5. Discussion
- (1)
- Lightweight Design and Deep Integration of Structural Reparameterization: This paper innovatively introduces the GLKRep module, which combines grouped channel convolution with large-kernel structural reparameterization. This approach significantly reduces computational complexity while maintaining semantic perception capabilities, effectively enhancing the depth and semantic awareness of feature extraction. It ensures efficient deployment and real-time response on edge devices.
- (2)
- Adaptive Dual-Layer Receptive Field Multi-Scale Fusion Structure: To address the significant scale variations and complex spatial distribution of blueberries in natural environments, a Unify dual-layer detection module was designed. This module dynamically receives and fuses feature maps from different layers of the backbone network, utilizing a multi-scale convolutional structure to achieve precise blueberry fruit recognition under conditions of scale variation, target overlap, and perspective changes, significantly enhancing the model’s robustness in identifying blueberry ripeness in complex scenarios.
- (3)
- Introduction of IoU-Aware Classification Loss to Optimize Detection Consistency: During the model training phase, the VariFocal Loss function is introduced, leveraging IoU-Aware Classification Scores (IACS) to effectively coordinate the optimization of target classification and bounding box regression tasks. This results in higher stability and accuracy in multi-target detection scenarios with dense fruit clusters and severe occlusion.
6. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Duan, Y.; Tarafdar, A.; Chaurasia, D.; Singh, A.; Bhargava, P.C.; Yang, J.; Li, Z.; Ni, X.; Tian, Y.; Li, H.; et al. Blueberry fruit valorization and valuable constituents: A review. International Journal of Food Microbiology 2022, 381, 109890. [CrossRef]
- Wu, Y.; Han, T.; Yang, H.; Lyu, L.; Li, W.; Wu, W. Known and potential health benefits and mechanisms of blueberry anthocyanins: A review. Food Bioscience 2023, 55, 103050. [CrossRef]
- Wu, Y.; Xu, L.; Liu, X.; Hasan, K.F.; Li, H.; Zhou, S.; Zhang, Q.; Zhou, Y. Effect of thermosonication treatment on blueberry juice quality: Total phenolics, flavonoids, anthocyanin, and antioxidant activity. Lwt 2021, 150, 112021. [CrossRef]
- Sivapragasam, N.; Neelakandan, N.; Rupasinghe, H.V. Potential health benefits of fermented blueberry: A review of current scientific evidence. Trends in Food Science & Technology 2023, 132, 103–120. [CrossRef]
- Aguilera, C.A.; Figueroa-Flores, C.; Aguilera, C.; Navarrete, C. Comprehensive analysis of model errors in blueberry detection and maturity classification: identifying limitations and proposing future improvements in agricultural monitoring. Agriculture 2023, 14, 18.
- Elbasi, E.; Mostafa, N.; AlArnaout, Z.; Zreikat, A.I.; Cina, E.; Varghese, G.; Shdefat, A.; Topcu, A.E.; Abdelbaki, W.; Mathew, S.; et al. Artificial intelligence technology in the agricultural sector: A systematic literature review. IEEE access 2022, 11, 171–202. [CrossRef]
- Javaid, M.; Haleem, A.; Khan, I.H.; Suman, R. Understanding the potential applications of Artificial Intelligence in Agriculture Sector. Advanced Agrochem 2023, 2, 15–30. [CrossRef]
- Lin, D.; Wei, R.; Xu, L. An Integrated Yield Prediction Model for Greenhouse Tomato. Agronomy 2019, 9. [CrossRef]
- Jia, L.; Wang, T.; Chen, Y.; Zang, Y.; Li, X.; Shi, H.; Gao, L. MobileNet-CA-YOLO: An Improved YOLOv7 Based on the MobileNetV3 and Attention Mechanism for Rice Pests and Diseases Detection. Agriculture 2023, 13. [CrossRef]
- Wang, Y.; Rong, Q.; Hu, C. Ripe Tomato Detection Algorithm Based on Improved YOLOv9. Plants 2024, 13. [CrossRef]
- Chai, J.J.K.; Xu, J.L.; O’Sullivan, C. Real-Time Detection of Strawberry Ripeness Using Augmented Reality and Deep Learning. Sensors 2023, 23. [CrossRef]
- Zhu, X.; Chen, F.; Zheng, Y.; Chen, C.; Peng, X. Detection of Camellia oleifera fruit maturity in orchards based on modified lightweight YOLO. Computers and Electronics in Agriculture 2024, 226, 109471. [CrossRef]
- Yang, W.; Ma, X.; An, H. Blueberry ripeness detection model based on enhanced detail feature and content-aware reassembly. Agronomy 2023, 13, 1613. [CrossRef]
- Xiao, F.; Wang, H.; Xu, Y.; Shi, Z. A lightweight detection method for blueberry fruit maturity based on an improved YOLOv5 algorithm. Agriculture 2023, 14, 36. [CrossRef]
- Feng, W.; Liu, M.; Sun, Y.; Wang, S.; Wang, J. The Use of a Blueberry Ripeness Detection Model in Dense Occlusion Scenarios Based on the Improved YOLOv9. Agronomy 2024, 14, 1860. [CrossRef]
- Quiroz, I.A.; Alférez, G.H. Image recognition of Legacy blueberries in a Chilean smart farm through deep learning. Computers and Electronics in Agriculture 2020, 168, 105044. [CrossRef]
- Sohan, M.; Sai Ram, T.; Rami Reddy, C.V. A review on yolov8 and its advancements. In Proceedings of the International Conference on Data Intelligence and Cognitive Informatics. Springer, 2024, pp. 529–545.
- Badgujar, C.M.; Poulose, A.; Gan, H. Agricultural object detection with you look only once (yolo) algorithm: A bibliometric and systematic literature review. arXiv preprint arXiv:2401.10379 2024. [CrossRef]
- Alif, M.A.R.; Hussain, M. YOLOv1 to YOLOv10: A comprehensive review of YOLO variants and their application in the agricultural domain. arXiv preprint arXiv:2406.10139 2024.
- Kanna S, K.; Ramalingam, K.; PC, P.; et al. YOLO deep learning algorithm for object detection in agriculture: a review. Journal of Agricultural Engineering (1974-7071) 2024, 55.
- Doherty, J.; Gardiner, B.; Kerr, E.; Siddique, N. BiFPN-yolo: One-stage object detection integrating Bi-directional feature pyramid networks. Pattern Recognition 2025, 160, 111209. [CrossRef]
- Yan, B.; Li, J.; Yang, Z.; Zhang, X.; Hao, X. AIE-YOLO: Auxiliary information enhanced YOLO for small object detection. Sensors 2022, 22, 8221. [CrossRef]
- Ouyang, C.; Zhang, H.; Mu, X.; Wu, Z.; Dai, W. E-VarifocalNet: a lightweight model to detect insulators and their defects under power grid surveillance. In Proceedings of the 2023 IEEE 21st International Conference on Industrial Informatics (INDIN). IEEE, 2023, pp. 1–6.
- Li, W. Analysis of object detection performance based on Faster R-CNN. In Proceedings of the Journal of Physics: Conference Series. IOP Publishing, 2021, Vol. 1827, p. 012085.
- Yadgar, G.; Gabel, M.; Jaffer, S.; Schroeder, B. SSD-based workload characteristics and their performance implications. ACM Transactions on Storage (TOS) 2021, 17, 1–26. [CrossRef]
- Chuang, X.; Qiang, C.; Yinyan, S.; Xiaochan, W.; Xiaolei, Z.; Yao, W.; Yiran, W. Improved lightweight YOLOv5n-based network for bruise detection and length classification of asparagus. Computers and Electronics in Agriculture 2025, 233, 110194. [CrossRef]
- Zheng, X.; Shao, Z.; Chen, Y.; Zeng, H.; Chen, J. MSPB-YOLO: High-Precision Detection Algorithm of Multi-Site Pepper Blight Disease Based on Improved YOLOv8. Agronomy 2025, 15, 839. [CrossRef]
- Ma, N.; Wu, Y.; Bo, Y.; Yan, H. Chili pepper object detection method based on improved YOLOv8n. Plants 2024, 13, 2402. [CrossRef]
- Yaseen, M. What is yolov9: An in-depth exploration of the internal features of the next-generation object detector. arXiv preprint arXiv:2409.07813 2024.
- Wang, Q.; Yan, N.; Qin, Y.; Zhang, X.; Li, X. BED-YOLO: An Enhanced YOLOv10n-Based Tomato Leaf Disease Detection Algorithm. Sensors 2025, 25, 2882. [CrossRef]
- Khanam, R.; Hussain, M. Yolov11: An overview of the key architectural enhancements. arXiv preprint arXiv:2410.17725 2024.
- Dong, X.; Pan, J. DHS-YOLO: Enhanced Detection of Slender Wheat Seedlings Under Dynamic Illumination Conditions. Agriculture 2025, 15, 510. [CrossRef]
- Ali, U.; Ismail, M.A.; Habeeb, R.A.A.; Shah, S.R.A. Performance evaluation of YOLO models in plant disease detection. Journal of Informatics and Web Engineering 2024, 3, 199–211. [CrossRef]
- Wang, C.; Han, Q.; Li, J.; Li, C.; Zou, X. YOLO-BLBE: A Novel Model for Identifying Blueberry Fruits with Different Maturities Using the I-MSRCR Method. Agronomy 2024, 14, 658. [CrossRef]







| Models | Model Size MB | DetectionSpeed s/perImage | Precision P/% | Recall R/% | F1 scoce | mAP/% |
|---|---|---|---|---|---|---|
| YOLO-BLBE | 12.75 | 0.009 | 93.72 | 97.56 | 95.60 | 98.14 |
| YOLO-Blueberry(Ours) | 3.08 | 0.005 | 97.51 | 98.52 | 95.43 | 98.51 |
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. |
© 2025 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 (http://creativecommons.org/licenses/by/4.0/).