AquaGuard — AI Water Quality Prediction Final Year Project (Flask + ML)
Back to ProjectPython 3.10 or higher and pip installed on your system.
Download the project files and navigate into the project folder using your terminal.
Run python -m venv venv to create an isolated environment, then activate it. On macOS or Linux use source venv/bin/activate. On Windows use venv\Scripts\activate.
Move into the water_quality_app folder and run pip install -r requirements.txt to install Flask, scikit-learn, pandas, and all other required packages.
Set a SECRET_KEY for production use. By default the app uses SQLite with the database file created automatically, so no manual database setup is required for local testing. To use PostgreSQL instead, set the DATABASE_URL variable to your connection string.
Start the Flask server by running python app.py from the water_quality_app directory.
Open your browser and go to http://127.0.0.1:5001. The database and required tables are created automatically on first run.
Navigate to the Predict page, enter values for all nine water quality parameters, and submit to see the potability verdict, confidence score, and risk level.
Our team is here to assist you with installation and setup.