Analyzing the coupling process of distributed mixed real-virtual prototypes

Peter Baumann, Lars Mikelsons, Oliver Kotte, Dieter SchrammarXiv 2024 · DOI

Introduction

In modern automotive engineering, testing complex interactions between vehicle subsystems—such as braking and steering—is critical before physical prototypes are finalized. This often involves Hardware-in-the-Loop (HiL) testing, where physical components are integrated with virtual simulations. However, when these components are geographically distributed, network latency introduces time-delays that can degrade simulation accuracy or cause system instability. This paper proposes a novel approach using adaptive feedforward neural networks (FFNN) to compensate for these delays, ensuring stable and accurate co-simulations.

The Latency Problem in Distributed Co-Simulation

Distributed co-simulation allows engineers to connect a simulation on one PC to a test bench in another location. The primary challenge is the round-trip time-delay (latency). Even a delay of a few milliseconds can introduce "coupling errors." In a car's stability control system, for instance, reacting to a sensor signal that is 10ms old might lead to over-correction and simulated crashes. Traditional linear extrapolation methods often fail to handle the high-frequency dynamics or nonlinearities inherent in these systems.

Proposed Methodology: Neural Network Compensation

The authors introduce a two-pronged strategy to mitigate latency. First, they utilize small Neural Network Extrapolators. By employing Leaky ReLU activation functions, these networks can adapt to both linear and nonlinear signal behaviors, effectively "switching" modes to handle complex dynamics.

Second, the system is analyzed using Frequency Domain Analysis. The researchers derived a transfer function for the entire coupling process, enabling the use of classical control theory tools like Bode and Nyquist plots to ensure stability.

Detailed block diagram of the distributed coupling process including sampling, time-delay, and neural network compensation.

To avoid the pitfalls of random initialization, the neural networks are pre-weighted based on the system's known bandwidth. During operation, the network undergoes online training using the Adam optimizer, allowing it to adapt to changing conditions in real-time.

Results and Stability Analysis

The method was evaluated using a "two-mass oscillator" model. In scenarios with a 6ms round-trip delay, the uncompensated system became unstable. The neural network compensator successfully restored stability, bringing the system's behavior back in line with the zero-delay reference.

Bode plot comparing the system response under reference conditions, with time-delay faults, and after neural network compensation.

As shown in the Bode plot, the compensation method (dotted yellow line) closely tracks the reference magnitude and phase (solid blue line) across a wide frequency range, significantly improving upon the uncompensated "faulty" state (dashed red line).

In nonlinear tests involving a mechanical stop—which creates sudden velocity jumps—the adaptive network learned the behavior within approximately 4.5 seconds (one training cycle). Unlike standard linear filters that produce massive overshoots, the neural network eliminated these errors, providing a high-fidelity prediction of the physical state.

Conclusion and Future Work

This research demonstrates that small, adaptive neural networks can effectively stabilize distributed mixed real-virtual prototypes. By combining online machine learning with frequency-domain control theory, the authors provide a robust solution for latency in HiL testing. Future work will focus on addressing variable time-delays (jitter) and packet loss, as well as validating the approach on industrial-scale test benches.

Summary updated

BibTeX
@misc{baumann2024analyzing,
  author = {Peter Baumann and Lars Mikelsons and Oliver Kotte and Dieter Schramm},
  title = {{Analyzing the coupling process of distributed mixed real-virtual prototypes}},
  year = {2024},
  eprint = {2401.11779},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.11779},
}
Figure