Biosensors (Mar 2021)

Electronic Eye Based on RGB Analysis for the Identification of Tequilas

  • Anais Gómez,
  • Diana Bueno,
  • Juan Manuel Gutiérrez

DOI
https://doi.org/10.3390/bios11030068
Journal volume & issue
Vol. 11, no. 3
p. 68

Abstract

Read online

The present work reports the development of a biologically inspired analytical system known as Electronic Eye (EE), capable of qualitatively discriminating different tequila categories. The reported system is a low-cost and portable instrumentation based on a Raspberry Pi single-board computer and an 8 Megapixel CMOS image sensor, which allow the collection of images of Silver, Aged, and Extra-aged tequila samples. Image processing is performed mimicking the trichromatic theory of color vision using an analysis of Red, Green, and Blue components (RGB) for each image’s pixel. Consequently, RGB absorbances of images were evaluated and preprocessed, employing Principal Component Analysis (PCA) to visualize data clustering. The resulting PCA scores were modeled with a Linear Discriminant Analysis (LDA) that accomplished the qualitative classification of tequilas. A Leave-One-Out Cross-Validation (LOOCV) procedure was performed to evaluate classifiers’ performance. The proposed system allowed the identification of real tequila samples achieving an overall classification rate of 90.02%, average sensitivity, and specificity of 0.90 and 0.96, respectively, while Cohen’s kappa coefficient was 0.87. In this case, the EE has demonstrated a favorable capability to correctly discriminated and classified the different tequila samples according to their categories.

Keywords