Applied AI System
AI Weather Predictor
Custom-trained weather forecasting product using a Keras sequence model, multi-city historical data, robust preprocessing, explainable diagnostics, and a live user-facing deployment.
Overview
AI Weather Predictor is a full technical product that forecasts the next 7 days of weather for a selected city using my own trained model. The system retrieves recent station data, runs a reproducible preprocessing pipeline, prepares a 60-day input sequence, generates multi-target forecasts with a custom Keras model, and explains the result in natural language.
The project goes beyond a notebook by connecting dataset building, preprocessing, model training, model inference, experiment tracking, cloud infrastructure, usage logging, and a live user-facing application.
Problem
Weather forecasting is a practical technical problem because the data is noisy, time-based, location-dependent, and incomplete. A useful product needs data retrieval, feature engineering, a defendable prediction pipeline, reliability checks, and a user-facing explanation layer.
Solution
The application accepts a city, resolves nearby weather stations, fetches recent daily observations, and enriches the time series with calendar, cyclical, trend, weather-risk, wind-chill, and missing-value features. The final 60-day window is passed into a sequence model that predicts temperature, wind, precipitation, and snow values for the next 7 days.
The forecast table is then converted into a readable weekly summary using an LLM interface, so the technical prediction becomes easier to interpret for non-technical users.
Technical Highlights
- City-level data retrieval using geospatial lookup and weather-station data.
- Custom-trained multi-target 7-day forecasting from a 60-day historical window.
- Expanded multi-city training data to improve generalization and practical forecast quality.
- Feature engineering for time, trend, missing values, weather risk, and derived weather indicators.
- TensorFlow/Keras model artifact stored with supporting MLflow metadata and evaluation outputs.
- Live product interface with forecast table, summary generation, and usage logging.
- Terraform resources for Google Cloud Storage and BigQuery foundations.
Architecture
The workflow separates the product into clear layers:
- User city input in Streamlit.
- Geocoding and nearby station lookup.
- Recent daily weather retrieval.
- Feature engineering and 60-day sequence creation.
- Custom Keras model inference.
- Forecast table formatting.
- LLM-based explanation.
- Usage logging for later monitoring.
Future Improvements
- Add automated retraining and drift checks.
- Compare the current sequence model with Transformer and Prophet baselines.
- Add CI checks for preprocessing and inference integrity.
- Containerize the app for managed cloud deployment.