Abstract
[Objective] To achieve fine classification of eggs and improve the accuracy of egg appearance detection.[Methods] An egg appearance detection scheme based on improved convolutional neural network (CNN ) and hierarchical support vector machine (SVM ) was proposed.① Egg images with different orientations and appearances were captured using an egg machine vision image acquisition device,and image enhancement techniques were applied to expand the egg image database.② An improved Coati optimization algorithm (COA ) and fuzzy C -means (FCM ) clustering algorithm were designed,based on which the structure and hyperparameters of the CNN model were optimized to enhance its generalization ability.The optimized CNN was then used for deep learning on the egg image database to effectively extract features from egg appearance images.③ A hierarchical SVM was established for fine classification of egg appearance,ultimately achieving accurate detection and classification of egg appearance.[Results] The detection accuracy of the proposed egg appearance detection scheme improved by 1.74%~4.31%,and the detection time was reduced by 21.68%~53.51%.[Conclusion] The proposed method effectively enables online real -time fine classification of eggs.
Publication Date
4-3-2025
First Page
158
Last Page
164
DOI
10.13652/j.spjx.1003.5788.2024.60138
Recommended Citation
Wanpeng, YAO; Lingxiao, ZHANG; Xiaofeng, ZHAO; and Feicheng, WANG
(2025)
"Egg appearance detection based on improved CNN and hierarchical SVM,"
Food and Machinery: Vol. 41:
Iss.
1, Article 20.
DOI: 10.13652/j.spjx.1003.5788.2024.60138
Available at:
https://www.ifoodmm.cn/journal/vol41/iss1/20
References
[1] 杨红欣,唐兴萍,杨正明,等.多光谱技术在食品无损检测中的应用进展 [J].食品工业科技,2024,45(8):350-357.YANG H X,TANG X P,YANG Z M,et al.Application research and prospects of multispectral technology in non-destructive testing of food [J].Science and Technology of Food Industry,2024,45(8):350-357.
[2] 庄珑昱,郑江霞.鸡蛋品质评价方法研究进展及其影响因素分析 [J].中国家禽,2024,46(3):87-94.ZHUANG L Y,ZHENG J X.Research progress on egg quality evaluation methods and their influencing factors [J].China Poultry,2024,46(3):87-94.
[3] 李舒,唐梦笛,同思远,等.基于卷积神经网络模型的裂纹鸡蛋图像识别 [J].食品与机械,2023,39(11):18-22,63.LI S,TANG M D,TONG S Y,et al.Research on image recognition of cracked eggs based on convolutional neural network model [J].Food & Machinery,2023,39(11):18-22,63.
[4] 涂伟沪,蔡玲霞,李学军.基于改进蝗虫算法优化 Canny 算子的 鸡 蛋 裂 纹 图 像 检 测 [J].食 品 与 机 械,2022,38(2):167-172,202.TU W H,CAI L X,LI X J.Egg crack image detection method based on improved grasshopper optimization algorithm and Canny operator [J].Food & Machinery,2022,38(2):167-172,202.
[5] 张健,崔英杰.基于改进粒子群算法的鸡蛋裂纹检测方法 [J].食品与机械,2020,36(7):136-139,226.ZHANG J,CUI Y J.Egg crack detection based on improved particle swarm optimization [J].Food & Machinery,2020,36(7):136-139,226.
[6] 齐歌,赵峰,李婉宁.基于 CNN-SVM 模型的鸡蛋外观品质检测[J].食品与机械,2024,40(8):113-119,156.QI G,ZHAO F,LI W N.Egg appearance quality detection based on CNN-SVM model [J].Food & Machinery,2024,40(8):113-119,156.
[7] TANG W Q,HU J C,WANG Q H.High-throughput online visual detection method of cracked preserved eggs based on deep learning [J].Applied Sciences,2022,12(3):952.
[8] WANNASIN D,GROSSMANN L,MCCLEMENTS D J.Optimizing the appearance of plant-based foods using natural pigments and color matching theory [J].Food Biophysics,2024,19(1):120-130.
[9] ROH J,KIM M,BAE K.Towards a small language model powered chain-of-reasoning for open-domain question answering [J].ETRI Journal,2024,46(1):11-21.
[10] 杨航,何皓明,李滕科,等.基于改进 YOLOv 5的鸽子蛋壳破损 检 测 [J].西 南 师 范 大 学 学 报 (自 然 科 学 版 ),2023,48(8):92-102.YANG H,HE H M,LI T K,et al.Detection of pigeon eggshell breakage based on improved YOLOv 5[J].Journal of Southwest China Normal University (Natural Science Edition ),2023,48(8):92-102.
[11] WANG D,TIAN F C,YANG S X,et al.Improved deep CNN with parameter initialization for data analysis of near-infrared spectroscopy sensors [J].Sensors,2020,20(3):874.
[12] 孙海蓉,周映杰.基于散点图 -AlexNet 网络的光伏红外热图像识别方法 [J].太阳能学报,2023,44(1):55-61.SUN H R,ZHOU Y J.Photovoltaic infrared thermal image recognition method based on scatter plot-AlexNet network [J].Acta Energiae Solaris Sinica,2023,44(1):55-61.
[13] ROSEBROCK A.Deep learning for computer vision with python-starter bundle [M].Baltimore:PyImage Search,2017:189-190.
[14] DEHGHANI M,MONTAZERI Z,TROJOVSKÁ E,et al.Coati optimization algorithm:a new bio-inspired metaheuristic algorithm for solving optimization problems [J].Knowledge-Based Systems,2023,259:110011.
[15] HOUSSEIN E H,ABDEL SAMEE N,MAHMOUD N F,et al.Dynamic Coati Optimization algorithm for biomedical classification tasks [J].Computers in Biology and Medicine,2023,164:107237.
[16] 秦敏敏,刘立芳,齐小刚.面向维修资源分配调度的遗传—长 鼻 浣 熊 混 合 优 化 算 法 [J].智 能 系 统 学 报,2023,18(6):1 322-1 335.QIN M M,LIU L F,QI X G.Hybrid genetic long-nosed raccoon optimization algorithm for maintenance resource allocation and scheduling [J].CAAI Transactions on Intelligent Systems,2023,18(6):1 322-1 335.
[17] LI S M,CHEN H L,WANG M J,et al.Slime mould algorithm:a new method for stochastic optimization [J].Future Generation Computer Systems,2020,111:300-323.
[18] ABDOLLAHZADEH B,GHAREHCHOPOGH F S,MIRJALILI S.African vultures optimization algorithm:a new nature-inspired metaheuristic algorithm for global optimization problems [J].Computers & Industrial Engineering,2021,158:107408.
[19] TROJOVSKÁ E,DEHGHANI M,TROJOVSKÝ P.Zebra optimization algorithm:a new bio-inspired optimization algorithm for solving optimization algorithm [J].IEEE Access,2022,10:49 445-49 473.
[20] 梁旭,王玲,赵书涵.基于残差神经网络的鸡蛋分类识别研究[J].河南农业大学学报,2024,58(3):456-466.LIANG X,WANG L,ZHAO S H.Research on egg classification and recognition based on residual neural network[J].Journal of Henan Agricultural University,2024,58(3):456-466.
[21] 魏 晶 鑫,陈 中 举,许 浩 然.融 合 Fasternet 与YOLOv 5模 型 的鸡蛋外观检测 [J].食品与机械,2024,40(8):105-112,165.WEI J X,CHEN Z J,XU H R.Detection of egg appreance based on Fasternet and YOLOv 5 model [J].Food & Machinery,2024,40(8):105-112,165.
[22] 苗荣慧,李志伟,武锦龙.基于改进 YOLO v 7的轻量化樱桃番 茄 成 熟 度 检 测 方 法 [J].农 业 机 械 学 报,2023,54(10):225-233.MIAO R H,LI Z W,WU J L.Lightweight maturity detection of cherry tomato based on improved YOLO v 7[J].Transactions of the Chinese Society for Agricultural Machinery,2023,54(10):225-233.