This project is developed for PCS-253 AIML Project-Based Learning (PBL).
The main objective of this project is to predict and classify urban water consumption using Machine Learning techniques. Multiple models are implemented and compared to improve prediction accuracy and classification performance.
The project is divided into three phases showing progressive improvement in dataset preparation, preprocessing, model training, and evaluation.
To build a basic machine learning project using the raw dataset.
- Created initial dataset
- Basic project implementation
- Problem understanding
- Initial data analysis
- dataset.csv
- report.pdf
To improve dataset quality and evaluate machine learning models.
- Data cleaning
- Feature analysis
- Data preprocessing
- Model evaluation using:
- MSE
- RMSE
- R² Score
- Phase2.ipynb
- improved_dataset.csv
- report.pdf
To build an optimized machine learning system for predicting urban water demand.
- Household_Size
- Income_Level
- Garden_Area
- Rainfall_mm
- Temperature_C
- Seasonal_Index
- Water_Price
- Appliance_Count
- Leakage_Factor
- Per_Person_Usage
- Garden_Impact
- Water_Intensity
- Linear Regression
- K-Nearest Neighbors (KNN)
- Support Vector Machine (SVM)
- Decision Tree
- Final dataset preparation
- Data preprocessing
- Feature scaling using StandardScaler
- Train-test split
- Model training and prediction
- Model comparison
- Performance evaluation
- Data visualization and graphs
- Accuracy
- Precision
- Recall
- F1 Score
- R² Score
- Mean Squared Error (MSE)
- Mean Absolute Error (MAE)
- ROC-AUC Curve
- Correlation Heatmap
- Histogram
- Boxplot
- Scatter Plot
- Confusion Matrix
- ROC Curve
- Feature Importance Graph
Decision Tree achieved the best performance based on F1 Score.
- Phase3.ipynb
- final_dataset.csv
- report.pdf
- Python
- Pandas
- NumPy
- Matplotlib
- Seaborn
- Scikit-learn
- Jupyter Notebook
- VS Code
Dataset → Data Cleaning → Feature Engineering → Feature Scaling → Model Training → Prediction → Evaluation → Visualization
This project successfully predicts and classifies urban water usage using multiple machine learning models. Different preprocessing and evaluation techniques were applied to improve model performance and compare different algorithms effectively.
- Use advanced models like Random Forest and XGBoost
- Real-time water demand prediction
- Deploy using Flask or Streamlit
- Add live dashboard and monitoring system