NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Cyber Attacks Prevention Toward Prosumer-Based EV Charging Stations: An Edge-Assisted Federated Prototype Knowledge Distillation Approach

Luyao Zou, Quang Hieu Vo, Kitae Kim, Huy Q. Le, Chu Myaet Thwal, Chaoning Zhang, Choong Seon Hong

Abstract

As electric vehicle (EV) infrastructure expands, prosumer-based charging stations (EVCSs)—which both consume and produce energy—have emerged as critical yet vulnerable nodes in the power grid. This paper presents E-FPKD, an edge-assisted federated learning framework designed to detect cyber-attacks such as DDoS and energy theft. By integrating Knowledge Distillation (KD) and Prototype Aggregation (PA), E-FPKD addresses the challenges of data privacy, network heterogeneity (non-IID data), and computational constraints at the edge. Experimental results across three benchmark datasets demonstrate that E-FPKD significantly outperforms traditional federated learning methods in detection accuracy and robustness.

The Vulnerability of Prosumer-based EV Charging Stations

Prosumer-based EVCSs are becoming essential components of the modern smart grid, often integrating local renewable energy sources like solar panels. However, their reliance on smart meters and interconnected communication networks makes them frequent targets for cyber-attacks. These attacks can lead to significant economic losses and grid instability.

Detecting these threats is complicated by three primary factors:

  1. Privacy Concerns: Prosumers are reluctant to share raw network traffic data with central authorities due to privacy risks.
  2. Data Heterogeneity (Non-IID): Every charging station exhibits unique traffic patterns, making centralized, "one-size-fits-all" models ineffective.
  3. Blurred Boundaries: The distinction between benign and malicious traffic is often subtle, leading to high false-alarm rates in traditional systems.
System architecture of prosumer-based EVCS and the threat model.

The E-FPKD Framework: Privacy-Preserving Detection at the Edge

The proposed Edge-assisted Federated Prototype Knowledge Distillation (E-FPKD) approach introduces a multi-stage workflow to secure the edge environment without compromising data privacy.

1. Feature Selection and Preprocessing

To reduce computational overhead on edge devices, the system employs the Pearson Correlation Coefficient (PCC) to identify and retain only the most critical network traffic features. This preprocessing step ensures that the models focus on the most informative data points.

2. Local Teacher-Student Architecture

Each Dedicated Local Edge Server (DLES) hosts a dual-network architecture. A pre-trained "Teacher" network guides a "Student" network via Knowledge Distillation (KD). This allows the local student model to adapt specifically to the unique traffic environment of its associated prosumer while benefiting from generalized knowledge.

3. Prototype Aggregation (PA)

Instead of transmitting massive model weights—a common bottleneck in standard Federated Learning—clients share "prototypes." These are mean embedding vectors representing different traffic classes (e.g., "Normal" vs. "Attack"). The central server aggregates these into global prototypes, which are then used to regularize local training, effectively handling non-IID data distributions.

The multi-stage workflow of the proposed E-FPKD approach.

4. Model Fusion and Intervention

Unlike standard prototype methods, E-FPKD performs a final model weight aggregation round. This creates a robust global model that new clients can use immediately. Once an attack is detected, a rule-based intervention logic at the edge blocks the malicious traffic in real-time.

Experimental Results and Key Insights

The framework was evaluated using three benchmark datasets: NSL-KDD, UNSW-NB15, and IoTID20, with non-IID characteristics simulated via a Dirichlet Distribution.

  • Superior Accuracy: On the IoTID20 dataset, E-FPKD achieved a binary classification accuracy of 95.81%, outperforming standard FedAvg (90.15%). In multi-class scenarios, its Overall Detection Correctness (ODC) was 4.44% higher than competing methods like FedProto.
  • Enhanced Privacy: Sharing class-level prototypes is inherently more secure than sharing full model gradients, as it significantly complicates model inversion attacks by adversaries.
  • Scalability: The system maintained high performance as the network scaled from 10 to 50 clients, proving its viability for large-scale infrastructure deployment.

Conclusion and Future Work

E-FPKD provides a robust, privacy-preserving solution for securing the growing network of prosumer-based EV charging stations. While highly effective, the current reliance on supervised learning (labeled data) presents a challenge for detecting "zero-day" attacks. Future research will focus on integrating unsupervised learning techniques and advanced privacy-enhancing technologies like Differential Privacy to further harden the system against sophisticated threats.

Summary updated

BibTeX
@article{zou2025cyber,
  author = {Luyao Zou and Quang Hieu Vo and Kitae Kim and Huy Q. Le and Chu Myaet Thwal and Chaoning Zhang and Choong Seon Hong},
  title = {{Cyber Attacks Prevention Toward Prosumer-Based EV Charging Stations: An Edge-Assisted Federated Prototype Knowledge Distillation Approach}},
  journal = {IEEE Trans. Netw. Serv. Manag.},
  year = {2025},
  doi = {10.1109/tnsm.2024.3517621},
}
Figure