Submitted:
05 July 2025
Posted:
07 July 2025
You are already at the latest version
Abstract

Keywords:
1. Introduction
- Formulation of a mathematically rigorous optimization problem for distributed cybersecurity, integrating federated learning and quantum variational models under real-world constraints.
- Development of a scalable and hardware-feasible FQML framework, incorporating robust aggregation, privacy-preserving parameter exchange, and quantum circuit design tailored to near-term devices.
- Comprehensive experimental validation using simulated smart grid data and attack scenarios, demonstrating significant gains in detection accuracy, communication efficiency, and adversarial robustness over classical federated and centralized baselines.
2. Related Work
2.1. Cybersecurity in Energy Systems
2.2. Federated Learning for Critical Infrastructure Security
2.3. Quantum Machine Learning in Network Security
2.4. Federated Quantum Learning and Identified Research Gaps
- Privacy-Preserving Integration: Federated learning frameworks are predominantly classical. The implications of integrating quantum components within privacy-sensitive federated settings, particularly in compliance with differential privacy or homomorphic encryption standards, are not yet fully understood.
- Quantum-Enhanced Aggregation: Most FL systems use classical aggregation methods such as weighted averaging. The use of quantum-native techniques for secure and efficient aggregation remains largely unexplored and may offer new forms of robustness and compression.
- Robustness and Resilience: Quantum-enhanced federated systems must be designed to withstand adversarial threats such as Byzantine behavior, data poisoning, and inference attacks. Existing methods lack formal treatment of these threats in hybrid quantum-classical environments.
3. System and Threat Model
3.1. Multi-Agent Energy System Architecture
3.2. Communication Topologies
3.3. Attacker Capabilities and Goals
3.4. Security and Privacy Assumptions
4. Problem Formulation
4.1. Notation and Preliminaries
4.2. Learning Objective
4.3. Quantum Federated Learning Constraints
4.3.0.1. Quantum Resource Constraints:
4.3.0.2. Communication Bandwidth Constraints:
4.3.0.3. Latency Constraints:
4.3.0.4. Privacy Preservation Constraints:
4.4. Robustness Under Adversarial Conditions
5. Federated Quantum ML Framework
5.1. Architectural Overview and Workflow Diagram
- (1)
- Local Quantum Training at individual agents.
- (2)
- Secure, Privacy-Preserving Aggregation of updates.
- (3)
- Robustness Enforcement against adversarial attacks.
5.2. Local Quantum Model Design
5.3. Privacy-Preserving Federated Aggregation
5.4. Robustness Mechanisms
5.5. Convergence Criterion and Quantum-Classical Integration
6. Implementation and Experimental Setup
6.1. Simulation Environment
- Processor: Intel Core i9-11900K CPU (8 cores, 16 threads)
- Memory: 64 GB DDR4
- Quantum Simulator: Qiskit Aer (statevector simulator)
6.2. Dataset and Attack Scenarios
- Number of agents:
- Total samples: , distributed equally ( per agent)
- Feature dimension:
- False Data Injection (FDI)
- Denial-of-Service (DoS)
- Coordinated Multi-Agent Attacks
6.3. Quantum Hardware and Circuit Configuration
- Qubits:
- Max circuit depth:
- Encoding: Amplitude encoding
- Ansatz: Hardware-efficient with rotations and CNOT entanglements
- Optimizer: ADAM with learning rate
6.4. Federated Aggregation and Privacy Setup
- Bandwidth limit:
- Aggregation latency:
6.5. Robustness Measures and Byzantine Agents
- Number of adversarial agents:
- Aggregation: Trimmed mean, excluding top/bottom t updates.
6.6. Evaluation Metrics
- Communication Overhead: average model size transmitted per round
- Quantum Utilization: qubits and circuit depth usage
6.7. Training Procedure and Convergence Criteria
- Federated rounds:
- Local epochs per round:
- Batch size:
- Convergence criterion:
7. Results
7.1. Detection Accuracy under Normal and Adversarial Conditions
7.2. Communication Overhead Analysis
7.3. Quantum Resource Utilization
7.4. Loss Convergence over Federated Rounds
7.5. Robustness Analysis: Accuracy vs. Attack Intensity
7.6. Privacy–Utility Trade-Off: Accuracy vs. Privacy
7.7. Scalability Analysis: Accuracy and Communication Cost vs. Number of Agents
7.8. Ablation Study: Performance Comparison
7.9. Training Time per Round vs. Number of Agents
7.10. Variance of Local Model Performance
7.11. Confusion Matrix: Cyber-Attack Detection
7.12. ROC Curve for Cyber-Attack Detection
7.13. Effect of Quantum Circuit Depth on Detection Accuracy
8. Discussion
8.1. Integration of Privacy, Robustness, and Quantum Acceleration
8.2. Scalability and System-Wide Fairness
8.3. Operational Readiness and Real-Time Capability
8.4. Limitations
- Simulated Quantum Environment: Quantum circuits were simulated in ideal noise-free settings. Realistic quantum hardware may introduce decoherence and gate noise not accounted for here.
- Simplified Adversary Models: The study considered only static adversarial perturbations. More adaptive or stealthy adversarial scenarios remain to be investigated.
- Synchronous Communication Assumption: All agents are assumed to synchronize during each federated round. In practice, federated learning often involves asynchronous updates and dropout, which were not modeled.
9. Conclusions and Future Work
9.1. Conclusions
- The problem of secure anomaly detection in decentralized, federated energy networks was formally modeled. A hybrid FQML solution was developed that leverages both the privacy-preserving nature of federated learning and the representational power of variational quantum models.
- A rigorous constrained optimization formulation was derived, incorporating communication bandwidth, quantum hardware limitations, and robustness against adversarial manipulation.
-
The framework was validated through extensive simulations and demonstrated:
- High detection accuracy () under clean operational conditions.
- Strong resilience to adversarial attacks, with performance degradation limited to .
- Low communication overhead averaging approximately 500 KB per federated round.
- Feasibility on NISQ (Noisy Intermediate-Scale Quantum) devices with circuit depths .
- Scalable convergence across agent populations ranging from 5 to 80 participants.
- Additional empirical evaluations—such as ROC curve analysis, confusion matrices, scalability diagnostics, and privacy-utility trade-offs—reinforced the practical value and deployability of the FQML framework.
9.2. Future Work
- Hardware-Level Validation: The present framework was implemented using quantum simulators. Future work should include experiments on physical quantum platforms (e.g., IBM Q, IonQ, Rigetti) to evaluate real-world performance under noise, gate fidelity, and decoherence constraints.
- Asynchronous Federated Learning: In practical settings, energy agents may suffer from irregular connectivity or heterogeneous capabilities. Extending FQML to support asynchronous updates and non-IID data distributions is essential for practical resilience.
- Quantum Privacy Guarantees: Integration of advanced quantum-native privacy-preserving mechanisms, such as quantum differential privacy and homomorphic encryption, will further fortify confidentiality and defend against stronger adversarial models.
- Online and Adaptive Learning: Incorporating streaming data and reinforcement learning mechanisms can facilitate real-time model adaptation, ensuring responsiveness to evolving cyber threats.
- Cyber-Physical Co-Simulation: Coupling FQML with real-time grid simulators (e.g., OpenDSS, GridLAB-D) would allow integrated testing of both cyber and power system behaviors under simultaneous disturbances, offering a holistic view of system resilience.
Appendix A. Appendix
Appendix A.1. Federated Quantum Machine Learning: Pseudocode
| Algorithm 1:Federated Quantum Machine Learning (FQML) |
|
Appendix A.2. Simulation Configuration Parameters
| Parameter | Value / Setting | Description |
|---|---|---|
| Number of Agents N | 10–80 | Size of the federated learning network (number of clients/participants). |
| Feature Dimensions d | 20 | Dimensionality of each input feature vector used in quantum encoding. |
| Total Dataset Samples | 100,000 | Total size of the synthetic smart grid telemetry dataset. |
| Quantum Circuit Depth | 10 | Maximum layer depth permitted for variational quantum circuits per agent. |
| Qubits per Circuit q | 8 | Number of qubits available to each local quantum model instance. |
| Privacy Budget | 0.1–8.0 | Differential privacy parameter controlling noise magnitude for privacy preservation. |
| Aggregation Rule | Trimmed Mean | Robust aggregation strategy to reduce sensitivity to poisoned or anomalous updates. |
| Learning Rate | 0.01 | Step size used during federated gradient descent updates. |
| Local Training Epochs | 5 | Number of local training passes (epochs) per client per round. |
| Optimizer | ADAM () | Adaptive optimizer used to train variational quantum circuit parameters locally. |
| Simulator | Qiskit Aer (Statevector backend) | Simulation environment for executing quantum circuits under idealized (noiseless) conditions. |
| Host Machine | Intel i9 CPU, 64 GB RAM | Local hardware used to run federated learning and quantum simulations. |
Appendix A3. Additional Implementation Notes
- Quantum Circuit Design: Qiskit, Pennylane
- Federated Learning Simulation: PySyft, TensorFlow Federated
- Secure Aggregation: Custom Python modules implementing trimmed mean and differential privacy
References
- Cavus, M. Advancing Power Systems with Renewable Energy and Intelligent Technologies: A Comprehensive Review on Grid Transformation and Integration. Electronics 2025, 14, 1159. [Google Scholar] [CrossRef]
- Ahmad, T.; Madonski, R.; Zhang, D.; Huang, C.; Mujeeb, A. Data-driven probabilistic machine learning in sustainable smart energy/smart energy systems: Key developments, challenges, and future research opportunities in the context of smart grid paradigm. Renewable and Sustainable Energy Reviews 2022, 160, 112128. [Google Scholar] [CrossRef]
- Diaba, S.Y.; Shafie-khah, M.; Elmusrati, M. Cyber-physical attack and the future energy systems: A review. Energy Reports 2024, 12, 2914–2932. [Google Scholar] [CrossRef]
- Berghout, T.; Benbouzid, M.; Muyeen, S.M. Machine learning for cybersecurity in smart grids: A comprehensive review-based study on methods, solutions, and prospects. International Journal of Critical Infrastructure Protection 2022, 38, 100547. [Google Scholar] [CrossRef]
- Al-Quraan, M.; Mohjazi, L.; Bariah, L.; Centeno, A.; Zoha, A.; Arshad, K.; Imran, M.A. Edge-native intelligence for 6G communications driven by federated learning: A survey of trends and challenges. IEEE Transactions on Emerging Topics in Computational Intelligence 2023, 7, 957–979. [Google Scholar] [CrossRef]
- Mazhar, T.; Irfan, H.M.; Khan, S.; Haq, I.; Ullah, I.; Iqbal, M.; Hamam, H. Analysis of cyber security attacks and its solutions for the smart grid using machine learning and blockchain methods. Future Internet 2023, 15, 83. [Google Scholar] [CrossRef]
- Beltrán, E.T.M.; Pérez, M.Q.; Sánchez, P.M.S.; Bernal, S.L.; Bovet, G.; Pérez, M.G.; Celdrán, A.H. Decentralized federated learning: Fundamentals, state of the art, frameworks, trends, and challenges. IEEE Communications Surveys & Tutorials 2023, 25, 2983–3013. [Google Scholar]
- War, M.R.; Singh, Y.; Sheikh, Z.A.; Singh, P.K. Review on the Use of Federated Learning Models for the Security of Cyber-Physical Systems. Scalable Computing: Practice and Experience 2025, 26, 16–33. [Google Scholar]
- Taghandiki, K. Quantum Machine Learning Unveiled: A Comprehensive Review. Journal of Engineering and Applied Research 2024, 1, 29–48. [Google Scholar]
- Ullah, U.; Garcia-Zapirain, B. Quantum machine learning revolution in healthcare: a systematic review of emerging perspectives and applications. IEEE Access 2024, 12, 11423–11450. [Google Scholar] [CrossRef]
- Franco, N.; Sakhnenko, A.; Stolpmann, L.; Thuerck, D.; Petsch, F.; Rüll, A.; Lorenz, J.M. Predominant aspects on security for quantum machine learning: Literature review. In Proceedings of the 2024 IEEE International Conference on Quantum Computing and Engineering (QCE), Bellevue, WA, USA, September 2024; Vol. 1; pp. 1467–1477. [Google Scholar]
- Ding, J.; Qammar, A.; Zhang, Z.; Karim, A.; Ning, H. Cyber threats to smart grids: Review, taxonomy, potential solutions, and future directions. Energies 2022, 15, 6799. [Google Scholar] [CrossRef]
- Mohanty, A.; Ramasamy, A.K.; Verayiah, R.; Bastia, S.; Dash, S.S.; Cuce, E.; Soudagar, M.E.M. Power system resilience and strategies for a sustainable infrastructure: A review. Alexandria Engineering Journal 2024, 105, 261–279. [Google Scholar] [CrossRef]
- Zhang, C.; Jia, D.; Wang, L.; Wang, W.; Liu, F.; Yang, A. Comparative research on network intrusion detection methods based on machine learning. Computers & Security 2022, 121, 102861. [Google Scholar]
- Si-Ahmed, A.; Al-Garadi, M.A.; Boustia, N. Survey of machine learning based intrusion detection methods for internet of medical things. Applied Soft Computing 2023, 140, 110227. [Google Scholar] [CrossRef]
- Wen, J.; Zhang, Z.; Lan, Y.; Cui, Z.; Cai, J.; Zhang, W. A survey on federated learning: challenges and applications. International Journal of Machine Learning and Cybernetics 2023, 14, 513–535. [Google Scholar] [CrossRef] [PubMed]
- Alhamrouni, I.; Abdul Kahar, N.H.; Salem, M.; Swadi, M.; Zahroui, Y.; Kadhim, D.J.; Alhuyi Nazari, M. A comprehensive review on the role of artificial intelligence in power system stability, control, and protection: Insights and future directions. Applied Sciences 2024, 14, 6214. [Google Scholar] [CrossRef]
- Trivedi, C.; Rao, U.P.; Parmar, K.; Bhattacharya, P.; Tanwar, S.; Sharma, R. A transformative shift toward blockchain-based IoT environments: Consensus, smart contracts, and future directions. Security and Privacy 2023, 6, e308. [Google Scholar] [CrossRef]
- Aouedi, O.; Vu, T.H.; Sacco, A.; Nguyen, D.C.; Piamrat, K.; Marchetto, G.; Pham, Q.V. A survey on intelligent Internet of Things: Applications, security, privacy, and future directions. IEEE Communications Surveys & Tutorials 2024. in press.
- Tychola, K.A.; Kalampokas, T.; Papakostas, G.A. Quantum machine learning—an overview. Electronics 2023, 12, 2379. [Google Scholar] [CrossRef]
- Ranga, D.; Rana, A.; Prajapat, S.; Kumar, P.; Kumar, K.; Vasilakos, A.V. Quantum Machine Learning: Exploring the Role of Data Encoding Techniques, Challenges, and Future Directions. Mathematics 2024, 12, 3318. [Google Scholar] [CrossRef]
- Memon, Q.A.; Al Ahmad, M.; Pecht, M. Quantum computing: navigating the future of computation, challenges, and technological breakthroughs. Quantum Reports 2024, 6, 627–663. [Google Scholar] [CrossRef]















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. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).