Abstract
Integrated electro-mechanical actuators (EMAs) are widely used in cooperative robots. Their control system has to be carefully designed to achieve a desirable performance. The proportional-integral (PI) control and the active disturbance rejection control (ADRC) are the two commonly used controllers. Compared with the PI, the ADRC shows better performance in terms of disturbance rejection, response speed and overshooting suppression. However, the ADRC utilises numerous parameters and the optimisation of these parameters is a challenge. In this study, the influence of the parameters of β01, β02, β03, β1, β2 on the ADRC performance is deeply analysed. Considering the two non-linear factors of permanent magnet synchronous motor and harmonic transmission in the EMA, a simulation model of the EMA was established. An improved swarm optimisation algorithm was employed to optimise the parameters of the ADRC. A second-order ADRC in speed and position modes was designed. The parameters of the ADRC in these modes were adjusted using improved particle swarm optimisation. ADRC was applied to the EMA field-oriented control system instead of cascade PI, and the simulation and experimental results were compared using the cascade PI control method. When the target speed is to 15 rpm, the speed fluctuation range of the ADRC is about ±0.3 rpm, which is smaller than that of the PI controller’s ±0.5 rpm. Compared with the cascade PI control, ADRC affords a faster response speed, greater robustness and stronger disturbance resistance in the steady-state operation process.
Keywords
Introduction
Electro-mechanical actuators (EMAs) comprises a motor, a mechanical transmission and a driver. EMAs are widely used in robots, automobiles, navigation systems, aviation, aeronautics, surgical systems and precision machine tools to name a few.1–5 During the operation of the EMA, a series of actions are intermittently and frequently performed. An EMA is required to output a large torque in a limited space and realise accurate speed and positional control. EMAs are mainly integrated with a permanent magnet synchronous motor (PMSM) or a brushless direct current (BLDC) motor, precision harmonic reducers, drives, controllers and other devices. EMAs are generally compact, lightweight, capable of accurate positioning and afford a large output torque. PMSM has the advantages of simple structure, small volume, light weight, high efficiency and fast response. Currently, PMSM control methods mainly include PI, 6 intelligent control,7–9 PID hybrid intelligent control mode, sliding mode variable structure control10,11 and active disturbance rejection controller (ADRC).12–16 The cascade PI control method is most commonly used in PMSM control systems, where the current loop is the inner loop, the velocity loop is the middle loop and the position loop is the outer loop.17,18 This control method has the advantages of a simple structure, easy implementation and convenient adjustment of the control parameters. However, the PI controller has some disadvantages such as tracking delay, susceptibility to interference and an inability to compromise between overshoot and speed.19,20 During operation of the EMA operation, start–stop and speed regulation functions must be frequently performed. If overshoot and oscillation occur during the process of start-up and speed regulation, long-term operation will cause precision harmonic reducer to exhibit a certain wear and reduce the accuracy of the EMA. When the structural parameters of the controlled system are known and fixed, stable control can be achieved using PI. However, the EMA is a complex time-varying non-linear system and the introduction of a harmonic reducer greatly enhances the non-linear factors of the system. In the actual operation process, the resistance, inductance and flux linkage change with the temperature, thereby reducing the accuracy and robustness of PI control.
It is difficult to achieve high-precision control of EMAs using a PI controller. Han proposed an ADRC theory based on an in-depth analysis of PID control. 12 This theory does not depend on precise mathematical modelling of the controlled object. An ADRC sets the system in the form of an integral series and achieves high-precision. control performance through the real-time estimation of internal and external disturbances and the compensation of control signals. 21 ADRCs have been widely used in the field of motor control. In previous reports,22,23 the physical meaning of ADRC was investigated and the second-order ADRC was applied to the position servo system. Prior studies 24 proposed a position current double-loop control method based on ADRC, which improved the disturbance rejection ability of the servo system. The model compensation method was applied to the second-order ADRC system, which effectively enhanced the observation accuracy of the extended state observer (ESO) and the tracking accuracy of PMSM. 16 Fuzzy ADRC was used to replace the PI controller to realise position control. 25 Previously,26,27 the first-order ADRC was used for the current loop, the second-order ADRC was used for the position loop. It was verified that this control method has the advantages of high tracking speed and non-overshoot performance. The second-order ADRC was used in prior studies28,29 to improve the disturbance resistance and control accuracy of the PMSM position control process. Moreover, ADRCs have been used to study interior PMSM control and applied for sensorless control.27,30,31
The ADRC has numerous parameters and requires tedious tuning. ADRC parameter tuning methods mainly include empirical methods, bandwidth/zero pole assignment methods, neural network and the swarm intelligence algorithm. The parameters that need to be adjusted for the second-order ADRC are
The traditional method of tuning system control parameters has significant limitations. The two non-linear factors are regarded as a combined factor. Based on the PMSM field-oriented control (FOC) model, the harmonic gear drive module was added to PMSM output and the EMA simulation model was established using MATLAB/Simulink. The inertia weight of sigmoid variation law and the learning factor of linear variation law has been used to improve the standard particle swarm optimisation (PSO). Using the improved PSO (IPSO) for multi-space optimisation, the control parameters required by the system can be obtained quickly and accurately. By changing the input and control parameters of the ADRC, position control and speed control can be realised.
In this study, the IPSO method was introduced to adjust the parameters of ADRC in an EMA control system for better control conformance. A second-order ADRC for position and speed modes is proposed to realise position and speed control. The feasibility of the control method is verified via simulation and experiment and compared with the PI controller. The results show that the control method can realise speed/position mode operation and lead to fast response, non-overshoot and strong disturbance resistance.
Mathematical model of PMSM for EMA
The mathematical model of the PMSM for the EMA comprises the voltage, flux, torque and mechanical equations. To simplify the analysis and not affecting the control, the saturation of the motor core, eddy current loss and hysteresis loss are ignored. The stator winding current is a three-phase symmetrical sinusoidal current. Under the FOC method, in the d–q coordinate system, the voltage equation is provided as follows:
The flux equation for d–q axis is
The electromagnetic torque equation is
The mechanical equation is
Where Rs is the winding resistance and id, iq, ud, uq, Ld, Lq, ψd and ψq are the d–q axis current (i), voltage (u), inductance (L) and flux linkage (ψ), respectively. pn is the polar logarithm, Te is the electromagnetic torque, J is the moment of inertia, TL is the load torque, B is the damping coefficient. ψf is the permanent magnet flux linkage, ω is the electrical angular velocity and ω r is the mechanical angular velocity. For a surface-mounted PMSM, Ld = Lq = Ls . When Ld = Lq = Ls or id = 0, equation (3) can be simplified as
ADRC control principle and parameter tuning
Mathematical model of ADRC
ADRC is a non-linear control method that does not require an accurate mathematical model of the controlled object. It can make real-time estimation and compensation for the internal and external disturbances of the system and achieve excellent control performance through non-linear feedback. 32 An ADRC includes a tracking differentiator (TD), an ESO and an NLSEF. The transition process arranged by the TD can eliminate the compromise between overshoot and speed as well as realise fast target tracking without overshoot. ESO is the core component of an ADRC. It can effectively observe the system output and internal and external disturbances and extract the interference signal from the controlled output. The compensation in the control law can effectively improve the disturbance resistance of the system. NLSEF involves a non-linear combination of the TD and ESO output. Simultaneously, the output of NLSEF and the ‘total disturbance’ estimator of ESO are coupled to perform on the controlled plant.
The expression of the differential equation for an uncertain object subjected to unknown disturbance is given as follows:
Here,

