Abstract
Accurate and efficient algorithms for detection are essential technologies utilized by robots for plum harvesting. To facilitate effective implementation on edge computing devices that have restricted processing capabilities, this research introduces a lightweight plum detection algorithm derived from YOLOv5s. Initially, the backbone network of the original architecture is substituted with the Revcol network. Subsequently, the feature space pyramid pooling (SPPF) is refined by integrating a Large Separable Kernel Attention (LSKA) mechanism, and the C3 module of the original model is improved through the use of Distributed Shift Convolutions (DSConv). Finally, a custom-designed lightweight detection head is employed to construct the lightweight plum detection model. The results show that the average mAP of the improved detection model is 96.3%, and the number of floating point operations (FLOPs) and parameters are reduced to 84.8% and 91.2% respectively. On edge computing devices, the inference speed reaches 44.64 frames per millisecond. This algorithm features high accuracy, lightweight design, and fast inference speed, providing valuable references for real-time object detection deployment of plum harvesting robots on edge computing devices.









Similar content being viewed by others
Data availability
No datasets were generated or analysed during the current study.
References
An, Q., Wang, K., Li, Z., Song, C., Tang, X., Song, J.: Real-time monitoring method of strawberry fruit growth state based on YOLO improved model. IEEE Access 10, 124363–124372 (2022)
Cai, Y., Zhou, Y., Han, Q., Sun, J., Kong, X., Li, J., Zhang, X.: Reversible column networks. (2022) arXiv preprint arXiv:2212.11696
Chen, H., Wang, Y., Guo, J., Tao, D.: Vanillanet: the power of minimalism in deep learning. Adv. Neural Inf. Process. Syst. 36 (2024)
Chen, J., Kao, S.-h., He, H., Zhuo, W., Wen, S., Lee, C.-H., & Chan, S.-H. G.: Run, don't walk: chasing higher FLOPS for faster neural networks. Paper presented at the Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (2023)
Du, W., Jia, Z., Sui, S., Liu, P.: Table grape inflorescence detection and clamping point localisation based on channel pruned YOLOV7-TP. Biosys. Eng. 235, 100–115 (2023)
Fan, Y., Cai, Y., Yang, H.: A detection algorithm based on improved YOLOv5 for coarse-fine variety fruits. J. Food Meas. Charact. 18(2), 1338–1354 (2024)
Hu, C., Shi, Z., Wei, H., Hu, X., Xie, Y., Li, P.: Automatic detection of pecan fruits based on Faster RCNN with FPN in orchard. Int. J. Agric. Biol. Eng. 15(6), 189–196 (2022)
Lau, K.W., Po, L.-M., Rehman, Y.A.U.: Large separable kernel attention: rethinking the large kernel attention design in cnn. Expert Syst. Appl. 236, 121352 (2024)
Li, Y., Yuan, G., Wen, Y., Hu, J., Evangelidis, G., Tulyakov, S., Ren, J.: Efficientformer: vision transformers at mobilenet speed. Adv. Neural. Inf. Process. Syst. 35, 12934–12949 (2022)
Li, Z., Song, J., Qiao, K., Li, C., Zhang, Y., Li, Z.: Research on efficient feature extraction: Improving YOLOv5 backbone for facial expression detection in live streaming scenes. Front. Comput. Neurosci. 16, 980063 (2022)
Lin, Y., Huang, Z., Liang, Y., Liu, Y., Jiang, W.: AG-YOLO: a rapid citrus fruit detection algorithm with global context fusion. Agriculture 14(1), 114 (2024)
Liu, J., Liu, Z.: The vision-based target recognition, localization, and control for harvesting robots: a review. Int. J. Precis. Eng. Manuf. 25(2), 409–428 (2024)
Liu, Z., Abeyrathna, R.R.D., Sampurno, R.M., Nakaguchi, V.M., Ahamed, T.: Faster-YOLO-AP: A lightweight apple detection algorithm based on improved YOLOv8 with a new efficient PDWConv in orchard. Comput. Electron. Agric. 223, 109118 (2024)
Mirhaji, H., Soleymani, M., Asakereh, A., Mehdizadeh, S.A.: Fruit detection and load estimation of an orange orchard using the YOLO models through simple approaches in different imaging and illumination conditions. Comput. Electron. Agric. 191, 106533 (2021)
Nan, Y., Zhang, H., Zeng, Y., Zheng, J., Ge, Y.: Intelligent detection of Multi-Class pitaya fruits in target picking row based on WGB-YOLO network. Comput. Electron. Agric. 208, 107780 (2023)
Nedeljković, M., Puška, A., Jeločnik, M., Pamučar, D., Subić, J.: Economic and technical assessment of the chinese plum varieties using multi-criteria analysis methods. Agric. Res., 1–10 (2024)
Niu, Y., Lu, M., Liang, X., Wu, Q., Mu, J.: YOLO-plum: A high precision and real-time improved algorithm for plum recognition. PLoS ONE 18(7), e0287778 (2023)
Selvaraju, R.R., Cogswell, M., Das, A., Vedantam, R., Parikh, D., Batra, D.: Grad-cam: visual explanations from deep networks via gradient-based localization. Paper presented at the Proceedings of the IEEE International Conference on Computer Vision (2017)
Suo, R., Gao, F., Zhou, Z., Fu, L., Song, Z., Dhupia, J., Cui, Y.: Improved multi-classes kiwifruit detection in orchard to avoid collisions during robotic picking. Comput. Electron. Agric. 182, 106052 (2021)
Szymajda, M., Maciorowski, R., Rabcewicz, J., Białkowski, P., Buler, Z.: Suitability of plum (Prunus domestica L.) cultivars for combine harvesting of the fruit. Sci. Hortic. 313, 111895 (2023)
Tang, R., Lei, Y., Luo, B., Zhang, J., Mu, J.: YOLOv7-Plum: advancing plum fruit detection in natural environments with deep learning. Plants 12(15), 2883 (2023)
Wang, D., He, D.: Channel pruned YOLO V5s-based deep learning approach for rapid and accurate apple fruitlet detection before fruit thinning. Biosys. Eng. 210, 271–281 (2021)
Xu, W., Xu, T., Thomasson, J.A., Chen, W., Karthikeyan, R., Tian, G., Su, Q.: A lightweight SSV2-YOLO based model for detection of sugarcane aphids in unstructured natural environments. Comput. Electron. Agric. 211, 107961 (2023)
Yu, L., Xiong, J., Fang, X., Yang, Z., Chen, Y., Lin, X., Chen, S.: A litchi fruit recognition method in a natural environment using RGB-D images. Biosys. Eng. 204, 50–63 (2021)
Zeng, T., Li, S., Song, Q., Zhong, F., Wei, X.: Lightweight tomato real-time detection method based on improved YOLO and mobile deployment. Comput. Electron. Agric. 205, 107625 (2023)
Zhang, Y., Zhang, W., Yu, J., He, L., Chen, J., He, Y.: Complete and accurate holly fruits counting using YOLOX object detection. Comput. Electron. Agric. 198, 107062 (2022)
Acknowledgements
For me, writing a paper for the first time was a very memorable experience. I learned a lot about research and the skills of writing a paper from this experience. All these could not have been achieved without the careful guidance and help from my teachers and fellow students. I would like to thank them very much. First of all, I would like to thank my supervisor for giving me the right direction as well as enlightenment when I couldn't proceed with my thesis. It gave me the confidence to continue. At the same time my tutor gave me important advice at the end of my dissertation. Second, I would also like to express my sincere gratitude to my partners who provided me with language assistance as well as helped me proofread my essay while giving me constructive advice and for helping me structure my knowledge over the past year and a half. Finally, I am very grateful to my family for their support as well as understanding in my research path.
Funding
The funding was provided by National Natural Science Foundation of China (Grant Nos 32202147).
Author information
Authors and Affiliations
Contributions
Z.D.Y. provided theoretical support, wrote the manuscript C.N. wrote the manuscript, processed the dataset, and prepared all graphs and tables M.S.Y. reviewed the manuscript, performed experiments W.C.X. reviewed the manuscript, checked the literature G.D.D. reviewed the manuscript, processed the dataset Z.L.X. reviewed the manuscript, checked grammar.
Corresponding author
Ethics declarations
Conflict of interest
The authors declare no competing interests.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Zhang, D., Chen, N., Mao, S. et al. A lightweight real-time algorithm for plum harvesting detection in orchards under complex conditions. SIViP 19, 327 (2025). https://doi.org/10.1007/s11760-025-03864-8
Received:
Revised:
Accepted:
Published:
DOI: https://doi.org/10.1007/s11760-025-03864-8