Related Experiment Video
Updated: Oct 14, 2026

Untargeted Liquid Chromatography-Mass Spectrometry-Based Metabolomics Analysis of Wheat Grain
Published on: March 13, 2020
Is my food safe? - AI-based classification of lentil flour samples with trace levels of gluten or nuts
Sandra Pradana-López1, Ana M Pérez-Calabuig1, Laura Otero2
1Departamento de Ingeniería Química y de Materiales, Universidad Complutense de Madrid, 28040 Madrid, Spain.
Abstract:
An artificial intelligence-based method to rapidly detect adulterated lentil flour in real time is presented. Mathematical models based on convolutional neural networks and transfer learning (viz., ResNet34) have been trained to identify lentil flour samples that contain trace levels of wheat (gluten) or pistachios (nuts), aiding two relevant populations (people with celiac disease and with nut allergies, respectively). The technique is based on the analysis of photographs taken by a simple reflex camera and further classification into groups assigned to adulterant type and amount (up to 50 ppm). Two different algorithms were trained, one per adulterant, using a total of 2200 images for each neural network. Using blind sets of data (10% of the collected images; initially and randomly separated) to evaluate the performance of the models led to strong performances, as 99.1% of lentil flour samples containing ground pistachio were correctly classified, while 96.4% accuracy was reached to classify the samples containing wheat flour.
More Related Videos
10:24Author Spotlight: Quantification of Aflatoxins and Phytoalexins in Peanut Seeds to Identify Genetic Resistance Against Aspergillus
Published on: April 19, 2024
08:56Detection of Regulated Ergot Alkaloids in Food Matrices by Liquid Chromatography-Trapped Ion Mobility Spectrometry-Time-of-Flight Mass Spectrometry
Published on: November 22, 2024