Code Monkey home page Code Monkey logo

luciferdiot / energy-forecasting-using-mlp-neural-networks Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 2.47 MB

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: MIT License

R 100.00%
arnns mlp-regressor narx neural-network nn

energy-forecasting-using-mlp-neural-networks's Introduction

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.

energy-forecasting-using-mlp-neural-networks's People

Contributors

luciferdiot avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.