Can Blockchain Strengthen the Energy Internet?

: Emergence of the Energy Internet (EI) demands restructuring of traditional electricity grids to integrate heterogeneous energy sources, distribution network management with grid intelligence and big data management. This paradigm shift is considered to be a breakthrough in the energy industry towards facilitating autonomous and decentralized grid operations while maximizing the utilization of Distributed Generation (DG). Blockchain has been identiﬁed as a disruptive technology enabler for the realization of EI to facilitate reliable, self-operated energy delivery. In this paper, we highlight six key directions towards utilizing blockchain capabilities to realize the envisaged EI. We elaborate the challenges in each direction and highlight the role of blockchain in addressing them. Furthermore, we summarize the future research directive in achieving fully autonomous and decentralized electricity distribution networks, which will be known as Energy Internet. paper analyzes six directions of blockchain utilization for facilitating the realization of the envisaged, intelligent, autonomous EI grids. Energy sustainability through heterogeneity, improved trust, security and privacy, ultimate reliability and stability, decentralized scalability, advanced big data management and grid intelligence are identiﬁed as these directives while challenges and the future research for maximizing the beneﬁts of the envisaged architecture are elaborated with respect to each identiﬁed key direction. The paper presents a clear insight of the successful integration of blockchain technologies with AI and ML based predictive analysis in future electricity networks to reshape the energy industry to fully-autonomous, self-resilient grids. xAI, federated ML and DL would enable trusted and transparent grid intelligence in future smart grids. AV era would be realizable through such intelligent smart grids. Beyond 5G communication architecture would facilitate the integration of edge intelligence for distributed processing thereby, offer scalable, efﬁcient and responsive EI grids. Blockchain offers great ﬂexibility in providing security solutions through the inherent features. However, challenges have been identiﬁed in the areas of AI and ML integration, which would require alternatives beyond blockchain.


Introduction
The concept of smart grids emanated with the adoption of Internet of Things (IoT) devices and technologies, such as Internet connected advanced sensors and smart meters in electricity grids [1,2]. This facilitated bi-directional information flow to achieve near real-time grid operations while incorporating dynamic electricity pricing and effective Demand Response (DR) mechanisms [3]. Meanwhile, the energy requirement of the world is expected to grow continuously [4]. Catering to this requirement demands an increasing number of grid interconnections of Distributed Energy Resources (DER) contributing synergistically with one another. However, conventional smart grids, which are governed by a centralized authority, are not capable of facilitating this requirement. This urges the need for a more scalable, flexible and distributed grid architecture [4].
In response to this demand, the next iteration of the conventional smart grids, Smart Grid 2.0 (identified as the Energy Internet (EI) in this paper), is being realized to establish bi-directional energy and information transfer. This uses the electricity grid infrastructure and Internet Protocol (IP) based features of the Internet respectively [5]. This includes Distributed Network Protocol (DNP3) for maximizing the utilization of DERs and Transmission Control Protocol (TCP) based protocols, such as, IPv6 over Low-Power wireless Personal Area Networks (6LowPAN), to facilitate communication between compact, inexpensive, low-power, embedded devices and IEEE 802. 15.4 networks. This is to enhance security features of the existing smart grids. Furthermore, EI facilitates real-time information exchange including energy usage data, dynamic pricing information and control signals through such implementations.
IoT devices, including smart meters and sensors, communicate real-time measurement data of the large-scale participation of the Distributed Generation (DG) [6]. This is envisaged to facilitate autonomous operation of energy grids, benefiting seamless integration of DG without the involvement of a third party compared to the conventional counterpart. Implementation of EI grids is proposed as an overlay of four layers: namely, physical layer, communication and control layer, application layer and data analysis layer [5]. The former two are comprised of IoT devices and beyond 5G communication technologies, enabled through edge computing respectively. The latter two layers of the novel architecture incorporate the applications of the envisaged EI grid and data analysis technologies supported through big data management [7].
Applications of EI span beyond offering dynamic energy prices to the consumers and obtaining their contribution in DR initiatives. They also exhibit prospects in multidimensional aspects, including: (1) Peer-to-Peer (P2P) energy trading; (2) plug-and-play interfacing for DERs; (3) microgeneration; (4) Demand Side Integration (DSI); (5) automation and management of distribution networks; and (6) management of energy data. Figure 1 illustrates the interrelationship of these applications. Thus, EI grid architecture facilitates the paradigm shift from the monopoly vertical hierarchy towards a decentralized network configuration with bi-directional energy and information exchange across the grid and internet respectively. A comparison elaborating the significant differences of the conventional and next generation smart grids is presented in Table 1. Table 1. Comparison of smart grids and EI grids [6,8,9].

Conventional Smart Grids EI Grids/Smart Grid 2.0
Centralized power distribution Decentralized power distribution Integration of limited energy resources (i.e., conventional generation and a few Renewable Energy Sources (RES))

