← All posts

Self-Training Agents in Manufacturing: Closing the Gap Between Simulation and Real Production

Agentic AI · Manufacturing · Reinforcement Learning

Originally published on Medium.

Reinforcement Learning in Steel Rolling: A Real Industrial Case

Maintaining consistent quality in steel strip rolling is notoriously difficult. Variations in incoming material properties, roll wear, cooling effectiveness, and tension can quickly push the process away from optimal flatness and thickness targets. Traditional control systems often require frequent manual retuning, and even then, performance can degrade as conditions change.

Researchers have explored reinforcement learning as a way to address this challenge. In a documented case study on flatness control in steel strip rolling, Deng and colleagues developed an ensemble reinforcement learning approach based on Proximal Policy Optimization (PPO). Multiple actors interacted with the process environment in parallel, and the system selectively used the best-performing experience to update the policy. The objective was to achieve better process capability and smoother control actions than both conventional methods and standard reinforcement learning baselines.

The study demonstrated meaningful improvements in key performance indicators within a simulated industrial rolling environment, highlighting how reinforcement learning can be structured for complex, real-world process control tasks where stability and constraint satisfaction matter. This kind of work illustrates a growing interest in systems that can adapt their behaviour based on ongoing interaction with the actual process rather than relying solely on pre-defined models or periodic offline retraining (Deng et al., 2022).

Broader efforts in the metals industry point in a similar direction. SMS group has promoted the concept of the “Learning Steel Plant,” with Big River Steel in Arkansas positioned as an early example. The vision is a facility that continuously collects data across the production chain and uses artificial intelligence to optimize operations in response to changing conditions, moving beyond static automation toward ongoing self-improvement (SMS group).

These examples reflect a wider shift: from AI systems that are trained once and deployed with the hope they remain effective, to agents designed to keep learning safely from real operational data.

Why “Deploy and Freeze” Is a Dead End in Industry

Most enterprise AI deployments still follow a waterfall pattern:

  1. Collect data.
  2. Train model (or policy).
  3. Validate offline / in simulation.
  4. Deploy.
  5. Hope the world does not change too much.

In manufacturing and energy, the world changes constantly:

A policy that was excellent in one period can become actively suboptimal or unsafe later.

Self-training (also called continual learning, lifelong RL, or online adaptation) refers to the capability for an agent to keep improving its policy after deployment using real interaction data, without requiring a full retraining cycle and without unacceptable risk.

The Fundamental Tension: Exploration vs. Survival

Reinforcement learning improves through experience. In industrial systems, the most valuable experience—near-failures, edge cases, and the specific combinations of fouling, new feedstock, and environmental conditions—is rare. The cost of bad experience can be measured in significant financial loss or safety incidents.

This creates three practical constraints:

  1. Sample inefficiency is lethal. Plants cannot afford to collect millions of episodes on live equipment.
  2. Exploration must be bounded. The agent cannot try arbitrary actions that risk equipment or product.
  3. Non-stationarity is the norm. The dynamics observed yesterday are already slightly different today.

Everything that makes self-training agents viable in industry is an attempt to resolve this tension between the need to learn and the need to operate safely.

Closing the Sim-to-Real Gap: Techniques That Matter

Almost every serious industrial RL deployment begins in simulation. The critical question is how much of that simulation transfers to the real plant.

High-fidelity digital twins are never perfect. There are always unmodeled dynamics such as gearbox backlash, sensor calibration differences, and emergent behaviours from interacting control loops.

Approaches that have shown promise in moving from research to production environments include:

System Identification + Residual Learning

Instead of relying entirely on the simulator, the agent learns a residual policy or residual dynamics model on top of the physics-based simulator. The simulator captures the known bulk behaviour. The learned residual captures plant-specific realities that are difficult to model from first principles.

Domain Randomization Done Right

Modern industrial practice tends to randomize selectively around the parameters most relevant to critical failure modes, rather than randomizing everything. The ranges are validated against actual plant data distributions.

World Models and Latent Imagination

Agents can learn compact latent world models that allow them to “imagine” many possible futures cheaply before acting on the real asset. The world model itself continues to be updated from real data after deployment. This direction builds on foundational work such as the Dreamer family of algorithms (Hafner et al., DeepMind).

These techniques, used in combination, help agents adapt to new situations more quickly while reducing the risk of harmful actions on live equipment.

Safe Online Adaptation Techniques That Actually Ship

