分析化学2026,Vol.54Issue(1):100-112,中插8-中插9,15.DOI:10.19756/j.issn.0253-3820.251249
融合注意力机制与一维超深度卷积双向长短期记忆网络的三聚氰胺鉴别方法
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
摘要
Abstract
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.关键词
三聚氰胺/一维卷积神经网络/双向长短期记忆网络/注意力机制/鉴别Key words
Melamine/One-dimensional convolutional neural network/Bidirectional long short-term memory network/Attention mechanism/Identification引用本文复制引用
陈冬英,张昊,张禹,余沐昕,魏建崇..融合注意力机制与一维超深度卷积双向长短期记忆网络的三聚氰胺鉴别方法[J].分析化学,2026,54(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). (No.22101047)