RA-CottNet: A Real-Time High-Precision Deep Learning Model for Cotton Boll and Flower Recognition
Rui-Feng Wang, Yi-Ming Qin, Yi Zhao, Mingrui Xu, Iago Beffart Schardong, Kangning Cui
Abstract
Cotton is the most important natural fiber crop worldwide, and its automated harvesting is essential for improving production efficiency and economic benefits. However, cotton boll detection faces challenges such as small target size, fine-grained category differences, and complex background interference. This study proposes RA-CottNet, a high-precision object detection model with both directional awareness and attention-guided capabilities, and develops an open-source dataset containing 4966 annotated images. Based on YOLOv11n, RA-CottNet incorporates ODConv and SPDConv to enhance directional and spatial representation, while integrating CoordAttention, an improved GAM, and LSKA to improve feature extraction. Experimental results showed that RA-CottNet achieves 93.683% Precision, 86.040% Recall, 93.496% mAP50, 72.857% mAP95, and 89.692% F1-score, maintaining stable performance under multi-scale and rotation perturbations. The proposed approach demonstrated high accuracy and real-time capability, making it suitable for deployment on agricultural edge devices and providing effective technical support for automated cotton boll harvesting and yield estimation.