基于深度学习的移动端缺陷蛋检测系统研究
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

基金项目:

国家自然科学基金面上项目(32072302、31871863)和扬州市科技计划项目(YZ2020047)


Detection System Study of Defective Egg on Mobile Devices Based on Deep Learning
Author:
Affiliation:

Fund Project:

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

    针对缺陷鸡蛋差异性大、人工检测主观性强、实时性差,消费者存在食品安全隐患等问题,提出一种基于深度学习的移动端缺陷蛋无损检测系统,实现对裂纹蛋和血斑蛋的实时检测。首先,建立改进的轻量级卷积神经网络MobileNetV2_CA模型,以MobileNetV2原网络为基础,通过嵌入坐标注意力机制、调整宽度因子、迁移学习等操作对其进行优化,并进行PC端检测对比试验。试验结果表明:建立的MobileNetV2_CA模型验证集准确率达93.93%,召回率为94.73%,单个鸡蛋平均检测时间为9.9ms,对比改进前MobileNetV2模型准确率提升3.60个百分点、召回率提4.30个百分点、检测时间缩短2.62ms;MobileNetV2_CA模型的参数量为2.36×106,较原MobileNetV2网络模型降低31.59%。然后,利用NCNN深度学习框架对MobileNetV2_CA模型进行训练,并通过格式转换部署至Android移动端,进行NCNN深度学习训练模型的移动端检测验证,及其与TensorFlow Lite深度学习模型的对比分析。试验结果表明:NCNN深度学习模型对缺陷蛋平均识别准确率达到92.72%,单个鸡蛋平均检测时间为22.1ms,库文件大小仅2.7MB,均优于TensorFlow Lite,更能满足实际应用要求。

    Abstract:

    Aiming at the problems of large diversity of defective eggs, as well as the strong subjectivity and poor real-time detection of artificial detection, and the potential risk of food safety for end-consumers, a non-destructive testing system based on deep learning for defective eggs on mobile device was proposed to realize real-time detection of cracked eggs and bloody eggs. An improved lightweight convolutional neural network MobileNetV2_CA model was firstly established. MobileNetV2 network was taken as the original framework, it was further optimized by embedding coordinate attention mechanism, adjusting width factor, transfer learning and other parameters. The PC detection was also performed for comparison. Results showed that the MobileNetV2_CA model presented the validation accuracy of 93.93%, the recall rate of 94.73%, and the average detection time of 9.9ms for a single egg, which was 3.60 percentage points higher, 4.30 percentage points higher, and 2.62ms shorter than the original MobileNetV2 model, respectively. The parameter score of MobileNetV2_CA model was only 2.36×106, which was 31.59% lower than the original MobileNetV2 network model. In addition, the NCNN deep learning framework was used to train MobileNetV2_CA model, which was further applied to Android mobile terminal through format conversion. The verification of mobile terminal detection of NCNN deep learning training model was investigated and compared with TensorFlow Lite deep learning model. Results showed that the NCNN deep learning model had an average recognition accuracy of 92.72%, an average detection time of 22.1ms for a single egg, and the library file size of 2.7MB, indicating its better performance than TensorFlow Lite and meeting the requirement of practical applications. The effectiveness of the proposed system based on deep learning was finally demonstrated.

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

范维,胡建超,王巧华,汤文权.基于深度学习的移动端缺陷蛋检测系统研究[J].农业机械学报,2023,54(3):411-420. FAN Wei, HU Jianchao, WANG Qiaohua, TANG Wenquan. Detection System Study of Defective Egg on Mobile Devices Based on Deep Learning[J]. Transactions of the Chinese Society for Agricultural Machinery,2023,54(3):411-420.

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2022-05-26
  • 最后修改日期:
  • 录用日期:
  • 在线发布日期: 2023-03-10
  • 出版日期: