Next Article in Journal
Fault Identification Method for Photovoltaic Power Grids Based on an Improved GABP Neural Network and Fuzzy System
Previous Article in Journal
Statistical Evaluation of Alpha-Powering Exponential Generalized Progressive Hybrid Censoring and Its Modeling for Medical and Engineering Sciences with Optimization Plans
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Physical Information-Driven Optimization Framework for Neural Network-Based PI Controllers in PMSM Servo Systems

School of Electrical Engineering, Southeast University, Nanjing 210096, China
*
Author to whom correspondence should be addressed.
Symmetry 2025, 17(9), 1474; https://doi.org/10.3390/sym17091474
Submission received: 26 July 2025 / Revised: 1 September 2025 / Accepted: 5 September 2025 / Published: 7 September 2025
(This article belongs to the Special Issue Symmetry/Asymmetry in Intelligent Control System)

Abstract

In industrial scenarios, the control of permanent magnet synchronous servo motors is mostly achieved with proportional–integral controllers, which require manual adjustment of control parameters. At the same time, the performance of the servo system is usually disturbed by internal characteristic changes, load changes, and external factors. Therefore, preset control parameters may not achieve the desired optimal performance. Many scholars use intelligent algorithms, such as neural networks, to adaptively tune control parameters. However, the offline pre-training of neural networks is often time- and resource-consuming. Due to the lack of a model pre-training process in the neural network online self-tuning process, randomly setting the initial network weight seriously affects the position tracking performance of the servo control system in the start-up phase. In this paper, the physical model and the traditional frequency domain-tuning method of the three-closed-loop permanent magnet synchronous servo system are analyzed. Combined with the neural network PI control parameter self-tuning method and physical symmetry, a physical information-driven optimization framework is proposed. To demonstrate its superiority, the neural network PI controller and the proposed optimization framework are used to control the single-axis sine wave trajectory. The results show that the optimization framework proposed can effectively improve the position tracking control performance of the servo control system in the start-up phase by setting the threshold of the servo control parameters, reduce the position tracking control error to 0.75 rads in the start-up phase, and reduce the position tracking drop caused by a sudden load by 25%. This method achieves the independent optimization adjustment of control parameters under position tracking control, providing a reference for the intelligent control of permanent magnet synchronous servo motors.

1. Introduction

Permanent magnet synchronous motors (PMSMs) are widely utilized in various high-demand industrial applications—such as servo robots and electric vehicle steering systems—due to their high reliability, high power density, excellent controllability, and relatively low maintenance costs. However, the nonlinear and cross-coupling characteristics of PMSMs make their performance highly sensitive to variations in external load torque and system moment of inertia [1]. To achieve high-performance control in servo systems centered on PMSMs, engineers must establish precise mathematical models of the motor and determine key mechanical parameters, such as the load moment of inertia and viscous damping coefficient. These parameters are essential for selecting appropriate control settings for proportional–integral (PI) controllers. The modeling and dynamic updating of such systems pose significant challenges, particularly in industrial environments, where parameter identification using state observers is often affected by unmodeled nonlinear disturbances [2].
To address these challenges, scholars have explored data-driven offline learning methods for intelligent control of servo systems. These data-driven approaches bypass the need for physical models or domain-specific knowledge by employing neural networks to directly learn motor characteristics from large-scale experimental datasets [3,4,5]. This enables the effective capture of nonlinear or complex system behaviors [6]. Nevertheless, the performance of such methods heavily relies on the quantity and quality of training data, resulting in reduced control reliability when data are limited.
Building upon the symmetry of physical information and the structural characteristics of physical neural networks (PINNs), some researchers have enhanced the reliability of neural network controllers and state observers in servo systems by incorporating reliability evaluation functions. For instance, the authors of [7] explored the symmetry principle of physical information based on the mechanical structure of flexible manipulators. To develop a more efficient, safe, and reliable neural network-based servo control system, the authors of [8] introduced a method that integrates PINN with both offline learning and online parameter updating. The authors of [9] proposed a deep reinforcement learning (DRL) method based on position, velocity, and heading.
Many scholars have noted that in practical industrial applications, it is challenging to obtain real-time physical information from servo systems, and the computational demands associated with processing such information are substantial. To address these challenges, researchers have integrated numerical optimization algorithms with neural network-based proportional integral derivative (PID) controllers or modified neural network architectures to fully exploit their symmetric properties, thereby enhancing the control performance of servo systems. In reference [10], the weight iteration process of a neural network-based servo controller was optimized using linear matrix inequality (LMI) techniques combined with Markov jump variables. The symmetric characteristics of the optimized weight iteration were utilized to ensure system stability across two motion states—coupled speed and torque motion. In reference [11], a cross-parallel optimization algorithm framework was proposed by leveraging the exploratory capabilities of the Harris hawk optimization (HHO) algorithm and the search capabilities of the sine–cosine algorithm (SCA). The authors of [12] introduced a nature-inspired polar fox optimization algorithm (PFA). As a new success in intelligent parameter tuning, the PFA can improve engineering tuning performance.
Currently, offline pre-training methods are widely used to train neural network-based motor controllers within the domain of intelligent motor control [13]. Although various optimization strategies proposed by researchers have significantly enhanced the efficiency of neural network pre-training and reduced the dependency on large training datasets for intelligent servo controllers [14], limited research has been conducted on the online self-tuning of control parameters in neural network controllers. In practical industrial production settings, intelligent servo controllers still require multiple rounds of pre-training, resulting in high overall time and resource costs. An evaluation of the existing methods is shown in Table 1.
This paper presents an in-depth investigation into the online self-tuning mechanism of neural network-based PI controllers for servo systems, integrating methodologies from both servo system design and intelligent control theory. The primary innovations and contributions are summarized as follows:
(1)
A dynamic model of the PMSM servo system is established, incorporating operational mechanisms, drive components, and control strategies. Based on this model, a frequency domain tuning method for PI controller parameters in a three-loop servo system is derived.
(2)
Leveraging the frequency domain tuning method and the inherent symmetry in the tuning formula of the servo system’s PI parameters, this study proposes an online self-tuning optimization framework for neural network-based PI controllers, driven by physical information. This framework aims to enhance the position tracking performance of the servo system during the initial operation phase when using online neural network PI controllers.
(3)
The anti-disturbance performance of the servo control system under varying load current conditions is evaluated and compared between the proposed optimization framework and conventional neural network-based PI controllers.
The remainder of this paper is structured as follows. Section 2 presents an analysis of the dynamic derivation process of the three-closed-loop permanent magnet synchronous servo control system, along with the frequency domain tuning methodology for its control parameters. Building upon this foundation, Section 3 introduces the fundamental principles underlying PI servo controller parameter self-tuning using a backpropagation neural network. Section 4 proposes an online self-tuning optimization framework for neural network PI controller parameters, driven by physical information, by incorporating the moment of inertia of the servo system. Section 5 provides simulation and experimental results to validate the enhanced performance of the proposed framework. Meanwhile, it addresses the limitations of the proposed approach, suggests potential directions for further improvement, and outlines future development trends in the field of online self-tuning control parameters for neural network-based PI controllers in servo systems. Finally, Section 6 concludes this paper by summarizing the key innovations and contributions.

2. Relevant Theoretical Foundation

2.1. Three-Closed-Loop Permanent Magnet Synchronous Servo System

Firstly, a mathematical model of a surface-mounted permanent magnet synchronous motor (SPMSM) was established. Under the assumptions of ignoring space harmonics, magnetic circuit saturation, core losses, and variations in winding parameters, the current equation of the SPMSM in the d−q coordinate system was derived using Clarke transformation and Park's transformation, as presented in Equation (1).
d d t i d = R s L d i d + L q L d ω e i q + 1 L d u d d d t i q = R s L d i d 1 L q ω e ( L d i d + Ψ f ) + 1 L q u q
where i d and i q denote the dq-axis currents; u d   a n d   u q represent the dq-axis voltages; L d  and  L q refer to the dq-axis inductances; R s is the resistance of each phase in the motor; ω e denotes the motor’s electromechanical angular velocity; and Ψ f denotes the rotor permanent magnet flux linkage.
Due to the equality of the quadrature and direct axis reactance in the SPMSM, the motor torque balance equation can be simplified to Equations (2) and (3):
T e = 3 2 p n i q Ψ f
T e T l B v ω m = J d ω m d t
where T e represents the electromagnetic power, T l represents the load torque, ω m denotes the rotor’s mechanical angular velocity, J is the moment of inertia, B v is the coefficient of viscous friction, and p n is the number of motor poles.
If the quadrature axis currents in Equation (1) are completely decoupled,
u d 0 = u d + ω e L q i q = R s i d + L d d d t i d u q 0 = u q ω e ( L d i d + Ψ f ) = R s i q + L q d d t i q
where u d 0 and u q 0 are D-axis and Q-axis voltages following current decoupling.
Taking the Laplace transform of Equation (4) gives
u d 0 ( s ) u q 0 ( s ) = R s + s L d 0 0 R s + s L q i d ( s ) i q ( s )
Using the conventional PI regulator combined with the feedforward decoupling control strategy, the voltage of the dq-axis can be obtained as follows:
u d * = ( K p d + K i d s ) ( i d * i d ) ω e L q i q u q * = ( K p q + K i q s ) ( i q * i q ) + ω e ( L d i d + Ψ f )
where K p d and K p q are proportional gains of the PI controller in the current loop. K i d and K i q are integral gains of the PI controller in the current loop.
In this experiment, the vector control scheme with i d = 0 is applied to the SPMSM. A position–speed–current triple-closed-loop PI control system is established in this paper, and the corresponding control block diagram of the system is presented in Figure 1. n stands for the motor speed in rpm.
The configuration of the PI control parameters for each regulator illustrated in the figure directly influences the overall performance of the control system. In this study, the control parameters for the current loop and position loop are set to fixed values based on current feedback decoupling, while the parameters of the speed loop are intelligently self-tuned to observe and analyze the system’s position tracking performance.

2.2. Current, Speed, and Position Loop PI Control Parameter Tuning Method

In the SPMSM, where L d = L q , a zero-pole cancellation technique is employed, and the transfer function of the simplified current loop PI controller is established, as shown in Equation (7).
G p d ( s ) = 1 L d s + R s
When the control strategy of i d * = 0 is adopted and the motor is assumed to start under a no-load condition, Equations (2) and (3) can be obtained as follows [15]:
d ω m d t = 1.5 p n Ψ f J i q B v J ω m
By allocating the poles of Equation (8) to the desired closed-loop bandwidth β, the transfer function of the speed with respect to the Q-axis current can be obtained as follows:
ω m ( s ) = 1.5 p n Ψ f J ( s + β ) i q ( s )
If the traditional PI regulator is used, the expression of the speed loop controller is as follows:
i q * = ( K p ω + K i ω s ) ( ω m * ω m ) ( β J B v ) 1.5 p n Ψ f ω m
Therefore, the parameters K p ω and K i ω of the PI regulator can be set using the following formula [16]:
K p ω = β J 1.5 p n Ψ f K i ω = β K p ω
where β is the desired frequency band bandwidth of the speed loop.
In general, a wider bandwidth of the speed control loop results in a faster convergence speed of the control system. However, it also leads to a greater overshoot. In industrial applications, engineers typically determine the bandwidth of the speed loop in servo systems based on the system’s step response characteristics and accumulated engineering experience.
If an intelligent algorithm is not used to automatically tune control parameters, this task typically requires experienced engineers to perform manual debugging. The performance of the servo system heavily depends on the expertise of the debugging engineer. Furthermore, mechanical parameters such as the load moment of inertia and load torque tend to vary with operational conditions, making it challenging to ensure that manually configured control parameters remain optimal at all times. Consequently, the control performance of the servo system is significantly constrained.
The position loop in this paper uses proportional control. The proportional control parameter of the position loop in the servo system used in this study is set to 10.

