Skip to Content
You are currently on the new version of our website. Access the old version .
EnergiesEnergies
  • Article
  • Open Access

10 November 2026

29 Pages

Robust and Communication-Efficient Personalized Federated Learning for False Power Consumption Detection in Heterogeneous Smart Grids

,
,
,
,
and
1
Department of Electrical and Computer Engineering, Western Carolina University, Cullowhee, NC 28723, USA
2
Department of Computer Systems, Faculty of Computer and Information Sciences, Ain Shams University, Cairo 11566, Egypt
3
Department of Network and Computer Security, College of Engineering, Utica, NY 13502, USA
4
Department of Electrical and Computer Engineering, Tennessee Tech. University, Cookeville, TN 38505, USA

Abstract

Detecting false power consumption data injection (FDI) attacks requires utilities to collaborate without sharing consumers’ raw data. Federated learning (FL) enables such collaboration. However, conventional FL exchanges complete models in every round and loses accuracy when the utilities’ data are not independent and identically distributed (non-IID). It also produces a shared detector that a malicious participant can exploit to craft evasion attacks. This paper proposes a personalized federated learning (PFL) approach in which utilities jointly train convolutional feature-extraction layers while keeping their classification layers local. Adversarial examples are incorporated into local training to improve resistance to evasion. The approach requires a single model per utility and no public dataset at the server. We evaluate it on the Ausgrid and Irish Smart Energy Trial datasets, with utilities that differ in both consumption patterns and attack characteristics. Compared with conventional FL, the proposed approach reduces the data exchanged per round and utility from 306.63 KB to 3.50 KB. With adversarial training, it improves accuracy by up to 23.75 and 29.82 percentage points on Ausgrid and ISET, respectively, and lowers the success rates of the evaluated FGSM and BIM attacks. These results show that personalization can ease the accuracy–robustness trade-off while substantially reducing communication costs.

1. Introduction

Smart power grids (SGs) represent a modernized electricity infrastructure that leverages communication, automated control, and data-driven technologies to optimize the generation, distribution, and consumption of electrical energy [1]. A key component of this infrastructure is the smart meter (SM), an electronic device deployed at consumer premises to monitor electricity usage in near real time and enable bidirectional communication between consumers and grid operators [2]. SMs provide detailed insights into consumption patterns, support dynamic pricing mechanisms, and enable rapid fault detection as well as remote control of power delivery. By facilitating real-time monitoring and control, SGs and SMs enable advanced demand-side management, seamless integration of renewable energy resources, and improved grid reliability and stability [1,2]. However, the increased connectivity and data exchange within SGs also introduce new cybersecurity vulnerabilities, including false power consumption data injection (FDI) attacks [3].
FDI attacks pose a significant threat to the reliable operation and financial integrity of modern power systems [3,4,5]. In such attacks, adversaries manipulate the energy consumption data reported by SMs to obtain financial benefits, such as reducing electricity bills or stealing power, while misleading control systems [6,7]. This manipulation can distort load estimation, degrade operational efficiency, and potentially destabilize grid performance. As energy networks become increasingly interconnected through Internet of Things (IoT) technologies, there is a growing need for detection mechanisms that are not only accurate and adaptive but also capable of preserving consumer privacy.
Machine learning (ML) techniques have shown strong potential for detecting anomalous consumption patterns associated with FDI attacks by learning normal behavioral patterns from historical data and identifying suspicious deviations in real time. However, most ML-based solutions rely on centralized data aggregation, which raises significant privacy concerns [5,8]. Fine-grained energy consumption data is highly sensitive, as it may reveal detailed information about users’ daily routines, occupancy patterns, lifestyle habits, and socioeconomic status. Centralized ML training approaches require transmitting raw data from distributed SMs to a central server for model training, thereby increasing the risk of data breaches and potential non-compliance with privacy regulations. To address these concerns, federated learning (FL) has emerged as a decentralized ML training paradigm that mitigates privacy risks by enabling collaborative model training without sharing raw data [9,10,11,12].
FL enables multiple edge entities—such as SMs, substations, or electrical utility companies (EUCs)—to collaboratively train a shared global model while keeping their local data private [13]. Instead of transmitting raw data, participating clients exchange model updates with a central aggregation server, which combines these updates to refine the global model. Despite its privacy advantages, FL performance can be significantly affected by non-independent and identically distributed (non-IID) data, which are common in heterogeneous SG environments where energy consumption patterns vary considerably due to differences in household appliances, occupancy schedules, weather conditions, and geographic factors. Such data heterogeneity can lead to reduced detection accuracy, slower convergence, and higher false alarm rates in conventional FL approaches [14].
In addition, FL can incur substantial communication overhead because clients and the aggregation server repeatedly exchange complete ML models containing a large number of parameters over multiple communication rounds until convergence is achieved. Beyond these challenges, ML-based detectors are also vulnerable to adversarial evasion attacks, in which attackers introduce carefully crafted perturbations into input data to mislead model predictions [15,16]. Although adversarial training (AT) is a promising defense that enhances robustness by incorporating adversarial examples into the training process [17,18], these robustness improvements may come at the cost of reduced detection accuracy on benign data.
To address these challenges, this paper develops a personalized federated learning (PFL)-based approach that enhances robustness against evasion attacks, reduces communication overhead, and maintains high classification performance in heterogeneous smart-grid environments, where utilities may differ in both power consumption patterns and attack characteristics. These objectives can involve competing requirements, particularly the tradeoff between accuracy on clean data and adversarial robustness.
Following the parameter-decoupling strategy [19,20,21] of FedPer [22], the proposed approach enables participating utilities to collaboratively train shared feature-extraction layers while retaining their classification layers locally. Each detector can therefore adapt to local consumption patterns without transferring raw consumption records to the aggregation server. Sharing only a subset of model parameters also reduces communication overhead, making the approach suitable for bandwidth-constrained SG environments. This personalization raises an important question: can adversarial examples generated using knowledge of one utility’s personalized detector also evade those of other utilities? We investigate this transferability and incorporate AT into local training to strengthen evasion resistance while limiting the loss of accuracy on clean data, thereby seeking a more favorable balance between accuracy and robustness. The approach requires no public dataset at the aggregation server.
We evaluate the proposed approach using two real-world smart meter datasets, Ausgrid and the Irish Smart Energy Trial (ISET). Non-IID partitions capture geographic differences through postcode-based grouping and behavioral differences through k-means clustering. The goal of this study is to develop a collaborative FDI detector for EUCs whose consumption data and attack patterns differ. The object of the study is the detection of false power consumption reports by multiple collaborating EUCs, and its subject is personalized federated detectors trained under non-IID data and adversarial evasion. To achieve this goal, we pursue three objectives: (O1) reducing the communication overhead of collaborative training by exchanging only the feature-extraction layers; (O2) maintaining high detection accuracy under heterogeneous data by keeping the classification layers local to each EUC; and (O3) improving robustness against evasion attacks by incorporating adversarial examples into local training and analyzing whether evasion examples transfer across EUCs.
To the best of our knowledge, this is the first study to jointly address communication efficiency, classification accuracy, and robustness against evasion attacks through partial layer sharing and adversarial training for personalized FDI detection in heterogeneous smart grids. The study provides insight into how personalization and adversarial training jointly affect detection performance and evasion robustness under non-IID conditions. The study adopts one benchmark PFL algorithm, FedPer [22], and compares it with conventional FL, examining how decoupling-based personalization interacts with adversarial training [15,16,17], communication cost, and cross-utility attack transferability.
The remainder of this paper is organized as follows. Section 2 reviews existing studies on FL-based false data detection and vulnerabilities to adversarial attacks. Section 3 presents the proposed PFL training approach. Section 4 describes the datasets and FDI attack models used in the experiments. Section 5 describes the experimental setup and presents the results of the performance and robustness evaluations. Section 6 discusses the results, practical implementation, limitations, and future research directions. Finally, Section 7 concludes the paper.

3. The Proposed Approach

The proposed approach allows EUCs to learn from one another without collecting their consumption records at a central server. Each EUC maintains a CNN-based detector whose convolutional layers are learned collaboratively, while its classification layers are adapted to local data. Adversarial examples are incorporated into local learning to improve the detector’s ability to recognize FDI attacks designed to evade detection. In this section, we first describe the proposed detector and then explain the rationale behind its design.

3.1. Robust PFL-Based False Data Detector

