Next Article in Journal
FPGA-Accelerated ECG Analysis: Narrative Review of Signal Processing, ML/DL Models, and Design Optimizations
Previous Article in Journal
Research on Enhancing Disaster-Resilient Power Supply Capabilities in Distribution Networks Through Coordinated Clustering of Distributed PV Systems and Mobile Energy Storage System
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Adaptive Edge–Cloud Framework for Real-Time Smart Grid Optimization with IIoT Analytics

Department of Electrical Engineering, College of Engineering, Majmaah University, Al-Majmaah 11952, Saudi Arabia
Electronics 2026, 15(2), 300; https://doi.org/10.3390/electronics15020300
Submission received: 21 November 2025 / Revised: 30 December 2025 / Accepted: 1 January 2026 / Published: 9 January 2026

Abstract

The large-scale integration of Distributed Energy Resources (DERs) in smart grids creates challenges related to real-time optimization, system scalability, and operational security. This paper presents GridOpt, a hybrid edge–cloud framework designed to address these challenges through distributed intelligence and coordinated control. In GridOpt, edge nodes handle latency-sensitive tasks, while cloud resources support the processing of large-scale grid data. Security is addressed through the integration of homomorphic encryption and blockchain-based consensus, together with an interoperability layer that enables coordination among heterogeneous grid components. Simulation results show that GridOpt achieves an average latency of 76 ms and an energy consumption of 25 Joules under high-throughput conditions. The framework further maintains scalability beyond 10 requests per second with a resource utilization of 54% in dense deployment scenarios. Comparative analysis indicates that GridOpt outperforms ECCGrid, JOintCS, and EdgeApp across key performance metrics.

1. Introduction

Including DERs in the smart grid system changes the whole process of energy generation, transmission, and consumption [1]. The increase in the use of renewable energy sources such as solar panels and wind turbines, as well as the development of energy storage solutions, has led to a shift from the conventional central power grid system to a decentralized system [2]. The concept of IIoT has made it easy for data to flow from one component to another. The aspect of edge computing and cloud services has become vital in dealing with the data generated by the system [3].
The traditional smart grid infrastructure, which relies on smarter infrastructure, has come with a number of challenges that are not ideal for perfect functionality. Scalability is one of the challenges that come with the integration of IIoT technology and DERs. There is a high level of data that this system is not capable of handling [4]. The reliance on cloud computing incurs latency that makes this system not ideal for addressing problems that need quick solutions [5]. The system has security risks that can easily fall through its edges since they are not capable of handling security issues [6].
We aim to design a comprehensive solution that is capable of handling the existing problems associated with the infrastructure of a smart grid. The key question that is essentially being sought through this research work is as follows: How can a hybrid edge–cloud solution be designed in a manner that ensures it is capable of offering optimal functionality in real time as well as scalability and enhanced security for a smarter grid infrastructure that is connected to energy resources through IIoT analysis technology?
The proposed solution involves the development of a hybrid computational model that integrates resources from edge and cloud computation. Data processing and analysis from the IIoT, as well as the use of edge computational devices, initiate immediate decision-making related to the critical activities in the power grid. Cloud computing provides comprehensive storage of information and complex analysis involving resource-intensive computations and machine learning techniques required for prediction and maintenance. Dynamic security systems that can develop improved designs and implementations of blockchain technology can enhance security against the flow of information related to the use of edge devices and cloud computing. The operational scenario of the proposed system is illustrated in Figure 1.
The significant contributions related to the proposed solution can be identified as follows:
  • Develop a scalable and efficient architecture that balances computational loads between edge and cloud resources to optimize real-time operations in smart grids.
  • Create advanced machine learning models to enhance predictive maintenance capabilities, improving grid reliability and reducing operational costs.
  • Introduce adaptive security measures and establish interoperability frameworks to secure communications and device integration within the grid.
The structure of this paper is outlined as follows: Section 2 reviews the relevant literature. Section 3 details the proposed hybrid edge–cloud framework. Section 4 discusses the findings. Finally, Section 6 summarizes the conclusion.

2. Literature Review

