- To develop a model using TensorFlow/Keras for analyzing water quality data and predicting water quality .
- Develop an interface for the project Use a mobile app and/or Web app using React/ Python
This dataset contains water quality measurements and assessments related to potability, which is the suitability of water for human consumption. The dataset's primary objective is to provide insights into water quality parameters and assist in determining whether the water is potable or not. Each row in the dataset represents a water sample with specific attributes, and the "Potability" column indicates whether the water is suitable for consumption.
- pH: The pH level of the water.
- Hardness: Water hardness, a measure of mineral content.
- Solids: Total dissolved solids in the water.
- Chloramines: Chloramines concentration in the water.
- Sulfate: Sulfate concentration in the water.
- Conductivity: Electrical conductivity of the water.
- Organic_carbon: Organic carbon content in the water.
- Trihalomethanes: Trihalomethanes concentration in the water.
- Turbidity: Turbidity level, a measure of water clarity.
- Potability: Target variable; indicates water potability with values 1 (potable) and 0 (not potable).
The main objective of this dataset is to assess and predict water potability based on water quality attributes. It can be used for evaluating the safety and suitability of water sources for human consumption, making informed decisions about water treatment, and ensuring compliance with water quality standards.
The data was collected from here
Credits go to them.
The Project is Divided into Backend
, frontend
and Model
For the Backend
, it contains the code fastapi
server we are using
For the Frontend
, it contains the code Nextjs
server we are using to interact with the backend that contains the model.
For the Model
, it contains the code Jupter Notebook
server we are using to build the model and also make predictions for the model
The Project Documentation, OUr frontend is fully integrated and build with Nextjs
- Download the project
git clone https://github.com/RuthBiney/Water-Quality-Model-.git
- Head the frontend folder and also get into the predict-app
cd frontend
then
cd predict-app
- Install the dependencies
npm install
- run the server to start prediction and info about app
npm run start
The Project Documentation, Our backend is fully integrated and build with fastapi
- Download the project
git clone https://github.com/RuthBiney/Water-Quality-Model-.git
- navigate to the backend
cd backend
- create a new virtual environment
python -m venv <name of env>
eg.
python -m venv env
- Install the dependencies needed for the virtual environment
pip install -r requirements.txt
- Run the server to be able to interact with the server
fastapi dev main.py
Our model is a simple python code that using tensor and keras to build the model that is used to predict the water portability
To be able to run the model or work with the model
- Build a virtual env
python -m venv env
- install the dependencies
pip install -r requirements.txt
- Run the model
- You can run the model using the jupyter notebook with the name of
model.ipynb
- Or you can choose to run the model using the scrip in the
water_quality_prediction.py
To be able to run the code
python water_quality_prediction.py
- Kayongo Johnson Brian - [email protected] - Github Profile
- Joak Buoy Gai - [email protected] - Github Pofile
- Ruth Senir Biney - [email protected] - Github Profile
- John Odai Obodai