•  
  •  
 

Corresponding Author(s)

王淑青(1969—),女,湖北工业大学教授,博士。E-mail:[email protected]

Abstract

[Objective] To achieve rapid and non -destructive online detection of the appearance quality of crayfish during primary processing and to improve detection accuracy and real -time performance in complex scenarios. [Methods] A dataset for crayfish appearance quality is constructed for complex scenarios on primary -processing production lines, and a crayfish appearance quality detection algorithm YOLO -CQ based on YOLOv 11n is proposed. DualConv is introduced to improve the C 3k2 module, enhancing the model's feature extraction capability while optimizing the allocation of computational resources. Deformable attention (DAT ) is integrated into the C 2PSA module, enabling the model to adaptively focus on key regions. In addition, an IoU -based dynamically weighted SlideLoss is adopted to optimize the classification loss, thereby balancing the gradient contributions of samples with different difficulty levels during training. [Results] YOLO -CQ achieves the precision of 86.6%, the recall of 84.3%, and the mAP@ 0.5 of 91.3%, which represent improvements of 2.5%, 2.3%, and 3.4% over those of YOLOv 11n, respectively. YOLO -CQ reaches an inference speed of 211.5 FPS. [Conclusion] YOLO -CQ significantly improves the detection accuracy of crayfish appearance quality while maintaining model lightness and real -time performance, meeting the requirements of online grading on primary -processing production lines.

Publication Date

10-21-2026

First Page

83

Last Page

93

DOI

10.13652/j.spjx.1003.5788.2025.81065

References

[1] 全国水产技术推广总站,中国水产学会.中国小龙虾产业发展报告(2024)[J].中国水产,2024 (7):14-20.National Fisheries Technology Extension Center,China Society of Fisheries.Development report on China's crayfish industry (2024 ) [J].China Fisheries,2024 (7):14-20.

[2] 高竟博,李晔,杜闯.基于深度学习的小龙虾分级算法 [J].现代计算机,2020 (26):40-46.Gao J B,Li Y,Du C.Crawfish classification algorithm based on deep learning [J].Modern Computer,2020 (26):40-46.

[3] 焦鸣.基于视觉引导的小龙虾分级系统设计与试验 [D].武汉:武汉轻工大学,2024:1-2.Jiao M.Design and test of crayfish grading system based on visual guidance [D].Wuhan:Wuhan Polytechnic University,2024:1-2.

[4] Li Y F,Ku X C,Wang S D,et al.Evaluation of annual production and economic benefits of tropical rice-crayfish coculture system in China [J].Agricultural Systems,2024,217(C):103936.

[5] Xiao Z F,Wang J L,Han L,et al.Application of machine vision system in food detection [J].Frontiers in Nutrition,2022,9:888245.

[6] Ponce J M,Aquino A,Millan B,et al.Automatic counting and individual size and mass estimation of olive-fruits through computer vision techniques [J].IEEE Access,2019,7:59 451-59 465.

[7] Jia Z X,Li M,Shi C,et al.Determination of salmon freshness by computer vision based on eye color [J].Food Packaging and Shelf Life,2022,34:100984.[8] 唐彦嵩,徐锐豪,王夙加.机器视觉在食品无损检测中的应用研究进展 [J].中国食品学报,2024,24(12):13-27.Tang Y S,Xu R H,Wang S J.Research progress in the application of machine vision in food nondestructive detection[J].Journal of Chinese Institute of Food Science and Technology,2024,24(12):13-27.

[9] 贾志鑫,杨霖,史策,等.农产品品质在线感知技术应用研究进展 [J].农业机械学报,2025,56(6):17-32.Jia Z X,Yang L,Shi C,et al.Research progress on application of online perception technology for agricultural product quality[J].Transactions of the Chinese Society for Agricultural Machinery,2025,56(6):17-32.

[10] 王炼,柳军,皮杰,等.基于 YOLOv 8n的猪肉新鲜度图像识别算法 [J].食品与机械,2025,41(5):98-104.Wang L,Liu J,Pi J,et al.Image recognition algorithm for pork freshness based on YOLOv 8n[J].Food & Machinery,2025,41(5):98-104.

[11] 李俊,曹博涛,彭新东.基于改进 YOLOv 7-tiny的苹果缺陷识别方法 [J].食品与机械,2025,41(8):100-108.Li J,Cao B T,Peng X D.An apple defect identification method based on improved YOLOv 7-tiny [J].Food & Machinery,2025,41(8):100-108.

[12] 施利春,边可可,王松伟,等.基于改进 U-Net和IWOA-LSSVM 的番茄综合品质检测方法研究 [J].食品与机械,2025,41(8):109-117.Shi L C,Bian K K,Wang S W,et al.Research on tomato comprehensive quality detection method based on improved U-Net and IWOA-LSSVM [J].Food & Machinery,2025,41(8):109-117.

[13] 李路,孙超奇,周玉凡,等.基于 FAS-YOLOv 8n的爬岸上草小龙虾多源图像融合识别方法 [J].农业机械学报,2025,56(8):526-534.Li L,Sun C Q,Zhou Y F,et al.Multi-source image fusion recognition of crawling bank grass crayfish based on FAS-YOLOv 8n[J].Transactions of the Chinese Society for Agricultural Machinery,2025,56(8):526-534.

