Case Study Overview
Solar Power Forecasting Using PatchTST
I treated residential solar forecasting as an operational energy reliability problem: how can a home solar system plan battery and grid usage when sunlight and weather keep shifting?
January 2026 - June 2026Problem
Residential solar power is useful only when households can plan around generation dips caused by cloud cover, humidity, panel temperature, and mismatches between peak sunlight and usage hours.
Instead of treating irradiance as an isolated curve, homeowners need dependable short-term expectations to manage battery charge and minimize unexpected grid draw.
- Solar generation fluctuates rapidly because meteorological variables and time-of-day irradiance interact dynamically.
- Forecast errors translate directly into suboptimal battery dispatch and avoidable peak grid consumption.
- Forecast evaluation must expose MAE, RMSE, and MAPE transparently across weather regimes.
Decision
I built a time-series solar forecasting pipeline centered on the PatchTST channel-independent patch architecture, capturing local temporal solar signatures alongside longer multi-hour horizons.
Weather signals and historical photovoltaic generation features were preprocessed systematically into repeatable evaluation windows.
- Grouped continuous solar telemetry into patch-level windows rather than isolated per-timestamp inputs.
- Combined rooftop solar output history with meteorological features including temperature and humidity.
- Measured accuracy rigorously with MAE, RMSE, and MAPE against operational baseline horizons.
Learning & Impact
Established a quantitative foundation for residential solar planning and future anomaly-detection modules.
Connected time-series data pipelines directly with sustainability and household energy management.
- Implemented a reproducible weather + PV telemetry pipeline in Python.
- Demonstrated how patch-based horizon modeling stabilizes multi-hour solar generation forecasts.
- Created the forecasting backbone paired with my residential solar monitoring dashboard.
Takeaway
Energy forecasting shows that metrics only matter when connected to system operations: knowing expected error bounds helps operators decide when to conserve battery reserve ahead of cloudy windows.