The integration of DER devices in the smart power grid has been thoroughly analyzed in previous studies, and the latest development focuses on the implementation of edge computation and the IIoT solution to increase the efficiency of the power grid. The design of the edge computation system has been proven to significantly eliminate the delay and improve the real-time decision-making process [7]. In the proposed system architecture, the principle of distributed analysis has been employed to support the real-time monitoring and control of the DER devices but sometimes faces the challenge of scalability when more devices are connected through the implementation of the IIoT solution [8].
Cloud infrastructure has been used to implement the integration of machine learning techniques that support the prediction maintenance function and the smart power grid [9]. On the other hand, fog computing has been considered as a solution to bridge the remaining gap between the cloud and the edge. Fog computing has been recognized to aim at delegating some computation workload from both the cloud and the edge to the fog node [10]. However, the availability of the fog node tends to limit the efficiency of the fog computation.
For the security-related issues, the incorporation of blockchain-based security systems has been included to ensure the safety of communication among the components [11]. The computational complexity involved in the use of the blockchain system, particularly the PoW or PBFT algorithm-based systems used during the consensus phase, can hamper the system performance, especially when used in resource-limited devices at the edge of the network [12]. Although the challenge of computational complexity has been addressed through the introduction of less complex consensus algorithms like the Directed Acyclic Graphs (DAGs), the lack of scalability and standardization has limited their integration in the smart grid network [13].
Interoperability challenges were overcome by the design of the internet communication protocol used for devices employed in the smart grid infrastructure to improve the IIoT [14]. The implementation of the new norms brings about drastic changes to the already existing infrastructure. The ontology framework has been studied for enhancing semantic interoperability. This assists devices in exchanging significant information across diverse systems [15].
Hybrid edge–cloud architecture has been used to divide the workload of the edge–cloud based on the type of the involved data [16]. Artificial intelligence techniques involving LSTM and CNN models have been employed to improve the prediction analysis during maintenance and anomaly occurrences [17]. Another area of interest has been energy efficiency for the optimization of the smart grid [18]. Energy-efficient techniques involving hardware acceleration through the use of FPGAs and ASICs have been proposed to reduce the consumption of electricity during periods of high processing capacity [18].
Recent advances in IoT-enabled smart grid intelligence include frameworks that integrate advanced machine learning and privacy techniques to improve real-time prediction and energy optimization. A federated learning and homomorphic encryption-based IoT smart grid framework was proposed for secure energy consumption prediction [19]. Privacy-preserving machine learning applications in IoT-integrated smart grids, highlighting challenges and opportunities in deploying ML models under resource constraints, are surveyed by [20]. Earlier, a distributed edge computing-based green smart grid architecture was developed to demonstrate efficiency and reliability improvements [21]. The comparison of related approaches and the proposed framework is presented in Table 1.

3. Proposed Framework

This proposed framework provides a novel hybrid edge–cloud system design. The proposed system enhanced the real-time computation process of the smart grid environment, incorporating the integrated DER. In the case of the hybrid edge–cloud system design, the structure consists of the following: the industrial internet of things, involving sensors and actuators, edge computers used for computation at the edge of the network, and cloud servers. The edge devices continuously send data on grid parameters such as voltage, current flow, and power flow from the smart grid at a very high speed. The devices send data to the computers for initial processing. The processed data is then uploaded to the cloud servers, where intensive operations such as data analysis and model training take place. The cloud servers also facilitate coordination across different grid segments by aggregating data from multiple edge units, illustrated in Figure 2.

3.1. Real-Time Edge Analytics

At the edge layer, real-time analytics are essential for processing incoming data from IIoT sensors and making instantaneous decisions to optimize grid operations. Let x ( t ) R n be the measurement vector from IIoT devices at time t, and let s ( t ) R m represent the system state vector; their relationship is described in Equation (1):
x ( t ) = H s ( t ) + v ( t ) ,
where H R n × m is the observation matrix and v ( t ) is the measurement noise assumed to be Gaussian with zero mean and R -covariance. The optimal estimate of the system state s ^ ( t ) minimizes the following cost function:
s ^ ( t ) = arg min s x ( t ) H s R 1 2 + s s ^ ( t 1 ) Q 1 2 ,
where a M 2 = a M a and Q is the state covariance matrix. Anomaly detection is performed by evaluating the innovation vector:
e ( t ) = x ( t ) H s ^ ( t ) .
The normalized residual is calculated as follows:
r ( t ) = R 1 / 2 e ( t ) .
An anomaly is declared if the following condition is met:
r ( t ) 2 > δ ,
where δ is a predefined threshold based on the desired false alarm rate. For predictive maintenance, a Time-Delayed Neural Network (TDNN) is utilized to forecast future states. The TDNN model is defined as follows:
s ^ ( t + τ ) = ϕ k = 0 K W k x ( t k ) + b ,
where τ is the prediction horizon, K is the number of delays, W k are the weight matrices, b is the bias vector, and ϕ ( · ) is the activation function applied element-wise. The training objective is to minimize the prediction error:
L = 1 T t = 1 T s ( t + τ ) s ^ ( t + τ ) 2 2 .
Control is determined by addressing a constrained optimization problem in real time. The goal is to minimize the following objective function:
J = i = 0 N s ( t + i ) Q c s ( t + i ) + u ( t + i ) R c u ( t + i ) ,
subject to the system dynamics
s ( t + 1 ) = A s ( t ) + B u ( t ) ,
and constraints
u min u ( t ) u max , s min s ( t ) s max ,
where u ( t ) is the control input vector, A and B are system matrices, Q c and R c are weighting matrices, and N is the control horizon. To efficiently address the optimization problem at the edge, the ADMM is utilized. The augmented Lagrangian is formulated as follows:
L a = J + λ ( G z c ) + ρ 2 G z c 2 2 ,
where λ is the Lagrange multiplier, ρ is a penalty parameter, G and c represent the constraints in matrix form, and z is the vector of optimization variables. The optimization variables are updated iteratively:
z k + 1 = arg min z L a ( z , λ k ) ,
λ k + 1 = λ k + ρ ( G z k + 1 c ) .
To implement the real-time edge analytics, Algorithm 1 is presented, which outlines the step-by-step procedure executed at the edge computing units.
Algorithm 1: Real-time edge analytics procedure.
Electronics 15 00300 i001

3.2. AI-Driven Predictive Maintenance

