Hongfei Zhu , Yifan Zhao , Longgang Zhao , Ranbing Yang , Zhongzhi Han
{"title":"Pixel-level spectral reconstruction and compressed projection based on deep learning in detecting aflatoxin B1","authors":"Hongfei Zhu , Yifan Zhao , Longgang Zhao , Ranbing Yang , Zhongzhi Han","doi":"10.1016/j.compag.2025.110071","DOIUrl":null,"url":null,"abstract":"<div><div>Aflatoxin, a highly toxic substance posing a substantial threat to food safety, necessitates a reliable detection method. This paper introduces a pioneering aflatoxin detection approach based on spectral reconstruction and projection compression model. The proposed method effectively addresses data imbalance by reconstructing aflatoxin spectra. The reconstructed spectra achieve remarkable performance, with a training RMSE (root-mean-square error) of 0.0242 and a test RMSE of 0.0214. Subsequently, the LSTM (Long Short Term Memory) model is trained on a dataset comprising 25% reconstructed AFB1 spectra and 75% original spectra, resulting in a testing accuracy of 98.55% and a testing loss of 0.0611. To further enhance the model performance, PCA (Principal Component Analysis) and compression projection are employed to reduce the LSTM model’s parameters. Despite reducing the LSTM internal parameters, the fine-tuned LSTM achieves an outstanding testing accuracy of 98.30%. This research presents a practical and efficient aflatoxin detection approach, offering improved accuracy and significantly reduced model complexity. The proposed algorithm holds great potential for enhancing the detection capabilities of intelligent sorting equipment.</div></div>","PeriodicalId":50627,"journal":{"name":"Computers and Electronics in Agriculture","volume":"232 ","pages":"Article 110071"},"PeriodicalIF":8.9000,"publicationDate":"2025-05-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computers and Electronics in Agriculture","FirstCategoryId":"97","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0168169925001772","RegionNum":1,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2025/2/11 0:00:00","PubModel":"Epub","JCR":"Q1","JCRName":"AGRICULTURE, MULTIDISCIPLINARY","Score":null,"Total":0}
引用次数: 0
Abstract
Aflatoxin, a highly toxic substance posing a substantial threat to food safety, necessitates a reliable detection method. This paper introduces a pioneering aflatoxin detection approach based on spectral reconstruction and projection compression model. The proposed method effectively addresses data imbalance by reconstructing aflatoxin spectra. The reconstructed spectra achieve remarkable performance, with a training RMSE (root-mean-square error) of 0.0242 and a test RMSE of 0.0214. Subsequently, the LSTM (Long Short Term Memory) model is trained on a dataset comprising 25% reconstructed AFB1 spectra and 75% original spectra, resulting in a testing accuracy of 98.55% and a testing loss of 0.0611. To further enhance the model performance, PCA (Principal Component Analysis) and compression projection are employed to reduce the LSTM model’s parameters. Despite reducing the LSTM internal parameters, the fine-tuned LSTM achieves an outstanding testing accuracy of 98.30%. This research presents a practical and efficient aflatoxin detection approach, offering improved accuracy and significantly reduced model complexity. The proposed algorithm holds great potential for enhancing the detection capabilities of intelligent sorting equipment.
黄曲霉毒素是一种对食品安全构成重大威胁的剧毒物质,需要可靠的检测方法。介绍了一种基于光谱重构和投影压缩模型的黄曲霉毒素检测方法。该方法通过重建黄曲霉毒素光谱,有效地解决了数据不平衡问题。重建光谱的训练均方根误差(RMSE)为0.0242,测试均方根误差(RMSE)为0.0214。随后,LSTM (Long Short Term Memory,长短期记忆)模型在包含25%重建AFB1光谱和75%原始光谱的数据集上进行训练,测试准确率为98.55%,测试损失为0.0611。为了进一步提高模型的性能,采用主成分分析(PCA)和压缩投影对LSTM模型的参数进行了降阶处理。尽管降低了LSTM的内部参数,但优化后的LSTM的测试精度达到了98.30%。本研究提出了一种实用高效的黄曲霉毒素检测方法,提高了检测精度,显著降低了模型复杂度。该算法在提高智能分拣设备的检测能力方面具有很大的潜力。
期刊介绍:
Computers and Electronics in Agriculture provides international coverage of advancements in computer hardware, software, electronic instrumentation, and control systems applied to agricultural challenges. Encompassing agronomy, horticulture, forestry, aquaculture, and animal farming, the journal publishes original papers, reviews, and applications notes. It explores the use of computers and electronics in plant or animal agricultural production, covering topics like agricultural soils, water, pests, controlled environments, and waste. The scope extends to on-farm post-harvest operations and relevant technologies, including artificial intelligence, sensors, machine vision, robotics, networking, and simulation modeling. Its companion journal, Smart Agricultural Technology, continues the focus on smart applications in production agriculture.