[Case study](https://georgios.stathmon.com/#projects)

# Price and Weather Forecasting for Trading and Smart Control

Two deep-learning forecasting systems for short-term energy applications: Greek day-ahead electricity prices and 48-hour meteorological drivers used in energy optimization, HVAC control, and market decision support.

## Results

- **Price Forecasting**: 24.17 €/MWh Day-ahead MAE from the best compact BiLSTM on fully unseen 2024 Greek market data.

- **Best Ensemble**: 24.13 €/MWh Lowest day-ahead MAE from a simple mean ensemble of top-performing price models.

- **TFT Benchmark**: 25.33 €/MWh Temporal Fusion Transformer day-ahead MAE under the same experimental setup.

- **Temperature**: 1.26 °C 48-hour MAE from the multivariate weather model on unseen 2023 data.

- **Irradiance**: 31.38 W/m² 48-hour solar irradiance MAE from the same joint forecasting framework.

- **Humidity**: 6.64% 48-hour relative-humidity MAE while forecasting all weather variables jointly.

## What I built

I developed two forecasting frameworks targeting practical energy-system decisions: a day-ahead electricity price forecasting model for the Greek market and a multivariate weather forecasting model for temperature, solar irradiance, and relative humidity. Both systems use past observations together with future contextual signals such as calendar structure, load, renewable generation, and weather information.

The price model was evaluated on fully unseen 2024 conditions, a difficult post-crisis regime with stronger volatility and price-scale shifts. A compact BiLSTM achieved lower day-ahead error than the implemented Temporal Fusion Transformer benchmark, while a simple ensemble gave a small additional improvement.

## Architecture & explainability

The electricity-price study compared UniLSTM, BiLSTM, attention-enhanced recurrent variants, ensemble strategies, and a Temporal Fusion Transformer. The weather study used attention-enhanced LSTM/BiLSTM architectures with cyclical encodings for month and solar hour.

The weather framework jointly predicted all three variables instead of training separate models, achieving comparable accuracy with about 10 times lower model complexity in the tested setup. Attention maps, SHAP, TFT diagnostics, and Integrated Gradients were used to inspect whether the models relied on meaningful market and physical drivers.

## Figures

Forecast behavior and model insight

Selected figures from the project drafts, focused on trajectory tracking, error behavior, and explainability.

![Day-ahead price trajectory tracking](https://georgios.stathmon.com/project-media/energy-price-trajectories.png)

**Fig. 1**Day-ahead price trajectory trackingThe compact BiLSTM follows the daily structure of the Greek market across short and day-ahead horizons.

![Per-horizon ensemble improvement](https://georgios.stathmon.com/project-media/energy-price-ensemble-mae.png)

**Fig. 2**Per-horizon ensemble improvementA simple mean ensemble reduces the average error profile across much of the forecast horizon.

![Electricity-price SHAP attribution](https://georgios.stathmon.com/project-media/energy-price-shap-heatmap.png)

**Fig. 3**Electricity-price SHAP attributionLoad, renewables, price history, and calendar structure emerge as the dominant forecasting drivers.

![48-hour temperature forecast tracking](https://georgios.stathmon.com/project-media/weather-temperature-trajectory.png)

**Fig. 4**48-hour temperature forecast trackingThe multivariate weather model preserves daily cycles across 1-, 25-, and 48-hour forecast horizons.

![Weather-model Integrated Gradients](https://georgios.stathmon.com/project-media/weather-ig-horizon.png)

**Fig. 5**Weather-model Integrated GradientsFeature attributions show how meteorological history and cyclical time signals contribute across horizons.
