Related Experiment Video
Updated: May 14, 2025

10:24
Author Spotlight: Quantification of Aflatoxins and Phytoalexins in Peanut Seeds to Identify Genetic Resistance Against Aspergillus
Published on: April 19, 2024
997
Aflatoxin detection in naturally contaminated peanuts based on vision transformer and multi-scale convolutional
Cong Wang1, Yifan Zhao2, Hongfei Zhu3
1College of Science and Information, Qingdao Agricultural University, Qingdao 266109, China.
Food Chemistry
|April 12, 2025
Summary
A new AI model, 1D-MCFViT, accurately detects aflatoxin in peanuts using spectral data and advanced image processing. This method enhances detection accuracy, crucial for food safety and developing online testing devices.
Area of Science:
- Agricultural Science
- Food Science
- Computer Science
Background:
- Aflatoxins are toxic metabolites found in peanuts, posing significant risks to human health.
- Accurate and efficient detection of aflatoxin contamination is crucial for food safety.
Purpose of the Study:
- To develop an improved model for detecting aflatoxin-contaminated peanuts under natural conditions.
- To enhance the feature discrimination capability for improved detection accuracy.
Main Methods:
- An improved 1D-MCFViT model was developed, integrating Vision Transformer with multi-scale convolutional fusion.
- Spectral curves were extracted from cleaned RGB images, and data augmentation was performed using autoencoder networks and Gaussian resampling.
- The model's performance was evaluated against traditional machine learning and deep learning models.
Main Results:
- The 1D-MCFViT model achieved 92.6% accuracy and 94.4% recall on the validation set.
- The proposed method demonstrated a 1.23% improvement in accuracy compared to the 1D-ViT model.
- The approach significantly outperformed traditional machine learning and mainstream deep learning models.
Conclusions:
- The developed 1D-MCFViT model offers a robust and accurate solution for detecting aflatoxin in peanuts.
- The data generation techniques effectively enhanced feature discrimination, leading to improved detection performance.
- This research provides a strong foundation for the development of online aflatoxin detection devices for food safety applications.