Integration of heterogeneous DER including RES, EVs and ESS
ine Utility-centric operations where utility governs the ownership of the grid Distribution System Operator (DSO) Consumer-centric operations with equal level playing field for all participating stakeholders ine Energy traded and information exchanged between the DSO and the customers Energy traded and real-time information shared in a peer-to-peer manner Closed proprietary and non-inter-operable Information and Communication Technology (ICT) is the disruptive technology enabler Open and inter-operable technologies based on IP is the disruptive technology enabler Impedes autonomous grid operation Integrates AI and ML technologies to enable autonomous grid operations Together with these applications, EI envisages autonomous grid operation where the central authority governing the grid under the current context will be overlooked [4]. Further, this would be protruding as consumers begin to gain liberalization in the energy market and actively participate in power production. Human intervention in the decision-making process will be automated through smart contracts, facilitated by Artificial Intelligence (AI) and Machine Learning (ML) algorithms.
However, as a consequence of delegation of authority among stakeholders and alleviating the contribution of the intermediary, trust establishment would become a key consideration regarding EI grids. Additionally, the cyber-physical system created by the increasing number of stakeholders connecting to the grid through the diverse applications of EI would result in innumerable access points and large data sets, which would elevate its vulnerability towards malicious attacks. Performing grid operations with a large number of heterogeneous access points will be challenging. This would require secure and reliable communication channels for control implementation using the aggregated data, which requires prevention from information leakage [4]. EI will be enabled through blockchain, which is a Distribute Ledger Technology (DLT) with inherent features including immutability, transparency, distributed verification/storage and decentralized authority over a peer-to-peer network [10]. Security features and privacy-preserving techniques incorporated with blockchains offer solutions to mitigate cyber-physical attacks and privacy violations within the operations of the EI grid. Smart contracts enable autonomous operations of the EI grid with the execution of programmed scripts upon the fulfilment of the defined prerequisites [11]. Some processes could be automated through the utilization of smart contracts implemented upon blockchain platforms. These include billing for the energy consumption, invocation and revocation of certificates to authorize heterogeneous DER integration, authorizing payments upon energy trading, dynamic price signalling and monitoring IoT devices to identify node tampering [12][13][14]. Realization of EI is also envisaged to be facilitated through the developments of beyond 5G and 6G communication networks through inherent features. These include DLT/blockchain, ultra-massive machine-type communication, extremely low-power communication, extremely reliable low-latency communication, AI and ML, big data management and distributed processing through edge intelligence [15][16][17][18][19][20].
Even though blockchain is expected to become a key enabler of EI, the integration of blockchain platforms with EI has not been investigated to a considerable extent [4,8,21]. This offers research directives in abundance and to address the identified research gap, this paper presents six key directions of blockchain utilization in EI grid realization. These are (1) energy sustainability through heterogeneity; (2) improved trust, security and privacy; (3) ultimate grid reliability and stability; (4) decentralized scalability; (5) advanced big data management; and (6) grid intelligence. The significance of inherent features of the blockchain, utilized towards realization of the next generation of smart grids in the identified directions, have been illustrated in Figure 2. Challenges pertaining to each identified direction and the role of blockchain utilization have been discussed, summarizing the future research directive in achieving fully autonomous and distributed electricity distribution networks [15]. Hence, this paper aims to present a clear insight of blockchain utilization for strengthening EI grids to deliver maximum benefits to all participating stakeholders. The rest of the paper is organized as follows: Section 2 provides an insight regarding how blockchains can facilitate futuristic electricity distribution to be sustainable through heterogeneity. Section 3 highlights the improvement achieved in security, privacy and trust establishment without the involvement of a third party, related to operations of the future EI grids. The benefits identified through the integration of blockchains include mitigating cyber-physical attacks leading to disruptions in the electricity supply, preventing breaches of privacy and instating trust in distributed operation. Section 4 signifies the contribution of blockchain-based EI grids towards achieving grid stability and reliability, while Section 5 discusses the benefits offered through improved scalability to cater to the increasing number of stakeholders connecting. Sections 6 and 7 elaborate on the role of blockchain to facilitate predictive data analysis integrated with EI data management. Each of these sections highlight the role of blockchains in this progression and the way forward in each individual aspect.

Energy Sustainability through Heterogeneity
Conventional power grids rely mostly on limited variants of energy sources for the fulfillment of the demand [22]. Renewable energy generation, intermittent in nature, geographically dispersed and located in the close proximity of the load centres, is replacing fossil fuel-based generation with a high carbon footprint [5,23]. Energy Storage Systems (ESS) are utilized with the intention of maximizing the benefits of the renewable sources [8]. Energy security is diversified through the implementation of Combined Heat and Power (CHP), using fuel cells where the waste heat from electricity production is utilized for space heating. Consumers who have gained more authority under the envisaged grid context can trade the excess power production from their domestic installations, achieving the benefit of the dynamic real-time energy prices. Electric Vehicles (EV) are receiving attention as a green transportation alternative while the charging stations are located across a large geographical area to facilitate their usage [4]. Incorporating these heterogeneous energy sources from various stakeholders into a single platform would improve the sustainable energy usage.
However, the following challenges can be identified in the road map of integrating heterogeneous energy sources to enable envisaged EI grid operations.

