YOLOv11-SMS: An Improved Algorithm for Impurity Detection in Seed Cotton
To enhance the precision of cottonseed impurity detection and address issues such as high miss-detection rates and suboptimal performance, this paper introduces an improved YOLOv11 algorithm, termed YOLOv11-SMS. Initially, the algorithm integrates a local self-attention mechanism (LRSA) to design the C2PSA-SL module, which augments the model’s ability to learn local information while maintaining global feature awareness. Furthermore, the feature extraction stage and the network head incorporate a multi-branch reparameterized convolution (MBRConv) module, enhancing feature extraction capabilities while preserving the model’s lightweight properties. Lastly, a spatial adaptive modulation (SAFM) module is introduced to optimize the detection of small targets. Experimental results demonstrate that YOLOv11-SMS outperforms the baseline model, with mAP@50–95 increasing from 79.42% to 82.49%, an improvement of 3.07 percentage points. The average mIOU increased from 90.98% to 94.18%, representing a 3.2 percentage point improvement. Moreover, the model achieves an impressive real-time inference speed of 178.63 frames per second (FPS), effectively balancing detection accuracy and speed, offering an efficient and precise solution for cottonseed impurity detection.
Authors
- Laigang Zhang (ORCID: https://orcid.org/0000-0002-5565-0364)
- Donghe Wang
- Zhijun Guo (ORCID: https://orcid.org/0000-0002-6387-7593)
- Wenyan Yuan
Institutions
- Hunan Normal University (CN)
- Liaocheng University (CN)
- Chinese Academy of Sciences (CN)
- Changsha Normal University (CN)
- Changchun Institute of Optics, Fine Mechanics and Physics (CN)
Publication Details
- Journal
- Sensors
- Published
- 2026-05-01
- DOI
- https://doi.org/10.3390/s26092835
- Primary Topic
- Smart Agriculture and AI
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Department of Science and Technology of Shandong Province
- Liaocheng University