An AI-Based Horticultural Plant Fruit Visual Detection Algorithm for Apple Fruits
Open Access
- 16 May 2025
- journal article
- research article
- Published by MDPI AG in Horticulturae
- Vol. 11 (5) , 541
Abstract
In order to improve the perception accuracy of the apple tree fruit recognition model and to reduce the model size, a lightweight apple target recognition method based on an improved YOLOv5s artificial intelligence algorithm was proposed, and relevant experiments were designed. The Depthwise Separable Convolution (DWConv) module has many advantages: (1) It has high computational efficiency, reducing the number of parameters and calculations in the model; (2) It makes the model lightweight and easy to deploy in hardware; (3) DWConv can be combined with other modules to enhance the multi-scale feature extraction capability of the detection network and improve the ability to capture multi-scale information; (4) It balances the detection accuracy and speed of the model; (5) DWConv can flexibly adapt to different network structures. Because of its efficient computing modes, lightweight design, and flexible structural adaptation, the DWConv module has significant advantages in multi-scale feature extraction, real-time performance improvement, and small-object detection. Therefore, this method improves the original YOLOv5s network architecture by replacing the embedded Depthwise Separable Convolution in its Backbone network, which reduces the size and parameter count of the model while ensuring detection accuracy. The experimental results show that for the test-set images, the proposed improved model has an average recognition accuracy of 92.3% for apple targets, a recognition time of 0.033 s for a single image, and a model volume of 11.1 MB. Compared with the original YOLOv5s model, the average recognition accuracy was increased by 0.8%, the recognition speed was increased by 23.3%, and the model volume was compressed by 20.7%, effectively achieving lightweight improvement of the apple detection model and improving the accuracy and speed of detection. The detection algorithm proposed in the study can be extended to the intelligent measurement of apple biological and physical characteristics, including for size measurement, shape analysis, and color analysis. The proposed method can improve the intelligence level of orchard management and horticultural technology, reduce labor costs, assist precision agriculture technology, and promote the transformation of the horticultural industry toward sustainable development.Keywords
Funding Information
- National Natural Science Foundation of China (NSFC) (No. 62406244, No. 62473311, No. 103-451123011)
- National Natural Science Foundation of China (NSFC) (No. 62406244, No. 62473311, No. 103-451123011)
- Doctoral Research Project of Xi’an University of Technology (No. 62406244, No. 62473311, No. 103-451123011)
This publication has 37 references indexed in Scilit:
- SGW-YOLOv8n: An Improved YOLOv8n-Based Model for Apple Detection and Segmentation in Complex Orchard EnvironmentsAgriculture, 2024
- Object Detection Algorithm for Citrus Fruits Based on Improved YOLOv5 ModelAgriculture, 2024
- Canopy-attention-YOLOv4-based immature/mature apple fruit detection on dense-foliage tree architectures for early crop load estimationComputers and Electronics in Agriculture, 2022
- Application of consumer RGB-D cameras for fruit detection and localization in field: A critical reviewComputers and Electronics in Agriculture, 2020
- Faster R–CNN–based apple detection in dense-foliage fruiting-wall trees using RGB and depth features for robotic harvestingBiosystems Engineering, 2020
- Multi-class fruit-on-plant detection for apple in SNAP system using Faster R-CNNComputers and Electronics in Agriculture, 2020
- Multi-class object detection using faster R-CNN and estimation of shaking locations for automated shake-and-catch apple harvestingComputers and Electronics in Agriculture, 2020
- Fruit detection, segmentation and 3D visualisation of environments in apple orchardsComputers and Electronics in Agriculture, 2020
- Fast implementation of real-time fruit detection in apple orchards using deep learningComputers and Electronics in Agriculture, 2020
- A novel identification method for CPPU‐treated kiwifruits based on imagesJournal of the Science of Food and Agriculture, 2019