融合注意力机制与一维超深度卷积双向长短期记忆网络的三聚氰胺鉴别方法OA
A Method for Melamine Identification Based on A One-Dimensional Very Deep Convolutional Neural Network-Bidirectional Long Short-Term Memory Network Fused with An Attention Mechanism
奶制品中的三聚氰胺污染对婴幼儿健康构成严重威胁.传统的三聚氰胺检测方法存在效率低和操作复杂等不足.本研究提出了一种融合注意力机制的一维超深度卷积神经网络(1D-VDCNN)与双向长短期记忆网络(BiLSTM-Attention)的分类模型,实现了三聚氰胺的无损高效鉴别.1D-VDCNN模型通过引入2个约束条件优化特征层,采用降采样与大卷积核替代全连接层,实现低复杂度和纵向特征提取增强;BiLSTM网络提取特征序列中的双向长程依赖关系,强化横向特征关联;集成注意力机制提升关键光谱特征的权重分配.本研究采用开源三聚氰胺近红外光谱数据集,样本总数为1972,最大单类样本数为500,光谱范围为5546~6254 cm–1,模型分类准确率可达到99.75%,模型参数量较基准模型降低约43%,收敛速度与特征提取能力显著提升,表现出良好的稳定性与泛化能力.相较于单一BiLSTM模型和传统计量方法,本模型的准确率提升约10%,适用于小样本光谱数据,为食品安全检测提供了高精度、轻量化的化学计量学新方法.
To address the critical safety issue of melamine contamination in dairy products,a novel classification model that integrated one-dimensional very deep convolutional neural network(1D-VDCNN)with bidirectional long short-term memory and attention mechanism(BiLSTM-Attention)was developed for nondestructive and efficient identification of melamine.Traditional detection methods suffered from low efficiency and operational complexity.In the proposed 1D-VDCNN module,two constraints were introduced to optimize the feature layers,while downsampling and large convolutional kernels replaced fully connected layers to reduce computational complexity and enhance vertical feature extraction.Subsequently,the BiLSTM network was employed to capture bidirectional long-range dependencies within the feature sequences,thereby strengthening the relationships of horizontal feature.Finally,an attention mechanism was integrated to assign higher weights to critical spectral features.Experiments were conducted using an open-source near-infrared spectral dataset of melamine,comprising 1972 samples with a maximum of 500 samples per class,covering a spectral range of 5546‒6254 cm–1.The results demonstrated that the proposed model achieved a classification accuracy of 99.75%,with a parameter reduction of approximately 43%compared to the baseline model.Also,the model exhibited significantly improved convergence speed and feature extraction capability,along with robust stability and generalization across different sample sets.Compared to a standalone BiLSTM model and three traditional chemometric methods,the accuracy improvement could reach up to approximately 10%.This model was well-suited for small-sample spectral data and offered a high-accuracy,lightweight chemometric approach for food safety detection.
陈冬英;张昊;张禹;余沐昕;魏建崇
福建江夏学院电子信息科学学院,福州 350108||福建江夏学院数字福建智能家居信息采集及处理物联网实验室,福州 350108福建江夏学院电子信息科学学院,福州 350108||福建江夏学院数字福建智能家居信息采集及处理物联网实验室,福州 350108福建江夏学院电子信息科学学院,福州 350108福建江夏学院电子信息科学学院,福州 350108福建江夏学院电子信息科学学院,福州 350108||福建江夏学院数字福建智能家居信息采集及处理物联网实验室,福州 350108
三聚氰胺一维卷积神经网络双向长短期记忆网络注意力机制鉴别
MelamineOne-dimensional convolutional neural networkBidirectional long short-term memory networkAttention mechanismIdentification
《分析化学》 2026 (1)
100-112,中插8-中插9,15
国家自然科学基金项目(No.22101047)、福建省自然科学基金项目(No.2023J011094)和福建省教育教学改革研究重大项目(No.FBJY20240225)资助. Supported by the National Natural Science Foundation of China(No.22101047),the Natural Science Foundation of Fujian Province(No.2023J011094)and the Major Educational Reform Research Project of Fujian Province(No.FBJY20240225).
评论