This project aims to predict the quality of water samples and determine whether they are fit to sustain aquatic life. The solution utilizes machine learning techniques and is built using Python, Flask, HTML, and integrates a chatbot for enhanced user interaction.
- Project Overview
- Installation
- Usage
- Model Training
- API Endpoints
- Chatbot Integration
- Contributing
- License
To get started with this project, follow these steps:
- Clone the repository:
git clone https://github.com/DevaduttM/Aqua_AI.git cd Aqua_AI
-
Run the Flask application:
python app.py
-
Open your web browser and navigate to
http://127.0.0.1:5000/
to access the web application. -
Interact with the Chatbot to predict water quality and determine its suitability for sustaining aquatic life.
The model training is done using the AquaAI.py
script. This script reads the dataset, preprocesses it, and trains a Logistic Regression model to predict water quality.
Steps to train the model:
- Run the
AquaAI.py
script:python AquaAI.py
- The trained model will be saved as a
.pkl
file in the root directory.
The Flask application provides the following API endpoints:
- GET /: Render the home page.
- POST /predict: Predict the water quality based on user input.
The chatbot is integrated to provide an interactive user experience. It can answer questions related to water quality and predict the sustainability of aquatic life based on user inputs.
To interact with the chatbot:
- Open the web application in your browser.
- Type your queries in the chatbot interface.
- Receive real-time responses from the chatbot.
We welcome contributions to this project. To contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature-name
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin feature/your-feature-name
- Open a pull request.
For any questions or issues, please open an issue on GitHub or contact the project maintainers. Happy coding!