Loading repository data…
Loading repository data…
Repeatercode / repository
Machine Learning + GIS project for groundwater recharge zone mapping in Kathmandu Valley using Random Forest, Decision Tree, and KNN. Built with Python, Jupyter Notebook, and geospatial data to support sustainable water resource planning.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
This project aims to identify and map potential groundwater recharge zones within the Kathmandu Valley using a machine learning approach. By analyzing various geospatial and environmental factors such as elevation, geology, land use, rainfall, slope, and soil composition, the project develops a classification model to categorize areas into different groundwater recharge suitability classes (e.g., Unsuitable, Poor, Moderate, Good, Excellent).
The final output includes interactive and static maps visualizing these suitability zones, along with a predictive model that can be used for future assessments.
The notebook is organized into the following sections:
The primary dataset used is kathmandu_raw_groundwater_data.csv, which contains various environmental and geographical parameters for locations within the Kathmandu Valley.
Columns include:
system:index: Unique identifier (removed during cleaning).elevation: Altitude above sea level.geology: Geological classification of the area.landuse: Land use type (e.g., urban, agricultural, forest).rainfall: Average rainfall.slope: Terrain slope.soil_clay: Percentage of clay in the soil..geo: GeoJSON string containing geographical coordinates.system:index is dropped, and any rows with missing values are removed.slope_norm, soil_conductivity, rainfall_norm, geology_norm, landuse_norm) are engineered and normalized. slope and soil_clay are inverted to align with recharge suitability (flatter terrain and lower clay content indicate better infiltration).recharge_score is calculated using domain-inspired weights for the engineered features. This score quantifies the potential for groundwater recharge.recharge_score is then binned into 5 balanced classes (Unsuitable, Poor, Moderate, Good, Excellent) using quantile-based categorization.The analysis identifies Random Forest Classifier as the best-performing model for predicting groundwater recharge suitability, achieving an accuracy of approximately [Insert Best Model Accuracy].
Key findings and visualizations include:
git clone [Your GitHub Repository URL]
cd [Your Repository Name]
[Your_Notebook_Name].ipynb file to Google Colab.kathmandu_raw_groundwater_data.csv is in the /content/ directory within Colab (it should be if you followed the previous instructions for GitHub upload and downloaded it).The following files are generated and saved during the notebook execution:
/content/cleaned_groundwater_data.csv: The cleaned dataset./content/groundwater_recharge_predictions.csv: The dataset with predicted recharge classes and geographical coordinates./content/groundwater_recharge_map.html: An interactive Folium map of recharge zones./content/figures/class_distribution.png: Bar chart of recharge class distribution./content/figures/model_comparison.png: Bar chart comparing model performance./content/figures/confusion_matrix.png: Confusion matrix for the best model./content/figures/feature_importance.png: Feature importance chart for tree-based models./content/figures/recharge_map.png: Static scatter map of recharge zones.