Schematic diagram of an Active disturbance rejection control (ADRC) structure.
First- and second-order ADRC are generally used in practical application. The third-order ADRC has a complex expression and needs a long calculation time, which requires a high-performance controller; it is thus rarely used in practice. The second-order ADRC equations are represented by equations (7)–(9).
For TD,
Here, x* is the input signal,
For ESO,
Here, e(k) is the error signal,
For NLSEF,
Here,
Figure 2(a) shows the change in

Changes in
ADRC parameters tuning rules
The main parameters to be adjusted in the TD are the velocity factor (r) and the filter factor (h1). The velocity factor mainly affects the tracking effect. A larger velocity factor corresponds to a shorter transition time and thus a faster tracking response. However, very large velocity factor leads to overshoot and oscillation. When the velocity factor is constant and the filter factor is large, the tracking signal error is large; when the h1 is small, the noise suppression is more prominent. However, when the h1 is too small, the ability of the TD to suppress noise will be weakened.
The role of the ESO is to observe and compensate for both internal and external disturbances, which is the core function of the ADRC. The disturbance compensation factor
Directional adjustment is adopted. When we set
The characteristic expression of equation (12) is obtained using Laplace transformation:
According to the bandwidth-parameterisation-based controller tuning method proposed by Gao, 35 the reference value for the parameters β01, β02 and β03 can be obtained as follows:
The values for the parameters β01, β02 and β03 need to be adjusted in practical applications according to the system output. The tuning rules for these parameters are listed in Table 1. Notably, when one parameter is tuned, the other two remain constant.
Tuning rules for β01, β02 and β03 parameters.
The value of
Design of ADRC for PMSM
Second-order ADRC for position/speed compound controller
Rotational speed provides the differential signal of the rotor angle. The speed/position controller is designed as a second-order ADRC to replace the position and speed cascade PI controllers.
The second-order equation of state for the angle of the position loop is given as
Here,
The fastest synthesis function fhan(.) can track the target position without overshoot. The displacement planning of TD is shown using equation (17).
Here, θ
ref
is the target position. θ(k) and ω
r
(k) are the angle and speed during operation, respectively. At steady state,
The process of moving the rotor to the target position involves load disturbance, change in the moment of inertia, etc. ESO can estimate and compensate for the position disturbance w(k) in real-time. The ESO of the second-order ADRC of the position ring is expressed as
Here,
To improve the disturbance rejection ability of the controller, the non-linear control law is used herein. The non-linear control law of the position loop is designed as follows:
Second-order ADRC for a speed loop
The target position entered in TD is changed to the target speed and the position signal fed back to the ESO is changed to the velocity signal. Second-order ADRC in speed mode can be realised by modifying the control parameters for second-order ADRC in the position mode.
The state expression for the rotating speed is given by
By setting,
The differential of equation (21) leads to the following equation
where
The structure of the second-order speed loop ADRC is the same as that of the second-order position/speed loop compound ADRC; however, the input variables of the controller are different. The input of the second-order speed ADRC is the set target speed and the actual feedback speed. The mechanical angular velocity is
The second-order speed ADRC is presented using equation (24)–(26). The meaning of the parameters in the formulae is the same as for the position loop ADRC;
A schematic of the second-order position mode and speed mode ADRC is shown in Figure 3. In the position mode, the ADRC inputs the target and current positions. In the speed mode, the ADRC inputs the target and current speeds.

Schematic of second-order ADRC for determining EMA position and velocity.
In the abovementioned analysis,
IPSO
PSO is derived from the study of foraging of birds. It was first proposed by Kennedy and Eberhart in 1995. 36 PSO has the advantages of a simple structure, fewer parameters, fast convergence speed and robust optimisation ability. It is applied to non-linear, multivariable and strong coupling control systems, which can search for the optimal global solution and achieve a good control effect.37,38
In the D-dimensional search space, n particles are initialised to form a population. Each particle represents the potential optimal solution in the optimisation problem and its characteristics are represented by velocity, position and fitness. The position of the i-th particle in D-dimensional space is
The velocity and position update formulae of the original PSO are as follows.
where
To address the issue of premature convergence encountered with the original PSO and the ease of falling into the optimal local solution, Shi 37 introduced the inertia weight factor of linear decline; thus, the speed update formula was transformed to
The range of
Here,
A reasonable search process must have robust global search ability in the early stage. With the evolution of PSO gradually narrowing the search area, the search process should have strong local search ability. ω and c1 should be initially large and then small; c2 should be initially small and then become large.
Based on this concept, the standard PSO is improved. The non-linear sigmoid function is used as the law of variation of
c1 and c2 are no longer fixed values and vary linearly according to the number of iterations. The variation rules are as follows:
To test the performance of the IPSO, the classical multimodal function Rastrigrin is used as the test object. The function has several local optimal solutions in the feasible region. The expression is given by
The minimum value of the function is 0 and the optimal position is (0, 0,…,0). Standard PSO, PSO based on sigmoid inertia weight (SPSO) and IPSO were used for the test. The population number and the number of iterations were set to 20 and 50, respectively. For standard PSO and SPSO, the learning factors were set as c1 and c2, with a value of 2. For IPSO, the learning factor was set to change between 0.1 and 2. The programme execution flow of IPSO is shown in Figure 4(a). The test results are shown in Figure 4(b).

Flowchart of IPSO, and three algorithms test results: (a) Flowchart of IPSO and (b) comparison of convergence results of the three algorithms.
As shown in Figure 4(b), the three algorithms achieved the global extremum of 0. Standard PSO had the slowest convergence speed, followed by SPSO, whereas IPSO had the fastest convergence speed. IPSO has the advantages of good global convergence, fewer iteration times and high optimisation efficiency.
The common performance indexes of the control system are the integral of the squared error, integral of time multiplied by the squared error (ITSE), integral absolute error (IAE), integral of time multiplied by the absolute error (ITAE), etc. The details are as follows:
Equations (34) and (35) will cause a large overshoot to approach the target value in a short time. However, equations (36) and (37) considerably reduce this defect. IAE has good transient response characteristics. The disadvantage is that when the system parameters are different, the response on the performance index is not obvious. ITAE criterion can make the system have a fast transition process and high-precision steady-state tracking. The ITAE index has reasonable practicability and selectivity and has been widely used in single input–output and adaptive control systems.39,40 In this study, ITAE was selected as the performance index function.
Simulation analysis and experimental verification
Simulation model
The block diagram of the EMA position and speed mode FOC based on the ADRC is shown in Figure 5. The control parameters for ESO and NLSEF in the ADRC were obtained using IPSO. Compared with the cascade PI control mode, the cascade PI controllers of the position and speed loops were integrated into the second-order ADRC speed/position composite controller. The stability and disturbance resistance ability of the system were improved via ESO disturbance compensation.

EMA position and speed compound controller based on IPSO.
The parameters to be set in the ADRC include
According to the modular design concept, the algorithm is divided into the ADRC module, ITAE, FOC control, PMSM and driver and harmonic reducer. The structure of Simulink for speed mode operation is shown in Figure 6. For position mode operation, only the input source of ADRC to the position signal needs to be changed.

Simulink simulation models: (a) ADRC module, (b) ITAE module, (c) FOC calculation module, (d) PMSM and controller module and (e) Harmonic Driver Module.
Analysis of simulation results
The Simulink model utilises five parameters in the MATLAB workspace for simulation. The five parameters to be optimised in the ADRC were updated iteratively and the corresponding ITAE values were obtained. The population size was set to five and the number of iterations was limited to 20. Figure 7 presents a comparison of the iteration fitness of SPSO and IPSO over 20 iterations, demonstrating that the convergence speed and fitness value obtained using IPSO were better than those achieved using SPSO.

