Dispositivo de ultra-bajo costo para la clasificación de licores usando tecnología TinyML
Open Access
- 6 February 2026
- journal article
- Published by Universidad del Valle in INGENIERÍA Y COMPETITIVIDAD
- Vol. 28 (1)
Abstract
Objective: To design and implement a liquor identification system using TinyML, employing an MQ-135 sensor and an ESP32 microcontroller from Espressif Systems. The objective is to optimize local processing for high precision and low latency, thereby validating its viability as an accessible solution in resource-constrained environments.Methodology: The methodology employed an Artificial Neural Network (ANN) to classify liquors based on volatile compounds detected by the sensor. A dataset comprising 6,000 measurements was collected, and the ANN model was trained in MATLAB® R2018a. For performance evaluation, the dataset was split into 70% for training, 15% for validation, and 15% for testing, with the Mean Squared Error (MSE) used as the primary metric.Results:The deployed ANN model converged after 375 epochs, achieving a minimal Mean Squared Error (MSE) of 1.05×10⁻⁹ and a correlation coefficient (R) of 1.0. Synthesized onto the ESP32 microcontroller, the model utilized only 24.8% of Flash memory and 6.3% of RAM. The inference time recorded for execution was 2.43 ms, yielding a classification accuracy of 84.4%. This cost-efficient solution, priced at 15 USD, outperforms existing commercial options.Conclusions: It achieves an exceptionally fast inference time of 2.43 ms with a minimal operational energy consumption ranging from 5 mA to 10 mA. This performance, coupled with the low fabrication cost (15 USD), contrasts sharply with commercial solutions often exceeding hundreds of dollars. Consequently, the system is highly viable for implementation in embedded quality control and food industry applications.Keywords
This publication has 23 references indexed in Scilit:
- Applications of artificial intelligence technologies in water environments: From basic techniques to novel tiny machine learning systemsProcess Safety and Environmental Protection, 2023
- Low-cost air, noise, and light pollution measuring station with wireless communication and tinyMLHardwareX, 2023
- A review on TinyML: State-of-the-art and prospectsJournal of King Saud University Computer and Information Sciences, 2022
- TinyML Meets IoT: A Comprehensive SurveyInternet of Things, 2021
- Backpropagation of Levenberg Marquardt artificial neural networks for wire coating analysis in the bath of Sisko fluidAin Shams Engineering Journal, 2021
- A Chinese liquor classification method based on liquid evaporation with one unmodulated metal oxide gas sensorSensors and Actuators B: Chemical, 2011
- Portable electronic nose based on carbon nanotube-SnO2 gas sensors and its application for detection of methanol contamination in whiskeysSensors and Actuators B: Chemical, 2010
- Characterization of Chinese vinegars by electronic noseSensors and Actuators B: Chemical, 2006
- Development of an electronic nose for fire detectionSensors and Actuators B: Chemical, 2006
- Identification and pattern recognition analysis of Chinese liquors by doped nano ZnO gas sensor arraySensors and Actuators B: Chemical, 2005