Bayesian Neural Network for Demand Response Pricing
Advanced time-series forecasting model for energy price prediction using a Bayesian neural network.
Overview
I developed a BNN incorporating Bayesian Regularized Back Propagation (BRBP) and compared its performance against two alternative approaches: a deep learning neural network and a functional neural network. The models were tested on data from three countries—the Netherlands, Spain, and Sweden—using historical price and consumption data from ENTSO-E.
Technical Approach
The Bayesian framework evaluates the evidence for each model configuration using the formula: Evidence ≈ best-fit likelihood × Occam factor. The Occam factor automatically penalizes overly complex networks by measuring how much the hypothesis space collapses when data is introduced, preventing overfitting while maintaining prediction accuracy.
Data and Features
Key Outcomes & Metrics
- BNN achieved MAPE scores of 12.7% (Netherlands), 7.9% (Spain), and 15.2% (Sweden) without hyperparameter adjustments
- Demonstrated superior transferability across different national energy markets compared to alternatives
- Deep learning network achieved better accuracy for Netherlands (9.2% MAPE) but required country-specific tuning and performed worse on other markets
Most Interesting Findings
The most compelling discovery was that the BNN's built-in 'Bayesian Occam's Razor' automatically penalized overly complex models, providing more consistent performance across volatile and non-volatile periods without overfitting. The BNN showed lower MAPE values at lower volatility levels compared to the deep learning approach, while both converged to similar performance during high volatility periods. The functional neural network approach provided unique interpretability advantages by visualizing the functional neural coefficients, allowing direct observation of how the network learns patterns in the data. However, this interpretability came at the cost of prediction accuracy compared to the BNN.
Practical Implications
The research demonstrated that Bayesian regularization successfully balanced generalization capacity with prediction accuracy—a key advantage for real-world deployment across diverse energy markets facing unpredictable price shocks. Unlike deep learning approaches that require extensive validation datasets and country-specific tuning, the BNN provides an objective framework for model selection and automatically determines optimal complexity levels. This makes it particularly valuable for commercial energy companies requiring reliable forecasting tools that function consistently across different market conditions and geographies.