labcd · 2026-11-20 · 10 min

Why Mechatronics Labs Are Overhauling System Identification

Standard ARX fits yield high R-squared metrics but mask unstable pole-zero cancellations. Here is how grey-box priors and multisine chirps fix mechatronics plant models.

Technical diagram showing dynamic plant frequency response and mechanical joint identification data

A familiar pattern plays out in mechatronics labs and robotics R&D teams every week. A graduate researcher or controls engineer instruments a flexible manipulator, a high-precision positioning stage, or a direct-drive gimbal. They inject pseudo-random binary sequences, collect input-output data, and feed the time series into an Auto-Regressive with Extra Input (ARX) routine. The resulting discrete-time model achieves a 94 percent fit against validation datasets. The time-domain tracking looks clean on the screen.

Then they synthesize an Model Predictive Control (MPC) or high-gain feedback loop against that estimated transfer function and deploy it to the real hardware. The physical plant vibrates violently, current limits trip on the motor drives, or the closed-loop system drifts into limit cycles.

The problem is not the tuning algorithm. The failure originates in the identification step. Black-box ARX estimators minimize one-step-ahead prediction errors across the full frequency spectrum, often placing fictitious poles and non-minimum phase zeros to cancel high-frequency measurement noise or unmodelled stiction. When feedback tries to invert or stabilize those numerical artifacts, the real physical system destabilizes.

Over the past year, discussions across the control theory community and robotics literature, including Russ Tedrake's underactuated robotics curriculum at MIT and recent precision bench deployments at synchrotron facilities, have highlighted a shift. Mechatronics labs are moving away from blind auto-regressive polynomial fitting. They are rebuilding their system identification toolchains around physical grey-box constraints, energy-conserving priors, and frequency-domain excitation design.

The Mathematical Trap of Equation Error

To understand why standard ARX fails on real mechatronics hardware, look at its noise structure. An ARX model assumes the dynamic system follows the difference equation:

$$A(q) y(t) = B(q) u(t - n_k) + e(t)$$

Here, $q$ is the forward shift operator, $A(q)$ and $B(q)$ are polynomials in $q^{-1}$, and $e(t)$ is assumed to be zero-mean white noise. The structural flaw lies in how the noise enters the equation. Multiplying through by $A(q)^{-1}$ reveals that the true output is modelled as:

$$y(t) = \frac{B(q)}{A(q)} u(t - n_k) + \frac{1}{A(q)} e(t)$$

The ARX structure ties the deterministic plant dynamics directly to the stochastic noise model. Both share the exact same denominator $A(q)$.

In a physical mechatronics test bench, measurement noise from optical encoders, ADC quantization, and resolver ripple enters at the sensor output. It is high-frequency output noise, not equation error driving the internal states. Because the estimator forces the noise filter to be $1/A(q)$, the least-squares solver shifts the plant poles in $A(q)$ to shape the noise spectrum rather than capturing the physical resonances of the mechanism. If the plant contains colored noise or structural anti-resonances, the ARX estimates become biased and statistically inconsistent, even as sample sizes approach infinity.

When engineers use Output-Error (OE) or ARMAX models, they decouple the noise transfer function from the plant transfer function:

$$y(t) = \frac{B(q)}{F(q)} u(t - n_k) + e(t)$$

$$\text{ARMAX: } A(q) y(t) = B(q) u(t - n_k) + C(q) e(t)$$

However, switching to ARMAX or OE removes the convex linear least-squares guarantee of ARX. The optimization surface becomes non-convex. Without tight physical constraints, gradient-based solvers fall into local minima, outputting unstable poles or near-cancelling pole-zero pairs outside the unit circle.

Real Mechatronics Failure Modes: Stiction, Delay, and Flexibility

Real mechatronic plants violate the fundamental assumptions of linear auto-regressive estimation in three distinct ways.

1. Friction Regimes and Stiction

Linear models assume velocity scales linearly with applied torque. In real ball screws, harmonic drives, and linear rails, static friction (stiction), Stribeck effects, and Coulomb friction dominate near zero velocity. A broadband excitation signal that spends substantial time crossing zero velocity generates severe output distortion. An unconstrained ARX fitter interprets this non-linear dead-zone as an artificial phase lag, dragging the estimated low-frequency gain downward and predicting phantom damping that does not exist once the joint breaks away into continuous motion.

2. Stochastic Transport and Communication Delays

EtherCAT cycles, CAN-FD buffers, and real-time operating system jitter introduce non-integer sample delays. If an algorithm fits an integer delay parameter $n_k$ incorrectly, the solver compensates by adding non-minimum phase zeros (zeros in the right-half plane or outside the unit circle). If a subsequent MPC or pole-placement controller uses this identified model, it will refrain from aggressive control action due to false internal delay predictions, or worse, inject phase-destabilizing control kicks.

3. Joint Compliance and Anti-Resonances

Precision motion systems, such as granite motion stages or robotic arms with strain-wave gearing, exhibit structural anti-resonances where mechanical compliance cancels torque transmission at specific notch frequencies. A standard black-box polynomial fit frequently smooths over these sharp anti-resonances to minimize broad mean-squared error. When a feedback controller raises loop gain to improve disturbance rejection at low frequencies, it inadvertently excites unmodelled resonant peaks, driving the plant into limit-cycle oscillation.

Traditional Black-Box Flow (High Risk of Instability):
Raw Plant -> Random Steps -> Unconstrained ARX Fit -> High R^2 -> Controller Synthesis -> Limit Cycles & Vibration

Modern Grey-Box Identification Flow (Physics-Constrained):
Raw Plant -> Chirp/Multisine -> Grey-Box Dynamics + Bounds -> Frequency Audit -> Verifiable Controller Synthesis

Grey-Box Modelling and Energy-Conserving Priors

The fundamental remedy is injecting physical structure into the identification routine before any optimization runs. In robotics and multi-body mechatronics, the plant equations are not arbitrary rational transfer functions. They obey Lagrangian and Hamiltonian mechanics:

$$M(q) \ddot{q} + C(q, \dot{q}) \dot{q} + g(q) = \tau - \tau_f(\dot{q})$$

Modern identification toolchains enforce explicit mathematical priors on these equations:

  • Inertia Matrix Positive-Definiteness: The mass-inertia matrix $M(q)$ must be symmetric and strictly positive-definite ($M(q) \succ 0$) across all allowable configurations. Parameterizing the rigid-body inertial parameters using pseudo-inertia matrices ensures the identified link masses and moments of inertia remain physically realizable.
  • Passivity and Energy Conservation: The matrix $(\dot{M}(q) - 2C(q, \dot{q}))$ must be skew-symmetric. Enforcing this constraint ensures that the identified dynamic model cannot generate fictitious energy out of nothing, eliminating the primary cause of numerical instability during long-horizon MPC simulations.
  • Structured Friction Bounds: Instead of treating friction as equation error, models explicitly separate viscous damping ($F_v \dot{q}$) and Coulomb friction ($F_c \text{sgn}(\dot{q})$) into a deterministic regression matrix, estimating friction coefficients with non-negativity constraints ($F_v \ge 0, F_c \ge 0$).

When structural dynamics, such as flexible drive shafts, are linearized around an operating point, the transfer function is constrained to alternating pole-zero pairs along the imaginary axis, preventing the solver from placing fictitious right-half-plane zeros.

Excitation Design: Multisine and Chirp Sweeps over PRBS

Fitting a grey-box model requires excitation data that systematically isolates system dynamics from sensor noise and non-linearities. Historical reliance on random step sequences or binary noise is being replaced by deterministic, phase-optimized excitation.

Pseudo-random binary sequences (PRBS) have high crest factors (the ratio of peak amplitude to RMS power), which push actuators into saturation and torque limits. Once an actuator saturates, the collected data reflects non-linear drive clipping rather than linear plant dynamics.

Modern mechatronics identification workflows use periodic swept-sine (chirp) or multisine signals:

$$u(t) = \sum_{k=1}^{N} A_k \cos(2\pi f_k t + \phi_k)$$

By optimizing the phase angles $\phi_k$ (such as through Schroeder phasing), engineers pack maximum spectral energy into precise frequency bands while keeping the time-domain amplitude strictly within the linear operating range of the motor drives. Periodic multisines also allow engineers to directly separate non-linear distortion from pure linear dynamics and stochastic noise by checking the non-excited harmonic bins in the measured spectrum.

Performance Receipts: Black-Box vs Grey-Box Comparison

To see the concrete difference this architectural shift makes, consider an experimental benchmark on a two-degree-of-freedom flexible joint positioning system. The goal is to identify a nominal plant model suitable for synthesized state-feedback and MPC tuning.

Receipts Block: Flexible Joint Positioning Benchmark (Illustrative Composite)
The following data represents a composite evaluation based on standard mechatronics benchmarks, comparing unconstrained ARX, ARMAX, and a physics-constrained grey-box state-space formulation on a flexible mechanism.
Sampling frequency: 1 kHz. Excitation: 0.1 to 100 Hz phase-optimized multisine vs standard PRBS.