3.1.1. System Model and Model Personalization

We consider N EUCs, each serving a group of consumers equipped with SMs. The meters periodically send electricity consumption readings to their respective EUCs. In addition to billing and operational monitoring, these readings provide the data needed to train FDI detectors.
For EUC i, the training dataset is
D i = ( x i j , y i j ) j = 1 m i ,
where m i is the number of training examples, x i j ∈ R T contains T readings recorded over one day, and y i j ∈ { 0 , 1 } indicates whether the daily profile is benign (0) or malicious (1). For categorical cross-entropy, each label is represented by the one-hot vector
e ( y ) = 1 − y y .
Consumption habits, consumer composition, and attack characteristics can differ across EUCs. Consequently, their local datasets may follow different distributions. To accommodate these differences, and following FedPer [22], the detector is divided into a shared feature extractor and a local classification head. The feature extractor, denoted by g θ , consists of convolutional layers with parameters θ . The classification head, denoted by h ϕ i , contains dense layers whose parameters ϕ i are specific to EUC i. Its final layer produces two logits:
z i ( x ) = h ϕ i g θ ( x ) ∈ R 2 .
The detector applies softmax to these logits to obtain the class-probability vector:
p i ( x ) = f i ( x ; θ , ϕ i ) = softmax z i ( x ) .
For class c ∈ { 0 , 1 } , the corresponding probability is
p i , c ( x ) = exp ( z i , c ( x ) ) ∑ q = 0 1 exp ( z i , q ( x ) ) .
Here, p i , 0 ( x ) and p i , 1 ( x ) are the probabilities of the benign and malicious classes, respectively, and their sum is one.
During local training, each EUC updates both parts of its detector. Only the convolutional parameters are sent to the aggregation server; the classification head remains local throughout training. This arrangement allows the EUCs to develop a common representation of consumption patterns without requiring them to use the same decision boundary. The input layer itself has no trainable parameters to aggregate.
For unperturbed training examples, the local classification loss is
L i clean = 1 m i ∑ j = 1 m i ℓ p i ( x i j ) , e ( y i j ) ,
where categorical cross-entropy is defined as
ℓ ( p , e ( y ) ) = − ∑ c = 0 1 e c ( y ) log p c .
For a one-hot label, this loss is the negative logarithm of the probability assigned to the true class.
Here, “clean” means that no adversarial evasion perturbation has been added. The clean dataset therefore includes both benign profiles and profiles containing FDI attacks.

3.1.2. Adversarial Training at Each EUC

An FDI attack may become harder to detect when the attacker adjusts the falsified readings using knowledge of the detector. To account for this behavior, each EUC generates adversarial versions of malicious training profiles and includes them in local training. These examples retain the malicious label: changing a profile to conceal an attack does not make the underlying activity benign.
Let D i + denote the malicious subset of D i , and let e ( 1 ) = [ 0 , 1 ] T be the one-hot label of the malicious class. For a profile x in this subset, the adversarial perturbation is defined by
δ i * ∈ arg   max δ ∈ Δ i ( x )   ℓ f i ( x + δ ; θ , ϕ i ) , e ( 1 ) ,
where
Δ i ( x ) = δ : ∥ δ ∥ ∞ ≤ ϵ , x + δ ∈ X i .
The budget ϵ limits the change to each reading, while X i represents the input bounds enforced during attack generation. Both must be defined in the coordinate system in which the perturbation is applied. In our experiments, X i requires every adversarial sample to remain physically valid and to preserve the purpose of the original FDI attack: (i) all readings are non-negative; and (ii) the daily consumption of the generated sample is at least 50% less than that of the original sample.
For a malicious input, categorical cross-entropy reduces to − log p i , 1 ( x ) . Maximizing this loss therefore encourages the detector to assign a lower probability to the malicious class and, because the two softmax probabilities sum to one, a higher probability to the benign class.
For brevity, the model parameters are omitted from f i in the following expressions. The Fast Gradient Sign Method (FGSM) approximates the optimization with one gradient step:
x adv = Π B ∞ ( x , ϵ ) ∩ X i x + ϵ sign ∇ x ℓ f i ( x ) , e ( 1 ) .
Here, Π denotes projection onto the feasible input set, and B ∞ ( x , ϵ ) is the ℓ ∞ ball centered at x . The Basic Iterative Method (BIM) instead applies a sequence of smaller updates:
x ( k + 1 ) = Π B ∞ ( x , ϵ ) ∩ X i x ( k ) + α sign ∇ x ( k ) ℓ f i ( x ( k ) ) , e ( 1 ) .
Here, x ( 0 ) = x , α is the step size, and the final adversarial example is x adv = x ( K ) after K iterations. In both methods, gradients are computed through the current local detector, including its personalized head.
The adversarial loss is
L i adv = 1 | D i + | ∑ ( x , 1 ) ∈ D i + ℓ f i ( x adv ) , e ( 1 ) .
Local training balances the original detection task with resistance to evasion:
L i = ( 1 − λ ) L i clean + λ L i adv , 0 ≤ λ ≤ 1 .
The weight λ determines the contribution of adversarial examples. Setting λ = 0 gives training without adversarial examples. If a local dataset contains no malicious examples, that EUC uses the clean loss alone. The attack settings and loss weighting are specified in the experimental setup.
Across the participating EUCs, the learning objective is
min θ , ϕ 1 , … , ϕ N 1 N ∑ i = 1 N L i ( θ , ϕ i ) .
Thus, the EUCs jointly learn the feature extractor while each retains control over its own classification head.

3.1.3. Collaborative Training Procedure

Figure 1 shows the exchange between the EUCs and the aggregation server. Initially, the server creates the shared parameters θ 0 , and each EUC initializes its local head ϕ i 0 . The server does not need a public dataset because its role is to initialize, aggregate, and distribute the shared parameters.
Figure 1. Training and inference phases of the proposed PFL-based FDI detector. EUCs exchange feature-extraction layers while retaining their classification layers locally.
At the beginning of round r, EUC i receives θ r and combines it with the head retained from its previous local training. It then updates both components over its local minibatches. A gradient-based update can be expressed as
θ i ← θ i − η θ ∇ θ i L ^ i , ϕ i ← ϕ i − η ϕ ∇ ϕ i L ^ i ,
where L ^ i is the minibatch loss computed using categorical cross-entropy, and η θ and η ϕ are the learning rates. Adversarial examples are generated using the current model and treated as fixed inputs when updating its parameters.
After the local epochs are completed, the EUC uploads θ i r + 1 and retains ϕ i r + 1 . The server averages the uploaded shared parameters:
θ r + 1 = 1 N ∑ i = 1 N θ i r + 1 .
This equal-weight rule gives each participating EUC the same contribution to the shared model. The resulting parameters are distributed for the next round, while the local heads are carried forward without aggregation. Because all EUCs hold local datasets of equal size in our experiments (Section 5), the sample-size weights m i / ∑ j m j of standard FedAvg reduce to 1 / N , so Equation (16) is equivalent to FedAvg. When local datasets differ in size, the sample-size-weighted rule should be used instead. Algorithm 1 summarizes the training process.
Algorithm 1 Training the Proposed Robust PFL Detector
Require: Local datasets { D i } i = 1 N ; rounds R; local epochs E; AT weight λ ; attack settings.
Ensure: Personalized detectors { f i ( · ; θ R , ϕ i R ) } i = 1 N .
  1:
Server initializes θ 0 .
  2:
Each EUC i initializes ϕ i 0 .
  3:
for  r = 0 , … , R − 1  do
  4:
   Server distributes θ r .
  5:
   for each EUC i in parallel do
  6:
     Set θ i ← θ r and retain the local head ϕ i r .
  7:
     for  e = 1 , … , E  do
  8:
        for each local minibatch do
  9:
          Encode labels as one-hot vectors.
10:
          if  λ > 0 and malicious examples are available then
11:
             Generate adversarial examples using the current local detector and categorical cross-entropy.
12:
             Compute the combined loss in Equation (13).
13:
          else
14:
             Compute the clean categorical cross-entropy loss.
15:
          end if
16:
          Update both shared and private parameters.
17:
        end for
18:
     end for
19:
     Retain ϕ i r + 1 and upload θ i r + 1 .
20:
   end for
21:
   Compute θ r + 1 using Equation (16).
22:
end for
23:
Server distributes θ R .
24:
Each EUC combines θ R with its retained head ϕ i R .

