Abstract
Electrical power systems play a critical role in spacecraft and aircraft. This paper discusses our development of a diagnostic capability for an electrical power system testbed, ADAPT, using probabilistic techniques. In the context of ADAPT, we present two challenges, regarding modelling and real-time performance, often encountered in real-world diagnostic applications. To meet the modelling challenge, we discuss our novel high-level specification language which supports autogeneration of Bayesian networks. To meet the real-time challenge, we compile Bayesian networks into arithmetic circuits. Arithmetic circuits typically have small footprints and are optimized for the real-time avionics systems found in spacecraft and aircraft. Using our approach, we present how Bayesian networks with over 400 nodes are auto-generated and then compiled into arithmetic circuits. Using real-world data from ADAPT as well as simulated data, we obtain average inference times smaller than one millisecond when computing diagnostic queries using arithmetic circuits that model our real-world electrical power system.
Introduction
Electrical Power Systems (EPS) are the lifeblood of spacecraft and aircraft, powering critical functions from life support to propulsion. Rapid identification of component failures or sensor glitches is essential for mission safety. However, real-world EPS diagnosis faces two primary hurdles:
- The Modeling Challenge: EPS exhibit a complex mix of deterministic behaviors (e.g., binary switch states) and probabilistic uncertainties (e.g., sensor noise, component degradation). Manually constructing Bayesian networks (BNs) for systems with hundreds of components is error-prone and difficult to maintain.
- The Real-Time Reasoning Challenge: Aerospace systems operate on Hard Real-Time Operating Systems (RTOS), requiring guaranteed Worst-Case Execution Times (WCET). Standard Bayesian inference is NP-hard, and common algorithms often exhibit high variance in execution time, making them unsuitable for safety-critical flight software.
Methodology
The proposed framework utilizes a three-stage pipeline to bridge the gap between complex probabilistic modeling and embedded deployment.
High-Level Specification and BN Generation
A domain-specific language allows engineers to describe EPS topology and failure probabilities succinctly. A compiler then transforms this specification into a Bayesian network. For the ADAPT testbed, this results in a BN with over 400 nodes representing health states, sensors, and commands.
Arithmetic Circuit Compilation
To satisfy real-time constraints, the BN is compiled offline into an Arithmetic Circuit (AC). An AC is a directed acyclic graph where nodes represent simple additions or multiplications. This compilation process exploits "local structure" and determinism within the electrical system to significantly reduce the circuit's size.
Online Inference
At runtime, the diagnostic engine evaluates the AC using real-time sensor data. This process is extremely fast, has a minimal memory footprint, and provides a predictable execution time, which is crucial for bounding the WCET in an RTOS environment.
Experimental Setup
The system was evaluated using the ADAPT (Advanced Diagnostics and Prognostics Testbed) at NASA Ames Research Center.
- Real-World Data: Seven fault scenarios from ADAPT hardware (relay, sensor, and inverter failures) were tested.
- Simulated Data: 200 simulated evidence sets were generated to compare the performance of different inference algorithms at scale.
Results
The framework demonstrated high accuracy and exceptional performance:
- Diagnostic Accuracy: The system correctly identified the root cause in all seven real-world fault scenarios.
- Inference Speed: Average inference time was less than one millisecond on standard hardware.
- Comparative Performance: On simulated data, the AC approach was 75x faster than Variable Elimination (VE) and 14x faster than Clique Tree Propagation (CTP).
- Scalability: The approach successfully managed BNs with over 400 nodes, a scale typically challenging for exact inference in real-time settings.
Conclusion
By combining automated Bayesian network generation with arithmetic circuit compilation, this framework provides a robust solution for real-time EPS diagnosis. While current work focuses on discrete variables and static topologies, the sub-millisecond inference times and predictable execution profiles represent a significant step toward deploying advanced probabilistic diagnostics in safety-critical aerospace environments.
Summary updated