BottleBrain is a Dapp build using a machine learning model designed to predict the quality of a wine based on its characteristics using the Red and White Wine Quality Analysis Model. Built on the Cartesi Machine, BottleBrain leverages the power of blockchain technology to provide a transparent, secure, and efficient wine quality prediction service.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Before you begin, ensure you have the following installed on your system:
- Docker: A platform that allows you to automate the deployment, scaling, and management of applications.
- Python 3.8+: The programming language used to develop BottleBrain.
- Pip: A package installer for Python.
Docker is a platform that allows you to automate the deployment, scaling, and management of applications. It uses containerization to package up an application with all of its dependencies into a standardized unit for software development.
To install Docker, follow these steps click to install Docker
Sunodo is a powerful tool for managing and deploying applications. To install Sunodo, follow these steps click to install sunodo
git clone https://github.com/forge-innovate/BottleBrain.git
sunodo build
sunodo run
BottleBrain takes in the following parameters:
Fixed Acidity
: The amount of organic acids in the grape juice that are not volatile.Volatile Acidity
: The amount of organic acids in the grape juice that are volatile.Citric Acid
: The amount of citric acid in the wine.Residual Sugar
: The amount of residual sugar left in the wine after fermentation.Chlorides
: The amount of salt in the wine.Free Sulfur Dioxide
: The amount of sulfur dioxide added to the wine to prevent oxidation.Total Sulfur Dioxide
: The total amount of sulfur dioxide in the wine, including both free and bound forms.Density
: The density of the wine.pH
: The acidity or alkalinity of the wine.Sulphates
: The amount of sulphur compounds in the wine.Alcohol
: The amount of alcohol in the wine.
Example request:
{"fixed acidity": 7.4 , "volatile acidity" : 0.7 , "citric acid" : 0 , "residual sugar" : 1.9 , "chlorides" : 0.076 , "free sulfur dioxide" : 11 , "total sulfur dioxide" : 34 , "density" : 0.9978 , "pH" : 3.51 , "sulphates" : 0.56 , "alcohol" : 9.4 }
Input the following:
sunodo send generic
Select Foundry
Use Default Rpc Url
Use Default Wallet Mnemonic
select any address
use Default Dapp Address
select string encoding and inputexample request stated above
as requested string
A payload is generated in hexadecimal but reads on a scale of 1 - 10 measuring from bad to good.
We welcome contributions from the community. Please feel free to submit a Pull Request or open an Issue.