Abstract
Data-driven modeling and machine learning are widely used to model the behavior of dynamic systems. One application is the residual evaluation of technical systems where model predictions are compared with measurement data to create residuals for fault diagnosis applications. While recurrent neural network models have been shown capable of modeling complex non-linear dynamic systems, they are limited to fixed steps discrete-time simulation. Modeling using neural ordinary differential equations, however, make it possible to evaluate the state variables at specific times, compute gradients when training the model and use standard numerical solvers to explicitly model the underlying dynamic of the time-series data. Here, the effect of solver selection on the performance of neural ordinary differential equation residuals during training and evaluation is investigated. The paper includes a case study of a heavy-duty truck's after-treatment system to highlight the potential of these techniques for improving fault diagnosis performance.
Introduction
In complex engineering systems, such as a heavy-duty truck's exhaust after-treatment system, early fault detection is critical for maintaining performance and meeting emissions standards. A common diagnostic approach involves generating "residuals"—the difference between a mathematical model's prediction and actual sensor measurements. Significant deviations in these residuals indicate potential system faults.
Traditional discrete-time Recurrent Neural Networks (RNNs) are often used for modeling these dynamics. However, Neural Ordinary Differential Equations (NODEs) have emerged as a powerful alternative, capable of modeling continuous-time dynamics. Unlike standard RNNs, NODEs require a numerical solver to integrate state variables over time. This paper investigates the trade-offs between different numerical solvers—Euler, Midpoint, and Runge-Kutta 4 (RK4)—and their impact on the reliability and stability of fault diagnosis models.
Methodology: Neural ODEs and Solver Selection
The researchers adopted a "grey-box" modeling approach, where physical insights inform the neural network's structure. The system is modeled using two neural network components: $\hat{g}$, which approximates the system dynamics (the derivative of the state $\dot{x}$), and $\hat{h}$, which maps states and inputs to the output $y$.
The study evaluates three fixed-step explicit solvers:
- Euler (EF): A first-order method, computationally efficient but less precise.
- Midpoint (MP): A second-order method providing a balance of speed and accuracy.
- Runge-Kutta 4 (RK4): A fourth-order method, offering high accuracy at a higher computational cost.
A key focus of the research was "cross-evaluation," where models trained with one solver were tested using others to assess robustness and the phenomenon of "solver overfitting."
Case Study: Truck After-treatment System
The methods were validated using real-world data from a heavy-duty truck's urea-based exhaust gas after-treatment system. This system includes components like filters, pumps, and dosing units, which are prone to clogging faults.
The dataset comprised:
- Nominal Data: 6,900 samples of fault-free operation for training and validation.
- Fault Scenarios: 2,300 samples for each of three clogging faults: pre-dosing unit, post-dosing unit (orifice), and post-pump.
Key Insights and Results
Solver Overfitting and the Stability Trap
The research revealed that models become "tuned" to the specific numerical artifacts of the solver used during training. A model trained with a low-order Euler solver does not automatically gain accuracy when switched to a higher-order RK4 solver during inference.
More critically, a "stability trap" was identified: models trained with high-order solvers (like RK4) can become unstable and diverge if evaluated with a lower-order solver (like Euler). This occurs because high-order training allows the model's poles to reside in regions that are stable for RK4 but outside the stability region for Euler. Conversely, training with a simple Euler solver results in a more robust model that is less likely to diverge, though it suffers from higher prediction errors.
Performance Metrics
- Accuracy: Higher-order solvers (MP and RK4) achieved validation losses nearly an order of magnitude lower than the Euler method. For instance, RK4 achieved a loss of $0.8 \times 10^{-5}$ compared to $7.8 \times 10^{-5}$ for EF in specific residual tests.
- Transient Response: Higher-order solvers are significantly better at tracking rapid system changes (transients). Inaccurate tracking of these spikes can lead to "noisy" residuals and false alarms in diagnostic systems.
- Diagnostic Capability: Despite numerical differences, all solvers successfully distinguished between nominal and faulty states, provided the solver remained consistent between training and evaluation.
Conclusion
While higher-order solvers offer superior precision for modeling complex dynamics, they introduce risks of instability if the deployment environment differs from the training setup. For onboard systems like a truck's ECU, where fixed-step solvers are mandatory, choosing a solver that balances robustness and precision is vital. Future work will explore implicit solvers for "stiff" equations and deeper mathematical analyses of RNN stability regions to prevent divergence in real-time applications.
Summary updated