Icon

Energy Demand Prediction

<p><strong>Energy Demand Prediction</strong></p><p>This workflow forecasts hourly energy demand by aligning hourly timestamps, generating lag features and training an LSTM deep neural network. It includes:</p><ul><li><p>Data ingestion of historical energy consumption data</p></li><li><p>Timestamp alignment, missing value handling, and generation of lagged features as predictors</p></li><li><p>Training and application of a Keras-based LSTM deep neural network to forecast energy demand per hour</p><ul><li><p>Make sure to select the proper Conda environment for Keras under "Preferences &gt; Python Deep Learning". For more info and installation guidance, check the pertinent docs.</p></li></ul></li><li><p>Comparison of actual vs. predicted values via line plots and scoring metrics.</p></li></ul>

URL: KNIME Deep Learning Integration Installation Guide https://docs.knime.com/latest/deep_learning_installation_guide/index.html#_introduction

Data Reading

Data Cleaning

Network Architecture

Create Input Vector

Prediction evaluation

Energy Demand Prediction


This workflow forecasts hourly energy demand by aligning hourly timestamps, generating lag features and training an LSTM deep neural network. It includes:

  • Data ingestion of historical energy consumption data

  • Timestamp alignment, missing value handling, and generation of lagged features as predictors

  • Training and application of a Keras-based LSTM deep neural network to forecast energy demand per hour

    • Make sure to select the proper Conda environment for Keras under "Preferences > Python Deep Learning". For more info and installation guidance, check the pertinent docs.

  • Comparison of actual vs. predicted values via line plots and scoring metrics.

LSTM.h5
Keras Network Writer
out-sample predictions
Out-sample testing
training with MSE loss function
Keras Network Learner
Energyusagedata
CSV Reader
original vs. predicted
Line Plot (Plotly)
[200] tensor for 200 lagged inputs
Keras Input Layer
convertdate/timeinto Date&Time objects
String to Date&Time
LSTM with 100 units and Tanh
Keras LSTM Layer
in-sample predictions
In-sample testing
original vs. predicted
Line Plot (Plotly)
Numeric Scorer
Missing Value
combine into list
Column Aggregator
Numeric Scorer
Timestamp Alignment
Column Filter
lag 200 values
Lag Column
lag 200 values
Lag Column
80/20 split take from top
Table Partitioner
[1] tensor for output
Keras Dense Layer
Missing Value (Apply)
combine into list
Column Aggregator

Nodes

Extensions

Links