3.1.4. Inference Phase

Once training is complete, each EUC uses its personalized detector to assess daily profiles received from its consumers. The same preprocessing used during training is applied before classification. The decision is based on the softmax probability assigned to the malicious class:
y ^ i = 1 , p i , 1 ( x ) ≥ τ i , 0 , p i , 1 ( x ) < τ i ,
where τ i is the detection threshold. Since the two class probabilities sum to one, setting τ i = 0.5 selects the class with the higher probability, with ties assigned to the malicious class. In all experiments, a uniform threshold τ i = 0.5 is used for every EUC and for both FL and PFL, without per-EUC tuning.
The EUC performs inference locally. Neither the consumption profile nor the prediction needs to pass through the aggregation server.

3.2. Design Rationale

Adapting detection to individual EUCs: A detector trained on pooled data or through conventional FL uses a common decision function across participants. This can be restrictive when a consumption pattern that is typical for one EUC is unusual for another. Retaining local classification layers gives each EUC room to account for these differences, while the shared convolutional layers allow it to benefit from patterns observed elsewhere. The usefulness of this separation depends on how much transferable structure exists across the local datasets.
Reducing the exchanged model size: Only the shared portion of the detector is transmitted during training. Let P s and P p denote the numbers of shared and private parameters, respectively, and let b be the number of bytes used to represent one parameter. With N participating EUCs, R rounds, and one upload and one unicast download per EUC per round, the parameter communication cost is approximately
C PFL = 2 R N b P s .
Sharing the complete model under the same conditions would require
C FL = 2 R N b ( P s + P p ) .
The corresponding reduction is
ρ = 1 − C PFL C FL = P p P s + P p .
These expressions exclude protocol overhead and assume the same number of rounds.
Learning temporal features with a CNN: Daily consumption profiles contain local structures, such as sustained increases, sharp changes, and repeated patterns. One-dimensional convolutional filters can learn these structures by applying the same weights at different positions in the input sequence. A layer with kernel width k, C in input channels, and C out output channels contains
P conv = k C in C out + C out
trainable parameters when biases are included. Its parameter count is independent of the sequence length, although its computational cost is not. Deeper layers combine local responses over a wider receptive field. This architecture supports the proposed division between shared temporal features and local classification, without assuming that every CNN is smaller or faster than every recurrent alternative.
Training against attempts to evade detection: Ordinary supervised training does not explicitly account for attackers who adapt their inputs to evade the detector. We address this limitation by generating examples that increase the model’s loss and incorporating them into training with their correct labels. Generating these examples against the complete personalized detector allows both its shared feature extractor and local classification layers to be trained against evasion.
We consider two attack scenarios that differ in the attacker’s knowledge of the detection models. In the first, attackers submit false consumption data without using adversarial evasion techniques or having access to any EUC’s personalized detector. In the second, a malicious EUC uses its own personalized detector to craft adversarial examples using FGSM and BIM. We then evaluate these examples against other EUCs’ personalized detectors to assess whether attacks crafted for one utility can evade detection at another. This scenario examines attack transferability across utilities without requiring access to the target utilities’ models. Although the attacker has greater knowledge in this setting, the attack’s success depends on how effectively the adversarial examples transfer between personalized detectors.
Keeping consumer records within each EUC: The collaborative process exchanges shared model parameters rather than consumption records. Adversarial examples and personalized heads also remain local. This reduces the need to disclose consumer-level information to the aggregation server.
The proposed design brings these choices together in one detector per EUC. Shared convolutional learning supports collaboration, local classification layers provide personalization, and training on adversarial examples prepares the detector for the evaluated evasion attacks. Their combined effect is assessed through detection performance, attack success rate, and communication cost.

4. Datasets and FDI Attacks

This section begins with a description of the datasets used in our experiments and then discusses the FDI cyber-attacks targeting power consumption data.

4.1. Datasets

Our experiments use two publicly available, real-world electricity consumption datasets: the Ausgrid Solar Home Electricity dataset [38], collected and released by the Australian electricity distributor Ausgrid, and the Irish Smart Energy Trial (ISET) dataset [39], originating from the Electricity Customer Behaviour Trial conducted by Ireland’s Commission for Energy Regulation (CER). Table 1 summarizes the key characteristics of both datasets, including the number of consumers ( C ), the number of collection days ( D ), the number of readings per day, and the sampling interval.
Table 1. Description of Datasets.
Dataset #1 (Ausgrid): This dataset contains SM electricity consumption data collected from residential customers in Sydney city and surrounding regions in Australia. The dataset provides half-hourly electricity usage measurements, resulting in 48 readings per household per day, and spans approximately one year. In addition to detailed energy consumption records, the dataset includes selected household demographic and socioeconomic attributes, such as customer classifications and dwelling-related information. The high temporal resolution of the data enables the analysis of daily, weekly, and seasonal consumption patterns, making it well suited for energy forecasting, demand response studies, consumer behavior analysis, false data detection, and privacy-preserving machine learning research in smart grid environments.
Dataset #2 (ISET): This dataset contains high-resolution smart meter electricity consumption data collected from 3639 residential customers. The dataset provides half-hourly energy usage measurements, yielding 48 consumption readings per household per day over an extended monitoring period. In addition to detailed load profiles, it includes rich household-level metadata describing dwelling characteristics, appliance ownership, occupancy patterns, socioeconomic factors, and occupant behavior. These complementary attributes enable comprehensive analyses of the factors influencing residential electricity demand and facilitate the development of personalized energy management strategies. The combination of fine-grained consumption records and extensive contextual information makes the dataset particularly valuable for load forecasting, customer segmentation, demand response analysis, energy consumption modeling, false data detection, privacy-preserving machine learning, and explainable artificial intelligence applications in smart grid environments.
To ensure high-quality and accurate results, data preparation techniques such as cleaning and normalization were applied to eliminate noise and inconsistencies [40]. Missing values, duplicates, and errors were addressed during cleaning, while normalization standardized feature scales. As a result, the datasets were well-structured and appropriate for effective model training.

4.2. Attacks and Threat Model

Electricity consumption reports allow utilities to calculate bills and monitor demand across SG. An honest consumer submits readings that match their actual usage, denoted by R b ( t ) = R actual ( t ) . A malicious consumer instead reports altered readings, denoted by R m ( t ) , to reduce electricity charges or mislead the utility about their consumption.
This study considers two attacker settings. In the first, consumers manipulate their readings using predefined FDI strategies without knowing how the utility detects false data. In the second, attackers know the ML-based detector and use this knowledge to adjust false readings so that they appear benign to the model. In both settings, the attacker controls the readings submitted by the compromised consumer. The attacks target the detector’s inputs rather than the model updates exchanged during training.

4.2.1. FDI Attacks Without Adversarial Evasion

Building on attack strategies described in the literature [41], we develop five FDI attacks and consider them in this paper. Their resulting consumption profiles are denoted by R m 1 through R m 5 . Some strategies alter readings throughout the day, whereas others modify only a selected period.
Let R b ( t ) represent a benign reading in a daily profile containing T equally spaced intervals, where t ∈ { 0 , … , T − 1 } . The mean reading for that day is
Avg d = 1 T ∑ t = 0 T − 1 R b ( t ) .
  • Continuous scaling. The consumer reports a fixed fraction of their actual usage at every interval:
    R m 1 ( t ) = α R b ( t ) , 0 < α < 1 .
    This reduces the reported consumption while retaining the original pattern of peaks and troughs.
  • Intermittent scaling. The consumer underreports usage only between t s and t e , using a reduction factor β :
    R m 2 ( t ) = β R b ( t ) , t s ≤ t ≤ t e , R b ( t ) , otherwise , 0 < β < 1 .
    Outside this period, the submitted readings match the actual consumption.
  • Daily-mean replacement. Every reading is replaced with the mean of the actual daily profile:
    R m 3 ( t ) = Avg d .
    The resulting profile is constant throughout the day. Although its daily total is unchanged, it conceals when electricity was consumed by removing the original fluctuations.
  • Scaled daily-mean replacement. The consumer reports a reduced version of the daily mean at every interval:
    R m 4 ( t ) = γ Avg d , 0 < γ < 1 .
    This produces a flat profile with a lower daily total, combining temporal manipulation with underreporting.
  • Time shifting. The consumer changes the reported timing of electricity use without changing the daily total. A circular shift of τ intervals is written as
    R m 5 ( t ) = R b ( t − τ ) mod T .
    When electricity prices vary by time of day, a suitable shift can place higher readings in cheaper tariff periods and lower readings in more expensive periods. Whether this reduces the bill depends on the tariff schedule, the consumption pattern, and the chosen shift.
