Affiliation:
1. College of Mechanical and Electrical Engineering, Shihezi University, Shihezi 832003, China
2. Key Laboratory of Northwest Agricultural Equipment, Ministry of Agriculture, Shihezi 832003, China
3. State Key Laboratory of High-Performance Complex Manufacturing, Central South University, Changsha 410083, China
Abstract
The detection of the impurity rate in machine-picked seed cotton is crucial for precision agriculture. This study proposes a novel Cotton-YOLO-Seg cotton-impurity instance segmentation algorithm based on the you only look once version 8 small segmentation model (Yolov8s-Seg). The algorithm achieves precise pixel-level segmentation of cotton and impurities in seed cotton images and establishes a detection model for the impurity rate, enabling accurate detection of the impurity rate in machine-picked cotton. The proposed algorithm removes the Pyramid 4 (P4) feature layer and incorporates Multi-Scale Convolutional Block Attention (MSCBCA) that integrates the Convolutional Block Attention Module (CBAM) and Multi-Scale Convolutional Attention (MSCA) into the Faster Implementation of Cross Stage Partial Bottleneck with 2 Convolutions (C2f) module of the feature extraction network, forming a novel C2f_MSCBCA module. The SlimNeck structure is introduced in the feature fusion network by replacing the P4 feature layer with the small-target detection layer Pyramid 2 (P2). Additionally, transfer learning is employed using the Common Objects in Context (COCO) instance segmentation dataset. The analysis of 100 groups of cotton image samples shows that the Mean Absolute Error (MAE), Root Mean Square Error (RMSE), and Mean Absolute Percentage Error (MAPE) for impurity rate detection are 0.29%, 0.33%, and 3.70%, respectively, which are reduced by 52.46%, 48.44%, and 53.75% compared to the Yolov8s-seg model. The Precision (P), Recall (R), and mean Average Precision at an intersection over union of 0.5 (mAP@0.5) are 85.4%, 78.4%, and 80.8%, respectively, which are improved by 4.2%, 6.2%, and 6.4% compared to Yolov8s-seg model, significantly enhancing the segmentation performance of minor impurities. The Cotton-YOLO-Seg model demonstrates practical significance for precisely detecting the impurity rate in machine-picked seed cotton.
Funder
National Natural Science Foundation of China
Project of Tianchi Talented Young Doctor
Science and Technology Project of Wujiaqu City
High-level Talents Research Initiation Project of Shihezi University
Research Project of Shihezi University
Reference47 articles.
1. A novel method for seed cotton color measurement based on machine vision technology;Li;Comput. Electron. Agric.,2023
2. A fast image segmentation algorithm for detection of pseudo-foreign fibers in lint cotton;Wang;Comput. Electr. Eng.,2015
3. Li, Q., Zhou, W., and Zhang, X. (2024). Cotton-Net: Efficient and accurate rapid detection of impurity content in machine-picked seed cotton using near-infrared spectroscopy. Front. Plant Sci., 15.
4. Rapid measurement system for the impurity rate of machine-picked seed cotton in acquisition;Wan;Trans. Chin. Soc. Agric. Eng.,2021
5. Applications of near infrared spectroscopy in cotton impurity and fiber quality detection: A review;Zhou;Appl. Spectrosc. Rev.,2016