Submitted:
08 August 2025
Posted:
13 August 2025
You are already at the latest version
Abstract

Keywords:
1. Introduction
- We develop a hybrid neuro-symbolic architecture that integrates symbolic safety rules into the neural control pipeline for grid applications.
- We mathematically formulate the autonomous decision-making problem under explainability constraints and operational objectives.
- We validate the framework in a simulated smart grid environment and demonstrate its superiority over baseline deep learning methods in terms of both performance and interpretability.
2. Related Work
3. System Model
3.1. Autonomous Grid Architecture

3.2. Control Action Space and Actuators
- = reactive power control signals for capacitor banks.
- , = active/reactive setpoints for battery storage units.
3.3. Symbolic Knowledge and Safety Constraints
3.4. Closed-Loop Dynamics
3.5. Explainability Layer
4. Problem Formulation
4.1. Decision-Making Objective
4.2. Cost Function Design
4.3. Symbolic Rule Embedding
- As hard constraints: the agent can only select actions in .
- Or as soft penalties: rule violations are penalized via an additional term in the cost function.
4.4. Neuro-Symbolic Policy Learning
- A deep neural network generates action proposals.
- A symbolic verifier filters or corrects proposals that violate .
5. Proposed Neuro-Symbolic Framework
5.1. Framework Overview
- Perception Layer: Collects grid states from sensors, including bus voltages, power injections, and device statuses.
- Neural Policy Layer: A deep neural network maps input states to continuous control actions .
- Symbolic Verifier: Enforces symbolic rules by validating and projecting to a compliant action .
- Explanation Generator: Logs activated rules and generates an explanation trace for each control action.
5.2. Neural Policy Approximation
5.3. Symbolic Reasoning and Constraints
5.4. Symbolic Projection Operator
5.5. Explainability Trace
5.6. Algorithm: NSAI Decision Process
| Algorithm 1:Neuro-Symbolic Grid Decision Process |
|
5.7. Training Procedure
6. Case Studies and Experimental Setup
6.1. Simulation Environment
- Grid modeling: OpenDSS (by EPRI) was used as the power flow simulator to model real-time distribution system behavior, including voltage regulation, reactive power flow, and capacitor switching.
- Neural and symbolic agent: Python 3.10 was used to develop the NSAI agent, with PyTorch for the deep learning component and `PyKEEN`/`pyDatalog` for symbolic reasoning.
- Co-simulation engine: OpenDSSDirect.py provided API-based interaction between the grid state and the decision-making agent in closed-loop fashion with 1-minute time resolution.
6.2. Test Network Description
- 4 PV-based DERs with stochastic output profiles
- 2 battery energy storage systems (BESS)
- 3 switched capacitor banks with discrete reactive injection settings
- Voltage sensors and control actuation at all buses with time resolution of 1 minute
6.3. Control Objectives and Symbolic Constraints
- Rule R1 (Undervoltage response):
- Rule R2 (DER limit enforcement):
- Rule R3 (Inverter cycling constraint):
6.4. Baseline Methods
- DNN-based Controller (Black-box): A conventional deep neural network trained via reinforcement learning without symbolic integration.
- Rule-Based Controller: A traditional rule-based voltage controller using fixed logic without adaptive learning.
- Hybrid Fuzzy-RL Controller: A fuzzy logic-enhanced actor-critic controller trained with handcrafted membership functions.
6.5. Evaluation Metrics
-
Voltage Deviation (VD):Measures mean squared deviation from the nominal voltage profile.
-
Switching Effort (SE):Captures the actuation cost and smoothness of control.
-
Power Loss (PL):Total network active power loss.
-
Symbolic Compliance Rate (SCR):Measures the proportion of active symbolic rules satisfied at each time step.
6.6. Simulation Scenarios
- Scenario A (Nominal Load, High PV Variability): Simulates high DER uncertainty with stable loads.
- Scenario B (Dynamic Load, Moderate PV): Includes peak demand hours and off-peak cycling, with moderate DER fluctuations.
7. Results and Interpretation
7.1. Voltage Profile Regulation
7.2. Control Smoothness and Switching Effort
7.3. Symbolic Rule Compliance
7.4. Power Loss Evaluation
7.5. Explanation Trace Logging
7.6. Aggregate Performance Summary
- Voltage regulation: Achieves the lowest average voltage deviation ( p.u.), indicating high control accuracy.
- Switching effort: Maintains a moderate actuation rate ( control events per interval), preventing excessive mechanical wear while ensuring responsiveness.
- Energy efficiency: Produces the lowest cumulative active power loss (134.2 kW), highlighting optimal reactive power coordination.
- Symbolic compliance: Sustains the highest rule adherence rate (97.4%), validating real-time safety enforcement and regulatory alignment.
7.7. Symbolic Reasoning Dynamics: Rule Activation Heatmap
7.8. Pareto Analysis: Accuracy vs. Smoothness Trade-off
7.9. Robustness Analysis: Voltage Response to Disturbance
7.10. Cumulative Control Cost Evaluation
7.11. Explanation Fidelity Score Over Time
8. Discussion
- High control accuracy: Demonstrated by minimal voltage deviation across dynamic and disturbed scenarios.
- Actuator longevity: Achieved through moderated switching effort, reducing mechanical wear and control instability.
- Transparent decision-making: Evidenced by near-perfect symbolic compliance rates and high explanation fidelity scores.
9. Conclusions
- A hybrid decision-making architecture that fuses data-driven adaptability with rule-based interpretability.
- A symbolic projection mechanism that enforces operational constraints in real time.
- Quantitative metrics for explainability, including explanation traceability and semantic fidelity.
- Empirical validation on multi-objective performance using realistic smart grid scenarios.
Future Work
- Hardware-in-the-Loop (HIL) and Real-Time Deployment: Future work will involve deploying the NSAI framework in real-time environments using hardware-in-the-loop simulation platforms. This will validate control latency, actuator responsiveness, and system integration fidelity under field-realistic timing constraints.
- Formal Verification of Symbolic Logic: The safety-critical nature of power systems warrants formal guarantees. Future studies will investigate automated verification of the symbolic rule set using logic programming, model checking, and satisfiability modulo theories (SMT) to ensure correctness and safety under all admissible conditions.
- Federated and Distributed NSAI Architectures: Extending the NSAI framework to multi-agent settings will allow distributed energy resources (DERs) and substations to coordinate through federated symbolic-neural policies. This includes the development of privacy-preserving inference and decentralized symbolic rule sharing.
- Adaptive Rule Learning and Symbol Induction: While current rules are domain-expert defined, future directions include integrating inductive logic programming (ILP) or program synthesis to learn new symbolic rules from high-dimensional data, enabling the system to evolve its symbolic reasoning over time.
- Robustness under Adversarial and Fault Conditions: Exploring the behavior of NSAI under adversarial perturbations, cyber-physical anomalies, and communication faults will be critical for ensuring its deployment in real-world smart grid infrastructures.
- Human-in-the-Loop and Operator Collaboration: Further research will incorporate human feedback loops for rule tuning, decision override, and interactive explanation, bridging machine autonomy with human oversight in critical grid operations.
Appendix A: Control Cost Function and Weighting Coefficients
Appendix B: Controller Configuration Parameters
| Parameter | Value / Description |
|---|---|
| Neural Network Layers | 2 hidden layers, 64 units each |
| Activation Function | ReLU |
| Learning Rate | |
| Replay Buffer Size | samples |
| Batch Size | 64 |
| Symbolic Rule Set | 3 core rules (voltage, inverter limits, cycling) |
| Symbolic Projection Frequency | Every control step |
Appendix C: NSAI Control Loop Pseudocode
| Algorithm C1 NSAI-Based Voltage Control Loop |
|
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]
- Ali, S.S.; Choi, B.J. State-of-the-art artificial intelligence techniques for distributed smart grids: A review. Electronics 2020, 9, 1030. [Google Scholar] [CrossRef]
- Şahin, E.; Arslan, N.N.; Özdemir, D. Unlocking the black box: an in-depth review on interpretability, explainability, and reliability in deep learning. Neural Computing and Applications 2025, 37, 859–965. [Google Scholar] [CrossRef]
- Dwivedi, R.; Dave, D.; Naik, H.; Singhal, S.; Omer, R.; Patel, P.; Ranjan, R. Explainable AI (XAI): Core ideas, techniques, and solutions. ACM Computing Surveys 2023, 55, 1–33. [Google Scholar] [CrossRef]
- Sinha, S.; Lee, Y.M. Challenges with developing and deploying AI models and applications in industrial systems. Discover Artificial Intelligence 2024, 4, 55. [Google Scholar] [CrossRef]
- Bhuyan, B.P.; Ramdane-Cherif, A.; Tomar, R.; Singh, T.P. Neuro-symbolic artificial intelligence: a survey. Neural Computing and Applications 2024, 36, 12809–12844. [Google Scholar] [CrossRef]
- 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]
- Miraftabzadeh, S.M.; Di Martino, A.; Longo, M.; Zaninelli, D. Deep learning in power systems: A bibliometric analysis and future trends. IEEE Access, 2024; in press. [Google Scholar]
- Javed, H.; Eid, F.; El-Sappagh, S.; Abuhmed, T. Sustainable energy management in the AI era: a comprehensive analysis of ML and DL approaches. Computing 2025, 107, 132. [Google Scholar] [CrossRef]
- Machlev, R.; Heistrene, L.; Perl, M.; Levy, K.Y.; Belikov, J.; Mannor, S.; Levron, Y. Explainable Artificial Intelligence (XAI) techniques for energy and power systems: Review, challenges and opportunities. Energy and AI 2022, 9, 100169. [Google Scholar] [CrossRef]
- Parisineni, S.R.A.; Pal, M. Enhancing trust and interpretability of complex machine learning models using local interpretable model agnostic shap explanations. International Journal of Data Science and Analytics 2024, 18, 457–466. [Google Scholar] [CrossRef]
- Zilberman, J. An Analysis of Evolutionary Methodology for Interpretable Logical Fuzzy Rule-Based Systems. Journal of Biomedical and Sustainable Healthcare Applications 2023, 3, 066–075. [Google Scholar] [CrossRef]
- SS Júnior, J.; Mendes, J.; Souza, F.; Premebida, C. Survey on deep fuzzy systems in regression applications: A view on interpretability. International Journal of Fuzzy Systems 2023, 25, 2568–2589. [Google Scholar] [CrossRef]
- Sathya, D.; Saravanan, G.; Thangamani, R. Fuzzy logic and its applications in mechatronic control systems. In Computational Intelligent Techniques in Mechatronics; Springer, 2024; pp. 211–241.
- Ferry, J.; Laberge, G.; Aïvodji, U. Learning hybrid interpretable models: Theory, taxonomy, and methods. arXiv 2023, arXiv:2303.04437. [Google Scholar]
- Bougzime, O.; Jabbar, S.; Cruz, C.; Demoly, F. Unlocking the Potential of Generative AI through Neuro-Symbolic Architectures: Benefits and Limitations. arXiv 2025, arXiv:2502.11269. [Google Scholar]
- Bougzime, O.; Cruz, C.; André, J.C.; Zhou, K.; Qi, H.J.; Demoly, F. Neuro-symbolic artificial intelligence in accelerated design for 4D printing: Status, challenges, and perspectives. Materials & Design 2025, p. 113737.
- Tian, R.; Cui, M.; Chen, G. A Neural-Symbolic Network for Interpretable Fault Diagnosis of Rolling Element Bearings Based on Temporal Logic. IEEE Transactions on Instrumentation and Measurement 2024, 73, 3515614. [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/).