Figure 2 shows how these strategies change the daily readings of representative consumers from the Ausgrid and ISET datasets. Scaling reduces the reported usage, mean replacement removes fluctuations, and time shifting moves readings to different reporting intervals. These examples illustrate why false-data detection must consider both the amount of electricity reported and its distribution over time. An unchanged daily total does not necessarily indicate an honest report.
Figure 2. Actual and manipulated daily consumption profiles for representative consumers from the Ausgrid and ISET datasets.

4.2.2. FDI Attacks with Adversarial Evasion

An attacker with knowledge of the detector can take an additional step: adjusting an already falsified profile to make it less likely to be flagged. Rather than replacing the original FDI strategy, adversarial evasion adds a small perturbation to the false readings it produces.
Let R m x denote a malicious profile generated by attack x ∈ { 1 , … , 5 } . Its adversarial version is
R ˜ m x = R m x + η , ∥ η ∥ ∞ ≤ ϵ ,
where η is the added perturbation and ϵ limits the change to each input component. The attacker seeks a profile that the detector accepts as benign while still serving the original false-reporting objective.
We consider the Fast Gradient Sign Method (FGSM) [16] and the Basic Iterative Method (BIM) [15]. Both use input gradients to increase the detector’s loss for the true malicious label. Because the detector performs binary classification, an incorrect prediction for a malicious sample assigns it to the benign class.
FGSM changes the profile in a single step:
R ˜ m x = R m x + ϵ sign ∇ R m x L ( R m x , y ; θ ) .
BIM makes several smaller changes, recalculating the gradient after each update. Starting from R m x ( 0 ) = R m x , it computes
R m x ( n + 1 ) = clip [ R m x ( 0 ) − ϵ , R m x ( 0 ) + ϵ ] ( R m x ( n ) + δ sign ∇ R m x ( n ) L ( R m x ( n ) , y ; θ ) ) ,
for n = { 0 , … , N − 1 } . The final profile is R ˜ m x = R m x ( N ) . Clipping keeps each reading within ϵ of its value in the initial malicious profile.
Here, y is the malicious label, θ contains the detector parameters, and L is the classification loss. The gradient is taken with respect to the input profile. The parameters δ and N determine the BIM step size and number of updates. If the detector uses normalized readings, the perturbation budget and step size are measured in those normalized units. Keeping the perturbation small limits how much the evasion attack changes the initial false profile. In addition to the budget ϵ , every evasion profile is required to satisfy the constraints of the feasible set X i in Equation (9) after each perturbation step: all readings remain non-negative, and the daily consumption of the generated sample is at least 50% less than that of the original sample. Hence, the evaluated evasion examples remain physically valid and practically relevant electricity theft attacks.
For PFL, we evaluate evasion attacks under a transfer-based threat model. A malicious EUC has full knowledge of its own personalized detector, including its architecture, parameters, preprocessing, and loss function. It uses this detector to generate adversarial examples, which are then evaluated against the personalized detectors of other EUCs. The attacker therefore has white-box access to the source detector but no access to the target EUCs’ private classification layers. This setting allows us to assess whether adversarial examples crafted for one utility can evade detection at another.
For conventional FL, the attacker generates adversarial examples using the global model, which is available to all participating EUCs and serves as their common detector. The attacker consequently has white-box access to the detector being targeted. These two settings reflect the model information available to a malicious participant under each learning approach.
In both settings, the attacker can access its own local consumption readings to construct the initial false profiles; access to other consumers’ private training data is not required. Participation in PFL does not, by itself, reveal another EUC’s private classification layers. Our experiments therefore assess cross-utility attack transferability in PFL and direct white-box evasion in conventional FL. Although the two settings provide different levels of attacker knowledge, both evaluations assess how effectively a malicious EUC can attack other EUCs using the model information available within each learning paradigm. The same initial samples, attack algorithms, and perturbation budget are used in both settings. In FL, access to the shared global detector enables white-box attacks, whereas in PFL, private classification layers require the attacker to transfer adversarial examples generated using its own detector. Accordingly, the lower A S R observed for PFL reflects its performance under this combination of adversarial training and restricted access to target detectors.

5. Performance Evaluation

This section describes the experimental setup, evaluation metrics, and results. We compare conventional FL with PFL in terms of false data detection, communication requirements, and robustness against adversarial evasion.

5.1. Experimental Setup

The experiments were conducted on a high-performance computing cluster at Tennessee Technological University (TTU). We used the datasets and FDI strategies described in Section 4 to train and evaluate the detectors. The implementation relied on Python libraries, including Pandas, Keras, Matplotlib, and Scikit-learn.
Detection model: Both FL and PFL use the same CNN-based detector [37]. The input layer receives 48 consumption readings representing one day of half-hourly measurements. A one-dimensional convolutional (Conv1D) layer with 128 filters and ReLU activation extracts patterns from neighboring readings. Its output is passed to three dense layers with 256, 128, and 64 units, using ReLU, ReLU, and sigmoid activations, respectively, which distinguish benign profiles from false reports. An output layer with two units and softmax activation produces the class probabilities. In PFL, the Input and Conv1D layers form the shared feature-extraction layers, whereas the dense and output layers remain local to each EUC. This architecture allows the detector to learn variations in consumption magnitude and local temporal structure.
Hyperparameter selection: We used random search to select the detector configuration. Candidate values were defined for the parameters being tuned, and randomly sampled combinations were assessed on the validation set. The selected configuration used the Adam optimizer, a learning rate of 10 − 4 , a batch size of 50, and categorical cross-entropy loss. Federated training was performed for 100 communication rounds. The same backbone architecture and stated training settings were used for FL and PFL to support their comparison. The results in Table 2 and Table 3 are reported as the mean ± standard deviation over 5 independent runs with different random seeds for model initialization.
Evasion attack settings: FGSM was evaluated using perturbation budgets in the range 0.01 < ϵ < 0.5 , and the optimal ϵ was selected through a search within this range. This selected value was then used as the perturbation budget for BIM, with the step size set as a fraction of the optimal ϵ by dividing it by N, where N = 100 is the number of iterations. These settings allowed us to examine how the permitted input modification affects evasion success. The perturbation budget and step size are expressed in the input units used by the detector.

5.2. Evaluation Metrics

We evaluate detection performance using accuracy ( A C C ), detection rate ( D R ), precision ( P R ), F1-score ( F 1 ), false alarm rate ( F A ), and highest difference ( H D ). Malicious profiles are treated as the positive class. Thus, a true positive ( T P ) is a malicious profile correctly detected, and a true negative ( T N ) is a benign profile correctly accepted. A false negative ( F N ) is a malicious profile classified as benign, whereas a false positive ( F P ) is a benign profile incorrectly flagged as malicious.
Accuracy measures the proportion of correctly classified profiles:
A C C = T P + T N T P + T N + F P + F N .
Detection rate, also referred to as recall, measures the fraction of malicious profiles identified by the detector:
D R = T P T P + F N .
Precision measures the fraction of flagged profiles that are actually malicious:
P R = T P T P + F P .
The F1-score combines precision and detection rate through their harmonic mean:
F 1 = 2 D R P R D R + P R .
The false alarm rate measures how often benign profiles are incorrectly classified as malicious:
F A = F P F P + T N .
The H D metric captures the difference between detecting malicious profiles and incorrectly flagging benign ones. This difference is commonly called Youden’s J statistic and balances detection of malicious samples against false alarms on benign samples. It is computed as follows:
H D = D R − F A .
Higher A C C , D R , P R , F 1 , and H D values indicate better detection performance, whereas a lower F A is preferable.
The FL global model is evaluated on the union of the five EUC test sets, whereas each personalized detector is evaluated on the test set of its own EUC. Because the five test sets have equal size and the same 1:1 ratio of benign to malicious profiles, the column “All EUCs” in Table 2, Table 3, Table 4 and Table 5 reports the performance of the personalized detectors on the same combined test set used for FL, computed from the pooled confusion matrices. This enables a direct comparison on identical samples.
To compare communication requirements, we report the size of the model information exchanged during each collaborative training round, denoted by M S and measured in kilobytes (KB). Conventional FL exchanges the full set of model parameters, whereas PFL exchanges only the shared parameters. This quantity should be distinguished from the size of the complete detector retained by each EUC.
Robustness against evasion attacks is evaluated using the attack success rate ( A S R ), defined as the percentage of malicious evasion samples that the detector misclassifies as benign:
A S R = N evasion → benign N evasion
where N evasion is the total number of malicious evasion samples evaluated, and N evasion → benign is the number classified as benign. A higher A S R indicates more successful evasion and lower detector robustness. This metric includes all evaluated evasion samples, regardless of whether their original malicious profiles were correctly detected before perturbation. Each A S R value is computed over N evasion = 6083 evasion samples for Ausgrid and N evasion = 3560 for ISET. When none of these samples evades a detector, the true attack success rate is not necessarily zero but is bounded: by the rule of three [42], its 95% upper confidence bound is approximately 3 / N evasion , i.e., 0.05% for Ausgrid and 0.08% for ISET. We therefore describe such cases as “no successful evasion observed under the tested conditions”.

5.3. Experimental Results

The evaluation consists of two experiments. Experiment #1 compares the detection performance and communication requirements of conventional FL and PFL without adversarial training. Experiment #2 evaluates the detection performance of the defended detectors and their robustness against FGSM and BIM attacks.
In both experiments, the Ausgrid and ISET datasets are partitioned into five local datasets, each representing an EUC. The partitions reflect differences in consumption patterns, while a different distribution of FDI strategies is assigned to each EUC to introduce variation in the malicious profiles. Together, these differences emulate a heterogeneous smart grid with non-IID local data.
For Ausgrid, consumers are grouped by postcode into five simulated EUCs: 2008–2087, 2088–2204, 2205–2259, 2260–2285, and 2286–2330. Figure 3 shows the geographic distribution of these groups. This partition represents utilities serving different geographic areas, where consumer characteristics and electricity usage may vary.
Figure 3. Geographic distribution of the Ausgrid postcode groups used to represent five EUCs.
For ISET, consumers are grouped according to their consumption patterns because geographic attributes are unavailable for the partitioning used in this study. We apply k-means clustering to form five groups, each representing an EUC. The choice of k = 5 is guided by the elbow analysis shown in Figure 4. This partition represents utilities serving consumers with different electricity usage patterns.
Figure 4. Elbow-method analysis used to select five consumption-based clusters for the ISET dataset.
To introduce heterogeneity in attack characteristics, each EUC receives malicious samples from all five FDI strategies, but in different proportions. Specifically, R m 1 predominates at EUC1, R m 2 at EUC2, R m 3 at EUC3, R m 4 at EUC4, and R m 5 at EUC5, while each utility also receives smaller proportions of samples generated by the other four strategies. The same allocation scheme is used for both datasets. This setup allows us to evaluate collaborative detection when utilities differ in both their benign consumption patterns and the distribution of FDI attacks they encounter. After partitioning, the local datasets were down-sampled to the same size, so that each EUC holds 47,300 samples for Ausgrid and 21,440 samples for ISET, balanced between benign and malicious samples.

5.3.1. Experiment #1: Detection Performance and Communication Requirements

FL and PFL configurations: In conventional FL, each EUC sends the complete model parameters to the central server for aggregation. The resulting global detector is then used across the participating utilities. In PFL, only the trainable parameters of the Conv1D feature-extraction layer are shared and aggregated. The input layer specifies the input format and has no trainable parameters to exchange. Each EUC retains its dense and output layers locally, allowing its classification decisions to adapt to its own consumption patterns and FDI strategy. Both approaches therefore use the same detector architecture, but differ in which parameters are shared.
Ausgrid results: Table 2 compares the two approaches using A C C , D R , P R , F 1 , F A , H D , and M S . The conventional FL detector achieves an accuracy of 81.55%, whereas the personalized detectors achieve 95.35%, 97.75%, 97.40%, 96.70%, and 91.35% for EUC1 through EUC5, respectively. These correspond to accuracy gains of 13.80, 16.20, 15.85, 15.15, and 9.80 percentage points. The results indicate that retaining local classification layers helps the detectors accommodate differences among utilities. Although all five personalized detectors improve on the reported FL accuracy, their performance varies, showing that the benefit of personalization depends on the local data and attack characteristics.
The reported communication quantity also decreases from 306.63 KB per training round and EUC for FL to 3.50 KB for PFL, a reduction of approximately 98.86%. This saving arises from exchanging only the shared feature-extraction parameters rather than the complete model. On the same combined test set used for FL, the PFL detectors achieve an average accuracy of 95.71% and an average H D of 91.02%, compared with 81.55% and 63.10% for FL.
ISET results: Table 3 presents the corresponding comparison for ISET. Conventional FL achieves an accuracy of 75.35%, while PFL achieves between 98.12% and 99.00% across the five EUCs. The resulting gains range from 22.77 to 23.65 percentage points. On the combined test set, PFL achieves an average accuracy of 98.82% and an average H D of 97.93%, compared with 75.35% and 50.71% for FL.
As in the Ausgrid experiment, the reported communication quantity decreases from 306.63 KB for each training round to 3.50 KB. Together, these results show that partial sharing of model parameters can reduce communication requirements while allowing each utility to maintain a detector suited to its local data. Table 2 and Table 3 also report the number of communication rounds, out of the 100 training rounds, required for convergence. PFL converges in fewer rounds than FL on both datasets, so the per-round reduction translates into an even larger reduction in total communication cost.
Table 2. Performance comparison between the undefended FL and PFL detectors on the Ausgrid dataset.
Table 3. Performance comparison between the undefended FL and PFL detectors on the ISET dataset.

5.3.2. Experiment #2: Adversarial Robustness Evaluation