Optimisation results for sigmoid PSO and improved IPSO.
The control parameters for position and speed modes obtained using IPSO are summarised in Table 2.
IPSO optimised ADRC parameters.
The parameters for the current loop in cascade PI control mode were the same as those in the ADRC control mode. IPSO was used to optimise the parameters for the speed and position loops in cascade PI control mode. The population size was set to 2 and the number of iterations was set to 20. The obtained PI parameters for the speed and position loops are summarised in Table 3.
IPSO optimised PI parameters.
Analysis of position simulation results
The input step signal and sine signal were used as follows to verify the stability of the cascade PI and ADRC modes. For step signal, the target position was set to 20 rad at the beginning, 50 rad at 0.5 s, 70 rad at 1 s, 50 rad at 1.5 s and 40 rad at 2 s. The simulation results are shown in Figure 8.

Position control curve: (a) step signal response curve and (b) sinusoidal signal response curve.
Figure 8(a) demonstrates that the response speed for the ADRC is faster than that of the PI controller. The expanded region denoted as B shows that the PI control mode has a small overshoot, while regions A and C have no overshoot. For a set of fixed PI parameters, PI control cannot adapt to different target positions. In some control situations with high precision, it is often necessary to set multiple PI parameters in stages. As seen from the sinusoidal response curve in Figure 8(b), the sinusoidal tracking signal of the ADRC is faster than that of the PI controller. For some cases where the position frequency conversion is fast, using a set of fixed PI parameters lead to an ‘out-of-step’ situation.
Analysis of speed simulation results
The start-up target speed was set to 500 rpm. At 0.05 s, the target load was set to 1 N.m. The target speed was set to 1000 rpm at 0.1 s. The target load was set to 3 N.m at 0.15 s. The parameters of the PI controller and the ADRC were adjusted. The speed simulation results presented in Figure 9 show that the time required for the ADRC and PI controller to reach steady state is basically the same. However, PI control mode has noticeable overshoot before reaching steady state and tends to achieve the steady state after one oscillation, whereas the ADRC has no overshoot or oscillation.

Speed simulation data.
When 1-N.m load was applied at 0.05 s, expansion of region A showed no apparent difference in the velocity of the two changes. When the 3-N.m load was applied at 0.15 s, expansion of region C showed that the ADRC speed decreased to 995 rpm and then returned to 1000 rpm, whereas with the PI controller, the speed was reduced to 985 rpm and then gradually returned to 1000 rpm. The speed recovery time for the ADRC is less than that of the PI controller. The disturbance rejection ability and stability of the ADRC is better than those of the PI control in speed mode.
Current simulation results
The current response curve was obtained in speed control mode. The current simulation results are shown in Figure 10, corresponding to the speed change curve presented in Figure 9. In the start-up stage, the amplitude and frequency of the current oscillation of the ADRC are less than those of the PI controller. The expansion of region A showed an obvious distortion in the current while using the PI controller at 500 rpm, whereas the profile for the ADRC was more sinusoidal. When the target speed was changed at 0.1 s, the oscillation and convergence times of the ADRC were less than those of the PI control. When the load is constant, the amplitude of the current does not change. According to the relationship between current frequency and speed, the frequency of 1000 rpm current is twice that of 500 rpm current. When a 3-N.m load was applied at 0.15 s, the amplitude of the current curve fluctuation in the PI control method was larger than that in the ADRC control method. When the load is applied at 0.15 s, the three-phase current distortion of the PI controller is obvious and the fluctuation amplitude is larger than that of the ADRC. Therefore, the current change in the case of the ADRC has less impact on the drive when the external load changes.

Current simulation data.
Analysis of experimental results
The control method based on the ADRC position and speed modes was further verified using STM32f407 as the main controller and the harmonic actuator as the control object. The reduction ratio of the precision harmonic reducer was 50. The experimental platform is shown in Figure 11. The specifications of the actuator used in the experiment are listed in Table 4.

Experimental platform.
Actuator specifications.
Figure 12 shows the speed start-up curve using the ADRC algorithm and cascade PI step response. While using the ADRC and PI algorithms, the execution period of the speed loop was 2 kHz. The target speed was set at 750 rpm, and then set at 1250 rpm after 30 s.