The proposed framework enhances advanced machine learning models to predict potential failures in grid components and optimize maintenance schedules. An HTM model is implemented to capture spatiotemporal patterns in the sensor data. Let X = { x 1 , x 2 , , x T } be a sequence of multidimensional sensor readings over time, where x t R n represents the sensor vector at time t.
The HTM model has multiple levels of processing units. In each level l, the spatial pooling operation combines the inputs to generate sparse codes as follows:
S t ( l ) = σ W ( l ) S t ( l 1 ) + b ( l ) ,
where S t ( 0 ) = x t , W ( l ) and b ( l ) are the weight matrix and bias vector at level l, and σ ( · ) is a sparsity-inducing activation function, such as the ReLU (Rectified Linear Unit). Temporal pooling captures the temporal dependencies by updating the cell states:
h t ( l ) = f S t ( l ) , h t 1 ( l ) ,
here, - h t ( l ) refers to the hidden states at time t and at level l and - f ( · ) denotes the function used that combines the present input and previous hidden states. An anomaly score measures the difference between the present input and the patterns learned:
A t = 1 S t ( L ) S ^ t ( L ) S t ( L ) S ^ t ( L ) ,
where S t ( L ) represents the sparse representation at the highest level L and | · | indicates the cardinality of the set. The anomaly score A t has a minimum of 0 (normal) and a maximum of 1 (abnormal). The model makes predictions for future sensor values:
x ^ t + 1 = g h t ( L ) ,
where g ( · ) is a decoding function that maps the hidden state to the original sensor space. The probability of a fault occurring is estimated using a logistic function:
P fault ( t ) = 1 1 + exp α A t + β ,
α and β are parameters adjusted based on the actual fault history. Formulation of the maintenance plan can now be described as the optimization problem below, aimed at minimizing the cost of downtime. The optimization function is as follows:
min m t = 1 T C maint m t + C downtime P fault ( t ) ( 1 m t ) ,
subject to
m t { 0 , 1 } , t , t = 1 T m t M max ,
where m t is a binary variable representing whether maintenance at time t is performed or not, C maint represents the cost of performing the maintenance, C downtime represents the cost due to downtime based on component failure, and M max represents the maximum maintenance actions allowed during the planning horizon. The optimization technique used to solve the optimization problem is based on the use of the dynamic programming approach. The definition of the cost function V t ( s t ) can now be given as follows:
V t ( s t ) = min m t C maint m t + C downtime P fault ( t ) ( 1 m t ) + V t + 1 ( s t + 1 ) ,
with the boundary condition V T + 1 ( s T + 1 ) = 0 . The optimal policy is obtained by selecting m t that minimizes V t ( s t ) at each time step.

3.3. Enhanced Security Protocols

The combination of advanced cryptographic techniques with adaptive security measures enables secure processing of encrypted data without decryption through a homomorphic encryption scheme. Let m Z q represent the plaintext data collected by an IIoT device, where q is a large prime. The data is encrypted with a public key p k , resulting in the ciphertext c:
c = E p k ( m ) = m · h r mod q ,
where h is a generator of a multiplicative group modulo q and r Z q is a random nonce. The homomorphic property allows for certain algebraic operations to be performed on ciphertexts. For addition, the operation is as follows:
E p k ( m 1 ) · E p k ( m 2 ) = E p k ( m 1 + m 2 ) ,
and for scalar multiplication it is as follows:
E p k ( m ) k = E p k ( k · m ) ,
where k Z . These properties enable the edge devices to perform computations on encrypted data before transmitting results to the cloud, preserving data privacy. To authenticate devices without revealing sensitive information, ZKPs are employed. Let the prover (edge device) prove knowledge of a secret s such that
y = g s mod p ,
where g serves as a generator for a cyclic group with prime order p, and y represents the public key. The protocol proceeds as follows:
  • The prover selects a random w Z p and computes the commitment:
    t = g w mod p .
  • The verifier sends a random challenge c Z p .
  • The prover calculates the response:
    r = w + c · s mod p .
  • The verifier checks the equality:
    g r = ? t · y c mod p .
If the equality holds, the prover is authenticated without revealing s. A private blockchain is implemented to maintain an immutable ledger of transactions and events within the grid. In each block, several details are stored: a set of transactions. In our formal description we continue the notation used above. The i-th block B i can therefore be expressed as follows:
B i = H ( B i 1 ) , MerkleRoot i , T i , σ i ,
here, H ( B i 1 ) refers to the hash of the previous block B i 1 , MerkleRoot i denotes the Merkle root of the transactions occurring in the i t h block, T i denotes the timestamp, and σ i denotes the digital signature of the block creator.
This concurrent consensus protocol relies on the PBFT algorithm. Now, define the total number of nodes as n and the maximum faulty node as f for n 3 f + 1 , as given in Algorithm  2.

Computational Complexity Analysis

