Skip to Content
ElectricityElectricity
  • Article
  • Open Access

18 October 2026

26 Pages

Neural Network-Based Resilient Secondary Control for Microgrids Under False Data Injection Attacks

,
,
,
,
,
,
and
School of Information and Intelligent Science, Donghua University, Shanghai 201620, China
*
Author to whom correspondence should be addressed.

Abstract

Secondary control plays a crucial role in ensuring stable and efficient operation of microgrids, but it is also equally vulnerable to false data injection (FDI) attacks. This paper proposes a neural network-driven adaptive predictive compensation (APC) strategy for resilient distributed secondary control. The method integrates a residual fully connected neural network (RFCNN), dynamic threshold-based attack detection, and adaptive switching control. Specifically, upon detecting an attack, the affected portion is isolated via switching control and replaced with a new control loop based on the predictive compensation mechanism. This effectively mitigates the adverse impact of attacks on secondary control, ensuring stable system frequency and precise power distribution. In the tested FDI attack scenario, the attack is detected approximately 20 ms after injection, and the microgrid largely restores stable operation within about 0.25 s. The RFCNN achieves an RMSE of 0.0108, which is reduced by approximately 8.5%, 20.6%, and 50.2% compared with BPNN, LSTM and NARX, respectively. Simulation and FPGA-in-the-loop experiments further verify the effectiveness and practical feasibility of the proposed strategy for enhancing microgrid resilience against FDI attacks.

1. Introduction

With the development of technology, the transformation of energy systems to intelligence has become a general trend. Microgrids, as autonomous units integrating distributed power generation, energy storage and loads, have naturally become the core vehicle for realizing efficient power supply and energy management [1]. However, as the amount of renewable energy continues to grow, its inherent stochastic volatility puts great pressure on the stability of the system. As a result, distributed control has been gradually applied to microgrid control systems by virtue of its high reliability and flexibility [2]. A typical microgrid architecture integrating various distributed energy resources and loads is illustrated in Figure 1. However, this distributed architecture, while enhancing flexibility, also reveals a significant weakness: the secondary control level is highly dependent on the communication network when performing information exchange, which provides a potential opportunity for false data injection (FDI) attacks, and thus poses a serious threat to the robust operation of the microgrid [3]. Recent studies have demonstrated that such emergencies can substantially affect microgrid autonomy and renewable-energy utilization. For example, [4] investigated smart grid operation under emergency disconnection of energy resources and reported that renewable generation emergencies could reduce system autonomy by up to 46%, while storage-related emergencies could result in renewable energy curtailment of up to 25%. These findings highlight the importance of maintaining coordinated operation under abnormal conditions. In cyber–physical microgrids, cyberattacks constitute another important class of disruptive events, because malicious data can interfere with control decisions even when the physical assets themselves remain available.
Figure 1. Microgrid system architecture diagram.
In recent years, various optimized hierarchical control strategies have been proposed in microgrids. Robust control in [5] and predictive control in [6] have improved system stability and regulation accuracy. Cooperative power flow strategies in [7], distributed control schemes for single-bus DC microgrids in [8], and distributed hybrid control methods in [9] have optimized operational efficiency and resource coordination. Additionally, event-triggered mechanisms have been integrated into hierarchical frameworks to improve communication efficiency and response speed [10,11,12]. Furthermore, [13] has even explored communication-free approaches to mitigate the impact of islanding effects. However, these traditional methods often exhibit limited resilience when confronting complex cyberattacks.
With the advancement of artificial intelligence (AI), AI technology is increasingly being applied in the field of microgrids [14]. For energy management, heuristic algorithms and advanced machine learning models, such as multiagent imitation in [15], graph neural networks (GNN) in [16], and AI-driven method in [17], have been effectively employed to minimize costs and improve forecasting accuracy. In terms of voltage and frequency control, AI-driven techniques like fuzzy neural networks [18] and robust model predictive control (MPC) [19] have demonstrated superior performance in enhancing system reliability. Furthermore, AI has also been applied to network attack detection frameworks [20].
Artificial neural networks (ANNs) have also been widely utilized in the field of microgrids to defend against FDI attacks. In [21], a resilient cooperative control method is proposed for DC microgrid cluster systems, which is able to achieve both voltage regulation and power sharing in the presence of cyberattacks. A decentralized optimal decision-making scheme for cyber-layer defense is introduced in [22] to secure microgrid secondary frequency control against rational FDI attacks, leveraging a security game model with multiple stages and neural fictitious play. Furthermore, a novel ANN-based observer is developed in [23], capable of estimating the system’s state under both load changes and attack scenarios. In [24], a control strategy is devised that integrates ANNs with pattern recognition network (PRN)-based control input skip (CIS) to enhance DC microgrid resiliency against concurrent cyberattacks. However, existing ANN-based defense methods [21,23,24], suffer from complex structures, slow recovery under large amplitude attacks, and high false alarm rates, which motivates the proposed lightweight and adaptive strategy.
In summary, although AI-based control methods for microgrids have emerged as a research hot spot, existing methods still face limitations when countering covert FDI attacks, including high model complexity, uneven power distribution under attack, and slow recovery response. To address these challenges, this paper proposes a novel distributed secondary control strategy. This approach integrates residual fully-connected neural networks (RFCNN), adaptive switching control, and a dynamic threshold attack detection mechanism. Experimental results demonstrate that the method can rapidly identify various FDI attacks and achieve stable system recovery without compromising hierarchical control functionality, while ensuring precise power distribution. A comparative analysis of the proposed method against the existing literature is detailed in Table 1. The main contributions of this paper are as follows:
Table 1. Comparative Survey of Relevant Studies on Microgrid Defending against FDI Attack.
(1)
This paper proposes an APC mechanism based on RFCNN to resist FDI attacks. By employing residual connections to overcome the inherent vanishing gradient problem in traditional artificial neural networks, convergence stability is enhanced, significantly accelerating the system recovery process.
(2)
Microgrid models have complex time-varying nature. In view of this, a novel dynamic prediction model is proposed in this paper. It incorporates historical operational data into the training, which guarantees the accuracy while bringing up the response speed, significantly enhancing the system recovery capability.
(3)
Traditional detection methods are prone to false alarms when dealing with complex FDI attacks. To make up for this shortcoming, this paper introduces a dynamic threshold attack detection mechanism. The prediction residuals are analyzed in real time through a sliding window, and the threshold can be dynamically adjusted according to the operating state. The experiment shows that this method reduces the probability of false alarms and missed alarms, and significantly improves the microgrid defense toughness.

2. Control Strategies of Microgrid

In this section, we will introduce hierarchical control and distributed frequency control. Hierarchical control allows the system to operate in a more organized manner through task division and hierarchical coordination. As for distributed control, it takes care of global frequency control through local information exchange. The biggest benefit of this distributed approach is that the system will not be paralyzed because of a problem at a certain point, and the scalability is also stronger to adapt to more flexible scenarios.

2.1. Hierarchical Control

This hierarchical control approach consists of primary, secondary and tertiary control, as illustrated in Figure 2.
Figure 2. Hierarchical control structure diagram of microgrid.

2.1.1. Primary Control

Primary control represents the most fundamental and critical control layer. It not only handles local robust regulation of voltage and frequency for distributed power sources but also ensures coordination among units to address load disturbances. This paper employs droop control to simulate the speed regulation characteristics of conventional power systems [33]. It achieves power sharing by regulating the droop relationships between active power-frequency ( P − f ) (1) and reactive power–voltage (Q − U) (2).
ω = ω n − m P
U = U n − n Q
where ω and U are frequency and voltage, ω n and U n are the rated frequency and voltage, m and n are their droop coefficients, and P and Q represent active power and reactive power, respectively.
In actual simulation engineering, the d q rotation coordinate system is usually used to simplify the P Q calculation process, and the calculated P Q value will be used in the droop control.
P = u d i d + u q i q
Q = u q i d − u d i q