1.
Seamless grid integration: How can we facilitate seamless grid integration of DERs in order to achieve a decentralized, customer-centric grid architecture [23]? 2.
Decentralized marketplace: How is it possible to achieve a decentralized marketplace with dynamic price signaling and maximized consumer satisfaction [24]? 3.
Secure communication: How can we manage secure communication links and storage for large energy data aggregation arising from the increasing number of grid interconnections in a decentralized and secure platform? 4.
Transient and dynamics: How can we mitigate the transient over voltages and undesirable dynamics resulting from bi-directional energy routing and uncoordinated grid interconnections of DG, ESS and EV [25]? 5.
Improving interoperability: How can we achieve interoperability of heterogeneous energy sources that adopt different grid interconnection standards?

Role of Blockchain
Smart contracts can be utilized to ensure seamless integration of DERs through invocation of certificates and revocation of them upon request. Blockchain establishes a trusted environment in a decentralized marketplace, which provides confidence for the prosumers to engage in P2P energy trading while avoiding the risk of non-repudiation and double spending [12]. Microgrid implementations such as Brooklyn microgrid [26] and Power Ledger [27] in Australia could be identified as promising, decentralized blockchain-based solutions facilitating P2P trading. Furthermore, Share & Charge in Germany and Juice Net of North America are milestone projects in dencentralized energy markets for P2P EV charging [13]. Inherent cryptographic encryption of blockchain would enable user authentication without third-party intervention. Blockchain could further function as a secure and reliable data communication link and storage platform for efficient management of large data sets associated with these diverse EI applications. Energy sustainability is assured with transparent exchange of heterogeneous forms of energy [12].
However, mitigation of transient overvoltages and issues related to interoperability, which arise while the implementation of heterogeneous EI grids cannot be facilitated through a blockchain platform itself. Adequate standards need to be implemented with the intention of sustaining desirable grid operations.