Once an agent is running on the real plant, further improvement requires real experience. Several patterns have proven useful for keeping adaptation safe enough for closed-loop or high-autonomy advisory use:

Residual Policies with Action Bounds

The RL component outputs deltas or corrections on top of a trusted baseline controller (such as PID or MPC), rather than absolute setpoints. The magnitude of changes is hard-limited by a shielding layer. This significantly reduces the effective exploration space while still allowing intelligent adjustments.

Offline-to-Online Pipelines

The agent is first trained extensively on logged historical data and simulator data. Only after demonstrating strong performance in shadow mode does it receive permission to make limited online updates. Many deployments stay within careful fine-tuning inside a tight trust region.

Lyapunov-Inspired or Control Barrier Safeguards

Some rigorous deployments maintain explicit certificates or barrier functions that the adaptation process is not allowed to violate. Updates that would push the system toward unsafe regions are rejected or heavily damped. This draws from research on safe reinforcement learning and control barrier functions (Brunke, Ames, Fisac et al.).

Conservative Q-Learning and Pessimistic Value Estimates

When performing online updates, the agent can be trained with pessimistic (lower-bound) estimates of value for state-action pairs it has not seen frequently. This encourages natural caution in regions with limited data (Levine, Kumar, Singh et al.).

Human Teaching as Dense Reward

When experienced operators override the agent or make manual adjustments, modern systems can treat these interventions as high-value training signals. Some implementations capture the reasoning behind operator actions and incorporate them into reward shaping or new constraints. This is often one of the highest-bandwidth learning opportunities available.

Handling Rare but Catastrophic Events

Failures that occur infrequently can still destroy the business case for an entire agent deployment.

Self-training systems that remain viable in production tend to use several complementary strategies:

The Meta-Learning Angle: Learning to Adapt Fast

The most advanced form of self-training is not just improving on one specific asset. It is learning how to become effective in new situations quickly.

Meta-RL and contextual policy approaches aim to train agents that can identify relevant differences from limited observations and adapt their behaviour rapidly when moved to a new product grade or a slightly different piece of equipment. In practice, this often involves a base policy trained across multiple similar assets, combined with a small context encoder and rapid fine-tuning mechanisms.

While still an active area of research, these ideas are being explored in robotics and process control settings where rapid adaptation to new conditions is valuable.

What “Self-Training” Does Not Mean

It is important to set clear boundaries:

The most effective self-training systems are better understood as continuously cautious adaptation within a managed trust region, heavily regularized by physics, shielding mechanisms, and human input.

Organizational Implications

Self-training agents change the operating model more deeply than one-time deployed models:

Key Takeaways

  1. Self-training is becoming necessary for long-lived industrial agents. The world drifts; policies that cannot adapt become liabilities over time.
  2. The techniques that make adaptation safe (residual policies, constrained and conservative methods, barrier functions, world models) are as important as those that make it effective.
  3. Simulation remains essential for sufficient experience volume, but sim-to-real transfer techniques determine whether that experience is useful or risky.
  4. Human teaching during real operations is frequently one of the highest-leverage signals an industrial self-training system receives.
  5. Organizations that treat every production hour as both an economic event and a learning opportunity—and build the corresponding data infrastructure, culture, and governance—are better positioned to benefit from these systems.

The distinction between agents that arrive with fixed knowledge and agents designed to keep learning what they need to know, safely and effectively, is becoming a meaningful differentiator between demonstration projects and production systems that improve over time.

Key Technical Foundations

This article draws from several lines of research and documented industrial efforts:

Reinforcement learning for industrial process control, including a case study in flatness control in steel strip rolling (Deng et al., 2022, Computers in Industry).

The “Learning Steel Plant” concept and its early implementation at Big River Steel (SMS group).

World models and latent imagination from the Dreamer family of algorithms (Hafner et al., DeepMind).

Conservative and offline reinforcement learning methods (Levine, Kumar, Singh et al.).

Safe reinforcement learning using control barrier functions and shielding approaches (Brunke, Ames, Fisac et al.).

Broader work on meta-reinforcement learning and rapid adaptation in robotics and process control settings.

Additional insights on practical considerations in metals and process industries come from industry discussions and supplier perspectives on autonomous optimization in production environments.

Written for practitioners navigating the gap between promising simulation results and the realities of keeping agents effective and safe on live equipment over time.

- Chirag Jain