← Back to Design Patterns
Intralogistics Mixed Evidence RoboticsMechatronicsPrecision MotionManufacturing
MPCNMPCState EstimationMHEEKFSensor FusionCo-DesignLatency Compensation

State Estimation + MPC Co-Design — Making Predictive Control Work on Real Systems

Why This Matters (Executive Summary)

  • MPC that “works in simulation but not on the real system” almost always fails because of estimation problems — latency, drift, noise, or insufficient update rate in the state estimate.
  • Co-designing the estimator and controller — with explicit latency budgets, fusion strategies, and fallback logic — is what makes MPC deployable on physical hardware.
  • Reference implementations demonstrate: combined NMPC + MHE at 1 ms total compute on overhead cranes, servo bandwidth increased from 147 Hz to 208 Hz via explicit MPC + observer, and model-free incremental MPC using time-delay estimation that avoids explicit plant identification entirely.
  • This pattern applies to any system where the controller needs states that are not directly measured: steel reheating furnaces, wastewater treatment plants, polymer reactors and other process plants, intralogistics, precision motion, and robotics.

The Design Pattern Explained

State estimation and MPC are not independent modules. The estimator must produce state estimates at the rate, latency, and accuracy that the controller requires. When vision-based sensing introduces 50 ms of latency, the controller must either predict ahead or extrapolate — and this prediction must be co-designed with the MPC horizon.

Three main estimation approaches appear in the reference implementations:

  1. Moving Horizon Estimation (MHE): an optimization-based estimator that, like MPC, solves a constrained problem at each step. MHE naturally handles constraints on states (e.g., “this temperature cannot be negative”) and provides consistency with the NMPC formulation.
  2. Extended state observers: augment the plant model with disturbance states, enabling offset-free control without integral action in the MPC cost function. This is particularly effective for servo systems with persistent load disturbances.
  3. Sensor fusion (EKF, complementary filters): combine complementary sensors — visual-inertial odometry with proprioceptive sensors, or position sensors with current measurements — to produce low-latency, high-rate estimates matched to the controller’s timing.

The key engineering principle is that latency is a design parameter, not an afterthought. Every millisecond of estimation delay either reduces control bandwidth or must be explicitly compensated.

Linear MPC vs. NMPC in estimation-control co-design: The estimation approach and the controller type are tightly coupled. Linear MPC + extended state observer (Application 5, linear motor servo) is the simplest case: a linear plant model enables explicit MPC (offline QP → lookup table), and the DCESO estimates disturbances from a linear observer. The entire pipeline is convex and deterministic, enabling 208 Hz bandwidth on embedded hardware. Incremental model-free MPC (Application 6, robot manipulator) uses time-delay estimation to build an implicit linear incremental model online — the optimization remains a convex QP, avoiding system identification entirely. Nonlinear MPC (NMPC) + Moving Horizon Estimation (MHE) (Application 4, overhead crane) couples two nonlinear optimization problems — both the estimator and controller solve NLPs at each step. Auto-code generation (ACADO) keeps the combined solve time to approximately 1 ms, but this requires careful initialization and warm-starting not needed in the linear case. Applications 7-9 (Solo12 locomotion, ANYmal perceptive locomotion, magnetic levitation) all use NMPC with nonlinear state estimation, reflecting systems where the dynamics are genuinely non-convex: contact-mode switching, terrain geometry encoding as constraint sets, or open-loop instability with nonlinear force-gap relationships. The choice between linear and nonlinear co-design is thus determined by whether the plant dynamics are linearizable around the operating range — if yes, the linear stack offers simpler deployment, guaranteed global optimality, and embedded feasibility; if no, NMPC+MHE provides the necessary expressiveness at significantly higher computational and commissioning cost.

Applications & Reference Implementations

EKF Slab Temperature Estimation + NMPC — Steel Reheating Furnace (Dillinger)

In a continuous slab reheating furnace of AG der Dillinger Hüttenwerke, the MPC needs the temperatures inside each slab, and these cannot be measured: even pyrometers are not accurate enough under the rough furnace conditions and with the uncertain radiation properties of oxidised surfaces. An extended Kalman filter, checked against a test slab fitted with thermocouples, estimates them, and the estimates are the initial state of a nonlinear MPC that sets the zone temperatures for the subordinate PI zone controllers. The controller was commissioned in February 2011 and ran permanently from then on. On plant data for 7,025 slabs, compared with 5,278 slabs under the previous PI control and evaluated with the estimated final temperatures, the mean deviation from the target fell from 13.0 K to 0.9 K and its standard deviation from 12.3 K to 9.4 K. Two more furnaces in the plant followed. Wherever the inner temperature of the product cannot be measured — ladle, strand or furnace — the same split applies: a model-based estimator supplies the state, and the controller acts on it.1

pH Soft Sensor for Ammonia-Based Aeration Control — Municipal Wastewater Treatment

Ammonia-based aeration control must know when an ammonia load arrives, but ammonia analysers need frequent maintenance that small and medium plants often cannot justify. A soft sensor using two pH probes, in the first and the last aerated tank, detects ammonia peak loads through a qualitative trend analysis of the pH difference; because it reads trends rather than absolute values, it tolerates sensor drift. A rule-based master controller switches the setpoints of the existing oxygen control between an economy and a normal level. In closed-loop tests at three Swiss municipal plants, blower energy per kilogram of ammonia removed fell by 6.6% at WWTP Hard in Winterthur (7.2% on dry-weather days) and, in shorter tests, by 13% at Pfäffikon and 8.2% at Pfungen (the latter not normalised to the ammonia load); legal effluent limits were met. Sensor upkeep was limited to weekly cleaning and at most monthly recalibration. For a plant hit by unannounced loads, a robust estimate from simple sensors can carry the control, with the analyser kept for checking and tuning.2

Moving Horizon Estimation + NMPC — Gas-Phase Polyethylene Reactor

In an industrial gas-phase polymerization reactor of a UNIPOL polyethylene plant, the nonlinear MPC needs current states, model parameters and disturbances that are not measured directly. Moving horizon estimation (MHE) was applied to estimate them: every 5 minutes, when new plant measurements arrive and before the control optimization, it fits the same large-scale rigorous plant model that the nonlinear MPC uses with 10 manipulated and 26 controlled variables; the estimation problem has 46,870 variables and is solved by a sparse NLP solver. Compared with implicit dynamic feedback, the authors report better estimates of unmodelled disturbances, and with MHE a simpler rigorous model is enough for the nonlinear MPC. For polymer reactors whose inner condition is seen only through a few measurements and lab samples, this is the structure to consider: one model, updated by the estimator on the controller’s own schedule.3

Combined NMPC + MHE for Overhead Crane — Intralogistics

Nonlinear MPC was paired with Nonlinear Moving Horizon Estimation on an overhead crane system, using automatic code generation to achieve a combined average execution time of approximately 1.02 ms (peak 1.17 ms) against a 10 ms sampling time. The system validated point-to-point motion, disturbance rejection, and servo-tracking in hardware experiments. This demonstrates that optimization-based estimation and control can run together in real time on standard computing hardware, with a comfortable margin below the sampling period. The automatic code generation approach (ACADO toolkit) is directly transferable to industrial crane and gantry applications.4

Explicit MPC + Extended State Observer for Linear Motor Servo — Precision Motion

A two-degree-of-freedom control architecture combining Explicit MPC with a Differential-Compensated Extended State Observer (DCESO) was applied to a linear motor positioning servo. The explicit MPC eliminates online optimization by pre-computing the control law as a piecewise-affine function of the state. Position loop bandwidth increased from 147 Hz to 208 Hz (a 41% improvement), and step-response settling time dropped from 5.38 ms to 3.13 ms (5% criterion). The extended state observer estimates disturbance forces in real time, enabling offset-free tracking without integral action in the MPC formulation.5

Incremental MPC with Time-Delay Estimation — Robotic Manipulator

An incremental MPC method was validated on a real 3-DoF robot manipulator, using time-delay estimation to construct an incremental model that avoids explicit plant identification entirely. This is significant because traditional MPC requires an accurate dynamic model, which can be costly to obtain and brittle when dynamics change (tool changes, wear, payload variation). The controller runs on a standard PC and was demonstrated with Maxon motors and incremental encoders. The approach treats unmodeled dynamics as disturbances estimated from delayed measurements, making it robust to model mismatch without requiring system re-identification.6

