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":7.7000,"publicationDate":"2025-02-11","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":"","PubModel":"","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.
期刊介绍:
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.