Identification Method Time Fit ($R^2$) Identified Resonance Error Physical Realizability ($M \succ 0$) Phase Margin at Synthesized Crossover Closed-Loop Hardware Result
Unconstrained ARX(4,4,1) 93.8% +18.4 Hz shift (smoothed) Failed (Negative inertia term) 12.1 deg (Severe phase erosion) High-frequency vibration, loop aborted
Decoupled ARMAX(4,4,2,1) 91.2% +6.2 Hz shift Failed (Indefinite damping matrix) 28.4 deg Limit cycles near motor dead-zone
Grey-Box Lagrangian Model 88.6% -0.3 Hz (Exact match) Passed (Guaranteed strictly positive) 54.2 deg Stable, zero-overshoot step tracking

The black-box ARX method scored the highest time-domain $R^2$ fit during offline training, yet failed immediately when closed-loop gains were applied. It achieved its high $R^2$ by shifting the resonance frequency and generating an inverted non-minimum phase zero to fit sensor noise. The grey-box model had a slightly lower raw time fit on noisy validation data, but captured the exact physical resonance and preserved a 54.2-degree phase margin, allowing robust closed-loop operation without manual gain detuning.

The SysID Audit Checklist for Mechatronics Engineers

Before taking an identified transfer function or state-space model into controller synthesis, run through this five-point audit:

  1. Check Pole-Zero Proximity: Examine the continuous-time pole-zero map. Any pole-zero pair separated by less than 5 percent in frequency is likely a numerical artifact cancelling measurement noise. Strip them before closing the loop.
  2. Inspect the Phase at High Frequencies: Ensure the phase asymptote matches the relative degree of the physical system (number of poles minus number of zeros multiplied by -90 degrees). An unexpected phase drop indicates unmodelled delay; an unexpected phase lead indicates overfitted non-causal noise modeling.
  3. Validate Non-Parametric Frequency Response First: Plot the empirical transfer function estimate (ETFE) using Fourier analysis of your multisine data. Your parametric model must match the empirical Bode plot peaks and phase dips before you trust its numerical coefficients.
  4. Audit Residual Cross-Correlation: Compute the cross-correlation between the model residuals $e(t)$ and the input signal $u(t)$. If the correlation exceeds the 99 percent confidence bounds for any lag $\tau > 0$, your model is missing linear dynamics, and the unmodelled dynamics will degrade your feedback margins.
  5. Verify Matrix Invariants: For state-space and multi-body models, verify that the identified mass matrix is positive definite and that the damping matrix contains strictly non-negative real eigenvalues.

What this means for LabCD

Modern control engineering cannot rely on guesswork, manual gain tweaking, or blind black-box curve fitting. High-performance mechatronics demands rigorous, repeatable validation workflows that connect dynamic plant data to stable real-world execution.

LabCD is built around this exact principle: control with receipts. By bridging system identification directly with robust PID tuning, MPC formulation, and frequency-domain stability verification, LabCD ensures that every plant model is grounded in physical validity. Engineers and researchers can identify grey-box structures, verify gain and phase margins against parametric uncertainties, and generate transparent mathematical evidence that their control loops will survive contact with real physical hardware.

Summary Q&A: Why Move Beyond ARX?

Q: Why do standard ARX models fail on real mechatronics systems despite high validation fit scores?
A: ARX forces plant dynamics and measurement noise to share the exact same denominator polynomial. In the presence of sensor noise, stiction, or mechanical compliance, the least-squares solver alters the estimated plant poles and creates artificial non-minimum phase zeros to fit high-frequency noise. While this produces a high time-domain $R^2$ score, closing a feedback loop on these numerical artifacts erodes phase margin and causes real-world instability.

Q: What is the most effective replacement for standard black-box identification in robotics?
A: Grey-box identification using Lagrangian or Hamiltonian structural priors combined with phase-optimized multisine excitation. Constraining the inertia matrix to be strictly positive-definite and bounding friction parameters guarantees physical passivity, eliminating phantom pole-zero cancellations while accurately capturing true mechanical resonances.

Moving from Fitting Curves to Identifying Dynamics

System identification is not a curve-fitting contest. In supervised machine learning, minimizing time-series mean squared error on a held-out test split is often sufficient. In feedback control, an overfitted model that achieves low error by misplacing an open-loop zero will destroy your closed-loop gain margin.

As mechanical systems grow lighter, faster, and more flexible, the boundary between rigid-body mechanics and structural vibration narrows. Mechatronics labs that update their toolchains to incorporate physical grey-box priors, multisine excitation, and frequency-domain verification will spend less time troubleshooting limit cycles and more time deploying verifiable, high-performance control systems.

Sources

More LabCD Insight

system identificationmechatronicscontrol theoryrobotics