3. Neural Network-Based PI Controller

In this paper, an online intelligent tuning speed loop PI controller is employed to enhance the speed response capability of the position control system, thereby improving the overall position control performance of the servo system. The relationship among the electrical angle θ e of the servo motor, the electrical angular velocity ω e , and the mechanical angular velocity ω m is defined by Equation (12):
d d t θ e = ω e ω e = p n ω m
Compared with the traditional PI controller, the BPNN-PI controller uses a BPNN to dynamically adjust the proportional gain K p and integral gain K i in real time. This enables the controller to adapt control parameters in response to changes in different operating conditions. As a result, the BPNN-PI controller offers significant advantages over the conventional PI controller. Figure 2 illustrates the structure of the BPNN-PI controller.
The backpropagation neural network used for self-tuning consists of an input layer with four neurons, a hidden layer with four neurons, and an output layer with two neurons. During each control cycle, the network receives an input signal vector e, which includes the current system speed output ω e (k), the reference setpoint ω r e f k , the error between the setpoint and the system output ω e r r o r ( k ) , and an error integral term incorporating a forgetting factor. Here, the symbol k denotes the current time step.
The input vector input is defined in Equation (13):
input = ω e ( k ) ω r e f ( k ) ω e r r o r ( k ) n e t int ( k ) = ω e ( k ) ω r e f ( k ) ω r e f ( k ) ω e ( k ) ω r e f ( k ) ω e ( k ) + η * n e t int ( k 1 ) X i = input σ N
where Netint represents the system control error integral term incorporating a forgetting factor, η denotes the integral forgetting factor, and T s signifies the system control period. The branch of the BPNN is considered the primary path. Input is the input vector, and σ N is the normalization vector; thus, the real input of the network will remain numerically small and be similar under different working conditions. X i is the real input.
The neural network in this study uses an iterative process of forward and backward propagation to determine the controller parameters, which are represented as the output terms of the network. The network’s depth and width are defined by the number of layers and the number of neurons in the hidden layer, respectively. While deeper and wider architectures generally enhance model performance, they also increase the risk of overfitting and significantly raise computational demands due to the growth in nonlinear operations. Given that a four-layer perceptron has been demonstrated to approximate arbitrary functions [17], and considering the practical constraints of online computation within a microcontroller, a network structure with a single hidden layer is adopted in this paper. It is worth noting that increasing the number of training iterations can enhance the performance of networks with a limited number of neurons. Although networks with fewer neurons consume less memory, they often require higher computational performance from the execution platform due to the increased number of iterations. Therefore, the number of neurons selected must strike a balance between hardware resource limitations and control performance requirements. Based on this consideration, the hidden layer of the neural network used in this study consists of four neurons.
Activation functions are critical in determining the nonlinear approximation capabilities of neural networks. The activation functions employed in the hidden layers of the network in this study are selected using Equation (14).
g 1 ( x ) = e x e x e x + e x
Given that the target control parameter exceeds zero, the activation function for the output layer is selected using Equation (15).
g 2 ( x ) = 1 1 + e x
Let the weights of the hidden layer in the neural network be W i , the input to the hidden layer be H i , and the activation function of the hidden layer be g 1 ( x ) . Let the output of the hidden layer be H o . Similarly, let the weights of the output layer be W o , the input and output of the output layer be O i and O o , respectively, and the activation function of the output layer be g 2 ( x ) . Based on these definitions, the forward propagation process of the neural network can be calculated using Equation (16).
H i = W i X H o = g 1 ( H i ) = g 1 ( W i X ) O i = W o H o O o = g 2 ( O i ) = g 2 ( W o g 1 ( W i X ) )
The inverse normalization calculation vector σ R N = σ N 1 is applied to process the output vector of the network [18,19], thereby obtaining the controller parameters K P and K i , as shown in Equation (17).
K = K p K i = O o σ R N
where G c (x) represents the output of the PI controller and u(k) denotes the control input provided to the motor being controlled in Equation (18).
u ( k ) = G c ( K , input )
where G s y s (x) represents the servo system model in Equation (19).
ω e ( k ) = G s y s ( u ( k ) )
The loss function of the system is formulated as the cross-entropy difference between the desired output and the actual output, as shown in Equation (20):
J L o s s ( k ) = 1 2 ( ω r e f ( k ) ω e ( k ) ) 2 = 1 2 ω e r r o r 2 ( k )
Backpropagation is implemented by updating each weight in the neural network to minimize the difference between the actual output and the target output provided by the system. During the backpropagation process, the derivative of the loss function J L o s s ( k ) with respect to the network output is computed, as shown in Equation (21):
J L o s s ( k ) O o = J L o s s ( k ) ω e ( k ) ω e ( k ) u ( k ) u ( k ) K K O o
The derivative of the loss function J L o s s ( k ) with respect to the network weights in both the hidden and output layers is expressed as Equation (22):
J L o s s ( k ) W o = J L o s s ( k ) O o O o O i O i W o J L o s s ( k ) W i = J L o s s ( k ) O o O o O i O i H o H o H i H i W i
The iterative formulas for the network weights are shown in Equation (23).
W i ( k + 1 ) = W i ( k ) η l r J L o s s ( k ) W i ( k ) W o ( k + 1 ) = W o ( k ) η l r J L o s s ( k ) W o ( k )
The learning rate of the neural network is η l r .

4. Physical Information-Driven Optimization Framework