2.1.2. Secondary Control

Although droop control is widely adopted in microgrids due to its simplicity and reliability, it inherently suffers from steady state deviations in voltage and frequency. To address this issue, secondary control is introduced to eliminate these deviations, enhance power sharing accuracy, improve system convergence speed, and ensure stable operation.
Δ ω = k p f ( f d g * − f d g ) + k i f ∫ ( f d g * − f d g ) d t
Δ E = k p U ( U d g * − U d g ) + k i U ∫ ( U d g * − U d g ) d t
where Δ ω and Δ E are the secondary compensation values of frequency and voltage, respectively, k p f and k i f are the proportional and integral coefficients of frequency controller, similarly, k p U and k i U are coefficients of voltage controller.

2.1.3. Primary and Secondary Control Design

The control block diagram of the microgrid hierarchical control is shown in Figure 3. Specifically, Δ E and Δ ω represent the voltage and frequency compensation terms issued by the secondary controller to adjust the primary droop characteristics. However, as these correction signals are transmitted via communication networks, they are highly susceptible to FDI attacks. Malicious tampering with these variables can mislead the primary control actions, propagating errors throughout the system.
Figure 3. Microgrid hierarchical control.

2.2. Distributed Secondary Frequency Control

To overcome the limitations of centralized architecture in terms of reliability and scalability, distributed secondary control architecture based on consensus protocol is used to achieve flexible control of each DG in the microgrid.

2.2.1. Preliminaries of Graph Theory

Graph theory is widely used for modeling and interpreting network topology. Within this framework, distributed generations (DGs) are treated as nodes in the network, forming a set of N nodes. Communication connections between nodes are represented by directed edges, where edge ( V j , V i ) describes information flowing from node j to node i. If node j transmits data to its adjacent node i, then node j is defined as a neighbour of node i. The set of neighbours of node i is denoted as N i , where the association weight a i j = 1 if the connection exists, and a i j = 0 otherwise. The adjacency matrix A, whose elements are a i j , precisely defines the information exchange pathways between DGs and reflects the propagation mechanism of reference information in microgrid secondary control.

2.2.2. Distributed Algorithms and Power Sharing

The secondary control adopts a distributed consistency algorithm, enabling DG units to coordinate frequency and power output based on neighbour information, thereby achieving power sharing in proportion to their rated capacity. To distinguish the droop formula, we give the following formula:
ω ˙ i = ω ˙ n i − m i P ˙ i = u ω i
where u ω i is the auxiliary control to be designed. The above equation is a dynamic system that converts the secondary frequency control of microgrids into a first order linear multi agent system tracking synchronization problem.
To achieve synchronization, it is assumed that DGs can communicate with each other through a specified communication directed graph G. The auxiliary control u ω i is selected based on each DG’s own information and the information directed graph of its neighbours in communication.
u ω i = − c ω e ω i
e ω i = ∑ j ∈ N i a i j ( ω j − ω i ) + g i ( ω i − ω r e f )
where c ω is secondary recovery gain coefficient, and e ω i is the local neighbourhood tracking error. According to the above equation, ω n i can be written as:
ω n i = ∫ ( u ω i + m i P ˙ i ) d t
It should be noted that once a single control is applied, their frequencies will tend to converge at steady state:
ω 1 = … = ω N = ω r e f
Thus the droop formula can be obtained:
m 1 P 1 = … = m N P N
Since the active power droop coefficient m i is selected based on the active power rating of the DGs, therefore:
P 1 P max 1 = … = P N P max N
To ensure the power sharing ratio, an additional control item U p i is used, where e p i is the local neighbourhood tracking error.
u p i = − c p e p i
e p i = ∑ j ∈ N i a i j ( m i P i − m j P j )
So, ω n i can be written as:
ω n i = ∫ ( u ω i + u p i ) d t
In addition, the DG frequency and convergence speed of the filtered output power can be adjusted by regulating the control gain c ω and c p .
Although traditional hierarchical control can achieve basic frequency restoration, it is vulnerable to FDI attacks, so an attack-resistant strategy based on RFCNN needs to be designed, as detailed in Section 4.

3. Preliminaries

3.1. FDI Attacks

FDI attacks pose a significant threat to microgrid security by tampering with critical sensor or communication data. Such malicious manipulation may induce system instability, manifesting as frequency oscillations, voltage anomalies, or equipment failures, and could potentially escalate into widespread power outages. Mechanistically, FDI attacks are modelled by superimposing malicious signals, defined as follows:
d ^ ( t ) = d ( t ) + d r ( t )
d r ( t ) = 0 , for t ∉ τ r λ r F ( · ) , for t ∈ τ r
where d ^ ( t ) , d ( t ) , and d r ( t ) represent the interfered, original, and tampered signals, respectively. τ r is the duration of the attack. F ( · ) is the main function of the attack effect, while λ r is used to regulate its intensity.
If an FDI attack is successfully injected, its impact may propagate from the cyber layer to both the physical and economic layers of the microgrid. From the control perspective, corrupted compensation signals can mislead the primary droop controller, resulting in large frequency deviations, loss of proportional power sharing, which will be demonstrated later in Section 5.2. Such abnormal operating conditions may further affect photovoltaic and battery energy storage units. Consequently, successful attacks may also cause economic losses through reduced renewable energy utilization, additional energy replacement costs and potential loss of market revenue. Since the economic performance of modern microgrids is closely related to the coordinated operation and planning of photovoltaic generation and energy storage systems [34]. Therefore, how to defend against FDI attack is an issue that needs to be addressed urgently.

3.2. Introduction to RFCNN

Neural networks are machine learning models inspired by biological neural systems. Their core idea is to achieve complex data modeling by simulating the connections and information transmission mechanisms between neurons [35].
Figure 4 describes the computational process of forward and back propagation in a typical multi-layer perceptron (MLP). Mathematically, the output of the nth neuron in the mth layer can be expressed as:
y n , m = f m ∑ i = 1 N m − 1 y i , m − 1 × ω i m − 1 , n m + b n , m
Figure 4. ANN forward and back propagation process.
This paper explores and applies several classic neural network models, including backpropagation neural network (BPNN), long short-term memory network (LSTM) and nonlinear autoregressive exogenous network (NARX), each of which has its own advantages and characteristics in practical applications.
BPNN is a multi-layer feedforward neural network where the result is forward propagation, and the error is backpropagated [36].
LSTM is a neural network based on recurrent neural network (RNN). LSTM controls information flow through a gating mechanism to solve the long-term dependency problem of traditional RNN [37].
f t = σ ( W f · [ h t − 1 , x t ] + b f )
i t = σ ( W i · [ h t − 1 , x t ] + b i )
C ˜ t = t a n h ( W C · [ h t − 1 , x t ] + b C )
C t = f t ∗ C t − 1 + i t ∗ C ˜ t
o t = σ ( W o · h t − 1 , x t + b o )
h t = o t ∗ t a n h ( C t )
Specifically, Equation (20) describes the forget gate, which determines the proportion of information retained from the previous cell state. Equation (21) describes the input gate, which determines how much newly generated information should be introduced into the cell state. Equation (22) generates the candidate cell state, representing the new candidate information obtained from the current input and previous hidden state. Equation (23) updates the current cell state by combining the retained historical information and the newly generated candidate information. Equation (24) represents the output gate, which controls how much information from the updated cell state is passed to the network output. Finally, Equation (25) calculates the current hidden state, which is subsequently transferred to the next time step. σ is the sigmoid activation function, h t − 1 and C t − 1 represent the hidden state and cell state from the previous time step, x t is the input for the current time step, C t is the cell state for the current time step, W f , i , c , o are the corresponding weight matrices, and b f , i , c , o are the corresponding bias vectors.
The NARX neural network is a nonlinear autoregressive model based on a feedforward neural network structure, whose current output depends on past inputs and past outputs [38], which can be mathematically described as:
y ( t ) = f ( y ( t − 1 ) , y ( t − 2 ) , … , y ( t − d y ) , u ( t − 1 ) , u ( t − 2 ) , … , u ( t − d u ) )
where d y and d u represent the delay orders of the output and input, respectively.
In addition, this paper designs and implements a novel RFCNN. The RFCNN integrates the residual learning mechanism into the traditional fully connected network (FCN) architecture. Its core lies in introducing skip connections to effectively alleviate the common gradient vanishing problem in deep network training, thereby significantly improving the training efficiency and expressive power of the model. Compared to traditional FCNs, the RFCNN employs its unique residual modules to directly superimpose the original input features to the outputs after nonlinear transformation. This network architecture significantly enhances the network’s ability to represent complex features, enabling it to more efficiently fit deep nonlinear mapping relationships between DG nodes. The identity mapping (27) ensures that the secondary control signal remains bounded and converges rapidly even during the transient oscillations caused by FDI attacks. For a given input x, the sequence of fully connected layers constructs the residual term F ( x ) , while the block’s final output y is formed by combining this residual term with the original input. This approach enables the network to transmit gradients more efficiently. The corresponding mathematical description is:
y = F ( x ) + x
Furthermore, simulation comparisons indicate that RFCNN outperforms other models on key metrics, demonstrating its superiority in rapidly restoring system stability. Therefore, RFCNN is selected as the preferred choice in this paper.