This experiment examines whether the defended detectors can resist evasion attacks while maintaining reliable false-data detection. A key challenge is the potential trade-off between adversarial robustness and classification performance: training with adversarial examples can improve resistance to evasion but may reduce accuracy on unperturbed profiles.
We retrained the FL and PFL detectors from Experiment #1 using adversarial examples generated by BIM. These examples were derived from malicious consumption profiles and retained their malicious labels. Benign profiles accounted for half of the training samples, while the other half comprised malicious profiles, including adversarial examples.
We first evaluated robustness by applying FGSM and BIM to both sets of detectors and comparing their attack success rates ( A S R ). We then compared their classification performance on unperturbed benign and malicious profiles to assess the impact of the defense on the classification performance. Both evaluations were conducted using the Ausgrid and ISET datasets.
1. Robustness Against Evasion Attacks
Figure 5 shows the FGSM attack success rates on Ausgrid, with Figure 5a–e corresponding to attackers from EUC1–EUC5. Without defense, high A S R values indicate that the detectors frequently accept perturbed malicious profiles as benign. With defense, attack success drops substantially for both FL and PFL.
Figure 5. The A S R of the FGSM attack (Ausgrid Dataset).
The attacks use the model information available to each malicious participant. In FL, the attacker crafts examples using the global model that is also being targeted. In PFL, the attacker crafts examples using its own personalized model and tests them against other utilities’ detectors. Consequently, the FL results describe direct white-box evasion, while the PFL results show how well attacks transfer between utilities.
The varying attack success rates across personalized detectors suggest that examples crafted for one EUC do not affect all other EUCs equally. Differences in the learned models may restrict transferability, although these results alone do not establish which model or data characteristics are responsible. Some undefended PFL detectors already exhibit low A S R (e.g., EUC_2 and EUC_5 in Figure 5a), indicating that part of the lower A S R of PFL reflects limited transferability rather than adversarial training alone. We regard this reduced transferability as a practical security benefit of personalization, since a malicious participant cannot obtain the decision layers of other utilities.
For the EUC1 attacker in Figure 5a, the defense reduces the FL detector’s A S R from 89.6% to 5.1%. The PFL detectors also become more resistant. In the same panel, the attack success rate against EUC4 falls from 90.6% to 0%. No successful evasion was therefore observed for this detector under the tested conditions.
Figure 6 presents the BIM results. Without defense, BIM achieves higher attack success rates than FGSM under the evaluated settings. Its repeated updates give the attacker several opportunities to adjust the perturbation using the model’s gradients. The defended detectors substantially reduce the success of BIM against both FL and PFL, following the same broad pattern observed for FGSM.
Figure 6. The A S R of BIM attack (Ausgrid Dataset).
The ISET evaluation in Figure 7 leads to similar findings. Undefended detectors remain vulnerable to FGSM and BIM, whereas adversarially trained detectors show much lower attack success rates. For space considerations, Figure 7 includes only attacks generated by EUC1. Similar trends were observed for EUC2–EUC5: the undefended detectors were vulnerable to both FGSM and BIM, and adversarial training substantially reduced the A S R for both FL and PFL, as shown in Appendix A.
Figure 7. The A S R of FGSM and BIM attacks launched by EUC_1 using the ISET dataset.
Taken together, the experiments show that both FL and PFL benefit from the defense, with defended PFL detectors achieving lower attack success rates against the evaluated FGSM and BIM attacks, partly because of the reduced transferability of evasion examples across personalized detectors, while retaining the communication benefits of partial parameter sharing. The findings across both datasets support the use of defended PFL in the heterogeneous utility settings examined in this study. However, these robustness gains should be considered alongside the defense’s impact on classification performance, as discussed in the next subsection.
2. Detection Performance of Defended Detectors
Table 4 reports the performance of the defended detectors on Ausgrid. It can be seen that our PFL detectors achieve higher accuracy, detection rate, precision, F1-score, and H D than the defended conventional FL detector. Their advantage in false alarm rate varies across utilities: EUC1–EUC4 achieve lower rates than defended FL, whereas EUC5 exhibits a higher rate. Nevertheless, all five PFL detectors achieve substantially higher H D values. Since H D = D R − F A , these results indicate a better balance between detecting malicious profiles and avoiding false alarms.
A comparison with Table 2 shows how the defense affects classification performance. For conventional FL, accuracy decreases from 81.55% to 74.20%, while the false alarm rate increases from 6.52% to 20.74%. For PFL, the undefended detectors achieve accuracies of 95.35%, 97.75%, 97.40%, 96.70%, and 91.35% for EUC1–EUC5, respectively. After incorporating the defense, these values become 88.50%, 92.95%, 97.95%, 87.80%, and 86.25%. Accuracy therefore decreases for four EUCs, whereas EUC3 shows a slight improvement. The false alarm rates change from 4.40%, 3.00%, 5.20%, 6.60%, and 7.70% for the undefended detectors to 18.60%, 14.10%, 4.10%, 20.40%, and 21.40%, respectively, increasing for all utilities except EUC3.
Although the defense affects each utility differently, all five defended PFL detectors retain higher accuracy than defended FL, with gains ranging from 12.05 to 23.75 percentage points. These findings suggest that retaining local classification layers helps utilities distinguish benign from malicious profiles when adversarial examples are included in training. However, the benefit varies with local data and attack characteristics. In particular, EUC5 has a higher false alarm rate than defended FL despite achieving higher accuracy, showing that better overall classification does not necessarily translate into fewer unnecessary alerts. On the same combined test set, the defended PFL detectors achieve an average accuracy of 90.69%, compared with 74.20% for defended FL.
The ISET results in Table 5 show a clearer advantage for the defended PFL detectors. Their accuracies are 95.62%, 94.86%, 95.17%, 93.06%, and 93.46% for EUC1–EUC5, respectively, compared with 65.80% for defended FL. Their false alarm rates range from 7.30% to 11.18%, consistently below the 14.56% recorded for defended FL. Compared with Experiment #1, accuracy decreases by 9.55 percentage points for FL and by 3.38–5.94 percentage points for PFL. All five personalized detectors therefore retain higher accuracy and experience a smaller accuracy loss after incorporating the defense. On the combined test set, the defended PFL detectors achieve an average accuracy of 94.43%, compared with 65.80% for defended FL.
Experiment #1 shows that PFL substantially reduces communication requirements compared with conventional FL by sharing only selected model parameters with the server. Experiment #2 demonstrates that, although adversarial training generally reduces classification performance, the defended PFL detectors retain higher accuracy than defended FL. These findings suggest that personalization helps alleviate the trade-off between detection performance and adversarial robustness. By retaining local classification layers, PFL maintains strong detection performance while improving resistance to evasion attacks. Although the accuracy loss varies across utilities, it is smaller than that of FL for most Ausgrid detectors and all ISET detectors. PFL therefore offers a favorable balance among detection performance, communication efficiency, and resistance to the evaluated evasion attacks.
Table 4. Performance comparison between the defended FL and PFL detectors on the Ausgrid dataset.
Table 5. Performance comparison between the defended FL and PFL detectors on the ISET dataset.

6. Discussion

6.1. Summary of the Results and Practical Implementation

The experiments show that sharing only the feature-extraction layers reduces the data exchanged per round and utility from 306.63 KB to 3.50 KB while allowing each EUC to maintain a detector suited to its local data and attack mix. Adversarial training substantially reduced the success of the evaluated FGSM and BIM attacks for both FL and PFL, and the accuracy loss caused by the defense was smaller for most personalized detectors than for the global FL model. Part of the lower A S R observed for PFL reflects the reduced transferability of evasion examples across personalized detectors, which is a practical security benefit of keeping the classification layers private.
A new EUC can join the federation without retraining the existing detectors: it receives the current shared layers, trains its own classification layers on its local data, and then participates in subsequent rounds. Because the classification layers of the existing EUCs are never aggregated, their decision functions are not overwritten, while the newcomer can adapt to an attack distribution that differs from those of the other EUCs, as observed in our experiments, where each EUC was dominated by a different FDI attack type.
The proposed approach can be integrated into the existing advanced metering infrastructure (AMI) of each utility. Smart meters already transmit half-hourly readings to the utility’s head-end system and meter data management system (MDMS), where the daily profiles used by the detector are available. Local training and inference can therefore run on the utility’s existing servers, without access to individual meters and without new field hardware. The aggregation server performs only parameter averaging and can be hosted by a neutral party, such as a regulator or system operator, or by one of the participating utilities. The additional costs for utilities are therefore limited to software integration, a modest computing allocation for training, and the operation of the aggregation server and its secure communication channel, while exchanging only the feature-extraction layers substantially reduces network costs.

6.2. Limitations

Both datasets contain residential consumers; small and medium-sized enterprises, whose consumption depends on varying production processes, may exhibit substantially different profiles. In addition, the EUCs were simulated by partitioning the datasets, and the FDI attacks were synthetically generated. The defended detectors were evaluated only against FGSM and BIM, the attacks used in adversarial training, which does not guarantee robustness against optimization-based, gradient-free, or adaptive attacks [43,44]. Finally, although raw data and classification layers remain local, the shared convolutional updates may still reveal information about each EUC’s data, such as its dominant attack type, through property-inference [45] or gradient-inversion attacks [46,47], as in conventional FL.

6.3. Future Research Directions

Future work will address the limitations identified above. First, the approach will be validated on commercial and industrial consumption data and on data from real utility deployments with naturally partitioned EUCs and real-world FDI incidents. Second, robustness will be evaluated against optimization-based, gradient-free, and adaptive evasion attacks, together with ways to reduce false alarms without weakening adversarial robustness. Third, privacy-enhancing protection of the shared updates, such as secure aggregation [48] and differential privacy [11,27], will be integrated to mitigate this leakage risk, and its effect on detection performance will be quantified; its additional computational cost is reduced because only the feature-extraction parameters are exchanged. Finally, the approach will be benchmarked against other PFL algorithms under adversarial training.

7. Conclusions

This paper investigated how utilities can collaboratively detect false consumption reports when their data and attack patterns differ. We developed a PFL approach that shares feature-extraction parameters while keeping classification layers local to each utility. Adversarial training was incorporated to strengthen resistance to evasion. The approach keeps raw consumption data at each utility, requires only one detector per participant, and does not rely on a public dataset at the server.
Experiments on Ausgrid and ISET showed that both FL and PFL were vulnerable to FGSM and BIM before adversarial training. After training with adversarial examples, attack success rates decreased substantially, with no successful evasion observed for some personalized detectors under the tested conditions. The defended PFL detectors achieved accuracies of 86.25–97.95% on Ausgrid and 93.06–95.62% on ISET. Their accuracy exceeded that of defended FL by up to 23.75 and 29.82 percentage points, respectively. Sharing only selected parameters also reduced the reported communication quantity by approximately 98.86%.
The benefits of adversarial training came with some loss of classification accuracy, but personalization helped limit this loss for most Ausgrid utilities and all ISET utilities. Overall, sharing only the feature-extraction layers reduced the communication per round by approximately 98.86% while improving detection accuracy over conventional FL and, with adversarial training, increasing robustness against the evaluated evasion attacks. These results show that partial parameter sharing and local personalization offer a practical route to accurate, communication-efficient, and robust FDI detection in heterogeneous smart grids.

Author Contributions

Conceptualization, M.M., I.E., J.N. and T.A.; Methodology, all authors; Software, I.E. and M.B.; Validation, T.A., M.M. and J.N.; Investigation, all authors; Writing—original draft, I.E. and M.B.; Writing—review & editing, all authors; Supervision, T.A. and M.M. All authors have read and agreed to the published version of the manuscript.

Funding

Ongoing Research Funding program, (ORF-2026-1337), King Saud University, Riyadh, Saudi Arabia.

Institutional Review Board Statement

An Institutional Review Board Statement and approval are not needed.

Data Availability Statement

The original data presented in the study are openly available in the Ausgrid Solar Home Electricity dataset [38] and the Irish Smart Energy Trial (ISET) dataset [39].

Acknowledgments

During the preparation of this manuscript/study, the author(s) used ChatGPT, GPT-6 for the purposes of improving the clarity, readability, and overall flow of the English text. The authors have reviewed and edited the output and take full responsibility for the content of this publication.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A. ASR of FGSM and BIM Attacks Launched by EUC2–EUC5 on the ISET Dataset

Figure A1. The A S R of FGSM and BIM attacks launched by EUC_2 using the ISET dataset.
Figure A2. The A S R of FGSM and BIM attacks launched by EUC_3 using the ISET dataset.
Figure A3. The A S R of FGSM and BIM attacks launched by EUC_4 using the ISET dataset.
Figure A4. The A S R of FGSM and BIM attacks launched by EUC_5 using the ISET dataset.

References

  1. Lalit, S. Smart Grid Architecture: An Overview. In Proceedings of the 2025 IEEE International Conference on Power Systems and Smart Grid Technologies (PSSGT); IEEE: New York, NY, USA, 2025; pp. 225–229. [Google Scholar]
  2. Ayad, A.; Bouffard, F. Enabling System Flexibility in Smart Grid Architecture. IEEE Trans. Eng. Manag. 2025, 72, 1892–1908. [Google Scholar] [CrossRef] [Scilit]
  3. Xiao, L.; Chen, H.; Xu, S.; Lv, Z.; Wang, C.; Xiao, Y. Reinforcement learning-based false data injection attacks in smart grids. IEEE Trans. Ind. Inform. 2025, 21, 3475–3484. [Google Scholar] [CrossRef] [Scilit]
  4. Su, X.; Deng, C.; Yang, J.; Li, F.; Li, C.; Fu, Y.; Dong, Z.Y. DAMGAT-based interpretable detection of false data injection attacks in smart grids. IEEE Trans. Smart Grid 2024, 15, 4182–4195. [Google Scholar] [CrossRef] [Scilit]
  5. Miao, K.; Zhang, M.; Guo, F.; Lu, R.; Guan, X. Detection of False Data Injection Attacks in Smart Grids: An Optimal Transport-Based Reliable Self-Training Approach. IEEE Trans. Inf. Forensics Secur. 2024, 20, 709–723. [Google Scholar] [CrossRef] [Scilit]
  6. Elgarhy, I.; Badr, M.M.; Eltoukhy, A.T.; Mahmoud, M.M.E.A.; Alshawi, T.; Alsabaan, M.; Fouda, M.M. Interpretable Detector Secure Against Stealthy False Power Consumption Attacks. IEEE Trans. Netw. Serv. Manag. 2026, 23, 2244–2257. [Google Scholar] [CrossRef] [Scilit]
  7. Xia, P.; Li, J.; Mei, Z.; Xu, S.; Ni, Y. Federated Temporal Collaborative GAN for Electricity Theft Detection with Imbalanced Data. IEEE Internet Things J. 2026, 13, 35095–35108. [Google Scholar] [CrossRef] [Scilit]
  8. Elgarhy, I.; Badr, M.M.; Mahmoud, M.; Fouda, M.M.; Alsabaan, M.; Kholidy, H.A. Clustering and Ensemble Based Approach For Securing Electricity Theft Detectors Against Evasion Attacks. IEEE Access 2023, 11, 112147–112164. [Google Scholar] [CrossRef] [Scilit]
  9. Wen, M.; Xie, R.; Lu, K.; Wang, L.; Zhang, K. FedDetect: A novel privacy-preserving federated learning framework for energy theft detection in smart grid. IEEE Internet Things J. 2021, 9, 6069–6080. [Google Scholar] [CrossRef] [Scilit]
  10. Ashraf, M.M.; Waqas, M.; Abbas, G.; Baker, T.; Abbas, Z.H.; Alasmary, H. Feddp: A privacy-protecting theft detection scheme in smart grids using federated learning. Energies 2022, 15, 6241. [Google Scholar] [CrossRef] [Scilit]
  11. Li, Y.; Wei, X.; Li, Y.; Dong, Z.; Shahidehpour, M. Detection of false data injection attacks in smart grid: A secure federated deep learning approach. IEEE Trans. Smart Grid 2022, 13, 4862–4872. [Google Scholar] [CrossRef] [Scilit]
  12. Badr, M.M.; Mahmoud, M.M.E.A.; Fang, Y.; Abdulaal, M.; Aljohani, A.J.; Alasmary, W.; Ibrahem, M.I. Privacy-Preserving and Communication-Efficient Energy Prediction Scheme Based on Federated Learning for Smart Grids. IEEE Internet Things J. 2023, 10, 7719–7736. [Google Scholar] [CrossRef] [Scilit]
  13. Tariq, A.; Serhani, M.A.; Sallabi, F.M.; Barka, E.S.; Qayyum, T.; Khater, H.M.; Shuaib, K.A. Trustworthy Federated Learning: A Comprehensive Review, Architecture, Key Challenges, and Future Research Prospects. IEEE Open J. Commun. Soc. 2024, 5, 4920–4998. [Google Scholar] [CrossRef] [Scilit]
  14. Zhang, Y.; Zeng, D.; Luo, J.; Fu, X.; Chen, G.; Xu, Z.; King, I. A Survey of Trustworthy Federated Learning: Issues, Solutions, and Challenges. ACM Trans. Intell. Syst. Technol. 2024, 15, 1–47. [Google Scholar] [CrossRef] [Scilit]
  15. Kurakin, A.; Goodfellow, I.J.; Bengio, S. Adversarial examples in the physical world. In Chapman and Hall/CRC Artificial Intelligence Safety and Security; CRC Press: Boca Raton, FL, USA, 2018; pp. 99–112. [Google Scholar]
  16. Goodfellow, I.J.; Shlens, J.; Szegedy, C. Explaining and harnessing adversarial examples. arXiv 2014, arXiv:1412.6572. [Google Scholar]
  17. Madry, A.; Makelov, A.; Schmidt, L.; Tsipras, D.; Vladu, A. Towards Deep Learning Models Resistant to Adversarial Attacks. In Proceedings of the International Conference on Learning Representations, Vancouver, BC, Canada, 30 April–3 May 2018. [Google Scholar]
  18. Bondok, A.H.; Mahmoud, M.; Badr, M.M.; Fouda, M.M.; Abdallah, M.; Alsabaan, M. Novel Evasion Attacks Against Adversarial Training Defense for Smart Grid Federated Learning. IEEE Access 2023, 11, 112953–112972. [Google Scholar] [CrossRef] [Scilit]
  19. Matsuda, K.; Sasaki, Y.; Xiao, C.; Onizuka, M. Benchmark for personalized federated learning. IEEE Open J. Comput. Soc. 2023, 5, 2–13. [Google Scholar] [CrossRef] [Scilit]
  20. Tan, A.Z.; Yu, H.; Cui, L.; Yang, Q. Towards personalized federated learning. IEEE Trans. Neural Netw. Learn. Syst. 2022, 34, 9587–9603. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  21. Pillutla, K.; Malik, K.; Mohamed, A.R.; Rabbat, M.; Sanjabi, M.; Xiao, L. Federated learning with partial model personalization. In Proceedings of the International Conference on Machine Learning; PMLR: New York, NY, USA, 2022; pp. 17716–17758. [Google Scholar]
  22. Arivazhagan, M.G.; Aggarwal, V.; Singh, A.K.; Choudhary, S. Federated learning with personalization layers. arXiv 2019, arXiv:1912.00818. [Google Scholar]
  23. Du, Z.; Yan, Z.; Xu, Y. A dimensional augmentation-based data-driven method for detecting false data injection in smart meters. IEEE Trans. Smart Grid 2023, 15, 1180–1183. [Google Scholar] [CrossRef] [Scilit]
  24. Pan, H.; Feng, X.; Na, C.; Yang, H. A model for detecting false data injection attacks in smart grids based on the method utilized for image coding. IEEE Syst. J. 2023, 17, 6181–6191. [Google Scholar] [CrossRef] [Scilit]
  25. Zhu, J.; Meng, W.; Sun, M.; Yang, J.; Song, Z. FLLF: A fast-lightweight location detection framework for false data injection attacks in smart grids. IEEE Trans. Smart Grid 2023, 15, 911–920. [Google Scholar] [CrossRef] [Scilit]
  26. Kesici, M.; Pal, B.; Yang, G. Detection of false data injection attacks in distribution networks: A vertical federated learning approach. IEEE Trans. Smart Grid 2024, 15, 5952–5964. [Google Scholar] [CrossRef] [Scilit]
  27. Tran, H.Y.; Hu, J.; Yin, X.; Pota, H.R. An efficient privacy-enhancing cross-silo federated learning and applications for false data injection attack detection in smart grids. IEEE Trans. Inf. Forensics Secur. 2023, 18, 2538–2552. [Google Scholar] [CrossRef] [Scilit]
  28. Abdel-Basset, M.; Moustafa, N.; Hawash, H. Privacy-preserved generative network for trustworthy anomaly detection in smart grids: A federated semisupervised approach. IEEE Trans. Ind. Inform. 2022, 19, 995–1005. [Google Scholar] [CrossRef] [Scilit]
  29. Li, H.; Dou, C.; Yue, D.; Hancke, G.P.; Zeng, Z.; Guo, W.; Xu, L. End-edge-cloud collaboration-based false data injection attack detection in distribution networks. IEEE Trans. Ind. Inform. 2023, 20, 1786–1797. [Google Scholar] [CrossRef] [Scilit]
  30. Collins, L.; Hassani, H.; Mokhtari, A.; Shakkottai, S. Exploiting Shared Representations for Personalized Federated Learning. In Proceedings of the 38th International Conference on Machine Learning (ICML), Proceedings of Machine Learning Research, Virtual, 18–24 July 2021; Volume 139, pp. 2089–2099. [Google Scholar]
  31. Li, T.; Hu, S.; Beirami, A.; Smith, V. Ditto: Fair and Robust Federated Learning Through Personalization. In Proceedings of the 38th International Conference on Machine Learning (ICML), Proceedings of Machine Learning Research, Virtual, 18–24 July 2021; Volume 139, pp. 6357–6368. [Google Scholar]
  32. Cao, K.; Cui, Y.; Xu, R.; Sun, Y.; Liu, Z.; Tan, C. Personalized Federated Learning for Green Industrial IoT. IEEE Trans. Ind. Inform. 2025, 21, 6114–6125. [Google Scholar] [CrossRef] [Scilit]
  33. Yang, Z.; Xia, W.; Lu, Z.; Chen, Y.; Li, X.; Zhang, Y. Hypernetwork-Based Physics-Driven Personalized Federated Learning for CT Imaging. IEEE Trans. Neural Netw. Learn. Syst. 2025, 36, 3136–3150. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  34. Molaei, S.; Thakur, A.; Clifton, L.; Soltan, A.; Schwab, P.; Belgrave, D.; Branson, K.; Clifton, D.A. Learning Across the Divide: Personalised Federated Learning for Robust Clinical Modelling Under Data-View Heterogeneity. IEEE J. Biomed. Health Inform. 2026, 30, 2000–2009. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  35. Chen, M.; Xie, G.; Yu, Y.; Zeng, C.; Xu, Z.; Li, Y.; Li, Y. Detection of False Data Injection Attacks on Distributed Energy Resources Integration into Distribution Networks. Recent Adv. Electr. Electron. Eng. 2025, 18, 490–500. [Google Scholar] [CrossRef] [Scilit]
  36. Lv, M.; Zheng, R.J.; Zhu, J.; Dong, Y.S.; Wu, Q.; Zhao, X.H. Personalized Federated Learning for Detecting False Data Injection Attacks in Power Grids. Concurr. Comput. Pract. Exp. 2026, 38, e70543. [Google Scholar] [CrossRef] [Scilit]
  37. Elgarhy, I.; El-Toukhy, A.T.; Badr, M.M.; Mahmoud, M.; Fouda, M.M.; Alsabaan, M.; Kholidy, H.A. Secured Cluster-Based Electricity Theft Detectors Against Blackbox Evasion Attacks. In Proceedings of the 2024 IEEE 21st Consumer Communications & Networking Conference (CCNC), Las Vegas, NV, USA, 6–9 January 2024; pp. 333–338. [Google Scholar] [CrossRef] [Scilit]
  38. Ratnam, E.L.; Weller, S.R.; Kellett, C.M.; Murray, A.T. Residential load and rooftop PV generation: An Australian distribution network dataset. Int. J. Sustain. Energy 2017, 36, 787–806. [Google Scholar] [CrossRef] [Scilit]
  39. Commission for Energy Regulation (CER). CER Smart Metering Project—Electricity Customer Behaviour Trial, 2009–2010 [Dataset], 1st ed.; Irish Social Science Data Archive: Dublin, Ireland, 2012; Available online: https://ieeexplore.ieee.org/document/11170414 (accessed on 15 August 2024).
  40. Zheng, Z.; Yang, Y.; Niu, X.; Dai, H.N.; Zhou, Y. Wide and Deep Convolutional Neural Networks for Electricity-Theft Detection to Secure Smart Grids. IEEE Trans. Ind. Inform. 2018, 14, 1606–1615. [Google Scholar] [CrossRef] [Scilit]
  41. Jokar, P.; Arianpoo, N.; Leung, V.C. Electricity theft detection in AMI using customers’ consumption patterns. IEEE Trans. Smart Grid 2015, 7, 216–226. [Google Scholar] [CrossRef] [Scilit]
  42. Hanley, J.A.; Lippman-Hand, A. If Nothing Goes Wrong, Is Everything All Right? Interpreting Zero Numerators. JAMA 1983, 249, 1743–1745. [Google Scholar] [CrossRef] [Scilit]
  43. Carlini, N.; Athalye, A.; Papernot, N.; Brendel, W.; Rauber, J.; Tsipras, D.; Goodfellow, I.; Madry, A.; Kurakin, A. On Evaluating Adversarial Robustness. arXiv 2019, arXiv:1902.06705. [Google Scholar]
  44. Athalye, A.; Carlini, N.; Wagner, D. Obfuscated Gradients Give a False Sense of Security: Circumventing Defenses to Adversarial Examples. In Proceedings of the 35th International Conference on Machine Learning (ICML), Proceedings of Machine Learning Research, Stockholm, Sweden, 10–15 July 2018; Volume 80, pp. 274–283. [Google Scholar]
  45. Melis, L.; Song, C.; De Cristofaro, E.; Shmatikov, V. Exploiting Unintended Feature Leakage in Collaborative Learning. In Proceedings of the IEEE Symposium on Security and Privacy (SP), San Francisco, CA, USA, 19–23 May 2019; pp. 691–706. [Google Scholar]
  46. Zhu, L.; Liu, Z.; Han, S. Deep Leakage from Gradients. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), Vancouver, BC, Canada, 8–14 December 2019; Volume 32. [Google Scholar]
  47. Geiping, J.; Bauermeister, H.; Dröge, H.; Moeller, M. Inverting Gradients—How Easy Is It to Break Privacy in Federated Learning? In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), Vancouver, BC, Canada, 6–12 December 2020; Volume 33, pp. 16937–16947. [Google Scholar]
  48. Bonawitz, K.; Ivanov, V.; Kreuter, B.; Marcedone, A.; McMahan, H.B.; Patel, S.; Ramage, D.; Segal, A.; Seth, K. Practical Secure Aggregation for Privacy-Preserving Machine Learning. In Proceedings of the ACM SIGSAC Conference on Computer and Communications Security (CCS), Dallas, TX, USA, 30 October–3 November 2017; pp. 1175–1191. [Google Scholar]
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.