Rotary table servo system control method based on deep reinforcement learning
Through deep reinforcement learning combined with the FOPID controller and the Actor-Critic framework, the response speed and anti-interference problems of the traditional turntable servo system in complex environments are solved, and higher precision and robust tracking performance are achieved.
Patent Information
- Application Number
- CN202410691545.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-17
AI Technical Summary
When faced with complex nonlinear and parameter coupling environments, traditional turntable servo system control methods have problems such as slow response speed and poor anti-interference, making it difficult to achieve high-precision tracking performance.
Using the turntable servo system control method based on deep reinforcement learning, combined with the brushless DC motor model and dual inertia system dynamics model, a FOPID controller based on the DDPG algorithm is designed, using the Actor-Critic framework and the Ornstein-Uhlenbeck process to explore noise and optimize Control strategies to improve system adaptability and robustness.
It significantly improves the control accuracy and anti-interference performance of the turntable servo system under complex dynamic conditions, achieving more accurate tracking performance and robustness, which is superior to traditional GA PID, PSO PID and Q-learning PID control methods.
Smart Images

Figure CN118655764A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of turntable servo control, and in particular relates to a servo control method based on deep reinforcement learning. Background Art
[0002] During the high-speed driving of the car, the brake disc, as a key part of the braking system, plays a vital role in the driving safety of the car. How to accurately correct the imbalance of the brake disc has become a key step in the production of automobile brake discs. During the correction process, the tracking accuracy of the servo system of the balancing machine turntable directly affects the production efficiency and balancing accuracy of the brake disc. With the increasing demand for brake discs and people's increasingly stringent requirements for process accuracy, the inherent nonlinearity and parameter coupling of the turntable servo system have brought challenges to the design of the control method. Improving the stability and control accuracy of the system is a technical problem that needs to be solved urgently.
[0003] Traditional turntable servo system control methods usually rely on empirically designed PID control. However, when faced with a complex environment of uncertain interference and noise, the linear characteristics of PID control cannot meet the needs of complex nonlinear systems. There are problems such as slow response speed and poor anti-interference, which limits the tracking performance of the turntable servo system.
[0004] In recent years, deep reinforcement learning has been widely used in various fields, including aerospace, robot control, etc. Its rapid development has provided new ideas for solving the turntable servo control problem. Q-learning, as a classic reinforcement learning algorithm, obtains the best action strategy by exploring and utilizing the learning mechanism to solve the optimal control problem in the decision-making process. However, Q-learning has difficulty in handling complex problems of continuous actions and high-dimensional state spaces. To overcome these shortcomings, the actor-critic based deep deterministic policy gradient (DDPG) algorithm was proposed. Due to the outstanding performance of the DDPG algorithm in continuous action control tasks, it has attracted the attention of many researchers and promoted its application research in different fields.
[0005] Inspired by the development of deep reinforcement learning, the present invention proposes a turntable servo system control method based on deep reinforcement learning. Summary of the invention
[0006] The purpose of the present invention is to propose a turntable servo system control method based on deep reinforcement learning to solve the problems raised in the background technology: (1) As a high-precision closed-loop control system, the development of a control method with anti-interference and stability is of great significance for achieving high-precision control of the turntable servo system. (2) Although many intelligent algorithms, including fuzzy control, neural networks, particle swarm optimization (PSO), genetic algorithm (GA), etc., have been widely used in the parameter optimization of PID control to improve the performance of turntable servo systems, these algorithms lack adaptive learning capabilities and often cannot guarantee optimal performance when faced with dynamically changing actual application scenarios.
[0007] To solve the above problems, the present invention adopts a turntable servo system control method based on deep reinforcement learning, which specifically includes the following steps: Ⅰ. Introduce the brushless DC motor (BLDC) model and build a dual-inertia system dynamics model to establish a nonlinear mathematical model of the turntable servo system; Ⅱ. According to the mathematical model of the turntable servo system, a model-free fractional-order proportional-integral-differential (FOPID) controller is constructed; III. Design a FOPID control method based on the DDPG algorithm and define the hyperparameters of the DDPG algorithm; IV. The designed control method is applied to the tracking task of the turntable servo system, which can achieve more accurate and stable tracking under complex dynamic conditions.
[0008] The step I specifically includes: The multi-inertia and strongly coupled turntable servo system is simplified to a dual-inertia system model of BLDC and turntable, and the state equation of the turntable servo system is obtained. And the transfer function from motor torque to motor angular velocity is: Where, T M is the motor torque (N·m); ω M is the motor angular velocity (rad / s); J M , J L is the motor moment of inertia and turntable moment of inertia (kg·m 2 );C r , K r is the torsional viscous damping coefficient (N·m / (rad / s)) and the torsional stiffness coefficient (N·m / rad); The transfer function from motor torque to turntable angular velocity is: In the formula, ω L is the turntable angular velocity (rad / s); The dynamic balance equation of the BLDC armature circuit is obtained from Kirchhoff's voltage law, and the transfer function from the motor control voltage to the turntable angular displacement is: In the formula, θ L is the angular displacement of the turntable (rad); Ua is the control voltage of the motor (V); U c is the position loop output voltage (V);
[0009] The step II specifically includes: Compared with the traditional integer-order PID controller, the FOPID controller makes the system more adaptable to nonlinear and complex dynamic characteristics by using fractional-order calculus. Its mathematical model is: Among them, K P is the proportionality coefficient; K I is the integral coefficient; K d is the differential coefficient; γ is the fractional-order integral coefficient; is the fractional differential coefficient;
[0010] The step III specifically comprises: The DDPG algorithm is mainly composed of an Actor network and a Critic network, where the action value function Q(S,a|θ Q ) is represented by the weight θ Q The Critic network learns, and the policy function μ(S|θ μ ) is represented by the weight θ μ In order to enhance the agent's exploration ability in the environment, improve learning efficiency and strategy optimization capabilities, the exploration noise N based on the Ornstein-Uhlenbeck process is added to the Actor strategy of DDPG: a t =μ(S t |θ μ )+N (5) During the training process, the weights θ of the Critic network Q The update is performed by minimizing the following loss function L(θ): L(θ Q )=E (S,a) [(Q(S t ,a t |θ Q )-y t ) 2 ] (6) in, y t =r t (S t ,a t )+δQ(S t+1 ,μ(S t |θ μ )|θ Q ) (7) Among them, δ∈(0,1] is the discount factor; E (S,a) is the expected value of the state-action pair; r t is the reward value; The policy gradient of the Actor network during parameter update is approximately: Among them, ρ is the discounted state distribution; ε is the current action strategy; The present invention defines the learning rate of DDPG as 0.0004 and the discount factor as 0.9. The reward function of the DDPG algorithm is designed with the goal of minimizing the control error of the turntable servo system as: in, is the turntable angular displacement error (rad); is the turntable angular velocity error (rad / s);
[0011] The step IV specifically includes: The joint simulation platform is used to carry out anti-interference and anti-noise tracking simulations on the turntable servo system under different control methods including GA PID, PSO PID, Q-learning PID and DDPG FOPID. Four groups of simulation experiments are used to verify the robustness of the tracking of the proposed control method.
[0012] Compared with the existing methods, the present invention has the following beneficial effects: The proposed control method combines the DDPG algorithm based on the Actor-Critic framework with the FOPID controller, and utilizes the powerful adaptive and decision-making capabilities of deep reinforcement learning, so that the controlled object can adapt to different working conditions and environmental changes, obtain the best control strategy in continuous learning, and improve the control accuracy and robustness of the turntable servo system under complex dynamic conditions. In the tracking task, the tracking accuracy and anti-interference performance of the present invention are significantly better than those of the existing control methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 The structure diagram of the turntable servo system
[0014] Figure 2 Dual-inertia system model
[0015] Figure 3 The dynamic model of the dual-inertia system
[0016] Figure 4 DDPG FOPID control method diagram
[0017] Figure 5 The control flow chart of the turntable servo system
[0018] Figure 6 Angular displacement tracking performance under ideal conditions: (a) tracking curve (b) error curve
[0019] Figure 7 Angular velocity tracking performance under ideal conditions: (a) tracking curve (b) error curve
[0020] Figure 8 Angular displacement tracking performance for anti-interference experiment: (a) tracking curve (b) error curve
[0021] Fig. 9 Angular velocity tracking performance for anti-interference experiment: (a) tracking curve (b) error curve
[0022] Fig.10 Angular displacement tracking performance for anti-noise experiment: (a) tracking curve (b) error curve
[0023] Fig.11 Angular velocity tracking performance for noise immunity experiment: (a) tracking curve (b) error curve
[0024] Fig.12 Angular displacement tracking performance for anti-interference and noise experiments: (a) tracking curve (b) error curve
[0025] Fig.13 Angular velocity tracking performance for anti-interference and noise experiments: (a) tracking curve (b) error curve DETAILED DESCRIPTION
[0026] In order to illustrate the technical solution of the present invention in detail, the present invention will be further introduced below in combination with the accompanying drawings and specific implementation methods. It should be particularly noted that the described embodiments are intended to help understand the present invention, but do not constitute a limitation of the present invention.
[0027] First, the turntable servo system in the balancing machine is a position tracking system with a servo motor as the main body. The key problem to be solved by this invention is to propose a FOPID control method based on deep enhanced DDPG, and improve the existing traditional control method to improve the tracking performance and anti-interference of the turntable servo system. The structure of the turntable servo system is as follows Figure 1 As shown. First, the host computer gives a control instruction and transmits it to the motion controller through the bus. The motion controller calculates the corresponding control quantity and outputs the control signal to the motor driver. The motor driver drives the brushless DC motor to drive the turntable to rotate. At the same time, the sensor on the turntable continuously monitors the motion state of the turntable, and converts it into an electrical signal to feed back to the motion controller, so that the BLDC rotates in the direction of reducing the error, realizing precise control of the turntable servo system.
[0028] The construction process of a servo control method based on deep reinforcement learning is as follows:
[0029] Step 1: Construct a mathematical model of the turntable servo system
[0030] In order to achieve more accurate dynamic analysis and modeling, the system is simplified into a dual-inertia system model of BLDC and turntable. Figure 2 As shown. Among them, T M 、T L is the motor torque and turntable torque (N·m); J M , J L is the motor moment of inertia and turntable moment of inertia (kg·m 2 );ω M ,ω L is the motor angular velocity and the turntable angular velocity (rad / s); C r , K r is the torsional viscous damping coefficient (N·m / (rad / s)) and the torsional stiffness coefficient (N·m / rad); and the torque formula generated by the transmission shaft is: Among them, T r 、T c are the torsional elastic damping torque and the torsional viscous damping torque (N·m); the dynamic model of the dual inertia system is as follows: Figure 3 As shown in the figure, the state equation of the turntable servo system can be deduced from the dynamic model as follows: in, C=[1 0 0] (15) x=[θ M T r θ L ] T (16) Among them, θ M is the motor angular displacement; θ L is the angular displacement of the turntable (rad); according to Kirchhoff's voltage law, the dynamic equilibrium equation of the BLDC armature circuit is: Among them, U a is the control voltage of the motor (V); I a is the armature winding current (A); R a is the equivalent resistance of the armature winding (Ω); E a is the armature winding back EMF (V); L a is the motor armature inductance (H); and the motor torque equation is: T M =K t Ia (18) Among them, K t is the motor torque coefficient (N·m / A); and the transfer function from the motor control voltage to the motor angular velocity is: Among them, K e is the back electromotive force constant (V / (rad·s -1 ));
[0031] Step 2: Build the Deep Deterministic Policy Gradient (DDPG) algorithm network
[0032] The DDPG algorithm is a deep reinforcement learning algorithm based on the heuristic Actor-Critic method. The Actor network is responsible for learning strategies and outputting actions. To improve system performance, the Critic network is responsible for evaluating the value. Figure 4 As shown, the Actor network is in state space As input, with action a n (t) = μ(S t |θ μ ) is the output. The Critic network is based on S t and a n (t) as input, Q(S t ,a t )=Q(S t ,μ(S t |θ μ )|θ Q ) is the output. The structures of the Actor network and the Critic network are both one input layer, one output layer and three hidden layers. In order to avoid the problems of gradient saturation and gradient disappearance, the ReLU function (Rectified Linear Unit) is used as the hidden layer activation function, and the Tanh function (Hyperbolic Tangent) is used as the output layer activation function to improve the network learning efficiency. The Actor network has 300 hidden layer neurons, and the Critic network has 400 hidden layer neurons.
[0033] Step 3: Constructing the Turntable Servo System Control Method
[0034] Specific control process such as Figure 5 As shown, first the host computer gives the ideal angular displacement and angular velocity control instructions and Then the system continuously collects the actual angular displacement θ of the turntable L and angular velocity ω L To obtain the turntable angular displacement error in real time Angular velocity error The DDPG algorithm dynamically optimizes the parameters of the FOPID controller based on these errors to drive the BLDC to drive the turntable to rotate in the direction where the tracking error continues to decrease until the system reaches a stable state. The sampling time is set to 0.1ms. Among them, K P1 ,K I1 ,K d1 ,γ 1 , is the parameter of the position loop FOPID controller, K P2 ,K I2 ,K d2 ,γ 2 , is the parameter of the speed loop FOPID controller, K P3 ,K I3 ,K d3 ,γ 3 , are the parameters of the current loop FOPID controller.
[0035] Step 4: Apply the designed control method to the tracking task of the turntable servo system
[0036] After constructing the control method of DDPG FOPID based on the above three steps, the specific control method is applied to the turntable servo system to achieve the control purpose of autonomous intelligent optimization in a complex working environment. Matlab and Python joint simulation is used to compare the tracking performance of the method of the present invention with the traditional control methods based on GA PID, PSO PID, and Q-learning PID. The tracking performance of the four control methods in the turntable servo system tracking task is quantitatively analyzed through the objective function f. Among them, the design objective function is the absolute error integral f IAE And the square error integral f ISE The weightings are as follows: f=ω 1 f IAE +ω 2 f ISE (twenty two) Among them, ω 1 =ω 1 =0.5;
[0037] Under ideal conditions without disturbance and noise, the present invention uses a 2rad step response signal as the ideal angular displacement control instruction. Tracking simulation is performed, and the tracking curves of the angular displacement of the turntable servo system under different control methods are as follows Figure 6 (a) shows the error curve. Figure 6 (b) is shown. The angular velocity tracking curve is shown in Figure 7 (a) shows the error curve. Figure 7 (b). The performance indexes f of GA PID, PSO PID, Q-learning PID and the control method of the present invention are 0.1212, 0.0972, 0.0789 and 0.0584 respectively. The simulation results show that the control method based on deep reinforcement learning shows more excellent tracking performance under ideal conditions, among which the DDPG FOPID control method obtains the best result in the performance index evaluation;
[0038] Since the influence of disturbance on the tracking performance of the turntable servo system cannot be ignored, the present invention uses the sinusoidal signal as the ideal angular displacement control instruction. A 1.2sin(60t) disturbance is applied to the turntable servo system for tracking simulation to verify the robustness of the proposed control method. The tracking curves of the angular displacement of the turntable servo system under different control methods are shown in Figure 2. Figure 8 (a) shows the error curve. Figure 8 (b) is shown. The angular velocity tracking curve is shown in Fig. 9 (a) shows the error curve. Fig. 9 (b) is shown. The performance indexes f of GAPID, PSO PID, Q-learning PID and the control method of the present invention are 0.2405, 0.288, 0.1233 and 0.0835 respectively. The simulation results show that the DDPG FOPID control method has excellent anti-interference performance compared with other control methods.
[0039] Since external noise is also an important factor affecting the stability of the turntable servo system, the present invention uses square wave signals as ideal angular displacement control instructions. The random OU noise of random (-0.02, 0.02) is applied to the turntable servo system for tracking simulation. The tracking curves of the angular displacement of the turntable servo system under different control methods are as follows: Fig.10 (a) shows the error curve. Fig.10 (b) is shown. The angular velocity tracking curve is shown in Fig.11 (a) shows the error curve. Fig.11 (b). The performance indexes f of GA PID, PSOPID, Q-learning PID and the control method of the present invention are 0.1239, 0.1242, 0.0902 and 0.0421 respectively. The simulation results show that the DDPG FOPID control method exhibits outstanding anti-noise performance;
[0040] When external disturbance and random OU noise exist at the same time, the present invention uses the triangular wave signal as the ideal angular displacement control instruction. Tracking simulation is performed, and the disturbance of sin(100t) and random OU noise of random(-0.5, 0.5) are applied to the turntable servo system. The tracking curves of the angular displacement of the turntable servo system under different control methods are shown in the figure below. Fig.12 (a) shows the error curve. Fig.12 (b) is shown. The angular velocity tracking curve is shown in Fig.13 (a) shows the error curve. Fig.13 (b). The performance indexes f of GA PID, PSO PID, Q-learning PID and the control method of the present invention are 0.01622, 0.0515, 0.0149 and 0.0103 respectively. The simulation results show that under the condition of the coexistence of external interference and noise, the DDPGFOPID control method still shows a more stable tracking performance compared with other control methods, which further verifies the robustness of the proposed control method.
[0041] In summary, the present invention designs a servo control method based on deep reinforcement learning DDPG algorithm and applies it in a turntable servo system. First, a nonlinear mathematical model of the turntable servo system is established based on the dual-inertia system dynamics model. Then, the DDPG algorithm based on the Actor-Critic framework is combined with the FOPID controller to improve the control performance and robustness of the turntable servo system under complex dynamic conditions. Finally, the tracking performance of the proposed control method is verified by joint simulation. The simulation results show that the tracking accuracy and anti-interference performance of the proposed control method in the tracking task are significantly better than those of the GAPID, PSO PID and Q-learning PID control methods.
[0042] For professionals familiar with the technical field, the above description is only a preferred embodiment of the present invention. However, the protection scope of the present invention is not limited to the disclosed technical scope. Any equivalent replacement or change made according to the technical solution and concept of the present invention should be included in the protection scope of the present invention.
Claims
1. A turntable servo system control method based on deep reinforcement learning, Features: A turntable simulation model based on the fractional-order proportional-integral-differential (FOPID) controller and the deep deterministic policy gradient (DDPG) control algorithm was built. On the basis of FOPID control, the state space and action settings of deep reinforcement learning were determined to improve the tracking accuracy and anti-interference ability of the turntable. The system was modeled using the joint simulation platform and the controller parameters were tuned using the DDPG algorithm. The specific steps include the following: (1) The mathematical model of the brushless DC motor (BLDC) is introduced, and the dual-inertia system dynamics model of the turntable and the motor is constructed to establish the nonlinear mathematical model of the turntable servo system; (2) Based on the mathematical model of the turntable servo system, a model-free FOPID controller is constructed; (3) Design FOPID control method and algorithm network based on DDPG algorithm; (4) The designed control method is applied to the tracking task of the turntable servo system. Through the powerful online learning ability of deep reinforcement learning, more accurate and stable tracking can be achieved under complex dynamic conditions.
2. According to the turntable servo system control method based on deep reinforcement learning according to claim 1, It is characterized in that (1) specifically includes the following: The torque formula of the transmission shaft of the dual inertia system model is: Among them, T r , T c is the torsional elastic damping torque and torsional viscous damping torque (N·m); C r , K r is the torsional viscous damping coefficient (N·m / (rad / s)) and the torsional stiffness coefficient (N·m / rad); ω M ,ω L is the motor angular velocity and the turntable angular velocity (rad / s); the state equation of the turntable servo system is: in, C=[1 0 0] (6) x=[θ M T r i L ] T (7) Among them, θ L ,θ M is the angular displacement of the turntable and the motor (rad); J M , J L is the motor moment of inertia and turntable moment of inertia (kg·m 2 );T M , T L is the motor torque and turntable torque (N·m); According to Kirchhoff's voltage law, the dynamic balance equation of the BLDC armature circuit is: Among them, U a is the control voltage of the motor (V); I a is the armature winding current (A); R a is the equivalent resistance of the armature winding (Ω); E a is the armature winding back EMF (V); L a is the motor armature inductance (H); and the motor torque equation is: T M =K t I a (9) Among them, K t is the motor torque coefficient (N·m / A).
3. According to the turntable servo system control method based on deep reinforcement learning according to claim 1, It is characterized in that (2) specifically includes the following: The FOPID controller makes the system more adaptable to nonlinear and complex dynamic characteristics by using fractional calculus. Its mathematical model is: Among them, K P is the proportionality coefficient; K I is the integral coefficient; K d is the differential coefficient; γ is the fractional-order integral coefficient; is the fractional differential coefficient.
4. According to the turntable servo system control method based on deep reinforcement learning according to claim 1, It is characterized in that (3) specifically includes the following: The control process of the turntable servo system is as follows: first, the host computer gives the ideal angular displacement and angular velocity control instructions and Then the system continuously collects the actual angular displacement θ of the turntable L and angular velocity ω L To obtain the turntable angular displacement error in real time Angular velocity error The DDPG algorithm dynamically optimizes the parameters of the FOPID controller based on these errors to drive the BLDC to rotate the turntable in the direction of decreasing tracking errors until the system reaches a stable state, and the sampling time is set to 0.1ms; In the DDPG algorithm, the Actor network is responsible for learning strategies and outputting actions To improve system performance, the Critic network is responsible for evaluating the value, where K P1 ,K I1 ,K d1 ,γ 1 , is the parameter of the position loop FOPID controller, K P2 ,K I2 ,K d2 ,γ 2 , is the parameter of the speed loop FOPID controller, K P3 ,K I3 ,K d3 ,γ 3 , are the parameters of the current loop FOPID controller; The structures of the Actor network and the Critic network are both one input layer, one output layer and three hidden layers. In order to avoid the problems of gradient saturation and gradient disappearance, the ReLU function (Rectified Linear Unit) is used as the hidden layer activation function, and the Tanh function (Hyperbolic Tangent) is used as the output layer activation function to improve the network learning efficiency. The Actor network has 300 hidden layer neurons, and the Critic network has 400 hidden layer neurons.
5. According to the turntable servo system control method based on deep reinforcement learning according to claim 1, It is characterized in that (4) specifically includes the following: After constructing the control method of DDPG FOPID, the specific control method is applied to the turntable servo system to achieve the control purpose of autonomous intelligent optimization in complex working environments. The anti-interference and anti-noise tracking simulation of the turntable servo system is carried out using the joint simulation platform, and four groups of simulation experiments are designed to verify the robustness of the proposed control algorithm tracking. The tracking performance of the four control methods in the turntable servo system tracking task is quantitatively analyzed by the objective function f, where the design objective function is the absolute error integral f IAE And the square error integral f ISE The weightings are as follows: f=ω 1 f IAE +oh 2 f ISE (13) in, is the turntable angular displacement error (rad); is the turntable angular velocity error (rad / s); ω 1 =ω 1 =0.5.
Citation Information
Cited By
Rotary table tracking error characteristic analysis and control method and device
CN119512233A
Simulation turntable control method and device based on data driving and auto-disturbance rejection fusion
CN120233698A
Servo controller parameter adjustment method and system based on deep reinforcement learning
CN121978896A
A servo controller parameter adjustment method and system based on deep reinforcement learning
CN121978896B