To address the issue of degraded system performance during the initial phase caused by the randomness of the network initial values without pre-training a neural network model, this paper proposes a physical information-driven neural network PI controller optimization framework for servo systems. Based on the frequency domain tuning method for speed loop PI control parameters presented in Equation (11) of Section 2, the threshold of the neural network output layer is determined using Equation (24).
K p ω max = 4 β J 1.5 p n Ψ f K p ω min = 0.5 β J 1.5 p n Ψ f K i ω max = 4 β 2 J 1.5 p n Ψ f K i ω min = 0.5 β 2 J 1.5 p n Ψ f
The bandwidth of the speed loop in the experiment is set to 30 Hz. The moment of inertia of the servo system can be obtained either through a state observer or based on offline measurements.
In this paper, the acceleration of network weight iteration during the backpropagation process is achieved by directly constraining the output value of the neural network. This approach also enhances the position tracking performance of the servo system during the start-up phase. The optimization framework of the BPNN-PI controller, driven by system inertial physical information, along with the iterative optimization strategy for network weights, is illustrated in Figure 3 and Figure 4, respectively.
In this study, the backpropagation process of the neural network is influenced by constraining the output of the network’s output layer.
In view of the limited disturbance rejection capability of the proposed method, a load torque acquisition module is incorporated into the BPNN-PI controller optimization framework, which is driven by physical information related to system inertia. By compensating for the controller output based on the acquired load torque, the system’s anti-disturbance performance can be significantly enhanced. The load torque can be either estimated in real time using an observer or predicted in advance based on the system’s operational conditions.
Within the optimization framework introduced in this study, the Luenberger observer is employed to estimate the load torque of the servo system. This estimation is conducted in accordance with the mechanical motion equation of the PMSM.
Assuming that the sampling frequency is high enough to ensure that the load torque T l does not change in period T s , the load torque can be considered constant in this sampling period. According to Equation (3), the system’s state space model is represented by Equation (25).
d ω m d t = B v J ω m T l J + T e J d T l d t = 0
The observed state variable is selected as follows:
x ^ = ω ^ m T ^ l
Following the derivation process, the Luenberger observer takes the following form:
d d t ω ^ m Τ ^ l = B v J 0 1 J 0 ω ^ m Τ ^ l + 1 J 0 Τ e + L 1 L 2 [ ω m ω ^ m ]
In Equation (27), L 1 and L 2 are the observer gains. By combining Equation (27) with the motor motion equation, the estimated equation of load torque can be obtained as follows:
T ^ l = T e ( s J + B ) ω ^ m = ( ω m ω ^ m ) ( L 1 J L 2 s )
To ensure the convergence of the observer, the following conditions must be satisfied:
λ I B v J L 1 1 J L 2 0 = 0 Re [ λ ] < 0
To ensure the convergence of the observer, the following conditions must be satisfied:
L 1 > B v J L 2 < 0
The poles are configured as [−50, −50j] and [−50, +50j], with L = [100, −73].
The self-tuning optimization framework for the control parameters of the BPNN-PI controller, incorporating a load torque compensation link in the servo system, is illustrated in Figure 5.
In the block diagram,
i q l o a d = 2 T l 3 p n Ψ f i q r e f = i q * + i q l o a d

5. Simulation and Experimental Results

