Skip to content

This repository contains code for energy forecasting using multilayer neural networks (MLPs) with autoregressive (AR) and nonlinear autoregressive exogenous (NARX) approaches. The goal is to predict the next-day electricity consumption for a specific case study, utilizing real dataset from a real-life organization.

License

Notifications You must be signed in to change notification settings

LuciferDIot/Energy-Forecasting-using-MLP-Neural-Networks

Repository files navigation

Electricity Consumption Forecasting using MLP-NN

Description

This repository contains code for forecasting electricity consumption using multilayer neural networks (MLP-NN). The goal is to predict the next day's electricity consumption for a specific hour based on historical data.

Dataset

The dataset used in this project is the hourly electricity consumption data for the University Building at 115 New Cavendish Street, London, for the years 2018 and 2019. The provided dataset (UoW_consumption.xlsx) includes daily electricity consumption data for three hours (20:00, 19:00, and 18:00) for the specified period.

Objectives

The project is divided into two subtasks:

Subtask 1: Autoregressive (AR) Approach

  • Experiment with various input vectors up to (t-4) level.
  • Investigate the influence of the (t-7) load value on the forecasting performance.
  • Construct input/output matrices (I/O) for MLP training/testing using time-delayed electricity loads.
  • Normalize the I/O matrices for MLP modeling.
  • Develop MLP models with different internal network structures.
  • Evaluate the testing performance of the models using statistical indices (RMSE, MAE, MAPE, sMAPE).
  • Create a comparison table of the models' performance and provide a brief description of each model's structure.
  • Analyze the efficiency of the best one-hidden layer and two-hidden layer networks based on the total number of weight parameters.

Subtask 2: Nonlinear Autoregressive Exogenous (NARX) Approach

In addition to the AR approach, we consider additional input vectors by including information from the 19th and 18th hour attributes. The objectives for this subtask are similar to Subtask 1, but the input vectors and model structures will differ.

Implementation Details

  1. Lag the data to create time-delayed values for input variables.
  2. Generate a list of column combinations representing different input vectors.
  3. Create input/output matrices (I/O) for each column combination.
  4. Normalize the I/O matrices to prepare data for MLP modeling.
  5. Develop MLP models with various internal network structures.
  6. Evaluate the performance of each model using statistical indices.
  7. Create a comparison table of the model performances.
  8. Analyze the efficiency of the best-performing one-hidden layer and two-hidden layer networks.
  9. Implement the NARX approach following a similar procedure as the AR approach.
  10. Provide graphical representations of the results (prediction output vs. desired output).
  11. Include the full code developed for these tasks as an appendix in the report.

Licensing

This project is licensed under the MIT License. See the LICENSE file for more information.

About

This repository contains code for energy forecasting using multilayer neural networks (MLPs) with autoregressive (AR) and nonlinear autoregressive exogenous (NARX) approaches. The goal is to predict the next-day electricity consumption for a specific case study, utilizing real dataset from a real-life organization.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages