1. Introduction
The sliding mode observer (SMO), as a nonlinear state estimation approach based on sliding mode variable structure theory, has been widely applied in the position sensorless control of permanent magnet synchronous motors (PMSM). Its core idea is to design a sliding surface using the motor mathematical model and estimate the rotor position and speed by utilizing the switching function of the back electromotive force (back-EMF) signal and the current error. The SMO offers advantages such as a simple structure, strong parameter robustness, and fast dynamic response. However, a key problem with traditional SMO lies in the chattering phenomenon, which has long been a research focus for scholars worldwide [
1,
2]. To address this issue, a low-pass filter (LPF) was introduced in [
3] to filter the back-EMF, thereby reducing the chattering caused by the inherent defects of the SMO.
In [
4], a full-order SMO with synchronous frequency tracking (SFT) filtering was proposed for interior permanent magnet synchronous motor (IPMSM) sensorless control, which avoids phase delay and harmonics, and employs Luenberger-based speed estimation with experimental validation. A second-order lead compensation quadrature phase-locked loop (SOLC-Q-PLL) was presented in [
5] to suppress sixth-order position harmonics in IPMSM sensorless control without causing phase delay or bandwidth loss. In [
6], an adaptive LPF combined with an orthogonal phase-locked loop (PLL) was proposed to reduce estimated harmonic errors. This method adaptively compensates for harmonics in the back-EMF estimation to eliminate the corresponding position estimation errors. However, the incorporation of an LPF inevitably introduces phase lag and increases system complexity.
The super-twisting sliding mode observer (ST-SMO), as a representative of second-order sliding mode algorithms, significantly attenuates chattering at the mechanism level by introducing a continuous switching term and a double integral structure, becoming a research hotspot in recent years. The super-twisting algorithm (STA) is widely used in observers and controllers due to its chattering-free characteristics [
7]. In [
8], a permanent magnet linear synchronous motor (PMLSM) sensorless control system with continuous terminal sliding mode control (CT-SMC) for fast finite-time tracking and a fuzzy adaptive gain ST-SMO (F-ST-SMO) for chattering reduction was proposed and validated by both simulation and experiment. In [
9], an adaptive SMO was proposed, in which the switching gain can be adaptively adjusted according to the actual operating conditions. To reduce the chattering problem and simplify the control system, sensorless control of PMSM based on ST-SMO was adopted in [
10]. However, the traditional STA employs fixed sliding mode coefficients, making the control system unsuitable for wide speed ranges. The ST-SMO with constant sliding mode coefficients cannot maintain its good performance under different operating conditions, exhibiting poor robustness. Many scholars have proposed combining various adaptive algorithms with ST-SMO to improve controller performance. A novel speed exponential function adaptive estimation was proposed in [
11] to solve the chattering problem, combined with a quadrature signal generator based on a second-order generalized integrator (SOGI) to filter the back-EMF. In [
12], an elliptical saturation function was designed to construct an improved ST-SMO, and its finite-time convergence was analyzed. A continuous sigmoid function was used as the switching function in [
13] and combined with fuzzy control theory to adaptively adjust the sliding mode gain. A STA-based back-EMF observer was proposed in [
14] to achieve reduced chattering, better estimation accuracy, and faster convergence.
In recent years, various online parameter identification and rectification methods have been developed to enhance the control performance of PMSM drives under parameter variations. For instance, an alternating dual-Adaline observer network for SPMSMs under
control was proposed in [
15]. It addresses the rank-deficiency problem by exploiting the slow temperature-dependent dynamics of stator resistance and rotor flux linkage, achieving high-precision identification without signal injection while simultaneously compensating for inverter nonlinearity. Within the framework of model predictive control, an online parameter rectification strategy was developed in [
16] based on objective-constrained optimization to correct stator inductance and rotor flux linkage in real time, combined with a reduced-order extended Kalman filter for sensorless operation. The above studies demonstrate that online parameter identification and rectification are effective means to enhance parameter robustness in sensorless control systems. The AST-SMO proposed in this paper achieves automatic compensation for parameter perturbations through its integral-type adaptive gain law, without requiring explicit online parameter identification.
Although adaptive-gain super-twisting sliding mode observers have been investigated in the existing literature, most reported schemes employ either linear gain adjustment laws [
12] or fuzzy-logic-based gain schedulers [
8]. These approaches rely on static mappings of instantaneous errors and generally require a priori knowledge of the disturbance upper bound to guarantee stability. In contrast, the contribution of this paper lies in proposing an integral-type nonlinear adaptive law
. This mechanism fundamentally differs from prior arts in three aspects: (1) the gain
evolves based on the historical accumulation of the current observation error rather than its instantaneous value, providing superior robustness against abrupt disturbances; (2) it eliminates the tedious procedure of predetermining the disturbance bound
, as the gain automatically increases until the sliding condition is satisfied; (3) the number of manually tuned observer parameters is significantly reduced through a decoupled design.
Therefore, this paper proposes a PMSM position sensorless control strategy based on an adaptive-gain super-twisting sliding mode observer (AST-SMO) combined with improved particle swarm optimization (PSO) for speed loop PI parameter tuning. Compared with the traditional fixed-gain ST-SMO, the proposed method has the following advantages: In the observer design, this paper constructs a time-varying gain function using the current observation error magnitude as a variable and its integral-type adaptive law, replacing the fixed-gain structure that requires presetting the disturbance upper bound. This adaptive law can automatically adjust the sliding mode gain according to changes in motor operating conditions, effectively suppressing chattering and maintaining high-precision estimation over a wide speed range and under sudden load changes. For speed loop control, this paper introduces an improved PSO algorithm based on the cooperative improvement of learning factors and inertia weight for offline optimization of PI parameters, further enhancing the system’s dynamic response speed and anti-disturbance capability.
To more clearly reveal the differences and deficiencies among the various ST-SMO improvement strategies discussed above, a qualitative comparison is conducted from four aspects: gain tuning mechanism, requirement of prior knowledge of the disturbance bound, parameter tuning complexity, and robustness, as summarized in
Table 1.
As shown in
Table 1, both fixed-gain and linear-gain schemes rely on prior knowledge of the disturbance bound and struggle to maintain optimal performance across a wide speed range. The fuzzy adaptive scheme, although not requiring precise modeling, relies heavily on expert experience for parameter tuning. In contrast, the proposed integral-type adaptive-gain ST-SMO requires no prior knowledge of the disturbance bound and features the most streamlined parameter structure, thereby providing a solid theoretical foundation for the subsequent experimental validation.
The remainder of this paper is organized as follows.
Section 2 establishes the mathematical model of the PMSM.
Section 3 develops a sensorless control strategy based on the ST-SMO and analyzes the inherent limitations of its conventional form.
Section 4 presents the structure of the proposed AST-SMO, along with the gain adaptation law and the corresponding Lyapunov-based stability proof.
Section 5 details a speed-loop PI tuning strategy using an improved PSO algorithm.
Section 6 validates the effectiveness of the proposed scheme through comparative simulations and experimental tests. Finally,
Section 7 summarizes the main conclusions.
2. Mathematical Model and Coordinate Transformation of PMSM
To simplify the control system design, it is typically treated as an ideal motor under the following assumptions: (1) iron core saturation is neglected; (2) eddy current and hysteresis losses are disregarded; and (3) the three-phase currents are balanced sinusoidal waveforms. In the three-phase stationary coordinate system, the voltage, flux linkage, and torque equations can be expressed as follows:
The motion equation is
where
,
,
are the three-phase winding voltages;
,
,
are the three-phase winding currents;
is the stator resistance;
,
,
are the stator flux linkages;
, etc., are the mutual inductances;
,
,
are the self-inductances;
is the electrical angle of the motor, where
is the number of pole pairs,
is the electrical angle, and
is the mechanical angle;
represents the permanent magnet flux linkage;
is the moment of inertia;
is the mechanical angular velocity;
is the load torque; and
is the viscous friction coefficient.
The above model exhibits strong coupling characteristics that are not conducive to controller design. The Clarke–Park transformations are introduced to convert the model to the two-phase rotating reference frame.
This paper focuses on a surface-mounted PMSM, thus,
. The voltage and torque equations in the d-q coordinate system are
The electromagnetic torque is only proportional to , thus the vector control strategy can be adopted to achieve linear torque regulation. The decoupled model after coordinate transformation has a simple form, providing a foundation for the subsequent SMO design.
5. Speed Loop PI Parameter Tuning Based on Improved PSO
Although the proposed AST-SMO provides high-precision state observation, this information must be converted into control torque via the velocity-loop PI controller. Without proper optimization of the PI parameters, the improved observation accuracy cannot be fully leveraged to enhance the system’s dynamic performance. Therefore, an improved PSO algorithm is employed for offline optimization of the velocity-loop PI parameters. Notably, the effectiveness of this approach critically depends on the fidelity of the feedback signal from the AST−SMO; excessive estimation errors or chattering would render the PSO-optimized gains optimal only for the corrupted signal, rather than for the true system state. Thus, the AST−SMO and PSO−PI establish a sequential synergy—signal purification followed by parameter optimization—constituting a cohesive system-level framework rather than a mere juxtaposition of two independent methods.
The selection of the PI parameters for the speed loop directly affects the dynamic response, steady-state accuracy, and disturbance rejection performance of the PMSM system. Traditional parameter tuning relies heavily on experience, making it difficult to achieve both fast dynamic performance and stability under complex operating conditions. PSO features a simple principle, few parameters, and relatively strong global search capability, making it suitable for controller parameter optimization. However, the standard PSO suffers from slow convergence and a tendency to become trapped in local optima. To address these issues, the update strategy of the PSO algorithm is improved from both the learning factor and inertia weight perspectives. The optimization performance of the improved algorithm is verified using standard benchmark functions, and it is then applied to the tuning of the speed-loop PI parameters. Finally, the effectiveness of the proposed method is validated through simulations [
20].
5.1. Improvement Strategy for Learning Factors and Inertia Weight
(1) Improvement strategy for Learning Factors
To avoid the decrease in search accuracy or premature convergence caused by fixed learning factors, this paper adopts a dynamic adjustment strategy, making
linearly decrease and
linearly increase:
where
is the current number of iterations, and
is the maximum number of iterations.
Improvement strategy for Inertia Weight
This paper introduces a Logistic chaotic map to generate a nonlinear inertia weight to enhance the ergodicity of the search process. The Logistic map is defined as
Introducing it into the inertia weight update formula yields
Through the collaborative improvement of learning factors and inertia weight, the improved PSO algorithm provides a more efficient optimization tool for speed loop PI controller parameter tuning.
Compared with existing modified PSO algorithms, the proposed improved PSO features two main enhancements. First, for the learning factor adjustment, instead of a linear time-varying profile, this paper employs a quadratic nonlinear profile. This allows to decay more slowly in the early iterations, preserving more sufficient global exploration, while rises more rapidly in the later iterations, accelerating convergence toward the global optimal region. Secondly, for the inertia weight adjustment, existing chaotic PSO variants typically utilize chaos only for population initialization or as a small-amplitude perturbation, serving merely as an auxiliary tool. By contrast, this paper directly drives the entire inertia weight update process using the Logistic map, resulting in a nonlinearly oscillating decay profile throughout the entire iteration process. This paper integrates the above two improvements into a dual-channel cooperative framework, in which the quadratic learning factors and the chaos-driven inertia weight complement each other at different stages of the optimization process. This synergistic design fundamentally distinguishes the proposed PSO from existing single-channel modification schemes.
5.2. Verification of Improved PSO
The improved PSO algorithm is applied to the offline optimization of the speed loop PI controller parameters. The integral of time-weighted absolute error (ITAE) of the system speed error is adopted as the fitness function. The optimal PI parameters obtained are
and
. The fitness value variation curve is shown in
Figure 4. It can be observed that the improved PSO algorithm converges rapidly near the optimal solution after approximately 7 iterations. All key parameter settings of the improved PSO are summarized in
Table 2.
To quantitatively evaluate the improvement effect, the standard PSO (fixed inertia weight
, fixed learning factors
) is implemented under identical conditions for comparison. The convergence curves of the two algorithms are shown in
Figure 4, and the comparison results are summarized in
Table 3.
Compared with the standard PSO, the convergence iterations of the improved PSO are reduced by 22.2%, the optimal fitness is reduced by 8.4%, and the standard deviation is smaller, indicating superior robustness. These results validate the effectiveness of the collaborative adjustment of learning factors and the chaotic inertia weight strategy in accelerating convergence and improving optimization quality.
5.3. Simulation and Analysis of Speed Loop PI Tuning
To ensure a fair comparison between the conventional PI controller and the proposed PSO−PI controller, the following measures were taken.
The conventional PI gains were determined using the widely adopted Ziegler–Nichols tuning rule as a starting point, followed by fine-tuning based on step-response experiments to achieve a typical dynamic response. This yielded and . The closed-loop bandwidth of this baseline controller is approximately 48 rad/s, which is comparable to that of the PSO-PI controller, with a difference of less than 10%.
Both controllers were implemented with identical control constraints: an output saturation limit of ±10 V, the same back-calculation anti-windup scheme with , and the same sampling frequency of 10 kHz. Therefore, the reported performance improvements are not artifacts of an unfairly chosen baseline, but, rather, arise from the optimal gain distribution achieved by the PSO-based tuning.
Comparative simulations were carried out under speed step and sudden load conditions.
(1) Speed Step Response
The initial speed was 800 rpm. At t = 0.1 s, the speed was increased to 1000 rpm. The comparison waveforms of speed and torque are shown in
Figure 5 and
Figure 6.
As shown in
Table 4, compared to the traditional PI controller, the PSO-PI controller shortens the settling time during the starting phase by 46.7%, and reduces the speed overshoot by about 23.8%. Meanwhile, the torque overshoot of the PSO−PI controller is significantly lower than that of the conventional PI controller. The above results indicate that the optimized PI controller can achieve a better balance between fast response and damping characteristics, thereby effectively improving the dynamic performance of speed tracking.
(2) Load Disturbance Rejection Capability
A 5 N.m load is suddenly applied at 0.1 s. The comparative simulation results are shown in
Figure 7 and
Figure 8.
As shown in
Table 5, the speed drop of the PSO−PI controller is only 8 r/min, far better than the 15 r/min of the traditional PI controller. The speed recovery time is shortened by 40%. Moreover, the torque overshoot of the PSO−PI controller is also smaller, indicating that the optimized speed loop possesses stronger load disturbance rejection capability, thereby effectively improving the steady-state accuracy and robustness of the system.