The experiments conducted in this study are based on a 70 W servo control system. The motor control experimental platform comprises a motor-to-drag system, a motor controller, a power supply unit, and an upper-level control mechanism. Communication between the motor controller and the host computer is achieved via Ethernet, enabling remote control functionality. The motor-to-drag system consists of a PMSM, which functions as the servo motor, and a direct current (DC) motor, which serves as the load motor. A position sensor is integrated into the system to facilitate accurate measurement. The parameters of the PMSM and the DC motor used in the servo system are listed in Table 2. The control algorithm is implemented using a TMS320F28069 microcontroller operating at a frequency of 90 MHz, with a control loop frequency of 5 kHz. An illustration of the experimental platform is presented in Figure 6. The simulation experiments in this paper were implemented within the MATLAB 24.2 R2024b/Simulink simulation environment. For the physical experiments, the software platforms included Code Composer Studio 10.1.0 and MATLAB 24.2 R2024b/Real-Time Simulation. The corresponding simulation results, experimental data, and source codes are provided in the Supplementary Materials.
As previously mentioned, a PI controller is employed for both the current loop and speed loop of the PMSM, while a proportional controller is utilized for the position loop. A neural network is integrated to enable intelligent self-tuning of the control parameters within the PMSM speed loop PI controller.
To validate the proposed control methodology, simulations and experiments were conducted as follows: The initial weights of the backpropagation neural network were randomly initialized, as no pre-training of the neural network model was performed. The position tracking performance of the NN-based PI controller and the proposed optimization framework was compared under a sinusoidal position reference signal with a frequency of 5 Hz and an amplitude of π radians.
The position tracking simulation results for the three-closed-loop servo control system utilizing the BPNN PI controller are presented in Figure 7, Figure 8 and Figure 9.
Using the BPNN-PI controller, the system position tracking waveform is basically fitted to the given position control signal.
Since the given position control signal is a dynamic index, the position tracking error shows periodic changes, and the position tracking error in the starting phase reaches 0.3 rads, which is much larger than that in the stable phase (0.07 rads).
The proportional control parameters and integral control parameters of the speed ring set by the neural network change with the given model of the dynamic position control.
A sinusoidal position control signal with a frequency of 5 Hz and an amplitude of π radians was applied. The position tracking simulation results of the three-closed-loop servo control system based on the proposed optimization framework are shown in Figure 10 and Figure 11.
The position tracking control error of the system during the initial stage is reduced from 9.741% to 3.8%, thereby preliminarily validating the effectiveness of the proposed method. By setting the control parameter tuning threshold of the neural network PI controller based on physical information, the position control performance of the servo system during the start-up phase can be significantly improved.
Although adjusting the output layer threshold of the neural network can effectively enhance the position tracking performance of the servo system during the initial phase, the system’s ability to resist external load torque disturbances is notably diminished compared to the BPNN-PI controller without threshold setting. This is primarily because the integral control parameters are constrained by the threshold.
In this study, a comparative simulation of the position tracking control performance of the servo system using the BPNN-PI controller and the improved framework was conducted under the original position control signal and a load torque of T N = 7 N∙m applied at 0.4 s. The simulation results for the BPNN-PI-based system are shown in Figure 12 and Figure 13.
The neural network PI controller has strong anti-disturbance performance because the integral control parameters can dynamically adapt to external load changes.
The system simulation waveform generated using the enhanced framework is presented in Figure 14 and Figure 15.
Because the setting threshold limits the self-tuning process of the integral control parameters of the neural network controller, the system is unstable after the sudden load disturbance.
The simulation results indicate that the BPNN-PI servo control system with a threshold becomes unstable when a large load torque is abruptly applied, and its anti-disturbance performance is significantly inferior to that of the standard BPNN-PI servo control system. The threshold BPNN-PI optimization framework with integrated load torque compensation was employed under the original position control signal. At 0.4 s, the position tracking response of the servo system under a sudden load torque of T N = 7 N∙m is illustrated in Figure 16 and Figure 17.
After the load torque compensation, the servo system has no instability after the sudden load, and its anti-disturbance ability is significantly improved.
The simulation results demonstrate that the anti-disturbance performance of the BPNN-PI optimization framework, which incorporates system inertia physical information, is significantly enhanced by adding load torque compensation. To ensure the safety of the experimental equipment, a sinusoidal position control signal with a frequency of 1 Hz and an amplitude of π radians was applied. The experimental results are presented in Figure 18 and Figure 19.
In the starting phase of the experimental motor, the position tracking error is large and reaches 1 rads at 0.6 s.
According to the experimental results, the improved framework proposed in this paper reduces the position tracking error from 1 radian to 0.75 radians during the start-up phase. At the same time, implementing the optimization framework can reduce the time required for the neural network to iterate to an optimal state by 0.5 s, which corresponds to approximately 1000 control cycles.
An external load current of 1.5 Amperes was abruptly introduced to conduct the disturbance rejection test. The corresponding experimental results are presented in Figure 20, Figure 21 and Figure 22.
The PI controller using the BPNN has a strong anti-disturbance performance, which shows a fluctuation of 0.7 rads after a sudden load and returns to the original tracking position after 20 s of iterative adjustment of the control parameters.
After setting the self-tuning threshold of the control parameter, the position of the system after the sudden load showed a drop of 0.4 rads.
After adding load torque compensation, the position tracking error of the system reduced to 0.3 rads within 3 s.
In summary, compared with the BPNN-PI controller, the proposed method demonstrates enhanced performance in position tracking control during the start-up phase by leveraging the learned physical information regarding the system’s moment of inertia. Furthermore, the anti-disturbance capability of the proposed approach is notably improved by incorporating load torque observation. After statistical analysis of experimental data, a comparison of experimental situations is shown in Table 3.
The proposed current optimization framework is based on physical information driven by the moment of inertia of the system, which primarily influences the neural network weight iteration process by setting a threshold during backpropagation. However, this approach lacks direct constraints on the weight iteration values, leading to repeated threshold crossings during the weight update process. As a result, there remains potential to further accelerate the neural network parameter iteration process.
Several scholars have conducted extensive research on the weight iteration process of neural networks. In reference [20], a DRL scheme was employed to select the optimal weighting factor online within the cost function of a predictive current controller for the finite control set model of a PMSM. In this approach, a metaheuristic-based artificial neural network was trained using system static data processed by a multi-objective genetic algorithm, which helped prevent weight iterations from entering undesirable numerical regions.
Moreover, the application of backpropagation neural networks faces challenges such as difficulty in selecting an appropriate network structure and high data requirements. To address these issues, various studies have been conducted. In reference [21], the black-winged kite optimization algorithm (BKA) was applied to optimize key parameters in variational mode decomposition (VMD), including decomposition times and maximum iteration times, as well as parameters in the BPNN, thereby significantly improving system stability. Some researchers have directly integrated intelligent algorithms with traditional control methods. For instance, in reference [22], model predictive control was combined with a neural network to achieve high-performance motor control. In reference [23], a torque controller incorporating a radial basis function neural network (RBFNN) compensator was proposed to mitigate the friction effects of a compliant tendon–sheath actuation (CTSA) system, effectively enhancing the tracking performance of the control system.
Looking ahead, future motor control strategies are expected to integrate intelligent algorithms, such as neural networks, with traditional control methods, like model predictive control, to further enhance the overall control performance of motor systems.

6. Conclusions

In this paper, we present an analysis of the implementation and optimization of a BPNN-PI controller for servo motor position control. The neural network iteration threshold is determined based on the physical characteristics of the motor’s moment of inertia, and the self-tuning process of the neural network control parameters is further optimized. Additionally, a load compensation module is introduced to enhance the system’s anti-disturbance performance. The proposed control framework is validated using MATLAB/Simulink simulations prior to hardware deployment. The servo system communicates with the host computer via a serial communication interface (SCI), enabling real-time monitoring and analysis of the optimization framework’s operational status. The overall system performance is evaluated using position control experiments.
The experimental results demonstrate that the proposed optimization framework outperforms the conventional BPNN-PI controller. Specifically, the framework achieves superior performance in key indicators and reduces the time required to reach the target position. The position tracking error during the start-up phase is reduced to 0.75 radians, and the position drop under sudden load conditions is minimized to 0.3 radians. It is important to emphasize that the evaluation is conducted objectively and is strictly based on experimental data.
Nevertheless, the current method for setting the threshold based on the system’s moment of inertia does not impose direct constraints on the neural network weight matrix. Therefore, there remains potential for further performance enhancement. Future research will focus on developing a neural network iterative constraint matrix grounded in system physical information to further improve control performance.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/sym17091474/s1, Compressed package S1: experiment data.