Step velocity response curve of ADRC and cascade PI.
It has been demonstrated in Han et al. 41 that the ADRC had a stronger disturbance rejection ability than PID, Fuzzy-PID under the condition of 20% maximum control torque disturbance, and it also had a large stability margin and bandwidth. Guo et al. 34 proved that compared with the PI controller, the ADRC has faster response but without overshoot in a PMSM servo system.
The reduction ratio of harmonic gear drive is 50. After the harmonic gear drive, the actual output speed was 15 and 25 rpm. This is suitable for low speed and heavy load operation of the EMA. The expanded views of regions A and B in Figure 12 show the changes in the speed curve during the acceleration process. As shown in these regions, the time required for the two algorithms to reach steady-state operation is basically the same. However, when the target speed is reached, the PI control mode produces an obvious overshoot and stable operation is achieved after several oscillations. The ADRC has a smooth transition without overshoot. This is consistent with the speed simulation curve presented in Figure 9. From the expanded views of regions A, B and C, it can be seen that the jitter frequency and amplitude of PI control are larger than those of the ADRC control in steady-state operation. When the rotating speed was 15 rpm, the jitter range of the ADRC was approximately ±0.3 rpm and that of PI controller was approximately ±0.5 rpm.
The target speed was set at 10 rpm. After steady-state operation, a load torque of 4 N m was applied at 32 s. The expanded view in Figure 13 shows that the speed fluctuation of the PI controller is greater than that of the ADRC. The ADRC has greater ability to resist disturbance than the PI controller. The execution frequency of the position loop was 1 kHz. In the position step response test, set the EMA output to 1 turn and 3 turns. The output end was set to 1 turn and 3 turns. The position change curve presented in Figure 14 demonstrates that the ADRC requires a shorter time to reach the target position than the cascade PI controller. The expanded view shows that the steady-state error of the ADRC is smaller than that of the PI controller; the ADRC reached a steady state at 2.9995 turns, and the PI reached a steady state at 2.9985 turns.

Comparison of disturbance resistance for the ADRC and cascade PI.

Comparison of ADRC and cascade PI position response curves.
The speed and position tuning performance of the PI controller and ADRC are shown in Table 5, which includes the speed fluctuation, overshoot, disturbance rejection capability and steady-state error. The ADRC has a faster response, smaller steady-state error and no overshoot as compared with the PI controller. The ESO in the ADRC can realise real-time observation of the internal and external disturbances and compensate for them in the control law. Thus, the robustness of the system can be significantly improved. However, the tuning process of the parameters of the ADRC is tedious. The proposed IPSO-based controller parameter-tuning method has a faster convergence speed than the simple PSO and can avoid reaching local optimisation. Therefore, improved performance of the ADRC can be achieved using the proposed IPSO.
Comparison of PI and ADRC test results.
Conclusion
The ADRC utilised many control parameters and complex setting-up processes. IPSO based on the sigmoid inertia weight and variable learning factor was used to optimise the ADRC parameters. Taking the harmonic reducer and PMSM as a whole, the EMA simulation model was built on the MATLAB/Simulink platform. Without changing the structure of the ADRC, position and speed modes were realised for the EMA by adjusting the ADRC parameters via IPSO. The feasibility of IPSO for tuning and optimising the ADRC parameters was verified. Moreover, the ADRC helped to reduce wear on the harmonic reducer. Compared with PSO, the IPSO algorithm has faster convergence speed; the optimal solution is obtained in a shorter time. The simulation and experimental results show that compared with the cascade PI controller, the ADRC has a faster response speed and can eliminate overshoot. Especially considering the robustness and disturbance rejection performance in the steady state, the ADRC is better than the PI controller.
Footnotes
Appendix
Handling Editor: Chenhui Liang
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work was supported by the Beijing Municipal Natural Science Foundation Project, Beijing Municipal Education Commission Science and Technology Plan Key Project (KZ201910005005).
