基于无监督异常检测的缺陷鸡蛋检测方法
CSTR:
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

基金项目:

国家重点研发计划项目(2022YFD1300705)和中央高校基本科研业务费专项资金项目(2662025GXPY003)


Defective Egg Detection Method Based on Unsupervised Anomaly Detection
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    针对实际生产缺陷鸡蛋检测中,鸡蛋缺陷类别多、缺陷样本获取困难、训练标签制作耗时耗力,导致在大批量鸡蛋产线深度学习检测应用受限等问题,提出了一种基于无监督训练策略的SimpleNet – DA – SE 缺陷蛋异常检测模型。以SimpleNet 网络为无监督基础模型,通过可视化热力图对比分析选取最优预训练模型EfficientNet 作为鸡蛋图像特征提取器,并采用多尺度信息融合进行鸡蛋边缘细节特征的准确提取。为提高模型对多类别缺陷的有效识别,提出动态高斯噪声扰动策略,构建精确的无监督异常边界生成器;在原始网络嵌入注意力机制,增强模型对于鸡蛋缺陷信息的关注度,提高判别器识别能力。试验结果表明:仅使用正常鸡蛋样本训练,改进后的缺陷蛋异常检测模型SimpleNet – DA – SE 最终测试的I-AUROC 达到94.96% ,P-AUROC 达到85.38% ,准确率、召回率、F1 值分别为91.58% 、92.14% 、94.16% 。最后,将模型部署到边缘设备上进行鸡蛋缺陷检测试验,部署后的试验结果显示,图像检测准确率为90.6% ,平均单幅图像检测时间为0.176 s;摄像头实时检测准确率为89.4% ,模型的单幅图像检测时间达到0.195 s,满足实际产线应用需求。

    Abstract:

    In practical egg defect detection for industrial production, the diversity of defect categories, difficulty in obtaining defective samples, and time-consuming labeling processes significantly limit the application of deep learning methods in large-scale egg production lines. To address these challenges, an unsupervised anomaly detection model, SimpleNet – DA – SE, was proposed for defective egg identification. The proposed approach employed SimpleNet as the foundational unsupervised framework and selected EfficientNet as the optimal pre-trained feature extractor through comparative analysis of visualization heatmaps. Multi-scale information fusion was implemented to accurately extract edge detail features of eggs. To enhance the model's effectiveness in identifying multiple defect categories, a dynamic Gaussian noise perturbation strategy was introduced to construct a precise unsupervised anomaly boundary generator. Additionally, an attention mechanism was embedded into the original network to strengthen the model??s focus on egg defect information and improve discriminator performance. Experimental results demonstrated that the improved defective egg anomaly detection model SimpleNet – DA – SE, trained exclusively on normal egg samples, achieved an image-level area under the ROC curve (I-AUROC) of 94.96% , pixel-level area under the ROC curve (P-AUROC) of 85.38% , with accuracy, recall, and F1-score of 91.58% , 92.14% , and 94.16% , respectively. Finally, the model was deployed on edge devices for egg defect detection trials. Post-deployment experimental results showed an image detection accuracy of 90.6% with an average detection time of 0.176 s per image. Real-time camera detection achieved 89.4% accuracy with model detection time of 0.195 s per image, meeting the requirements for practical production line applications.

    参考文献
    相似文献
    引证文献
引用本文

范维,张睛睛,刘子乾,程宇轩,安燕云,王巧华.基于无监督异常检测的缺陷鸡蛋检测方法[J].农业机械学报,2026,57(23):395-405. Fan Wei, Zhang Jingjing, Liu Ziqian, Cheng Yuxuan, An Yanyun, Wang Qiaohua. Defective Egg Detection Method Based on Unsupervised Anomaly Detection[J]. Transactions of the Chinese Society for Agricultural Machinery,2026,57(23):395-405.

复制
分享
相关视频

文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2025-08-23
  • 最后修改日期:
  • 录用日期:
  • 在线发布日期: 2026-12-01
  • 出版日期:
文章二维码