# π§οΈ Ghana Rainfall Prediction System
> **AI-Powered Weekly and Monthly Rainfall Forecasting across Ghana's Climate Zones**
Predicting weekly and monthly rainfall in Ghana using **Long Short-Term Memory (LSTM)** networks, **XGBoost**, **Random Forest**, and **ARIMA** models. This system supports climate-resilient planning for agriculture, water resource management, and disaster preparedness.
---
## π Table of Contents
- Overview
- Key Features
- Project Structure
- Installation
- Usage
- Model Performance
- Data Description
- Methodology
- Results
- Deployment
- Contributing
- Citation
- License
- Contact
---
## π Overview
This research project develops and evaluates machine learning models for predicting rainfall across **six meteorological stations** representing Ghana's three distinct climate zones:
| Climate Zone | Stations | Characteristics |
|-------------|----------|----------------|
| **Savannah** | Tamale, Navrongo | Unimodal rainfall pattern |
| **Forest** | Kumasi, Ho | Bimodal rainfall pattern |
| **Coastal** | Accra, Takoradi | Asymmetrical bimodal pattern |
### π― Research Objectives
1. **Develop optimized LSTM models** for weekly and monthly rainfall prediction
2. **Compare four forecasting approaches**: LSTM, XGBoost, Random Forest, and ARIMA
3. **Analyze spatial patterns** across Ghana's distinct climate zones
---
## β¨ Key Features
- π€ **4 Machine Learning Models**: LSTM, XGBoost, Random Forest, ARIMA
- π **Dual Prediction Horizons**: Weekly and monthly forecasts
- πΊοΈ **6 Meteorological Stations**: Complete coverage of Ghana's climate zones
- π **High Accuracy**: RΒ² > 0.85 for monthly predictions using LSTM
- π **Interactive Dashboard**: Real-time predictions with Streamlit
- π± **Responsive Design**: Works on desktop, tablet, and mobile
- π **Comprehensive Visualizations**: Historical trends, predictions, and model comparisons
---
## π Project Structure
```
ghana-rainfall-prediction/
β
βββ π app.py # Main St β¦