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

被引:0
作者
Fan W. [1 ]
Hu J. [1 ]
Wang Q. [1 ,2 ]
Tang W. [1 ]
机构
[1] College of Engineering, Huazhong Agricultural University, Wuhan
[2] Key Laboratory of Agricultural Equipment in Mid-lower Yangtze River, Ministry of Agriculture and Rural Affairs, Wuhan
来源
Nongye Jixie Xuebao/Transactions of the Chinese Society for Agricultural Machinery | 2023年 / 54卷 / 03期
关键词
deep learning; defective egg; mobile devices; model optimization; non-destructive detection;
D O I
10.6041/j.issn.1000-1298.2023.03.042
中图分类号
学科分类号
摘要
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.9 ms for a single egg, which was 3.60 percentage points higher, 4.30 percentage points higher, and 2.62 ms 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.1 ms for a single egg, and the library file size of 2.7 MB, 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. © 2023 Chinese Society of Agricultural Machinery. All rights reserved.
引用
收藏
页码:411 / 420
页数:9
相关论文
共 27 条
[1]  
LU Bingfeng, LIU Min, PEI Xinrong, Results analysis ol the national food safety supervision and sampling inspection of eggs in 2018 [J], Journal of Food Safety and Quality, 11, 1, pp. 319-323, (2020)
[2]  
LI Qingxu, WANG Qiaohua, Feature detection method of small sample poultry egg image based on prototypical network [J], Transactions of the Chinese Society for Agricultural Machinery, 52, 11, pp. 376-383, (2021)
[3]  
WANG Ming, YU Jinying, HU Yanxiang, Et al., Application of nondestructive testing technology in detection of egg quality [J], Food Science and Technology, 46, 4, pp. 268-272, (2021)
[4]  
GENG L, YAN T, XIAO Z, Et al., Hatching eggs classification based on deep learning, Multimedia Tools Applications, 77, pp. 22071-22082, (2018)
[5]  
GUANJUN B, MIMI J, YI X, Et al., Cracked egg recognition based on machine vision, Computers and Electronics in Agriculture, 158, 3, pp. 159-166, (2019)
[6]  
TURKOGLU M., Defective egg detection based on deep features and bidirectional long-short-term-memory, Computers and Electronics in Agriculture, 185, (2021)
[7]  
ABDULLAH M H, NASHAT S, ANWAR S A, Et al., A framework for crack detection of fresh poultry eggs at visible radiation [J], Computers and Electronics in Agriculture, 141, pp. 81-95, (2017)
[8]  
LIANG Dan, LI Ping, LIANG Dongtai, Et al., Integrated inspection and grading system of the egg quality based on machine vision[J], Journal of Chinese Institute of Food Science and Technology, 20, 11, pp. 247-254, (2020)
[9]  
NASIRI A, OMID M, TAHERI-GARAVAND A., An automatic sorting system for unwashed eggs using deep learning, Journal of Food Engineering, 283, 1, (2020)
[10]  
LI Qingxu, WANG Qiaohua, GU Wei, Et al., Non-destructive testing of early fertilization information in duck egg laying based on deep learning [J], Transactions of the Chinese Society for Agricultural Machinery, 51, 1, pp. 188-194, (2020)