Future Directions
The incentive-based benefits obtained through real-time dynamic electricity pricing are receiving attention in the grid integration of DERs beyond small scale capacities at different voltage levels of the grid [28]. This will be facilitated through 5G and beyond 5G technologies, offering ultra-reliable, low-latency communication and edge intelligence supporting remote communication for intermittent connectivity respectively. Blockchain would provide an overlay with distributed storage facility. Precision decision-making, incorporating AI along with reliable communication and data processing through edge devices, as envisaged with 6G, would enable the realization of next-generation electricity networks [29].
Lessons: Decentralized energy trading is a well-established research area with several approaches proposed and real-world scenarios being implemented [26,27,[30][31][32][33][34]. Examples include P2P trading of renewable energy [33,35,36]. Communication links are expected to be made secure through proposed blockchain integrated architecture, which, however, has room for improvement with novel Smart Grid 2.0-specific security threats to be addressed [37]. Meanwhile, facilitating seamless grid integration of DGs [12] and their interoperability [8,21] are the challenges with future research prospects considering the existing work, which would require collaborative technological approaches facilitated through blockchain.

Improved Trust, Security and Privacy
Future energy grids have envisaged seamless peer-to-peer connectivity with the autonomous operation in contrast to conventional smart grid context. This is where the Distribution System Operator (DSO) governs the ownership and authority over the management of infrastructure, certificate invocation and revocation for DER integration and supervision of energy exchange with the grid [26,38]. Consumers liberating in the envisaged EI grids would promote microgeneration where energy is traded between two nodes of the network without the involvement of a third party, reducing the losses and additional cost incurred. A mechanism which could establish the trust factor with minimal middle-man involvement would drive the energy grids towards the expectations.
Furthermore, EI grid operation aggregates data related to real-time energy consumption through smart meters, electrical measurements obtained by IoT sensors, bids to trade excess energy, requests to fulfil demand deficit and control signals for grid regulation. The key considerations that strengthen the future energy network would be privacy-preserving protocols to eliminate the risk of revealing individual energy usage patterns, exposing consumer identity and disclosing information to a third party without the consent of the user.
Additional key considerations would be secure operations through reduced vulnerabilities of the grid towards physical attacks, software attacks, network attacks, control-related attacks and encryption attacks [39]. The increase in the number of access points connected to the network and the heterogeneity of the devices observed would have a direct impact over the management of trust, security and privacy issues of the speculated EI grids [40].
The following challenges were identified, impeding the secure and privacy-protected operations of EI grids for which a blockchain platform would be a promising solution.

1.
Device tampering: How can we prevent tampering and unauthorized accessing of smart meters and smart sensors to ensure integrity of the obtained energy measurements [40]? 2.
Man-in-the-Middle attacks in EI grids: How can we establish a secure communication link between the prosumer and the consumer during energy trading and prevent Man-in-the-Middle attacks causing data manipulation? 3.
DDos attacks in EI grids: How will it be possible to detect Distributed Denial of Service (DDoS) attacks causing deliberate traffic of energy requests and depriving the legitimate users from consuming energy [41]? 4.
Privacy issues: Can a consumer participate in DSI initiatives while preserving the privacy of energy consumption data which can trace back to the behavioral patterns of the user? 5.
Authentication: How can the identity of a node in the energy grid be verified in a decentralized architecture without revealing the connection between the energy signature and the owner's name and location? 6.
AI and ML related-attacks: How can we mitigate data poisoning attacks related to integration of AI and ML techniques in predictive data analysis [42,43]?

Role of Blockchain
Blockchain platform inherently establishes trust with minimal external interventions while offering a secure and transparent mechanism to create a reliable link between the nodes participating in energy trading. Transactions are recorded in an immutable and transparent format while each node holds a copy of the current ledger [21], preventing data modification and false data injection. Smart contracts could automate processes such as billing and finance settlement without the requirement of a trusted third-party intervention at a cost, while blockchains with the inherent use of Public Key Infrastructure (PKI) would enable identity authentication with pseudo-anonymity, privacy preservation of the participating nodes and protection of data integrity [44]. The Lightning Network and Smart Contract (LNSC) model proposed in [45] offers a security model comprising of registration, scheduling, authentication and charging phases. This integrates security options for user authentication, facilitating secure mechanisms for charging and discharging EVs. Guardtime, a US-funded project, has utilized a keyless authentication scheme for scalable EI grids with hash-function cryptography and digital signature authentication [21].
Cryptanalysis, in which breach of encryption algorithm is observed, can be addressed through the digital signatures incorporating private-public key pair, which is unique to each stakeholder. AI and ML models introduce a new set of adversaries, including data poisoning attacks, model evasion, extraction and inversion-related ML techniques utilized in EI grid realization [42]. Data poisoning can be mitigated through the incorporation of blockchain distributed data storage, while alternatives such as adversarial machine learning, moving target defence and defensive distillation would provide resilience against adversaries identified in ML models [42].
Even though tampering of IoT devices and undesirable data traffic in communication channels cannot be fully addressed through blockchain initiatives, such platforms can be utilized to monitor the scenario and execute corrective measures to minimize the damage. Further, the existing security and privacy-preserving mechanisms incorporating cryptography and 51% attacks on the blockchain-based applications are vulnerable to advancements in quantum computing, thus demanding for quantum-resilient security alternatives [46][47][48].

Future Directions
Under the current blockchain context, immutability of the distributed ledger has been exploited to establish the trust factor and verify information security. However, the developments emerging with 6G technology facilitate distributed computing utilizing edge devices, which could further enable consolidation of resources to achieve computational efficiency [49]. Such collaborations would pose a risk of accumulating 51% authority over the peer nodes, thereby gaining capabilities for modification of the past records. Such adversaries should be addressed in the envisaged grid operation.
Further, integrity and confidentiality of the information, along with the identity of the user, could be compromised through the revealing of the public and private keys used in PKI. This could be mainly due to the prolonged usage of the keys and as a result of the malicious attempts to reveal these cryptographic text patterns utilizing quantum computing, which is the most recent development enabling extensive computational capabilities [8]. Ensuring security and privacy with technological progressions would be challenging in future grid implementations [50].
Lessons: Blockchain integration with Smart Grid 2.0 has facilitated in mitigating software and network related attacks, including Man-in-the-Middle and DDoS adversaries [37]. Further, the existing work has proposed different user authentication and privacy-preserving approaches, which have been implemented through cryptographic techniques used in blockchain [45,[51][52][53][54][55][56]. The most widely adapted approach could be identified as cryptographic encryption-based digital signatures for user verification [37]. However, modern smart grids, which are to incorporate predictive data analytic tools for intelligent decision, are vulnerable to AI and ML-related attacks [15,16]. These adversaries would overlay the security threats governing Smart Grid 2.0, which would require accelerating the existing research initiatives.

Ultimate Reliability and Stability
Future consumers would heavily rely on electricity through the utilization of smart appliances with the onset of smart buildings, while the future electricity grids are envisaged to rely more on intermittent generation, including renewable power production incorporated with ESS [1]. Grid stability and reliability of the power supply become vital factors of the speculated EI architecture [57].
The intermittent operation of the renewable generation and the energy consumption patterns of the dynamic loads are difficult to predict. Stability achieved through the grid surveillance performed using IoT devices, facilitated by Deep Learning (DL) techniques, would drive the expectations of the future electricity grids while managing the dynamic nature of both generation and loads [58].
Delivering a reliable power supply with the stochastic nature of the electricity generation and consumer demands real-time monitoring through IoT devices, precise decisionmaking capabilities empowered through AI and ML-enabled big data management, efficient information exchange, data processing through advanced communication protocols and distributed computing. These would further be the pillars that strengthen the future EI grids [16].
However, the following challenges have to be addressed in order to ensure stable and reliable grid operations.

1.
Supply-demand balancing: How can we facilitate seamless integration of DG to achieve dynamic response in power output to rectify supply-demand mismatch [23]? 2.
Intermittent generation: What will the possibility be of securing stable and reliable grid operation in a decentralized architecture with no third-party involvement and heterogeneous grid interconnections? 3.
Secure communication: How can we facilitate secure communication links to improve the exchange of energy data and control signals between peers to improve stability and reliability of a distributed grid? 4.
Intelligent decision-making: How do we arrive at intelligent decisions for optimal generation allocation to improve grid stability management? 5.
Energy theft: How can we prevent energy theft, ensuring the consumer a reliable energy supply? 6.
Power quality management: How can we mitigate the issues related to non-compliance of power quality standards by the prosumer, DG owner and consumer?

Role of Blockchain
Blockchain and smart contracts can be utilized to invoke certification for seamless grid integration of renewable energy generation upon fulfillment of the prerequisites. This would decrease the latency and improve grid stability [59,60]. Lightweight blockchain platforms would further provide means of increasing the transaction throughput of the energy grid. Efficient correction of supply-demand mismatch through precision decisions arrived upon predictive analysis would facilitate reliable future grids. Blockchains would be the means for secure storage and broadcasting of energy bids and demand requests, enabling the predictive analysis on aggregated EI data. The integrity of data sets used for the application of AI and ML technologies could be ensured through the cryptographic encryption methods incorporated with blockchain [29]. The Spanish renewable initiative Iberdrola is utilizing blockchain for tracking of wind power generation and is expected to contribute in seamless grid integration of DER by issuing origin certification [13]. The decentralized solution eliminates the need for a third party as a middle man.
Blockchain, however, cannot be identified as the ultimate solution for ensuring stability and reliability of futuristic decentralized grid architecture with no central authority. Advanced control strategies need to be proposed in this aspect, with blockchain facilitating them from the rear end by providing secure data transmission and storage. Deployment of smart contracts would enable autonomous execution of the control strategies for securing grid stability.

Future Directions
Grid stability and reliability are expected to progressively advance through AI and ML algorithms, enhancing the capabilities of the future grids beyond expectations. Deployment of Virtual Power Plants (VPP) and Autonomous Vehicles (AV) contributing in Vehicle-to-Grid (V2G) and Vehicle-to-Vehicle (V2V) interactions match the supply with the demand.
Meanwhile, smart cities that integrate smart buildings with intelligent appliances would reshape the future grid architecture, with autonomous stability and reliability management approaches being a requisite [4,61].
Lessons: Elimination of energy theft through double auction and other mechanisms has been presented in the existing literature [12,15,51,56,62]. However, securing communication channels to offer a reliable electricity supply while addressing the challenges related to intermittent generation of DGs have research prospects for maximization of renewable energy utilization in Smart Grid 2.0 [12,37]. This would enable matching the supply with the demand; however, maintaining the power quality within the allowable limits [51] would be another challenge to overcome in the envisaged grid architecture, with little research being carried out related to this aspect.

Decentralized Scalability
EI envisages millions of seamless interconnections of independent producers, microgeneration comprising of solar PV, wind, fuel cells, ESS for maximizing the benefits of intermittent renewable generation and EVs with their charging stations dispersed in a large geographical area [3]. IoT devices connected to this network would, thereby, aggregate large volumes of transaction and energy information. These access points increase in their numbers, owing to the attention received by the EI concept in the future grid architecture where decentralized scalability would be a role player. 6G-enabled distributed processing by edge computing, cloud data storage, AI and ML-based competent control algorithms, information security and privacy-protected data can be identified as the facilitators of decentralized scalability of the envisaged EI grids [16,57].
Challenges to be addressed in terms of achieving decentralized scalability, with the onset of increasing numbers of grid interconnections, have been discussed below.

1.
Scalable, decentralized EI grids: How can we offer scalable solutions for decentralized energy grids which would facilitate integration of large numbers of heterogeneous generation sources and extending the customer base [4]? 2.
Low-latency grid synchronization: How can we achieve low-latency decision-making for the synchronization of large numbers of connected DGs [60]? 3.
Scalable data management: How can we mange the large energy data set generated by the continuously expanding consumer base of future EI grids?

Role of Blockchain
Inherent features of blockchain enable the delegation of processing to edge nodes and cloud storage platforms through a trustless trust establishment. Low latency and high throughput can be achieved through distributed processing which further provides solutions to intermittent connectivity in remote areas in a store and forward manner. PETCON, a secure P2P trading mechanism for plug-in hybrid EVs [63], and Guardtime, a permissioned blockchain-based approach, are considered to be scalable solutions for complex data exchange in EI grids.
Further, with the incorporation of off-chains, side-chains, sharding and edge computing to offload the computational burden, better results have been obtained to cater for the increase of nodes connected with minimum trust issues. This would be further empowered with the speculated advancements in communication infrastructure by deployment of 6G technologies, enabling edge intelligence [29]. DL and big data analysis applied on the data aggregated in cloud storage would be controlled and managed through a secure mechanism utilizing blockchain platforms. Leakage of information would be shielded and better control over the data can be achieved through such approaches [16].
Scalability issues related to EI grid implementations, however, have not been fully overcome through the blockchain platforms. These can be identified as future research prospects for the improvement of the applicability of blockchain for energy grid management.

Future Directions
Achieving distributed scalability at the cost of compromising information security and privacy of the user respectively defies the expectations of the future grids. The blockchain trilemma would receive attention in the pathway towards successful implementation of the futuristic grid infrastructure [64]. The vulnerabilities in grid security would expand beyond the current extent with the scalable, decentralized operations. Thus, proper measures would be a necessity to instate the trust in the EI grids.
Further, connectivity has a major impact in reaching the scalability goals, which can be addressed through advancements such as 5G and 6G technologies. The former would enable low-latency communication channels while the latter would address the intermittent connectivity in rural geographical locations by utilizing edge devices [29].
Lessons: Scalability of EI grids are partly addressed through off-chain and side-chain implementations [65] as well as suitable selection of the blockchain platform [21,32,66]. This includes scalable initiatives such as NRG Xchange [32] and analytical selection of the blockchain platform such as HyperLedger over Ethereum [64]. Energy data management with the increasing number of consumer connections would be a challenge to be addressed, while facilitating low-latency grid synchronization of DERs has not been discussed in the existing literature [12,65,67].

Advanced Big Data Management
Big data management facilitates performing of predictive analysis on aggregated large data sets using AI and ML algorithms [68]. Such data set will be of utmost value to a large community of stakeholders. In the instance of the energy sector, this includes power producers, consumers, utilities and non-power participants such as policymakers, investors and financial institutions. The data set can be utilized in various applications in order to facilitate EI grid transformation [4]. Grid stability and reliability of power supply are secured through the predictive analysis of this aggregated data using AI and ML approaches and, further, by stimulating autonomous operations [16]. Energy sustainability achieved through the heterogeneity of the sources is managed and coordinated using the effective utilization of measurements obtained from the connected IoT devices.
However, the aggregated data should be protected against malicious attacks which could manipulate the information, sabotaging the grid operations while preventing leakage of information to external parties. Big data management would, thus, be considered as an important entity, driving the practical realization of the future grids [4].

1.
Data silos: How can we overcome data silos and establish trust between prosumers, microgrids and large power plants for better coordination? 2.
Secure communication: How can we achieve secure communication channels between smart meters/smart sensor nodes and the Energy Management System (EMS) [40]? 3.
Secure data storage: How can we provide secure, privacy-preserving and scalable storage for the aggregated large data sets containing generation and consumption patterns of consumers and prosumers respectively? 4.
Data integrity protection: How can we ensure the integrity of the stored energy data utilized for AI model development, training, validation through ML techniques, testing and deployment [40]? 5.
Data ownership: How can we ensure ownership of the aggregated energy consumption/production pattern data to prevent privacy-violations arising from unauthorized trading of these sensitive data to a third party? 6.
Scalable grids: How can we facilitate the management of large data volumes while offering scalabilty for grid expansion with numerous grid integration of prosumers, microgrids, EVs and collaborative consumers participating in DSIs?

Role of Blockchain
Communication technologies are progressing towards delivering an efficient, ultrareliable, low-latency service to the consumer through 5G, thereby facilitating the data aggregation process. Further, 6G network operation enables delegation of the computational capabilities for the processing of information to multiple edge devices [20,29]. Blockchain will be an integral part of both of these scenarios and its integration would enable secure data, control signal transmission and trust establishment for distributed processing using edge computing respectively [69].
Data aggregation further involves secure data storage on cloud-based platforms, in which blockchain would ensure cyber-security, information security and network security, preventing malicious attacks that could modify data. The hash function incorporated in blockchain ensures the integrity of the stored data. Moreover, privacy could be enacted, gaining control over the information through the deployment of smart contracts for data sharing while maintaining anonymity [70,71].
Predictive analysis upon the aggregated data will be facilitated through AI and ML, in which blockchains could contribute as a trusted mediator. This would ensure the integrity of the data incorporated and the algorithms compiled [16] while deploying autonomous operations through smart contracts.
Blockchain alone, however, cannot facilitate scalable platforms for big data management. This demands alternative distributed storage platforms supported by the blockchain from the back end, which include utilization of off-chain storage and Inter-Planetary File System (IPFS).

Future Directions
Blockchains in collaboration with smart contracts could extend the utilization of the aggregated data set where individual stakeholders (consumer, prosumer and individual power producers) would trade the information to potential investors, asset managers such as financial institutions, utilities and policy makers to obtain financial benefits. The secure and transparent link will be established through 6G architecture and the blockchain platform [72].
Lessons: Future EI grids will be integrated with AI and ML for predictive data analysis, giving rise to a new set of challenges which were not encountered in previous generations of smart grids [70]. Blockchain integration with EI grids have facilitated data integrity protection through cryptographic hashing [37] and is well addressed in the existing literature. However, addressing the challenges, including data silos [73], facilitating secure, scalable data communication and storage with privacy-preserving data ownership [21,74], would require further research attention.

Grid Intelligence
The trends of the future energy grids have been speculated as autonomous power delivery operation, self-healing fault recovery, efficient fault location identification to reduce system downtime, minimized human interactions in the decision-making process and accurate demand forecasting [61]. AI and ML have been recognized as prospective candidates in these domains, which would stimulate the emergence of intelligent electricity grids. The former would facilitate automated network control through Zero-touch network and Service Management (ZSM) [42] while predictive models will be enabled through ML techniques. Process automation includes automated billing, renewable integration through certificate invocation upon request and revocation owing to noncompliance with the grid prerequisites, supply-demand balancing, speculation of the load patterns for the scheduling of the DERs, asset management and fault resilience [75].
However, AI itself has security and privacy issues which can be a potential instrument for launching intelligent attacks.

1.
Data manipulation: How can we mitigate manipulation of energy input data (electricity consumption and production data obtained through smart meters) and validate the authenticity of the information? 2.
ML: How can we prevent the model inversion, poisoning pertaining to training and deployment of ML models, used for adaptive decision-making processes in automated generation allocation of EI grids [42]? 3.
Ethical data aggregation: How can we ensure ethical use of aggregated energy production/consumption data for AI model training and prevent unauthorized data sharing with compliance to privacy preservation? 4.
Transparency: How can we improve transparency in model development, training, testing and deployment, resulting in algorithms that are reliable for diverse applications with grid integration of heterogeneous energy sources? 5.
Automation: How can we assure security in AI-based automation of network control and orchestration with it [42]? 6.
Trust management: How can we establish trust among stakeholders participating in energy trading in EI grids and improve transparency in process automation through the deployment of AI models [76]? 7.
Accountability: How do we ensure the accountability of the AI algorithms for automated decision-making processes responsible for generation coordination, distribution network management and fault recovery?

Role of Blockchain
Intelligent grids arrive at decisions based on the aggregated data set obtained through IoT devices and incorporation of AI and ML techniques [77]. The integrity of the data used in ML models and preventing data poisoning would be the key consideration, which directly impacts the decision-making process. With blockchain being an immutable DLT, this would ensure data integrity by preventing data manipulation, injection and corruption [70,78]. Privacy preserving of the large data sets can be achieved through distributed edge computing, facilitated by blockchain platforms where raw data will remain closer to its origin, assuring confidentiality [42].
Nevertheless, the authenticity of the algorithms generated through the incorporation of AI and ML cannot be verified through the blockchain platform. Security and privacy preservation in AI based systems, however, cannot be fully facilitated by blockchain platforms and, thus, will require AI-resilient measures. At the same time, this would affect the control decisions obtained for the stable and reliable operations of the decentralized architecture. Standardization and regulatory enforcement are required to overcome such issues arising in the envisaged electricity grids.

Future Directions
The advancements in big data and computing technologies have facilitated the emergence of DL techniques for pattern recognition from the aggregated information [79]. This would, thereby, enable accurate demand forecasting for optimal load scheduling and load balancing to reduce peak electricity demand, facilitate energy trading and sharing, state estimation of the power grid and perform grid diagnostics for the detection of energy theft. The higher precision achieved in the energy demand speculation would benefit in maximizing the utilization of DER to cater for the demand requirements while maintaining grid stability [80]. Further, fast blockchain-based data-feeding models need to be introduced to facilitate the development of efficient and accurate ML models. Initiatives towards collaborative model development approaches using AI and ML techniques have given rise to Federated Learning (FL), in which individual data storage on a decentralized network is encouraged [81][82][83]. This facilitates predictive data analysis through training of a shared model using different data sets, offering capabilities of generalized model development with the benefit of privacy preservation of the user data. Blockchain facilitates trust establishment and prevents data poisoning, improving transparency in training, validation, testing, deployment and storage of training data sets for such shared models. Smart contracts enable the automation of iterative processes, improving the flexibility of model development and data analysis. However, challenges raised through the blockchain architecture relating scalability and smart contract security, need to be addressed further to expand the capabilities of FL techniques [83].
xAI (explainable AI) is gaining attention in the current context of AI integration with IoT for predictive data analysis. This could improve the transparency of the AI models associated with demand forecasting, evaluation of energy usage patterns, renewable energy modeling and automated grid operation with optimum generation allocation and load scheduling. xAI unravels the black box AI models, thereby improving transparency in predictive data analysis and establishing trust in the decisions arrived through such approaches [76,84].
Lessons: Grid intelligence would dominate the future autonomous and the challenges arising from AI-integrated smart grids are seldom addressed through the existing literature [70]. Improving transparency to ensure accountability of ML models [15,85] and trust management in the decisions arrived through the models [21,85] would be EI grid-specific challenges to be addressed in future research.

Discussion
The envisaged EI grids intend to integrate a diversity of distributed resources in order to achieve decentralized, autonomous operations. This facilitates consumer liberalization while enhancing reliability, stability through a secure and privacy-preserving platform. Blockchain is identified as an eminent factor driving the transformation from the hierarchical architecture towards an open market. Blockchain facilitates the realization of the intelligent grid architecture at the benefit of real-time operation with minimal involvement of an intermediary [86].
The paper discusses six directions of future EI architecture realization through the integration of blockchain platforms. Enhanced energy diversity catered with an improved security and privacy-preserving mechanism utilizes the inherent features of the blockchainbased architecture. Grid intelligence along with the EI data management, facilitate the near real-time decision making through predictive data analysis [77]. The ultimate goal of the blockchain integrated EI grids would be to ensure a reliable and stable power supply while maximizing consumer participation in electricity distribution [87]. Further, it is envisaged to achieve delegated authority with the distributed operation, which eliminates the threat of single-point failure.
The key challenges related to each direction discussed in the previous sections are summarized in Table 2. The applicability of inherent blockchain features to address these challenges is visually represented. The contribution of the existing work in addressing the key challenges identified for each driving trend has been categorised according to its level of impact. Among the identified challenges, establishment of a decentralized, P2P marketplace is a well established research area having many real-world implementations. Securing communication links, adversarial handling related to privacy, authentication, data manipulation and energy theft, attention given in establishing scalable grids having data integrity preserved are addressed through the existing work up to a reasonable extent. However, further developments are required to fully overcome the challenges present. Challenges which require significant research consideration include facilitating seamless grid integration for DERs enabled with low-latency grid synchronization, ensuring interoperability, power quality management with high penetration of DG, improving accuracy of intelligent decision making, efficient smart grid data management, accountability and trust management. AL and ML related attacks require attention in future grids in the way forward, facilitating predictive data analysis tools.
In addition, Table 3 summarizes the level of impact of each identified directions on broad applications of EI grids. Further, the benefits of integrating blockchains in each instance have been elaborated. Practical implementations and examples related to EI grid applications have been considered in this analysis, which verifies the benefits of blockchain integration in future energy grid realizations and signifies the way forward. However, the attention received by these novel electricity grids has attracted more stakeholders where scalability becomes effective. Decentralized scalability is a requisite to cater to the demands of the distributed grid operation with minimal third-party involvement; hence trust establishment mechanism should be transparent. Existing blockchain platforms have not reached the level of maturity to cater to the extensive numbers of stakeholders integrating with the EI grid [64]. Secure and privacy-preserving techniques, which do not trade-off scalable blockchain solutions, need to be considered for future electricity distribution networks to attain maximum benefits. Decentralization, scalability and security/privacy trilogy should be equalized for successful grid transformation from conventional top-down hierarchical architecture to open electricity markets offering the benefit of consumer liberalization.
Further, blockchain specific security attacks which are identified during the operations should be eliminated for interruption-free power delivery. The distribute operation and increased consumer participation observed in the electricity trading would lead towards the development of a 51% authority of collective stakeholder contribution, thereby assume charge over the blockchain platform [98]. AI and ML integration in blockchain-based EI grids would trigger security threats related to massive data set [70].
The latency observed in consensus-based transaction verification incorporated in blockchains will create adverse impacts on the real-time operations of the envisaged EI networks [99]. Further, the limitations in the storage availability of the distributed ledger platform have to be managed to align with the increase of stakeholder integration with Smart Grid 2.0 [74].
Maintenance of blockchains to overcome such challenges related to extensive involvement of diversified stakeholders would require customized platforms, which is seldom discussed in the research literature. An energy grid-specific blockchain platform could better contribute towards efficient implementation of EI grids, ensuring the decentralization, security and scalability trilogy. Integration of big data management with AI and ML based predictive data analysis leads the way forward towards demand-operative, autonomous, real-time grid operations where trust establishment would be facilitated through a customized blockchain platform.

Conclusions and Future Research Directions
The paper analyzes six directions of blockchain utilization for facilitating the realization of the envisaged, intelligent, autonomous EI grids. Energy sustainability through heterogeneity, improved trust, security and privacy, ultimate reliability and stability, decentralized scalability, advanced big data management and grid intelligence are identified as these directives while challenges and the future research for maximizing the benefits of the envisaged architecture are elaborated with respect to each identified key direction.
The paper presents a clear insight of the successful integration of blockchain technologies with AI and ML based predictive analysis in future electricity networks to reshape the energy industry to fully-autonomous, self-resilient grids. xAI, federated ML and DL would enable trusted and transparent grid intelligence in future smart grids. AV era would be realizable through such intelligent smart grids. Beyond 5G communication architecture would facilitate the integration of edge intelligence for distributed processing thereby, offer scalable, efficient and responsive EI grids.
Blockchain offers great flexibility in providing security solutions through the inherent features. However, challenges have been identified in the areas of AI and ML integration, which would require alternatives beyond blockchain. Funding: This work was jointly funded by the framework of 6Genesis Flagship (grant 318927) and the grant awarded by the University Grants Commission, Sri Lanka to develop a COVID-19 Self-Quarantine Monitoring and Tracking Platform.

Conflicts of Interest:
The authors declare no conflict of interest.

Abbreviations
The following abbreviations are used in this manuscript: