Machine Learning-Blockchain Based Autonomic Peer-to-Peer Energy Trading System

This paper introduces a blockchain-based P2P energy trading platform, where prosumers can trade energy autonomously with no central authority interference. Multiple prosumers can collaborate in producing energy to form a single provider. Clients’ power consumption is monitored using a smart meter th...

Full description

Bibliographic Details
Main Authors: Yaçine Merrad, Mohamed Hadi Habaebi, Md. Rafiqul Islam, Teddy Surya Gunawan, Elfatih A. A. Elsheikh, F. M. Suliman, Mokhtaria Mesri
Format: Article
Language:English
Published: MDPI AG 2022-03-01
Series:Applied Sciences
Subjects:
Online Access:https://www.mdpi.com/2076-3417/12/7/3507
_version_ 1797440383462932480
author Yaçine Merrad
Mohamed Hadi Habaebi
Md. Rafiqul Islam
Teddy Surya Gunawan
Elfatih A. A. Elsheikh
F. M. Suliman
Mokhtaria Mesri
author_facet Yaçine Merrad
Mohamed Hadi Habaebi
Md. Rafiqul Islam
Teddy Surya Gunawan
Elfatih A. A. Elsheikh
F. M. Suliman
Mokhtaria Mesri
author_sort Yaçine Merrad
collection DOAJ
description This paper introduces a blockchain-based P2P energy trading platform, where prosumers can trade energy autonomously with no central authority interference. Multiple prosumers can collaborate in producing energy to form a single provider. Clients’ power consumption is monitored using a smart meter that interfaces with an IoT node connected to a blockchain private network. The smart contracts, invoked on the blockchain, enable the autonomous trading interactions between parties and govern accounts behavior within the Ethereum state. The decentralized P2P trading platform utilizes autonomous pay-per-use billing and energy routing, monitored by a smart contract. A Gated Recurrent Unit (GRU) deep learning-based model, predicts future consumption based on past data aggregated to the blockchain. Predictions are then used to set Time of Use (ToU) ranges using the K-mean clustering. The data used to train the GRU model are shared between all parties within the network, making the predictions transparent and verifiable. Implementing the K-mean clustering in a smart contract on the blockchain allows the set of ToU to be independent and incontestable. To secure the validity of the data uploaded to the blockchain, a consensus algorithm is suggested to detect fraudulent nodes along with a Proof of Location (PoL), ensuring that the data are uploaded from the expected nodes. The paper explains the proposed platform architecture, functioning as well as implementation in vivid details. Results are presented in terms of smart contract gas consumption and transaction latency under different loads.
first_indexed 2024-03-09T12:06:22Z
format Article
id doaj.art-1fe2bbc1b1f04a679d08f1b1ee2d9d73
institution Directory Open Access Journal
issn 2076-3417
language English
last_indexed 2024-03-09T12:06:22Z
publishDate 2022-03-01
publisher MDPI AG
record_format Article
series Applied Sciences
spelling doaj.art-1fe2bbc1b1f04a679d08f1b1ee2d9d732023-11-30T22:56:40ZengMDPI AGApplied Sciences2076-34172022-03-01127350710.3390/app12073507Machine Learning-Blockchain Based Autonomic Peer-to-Peer Energy Trading SystemYaçine Merrad0Mohamed Hadi Habaebi1Md. Rafiqul Islam2Teddy Surya Gunawan3Elfatih A. A. Elsheikh4F. M. Suliman5Mokhtaria Mesri6IoT & Wireless Communication Protocols Laboratory, Department of Electrical & Computer Engineering, International Islamic University Malaysia, Gombak, Kuala Lumpur 53100, MalaysiaIoT & Wireless Communication Protocols Laboratory, Department of Electrical & Computer Engineering, International Islamic University Malaysia, Gombak, Kuala Lumpur 53100, MalaysiaIoT & Wireless Communication Protocols Laboratory, Department of Electrical & Computer Engineering, International Islamic University Malaysia, Gombak, Kuala Lumpur 53100, MalaysiaDepartment of Electrical & Computer Engineering, International Islamic University Malaysia, Gombak, Kuala Lumpur 53100, MalaysiaDepartment of Electrical Engineering, College of Engineering, King Khalid University, Abha 61421, Saudi ArabiaDepartment of Electrical Engineering, College of Engineering, King Khalid University, Abha 61421, Saudi ArabiaDepartment of Electronics, University Amar Télidji of Laghouat, BP37G, Laghouat 03000, AlgeriaThis paper introduces a blockchain-based P2P energy trading platform, where prosumers can trade energy autonomously with no central authority interference. Multiple prosumers can collaborate in producing energy to form a single provider. Clients’ power consumption is monitored using a smart meter that interfaces with an IoT node connected to a blockchain private network. The smart contracts, invoked on the blockchain, enable the autonomous trading interactions between parties and govern accounts behavior within the Ethereum state. The decentralized P2P trading platform utilizes autonomous pay-per-use billing and energy routing, monitored by a smart contract. A Gated Recurrent Unit (GRU) deep learning-based model, predicts future consumption based on past data aggregated to the blockchain. Predictions are then used to set Time of Use (ToU) ranges using the K-mean clustering. The data used to train the GRU model are shared between all parties within the network, making the predictions transparent and verifiable. Implementing the K-mean clustering in a smart contract on the blockchain allows the set of ToU to be independent and incontestable. To secure the validity of the data uploaded to the blockchain, a consensus algorithm is suggested to detect fraudulent nodes along with a Proof of Location (PoL), ensuring that the data are uploaded from the expected nodes. The paper explains the proposed platform architecture, functioning as well as implementation in vivid details. Results are presented in terms of smart contract gas consumption and transaction latency under different loads.https://www.mdpi.com/2076-3417/12/7/3507blockchaindecentralizationEthereumK-mean clusteringGRU prediction modelpeer-to-peer energy trading
spellingShingle Yaçine Merrad
Mohamed Hadi Habaebi
Md. Rafiqul Islam
Teddy Surya Gunawan
Elfatih A. A. Elsheikh
F. M. Suliman
Mokhtaria Mesri
Machine Learning-Blockchain Based Autonomic Peer-to-Peer Energy Trading System
Applied Sciences
blockchain
decentralization
Ethereum
K-mean clustering
GRU prediction model
peer-to-peer energy trading
title Machine Learning-Blockchain Based Autonomic Peer-to-Peer Energy Trading System
title_full Machine Learning-Blockchain Based Autonomic Peer-to-Peer Energy Trading System
title_fullStr Machine Learning-Blockchain Based Autonomic Peer-to-Peer Energy Trading System
title_full_unstemmed Machine Learning-Blockchain Based Autonomic Peer-to-Peer Energy Trading System
title_short Machine Learning-Blockchain Based Autonomic Peer-to-Peer Energy Trading System
title_sort machine learning blockchain based autonomic peer to peer energy trading system
topic blockchain
decentralization
Ethereum
K-mean clustering
GRU prediction model
peer-to-peer energy trading
url https://www.mdpi.com/2076-3417/12/7/3507
work_keys_str_mv AT yacinemerrad machinelearningblockchainbasedautonomicpeertopeerenergytradingsystem
AT mohamedhadihabaebi machinelearningblockchainbasedautonomicpeertopeerenergytradingsystem
AT mdrafiqulislam machinelearningblockchainbasedautonomicpeertopeerenergytradingsystem
AT teddysuryagunawan machinelearningblockchainbasedautonomicpeertopeerenergytradingsystem
AT elfatihaaelsheikh machinelearningblockchainbasedautonomicpeertopeerenergytradingsystem
AT fmsuliman machinelearningblockchainbasedautonomicpeertopeerenergytradingsystem
AT mokhtariamesri machinelearningblockchainbasedautonomicpeertopeerenergytradingsystem