Accurate detection of tea shoots in natural environments is crucial for facilitating intelligent tea picking, field management, and automated harvesting. However, the detection performance of existing methods in complex scenes remains limited due to factors such as the small size, high density, severe overlap, and the similarity in color between tea shoots and the background. Consequently, this paper proposes an improved target detection algorithm, RFA-YOLOv8, based on YOLOv8, which aims to enhance the detection accuracy and robustness of tea shoots in natural environments. First, a self-constructed dataset containing images of tea shoots under various lighting conditions is created for model training and evaluation. Second, the multi-scale feature extraction capability of the model is enhanced by introducing RFCAConv along with the optimized SPPFCSPC module, while the spatial perception ability is improved by integrating the RFAConv module. Finally, the EIoU loss function is employed instead of CIoU to optimize the accuracy of the bounding box positioning. The experimental results demonstrate that the improved model achieves 84.1% and 58.7% in mAP@0.5 and mAP@0.5:0.95, respectively, which represent increases of 3.6% and 5.5% over the original YOLOv8. Robustness is evaluated under strong, moderate, and dim lighting conditions, yielding improvements of 6.3% and 7.1%. In dim lighting, mAP@0.5 and mAP@0.5:0.95 improve by 6.3% and 7.1%, respectively. The findings of this research provide an effective solution for the high-precision detection of tea shoots in complex lighting environments and offer theoretical and technical support for the development of smart tea gardens and automated picking.
Accurate and real-time apple detection in complex orchard environments is essential for robotic harvesting but remains challenging because of illumination variation, foliage occlusion, and limited computational resources. This study proposes Fast-YOLO11n, a lightweight detector derived from the nano variant of You Only Look Once 11 (YOLO11n) and integrating three complementary components. A Fast-C3k2 module based on partial convolution (PConv) reduces redundant computation while preserving cross-layer feature transmission. A focal modulation (FM) mechanism enhances target-related responses and suppresses background interference under occlusion and uneven illumination. In addition, a parallel downsampling module, termed ADown, retains local geometric details and multi-scale semantic information during downsampling. Experiments were conducted on a field-collected orchard dataset comprising 2240 images and 22,673 annotated apple instances under diverse lighting, scale, and occlusion conditions. Fast-YOLO11n achieved mean average precision values of 75.76% across intersection-over-union (IoU) thresholds of 0.50–0.95 (mAP@50–95) and 91.29% at an IoU threshold of 0.50 (mAP@50), while operating at 366.19 frames per second (FPS) with 2.51 million parameters and 6.00 billion floating-point operations (FLOPs). Compared with the YOLO11n baseline, it improved mAP@50–95 and mAP@50 by 2.39 and 1.39 percentage points, respectively, while reducing the parameter count and FLOPs by 2.71% and 5.36%. Ablation experiments demonstrated the individual and combined effects of the three modules on detection performance and computational efficiency. The proposed model provides a favorable balance between detection accuracy and computational efficiency, indicating its potential for real-time orchard perception on resource-constrained platforms.