HomeEngineering & MaterialsAI PID Auto-Tuner: Reinforcement Learning for Industrial Process Control

AI PID Auto-Tuner: Reinforcement Learning for Industrial Process Control

Watch an SPSA reinforcement-learning agent auto-tune a PID controller for an industrial tank-level loop with dead time — live gain-space trail, ISE cost, and overshoot readouts.

Engineering & Materials3DAdvanced60 FPS📱 Mobile-adapted⇄ 2D version
ai-topic-80 ↗ Open standalone

Hand-tuned PID loops are still the backbone of industrial control — but Industry 4.0 plants increasingly hand the tuning itself to an AI agent. This simulator models a real tank-level loop as a first-order-plus-dead-time process driven by a PID valve controller, then lets an SPSA (Simultaneous Perturbation Stochastic Approximation) reinforcement-learning agent search for the gains that minimize a real ISE-plus-overshoot cost function using only two rollouts per update — no gradient of the plant model required, exactly as a model-free industrial auto-tuner would. Watch the liquid level step-response settle in faster, tighter, less oscillatory as training runs, while a live gain-space trail shows the exact (Kp, Ki, Kd) path the agent walked to get there.

⚙ Under the hood

Watch an SPSA reinforcement-learning agent auto-tune a PID controller for an industrial tank-level loop with dead time, minimizing a real ISE-plus-overshoot cost while a live gain-space trail shows the search path.

PID controlreinforcement learningSPSAindustrial automationprocess controlauto-tuning

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)