|
|
|
|
|
|
Hyperspectral Analysis of Milk Protein Content Using SVM Optimized by Sparrow Search Algorithm |
LIU Mei-chen, XUE He-ru*, LIU Jiang-ping, DAI Rong-rong, HU Peng-wei, HUANG Qing, JIANG Xin-hua |
College of Computer and Information Engineering, Inner Mongolia Agricultural University,Huhhot 010000,China
|
|
|
Abstract Milk contains many nutritional elements needed by the human body, such as fat, protein, calcium, etc. Therefore, analysing nutritional elements in milk is a key part of milk safety detection. Hyperspectral technology can effectively identify nutritional elements in milk by combining image and spectral data. In order to quickly and accurately predict protein content in milk, the Competitive Adaptive Reweighted Sampling (CARS) algorithm was used to select characteristic wavelengths. A method based on Sparrow Search Algorithm (SSA) to optimize Support Vector Machine (SVM) was proposed to predict milk protein content. The reflectance spectra of milk (400~1 000 nm) extracted by the hyperspectral spectrometer were used for the experiment. During Normalization (N), Standardization and Multiplicative Scatter Correction (MSC), the original milk data are used for spectral noise reduction to improve spectral utilization. The successive projections algorithm (SPA) and the competitive adaptive re-weighting algorithm were used to extract the feature wavelengths from the processed milk spectral data. The correlation coefficients between proteins and the spectrum were calculated and ranked by importance to obtain the important feature wavelengths. In the end, through SVM, the Genetic Algorithm (GA)-SVM, Particle Swarm Optimization (PSO)-SVM and Partial Least-Regression (PLS) algorithm was used to predict milk proteins and compare the prediction results. In order to improve the accuracy of protein prediction and model stability, SSA was proposed to optimize the kernel function G and penalty parameter C of SVM. Root Mean Squared Error (RMSE) was used as the fitness function, and the optimal regression parameters were selected through iteration to train the model. The results of milk data prediction showed that the optimal combination model was MSC-CARS-SSA-SVM. The determination coefficient R2 of the model test set was 0.999 6, the root means square error RMSE was 0.001 1, and the time was 4.112 1 seconds. The results show that the CARS algorithm can extract the characteristic bands and eliminate redundant information, thus improving the efficiency of the model and simplifying the algorithm’s complexity. The SSA algorithm optimizes SVM’s parameters and can quickly obtain the global optimal solution by iteratively updating the optimal position. Compared with SVM, GA-SVM, PSO-SVM and PLS, the prediction accuracy and model stability are significantly improved, which meets the accuracy requirements of milk detection, and is a feasible new method for fast detection of milk protein. It provides a theoretical reference for the optimization of spectral models and the improvement of prediction model accuracy.
|
Received: 2021-04-16
Accepted: 2021-07-16
|
|
Corresponding Authors:
XUE He-ru
E-mail: xuehr@imau.edu.cn
|
|
[1] Laverroux S,Picard F, Andueza D, et al. Food Chemistry, 2021, 342: 128310.
[2] FAN Rui, SUN Xiao-kai, CHEN Jie, et al (范 睿, 孙晓凯, 陈 杰, 等). Modern Food Science and Technology(现代食品科技), 2017, 33(11): 264.
[3] HUANG Bao-ying, SHE Zhi-yun, WANG Wen-min, et al(黄宝莹, 佘之蕴, 王文敏, 等). China Brewing(中国酿造), 2020, 39(7): 16.
[4] Munir M T,Vilson D I, Yu W, et al. Journal of Food Engineering, 2018, 221: 1.
[5] ZHAO Zi-zhu, WEI Yong, ZHANG Nai-qian, et al(赵紫竹,卫 勇,张乃迁, 等). China Dairy Industry(中国乳品工业), 2018, 46(2): 45.
[6] LUO Hao-dong, LIU Cui-ling, SUN Xiao-rong, et al(罗浩东, 刘翠玲, 孙晓荣, 等). China Brewing(中国酿造), 2021, 40(4): 183.
[7] Xuan Wang,Wang Yanxue. Journal of Physics: Conference Series, 2021, 1820(1): 012078.
[8] ZHANG Xu-hui, ZHANG Kai-xin, ZHANG Chao, et al(张旭辉, 张楷鑫, 张 超, 等). Journal of Xi’an University of Science and Technology(西安科技大学学报), 2020, 40(5): 760.
[9] Yang J,Sun L J, Xing W,et al. Spectrochimica Acta Part A: Molecular and Biomolecular Spectroscopy, 2021, 253: 119585.
[10] SHEN Zhi-chao, ZHAO Zhi-heng, LU Lei, et al(申志超, 赵志衡, 卢 雷,等). Journal of the Chinese Cereals and Oils Association(中国粮油学报), 2021, 36(3): 140.
[11] TAO Zhi-yong, YU Zi-jia, LIN Sen(陶志勇, 于子佳, 林 森). Journal of Electronic Measurement and Instrumentation(电子测量与仪器学报), 2021, 35(1): 18.
[12] LI Ya-li, WANG Shu-qin, CHEN Qian-ru, et al(李雅丽, 王淑琴, 陈倩茹, 等). Computer Engineering and Applications(计算机工程与应用), 2020, 56(22): 1.
[13] LÜ Xin, MU Xiao-dong, ZHANG Jun(吕 鑫, 慕晓冬, 张 钧). Systems Engineering and Electronics(系统工程与电子技术), 2021, 43(2): 318.
[14] ZHOU Meng-ran, YU Dao-yang, HU Feng, et al(周孟然, 余道洋, 胡 锋, 等). Journal of Henan Normal University·Natural Science Edition(河南师范大学学报·自然科学版), 2021, 49(2): 46.
[15] YUAN Zi-ran, WEI Li-fei, ZHANG Yang-xi, et al(袁自然, 魏立飞, 张杨熙, 等). Spectroscopy and Spectral Analysis(光谱学与光谱分析), 2020, 40(2): 567.
[16] XIAO Hai-jun, LU Chang-jing, HE Fan(肖海军, 卢常景, 何 凡). Journal of South-Central University for Nationalities·Natural Science Edition(中南民族大学学报·自然科学版), 2017, 36(3): 90.
|
[1] |
BAO Hao1, 2,ZHANG Yan1, 2*. Research on Spectral Feature Band Selection Model Based on Improved Harris Hawk Optimization Algorithm[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2024, 44(01): 148-157. |
[2] |
WANG Cai-ling1,ZHANG Jing1,WANG Hong-wei2*, SONG Xiao-nan1, JI Tong3. A Hyperspectral Image Classification Model Based on Band Clustering and Multi-Scale Structure Feature Fusion[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2024, 44(01): 258-265. |
[3] |
GAO Hong-sheng1, GUO Zhi-qiang1*, ZENG Yun-liu2, DING Gang2, WANG Xiao-yao2, LI Li3. Early Classification and Detection of Kiwifruit Soft Rot Based on
Hyperspectral Image Band Fusion[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2024, 44(01): 241-249. |
[4] |
WU Hu-lin1, DENG Xian-ming1*, ZHANG Tian-cai1, LI Zhong-sheng1, CEN Yi2, WANG Jia-hui1, XIONG Jie1, CHEN Zhi-hua1, LIN Mu-chun1. A Revised Target Detection Algorithm Based on Feature Separation Model of Target and Background for Hyperspectral Imagery[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2024, 44(01): 283-291. |
[5] |
CHENG Hui-zhu1, 2, YANG Wan-qi1, 2, LI Fu-sheng1, 2*, MA Qian1, 2, ZHAO Yan-chun1, 2. Genetic Algorithm Optimized BP Neural Network for Quantitative
Analysis of Soil Heavy Metals in XRF[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2023, 43(12): 3742-3746. |
[6] |
CHU Bing-quan1, 2, LI Cheng-feng1, DING Li3, GUO Zheng-yan1, WANG Shi-yu1, SUN Wei-jie1, JIN Wei-yi1, HE Yong2*. Nondestructive and Rapid Determination of Carbohydrate and Protein in T. obliquus Based on Hyperspectral Imaging Technology[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2023, 43(12): 3732-3741. |
[7] |
SHEN Si-cong, ZHANG Jing-xue, CHEN Ming-hui, LI Zhi-wei, SUN Sheng-nan, YAN Xue-bing*. Estimation of Above-Ground Biomass and Chlorophyll Content of
Different Alfalfa Varieties Based on UAV Multi-Spectrum[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2023, 43(12): 3847-3852. |
[8] |
HUANG You-ju1, TIAN Yi-chao2, 3*, ZHANG Qiang2, TAO Jin2, ZHANG Ya-li2, YANG Yong-wei2, LIN Jun-liang2. Estimation of Aboveground Biomass of Mangroves in Maowei Sea of Beibu Gulf Based on ZY-1-02D Satellite Hyperspectral Data[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2023, 43(12): 3906-3915. |
[9] |
ZHOU Bei-bei1, LI Heng-kai1*, LONG Bei-ping2. Variation Analysis of Spectral Characteristics of Reclaimed Vegetation in an Ionic Rare Earth Mining Area[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2023, 43(12): 3946-3954. |
[10] |
BAI Xue-bing1, 2, SONG Chang-ze1, ZHANG Qian-wei1, DAI Bin-xiu1, JIN Guo-jie1, 2, LIU Wen-zheng1, TAO Yong-sheng1, 2*. Rapid and Nndestructive Dagnosis Mthod for Posphate Dficiency in “Cabernet Sauvignon” Gape Laves by Vis/NIR Sectroscopy[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2023, 43(12): 3719-3725. |
[11] |
YUAN Wei-dong1, 2, JU Hao2, JIANG Hong-zhe1, 2, LI Xing-peng2, ZHOU Hong-ping1, 2*, SUN Meng-meng1, 2. Classification of Different Maturity Stages of Camellia Oleifera Fruit
Using Hyperspectral Imaging Technique[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2023, 43(11): 3419-3426. |
[12] |
FU Gen-shen1, LÜ Hai-yan1, YAN Li-peng1, HUANG Qing-feng1, CHENG Hai-feng2, WANG Xin-wen3, QIAN Wen-qi1, GAO Xiang4, TANG Xue-hai1*. A C/N Ratio Estimation Model of Camellia Oleifera Leaves Based on
Canopy Hyperspectral Characteristics[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2023, 43(11): 3404-3411. |
[13] |
SHEN Ying, WU Pan, HUANG Feng*, GUO Cui-xia. Identification of Species and Concentration Measurement of Microalgae Based on Hyperspectral Imaging[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2023, 43(11): 3629-3636. |
[14] |
XIE Peng, WANG Zheng-hai*, XIAO Bei, CAO Hai-ling, HUANG Yi, SU Wen-lin. Hyperspectral Quantitative Inversion of Soil Selenium Content Based on sCARS-PSO-SVM[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2023, 43(11): 3599-3606. |
[15] |
QIAN Rui1, XU Wei-heng2, 3 , 4*, HUANG Shao-dong2, WANG Lei-guang2, 3, 4, LU Ning2, OU Guang-long1. Tea Plantations Extraction Based on GF-5 Hyperspectral Remote Sensing
Imagery in the Mountainous Area[J]. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2023, 43(11): 3591-3598. |
|
|
|
|