Author Contributions

Conceptualization, Z.S. and Y.H.; methodology, Z.S.; software, Z.S.; validation, Z.S. and Y.H.; formal analysis, Y.H.; investigation, Y.H.; resources, Y.H.; data curation, Z.S.; writing—original draft preparation, Z.S.; writing—review and editing, Z.S.; visualization, Z.S.; supervision, Z.S.; project administration, Z.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China (grant number 52277036).

Data Availability Statement

The data are contained within the Supplementary Materials. The original contributions presented in this study are included in the Supplementary Materials. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
PIProportional–integral
PIDProportional integral derivative
PMSMPermanent magnet synchronous motor
SPMSMSurface-mounted permanent magnet synchronous motor
DCDirect current
PINNPhysical neural network
BPNNBackpropagation neural network
NNNeural network
DRLDeep reinforcement learning
LMILinear matrix inequality
HHOHarris hawk optimization
SCASine–cosine algorithm
FNNFuzzy neural network
PFAPolar fox optimization algorithm
SCISerial communication interface
BKABlack-winged kite optimization algorithm
VMDVariational mode decomposition
RBFNNRadial basis function neural network
CTSACompliant tendon–sheath actuation

References

  1. Shi, S.; Guo, X.; Xu, S.; Min, H.; Dai, L. Recursive Higher Order Non-Singular Terminal Sliding Mode Control with Prescribed Convergence Time: Application to PMSM Servo Systems. IEEE Trans. Autom. Sci. Eng. 2025, 22, 17955–17966. [Google Scholar] [CrossRef]
  2. Bian, F.; Chien, Y.-R. PMSM Speed Control Based on Improved Adaptive Fractional-Order Sliding Mode Control. Symmetry 2025, 17, 736. [Google Scholar] [CrossRef]
  3. Brosch, A.; Hanke, S.; Wallscheid, O.; Bocker, J. Data-Driven Recursive Least Squares Estimation for Model Predictive Current Control of Permanent Magnet Synchronous Motors. IEEE Trans. Power Electron. 2021, 36, 2179–2190. [Google Scholar] [CrossRef]
  4. Kirchgassner, W.; Wallscheid, O.; Bocker, J. Data-Driven Permanent Magnet Temperature Estimation in Synchronous Motors With Supervised Machine Learning: A Benchmark. IEEE Trans. Energy Convers. 2021, 36, 2059–2067. [Google Scholar] [CrossRef]
  5. Zhang, Y.; Jin, J.; Huang, L. Model-Free Predictive Current Control of PMSM Drives Based on Extended State Observer Using Ultralocal Model. IEEE Trans. Ind. Electron. 2021, 68, 993–1003. [Google Scholar] [CrossRef]
  6. Qiu, W.; Zhao, X.; Tyrrell, A.; Perinpanayagam, S.; Niu, S.; Wen, G. Application of Artificial Intelligence-Based Technique in Electric Motors: A Review. IEEE Trans. Power Electron. 2024, 39, 13543–13568. [Google Scholar] [CrossRef]
  7. Tang, J.; Li, Y.; Chen, L.; Ma, J.; Chen, J.; Li, Z. Physical and Data-Driven Optimization for Thin-Walled Manipulator Based on Motion Reliability. IEEE/ASME Trans. Mechatron. 2025, 1–11. [Google Scholar] [CrossRef]
  8. Chen, Y.; Xiao, Y.; Ji, C.; Su, B. An Online Torque Prediction Method of PMSM Using PINNs. IEEE Access 2025, 1. [Google Scholar] [CrossRef]
  9. Escorza, O.; Garcia, G.; Fabregas, E.; Velastin, S.A.; Eskandarian, A.; Farias, G. Deep Reinforcement Learning Applied to a Spherical Robot for Target Tracking. IEEE Trans. Ind. Electron. 2025, 1–10. [Google Scholar] [CrossRef]
  10. Shamrooz, S.; Aslam, M.S.; Liu, H.; Bilal, H.; Vasilakos, A.V. Modeling of Asynchronous Mode-Dependent Delays in Stochastic Markovian Jumping Modes Based on Static Neural Networks for Robotic Manipulators. IEEE Trans. Autom. Sci. Eng. 2025, 22, 13398–13410. [Google Scholar] [CrossRef]
  11. Jiang, Y.; Jia, M.; Zhang, B.; Deng, L. Ship Attitude Prediction Model Based on Cross-Parallel Algorithm Optimized Neural Network. IEEE Access 2022, 10, 77857–77871. [Google Scholar] [CrossRef]
  12. Ghiaskar, A.; Amiri, A.; Mirjalili, S. Polar fox optimization algorithm: A novel meta-heuristic algorithm. Neural Comput. Appl. 2024, 36, 20983–21022. [Google Scholar] [CrossRef]
  13. Wu, C.; Cui, Z.; Xia, Q.; Yue, J.; Lyu, F. An Overview of Digital Twin Technology for Power Electronics: State-of-the-Art and Future Trends. IEEE Trans. Power Electron. 2025, 40, 13337–13362. [Google Scholar] [CrossRef]
  14. Li, Y. Optimization of PID Control over DC Servo Motor System based on BP Neural Networks. In Proceedings of the 2025 6th International Conference on Electrical, Electronic Information and Communication Engineering (EEICE), Shenzhen, China, 18–20 April 2025; pp. 1271–1278. [Google Scholar] [CrossRef]
  15. Fu, J.; Lu, X.; Yang, G. PID Control Parameter Tuning Method of Permanent Magnet Synchronous Motor Based on Improved AHP-BP Neural Network Algorithm. In Proceedings of the 2024 IEEE 6th International Conference on Civil Aviation Safety and Information Technology (ICCASIT), Hangzhou, China, 23–25 October 2024; pp. 1255–1262. [Google Scholar] [CrossRef]
  16. Pinzhi, Z.; Guijie, Y.; Yong, L. Third Harmonic Current Suppression Method of Five-phase Permanent Magnet Synchronous Motor Based on Double Synchronous Rotating Coordinate System. Proc. CSEE 2011, 31, 71–76. (In Chinese) [Google Scholar] [CrossRef]
  17. Irie; Miyake. Capabilities of three-layered perceptrons. In Proceedings of the IEEE 1988 International Conference on Neural Networks, San Diego, CA, USA, 24–27 July 1988; Volume 1, pp. 641–648. [Google Scholar] [CrossRef]
  18. Zheng, D.-D.; Pan, Y.; Guo, K.; Yu, H. Identification and Control of Nonlinear Systems Using Neural Networks: A Singularity-Free Approach. IEEE Trans. Neural Netw. Learn. Syst. 2019, 30, 2696–2706. [Google Scholar] [CrossRef] [PubMed]
  19. Yang, J.; Zhou, Q.; Xie, B. Application Research of Intelligent PID Parameter Optimization Algorithm for XY Linear Motor Motion Platform in Wire Bonder. In Proceedings of the 2024 25th International Conference on Electronic Packaging Technology (ICEPT), Tianjin, China, 7–9 August 2024; pp. 1–5. [Google Scholar] [CrossRef]
  20. Usama, M.; Salaje, A.; Chevet, T.; Langlois, N. Optimal Weighting Factors Design for Model Predictive Current Controller for Enhanced Dynamic Performance of PMSM Employing Deep Reinforcement Learning. Appl. Sci. 2025, 15, 5874. [Google Scholar] [CrossRef]
  21. Sun, Y.; Wang, Z.; Wang, J.; Li, Q. Short-Term Solar Photovoltaic Power Prediction Utilizing the VMD-BKA-BP Neural Network. Symmetry 2025, 17, 784. [Google Scholar] [CrossRef]
  22. Muratbakeev, E.; Kozhubaev, Y.; Novak, D.; Kuzmenko, E.; Yao, Y. Research of Control Systems and Predictive Diagnostics of Electric Motors. Symmetry 2025, 17, 751. [Google Scholar] [CrossRef]
  23. He, H.; Xi, R.; Gong, Y. Performance Analysis of a Robust Controller with Neural Network Algorithm for Compliance Tendon–Sheath Actuation Lower Limb Exoskeleton. Machines 2022, 10, 1064. [Google Scholar] [CrossRef]
