An Online Quality Detection Algorithm for Cocoon Clusters Based on CD-YOLO
Silk cocoons are an important raw material for textiles. The mixture of defective cocoons, such as thin-shelled cocoons, double-pupa cocoons, and yellow-spotted cocoons, can lead to issues during the reeling process, such as thread breakage, uneven material, or contamination, which diminishes the quality of the silk. This paper addresses the cocoon sorting problem by leveraging the image characteristics of defective cocoons and proposes a CD-YOLO defect classification and recognition method based on YOLOv7. First, an image acquisition system based on a line array camera is established to achieve efficient and high-quality cocoon image collection. Data augmentation is applied to the sample images, and a cocoon dataset is created. Then, using the structural characteristics of a grid-clustered layout, the original cocoon images are pre-segmented, and the K-Canopy algorithm is used for clustering to accurately obtain anchor boxes that match the cocoon size and complete the segmentation of individual cocoon images. Next, model improvements are made by adding a CBAM module to the backbone network, incorporating the SE attention mechanism into the neck network’s convolution, and replacing the detection head with the Decoupled_Detect head to establish the CD-YOLO network model. Finally, the algorithm is tested and compared on the developed intelligent cocoon selection system. The experimental results show that the grid-clustered cocoon quality detection algorithm based on CD-YOLO outperforms the original network model, with the mean average precision (mAP) increasing by 5.8%. The mAP for defects at 0.5 threshold reaches 0.975, and the detection speed improves by 60%, achieving 45 fps. The optimized algorithm achieves a cocoon classification accuracy of <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"> <tex-math notation="LaTeX">$\ge 97$ </tex-math></inline-formula>% and meets the demand for a cocoon picking rate of <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"> <tex-math notation="LaTeX">$\ge 300$ </tex-math></inline-formula> kg per hour. This significantly enhances the sorting efficiency and accuracy, providing technological support for the automation upgrade in the sericulture industry.
Authors
- Jianying Yuan (ORCID: https://orcid.org/0000-0001-5357-2385)
- Jiapeng Zhang (ORCID: https://orcid.org/0009-0007-2271-5823)
- Zhongli Ma
- Jiajia Liu (ORCID: https://orcid.org/0000-0002-3146-2860)
- E. Li (ORCID: https://orcid.org/0009-0001-0574-6958)
Institutions
- Chengdu University of Information Technology (CN)
Publication Details
- Journal
- IEEE Access
- Published
- 2024-12-26
- DOI
- https://doi.org/10.1109/access.2024.3522310
- Citations
- 3
- Primary Topic
- Wireless Sensor Networks and IoT
- Type
- article
- Field-Weighted Citation Impact
- 0.98