Fang Guoai, Zhao Yu
College of Engineering Science and Technology, Shanghai Ocean University, Shanghai 201306, China.
Sensors (Basel). 2024 Nov 28;24(23):7593. doi: 10.3390/s24237593.
The removal of back armor marks the first stage in the comprehensive processing of river crabs. However, the current low level of mechanization undermines the effectiveness of this process. By integrating robotic systems with image recognition technology, the efficient removal of dorsal armor from river crabs is anticipated. This approach relies on the rapid identification and precise positioning of the processing location at the crab's tail, both of which are essential for optimal results. In this paper, we propose a lightweight deep learning model called YOLOv7-SPSD for detecting river crab tails. The goal is to accurately determine the processing location for the robotic removal of river crab back armor. We start by constructing a crab tail dataset and completing the data labeling process. To enhance the lightweight nature of the YOLOv7-tiny model, we incorporate the Slimneck module, PConv, and the SimAM attention mechanism. These additions help achieve an initial reduction in model size while preserving detection accuracy. Furthermore, we optimize the model by removing redundant parameters using the DepGraph pruning algorithm, which facilitates its application on edge devices. Experimental results show that the lightweight YOLOv7-SPSD model achieves a mean Average Precision (mAP) of 99.6% at a threshold of 0.5, an F1-score of 99.6%, and processes frames at a rate of 7.1 frames per second (FPS) on a CPU. Compared to YOLOv7-tiny, the improved model increases FPS by 2.7, reduces GFLOPS by 74.6%, decreases the number of parameters by 71.6%, and lowers its size by 8.1 MB. This study enhances the deployment of models in river crab processing equipment and introduces innovative concepts and methodologies for advancing intelligent river crab deep processing technology.
去除河蟹背甲是河蟹综合加工的第一阶段。然而,当前机械化水平较低,影响了这一过程的效率。通过将机器人系统与图像识别技术相结合,有望实现河蟹背甲的高效去除。这种方法依赖于在蟹尾快速识别和精确定位加工位置,这两者对于获得最佳效果至关重要。在本文中,我们提出了一种名为YOLOv7-SPSD的轻量级深度学习模型,用于检测河蟹尾部。目标是准确确定机器人去除河蟹背甲的加工位置。我们首先构建了一个蟹尾数据集并完成数据标注过程。为了增强YOLOv7-tiny模型的轻量级特性,我们引入了Slimneck模块、PConv和SimAM注意力机制。这些改进有助于在保持检测精度的同时初步减小模型大小。此外,我们使用DepGraph剪枝算法去除冗余参数来优化模型,便于其在边缘设备上应用。实验结果表明,轻量级YOLOv7-SPSD模型在阈值为0.5时平均精度均值(mAP)达到99.6%,F1分数为99.6%,在CPU上每秒处理7.1帧(FPS)。与YOLOv7-tiny相比,改进后的模型FPS提高了2.7,GFLOPS降低了74.6%,参数数量减少了71.6%,模型大小降低了8.1MB。本研究提升了模型在河蟹加工设备中的部署,并为推进智能河蟹深加工技术引入了创新概念和方法。