Rep-ViG-Apple: A CNN-GCN Hybrid Model for Apple Detection in Complex Orchard Environments
Open Access
Abstract
Accurately recognizing apples in complex environments is essential for automating apple picking operations, particularly under challenging natural conditions such as cloudy, snowy, foggy, and rainy weather, as well as low-light situations. To overcome the challenges of reduced apple target detection accuracy due to branch occlusion, apple overlap, and variations between near and far field scales, we propose the Rep-ViG-Apple algorithm, an advanced version of the YOLO model. The Rep-ViG-Apple algorithm features a sophisticated architecture designed to enhance apple detection performance in difficult conditions. To improve feature extraction for occluded and overlapped apple targets, we developed the inverted residual multi-scale structural reparameterized feature extraction block (RepIRD Block) within the backbone network. We also integrated the sparse graph attention mechanism (SVGA) to capture global feature information, concentrate attention on apples, and reduce interference from complex environmental features. Moreover, we designed a feature extraction network with a CNN-GCN architecture, termed Rep-Vision-GCN. This network combines the local multi-scale feature extraction capabilities of a convolutional neural network (CNN) with the global modeling strengths of a graph convolutional network (GCN), enhancing the extraction of apple features. The RepConvsBlock module, embedded in the neck network, forms the Rep-FPN-PAN feature fusion network, which improves the recognition of apple targets across various scales, both near and far. Furthermore, we implemented a channel pruning algorithm based on LAMP scores to balance computational efficiency with model accuracy. Experimental results demonstrate that the Rep-ViG-Apple algorithm achieves precision, recall, and average accuracy of 92.5%, 85.0%, and 93.3%, respectively, marking improvements of 1.5%, 1.5%, and 2.0% over YOLOv8n. Additionally, the Rep-ViG-Apple model benefits from a 22% reduction in size, enhancing its efficiency and suitability for deployment in resource-constrained environments while maintaining high accuracy.Keywords
Funding Information
- Natural Science Foundation of Xinjiang Uygur Autonomous Region (2022D01A202, XJ2024G124, 2022ZD0115805, 2022A02011)
- Autonomous Region Postgraduate Research Innovation Project (2022D01A202, XJ2024G124, 2022ZD0115805, 2022A02011)
- Science and Technology Innovation 2030—“New Generation Artificial Intelligence” Major Project (2022D01A202, XJ2024G124, 2022ZD0115805, 2022A02011)
- Xinjiang Uygur Autonomous Region Major Science and Technology Project “Research on Key Technologies for Farm Digitalization and Intelligentization” (2022D01A202, XJ2024G124, 2022ZD0115805, 2022A02011)
This publication has 33 references indexed in Scilit:
- MFMDet: multi-scale face mask detection using improved Cascade rcnnThe Journal of Supercomputing, 2023
- DLF-YOLOF: an improved YOLOF-based surface defect detection for steel plateJournal of Iron and Steel Research International, 2023
- PKET-GCN: Prior knowledge enhanced time-varying graph convolution network for traffic flow predictionInformation Sciences, 2023
- Using lightweight deep learning algorithm for real-time detection of apple flowers in natural environmentsComputers and Electronics in Agriculture, 2023
- FBoT-Net: Focal bottleneck transformer network for small green apple detectionComputers and Electronics in Agriculture, 2023
- An improved faster R-CNN algorithm for assisted detection of lung nodulesComputers in Biology and Medicine, 2022
- Apple orchard production estimation using deep learning strategies: A comparison of tracking-by-detection algorithmsComputers and Electronics in Agriculture, 2022
- SAT-GCN: Self-attention graph convolutional network-based 3D object detection for autonomous drivingKnowledge-Based Systems, 2022
- Complete and accurate holly fruits counting using YOLOX object detectionComputers and Electronics in Agriculture, 2022
- Fast and accurate detection of kiwifruit in orchard using improved YOLOv3-tiny modelPrecision Agriculture, 2020