Let N denote the number of DER units and IIoT devices handled at the edge and E denote the number of edge nodes participating in coordination.
Algorithm 1 performs per-device state update and scheduling over all N units in each control interval. The dominant steps are linear scans and simple update operations, which yield a time complexity of O ( N ) per interval, with memory complexity proportional to the number of maintained device states, i.e., O ( N ) .
Algorithm 2 coordinates the edge nodes and aggregates their local decisions. For each coordination round, it iterates over all E edge nodes and exchanges a bounded amount of state information. The resulting time complexity is O ( E ) per round, while the memory requirement is O ( E ) for storing edge-level summaries. Since E N in typical deployments, the overall computational cost remains manageable for large-scale smart grid scenarios.
Algorithm 2: PPBFT consensus mechanism.
Electronics 15 00300 i002
An adaptive intrusion detection system (IDS) is incorporated within the edge devices. This IDS has the capability to analyze the network traffic. The IDS uses a statistical anomaly detection model. Let z t R d denote the feature vector obtained from the network traffic at time t. The IDS models the normal behavior using a multivariate Gaussian distribution:
p ( z t ) = 1 ( 2 π ) d / 2 | Σ | 1 / 2 exp 1 2 ( z t μ ) Σ 1 ( z t μ ) ,
where μ is the mean vector and Σ is the estimated covariance matrix from the normal traffic. An anomaly score can now be written as follows:
S t = log p ( z t ) .
An intrusion is indicated when S t goes above a predefined threshold θ , adapted over time based on the false positive rate through
θ t + 1 = θ t + η ( α I { S t > θ t } ) ,
where η is the learning rate, α is the target false positive rate, and I { · } represents the indicator function. For efficient key management, Elliptic Curve Diffie–Hellman (ECDH) is employed for secure key exchange. Consider E as an elliptic curve over the finite field F q , specified by the equation
E : y 2 = x 3 + a x + b mod q ,
where a , b F q satisfy 4 a 3 + 27 b 2 0 . Each device computes a private key d Z q and a public key Q = d · G , with G being a base point on E. Two devices, A and B, compute the shared secret:
S A B = d A · Q B = d B · Q A ,
which is used to derive symmetric encryption keys. The security of the proposed protocols is analyzed using formal methods. The adversary’s advantage in breaking the encryption scheme is defined as follows:
A adv = Pr [ A ( E p k ( m ) ) = m ] 1 | Z q | ,
which is negligible under the hardness assumption of the underlying cryptographic problem (e.g., Discrete Logarithm Problem). The resilience of the blockchain consensus mechanism against Byzantine faults is guaranteed as long as f < n 3 , ensuring security and activity properties as per the PBFT protocol specifications.

3.4. Interoperability Framework

It is a standardized communication protocol built upon a layered architecture, inspired by the Open Systems Interconnection (OSI) model but tailored for smart grid applications. At the Physical Layer, devices utilize a common transmission medium with modulation schemes optimized for grid environments. Let the transmitted signal s ( t ) be defined as follows:
s ( t ) = 2 P · cos ( 2 π f c t + ϕ ( t ) ) · m ( t ) ,
where P denotes the transmission power, f c represents the carrier frequency, ϕ ( t ) is the phase modulation, and m ( t ) is the message signal.
In the Data Link Layer, a collision-free multiple access scheme based on TDMA communication is used. The time interval T is divided into N time slots. These time slots are represented as Δ t 1 , Δ t 2 , , Δ t N and allocated based on the priority { p 1 , p 2 , , p N } for deterministic communication:
Δ t i = T · p i k = 1 N p k , i { 1 , 2 , , N } .
In the Network Layer, the routing of the data packets is optimized using a QoS-aware routing algorithm. The cost function for routing from node i to node j is defined as follows:
C i j = α · D i j + β · L i j + γ · E i j ,
where D i j represents the delay, L i j denotes the packet loss rate, E i j denotes the energy consumption, and α , β , and γ are the weights that add up to 1.
To ensure consistent interpretation of data across devices, a standardized data model is defined using a hierarchical schema. Each data element is represented as an object with attributes and relationships. Let D denote the set of all data objects, where each object d D is defined as follows:
d = ID d , Type d , Value d , Timestamp d , Meta d ,
where
-
ID d is a unique identifier;
-
Type d specifies the data type (e.g., voltage, current, and power);
-
Value d contains the measurement value;
-
Timestamp d records the time of data acquisition;
-
Meta d includes metadata such as units and quality indicators.
Data relationships are defined using an adjacency matrix A R | D | × | D | , where
A i j = 1 , if d i is related to d j , 0 , otherwise .
Ontologies are used for semantic interoperability. This enables devices to interpret the semantics of the information. Let O represent the ontology, defined as a tuple:
O = C , R , I ,
where
-
C denotes the collection of concepts;
-
R represents the network of relationships among concepts;
-
I includes the set of instances. Concepts are structured in a taxonomy using a partial order relation ≤:
c i c j c i is a subtype of c j , c i , c j C .
Semantic similarity between concepts is quantified using an information-theoretic measure:
Sim ( c i , c j ) = 2 · log p ( LCA ( c i , c j ) ) log p ( c i ) + log p ( c j ) ,
where LCA ( c i , c j ) is the least common ancestor of c i and c j in the taxonomy and p ( c ) is the probability of concept c occurring.
To enable dynamic discovery of devices, a protocol based on service advertisements and queries is introduced. Each device broadcasts a service description S d :
S d = ID d , F d , C d ,
where F d is the set of functionalities offered by device d and C d represents the context information (e.g., location and capabilities). Devices seeking services perform queries Q defined as follows:
Q = F q , C q ,
and matching is performed using a compatibility function κ ( S d , Q ) :
κ ( S d , Q ) = 1 , if F q F d C d C q , 0 , otherwise ,
where C d C q indicates context compatibility. An interoperability middleware is proposed that resides between the application layer and the network layer, providing translation and mediation services. The middleware includes the following:
  • A Protocol Adapterthat translates proprietary device protocols into the unified communication protocol.
  • A Semantic Mapper that aligns data elements to the standardized data model using mapping functions μ d :
    μ d : D d D ,
    where D d is the device-specific data set.
  • A Service Registry that maintains information about available services and devices.
