journal article·2022-03-30Open access

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

Yaçine Merrad, Mohamed Hadi Habaebi, Md. Rafiqul Islam, Teddy Surya Gunawan, Elfatih A. A. Elsheikh, F. M. Suliman, Mokhtaria Mesri

Applied Sciences· Volume 12· Issue 7

Abstract

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.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Smart Grid Energy Management · Blockchain Technology Applications and Security · Smart Grid Security and Resilience

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

IoT & Wireless Communication Protocols Laboratory, Department of Electrical & Computer Engineering, International Islamic University Malaysia, Gombak, Kuala Lumpur 53100, Malaysia

Department of Electrical & Computer Engineering, International Islamic University Malaysia, Gombak, Kuala Lumpur 53100, Malaysia

Department of Electrical Engineering, College of Engineering, King Khalid University, Abha 61421, Saudi Arabia

Department of Electronics, University Amar Télidji of Laghouat, BP37G, Laghouat 03000, Algeria

Funding

King Khalid University · Malaysian Ministry of Higher Education (MoHE)

References (70)

Show source-provided references
1. Carson, B., Romanelli, G., Walsh, P., and Zhumaev, A. (2020, August 11). Blockchain beyond the Hype: What Is the Strategic Business Value? 19 June 2018. Available online: https://www.mckinsey.com/business-functions/mckinsey-digital/our-insights/blockchain-beyond-the-hype-what-is-the-strategic-business-value#=.
2. Blockchain smart contracts: Applications, challenges, and future trends10.1007/s12083-021-01127-0 ↗
3. Emergence of blockchain-technology application in peer-to-peer electrical-energy trading: A review10.1093/ce/zkaa033 ↗
4. Design of a privacy-preserving decentralized energy trading scheme in blockchain network environment10.1016/j.ijepes.2020.106465 ↗
5. Lu, X., Guan, Z., Zhou, X., Wu, L., Du, X., and Guizani, M. (2019, January 9–13). An Efficient and Privacy-Preserving Energy Trading Scheme Based on Blockchain. Proceedings of the 2019 IEEE Global Communications Conference (GLOBECOM), Waikoloa, HI, USA.10.1109/GLOBECOM38437.2019.9014317 ↗
6. Ekanayake, J.N.J., and Strbac, G. (2010). Distributed Generation, IET.
7. Review of blockchain-based distributed energy: Implications for institutional development10.1016/j.rser.2019.03.002 ↗
8. Energy Crowdsourcing and Peer-to-Peer Energy Trading in Blockchain-Enabled Smart Grids10.1109/TSMC.2019.2916565 ↗
9. Blockchain for decentralized transactive energy management system in networked microgrids10.1016/j.tej.2019.03.008 ↗
10. Energy demand side management within micro-grid networks enhanced by blockchain10.1016/j.apenergy.2018.07.012 ↗
11. ISGAN (2022, March 23). Smarter & Stronger Power Transmission: Review of Feasible Technologies for Enhanced Capacity and Flexibility. ISGAN., Available online: https://www.iea-isgan.org/smarter-stronger-power-transmission-review-offeasible-technologies-for-enhanced-capacity-and-fl.
12. Blockchain based decentralized management of demand response programs in smart energy grids10.3390/s18010162 ↗
13. Comparative review and discussion on P2P electricity trading10.1016/j.egypro.2017.09.003 ↗
14. State-of-the-art and prospects for peer-to-peer transaction-based energy system10.3390/en10122106 ↗
15. Blockchain for power systems: Current trends and future applications10.1016/j.rser.2019.109585 ↗
16. What blockchain can do for power grids?10.1016/j.bcra.2021.100008 ↗
17. Demand response and smart grids—A survey10.1016/j.rser.2013.10.022 ↗
18. Benefits and challenges of electrical demand response: A critical review10.1016/j.rser.2014.07.098 ↗
19. Research and practice of flexibility in distribution systems: A review
20. Song, J., Kang, E., Shin, H., and Jang, J.A. (2021). Smart Contract-Based P2P Energy Trading System with Dynamic Pricing on Ethereum Blockchain. Sensors, 21.10.3390/s21061985 ↗
21. Hare, J., Gathercole, M., Foster, B., Garrick, E., and Whitepaper BRIKCOIN (2022, March 23). Global Decentralized Property Platform, July 2019. Available online: https://icobench.com/ico/brikcoin/whitepaper.
22. WePower UAB (2022, March 23). We Power. 27 February 2019. Available online: https://wepower.com/media/WhitePaper-WePower_v_2.pdf.
23. Devine, M.T., Russo, M., and Cuffe’s, P. (2019). Blockchain Electricity Trading Using Tokenised Power Delivery Contracts, ESRI Working Paper.
24. Towards the decentralized revolution in energy systems using blockchain technology10.12720/sgce.8.3.245-256 ↗
25. Castellanos, J.A.F., Coll-Mayor, D., and Notholt, J.A. (2017, January 14–17). Cryptocurrency as guarantees of origin: Simulating a green certificate market with the Ethereum Blockchain. Proceedings of the 2017 IEEE International Conference on Smart Energy Grid Engineering (SEGE), Oshawa, ON, Canada.10.1109/SEGE.2017.8052827 ↗
26. Bitquery (2022, March 23). Ethereum Mainnet 0x178c820f862b14f316509ec36b13123da19a6054 in Ethereum Mainnet. 3 December 2021. Available online: https://explorer.bitquery.io/ethereum/token/0x178c820f862b14f316509ec36b13123da19a6054.
27. Bitquery (2022, March 23). 0x4cf488387f035ff08c371515562cba712f9015d4. 3 December 2021. Available online: https://explorer.bitquery.io/ethereum/token/0x4cf488387f035ff08c371515562cba712f9015d4.
28. Bitquery (2022, March 23). 0xf4134146af2d511dd5ea8cdb1c4ac88c57d60404. 3 December 2021. Available online: https://explorer.bitquery.io/ethereum/token/0xf4134146af2d511dd5ea8cdb1c4ac88c57d60404.
29. T Team (2022, March 23). Etherscan. Available online: https://etherscan.io/tx/0x3421fd298722a02e2eae65f78904f6acb92d7a4c3d4f256fe7ccd782ca717786.
30. A trustworthy and incentivized smart grid energy trading framework using distributed ledger and smart contracts10.1016/j.jnca.2021.103074 ↗
31. Privacy-preserving energy trading using consortium blockchain in smart grid10.1109/TII.2019.2893433 ↗
32. Hlaing, K.M., and Nyaung, D.E. (2019, January 6–7). Electricity Billing System using Ethereum and Firebase. Proceedings of the 2019 International Conference on Advanced Information Technologies (ICAIT), Yangon, Myanmar.10.1109/AITC.2019.8920931 ↗
33. Gür, A.Ö., Öksüzer, Ş., and Karaarslan, E. (2019, January 25–26). Blockchain Based Metering and Billing System Proposal with Privacy Protection for the Electric Network. Proceedings of the 2019 7th International Istanbul Smart Grids and Cities Congress and Fair (ICSG), Istanbul, Turkey.10.1109/SGCF.2019.8782375 ↗
34. Smart Electricity Billing System Using Blockchain Technology
35. GfK Belgium Consortium (2017). Study on Residential Prosumers in the European Energy Union, European Commision. JUST/2015/CONS/FW/C006/0127 Framework Contract EAHC/2013/CP/04.
36. Administration, Official Website of the International Trade (2022, March 23). Poland–Country Commercial Guide. 3 September 2021, Available online: https://www.trade.gov/country-commercial-guides/poland-energy-sector.
37. Department for Business, Energy & Industrial Strategy (2022, March 23). National statistics, Digest of UK Energy Statistics (DUKES): Electricity. 29 July 2021, Available online: https://www.gov.uk/government/statistics/electricity-chapter-5-digest-of-united-kingdom-energy-statistics-dukes.
38. Statista Research Department (2022, March 23). Installed Capacity for Electricity Plants in France in 2020, by Energy Source (in Megawatts). 15 September 2021. Available online: https://www.statista.com/statistics/1263346/electrical-production-capacity-france/.
39. IRENA, International Renewable Energy Agency (2022, March 23). Portugal Europe RE SP. 29 September 2021. Available online: https://www.irena.org/IRENADocuments/Statistical_Profiles/Europe/Portugal_Europe_RE_SP.pdf.
40. Institut Fraunhofer pour les Systèmes Energétiques Solaires ISE à Fribourg (2022, March 23). Energy-Charts. Available online: https://www.energy-charts.de/power_inst.htm.
41. (2020, June 01). Energy in Finland, April 2021. Available online: https://energiavirasto.fi/toimitusvarmuus.
42. Fernández, L., and Cumulative Installed Power Capacity in Spain in 2021, by Technology (in Megawatts) (2022, March 23). 15 February 2022. Available online: https://www.statista.com/statistics/1002759/installed-power-capacity-in-spain/.
43. IRENA, International Renewable Energy Agency (2022, March 23). Greece Europe RE SP. 29 September 2021. Available online: https://www.irena.org/IRENADocuments/Statistical_Profiles/Europe/Greece_Europe_RE_SP.pdf.
44. Alves, B. (2022, March 23). Statista, Installed Electricity Capacity in Belgium 2000–2019. 9 February 2022. Available online: https://www.statista.com/statistics/1186751/belgium-installed-electricity-capacity/.
45. What drives the development of community energy in Europe? The case of wind power cooperatives10.1016/j.erss.2015.12.016 ↗
46. Hasse, F., Perfall, A.V., Hillebrand, T., Smole, E., and Lay, L. (2022, March 23). Blockchain—An Opportunity for Energy Producers and Consumers. Available online: https://www.pwc.com/gx/en/industries/assets/pwc-blockchain-opportunity-for-energy-producers-and-consumers.pdf.
47. Legislation.gov.uk (2022, March 23). Directive 2011/83/EU of the European Parliament and of the Council. 25 October 2011, Available online: https://www.legislation.gov.uk/eudr/2011/83/introduction#.
48. Merz, M. (2022, March 23). Enerchain—Decentrally Traded Decentral Energy. Available online: https://enerchain.ponton.de/.
49. EUR-Lex (2022, March 23). Directive (EU) 2018/2001 of the European Parliament and of the Council of 11 December 2018. 11 December 2018. Available online: https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=uriserv:OJ.L_.2018.328.01.0082.01.ENG.
50. Sharing energy: Dealing with regulatory disconnection in dutch energy law10.1017/S1867299X00010138 ↗
51. Reiner Lemoine Institut GmbH (2022, March 23). Blockchain for a Smart Energy Market: BEST. Available online: https://reiner-lemoine-institut.de/en/blockchain-energy-market-best/.
52. Smart contracts in energy systems: A systematic review of fundamental approaches and implementations10.1016/j.rser.2021.112013 ↗
53. Chapter Seven—Security and Privacy of Blockchain and Quantum Computation10.1016/bs.adcom.2018.03.003 ↗
54. Quantum-secured blockchain10.1088/2058-9565/aabc6b ↗
55. A Blockchain Smart Contract Based on LightWeighted Quantum Blind Signature10.1109/ACCESS.2019.2941153 ↗
56. The Impact of Quantum Computing on Present Cryptography
57. Quantum Computer Systems for Scientific Discovery10.1103/PRXQuantum.2.017001 ↗
58. An Official Website of the United States Government (2022, March 23). PQC Standardization Process: Third Round Candidate Announcement. 22 July 2020, Available online: https://csrc.nist.gov/News/2020/pqc-third-round-candidate-announcement.
59. CRYSTALS-Dilithium: A Lattice-Based DigitalSignature Scheme10.46586/tches.v2018.i1.238-268 ↗
60. Kiningham, K., Levis, P., Anderson, M., Boneh, D., Horowitz, M., and Shih, M. (2019, January 4–7). Falcon—A flexible architecture for accelerating cryptography. Proceedings of the 2019 IEEE 16th International Conference on Mobile Ad Hoc and Sensor Systems (MASS), Monterey, CA, USA.10.1109/MASS.2019.00025 ↗
61. Yasuda, T., and Sakurai, K. (2016). A multivariate encryption scheme with rainbow. International Conference on Information and Communications Security, Springer.10.1007/978-3-319-29814-6_19 ↗
62. (2022, March 23). Over 10 Years of Hourly Energy Consumption Data from PJM in Megawatts. Kaggle, Version 3. Available online: https://www.kaggle.com/robikscube/hourly-energy-consumption?select=AEP_hourly.csv.
63. Forecasting of Turkey’s Electrical Energy Consumption using LSTM and GRU Networks
64. Tokgöz, A., and Ünal, G. (2018, January 2–5). A RNN Based Time Series Approach for Forecasting Turkish Electricity Load. Proceedings of the 26th Signal Processing and Communications Applications Conference (SIU), Izmir, Turkey.10.1109/SIU.2018.8404313 ↗
65. A Peer-to-peer Purchase and Rental Smart Contract-based Application (PuRSCA)
66. Tabarak, A.Y.Y., Nunna, H., and Doolla, S. (2018, January 28–31). Decentralized transactive energy management system for distribution systems with prosumer microgrids. Proceedings of the 2018 19th International Carpathian Control Conference (ICCC), Szilvasvarad, Hungary.
67. Anagnostopoulos, G., and Kalousis, A. (October, January 30). A reproducible analysis of RSSI fingerprinting for outdoor localization using sigfox: Preprocessing and hyperparameter tuning. Proceedings of the 2019 International Conference on Indoor Positioning and Indoor Navigation (IPIN), Pisa, Italy.10.1109/IPIN.2019.8911792 ↗
68. LoRa RSSI based outdoor localization in an urban area using random neural networks
69. Experimental data set analysis of RSSI-based indoor and outdoor localization in LoRa networks10.1002/itl2.75 ↗
70. Barai, S., Biswas, D., and Sau, B. (2020, January 16–17). Sensors Positioning for Reliable RSSI-based Outdoor Localization using CFT. Proceedings of the 2020 IEEE International Symposium on Sustainable Energy, Signal Processing and Cyber Security (iSSSC), Gunupur Odisha, India.10.1109/iSSSC50941.2020.9358844 ↗