[14] Ye X H,Liu Y X,Zhang D D,et al.Rapid and accurate crayfish sorting by size and maturity based on improved YOLOv 5[J].Applied Sciences,2023,13(15):8 619.

[15] 耿春新,王爱民,阎天宇,等.基于改进 YOLOv 8n损失函数的克氏原螯虾体特征识别算法 [J].渔业现代化,2024,51(5):72-80.Geng C X,Wang A M,Yan T Y,et al.Research on the identification algorithm of crayfish body features based on the improved YOLOv 8n loss function [J].Fishery Modernization,2024,51(5):72-80.

[16] 王子豪,胡志刚,付丹丹,等.基于 DeepLab V3+估测小龙虾虾头虾钳占比及分级 [J].食品与机械,2024,40(5):81-87,218.Wang Z H,Hu Z G,Fu D D,et al.Grading crayfish by estimating the proportion of crayfish head and pincers based |on DeepLab V3+[J].Food & Machinery,2024,40(5):81-87,218.

[17] Shi W,Zhang J,Fu Y F,et al.Lightweight detection and segmentation of crayfish parts using an improved YOLOv 11n segmentation model [J].Scientific Reports,2025,15:25634.

[18] 鲁濠,王淑青,鲁东林,等.基于改进 YOLOv 5的小龙虾品质检测方法 [J].湖北工业大学学报,2023,38(4):76-81.Lu H,Wang S Q,Lu D L,et al.Quality detection method of crayfish based on improved YOLOv 5[J].Journal of Hubei University of Technology,2023,38(4):76-81.

[19] 王淑青,陈开元,周淼,等.基于 YOLO-HDR 的小龙虾缺陷品质检测方法 [J].食品与机械,2025,41(3):100-107.Wang S Q,Chen K Y,Zhou M,et al.A method for detecting quality defects of crayfish based on YOLO-HDR [J].Food & Machinery,2025,41(3):100-107.

[20] 高晓光,吕蒙,臧芳波,等.小龙虾加工与保鲜技术研究进展[J].保鲜与加工,2021,21(12):126-131,139.Gao X G,Lyu M,Zang F B,et al.Research progress of crayfish processing and preservation technology [J].Storage and Process,2021,21(12):126-131,139.

[21] Khanam R,Hussain M.YOLOv 11:an overview of the key architectural enhancements [EB/OL ].(2024 -10-23) [2025 -08-19].https://arxiv.org/abs/ 2410.17725.

[22] Zhong J C,Chen J Y,Mian A.DualConv:dual convolutional kernels for lightweight deep neural networks [J].IEEE Transactions on Neural Networks and Learning Systems,2023,34(11):9 528-9 535.

[23] Dai J F,Qi H Z,Xiong Y W,et al.Deformable convolutional networks [C]// 2017 IEEE International Conference on Computer Vision (ICCV ).Venice,Italy:IEEE,2017:764-773.

[24] Xia Z F,Pan X R,Song S J,et al.Vision transformer with deformable attention [C]// 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR ).New Orleans,LA:IEEE,2022:4 784-4 793.[25] Yu Z P,Huang H B,Chen W J,et al.YOLO-FaceV 2:a scale and occlusion aware face detector [J].Pattern Recognition,2024,155:110714.

[26] Chen Y M,Yuan X B,Wang J B,et al.YOLO-MS:rethinking multi-scale representation learning for real-time object detection [J].IEEE Transactions on Pattern Analysis and Machine Intelligence,2025,47(6):4 240-4 252.

[27] Qi Y L,He Y T,Qi X M,et al.Dynamic snake convolution based on topological geometric constraints for tubular structure segmentation [C]// 2023 IEEE/CVF International Conference on Computer Vision (ICCV ).Paris:IEEE,2024:6 047-6 056.

[28] Zhang X,Liu C,Yang D G,et al.RFAConv:receptive-field attention convolution for improving convolutional neural networks [EB/OL ].(2023 -04-06) [2025 -09-11].https://arxiv.org/abs/ 2304.03198.

[29] Han K,Wang Y H,Guo J Y,et al.ParameterNet:parameters are all you need [EB/OL ].(2023 -06-26) [2025 -10-03].https://arxiv.org/abs/ 2306.14525.

[30] Qiao S Y,Chen L C,Yuille A.DetectoRS:detecting objects with recursive feature pyramid and switchable atrous convolution [C]// 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR ).Nashville,TN:IEEE,2021:10 208-10 219.

[31] Ouyang D L,He S,Zhang G Z,et al.Efficient multi-scale attention module with cross-spatial learning [C]// 2023 IEEE International Conference on Acoustics,Speech and Signal Processing (ICASSP ).Rhodes Island:IEEE,2023:1-5.

[32] Jiao J Y,Tang Y M,Lin K Y,et al.DilateFormer:multi-scale dilated transformer for visual recognition [J].IEEE Transactions on Multimedia,2023,25:8 906-8 919.

[33] Lau K W,Po L M,Rehman Y A U.Large separable kernel attention:rethinking the large kernel attention design in CNN[J].Expert Systems with Applications,2024,236:121352.

Share

COinS
 
 

To view the content in your browser, please download Adobe Reader or, alternately,
you may Download the file to your hard drive.

NOTE: The latest versions of Adobe Reader do not support viewing PDF files within Firefox on Mac OS and if you are using a modern (Intel) Mac, there is no official plugin for viewing PDF files within the browser window.