A Fuzzy Logic–based system to assess and classify water quality using key parameters such as pH, Dissolved Oxygen (DO), Biochemical Oxygen Demand (BOD), Nitrate, and Temperature.
The system provides an intuitive way to evaluate water quality without relying on exact thresholds, making it more adaptive to real-world variations.
- 📊 Input Parameters: pH, DO, BOD, Nitrate, Temperature
- 🧠 Fuzzy Logic Engine: Uses membership functions to handle uncertainty and approximate reasoning
- 📝 Water Quality Index (WQI): Generates an overall score
- ✅ Classification: Labels water as Excellent, Good, Fair, Poor, or Very Poor
- 🖥️ Streamlit UI: Interactive interface to input values and see results instantly
- Python 3.x
- NumPy – numerical operations
- scikit-fuzzy – fuzzy logic computations
- Streamlit – frontend for interactive web app
- Clone the repository
git clone https://github.com/your-username/water-quality-checker.git cd water-quality-checker - Create virtual environment (optional but recommended)
python -m venv venv source venv/bin/activate # For Linux/Mac venv\Scripts\activate # For Windows
- Install dependencies
pip install -r requirements.txt
- Run the app
streamlit run app.py
## Screenshots