Theorem 1. 
Consider the finite-horizon control problem in (8)(10) and write its condensed quadratic form
min z R p 1 2 z H z + h z s . t . G z = c ,
where z stacks the predicted states/inputs over the horizon, H 0 collects the stage weights Q c 0 and R c 0 , and G encodes the lifted dynamics (9) and any linear equalities (slack variables can absorb box constraints). Assume the following: (i) the feasible set is nonempty; (ii) G has full row rank; and (iii) the ADMM penalty ρ > 0 . Let { ( z k , λ k ) } be the sequence produced by the ADMM iterations (12) and (13) for the augmented Lagrangian (11).
Then, the following hold:
1. 
The problem admits a unique primal minimizer z and a dual solution λ (KKT pair).
2. 
The ADMM iterates converge to the KKT point:
z k z , λ k λ .
3. 
Moreover, convergence is linear. There exists q ( 0 , 1 ) and C > 0 such that for all k,
z k z H 2 + 1 ρ 2 λ k λ 2 2 C q k .
A valid factor is
q = κ 1 κ + 1 with κ = κ H 1 / 2 G G H 1 / 2 ,
and κ ( · ) is the spectral condition number.
Proof of Theorem 1. 
Since H 0 , the objective is strongly convex and coercive. The affine set { z : G z = c } is closed and nonempty by assumption. A strongly convex objective over a nonempty affine set admits a unique minimizer z . By convexity and constraint qualification (full row rank of G ), KKT conditions are necessary and sufficient, yielding a dual solution λ .
(Convergence). The augmented Lagrangian
L a ( z , λ ) = 1 2 z H z + h z + λ ( G z c ) + ρ 2 G z c 2 2
is μ -strongly convex in z , with μ = λ min ( H ) > 0 . The ADMM z -update computes the unique minimizer of a strongly convex quadratic; the dual update is a gradient step on the dual of the augmented problem with step size 1 / ρ . Because G has full row rank, the dual function is smooth and strongly concave with curvature constants determined by the spectrum of G H 1 G . This renders the primal–dual operator firmly nonexpansive in a weighted norm, yielding global convergence of ( z k , λ k ) to ( z , λ ) .
(Linear rate.) Strong convexity of the primal quadratic and full row rank of G imply strong monotonicity and Lipschitz continuity of the KKT map. The ADMM iteration is equivalent to a preconditioned Douglas–Rachford splitting on two maximal monotone operators with a cocoercive component. Standard spectral arguments then give the linear contraction bound
e k + 1 M q e k M ,
for a suitable metric M 0 , where q = ( κ 1 ) / ( κ + 1 ) ( 0 , 1 ) and κ is the condition number of H 1 / 2 G G H 1 / 2 . Rewriting this in the stated energy norm yields the claimed inequality. □

4. Simulation Outcomes

A comprehensive simulation environment was created using MATLAB/Simulink R2023b to model a smart grid with integrated Distributed Energy Resources (DERs) and IIoT devices. The simulation involves extensive models of generation units, transmission lines, loads, and control systems. The dataset employed for simulations is the NREL SMART-DS (Synthetic Models for Advanced, Realistic Testing) distribution system dataset, which offers OpenDSS feeder models with attached time-series loads for SFO, GSO, and AUS [22]. GridOpt integrates a TDNN for short-term temporal prediction and an HTM model for real-time pattern learning and anomaly detection. The performance of the presented framework was tested against primary metrics such as latency, scalability, security, and reliability. The suggested method, GridOpt, is compared to ECCGrid [23], EdgeApp [24], and JOintCS [25]. The detailed simulation and experimental parameter settings are summarized in Table 2.

4.1. Latency Reduction

The latency comparison of GridOpt, ECCGrid, EdgeApp, and JOintCS among the six edge–cloud scenarios is depicted in the graph below. From Figure 3, it can be observed that when the devices were deployed at varied density levels (low, medium, and high), GridOpt had the lowest average latency of around 70 ms at medium density, followed by JOintCS at 80 ms at high density, while EdgeApp had the highest latency of around 95 ms at high density. In high data processing and high data transmission scenarios, GridOpt had an average latency of around 76 ms and outperformed others, like the 86 ms of average latency of ECCGrid and 83 ms of JOintCS. EdgeApp had an average latency of 93 ms.

4.2. Scalability Evaluation

In Figure 4, the comparative analysis of the average throughput of the six scalability scenarios shows that GridOpt always had the largest average throughput of 11.5 in Scenario 1 (low device density) and above 10 request/s in Scenario 6 (High Throughput Requirement), followed by a moderate decrease of an average of 10.2 request/s in medium- and high-density scenarios for both ECCGrid and JOintCS. The average throughput of EdgeApp had the steepest fall from 9.8 request/s in Scenario 1 to below 8 request/s in Scenario 6.

4.3. Resource Utilization

Figure 5 synthesizes the resource utilization efficiency of six scenarios to highlight the scalability qualities of the strategies based on the load perspective. The resource utilization of GridOpt remains constant at the lowest levels, commencing from around 28% in low-device-density settings to around 54% for high throughput. The moderate resource utilization levels of ECCGrid and JOintCS remain comparable to GridOpt but tend to slowly separate as the total count of devices within the IIoT setup escalates. The resource utilization levels of EdgeApp begin from higher base thresholds of around 34% in low-device-density settings and accelerate dramatically to above 62% for high-throughput settings.