VIO + Leg Odometry Fusion for NMPC Locomotion — Quadruped Robotics (Solo12)

Visual-Inertial Odometry (VIO) was fused with leg odometry to support NMPC-based locomotion on the Solo12 quadruped robot, including outdoor experiments. The estimation pipeline runs an EKF at 200 Hz feeding an MPC at 20 Hz, with low-level control at 1 kHz. Neither VIO alone (which suffers from latency and dropout) nor leg odometry alone (which drifts) provides sufficient state quality for dynamic locomotion. The fusion approach addresses complementary failure modes: vision provides absolute drift correction while proprioception provides high-rate, low-latency velocity estimates.7

Perceptive Locomotion NMPC with Terrain Estimation — ANYmal (ETH Zurich)

A perception-planning-control pipeline centered on nonlinear MPC at 100 Hz was validated on the ANYmal quadruped robot. Terrain is encoded as convex foothold constraints plus a signed-distance field for collision avoidance, with perception running at 20 Hz and whole-body torque control at 400 Hz. The estimation layer must provide terrain geometry and robot state at rates and latencies that match the controller’s needs — a clear example of co-design where the perception system’s output format (convex constraint sets) is chosen specifically to be consumable by the MPC solver.8

NMPC for Magnetic Levitation with State Estimation — Laboratory Demonstration

Real-time NMPC was experimentally demonstrated on a fast nonlinear magnetic levitation plant, compared against a PID baseline. The system is open-loop unstable, meaning the controller cannot function without continuous state estimation. NMPC reported better control performance than PID, illustrating that for inherently unstable systems, the estimation-control co-design determines whether the system can operate at all, not merely how well it performs.9

What This Means for Your Operations

  • If your MPC project stalled during commissioning, the root cause is likely estimation. Audit the latency, update rate, and noise characteristics of your state estimates before re-tuning the controller.
  • Latency budgets are non-negotiable: for a 100 Hz MPC, the estimator must deliver states in under 5 ms. Document and verify these budgets during design.
  • Sensor fusion is not optional for mobile or multi-axis systems: no single sensor modality provides the rate, accuracy, and robustness needed for dynamic control.
  • MHE is underused in industry: if your NMPC already solves an optimization at each step, adding MHE uses the same solver infrastructure and provides constraint-consistent state estimates.

The first step

A fixed-price remote diagnosis: EUR 4,500 net, 5 working days, remote, with a one-page summary for management, a technical report and a results meeting. Before that, a free 30-minute call. Available by arrangement, freelance or through temporary agency work. The remote diagnosis in detail

Typical KPIs to Track

  • Estimation quality: state estimation error (RMS), estimator update rate, end-to-end latency (sensor to controller input)
  • Control performance: tracking error, settling time, bandwidth, constraint violation rate
  • Robustness: performance under sensor dropout, degraded-mode behavior, time to recover from estimation reset
  • Compute margin: solver time vs. sampling period ratio (target: peak solve time below 50% of sampling period)

Risks & Prerequisites

  • Sensor characterization: every sensor’s noise, bias, latency, and failure modes must be documented. This is non-negotiable for co-design.
  • Compute budget: running both MHE and NMPC doubles the optimization workload. Code generation tools (ACADO, acados, CasADi) are essential for meeting real-time constraints.
  • Fallback logic: what happens when the estimator diverges or a sensor fails? Degraded-mode operation (e.g., fallback to reduced-order observer) must be designed, not improvised.
  • Calibration and initialization: estimators need initial conditions. Start-up procedures and sensor calibration routines are part of the deliverable.

FAQ

Q: When should I use MHE instead of an EKF? Use MHE when you have state constraints (e.g., physical bounds on temperatures, positions, or concentrations) that the estimator must respect, or when the system is highly nonlinear and the EKF linearization introduces unacceptable errors. MHE is more computationally expensive but provides constraint-consistent estimates.

