Is my food safe? - AI-based classification of lentil flour samples with trace levels of gluten or nuts

Food Chem. 2022 Aug 30:386:132832. doi: 10.1016/j.foodchem.2022.132832. Epub 2022 Mar 26.

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.

Keywords: Adulteration; Gluten; Image analysis; Lentils; Nuts; ResNet34.

MeSH terms

  • Artificial Intelligence
  • Flour / analysis
  • Glutens
  • Humans
  • Lens Plant*
  • Nuts
  • Pistacia*
  • Triticum

Substances

  • Glutens