基于卷积神经网络的鲜虾种类与新鲜度联合识别

Joint recognition of species and freshness for fresh shrimp based on convolutional neural networks and ordinal classification

  • 摘要: 鲜虾流通和加工中易发生品质劣变,分选需同时判断虾种和新鲜度。传统理化检测耗时且破坏样品,普通视觉分类难以体现新鲜度等级的有序关系。为提高图像无损识别实用性,本研究以牟氏红虾 (Pleoticus muelleri)、凡纳滨对虾 (Litopenaeus vannamei)、罗氏沼虾 (Macrobrachium rosenbergii) 和日本囊对虾 (Marsupenaeus japonicus) 为对象,在4 ℃冷藏期间采集感兴趣区域图像并测定挥发性盐基氮 (Total volatile basic nitrogen, TVB-N),构建4种虾×4个新鲜度等级的分类任务。以ResNet18提取深度特征,在潜在空间构建虾种-等级类别原型,连接同一虾种相邻等级原型形成有序轨迹,并结合轨迹距离和轨迹坐标进行联合判别。结果显示,测试集16类准确率为96.59%,虾种和新鲜度F1值分别为99.49%和96.75%,新鲜度平均绝对误差(MAE)为0.034 1。类别原型轨迹投影在保持虾种判别能力的同时改善了新鲜度等级距离指标;单调原型投影保证类别原型满足预设的等级递进关系,为标准化采集条件下的鲜虾无损分选提供具有可解释性的技术支持。

     

    Abstract: Fresh shrimps are prone to quality deterioration during circulation and processing, and sorting requires simultaneous identification of shrimp species and freshness. Conventional physicochemical assays are time-consuming and sample-destructive, while conventional visual classification fails to reflect the ordinal relationship among freshness grades. To improve the practicality of image-based non-destructive recognition, we selected red shrimp (Pleoticus muelleri), whiteleg shrimp (Litopenaeus vannamei), giant freshwater prawn (Macrobrachium rosenbergii), and kuruma prawn (Marsupenaeus japonicus) as research materials. Region-of-interest (ROI) images were acquired during cold storage at 4 ℃, and total volatile basic nitrogen (TVB-N) was measured to assign four freshness grades. A 16-class task was established by combining four species and four freshness grades. ResNet18 was used to extract deep features. Species-grade class prototypes were constructed in the latent space, ordered trajectories were formed between adjacent grade prototypes within each species, and species and freshness were inferred jointly from trajectory distance and trajectory coordinate. On the test set, the model achieved a 16-class accuracy of 96.59%, with F1 scores of 99.49% for shrimp species and 96.75% for freshness, and a mean absolute error (MAE) of 0.034 1 for freshness. Compared with ordinary ResNet18 joint classification, the accuracy increased by 1.29 percentage points and the MAE decreased by 0.0049. Class-prototype trajectory projection improved freshness-grade distance metrics while preserving species discrimination. Monotonic prototype projection ensured that class prototypes followed the predefined ordinal progression, providing interpretable technical support for non-destructive shrimp sorting under standardized imaging conditions.

     

/

返回文章
返回