AI-based multi-class image classification tool focused on improving Mezcal production quality control and ensuring compliance with industry regulations. Built using OpenCV, PyTorch, and FastAI, SpiritVision uses images of evaporated mezcal drops captured under a microscope to quickly identify excess methanol levels and recognize different mezcal strains. Web App deployed on HuggingFace Spaces.
Mezcal has a very strict and exhaustive quality control authentication and certification method in which traditionally, gas chromatography and mass spectrometry techniques analyze volatile compounds in order to recognize methanol spikes. Both these approaches take days to even weeks, are expensive, and unfeasible for widespread adoption among small-scale producers.
Developing an accesible deep learning model capable of detecting spikes in methanol concentration in mezcal by training ResNet models using transfer learning and sampled mezcal droplets inspected under a microscope. The application can facilitate routine quality verifications while reducing operational costs and improving competitiveness of small to medium producers.
- Get and install Python and an IDE of your choice (e.g. PyCharm or Spyder)
- Make a virtual environment -- will depend on your IDE -- (Optional)
- Install dependencies, for example, using the terminal
pip install -r requirements.txt
- Try the Notebooks directory and/or the training script
- Feel free to fork the repo and submit a Pull Request.
- If you don't have previous experience, please review How to submit a pull request and comment on any Issues you would like to collaborate.
- Contact Carlos or Angel if you would like to be invited to the Discord chat