AI Detects Toxic Food Contaminants Before They Reach Your Plate

A powerful blend of machine learning and hyperspectral imaging is revolutionizing how we detect deadly toxins in grains and nuts—offering real-time screening that could transform global food safety and save millions of lives.

Detection of Mycotoxins in Cereal Grains and Nuts Using Machine Learning Integrated Hyperspectral Imaging: A Review. Image Credit: Kateryna Kon / Shutterstock

Detection of Mycotoxins in Cereal Grains and Nuts Using Machine Learning Integrated Hyperspectral Imaging: A Review. Image Credit: Kateryna Kon / Shutterstock

An international team of researchers has demonstrated how artificial intelligence (AI) can now detect contaminated food in fields and factories before it reaches consumers, potentially saving four million deaths annually.

Led by the University of South Australia, a new paper published in the journal Toxins describes how advanced hyperspectral imaging (HSI) integrated with machine learning (ML) can identify mycotoxins – dangerous compounds produced by fungi that can contaminate food during growth, harvest, and storage.

Mycotoxins cause a range of serious health issues, such as cancer, compromised immunity, and hormone-related disorders. According to the World Health Organization, foodborne contamination, including from mycotoxins, results in 600 million illnesses and 4.2 million deaths each year.

The UN-based Food and Agricultural Organization estimates that about 25% of the world's crops are contaminated by mycotoxin-producing fungi, highlighting the economic and health imperatives to address this threat.

Lead author and UniSA PhD candidate Ahasan Kabir says that traditional mycotoxin detection methods are time-consuming, expensive, and destructive, making them unsuitable for large-scale real-time food processing.

"In contrast, hyperspectral imaging – a technique that captures images with detailed spectral information – allows us to quickly detect and quantify contamination across entire food samples without destroying them," Kabir says.

Kabir and his co-authors in Australia, Canada, and India evaluated the effectiveness of HSI in detecting toxic compounds in cereal grains and nuts, the world's most produced food, and the economic backbone of many countries.

Both are highly susceptible to fungi and mycotoxin contamination in warm, humid environments, from cultivation to storage.

"HSI captures an optical footprint of mycotoxins and when paired with machine learning algorithms it rapidly classifies contaminated grains and nuts based on subtle spectral variations," Kabir says.

The researchers reviewed more than 80 recent studies across wheat, corn, barley, oats, almonds, peanuts, pistachios, and other crops. Findings showed that ML-integrated HSI systems consistently outperformed conventional techniques in detecting key mycotoxins.

"This technology is particularly effective at identifying aflatoxin B1, one of the most carcinogenic substances found in food, according to the project lead, UniSA Professor Sang-Heon Lee.

"It offers a scalable, non-invasive solution for industrial food safety, from sorting almonds to inspecting wheat and maize shipments," says Prof Lee.

One of the main advantages of this approach is the ability to work in real time. Researchers say that with further development, HSI and ML could be deployed on processing lines or handheld devices, reducing health risks and trade losses by ensuring that only safe, uncontaminated produce reaches consumers.

Visual representation of commonly used machine learning algorithms for classification and regression tasks. Top: (1) SVM with margin-based classification, (2) SVR with ε-tube regression. Middle: (3) PLSR for predicted vs. observed fit, (4) KNN by neighbor proximity, (5) DT with majority voting, (6) RF as an ensemble of DTs. Bottom: (7) ensemble learning via weighted weak classifiers, (8) ANN with hidden layer and SoftMax output.

Visual representation of commonly used machine learning algorithms for classification and regression tasks. Top: (1) SVM with margin-based classification, (2) SVR with ε-tube regression. Middle: (3) PLSR for predicted vs. observed fit, (4) KNN by neighbor proximity, (5) DT with majority voting, (6) RF as an ensemble of DTs. Bottom: (7) ensemble learning via weighted weak classifiers, (8) ANN with hidden layer and SoftMax output.

The team is now working on refining the technique to improve its accuracy and reliability, using deep learning and AI.

The research was supported by the Federal Government's Research Training Program, with top-up funding from SureNut Australia.

'Detection of Mycotoxins in Cereal Grains and Nuts using Machine Learning Integrated Hyperspectral Imaging: A Review' is published in Toxins. DOI: 10.3390/toxins17050219.

The paper is authored by Ahasan Kabir, Associate Professor Ivan Lee, and Professor Sang-Heon Lee (University of South Australia); Professor Chandra Singh (Lethbridge College, Canada); and Assistant Professors Gayatri Mishra and Brajesh Kumar Panda (Indian Institute of Technology Kharagpur).

Source:
Journal reference:
  • Kabir, M. A., Lee, I., Singh, C. B., Mishra, G., Panda, B. K., & Lee, S. (2025). Detection of Mycotoxins in Cereal Grains and Nuts Using Machine Learning Integrated Hyperspectral Imaging: A Review. Toxins, 17(5), 219. DOI: 10.3390/toxins17050219, https://www.mdpi.com/2072-6651/17/5/219

Comments

The opinions expressed here are the views of the writer and do not necessarily reflect the views and opinions of AZoAi.
Post a new comment
Post

While we only use edited and approved content for Azthena answers, it may on occasions provide incorrect responses. Please confirm any data provided with the related suppliers or authors. We do not provide medical advice, if you search for medical information you must always consult a medical professional before acting on any information provided.

Your questions, but not your email details will be shared with OpenAI and retained for 30 days in accordance with their privacy principles.

Please do not ask questions that use sensitive or confidential information.

Read the full Terms & Conditions.

You might also like...
AI Text Generation Evolves Beyond Templates to Transform Communication