Figure 1. Control block diagram of the three-closed-loop PMSM servo system.
Figure 1. Control block diagram of the three-closed-loop PMSM servo system.
Symmetry 17 01474 g001
Figure 2. The block diagram of the proposed auto-tuning PI controller.
Figure 2. The block diagram of the proposed auto-tuning PI controller.
Symmetry 17 01474 g002
Figure 3. The BPNN-PI optimization framework based on the physical information of the system’s moment of inertia.
Figure 3. The BPNN-PI optimization framework based on the physical information of the system’s moment of inertia.
Symmetry 17 01474 g003
Figure 4. Iterative optimization strategies for network weights.
Figure 4. Iterative optimization strategies for network weights.
Symmetry 17 01474 g004
Figure 5. Threshold BPNN-PI optimization framework with integrated load torque compensation.
Figure 5. Threshold BPNN-PI optimization framework with integrated load torque compensation.
Symmetry 17 01474 g005
Figure 6. Experimental platform setup.
Figure 6. Experimental platform setup.
Symmetry 17 01474 g006
Figure 7. Tracking waveform of the 5 Hz sinusoidal position signal system with BPNN PI controller: (a) position given signal with tracking waveform; (b) waveform locally amplified.
Figure 7. Tracking waveform of the 5 Hz sinusoidal position signal system with BPNN PI controller: (a) position given signal with tracking waveform; (b) waveform locally amplified.
Symmetry 17 01474 g007
Figure 8. Tracking error of the 5 Hz position signal in the servo system with BPNN PI controller: (a) position tracking error; (b) waveform local amplification.
Figure 8. Tracking error of the 5 Hz position signal in the servo system with BPNN PI controller: (a) position tracking error; (b) waveform local amplification.
Symmetry 17 01474 g008
Figure 9. The self-tuning mechanism of PI control parameters in the speed control loop with BPNN PI controller: (a) self-tuning of proportional control parameters; (b) self-tuning of integral control parameters.
Figure 9. The self-tuning mechanism of PI control parameters in the speed control loop with BPNN PI controller: (a) self-tuning of proportional control parameters; (b) self-tuning of integral control parameters.
Symmetry 17 01474 g009
Figure 10. Tracking error of the 5 Hz position signal in the servo system with proposed optimization framework: (a) position tracking error; (b) waveform local amplification.
Figure 10. Tracking error of the 5 Hz position signal in the servo system with proposed optimization framework: (a) position tracking error; (b) waveform local amplification.
Symmetry 17 01474 g010
Figure 11. The self-tuning mechanism of PI control parameters in the speed control loop with proposed optimization framework: (a) self-tuning of proportional control parameters; (b) self-tuning of integral control parameters.
Figure 11. The self-tuning mechanism of PI control parameters in the speed control loop with proposed optimization framework: (a) self-tuning of proportional control parameters; (b) self-tuning of integral control parameters.
Symmetry 17 01474 g011
Figure 12. Tracking error of the 5 Hz position signal in the servo system with BPNN PI controller: (a) position given signal versus tracking waveform; (b) position tracking error.
Figure 12. Tracking error of the 5 Hz position signal in the servo system with BPNN PI controller: (a) position given signal versus tracking waveform; (b) position tracking error.
Symmetry 17 01474 g012
Figure 13. The self-tuning mechanism of PI control parameters in the speed control loop with BPNN PI controller: (a) self-tuning of proportional control parameters; (b) self-tuning of integral control parameters.
Figure 13. The self-tuning mechanism of PI control parameters in the speed control loop with BPNN PI controller: (a) self-tuning of proportional control parameters; (b) self-tuning of integral control parameters.
Symmetry 17 01474 g013
Figure 14. Tracking error of the 5 Hz position signal in the servo system with proposed optimization framework: (a) position given signal versus tracking waveform; (b) position tracking error.
Figure 14. Tracking error of the 5 Hz position signal in the servo system with proposed optimization framework: (a) position given signal versus tracking waveform; (b) position tracking error.
Symmetry 17 01474 g014
Figure 15. The self-tuning mechanism of PI control parameters in the speed control loop with proposed optimization framework: (a) self-tuning of proportional control parameters; (b) self-tuning of integral control parameters.
Figure 15. The self-tuning mechanism of PI control parameters in the speed control loop with proposed optimization framework: (a) self-tuning of proportional control parameters; (b) self-tuning of integral control parameters.
Symmetry 17 01474 g015
Figure 16. Tracking error of the 5 Hz position reference with disturbance compensation: (a) position given signal versus tracking waveform; (b) position tracking error.
Figure 16. Tracking error of the 5 Hz position reference with disturbance compensation: (a) position given signal versus tracking waveform; (b) position tracking error.
Symmetry 17 01474 g016
Figure 17. The self-tuning performance of PI control parameters in the speed control loop with disturbance compensation: (a) self-tuning of proportional control parameters; (b) tuning of integral control parameters.
Figure 17. The self-tuning performance of PI control parameters in the speed control loop with disturbance compensation: (a) self-tuning of proportional control parameters; (b) tuning of integral control parameters.
Symmetry 17 01474 g017
Figure 18. Tracking error at the 5 Hz position reference using the neural network PI controller.
Figure 18. Tracking error at the 5 Hz position reference using the neural network PI controller.
Symmetry 17 01474 g018
Figure 19. Tracking error at the 5 Hz position reference using the improved control frame.
Figure 19. Tracking error at the 5 Hz position reference using the improved control frame.
Symmetry 17 01474 g019
Figure 20. Neural network PI controller anti-disturbance experimental waveform: (a) the position follows the waveform; (b) the waveform is locally amplified.
Figure 20. Neural network PI controller anti-disturbance experimental waveform: (a) the position follows the waveform; (b) the waveform is locally amplified.
Symmetry 17 01474 g020
Figure 21. Neural network PI controller with threshold anti-disturbance experimental waveform: (a) the position follows the waveform; (b) the waveform is locally amplified.
Figure 21. Neural network PI controller with threshold anti-disturbance experimental waveform: (a) the position follows the waveform; (b) the waveform is locally amplified.
Symmetry 17 01474 g021
Figure 22. Neural network PI controller with threshold and load torque compensation anti-disturbance experimental waveform: (a) the position follows the waveform; (b) the waveform is locally amplified.
Figure 22. Neural network PI controller with threshold and load torque compensation anti-disturbance experimental waveform: (a) the position follows the waveform; (b) the waveform is locally amplified.
Symmetry 17 01474 g022
Table 1. Performance evaluation of existing methods.
Table 1. Performance evaluation of existing methods.
PaperMethodologyModel
Pre-Training
Implementation ComplexitySystem
Performance During Start-Up
[7]Neural network PI controller based on symmetry constraints of physical informationYesHighAverage
[8]
[9]
[10]Neural network PI controller based on numerical optimization algorithmYesAverageExcellent
[11]
[12]
Proposed Improved schemeNoLowAverage
Table 2. Electrical and mechanical parameters of the servo system.
Table 2. Electrical and mechanical parameters of the servo system.
Motor ParametersValue
Pole pairs of the PMSM P n 4
Permanent flux of the PMSM φ f / mWb 8.73
D-axis inductance of the PMSM L d / mH 0.54
Q-axis inductance of the PMSM L q / mH 0.54
Resistance of the PMSM R S / Ω 0.39
Rotor inertia of the PMSM J / ( kg m 2 )
Viscous damping coefficient of the PMSM B v / ( N m s / rad )
2.8 × 10−4
4.5 × 10−4
Rated voltage of the DC motor V / V 24
Rated power of the DC motor P / W 70
Resistance of the DC motor R / Ω 3.53
Inductance of the DC motor L / m H 1.49
Table 3. Comparison of the experimental results.
Table 3. Comparison of the experimental results.
MethodError in Start-Up PhaseImpact of Sudden Load
BPNN-PI controller1 rads0.7 rads fluctuation
BPNN-PI controller with threshold0.75 rads0.4 rads descent
BPNN-PI controller with load compensation0.75 rads0.3 rads descent
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Song, Z.; Huang, Y. Physical Information-Driven Optimization Framework for Neural Network-Based PI Controllers in PMSM Servo Systems. Symmetry 2025, 17, 1474. https://doi.org/10.3390/sym17091474

AMA Style

Song Z, Huang Y. Physical Information-Driven Optimization Framework for Neural Network-Based PI Controllers in PMSM Servo Systems. Symmetry. 2025; 17(9):1474. https://doi.org/10.3390/sym17091474

Chicago/Turabian Style

Song, Zhiru, and Yunkai Huang. 2025. "Physical Information-Driven Optimization Framework for Neural Network-Based PI Controllers in PMSM Servo Systems" Symmetry 17, no. 9: 1474. https://doi.org/10.3390/sym17091474

APA Style

Song, Z., & Huang, Y. (2025). Physical Information-Driven Optimization Framework for Neural Network-Based PI Controllers in PMSM Servo Systems. Symmetry, 17(9), 1474. https://doi.org/10.3390/sym17091474

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop