TL;DR
This paper explores using deep reinforcement learning (RL) to automatically tune Proportional-Integral-Derivative (PID) controllers on a real-world physical system. They demonstrate that RL can effectively tune PID controllers, achieving performance comparable to or better than traditional methods, while offering advantages in interpretability and ease of deployment.
What Problem Does This Paper Address?
Tuning PID controllers, ubiquitous in industrial automation, is a critical but often manual and time-consuming process. While deep reinforcement learning (RL) has shown promise in simulation for control tasks, its application to real-world physical systems, especially for tuning existing controllers like PID, faces significant challenges. These include integrating RL with existing hardware, ensuring sample efficiency, handling input constraints, and making the learned control laws interpretable. This paper aims to bridge this gap by experimentally demonstrating how a state-of-the-art deep RL algorithm can be applied to tune a PID controller on a physical system, addressing these practical challenges.
Methods
The core idea is to treat a PID controller as the "policy" within a deep RL framework. Specifically, they use a model-free deep deterministic policy gradient (DDPG) algorithm, specifically a modified version of TD3 (Twin-Delayed DDPG), to learn the PID parameters. The actor network in the RL algorithm directly outputs the PID gains ($k_p, k_i, k_d, k_t$), which are then used to control the physical system. A critic network estimates the value function to guide the actor's learning. They also incorporate techniques to handle input constraints of the physical system during the RL update process.
Datasets
The paper does not explicitly mention pre-existing datasets for training. Instead, they collect data directly from the physical two-tank system during the experiments. This data is then used to train the RL agent in an online fashion.
Key Insights and Ideas
- PID as an RL Policy: Framing a PID controller as a shallow neural network policy simplifies the RL problem significantly, reducing the number of parameters to learn and leveraging existing, well-understood control structures.
- Real-World Challenges: The paper highlights practical hurdles like the interplay between software and hardware, experiment design for sample efficiency, and the importance of interpretability, which are often overlooked in purely simulation-based studies.
- Interpretability Advantage: A key benefit of using PID controllers is that the learned parameters are directly interpretable by practitioners, unlike complex deep neural networks that might act as black boxes.
- Safe Initialization: The ability to initialize PID parameters in a "safe" region of the parameter space is crucial for real-world deployment, preventing instability during the learning process.
- Constraint Handling: The paper demonstrates a method to modify the RL update scheme to account for physical input constraints, ensuring the learned policy respects system limitations.
Key Results
The RL-tuned PID controllers achieved performance comparable to or better than traditional tuning methods like Skogestad IMC (SIMC) and Honeywell's Accutune III across various metrics (IAE, ISE, TV, %OS, ST). Specifically, RL showed strong performance in terms of integral absolute error (IAE) and integral squared error (ISE), leading to smooth and efficient tracking. The training process for the RL agent typically took around 40 minutes of operation on the physical system, without requiring prior simulation or offline data. The paper also found that using an absolute value-based reward function (or a hybrid version) led to more consistent and robust performance compared to a squared error-based reward.
Limitations and Future Work
- Hyperparameter Tuning: While the paper presents a successful application, the authors acknowledge that choosing hyperparameters can still be challenging, especially in cases of poor training performance. They suggest that offline training could mitigate this.
- Generalization: The current work focuses on a specific system. Future work could explore more systematic ways to configure RL agents for novel environments, potentially through offline RL or meta-RL approaches that learn from historical data or distributions of similar systems.
- Scalability: Increasing the scalability of RL algorithms by enabling them to distill information from various systems into a single agent is identified as a significant opportunity for the process industries.
- Safety: Developing algorithms that can effectively distill information from a range of systems into a single agent would increase scalability and improve the safety of the training procedure.
Summary updated