4.4. Energy Consumption

Figure 6 shows the energy consumption comparison of GridOpt with respect to ECCGrid, EdgeApp, and JOintCS. In “Low Device Density (Low)”, GridOpt showed the least energy consumption of 15 Joules, followed by 18 Joules in ECCGrid, 17 Joules in JOintCS, and 22 Joules in EdgeApp. As the device density increased in “Medium Device Density (Medium)” devices, the energy intake of GridOpt increased marginally to 18 Joules. Additionally, the energy increased to 22 Joules in ECCGrid, 21 Joules in JOintCS, and 28 Joules in EdgeApp. In “High Device Density (High)”, GridOpt continued to function with 22 Joules of efficiency. The energy intake of ECCGrid increased to 28 Joules, JOintCS increased to 27 Joules, and EdgeApp increased to 35 Joules. In “Increased Data Load (Data Load)”, GridOpt showed a 24 Joule energy intake. The energy intake of ECCGrid increased to 30 Joules. EdgeApp showed 38 Joules. In “Edge–Cloud Integration (Integration)”, the energy intake of GridOpt marginally reduced to 20 Joules. The energy intake of both ECCGrid and EdgeApp increased to 26 Joules and 34 Joules. In “High Throughput Requirement (Throughput)”, GridOpt continued to work with the least energy of 25 Joules. The energy intake of ECCGrid increased by 32 Joules. JOintCS increased by 31 Joules. EdgeApp showed increased energy of 40 Joules.

5. Defense Applications and Future Research Directions

The proposed GridOpt framework can be expanded to apply to operations in the defense and critical infrastructure sectors where there is a need for secure, autonomous, and uninterrupted energy management. Through the integration of edge computing and blockchain authentication mechanisms for validated users, GridOpt provides secure power management within critical settings, such as military stations, naval stations, and off-shore stations. The capacity of the framework to function regardless of communication interruptions and through localized intelligent control mechanisms increases the resilience of the system against both cyber and physical attacks. The same framework can be applied to marine and underwater systems by incorporating Internet of Underwater Things devices.
The future research work should concentrate on improving the flexibility and security of GridOpt when it comes to large-scale and cross-domain applications. The work should include the integration of 6G communication systems and IoT frameworks that can facilitate low-latency and high-reliability data transfer. The integration of federated learning and Reinforcement Learning algorithms may also enhance the efficiency of decentralized control. The most important aspect may include quantum-resistant cryptography algorithms as well as bio-inspired intrusion detection algorithms. The digital twin platform can also aid in testing control and security strategies without requiring actual execution. This may help in the efficient modernization of the energy infrastructure.

6. Conclusions

The paper proposes GridOpt, a hybrid framework for edge–cloud optimization, enhancing runtime processing, improving scalability, and increasing security in smart power management with integrated DERs. This paper employed edge computation for processing real-time data and utilized cloud computation for handling large datasets, enabling predictive and long-term analysis. The proposed framework was simulated comprehensively. Simulation outcomes have confirmed that the proposed framework of GridOpt had the lowest latency of 76 ms in high-throughput processing and outshone ECCGrid at 86 ms, JOintCS at 83 ms, and EdgeApp at 93 ms. The proposed framework had high scalability of above 10 req/s at high density and the lowest resource use of 54%, which surpassed 62% of competitors. In addition, it had a high energy efficiency of 25 Joules at high throughputs and outshone ECCGrid at 32 Joules. The proposed framework had better efficiency than JOintCS at 31 Joules and EdgeApp at 40 Joules. GridOpt is currently constrained to simulation-based validation, where the framework assumes stable edge–cloud connectivity and controlled communication overhead; real-world deployment with variable network conditions and hardware constraints remains for future work.

Funding

This research was supported by the Deanship of Postgraduate Studies and Scientific Research at Majmaah University, which provided funding for this project under the designation number (R-2026-2). The backing from the Deanship has been instrumental in facilitating the comprehensive exploration and analysis undertaken in this study.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data are available in the article.

Acknowledgments

The author extends appreciation to the Deanship of Postgraduate Studies and Scientific Research at Majmaah University for funding this research work through the project number (R-2026-2). This article’s language was refined with the assistance of the generative AI tool ChatGPT (OpenAI, GPT-5.2). The tool was used exclusively to enhance readability, improve grammar, and standardize the language. No part of the content, ideas, analyses, or conclusions in this article was generated by ChatGPT or any other AI system. The author retains full responsibility for the originality and integrity of the content.

Conflicts of Interest

The author declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
ADMMAlternating Direction Method of Multipliers
ASICsApplication-specific integrated circuits
PBFTPractical Byzantine Fault Tolerance
FPGAsField-programmable gate arrays
HTMHierarchical Temporal Memory
CNNsConvolutional neural networks
DERsDistributed Energy Resources
IIoTIndustrial internet of things
LSTMLong Short-Term Memory
ZKPsZero-knowledge proofs
PoWProof of Work

