Zhang Wenjing, Xue Heru, Jiang Xinhua, Liu Jiangping
College of Computer and Information Engineering Inner Mongolia Agricultural University Saihan District, Hohhot China.
Key Laboratory of Big Data Research and Application in Agriculture and Animal Husbandry Saihan District, Hohhot China.
Food Sci Nutr. 2024 Dec 10;13(1):e4556. doi: 10.1002/fsn3.4556. eCollection 2025 Jan.
Protein content is an important index in the assessment of dairy nutrition. As a crucial source of protein absorption in people's daily life, the quality of milk powder products not only has a deep impact on the development of the dairy industry, but also seriously damages the health of consumers. It is of great significance to find a faster and more accurate method for detecting milk protein content. This paper utilizes the chemical content of milk powder and hyperspectral data as independent variables. By comparing 14 kinds of preprocessing algorithms, the mean-centered (MC) method is selected to preprocess the data, and then the combined method of competitive adaptive reweighted sampling (CARS) and uninformative variable elimination (UVE) is used to screen the feature wavelength, so as to establish the model and learn the internal dynamic change law of the feature. Furthermore, the Attention mechanism was introduced to assign different weights to bidirectional long short-term memory (BiLSTM) hidden states through mapping weighting and learning parameter matrix. To reduce the loss of information and strengthen the influence of important information, at the same time, in order to solve the difficult problem of hyperparameter selection of the model, the whale optimization algorithm (WOA) is proposed to optimize the hyperparameter selection of the model. The test results showed that with WOA-BiLSTM-Attention model algorithm, the coefficient of determination ( ) of 0.9975 and root mean square error (RMSEP) of 0.0337 in comparison with and RMSEP values obtained from BiLSTM-Attention model algorithm, which were higher by 0.799% lower by 56.5%, respectively. This study provides algorithm support and theoretical basis for fast non-destructive testing based on deep learning algorithm to predict protein content in milk powder.
蛋白质含量是评估乳制品营养的一项重要指标。作为人们日常生活中蛋白质吸收的重要来源,奶粉产品质量不仅对乳制品行业的发展有着深远影响,还严重损害消费者健康。找到一种更快、更准确检测牛奶蛋白质含量的方法具有重要意义。本文将奶粉的化学成分和高光谱数据作为自变量。通过比较14种预处理算法,选择均值中心化(MC)方法对数据进行预处理,然后采用竞争性自适应重加权采样(CARS)和无信息变量消除(UVE)相结合的方法筛选特征波长,从而建立模型并了解特征的内部动态变化规律。此外,引入注意力机制,通过映射加权和学习参数矩阵为双向长短期记忆(BiLSTM)隐藏状态分配不同权重。为减少信息损失并加强重要信息的影响,同时,为解决模型超参数选择这一难题,提出鲸鱼优化算法(WOA)对模型的超参数选择进行优化。测试结果表明,与BiLSTM - 注意力模型算法得到的 和均方根误差(RMSEP)值相比,采用WOA - BiLSTM - 注意力模型算法时,决定系数( )为0.9975,均方根误差(RMSEP)为0.0337,分别提高了0.799%和降低了56.5%。本研究为基于深度学习算法快速无损检测奶粉中蛋白质含量提供了算法支持和理论依据。