基于Fast-SCNN-mp的家蚕蛹雌雄在线实时鉴别方法

    Online real-time gender identification method for silkworm chrysalises based on Fast-SCNN-mp model

    • 摘要: 家蚕蛹雌雄鉴别准确率决定育种效率与质量。针对家蚕蛹在线鉴别时因性腺特征缺失导致识别精度低的问题,该研究提出一种改进的轻量化实时语义分割模型Fast-SCNN-mp。首先,在特征提取阶段引入多尺度卷积注意力模块,强化判别性腺区域聚焦能力;然后,采用级联深度可分离卷积与瓶颈残差模块进行特征压缩与增强;最后,在特征聚合阶段集成金字塔池化模块,通过多级金字塔池化融合多尺度上下文信息。结果表明,针对多角度蚕蛹性腺缺失数据集,Fast-SCNN-mp模型的精确率(P)、召回率(R)、F1分数及准确率(A)分别达到98.57%、98.65%、98.61%与98.61%,与基础Fast-SCNN模型相比,分别提升了2.79、2.73、2.76、2.79个百分点。在>72°~90°侧倾角度的数据集上,Fast-SCNN-mp模型的准确率为96.30%,与最优主流语义分割算法Mask2Former准确率持平,而最优的传统分类算法CCT(convolutional compact Transformer)准确率仅为81.48%,但模型处理速度达68.10 帧/s,较Mask2Former提升33.54倍,且模型参数量仅为2.17 M,更有利于在边缘设备上部署。该研究为家蚕蛹在线智能鉴别提供了高效可靠的技术方案,可为农业领域实时分类任务的模型优化与应用提供重要参考。

       

      Abstract: China is the birthplace of the global sericulture industry and holds a core leading position in worldwide silk production. The accuracy of gender identification of silkworm pupae directly determines the efficiency and quality of breeding. Currently, gender identification mainly relies on manual observation of gonad characteristics at the tail of pupae, which needs to be completed within one week after pupation. With the intensification of labor shortage, the manual identification can no longer meet the needs of large-scale industrial development. Machine vision technology has become a research hotspot in the field of automatic silkworm pupae identification due to its significant advantages of low cost, easy integration, and adaptability to online detection. However, existing studies all construct models based on ideal silkworm pupa images with “intact gonads”, failing to consider the problem of gonad feature defects caused by practical working conditions such as pupa placement angle deviation and pupa curling in online detection, which seriously restricts the identification accuracy. To address the above problem, this study proposed an improved lightweight real-time semantic segmentation model named Fast-SCNN-mp. Based on the basic Fast-SCNN model, the performance was improved through multi-dimensional optimization. A multi-scale convolutional attention module was introduced in the feature extraction stage to enhance the discriminative focusing capability on gonadal regions; cascaded depthwise separable convolutions and bottleneck residual module were adopted to realize efficient feature compression and enhancement; a pyramid pooling module was integrated in the feature aggregation stage to fuse multi-scale contextual information and improve feature representation capability. Experiments were conducted on a gonad-defective dataset covering the full tilt angle range of 0~18°, >18°~45°, >45°~72°, and >72°~90°, which included 875 images of 5 silkworm pupae varieties. The results showed that the precision, recall, F1-score, and accuracy of the Fast-SCNN-mp model reached 98.57%, 98.65%, 98.61%, and 98.61%, respectively, which were 2.79, 2.73, 2.76, and 2.79 percentage points higher than the corresponding indicators of the basic Fast-SCNN model. Comparative experiments with 2 traditional classification algorithms and 5 mainstream semantic segmentation algorithms further verified the advantages of the model. On the dataset with a roll angle >72°~90°, Fast-SCNN-mp model achieved the accuracy of 96.3%, which was was comparable to that of Mask2Former, the state-of-the-art mainstream semantic segmentation algorithm, whereas the accuracy of the optimal traditional classification algorithm convolutional compact Transformer (CCT) only reached 81.48%. In terms of model parameters and inference speed (FPS), the Fast-SCNN-mp model had only 2.17 M parameters, which was the lowest among all models. Meanwhile, it achieved an inference speed of 68.10 FPS, outperforming all other comparative algorithms and representing a 33.54-fold increase compared with the top-performing model Mask2Former. In conclusion, while maintaining high discrimination accuracy, Fast-SCNN-mp model realized light weight design and high inference efficiency, which effectively balanced the trade-off between discrimination performance and real-time requirements. lt provides an efficient and reliable technical solution for the online intelligent discrimination of silkworm pupae, and also offers a valuable reference for the model optimization and application in real-time classification tasks within the agricultural field.

       

    /

    返回文章
    返回