References

  1. Bhattacharjee, S.; Nandi, C. Implementation of industrial internet of things in the renewable energy sector. In The Internet of Things in the Industrial Sector: Security and Device Connectivity, Smart Environments, and Industry 4.0; Springer: Cham, Swizterland, 2019; pp. 223–259. [Google Scholar]
  2. Mahesh, R.; Anilkumar, K.; Shwetha, S.; Kumar, D.K.; Santhosh, B.; Patil, H. IoT and Blockchain-Based Smart Grid Energy Management: Innovations and Applications. In Applying Internet of Things and Blockchain in Smart Cities: Industry and Healthcare Perspectives; IGI Global: Hershey, PA, USA, 2024; pp. 99–130. [Google Scholar]
  3. Kong, X.; Wu, Y.; Wang, H.; Xia, F. Edge computing for internet of everything: A survey. IEEE Internet Things J. 2022, 9, 23472–23485. [Google Scholar] [CrossRef]
  4. Sangeetha, K.; Vishnu Raja, P. Fault and Delay Tolerant IoT Smart Grid. In Smart Grids and Internet of Things: An Energy Perspective; Scrivener Publishing LLC: Beverly, MA, USA, 2023; pp. 207–233. [Google Scholar]
  5. Fan, J.; Yang, W.; Liu, Z.; Kang, J.; Niyato, D.; Lam, K.Y.; Du, H. Understanding security in smart city domains from the ANT-centric perspective. IEEE Internet Things J. 2023, 10, 11199–11223. [Google Scholar] [CrossRef]
  6. Ghimire, B.; Rawat, D.B. Recent advances on federated learning for cybersecurity and cybersecurity for federated learning for internet of things. IEEE Internet Things J. 2022, 9, 8229–8249. [Google Scholar] [CrossRef]
  7. Deng, X.; Yin, J.; Guan, P.; Xiong, N.N.; Zhang, L.; Mumtaz, S. Intelligent delay-aware partial computing task offloading for multiuser industrial Internet of Things through edge computing. IEEE Internet Things J. 2021, 10, 2954–2966. [Google Scholar] [CrossRef]
  8. Bhuiyan, M.N.; Rahman, M.M.; Billah, M.M.; Saha, D. Internet of things (IoT): A review of its enabling technologies in healthcare applications, standards protocols, security, and market opportunities. IEEE Internet Things J. 2021, 8, 10474–10498. [Google Scholar] [CrossRef]
  9. Mishra, S.; Tyagi, A.K. The role of machine learning techniques in internet of things-based cloud applications. In Artificial iNtelligence-Based Internet of Things Systems; Springer: Cham, Swizterland, 2022; pp. 105–135. [Google Scholar]
  10. Nguyen, T.A.; Min, D.; Choi, E.; Lee, J.W. Dependability and security quantification of an internet of medical things infrastructure based on cloud-fog-edge continuum for healthcare monitoring using hierarchical models. IEEE Internet Things J. 2021, 8, 15704–15748. [Google Scholar] [CrossRef]
  11. Bera, B.; Saha, S.; Das, A.K.; Vasilakos, A.V. Designing blockchain-based access control protocol in IoT-enabled smart-grid system. IEEE Internet Things J. 2020, 8, 5744–5761. [Google Scholar] [CrossRef]
  12. Moore, E.; Imteaj, A.; Rezapour, S.; Amini, M.H. A survey on secure and private federated learning using blockchain: Theory and application in resource-constrained computing. IEEE Internet Things J. 2023, 10, 21942–21958. [Google Scholar] [CrossRef]
  13. Zhang, X.; Li, R.; Zhao, H. A parallel consensus mechanism using PBFT based on DAG-lattice structure in the Internet of Vehicles. IEEE Internet Things J. 2022, 10, 5418–5433. [Google Scholar] [CrossRef]
  14. Salama, R.; Alturjman, S.; Al-Turjman, F. Internet of Things and AI in Smart Grid Applications. NEU J. Artif. Intell. Internet Things 2023, 1, 44–58. [Google Scholar]
  15. Pliatsios, A.; Kotis, K.; Goumopoulos, C. A systematic review on semantic interoperability in the IoE-enabled smart cities. Internet Things 2023, 22, 100754. [Google Scholar] [CrossRef]
  16. Wu, H.; Zhang, Z.; Guan, C.; Wolter, K.; Xu, M. Collaborate edge and cloud computing with distributed deep learning for smart city internet of things. IEEE Internet Things J. 2020, 7, 8099–8110. [Google Scholar] [CrossRef]
  17. Alabadi, M.; Habbal, A.; Guizani, M. An Innovative Decentralized and Distributed Deep Learning Framework for Predictive Maintenance in the Industrial Internet of Things. IEEE Internet Things J. 2024, 11, 20271–20286. [Google Scholar] [CrossRef]
  18. Molina, M.; Mendez, J.; Morales, D.P.; Castillo, E.; Vallejo, M.L.; Pegalajar, M. Power-Efficient Implementation of Ternary Neural Networks in Edge Devices. IEEE Internet Things J. 2022, 9, 20111–20121. [Google Scholar] [CrossRef]
  19. Jerkovic, F.; Sarkar, N.I.; Ali, J. Smart Grid IoT Framework for Predicting Energy Consumption Using Federated Learning Homomorphic Encryption. Sensors 2025, 25, 3700. [Google Scholar] [CrossRef]
  20. Ali, M.; Suchismita, M.; Ali, S.S.; Choi, B.J. Privacy-Preserving Machine Learning for IoT-Integrated Smart Grids: Recent Advances, Opportunities, and Challenges. Energies 2025, 18, 2515. [Google Scholar] [CrossRef]
  21. Ahmed, R.A.; Abdelraouf, M.; Elsaid, S.A.; ElAffendi, M.; El-Latif, A.A.A.; Shaalan, A.; Ateya, A.A. Internet of things-based robust green smart grid. Computers 2024, 13, 169. [Google Scholar] [CrossRef]
  22. Palmintier, B.; Mateo Domingo, C.; Emilio Postigo Marcos, F.; Gomez San Roman, T.; de Cuadra, F.; Gensollen, N.; Elgindy, T.; Duenas, P. SMART-DS Synthetic Electrical Network Data OpenDSS Models for SFO, GSO, and AUS; National Laboratory of the Rockies: Golden, CO, USA, 2020. [Google Scholar]
  23. Li, J.; Gu, C.; Xiang, Y.; Li, F. Edge-cloud computing systems for smart grid: State-of-the-art, architecture, and applications. J. Mod. Power Syst. Clean Energy 2022, 10, 805–817. [Google Scholar] [CrossRef]
  24. Alshuwair, S.A. Edge Computing Applications for Smart Grid and Distributed Systems. In Proceedings of the 2022 Saudi Arabia Smart Grid (SASG), Riyadh, Saudi Arabia, 12–14 December 2022; pp. 1–7. [Google Scholar]
  25. Zhou, H.; Zhang, Z.; Li, D.; Su, Z. Joint optimization of computing offloading and service caching in edge computing-based smart grid. IEEE Trans. Cloud Comput. 2022, 11, 1122–1132. [Google Scholar] [CrossRef]