Q: Can I use machine-learning-based estimation with MPC? Yes, but with care. Neural-network-based estimators can provide fast inference, but they do not naturally handle constraints and their failure modes are less predictable. A common pattern is to use ML for perception (terrain maps, object detection) and optimization-based estimation for the control-relevant states.

Q: How much does estimation latency actually matter? Every millisecond of latency effectively shortens your MPC prediction horizon by one step. For a 100 Hz controller, 10 ms of latency means the controller is always “one step behind” reality. For unstable systems (magnetic levitation, balancing), this can be the difference between stable operation and failure.

Q: What if we cannot add more sensors? State observers and soft sensors can often reconstruct unmeasured states from available measurements. The key question is observability: can the states you need be inferred from what you measure? A fixed-scope discovery engagement includes an observability analysis for your specific system.

Book a free 30-minute call

Ready to explore whether this pattern fits your system?

Dr. Rafał Noga — control and optimisation, freelance

Email me | noga.es

Fixed-price remote diagnosis · non-disclosure agreement before any data exchange · availability on request

Public References

Footnotes

  1. Steinboeck, Wild, Kugi, “Nonlinear model predictive control of a continuous slab reheating furnace”, Control Engineering Practice 21(4):495–508, 2013 (TU Wien with AG der Dillinger Hüttenwerke). DOI · Post-print PDF ↩

  2. Thürlimann, Dürrenmatt, Villez, “Soft-sensing with qualitative trend analysis for wastewater treatment plant control”, Control Engineering Practice 70:121–133, 2018 (Eawag; full-scale tests at Swiss municipal plants). DOI · Preprint PDF ↩

  3. Hedengren, Allsford, Ramlal, “Moving Horizon Estimation and Control for an Industrial Gas Phase Polymerization Reactor”, American Control Conference (ACC), 2007, pp. 1353–1358. DOI ↩

  4. Debrouwere, Vukov, Quirynen, Diehl, Swevers, “Experimental Validation of Combined Nonlinear Optimal Control and Estimation of an Overhead Crane”, IFAC World Congress, 2014. DOI · PDF ↩

  5. Dong, Chen, Sun, Tang, Wang, “A Servo Control Algorithm Based on an Explicit Model Predictive Control and Extended State Observer with a Differential Compensator”, Actuators 14(6):281, 2025. DOI ↩

  6. Wang, Leibold, Lee, Ye, Xie, Buss, “Incremental Model Predictive Control Exploiting Time-Delay Estimation for a Robot Manipulator”, IEEE Transactions on Control Systems Technology 30(6):2285–2300, 2022. DOI ↩

  7. Dhédin, Li, Khorshidi, Mack, Ravi, Meduri et al., “Visual-Inertial and Leg Odometry Fusion for Dynamic Locomotion”, IEEE ICRA, 2023, pp. 9966–9972. DOI · arXiv ↩

  8. Grandia, Jenelten, Yang, Farshidian, Hutter, “Perceptive Locomotion Through Nonlinear Model-Predictive Control”, IEEE Transactions on Robotics 39(5):3402–3421, 2023. DOI · arXiv ↩

  9. Novotný, Dušek, Honc, “Implementation of nonlinear model predictive control of magnetic levitation laboratory plant”, International Journal of Dynamics and Control, 2025. DOI ↩

📅 Book a free 30-minute call

Where this pattern shows up in industry

91 problems · 44 industries

Problems that operators, machine builders and utilities describe, where this pattern is part of the answer. Each one explains what happens, what it costs, why the usual fix fails and how a fixed-price remote diagnosis checks it.

Process Industry 24 problems
Energy, Buildings & Agriculture 37 problems
Manufacturing & CNC 15 problems
Robotics & Autonomous Systems 9 problems
Automotive & Transportation 6 problems

Was this article helpful?

Share: LinkedIn

Contact

Send a message

I reply within 24 hours.  ·  NDA signed on request · No spam · GDPR-compliant

Your data is processed by FormSubmit.co and used solely to respond to your inquiry. No marketing without consent.

Direct contact

Dr. Rafał Noga

Meeting

Book a free 30-minute call directly via Calendly.

Book a free 30-minute call

Stay Updated

Get insights on Industrial AI, APC, and process optimization delivered to your inbox.