A Deep Reinforcement Learning-based Sliding Mode Control Design for Partially-known Nonlinear Systems

Sahand Mosharafian, Shirin Afzali, Yajie Bao, Javad Mohammadpour Velni

Introduction

Controlling nonlinear dynamical systems, such as robotic manipulators or complex chemical processes, remains a significant challenge in control engineering. The primary difficulty arises from the fact that mathematical models are rarely perfect; real-world systems are subject to parameter mismatches, external disturbances, and unmodeled physics.

Traditionally, engineers have relied on Sliding Mode Control (SMC) to address these uncertainties. SMC is renowned for its robustness, as it forces the system state onto a predefined "sliding surface" where the dynamics become predictable and stable. However, SMC has two critical limitations: it requires the designer to specify mathematical bounds for the system's uncertainties (which are often unknown), and it frequently produces "chattering"—high-frequency oscillations in the control signal that can cause significant wear and tear on mechanical hardware.

In recent years, Reinforcement Learning (RL) has emerged as a powerful data-driven alternative, capable of learning control policies directly from interaction. Yet, RL is often viewed as a "black box" that lacks the stability guarantees required for safety-critical systems and typically requires massive amounts of data to converge. This paper proposes a hybrid framework that bridges the gap between classical control theory and deep learning, utilizing the structural benefits of SMC while leveraging the adaptive power of Deep Reinforcement Learning (DRL).

Methodology

The authors introduce a "model-based + data-driven" fusion strategy designed to handle partially-known nonlinear systems. The architecture consists of several key components:

1. Nominal SMC Design

The process begins with a simplified, or "nominal," model of the system. A standard SMC law is designed based on this simplified physics. This ensures that the controller has a foundational understanding of the system's behavior, reducing the burden on the learning agent.

2. DDPG-based Compensation

To account for the discrepancy between the nominal model and the actual system (the "error system"), the authors employ the Deep Deterministic Policy Gradient (DDPG) algorithm. DDPG is an actor-critic DRL method suitable for continuous action spaces. In this framework, the RL agent learns a compensation term ($u_1$) to counteract unmodeled dynamics.

3. Structural Innovation in the Actor Network

A primary contribution of this work is the customization of the Actor Network architecture. Rather than outputting a raw control signal, the network's final layer is designed to output specific parameters ($r$ and $\mu$) that are integrated directly into a sliding mode control law:

$$u_1 = -r(t) - \mu(t) \text{sign}(\sigma)$$

By forcing the neural network to "speak the language" of control theory, the system retains the robust characteristics of classical SMC while allowing the RL agent to adaptively tune the control effort based on real-time performance.

4. Reward Shaping

The RL agent is trained using a reward function that balances performance and efficiency. It is rewarded for minimizing tracking errors and penalized for high control effort. This penalty is crucial for mitigating the chattering effect typically associated with SMC.

Experimental Evaluation

The proposed method was evaluated using a simulated nonlinear mass-spring-damper system. The "real" system included complex damping and spring forces (e.g., cubic terms and absolute values), while the "nominal" model used by the controller was a simplified linear approximation.

The agent was trained over 200 episodes, with each episode lasting 7 seconds (70 time steps). The system was tasked with tracking a sinusoidal reference signal ($x_1^{ref} = \sin(t) - 1$).

Key Results and Discussion

Convergence and Accuracy

The DDPG agent demonstrated efficient learning, reaching convergence after approximately 175 episodes. While the nominal controller alone failed to track the reference signal accurately due to unmodeled nonlinearities, the RL-enhanced hybrid controller successfully brought the error system states to zero and maintained high tracking precision.

Generalization

A significant finding was the controller's ability to generalize. Despite being trained from a single initial state ($[0, 0]^T$), the system successfully tracked the reference when starting from a completely different initial condition ($[2, -1]^T$). This suggests that the DDPG agent learned the underlying dynamics of the error rather than simply memorizing a specific trajectory.

Chattering Mitigation

By incorporating control effort penalties into the reward function, the authors successfully limited the amplitude of high-frequency switching. This results in a smoother control signal that is more suitable for real-world mechanical applications compared to traditional robust SMC.

Conclusion and Future Work

This research demonstrates that RL is most effective when it operates within a known control structure. By integrating DDPG with Sliding Mode Control, the authors eliminated the need for conservative uncertainty bounds and reduced chattering without sacrificing robustness.

Future work may focus on providing rigorous Lyapunov stability proofs for the entire closed-loop system, including the neural network weights. Additionally, the authors suggest extending this framework to multi-input multi-output (MIMO) systems and validating the approach on physical hardware to assess its resilience against real-world sensor noise and computational constraints.

Summary updated

BibTeX
@inproceedings{mosharafian2022deep,
  author = {Sahand Mosharafian and Shirin Afzali and Yajie Bao and Javad Mohammadpour Velni},
  title = {{A Deep Reinforcement Learning-based Sliding Mode Control Design for Partially-known Nonlinear Systems}},
  booktitle = {ECC},
  year = {2022},
  doi = {10.23919/ecc55457.2022.9838169},
}
Figure