https://github.com/deepak5256/smartwaterquality
An integrated Java and Python project for predicting water potability using machine learning and an interactive GUI.
https://github.com/deepak5256/smartwaterquality
data-science integration-ai java machine-learning python swing-gui water-quality-prediction
Last synced: 4 months ago
JSON representation
An integrated Java and Python project for predicting water potability using machine learning and an interactive GUI.
- Host: GitHub
- URL: https://github.com/deepak5256/smartwaterquality
- Owner: deepak5256
- Created: 2024-11-17T06:03:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-17T06:10:30.000Z (over 1 year ago)
- Last Synced: 2025-04-12T05:10:59.074Z (about 1 year ago)
- Topics: data-science, integration-ai, java, machine-learning, python, swing-gui, water-quality-prediction
- Language: Java
- Homepage: https://github.com/deepak5256/SmartWaterQuality.git
- Size: 2.01 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
---
## Water Quality Prediction
This project combines **machine learning** and a **Java GUI** to create an application that predicts water potability based on various water quality parameters.
### **Project Structure**
1. **water_quality_model.pkl**: Pre-trained machine learning model for water quality prediction.
2. **scaler.pkl**: Scaling logic for normalizing input data.
3. **water_potability.csv**: Dataset containing water quality parameters like pH, Hardness, etc.
4. **train_model.py**: Python script to train the machine learning model.
5. **predict.py**: Python script for making batch predictions using the trained model.
6. **predict_water_quality.py**: Python script to streamline the prediction process, possibly used for CLI.
7. **background.jpg**: Background image used for the GUI.
8. **WaterQualityGUI.java**: Java Swing-based GUI for inputting water parameters and receiving predictions.
9. **Compiled Classes**:
- **WaterQualityGUI.class**: Compiled Java GUI classes.
### **Features**
- **Machine Learning**: Predicts water potability based on key parameters.
- **Interactive GUI**: User-friendly Java-based interface for input and output.
- **Python Integration**: Model training and predictions handled in Python, integrated with Java.
### **How to Run**
1. **Python Setup**:
- Install dependencies:
```bash
pip install pandas scikit-learn
```
- Train the model:
```bash
python train_model.py
```
- Test predictions:
```bash
python predict.py
```
2. **Java Setup**:
- Compile the GUI:
```bash
javac WaterQualityGUI.java
```
- Run the GUI:
```bash
java WaterQualityGUI
```
3. **Ensure Integration**:
- Verify Python and Java paths for seamless interaction.
---