4. Proposed RFCNN-Based APC Framework

As mentioned above, FDI attacks demonstrate their highly stealthy and destructive nature. While microgrid systems can counter the attack by optimizing the PI controller parameters in the secondary control, this approach usually comes at the cost of reduced system recovery speed and a slow process of finding optimal parameters. In addition, droop controllers are also susceptible to attacks, which can lead to power allocation deviations. Therefore, realizing accurate identification and fast mitigation of attacks is the purpose of this paper.
Figure 5 illustrates the RFCNN resilient secondary control framework proposed in this paper. In order to strengthen the microgrid’s resistance to attacks, the architecture integrates the intelligent regulation capability of neural networks with a dynamic detection mechanism based on residual statistics. During the defense implementation process, upon detection of an attack signal, the system initiates the secondary control link reconstruction mechanism and isolates the original communication compensation channel of the attacked DG. Concurrently, the APC module generates a corresponding nominal compensation signal based on the historical compensation information of uncontaminated nodes and the inherent dynamic coupling among DGs, replacing the abnormal control output of the attacked branch to ensure the effective operation of the secondary control loop.
Figure 5. Proposed APC Framework.
It should be noted that although FDI attacks can propagate to other distributed nodes through communication links and affect information exchange within the network, their impact on the physical system state is constrained by the inherent dynamic characteristics of the microgrid. On one hand, the primary control loop of DG units, the power filter loop, and physical inertia characteristics limit the rapid changes in power and frequency states, preventing the attack impact from being fully reflected in the physical output in a short time. On the other hand, the proposed attack detection mechanism can quickly identify anomalies in the compensation signal and trigger the APC module to perform compensation reconstruction. Therefore, before the attack impact further propagates and alters the overall system dynamic characteristics, the predictive model can still accurately estimate the compensation values that the attacked nodes should possess under normal conditions, based on node correlation relationships learned during normal operation. Based on the above mechanism, the system can maintain the continuity of secondary control setpoints through virtual compensation signals without modifying the underlying primary control structure, effectively suppressing control deviations caused by FDI attacks. Even under sustained attacks, the proposed method can preserve power coordination and dynamic consistency among distributed generation units, providing the microgrid with stable and reliable resilient recovery capabilities.
The next part of this chapter will focus on explaining the proposed control framework, including data generation, dynamic threshold attack detection algorithm, and the specific deployment process of adaptive switching control.

4.1. Data Generation

The acquisition of experimental data mainly relies on the MATLAB/Simulink 2022b. By building a typical microgrid distributed control model, the compensation signals generated by each DG in the secondary control link are extracted to form a training dataset. The simulation was conducted using a fixed time step of 10 − 5 s, and a total of 1,000,000 data points were collected. It should be emphasized that the APC proposed in this paper relies solely on historical data under normal microgrid operating conditions for training, without the need to obtain abnormal data from extreme operating conditions or attack scenarios in advance. By analyzing the dynamic coupling characteristics between DG nodes during normal operation, it is found that there are stable correlations between the secondary compensation signals of different DGs. Therefore, this paper uses the secondary frequency compensation values of DGs under non-attacked conditions as model inputs to learn the mapping relationships between nodes under normal operating patterns and predict the compensation values that should be assigned to attacked nodes in the current state. When an FDI attack causes an abnormal deviation in the secondary compensation signal of a DG, the trained predictive model can generate corresponding quasi-normal compensation values based on the compensation information from other normal nodes and replace the tampered abnormal signals, thereby achieving resilient recovery at the secondary control layer. This method avoids reliance on complex attack scenarios and extreme operating condition data, enhancing the feasibility of its implementation in practical microgrid environments.

4.2. Dynamic Threshold Attack Detection

In the microgrid defense system, accurate identification of attacks is always the core to guarantee system stability. Existing detection schemes mostly rely on fixed thresholds, but in the case of variable FDI attack types, such methods are often difficult to effectively determine the normal power fluctuations and intentional malicious attacks, and thus fall into the dilemma of the trade-off between high false alarm rate and missed detection [39]. Thus, this paper designs a dynamic threshold algorithm based on the statistical properties of residuals. The algorithm enables the detection criterion to adaptively adjust with the system operation state, which significantly improves the robustness of detection and recognition accuracy.
The specific implementation is as Figure 6. At each time step t, the absolute prediction residual is calculated as:
d ( t ) = | y p r e d ( t ) − y r e a l ( t ) |
where y p r e d ( t ) and y r e a l ( t ) denote the RFCNN-predicted and actual secondary frequency compensation signals at time t, respectively, and d ( t ) denotes their absolute residual.
Figure 6. Diagram of dynamic threshold attack detection.
To capture the recent statistical characteristics of the prediction residuals, a sliding-window residual buffer D ( t ) is constructed as:
D ( t ) = [ d ( t − N + 1 ) , … , d ( t − 1 ) , d ( t ) ]
where N denotes the number of residual samples contained in the sliding window. Specifically, d ( t ) is the residual at the current sampling instant, d ( t − 1 ) is the residual obtained at the immediately preceding sampling instant, and d ( t − N + 1 ) is the oldest residual retained in the current window. Thus, D ( t ) contains the residuals from the most recent N consecutive sampling instants, ranging from t − N + 1 to t. When a new residual d ( t + 1 ) is obtained, it is appended to the end of the buffer, while the oldest residual d ( t − N + 1 ) is removed, thereby maintaining a fixed window length of N.
Whenever a new residual is computed, it is appended to the end of the buffer, while the oldest residual is removed, which ensures the buffer consistently contains residual data from the most recent N time steps. Based on the N residuals within the sliding window, the algorithm calculates their mean μ and standard deviation σ . The dynamic threshold T ( t ) is then formed by adding k times the standard deviation to the mean:
μ t = 1 N ∑ i = 0 N − 1 d ( t − i )
σ t = 1 N − 1 ∑ i = 0 N − 1 d ( t − i ) − μ t 2
T ( t ) = μ t + k · σ t
where k is usually taken as 3 to ensure that 99.7% of normal fluctuations do not trigger false alarms. N is set to 50, which is a result obtained through practical experiments. If N is too large, it is difficult to detect attacks. Detailed criteria for parameter selection and parameter sensitivity analysis are described in Section 5.7.
Also, in order to reduce false alarms caused by transient noise or system initialization process, the algorithm introduces a continuous threshold counter. When the residual d ( t ) exceeds the dynamic threshold T ( t ) , the counter will plus one; otherwise, the counter will reset to zero. Only when the counter reaches the preset value consecutively, the system recognizes that an attack has occurred, thus generating the attack identification signal a t t a c k f l a g .
The proposed dynamic threshold attack detection method can effectively and quickly identify real attacks and reduce the false alarm rate of the system compared with the traditional detection.

4.3. Adaptive Predictive Switching Control

A switching control scheme with adaptive prediction capability is designed to defend FDI attacks. The scheme is able to intelligently and smoothly switch between preset control modes based on attack detection signals. This control scheme empowers the system to actively resist perturbations and significantly enhances the operational resilience and efficiency of the microgrid.
At the implementation level of defense, when the adaptive switching control module receives the attack recognition signal a t t a c k f l a g from the attack detection module, the system will immediately start the reconstruction procedure of the control link and cut off the original secondary control channel of the attacked DG. At the same time, the predicted data generated by the RFCNN module will be used as a virtual compensation signal to replace the control output of the damaged branch. This substitution mechanism ensures that the nodes continue to obtain setpoints with anti-attack attributes without modifying the underlying primary control structure. Even under the extreme condition of continuous interference from FDI attacks, the microgrid can still maintain the dynamic consistency of the power sharing, guaranteeing the global steady state and orderly power dispatch, thus fundamentally improving the security margin of the system.
The switching control logic formula is as follows:
ω i o u t ( t ) = ω i A N N ( t ) , a t t a c k f l a g = 1 ω i o r i g i n ( t ) , a t t a c k f l a g = 0
ω i ( t ) = ω i b a s e + ω i o u t ( t ) − m p i P i
where ω i o u t ( t ) denotes the secondary frequency compensation signal applied to DG i, ω i o r i g i n ( t ) and ω i A N N ( t ) denote the original and RFCNN-predicted compensation signals, respectively, ω i b a s e denotes the nominal frequency reference, P i denotes the active power output of DG i, and m p i denotes the active power frequency droop coefficient. The binary variable a t t a c k f l a g equals 1 when an attack is detected and 0 during normal operation.
Based on the above analysis, Algorithm 1 summarizes the RFCNN defense scheme proposed to counter FDI attacks, which features attack detection mechanisms and recovery capabilities.
Algorithm 1 An RFCNN-Based APC Algorithm With 4 DGs Against FDI Attacks
Require: Establish a microgrid system with a hierarchical control structure under a distributed control approach.
  1:
Extract secondary control compensation signals of DGs under normal conditions and split into training/test sets (8:2 ratio);
  2:
Build a 10-layer RFCNN with 3 residual blocks, set Adam optimizer (initial learning rate=0.001), and train for 200 epochs:
  3:
for  A c c u r a c y < 0.95  do
  4:
Use data from conventional DGs as input features and data from the attacked DG as output targets to build and train a neural network model.;
  5:
end for
  6:
Apply dynamic threshold attack detection strategies and adaptive predictive switching strategies;
  7:
Dynamic threshold attack detection algorithm (as detailed in Figure 6):
  8:
if count > the setting value then;
  9:
An attack has been detected;
10:
a t t a c k f l a g = 1 ;
11:
end if
12:
Adaptive predictive switching control:
13:
if  a t t a c k f l a g = 1  then;
14:
System startup switch control: Replacing the original secondary control link with a neural network module, using ω A N N instead of ω n i which was affected by attacks (as detailed in Section 4.3);
15:
end if

4.4. Stability Analysis

To validate that the proposed ANN-based adaptive predictive compensating control maintains frequency stability and power sharing performance in microgrid systems whilst resisting FDI attacks, this section conducts a theoretical analysis of the system’s closed-loop stability.
Let the frequency vector for each DG be ω = ω 1 , … , ω n T .The frequency deviation vector is given by:
x ( t ) = ω ( t ) − ω ( t ) r e f
where ω ( t ) r e f = 50 , … , 50 T is the system reference frequency.
The distributed secondary frequency control protocol for microgrid systems aims to drive the frequency deviation x ( t ) of each distributed power source towards zero, whilst achieving proportional power allocation. The ideal secondary control input ω n i * ( t ) satisfies:
ω n i * ( t ) = − c ω L + G x ( t )
Here, L denotes the Laplacian matrix of the communication topology, G represents the reference source correction matrix, c ω > 0 is the quadratic frequency recovery gain.
Upon detecting an FDI attack and executing control switching, the secondary control compensation applied to the attacked node is replaced by the ANN prediction value. The actual compensation ω s e c _ a c t u a l ( t ) applied to the system is the ANN output ω A N N ( t ) . We decompose the ANN prediction output into the ideal control component ω n i * ( t ) and the prediction error e ( t ) :
e ( t ) = ω A N N ( t ) − ω n i * ( t )
At this point, substitute the aforementioned relationship (37) into the microgrid frequency dynamic equation:
x ˙ ( t ) = ω s e c _ a c t u a l ( t )
The frequency dynamic equation formula can be obtained:
x ˙ ( t ) = ω A N N ( t ) = ω n i * ( t ) + e ( t )
Therefore, the secondary control closed-loop dynamics of microgrids can be uniformly formulated as stable linear systems with bounded inputs.
x ˙ ( t ) = − c ω L + G x ( t ) + e ( t )
Since the ANN learns as a continuous function within a bounded training domain, and the ideal control quantity ω n i * ( t ) is bounded when the system is stable, the prediction error e ( t ) is also bounded.
Suppose there exists a constant δ > 0 such that the prediction error norm satisfies: e ( t ) 2 ≤ δ , where δ is the maximum prediction error constant.
Constructing Lyapunov functions:
V ( t ) = 1 2 x ( t ) T x ( t )
Derivative obtained:
V ˙ = x T x ˙ = − c ω x T ( L + G ) x + x T e ( t )
Since the communication graph contains a reference source, the symmetric part of the matrix ( L + G ) is strictly positive definite, and There exists a coefficient α = c ω λ m i n > 0 corresponding to the smallest eigenvalue such that:
− x T ( L + G ) x ≤ − α x 2 2
Applying the Cauchy–Schwarz inequality and Young’s inequality to the cross-term x ( t ) T e ( t ) :
x ( t ) T e ( t ) ≤ x ( t ) 2 · e ( t ) 2 ≤ x ( t ) 2 · δ
According to Young’s inequality (45):
a b ≤ α 2 a 2 + 1 2 α b 2
Derive the inequality:
x ( t ) T e ( t ) ≤ α 2 x ( t ) 2 2 + 1 2 α δ 2
Substituting the above inequality back into Equation (42) yields:
V ˙ ≤ − α 2 x 2 2 + δ 2 2 α
By virtue of V = 1 2 x 2 2 , the above expression (47) can be written as:
V ˙ ≤ − α V + δ 2 2 α
For the above integral of the linear differential inequality, we obtain:
V ( t ) ≤ V ( 0 ) e − α t + δ 2 2 α 2 ( 1 − e − α t )
When t → ∞ , the system energy function V ( t ) is bounded, and the norm of the frequency deviation x ( t ) converges to:
lim t → ∞ sup x ( t ) 2 ≤ δ α
From the above Lyapunov analysis, it can be seen that switching to ANN predictive compensation ensures that the frequency deviation x ( t ) remains bounded at all times and eventually converges to a compact neighborhood determined by δ / α . Here, the convergence rate α = c ω λ min is jointly determined by the control gain and the connectivity of the communication topology. In engineering design, increasing α can significantly accelerate frequency recovery and further shrink this neighborhood. In practical applications, c ω must be optimized to balance recovery speed and transient overshoot, ensuring that the settling time meets operational requirements while maintaining sufficient damping margin.
To verify the effectiveness of this strategy, tests were conducted through Simulink simulations and field programmable gate array (FPGA)-in-the-loop (FIL) experiments, as detailed in Section 5.

5. Simulations and Results

5.1. Simulation Environment

In order to verify the feasibility and effectiveness of the proposed methodology, the microgrid model was built in Simulink and simulations were carried out using the above methodology, running in a computer with a fourteen core 4.7 GHz CPU and 8 GB GPU. The hyperparameter configuration for the RFCNN is shown in the Table 2. This paper adopts a 10-layer RFCNN architecture. The model consists of an input layer, an output regression layer, and three core residual blocks. Each residual block is composed of two fully connected layers with 256 neurons each, followed by batch normalization and ReLU activation. The hyperparameters were determined based on observations from offline training. A maximum of 200 training epochs was selected because the validation loss remained stable between 150 and 180 epochs, ensuring full convergence. The learning rate decay period was set to 40 training epochs to strike a balance between rapid exploration in the early stages and fine-tuning in the later stages, thereby effectively minimizing prediction error.
Table 2. RFCNN Architecture and Hyperparameter Tuning.
A distributed control method is used in four DGs experiment, and its physical and communication links are shown in Figure 7. In addition, the system settings and controller parameters are shown in the Table 3. The reference frequency signal is received by DG1 and used as the main reference source, which is then transmitted to the subsequent distributed power generation units sequentially through the communication network. This architecture achieves frequency synchronization through information interaction between neighbouring nodes and ensures that each DG unit can maintain stable system operation without a centralized controller.
Figure 7. Diagram of physical connections and communication links of the microgrid.
Table 3. System Settings and Controller Parameters.
The adjacency matrix A is given below. Here, a 21 = 1 indicates that there is a communication link between DG2 and DG1.
A = 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0
However, its communication links are vulnerable to attack, which may lead to severe system instability and oscillations. Subsequent experiments were conducted under simulated attack conditions targeting DG4, while the remaining generating units remained unaffected.
It’s worth mentioning that, in this study, the communication network is assumed to be ideal, and communication delay, packet loss, and asynchronous updating are not explicitly modeled. This assumption is adopted to isolate the influence of communication imperfections and focus on evaluating the proposed FDI attack detection and mitigation mechanism. In practical systems, such communication effects may introduce stale, missing, or temporally misaligned input data and thereby affect the RFCNN prediction accuracy. Their influence will be systematically investigated in future work.

5.2. Non-Protection Situation

If a microgrid system lacks effective protective measures against cyberattacks, it can cause frequency fluctuations or voltage instability, and even result in critical equipment overload and damage. As shown in the Figure 8, this is a simulation of the effects when a microgrid system lacks defensive measures. At the 1-s mark, DG4 is subjected to a square wave signal with an amplitude of 10 Hz. The attack targets DG4’s secondary frequency compensation channel, aiming to mislead the control loop with a significant, constant frequency offset. Within just 2.5 s, the frequency shifts from a stable 50 Hz to 250 Hz, resulting in an abnormal deviation. Additionally, this abnormal frequency fluctuation significantly impacts power distribution, causing power oscillations and preventing even distribution after the attack occurs.
Figure 8. Frequency and active power response of the microgrid without defense.

5.3. Situation of Using Proposed Method

In the microgrid simulation environment constructed, the effectiveness of the attack on DG4 and its countermeasures is shown in the Figure 9. At the start of the simulation, the built-in neural network module continuously monitors and collects regulation parameter values from other normally operating DGs, and uses these data to generate real-time regulation prediction values for DG4. However, prior to the attack, these prediction values were only used as a backup and were not directly fed into the control system.
Figure 9. Frequency and active power response using the proposed method.
Before the attack occurred (0 to 1 s), the system operated normally. During startup, fluctuations in frequency and power were considered normal. By 0.8 s, the system was basically stable. At 1 s, DG4 encountered a preset attack, causing its operating state to become abnormal. Specifically, DG4’s frequency exhibited a sharp positive spike in a short period, which was determined by the magnitude and duration of the applied attack. Therefore, to mitigate the attack, a rapid attack detection scheme and a robust recovery strategy are urgently needed.
At approximately 1.02 s, after the attack is successfully detected, the control switch quickly transmits the DG4 adjustment prediction value generated by the RFCNN module to the actual control loop. At this time, the RFCNN dynamically predicts the secondary adjustment value of DG4 under the current operating conditions based on real-time data collected from other distributed power sources. As shown in the f4 curve in the figure, after the initial peak, the frequency of DG4 shows a downward trend, which represents the intervention of the recovery mechanism. The decrease instead of an immediate return to 50 Hz occurs because the microgrid under distributed control is an interconnected system, and other DGs are also affected, so the predicted data may not be entirely accurate. However, as mentioned earlier, over time, if timely intervention is not taken to mitigate the attack, the system will continue to deteriorate. Therefore, as long as the attack can be quickly detected, and the data of the affected DG at this time does not exceed the range of the training set, the system can still recover to normal operation through the RFCNN.
After 1.25 s, under the influence of RFCNN, the system has largely recovered stability, and the power of DG4 has been correctly distributed.
Despite the system being attacked, the designed neural network-based adaptive regulation mechanism demonstrates good robustness and effectiveness. Through continuous online inference and predictive corrections, the neural network module effectively suppresses the adverse effects of the attack.

5.4. Comparison of Results for Multiple NNs

In order to compare the differences between various network applications in microgrid systems and to identify which network corresponds to the best recovery effect for this model, several representative neural network architectures were selected for training neural network models and applying them to microgrid models. To further evaluate whether the observed performance differences were caused by random training variability, statistical significance tests were conducted using the results of the 10 independent runs. Table 4 shows the mean and standard deviation from 10 experiments. It can be observed that RFCNN yields the best results among the four neural network models, confirming that RFCNN’s superior performance is statistically significant and not merely the result of random fluctuations.
Table 4. Network Performance Evaluation
In model training, evaluation metrics are indispensable for testing the performance and accuracy of the network. In this experiment, we use root mean square error (RMSE), mean absolute error (MAE), mean absolute percentage error (MAPE) and coefficient of determination (R-squared) for evaluation. The calculation formulas are shown below:
R M S E = 1 n ∑ i = 1 n ( y i − y ^ i ) 2
M A E = 1 n ∑ i = 1 n | y i − y ^ i |
M A P E = 100 % n ∑ i = 1 n y i − y ^ i y i
R 2 = 1 − ∑ i = 1 n ( y i − y ^ i ) 2 ∑ i = 1 n ( y i − y ¯ ) 2
where y ^ i is the predicted value of the ith data point, y ¯ is the average value of all actual values.
As can be seen from Table 4 and Figure 10, RFCNN outperforms other networks in terms of performance metrics. It is worth noting that, compared to advanced models and algorithms such as conditional generative adversarial network (cGAN) [40], hybrid physics-informed neural network (HPINN) [41], and Bayesian temporal convolutional network (BTCN) [42], RFCNN achieves an optimal balance between accuracy and computational efficiency. While complex architectures may offer slight improvements in accuracy, their high inference latency and computational overhead pose risks to the real time performance of distributed secondary control in microgrids. The lightweight residual structure of RFCNN ensures fast execution on resource-constrained field controllers, providing a more practical and robust solution for safe power system operation where execution speed is as critical as prediction accuracy.
Figure 10. Frequency restoration comparison plot for all neural networks.

5.5. Situation of Adding Historical Data for Training

In order to make the adaptive recovery system recover more quickly and stably, it was then considered to continue to enhance the prediction effect. Since attack detection is to judge whether an attack has occurred or not by the difference between the predicted value and the actual value, if the prediction effect is more accurate, the time spent on attack detection will be less, and the time spent on spikes generated by an attack on the system and on recovering stability will also be smaller. For this reason, this paper introduces the first n moments of data in the training network. It is worth noting that although RFCNN is the main architecture proposed in this paper, it demonstrates excellent performance even without training on historical data, making the improvement gained from incorporating historical data visually less noticeable. Therefore, to more clearly demonstrate the effectiveness of integrating historical data, this section uses the LSTM model as a representative case. Nevertheless, this paper also conducts ablation testing on RFCNN to further evaluate the contributions of the proposed components.
The following Figure 11 compares two scenarios: the standard LSTM model and the LSTM model optimized by introducing historical data. In the optimized scheme, in addition to the data of the current moment, the state data of the DG4 and other related DGs at the first 10 historical moments are also taken together as input features to the LSTM network. The positive effect of introducing historical data on improving the prediction accuracy and control effect can be observed from the figure, which is manifested in the fact that it possesses smaller frequency oscillation fluctuations as well as faster convergence speed.
Figure 11. Frequency response of LSTM trained without and with historical data.

5.6. Situation of Responding to Multiple FDI Attacks

The method also shows superior performance against different FDI attacks. As shown in Figure 12, the method maintains its resilience against constant value, ramp, sinusoidal and random square wave attacks. It is worth mentioning that an artificial delay is introduced in this experiment, where no action is applied to the system after the attack occurs, with the aim of observing the different effects produced by each attack type, after which a recovery signal is added artificially so that the system starts to recover to the desired state, which shows that the proposed method has a strong resilience when dealing with different kinds of FDI attacks.
Figure 12. Frequency restoration effects under different FDI attack types: (a) 10 Hz constant attack, (b) ramp attack with a slope of 10, (c) sinusoidal attack with an amplitude of 5 and an angular frequency of 50 rad/s, (d) random square wave attack.

5.7. Comparison of Results for Dynamic Threshold Attack Detection

To quantitatively evaluate the attack detection performance, four metrics are adopted: detection accuracy, false positive rate (FPR), false negative rate (FNR), and average detection delay. Table 5 shows the attack detection performance data for different parameters.
Table 5. Sensitivity Analysis of the Dynamic Threshold Parameters and Quantitative Attack Detection Performance.
The results indicate that the three parameters involve an inherent trade-off between detection sensitivity and robustness. Reducing the window length improves responsiveness but increases sensitivity to short-term residual fluctuations, whereas increasing the window length reduces false alarms at the expense of longer detection delay. Similarly, a smaller k improves attack sensitivity but increases the false-positive rate, while a larger k suppresses false alarms but increases missed detections and detection latency. The counter parameter provides additional temporal filtering; a small value enables faster triggering, whereas a large value suppresses transient false alarms but delays attack identification. Overall, the configuration N = 50 , k = 3 , and Counter = 10 provides the best trade-off among the investigated configurations, achieving 99.3% detection accuracy, a 0.4% false-positive rate, a 0.3% false-negative rate, and an average detection delay of approximately 20 ms. Therefore, this configuration is adopted in the subsequent experiments.
As shown in Figure 13, dynamic thresholds show better performance than static thresholds in reducing the amount of overshooting and shortening the recovery time. Analyzing from the mechanism, in order to avoid false alarms, designers are usually forced to raise the threshold or increase the determination delay, which inevitably leads to the detection lag, thus causing the static threshold to be unable to adapt to the volatility of the microgrid system. In contrast, the dynamic threshold designed in this paper is able to float autonomously according to the working conditions, and this flexibility enables it to significantly improve the accuracy of capturing abnormal behaviors while effectively filtering normal disturbances. This adaptive capability ensures the timeliness and accuracy of attack detection, providing assurance for the rapid triggering of defence mechanisms.
Figure 13. Comparison of attack detection performance before and after implementing the dynamic threshold mechanism.

5.8. Comparison of Frequency Restoration Effects

To compare the frequency recovery performance of the methods proposed in this paper, Figure 14 shows the effectiveness of various methods in resisting the same type of attack. Among them, Method A only uses the prediction at the current state and an attack detection with a fixed threshold. Method B reduces the amount of overshoot, preventing the system from diverging excessively. Compared to Method C, Method A is slower, while Method C detects attacks more quickly, thus activating defenses faster. Method D is the result of combining Methods B and C. As shown in the figure, its recovery performance is the best, which proves the superiority of the proposed method in this paper for frequency restoration under FDI attacks.
Figure 14. (A): RFCNN. (B): RFCNN with historical data. (C): RFCNN with dynamic threshold attack detection. (D): RFCNN with methods of B and C.

5.9. FIL

To comprehensively evaluate the performance of the proposed control strategy in resisting FDI attacks, we conducted FIL experiments. The microgrid control system is modeled on the Simulink platform. Real-time signal processing is handled by the ZYNQ7000 series FPGA, which communicates with the host computer via the onboard JTAG interface. The signal generator is connected to the host computer through a USB interface, and the experimental waveform data is output through the signal generator and finally displayed and recorded on a standalone oscilloscope. This architecture effectively simulates the process in an actual microgrid where the control unit collects state data and issues commands to the DG, while also reflecting the impact of FDI attacks on the system. The structure of the hardware-in-the-loop (HIL) simulation system is shown in Figure 15.
Figure 15. FIL experimental equipment connection diagram.
In the HIL implementation, the FPGA acts as a trigger source, and the synchronization signal generated by the FPGA is streamed to the host computer in real time through the JTAG interface. After capturing the trigger command, the host computer immediately drives the Simulink model into the simulation state and pushes the generated power and frequency data to the signal generator. The signal generator then converts the digital to analog waveforms, allowing the oscilloscope to visualize the dynamic response.
Figure 16 shows the trajectory of DG frequency recovery captured by the oscilloscope. The experimental results show that the measured waveforms are highly compatible with the simulated waveforms, and the system not only completes the attack detection within a short period of time after the FDI attack occurs, but also quickly activates the defense mechanism to guide the frequency to converge to the preset target value accurately.
Figure 16. Performance of proposed method by using FIL.

6. Conclusions

This paper proposes a neural network-driven adaptive predictive compensation strategy for enhancing the resilience of distributed microgrid secondary control against FDI attacks. By integrating RFCNN-based compensation prediction, dynamic threshold attack detection and adaptive switching control, the proposed method can identify abnormal secondary control signals and reconstruct the compromised control channel without modifying the underlying primary control structure. In the investigated FDI attack scenario, the attack is detected approximately 20 ms after injection, and the microgrid largely restores stable operation within approximately 0.25 s. The RFCNN achieves an RMSE of 0.0108, with RMSE reductions of approximately 8.5%, 20.6%, and 50.2% compared with BPNN, LSTM and NARX, respectively. Simulation and FIL results further demonstrate the effectiveness and implementation feasibility of the proposed strategy.
Nevertheless, further improvements are still required. The current resilience strategy mainly relies on switching the secondary control path after attack detection, which may introduce transient fluctuations due to abrupt changes in compensation signals. Future work will focus on developing a smooth transition mechanism between normal and resilient control modes to mitigate the impact of switching transients. In addition, a systematic state restoration strategy will be investigated to defend multi-node attacks and recover the control system after attack mitigation, enabling the microgrid to gradually return to normal operation and further enhancing its long-term resilience against FDI attacks.

Author Contributions

Conceptualization, T.Q. and M.Y.; methodology, W.Z.; software, W.Z.; validation, X.W.; formal analysis, Y.L. (Yilei Lu) and H.Z.; investigation, M.Y. and Y.L. (Yuhuan Liu); resources, Y.S.; data curation, W.Z.; writing—original draft preparation, W.Z.; writing—review and editing, Y.S.; visualization, W.Z.; supervision, Y.S.; project administration, X.W. and W.Z.; funding acquisition, Y.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded in part by the Shanghai Explorer Program, China, under Grant 24TS1410100; in part by the Natural Science Foundation of Shanghai Basic Research Funding under Grant 25ZR1402012; and in part by the Fundamental Research Funds for the Central Universities, China.

Data Availability Statement

The dataset is available on request from the authors.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Zhang, Z.; Yang, Z.; Yau, D.K.; Tian, Y.; Ma, J. Data security of machine learning applied in low-carbon smart grid: A formal model for the physics-constrained robustness. Appl. Energy 2023, 347, 121405. [Google Scholar] [CrossRef] [Scilit]
  2. Gan, L.; Chen, H.; Hua, L.; Zhang, Z.; Liu, B.; Zhong, S. Distributed Sliding-Mode-Based Resilient Secondary Restoration Control for Islanded Microgrid Under Unforeseen Influence. IEEE Internet Things J. 2025, 12, 42717–42727. [Google Scholar] [CrossRef] [Scilit]
  3. Zhang, Z.; Deng, R.; Yau, D.K.Y. Vulnerability of the Load Frequency Control Against the Network Parameter Attack. IEEE Trans. Smart Grid 2024, 15, 921–933. [Google Scholar] [CrossRef] [Scilit]
  4. Fotopoulou, M.; Rakopoulos, D.; Petridis, S.; Drosatos, P. Assessment of smart grid operation under emergency situations. Energy 2024, 287, 129661. [Google Scholar] [CrossRef] [Scilit]
  5. Najafirad, M.J.; Dehkordi, N.M.; Nazaripouya, H. Voltage Control of Islanded DC Microgrid Using Hierarchical Controllers Based on Kharitonov Theory. In Proceedings of the 2023 IEEE Power & Energy Society General Meeting (PESGM); IEEE: New York, NY, USA, 2023; pp. 1–5. [Google Scholar] [CrossRef] [Scilit]
  6. Huang, S.; Wang, L.; Xiong, L.; Zhou, Y.; Gao, F.; Huang, W.; Li, Y.; Guo, H.; Wang, F. Hierarchical Robustness Strategy Combining Model-Free Prediction and Fixed-Time Control for Islanded AC Microgrids. IEEE Trans. Smart Grid 2025, 16, 4380–4394. [Google Scholar] [CrossRef] [Scilit]
  7. Yin, H.; Gao, F.; Khan, M.M.; Liu, D. A Cooperative Power Flow Control Strategy for Low-Voltage DC Microgrid Clusters. IEEE Trans. Power Electron. 2025, 40, 9048–9067. [Google Scholar] [CrossRef] [Scilit]
  8. Qiu, M.; Zhang, Z.; Zuo, Z.; Wang, Y. Distributed Secondary Control of DC Microgrids with Operation Loss Reduction. In Proceedings of the 2024 43rd Chinese Control Conference (CCC), Kunming, China, 28–31 July 2024; pp. 7251–7255. [Google Scholar] [CrossRef] [Scilit]
  9. Mo, S.; Chen, W.H.; Zheng, W.X. Distributed Hybrid Control for Heterogeneous Multiagent Systems with Variable Communication Delays and Its Application to DC Microgrids. IEEE Trans. Syst. Man Cybern. Syst. 2023, 53, 7501–7512. [Google Scholar] [CrossRef] [Scilit]
  10. Choi, J.; Habibi, S.I.; Bidram, A. Distributed Finite-Time Event-Triggered Frequency and Voltage Control of AC Microgrids. IEEE Trans. Power Syst. 2022, 37, 1979–1994. [Google Scholar] [CrossRef] [Scilit]
  11. Li, Z.; Cheng, Z.; Si, J.; Xu, S. Distributed Event-Triggered Hierarchical Control of PV Inverters to Provide Multi-Time Scale Frequency Response for AC Microgrid. IEEE Trans. Power Syst. 2023, 38, 1529–1542. [Google Scholar] [CrossRef] [Scilit]
  12. Wan, Y.; Wen, G.; Yu, X.; Kurths, J. Distributed Event-Based Resilient Secondary Control for AC Microgrids: A Trust-Reputation Approach. IEEE Trans. Smart Grid 2024, 15, 2116–2128. [Google Scholar] [CrossRef] [Scilit]
  13. Cao, S.; Wei, F.; Wu, Y.; Lin, X.; Li, Z. Coordinated Control for Islanded DC Microgrid Based on Derivative of Bus Voltage. IEEE Trans. Power Syst. 2024, 39, 628–642. [Google Scholar] [CrossRef] [Scilit]
  14. Zhang, Z.; Liu, M.; Sun, M.; Deng, R.; Cheng, P.; Niyato, D.; Chow, M.Y.; Chen, J. Vulnerability of Machine Learning Approaches Applied in IoT-Based Smart Grid: A Review. IEEE Internet Things J. 2024, 11, 18951–18975. [Google Scholar] [CrossRef] [Scilit]
  15. Gao, S.; Xu, Y.; Zhang, Z.; Wang, Z.; Zhou, X.; Wang, J. Multiagent Imitation Learning-Based Energy Management of a Microgrid with Hybrid Energy Storage and Real-Time Pricing. IEEE Internet Things J. 2025, 12, 19801–19817. [Google Scholar] [CrossRef] [Scilit]
  16. Huo, Y.; Chen, Z.; Li, Q.; Li, Q.; Yin, M. Graph Neural Network Based Column Generation for Energy Management in Networked Microgrid. J. Mod. Power Syst. Clean Energy 2024, 12, 1506–1519. [Google Scholar] [CrossRef] [Scilit]
  17. Wang, X.; Li, S.; Iqbal, M. Live Power Generation Predictions via AI-Driven Resilient Systems in Smart Microgrids. IEEE Trans. Consum. Electron. 2024, 70, 3875–3884. [Google Scholar] [CrossRef] [Scilit]
  18. Sun, J. Voltage control of DC microgrid based on fuzzy neural network and improved particle swarm optimization algorithm. In Proceedings of the 2022 First International Conference on Cyber-Energy Systems and Intelligent Energy (ICCSIE), Shenyang, China, 14–15 January 2023; pp. 1–5. [Google Scholar] [CrossRef] [Scilit]
  19. Babayomi, O.; Madonski, R.; Zhang, Z.; Rodriguez, J.; Davidson, I.; Kim, D.S. Robust Model Predictive Control of Converter-Based Microgrids. IEEE Trans. Power Electron. 2025, 40, 17124–17146. [Google Scholar] [CrossRef] [Scilit]
  20. Wang, X.; Zhu, H.; Luo, X.; Guan, X. Data-Driven-Based Detection and Localization Framework Against False Data Injection Attacks in DC Microgrids. IEEE Internet Things J. 2025, 12, 36079–36093. [Google Scholar] [CrossRef] [Scilit]
  21. Tan, S.; Xie, P.; Guerrero, J.M.; Vasquez, J.C.; Alcala, J.M.; Carreño, J.E.M.; Guerrero-Zapata, M. Lyapunov-Based Resilient Cooperative Control for DC Microgrid Clusters Against False Data Injection Cyber-Attacks. IEEE Trans. Smart Grid 2024, 15, 3208–3222. [Google Scholar] [CrossRef] [Scilit]
  22. Li, Y.; Liu, S.; Zhu, L.; Wang, H. Neural Fictitious-Self Play-Based Cyber-Layer Defense for Frequency Control in Microgrids Against FDI Attacks. IEEE Trans. Consum. Electron. 2025, 71, 6109–6119. [Google Scholar] [CrossRef] [Scilit]
  23. Taher, M.A.; Tariq, M.; Sarwat, A.I. Enhancing Security in Islanded AC Microgrid: Detecting and Mitigating FDI Attacks in Secondary Consensus Control through AI-Based Method. In Proceedings of the 2023 IEEE International Conference on Energy Technologies for Future Grids (ETFG); IEEE: New York, NY, USA, 2023; pp. 1–6. [Google Scholar] [CrossRef] [Scilit]
  24. Tadepalli, P.S.; Pullaguram, D.; Alam, M.N. Cyber-Resilient Strategy for DC Microgrids Against Concurrent FDI and DoS Attacks. IEEE Trans. Ind. Inform. 2025, 21, 4756–4767. [Google Scholar] [CrossRef] [Scilit]
  25. Shafei, H.; Li, L.; Aguilera, R.P. Oberver-based Attack Detection and Mitigation in DC Microgrid Systems. In Proceedings of the 2023 IEEE 14th International Symposium on Power Electronics for Distributed Generation Systems (PEDG); IEEE: New York, NY, USA, 2023; pp. 959–964. [Google Scholar] [CrossRef] [Scilit]
  26. Tian, E.; Wu, Z.; Xie, X. Codesign of FDI Attacks Detection, Isolation, and Mitigation for Complex Microgrid Systems: An HBF-NN-Based Approach. IEEE Trans. Neural Netw. Learn. Syst. 2024, 35, 6156–6165. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  27. Wan, Y.; Wen, G.; Yu, X.; Kurths, J.; Chen, Z. Distributed Event-Triggered Learning-Based Control for Battery Energy Storage Systems Under Persistent False Data Injection Attacks. IEEE Trans. Smart Grid 2024, 15, 4986–4997. [Google Scholar] [CrossRef] [Scilit]
  28. Meng, J.; Hu, J.; Shi, X.; Guerrero, J.M.; Cao, J. Quantum Distributed Event-Triggered Frequency Control for AC Microgrids Under FDIAs. IEEE Trans. Smart Grid 2025, 16, 903–915. [Google Scholar] [CrossRef] [Scilit]
  29. Zhuang, G.; Zhu, J.; Zong, G.; Xia, J. Observer-Based Resilient Adaptive Neural Sliding Mode Control for DC-MGs Under Blended Attacks with Multidomain Attack-Aware Scheduling Protocol. IEEE Internet Things J. 2025, 12, 28229–28244. [Google Scholar] [CrossRef] [Scilit]
  30. Wang, Y.; Wang, L.; Huang, B.; Sun, Q. Multi-layer Cooperative Frequency Control of Microgrid with False Data Injection Attack and Communication Delay. In Proceedings of the 2022 First International Conference on Cyber-Energy Systems and Intelligent Energy (ICCSIE), Shenyang, China, 14–15 January 2023; pp. 1–6. [Google Scholar] [CrossRef] [Scilit]
  31. Shi, Y.; Liu, C.; Chen, H.; Jiang, B. Intelligent Detection of Distinguishability between Faults and Attacks in Cyber-physical DC Microgrids. In Proceedings of the 2023 6th International Conference on Robotics, Control and Automation Engineering (RCAE), Suzhou, China, 3–5 November 2023; pp. 371–376. [Google Scholar] [CrossRef] [Scilit]
  32. Wang, W.; Xu, J.; Liu, D.; Li, H.; Li, Y.; Jiang, Y.; Pu, S. A distributed secondary microgrid control strategy against FDIAs based on virtual layer networks. In Proceedings of the 2024 4th International Conference on New Energy and Power Engineering (ICNEPE), Guangzhou, China, 8–10 November 2024; pp. 875–880. [Google Scholar] [CrossRef] [Scilit]
  33. Li, Y.W.; Kao, C. An accurate power control strategy for inverter based distributed generation units operating in a low voltage microgrid. In Proceedings of the 2009 IEEE Energy Conversion Congress and Exposition; IEEE: New York, NY, USA, 2009; pp. 3363–3370. [Google Scholar] [CrossRef] [Scilit]
  34. Fotopoulou, M.; Tsekouras, G.J.; Rakopoulos, D.C.; Kanellos, F.D.; Kontargyri, V.T. Investment Planning Optimization for Energy Communities with Photovoltaic and Storage. IEEE Access 2026, 14, 98275–98294. [Google Scholar] [CrossRef] [Scilit]
  35. Islami, M.K.F.N.; Lhaksmana, K.M. Leveraging ANN, and SVM with Comparison Word2Vec Dimensions for Sentiment Analysis of ChatGPT App Reviews. In Proceedings of the 2025 International Conference on Information and Communication Technology (ICoICT), Bandung, Indonesia, 30–31 July 2025; pp. 1–6. [Google Scholar] [CrossRef] [Scilit]
  36. Dampfhoffer, M.; Mesquida, T.; Valentian, A.; Anghel, L. Backpropagation-Based Learning Techniques for Deep Spiking Neural Networks: A Survey. IEEE Trans. Neural Netw. Learn. Syst. 2024, 35, 11906–11921. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  37. Ganesh, P.M.J.; Sundaram, B.M.; Balachandran, P.K.; Zainuri, M.A.A.M. Syner-Dandelion Optimization Integrated Temporal Recurrent Transformer Network for Accurate Energy Load Forecasting in IoT-Smart Grids. IEEE Internet Things J. 2025, 12, 41752–41770. [Google Scholar] [CrossRef] [Scilit]
  38. Taher, M.A.; Behnamfar, M.; Khan, A.S.; Tariq, M.; Sarwat, A.I. Detecting False Data Injection Attacks using NARX-Based Observers in Distributed Cooperative Control for DC Microgrid. In Proceedings of the IECON 2024—50th Annual Conference of the IEEE Industrial Electronics Society, Chicago, IL, USA, 3–6 November 2024; pp. 1–6. [Google Scholar] [CrossRef] [Scilit]
  39. Zhang, X.; Shang, Z.; Gao, S.; Zhao, S.; Chen, C.; Wang, K. Open-Circuit Fault Diagnosis for T-Type Three-Level Inverter via Improved Adaptive Threshold Sliding Mode Observer. Appl. Sci. 2025, 15, 6063. [Google Scholar] [CrossRef] [Scilit]
  40. Sun, J.; Lv, R.; Xu, S.; Tan, S.; Guerrero, J.M. Sparse-Promoting Generative Adversarial Learning for Microgrid Control with Structural Adaptive Optimization Against FDI Attacks. IEEE Trans. Ind. Appl. 2026, 62, 3322–3331. [Google Scholar] [CrossRef] [Scilit]
  41. Suprabhath, K.S.; Siva Prasad Machina, V.; Madichetty, S.; Mishra, S. Securing DC Microgrids Against Cyberattacks: Hybrid Physics-Informed Neural Network Control Strategy with Real-Time Implementation. IEEE J. Emerg. Sel. Top. Power Electron. 2025, 13, 6292–6304. [Google Scholar] [CrossRef] [Scilit]
  42. Gao, H.; Fan, S.; He, J.; Deng, C. BTCN-Based Distributed Resilient Control for Hybrid AC/DC Microgrids with Missing Data. IEEE Trans. Smart Grid 2026, 17, 2672–2681. [Google Scholar] [CrossRef] [Scilit]
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.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.