Cong Wang , Yifan Zhao , Hongfei Zhu , Weiming Shi , Qiong Wu , Huayu Fu , Zhongzhi Han
{"title":"基于视觉变换和多尺度卷积融合的花生黄曲霉毒素检测","authors":"Cong Wang , Yifan Zhao , Hongfei Zhu , Weiming Shi , Qiong Wu , Huayu Fu , Zhongzhi Han","doi":"10.1016/j.foodchem.2025.144300","DOIUrl":null,"url":null,"abstract":"<div><div>Aflatoxin is a highly toxic substance found in peanuts, posing a serious threat to human health. To address this issue, an improved 1D-MCFViT model combining the Vision Transformer with multi-scale convolutional fusion is proposed to detect aflatoxin-contaminated peanuts under natural conditions. After data cleaning, indistinguishable samples in RGB images were obtained, and their spectral curves were extracted. Data generation was performed using autoencoder network and Gaussian resampling techniques, significantly enhancing the model's feature discrimination capability. This approach achieved 92.6 % accuracy and 94.4 % recall on the validation set, improving accuracy by 1.23 % over the 1D-ViT model. The performance of traditional machine learning and deep learning models before and after data generation was compared, demonstrating this method outperforms traditional machine learning models as well as mainstream deep learning models. This approach improves aflatoxin detection accuracy and provides a robust foundation for developing online detection devices.</div></div>","PeriodicalId":318,"journal":{"name":"Food Chemistry","volume":"483 ","pages":"Article 144300"},"PeriodicalIF":9.8000,"publicationDate":"2025-04-09","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Aflatoxin detection in naturally contaminated peanuts based on vision transformer and multi-scale convolutional fusion\",\"authors\":\"Cong Wang , Yifan Zhao , Hongfei Zhu , Weiming Shi , Qiong Wu , Huayu Fu , Zhongzhi Han\",\"doi\":\"10.1016/j.foodchem.2025.144300\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>Aflatoxin is a highly toxic substance found in peanuts, posing a serious threat to human health. To address this issue, an improved 1D-MCFViT model combining the Vision Transformer with multi-scale convolutional fusion is proposed to detect aflatoxin-contaminated peanuts under natural conditions. After data cleaning, indistinguishable samples in RGB images were obtained, and their spectral curves were extracted. Data generation was performed using autoencoder network and Gaussian resampling techniques, significantly enhancing the model's feature discrimination capability. This approach achieved 92.6 % accuracy and 94.4 % recall on the validation set, improving accuracy by 1.23 % over the 1D-ViT model. The performance of traditional machine learning and deep learning models before and after data generation was compared, demonstrating this method outperforms traditional machine learning models as well as mainstream deep learning models. This approach improves aflatoxin detection accuracy and provides a robust foundation for developing online detection devices.</div></div>\",\"PeriodicalId\":318,\"journal\":{\"name\":\"Food Chemistry\",\"volume\":\"483 \",\"pages\":\"Article 144300\"},\"PeriodicalIF\":9.8000,\"publicationDate\":\"2025-04-09\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Food Chemistry\",\"FirstCategoryId\":\"97\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S0308814625015511\",\"RegionNum\":1,\"RegionCategory\":\"农林科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"CHEMISTRY, APPLIED\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Food Chemistry","FirstCategoryId":"97","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0308814625015511","RegionNum":1,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"CHEMISTRY, APPLIED","Score":null,"Total":0}
Aflatoxin detection in naturally contaminated peanuts based on vision transformer and multi-scale convolutional fusion
Aflatoxin is a highly toxic substance found in peanuts, posing a serious threat to human health. To address this issue, an improved 1D-MCFViT model combining the Vision Transformer with multi-scale convolutional fusion is proposed to detect aflatoxin-contaminated peanuts under natural conditions. After data cleaning, indistinguishable samples in RGB images were obtained, and their spectral curves were extracted. Data generation was performed using autoencoder network and Gaussian resampling techniques, significantly enhancing the model's feature discrimination capability. This approach achieved 92.6 % accuracy and 94.4 % recall on the validation set, improving accuracy by 1.23 % over the 1D-ViT model. The performance of traditional machine learning and deep learning models before and after data generation was compared, demonstrating this method outperforms traditional machine learning models as well as mainstream deep learning models. This approach improves aflatoxin detection accuracy and provides a robust foundation for developing online detection devices.
期刊介绍:
Food Chemistry publishes original research papers dealing with the advancement of the chemistry and biochemistry of foods or the analytical methods/ approach used. All papers should focus on the novelty of the research carried out.