Giter Club home page Giter Club logo

kunal-mallick / water-quality Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 17.84 MB

The Water Quality Checker uses machine learning to analyze water quality parameters such as pH, solids, and conductivity, to determine if water is safe to drink. By inputting the values into the form, the model can predict if the water is fit for consumption or not.

Home Page: https://water-quality-checker.streamlit.app/

License: MIT License

Jupyter Notebook 99.96% Python 0.04%
baggingclassifier gradientboostingclassifier logisticregression pandas seaborn streamlit stackingclassifier gridsearchcv

water-quality's Introduction

Water Quality Checker

GitHub repo size GitHub GitHub last commit GitHub commit activity

Water Quality Checker is a tool that can help you determine if the water you drink is safe and pure. It uses machine learning to analyze various parameters of water quality, such as pH, hardness, solids, chloramines, sulfate, conductivity, organic carbon, trihalomethanes, and turbidity. You need to input these values in the form below and the model will predict whether the water is fit for consumption or not.

Water quality is essential for your health and well-being. According to the World Health Organization, more than two billion people use a drinking water source contaminated with feces. Contaminated water can cause diseases such as diarrhea, cholera, dysentery, typhoid, and polio. Therefore, it is important to test your water quality regularly and take appropriate measures to ensure its safety.

To use the Water Quality Checker, please fill in the following form with the values of the water parameters. You can use a home testing kit or a digital meter to measure these values. If you are not sure how to test your water quality at home, you can refer to this article for some simple ways.

Parameter
PH
Hardness
Solids
Chloramines
Sulfate
Conductivity
Organic Carbon
Trihalomethanes
Turbidity

After filling in the form, click on the "Predict" button to see the result. The result will tell you if the water is "Safe" or "Unsafe" for drinking.

If you have any questions or feedback about the Water Quality Checker, please feel free to contact me at [email address]. I would love to hear from you and improve this tool for your convenience.

Live demo here

Table of Contents

General Information

  • Water Quality Checker is a tool that can help you determine if your water is safe to drink or not.
  • You need to enter the values of PH, Hardness, Solids, Chloramines, Sulfate, Conductivity, Organic_Carbon, Trihalomethanes, and Turbidity of your water sample.
  • The model will analyze the data and predict if the water is potable or not.
  • Below is a passage about water and its importance for human health and the environment.
  • If you have any questions or feedback, please contact me using the form at the bottom of the page.

Technologies Used

  • Language Used : Jupyter Notebook(Python)

  • libraries used

    • Data Preprocessing & EDA :numpy, pandas, matplotlib, seaborn, plotly, sklearn.ensemble(IsolationForest)
    • Feature Engineering & Feature Extraction : sklearn.preprocessing(StandardScaler), sklearn.model_selection(train_test_split)
    • Model Building : pickle, sklearn.linear_model(LogisticRegression), sklearn.neighbors(KNeighborsClassifier), sklearn.tree(DecisionTreeClassifier), sklearn.ensemble(AdaBoostClassifier,RandomForestClassifier,GradientBoostingClassifier,VotingClassifier,StackingClassifier, BaggingClassifier), sklearn.svm(SVC), sklearn.model_selection(GridSearchCV), sklearn.metrics(classification_report)
    • Deployment : pickle, pandas, streamlit, sklearn.preprocessing(StandardScaler)
    • Server Deployment : https://share.streamlit.io/

Screenshots

Top mid bottom

Setup

  • For Online click here

  • For Offline download everything in requirements.txt and then open the anaconda / python terminal and run this line of code :

cd file path
streamlit run main.py

Usage

  • Collect a sample of water from the source you want to test. Make sure the sample is clear and free of any visible particles or debris.
  • Use a testing kit or a device to measure the values of the parameters mentioned above. You can find these kits or devices online or in local stores. Follow the instructions carefully and record the results.
  • Input the values into the water quality checker function on this page. The function will run the machine learning model and give you a prediction of whether the water is safe to drink or not.
  • If the prediction is potable, you can use the water for drinking or other purposes. If the prediction is non-potable, you should avoid using the water or treat it with a suitable method such as boiling, filtering, chlorinating, or distilling.

Project Status

Project is: complete

Room for Improvement

Room for improvement:

  • Improving Model Performance
  • Improving UI

Acknowledgements

Contact

Created by @kunal - feel free to contact me!

License

This project is open source and available under the MIT License.

water-quality's People

Contributors

kunal-mallick avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.