Figure 1. Scenario diagram of the GridOpt-enabled edge–cloud smart grid environment.
Figure 1. Scenario diagram of the GridOpt-enabled edge–cloud smart grid environment.
Electronics 15 00300 g001
Figure 2. Proposed GridOpt hybrid edge–cloud architecture for real-time smart grid analytics.
Figure 2. Proposed GridOpt hybrid edge–cloud architecture for real-time smart grid analytics.
Electronics 15 00300 g002
Figure 3. Latency comparison of GridOpt, ECCGrid, EdgeApp, and JOintCS across six edge– cloud scenarios.
Figure 3. Latency comparison of GridOpt, ECCGrid, EdgeApp, and JOintCS across six edge– cloud scenarios.
Electronics 15 00300 g003
Figure 4. Scalability evaluation of GridOpt against state-of-the-art approaches.
Figure 4. Scalability evaluation of GridOpt against state-of-the-art approaches.
Electronics 15 00300 g004
Figure 5. Resource utilization performance of GridOpt under six device density scenarios.
Figure 5. Resource utilization performance of GridOpt under six device density scenarios.
Electronics 15 00300 g005
Figure 6. Comparison of energy consumption across six operational scenarios.
Figure 6. Comparison of energy consumption across six operational scenarios.
Electronics 15 00300 g006
Table 1. Comparison of existing approaches and the proposed GridOpt framework.
Table 1. Comparison of existing approaches and the proposed GridOpt framework.
Ref.Previous WorkProposed Work (GridOpt)
[7]Edge systems reduce latency but lack scalability for large DER networks.Scalable edge–cloud coordination suitable for expanding DER environments.
[9]Cloud-based ML improves prediction but delays real-time responses.Real-time tasks handled at the edge; cloud reserved for large data processing.
[11]Blockchain secures communication but traditional consensus is computationally heavy.Lightweight consensus and encryption to reduce processing cost at devices.
[14]IoT improves connectivity but lacks unified interoperability across device types.Interoperability layer to coordinate heterogeneous device environments.
[17]ML enhances prediction but becomes resource-intensive for continuous workloads.TDNN/HTM design lowers processing overhead during streaming operation.
[19]Privacy models exist but lack unified optimization across system layers.Integrated optimization with privacy and coordination in one operational framework.
Table 2. Simulation and experimental parameter settings.
Table 2. Simulation and experimental parameter settings.
ParameterSetting
Simulation platformMATLAB/Simulink R2023b
DatasetNREL SMART-DS (SFO, GSO, AUS feeders)
Grid componentsDERs, transmission lines, controllable loads, IIoT sensors
TDNN architectureThree-layer network
TDNN temporal window5 time steps
TDNN optimizerAdam
TDNN learning rate0.001
HTM columns2048
HTM sparsity level2%
HTM permanence threshold0.21
Data split ratio70% training, 15% validation, 15% testing
Evaluation metricsAccuracy, Precision, Recall, F1-score, RMSE
Comparative methodsECCGrid, EdgeApp, JOintCS
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Alharbi, O. Adaptive Edge–Cloud Framework for Real-Time Smart Grid Optimization with IIoT Analytics. Electronics 2026, 15, 300. https://doi.org/10.3390/electronics15020300

AMA Style

Alharbi O. Adaptive Edge–Cloud Framework for Real-Time Smart Grid Optimization with IIoT Analytics. Electronics. 2026; 15(2):300. https://doi.org/10.3390/electronics15020300

Chicago/Turabian Style

Alharbi, Omar. 2026. "Adaptive Edge–Cloud Framework for Real-Time Smart Grid Optimization with IIoT Analytics" Electronics 15, no. 2: 300. https://doi.org/10.3390/electronics15020300

APA Style

Alharbi, O. (2026). Adaptive Edge–Cloud Framework for Real-Time Smart Grid Optimization with IIoT Analytics. Electronics, 15(2), 300. https://doi.org/10.3390/electronics15020300

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop