1. Introduction
Permanent Magnet Synchronous Motors (PMSMs) are widely used in various modern applications, including industrial drives, robotics, electric vehicles, and renewable energy systems, due to their high efficiency, reliability, and precise control capabilities [
1]. These motors are particularly favored for their ability to provide excellent performance in high-torque and high-speed operations. However, achieving precise control of PMSM speed remains a significant challenge due to the inherent non-linear dynamics, variations in motor parameters, and external disturbances that often occur during operation [
2]. Accurate speed regulation is crucial in applications where precise motor control directly impacts system performance and energy efficiency [
3].
PID controllers are commonly used for PMSM speed regulation [
4]. PID controllers are straightforward to implement and cost-effective, but they often struggle to deliver the desired performance under varying load conditions and external disturbances [
5]. In particular, traditional PID controllers face issues related to slow response, poor robustness, and sensitivity to parameter variations. These limitations have motivated researchers to explore alternative optimization techniques to tune PID controllers and improve system performance in PMSM applications [
6]. Among the various optimization techniques, Particle Swarm Optimization (PSO) has gained attention due to its ability to solve non-linear optimization problems with relatively low computational complexity.
Traditional PSO is effective but suffers from slow convergence and premature local optima. It also performs poorly in high-dimensional tasks [
7]. To address these challenges, numerous modifications and enhancements to the PSO algorithm have been proposed. For instance, Belmadani et al. [
8] designed an improved PSO with adaptive factor selection for maximum power point tracking (MPPT) control in photovoltaic systems, which enhanced the algorithm’s adaptability to environmental changes and improved optimization stability. Kabra and Rani [
9] conducted a comparative study of P&O and PSO-based MPPT controllers under partial shading conditions, verifying that PSO exhibits superior global search capability and convergence speed in nonlinear system optimization. Liu et al. [
10] introduced an arctangent function-based learning factor to improve the PSO algorithm’s ability to escape local optima in motor control applications. However, while this method improves the balance between exploration and exploitation, it still struggled to provide a satisfactory trade-off between convergence speed and precision. Amini et al. [
11] proposed the IMF optimization algorithm, which updates particle positions based on fitness values. While this approach improved the convergence speed, it remained susceptible to local optima.
In the specific field of PMSM speed control, PSO-based parameter optimization has become a research focus. Zhang et al. [
12] proposed an adaptive PSO algorithm for robust speed control of PMSMs under parameter uncertainties, and experimental results showed that the algorithm effectively reduces speed fluctuation caused by parameter variations. Raj et al. [
13] used a modified PSO to tune PID controller parameters for PMSM speed regulation, achieving faster response time and lower overshoot compared with traditional manual tuning methods. Other approaches, such as those by Xue et al. [
14], combined PSO with sliding-mode chaotic controllers to address chaotic behavior in motors, while Wang et al. [
15] proposed a Gaussian-based improved PSO algorithm for automatically tuning weighting factors in model predictive control, effectively lowering switching frequency while preserving steady-state performance. Reda et al. [
16] proposed an MFPSO hybrid algorithm for efficient PID tuning in 4WD DC-motor systems, greatly improving speed control performance over existing methods. However, the introduction of fuzziness led to a decrease in computational efficiency, limiting their applicability in real-time systems.
Notably, external disturbances and parameter mismatches are critical factors affecting PMSM control performance. Cai et al. [
17] proposed a predefined-time sliding mode control strategy combined with an exact time disturbance observer for second-order systems, emphasizing that disturbance suppression is essential for improving control precision and robustness. However, existing PSO-based control methods for PMSMs rarely integrate adaptive disturbance compensation mechanisms and multi-stage optimization strategies, leading to insufficient balance between convergence speed, optimization accuracy, and anti-disturbance capability under complex working conditions.
In response to the limitations of traditional PSO and PID control methods, this paper proposes an Adaptive Hybrid Particle Swarm Optimization (AM-PSO) algorithm to improve the performance of PMSM speed control. AM-PSO integrates several advanced optimization techniques to address common issues such as slow convergence and local optima. A key feature is the dynamic adjustment of the inertia weight, which allows the algorithm to adapt to different stages of the optimization process, striking a balance between exploration and exploitation. This enhances convergence speed and solution accuracy. Additionally, AM-PSO incorporates local search strategies like Simulated Annealing (SA) and Differential Evolution (DE), which improve the search efficiency and prevent the algorithm from getting trapped in suboptimal solutions. Furthermore, a multi-stage optimization approach ensures broad exploration in the initial stages, followed by more focused local searches as the solution nears optimality. Lastly, the algorithm employs multi-objective optimization to simultaneously optimize multiple performance metrics, including control precision, response time, and robustness, making it highly suitable for real-time PMSM speed control.
The main contributions of this work include the following:
- 1.
Adaptive dynamic inertia weight: Adjusts based on the optimization stage, improving convergence and solution accuracy.
- 2.
Hybrid local search strategies: Incorporates SA and DE to strengthen local search capabilities and prevent premature convergence to suboptimal solutions.
- 3.
Multi-stage optimization strategy: Enables wide exploration at the beginning and focused local searches close to the optimal solution, speeding up the overall convergence process.
- 4.
Multi-objective optimization: Optimizes control precision, response time, and system robustness for PMSM speed control, offering a more comprehensive solution.
6. Result
6.1. Waveform-Based Visualization and AM-PSO Pareto Front Analysis
6.1.1. Visualization Results of AM-PSO-Controlled Motor Drive
In order to provide a comprehensive and intuitive evaluation of the proposed AM-PSO algorithm applied to an electric motor drive system, waveform-based visualization results are presented to illustrate the system’s dynamic and steady-state behaviors under different operating conditions. Compared with conventional tabular representations, these visual results offer clearer insights into the interaction between mechanical and electrical variables during transient and steady-state operation.
Figure 5A illustrates the motor’s rotational speed response over time. The waveform highlights key dynamic performance indicators, including rapid speed rise, negligible overshoot, short settling time, and high steady-state accuracy. These characteristics demonstrate the effectiveness of the AM-PSO algorithm in achieving precise speed tracking while maintaining robustness against load disturbances.
Figure 5B presents the three-phase stator current waveforms during transient conditions. A zoomed-in view from 0 to 0.1 s reveals the controller’s ability to regulate current smoothly during speed and load variations, confirming that the optimized control parameters ensure stable current response without excessive oscillations.
Figure 5C combines the rotational speed waveform with internal three-phase voltage and current signals in the time interval from 0.2 s to 0.4 s. This representation emphasizes the coordinated control of electrical inputs required to maintain smooth mechanical output during rapid operating changes.
Figure 5D further provides a detailed zoom of internal motor parameters (voltage, current, and speed) within the same interval. The figure reveals the internal dynamic adjustment process of the control system, demonstrating that the AM-PSO-based controller maintains system stability while efficiently responding to transient disturbances.
Overall, these waveform-based visualizations clearly verify the superior dynamic response and stability of the proposed AM-PSO control strategy under both transient and steady-state operating conditions.
6.1.2. AM-PSO Test System and Pareto Front Analysis
To quantitatively evaluate the multi-objective optimization capability of the proposed AM-PSO algorithm, a two-dimensional Pareto front analysis was performed. In this study, the Pareto front characterizes the trade-off between two conflicting performance objectives of the PMSM drive system: torque ripple (denoted as ) and current consumption (denoted as IC/1 × ). Each point on the Pareto front represents a non-dominated control parameter set; for any such set, improvement in one objective necessarily leads to degradation in the other.
As shown in
Figure 6, the Pareto front (indicated by ∗) lies along the boundary of all feasible solutions (indicated by ⋄), forming a smooth and well-distributed curve. This indicates that the AM-PSO algorithm effectively balances convergence accuracy—by approaching the true Pareto boundary—and solution diversity—by covering the full trade-off range. The dense distribution of feasible solutions surrounding the Pareto front further reflects the algorithm’s strong exploration capability in the solution space. Moreover, the non-dominated solutions provide flexibility in selecting control parameters according to application-specific priorities; for instance, one may prioritize minimal torque ripple.
Overall, these results demonstrate that the proposed AM-PSO algorithm can efficiently handle two-objective optimization problems in PMSM control, offering more flexible and adaptive control parameter sets compared with conventional single-objective tuning approaches.
6.2. Performance Comparison Across Test Scenarios
The performance of the AM-PSO algorithm was evaluated under three test scenarios: steady-state operation at 3000 RPM, load variation between 10% and 50%, and dynamic speed tracking from 1000 to 5000 RPM. Four key metrics—speed error, settling time, overshoot, and energy efficiency—were used to assess stability and responsiveness, with stability inferred from settling time, overshoot, and speed error drift.
In the steady-state test at 3000 RPM, the speed error remained extremely low at 0.03 RPM, with a fast settling time of 0.3 s and minimal overshoot of 1.2%. Energy efficiency reached 95%, demonstrating precise and efficient long-term operation. Under load variation (10–50%), speed error slightly increased to 0.05 RPM and settling time remained within 1.2 s, with overshoot rising to 3% and energy efficiency improving to 96%, indicating effective load adaptation and energy optimization.
During dynamic speed tracking (1000–5000 RPM), settling time increased to 2.5 s as expected for large speed changes, while speed error stayed low at 0.05 RPM and overshoot reached 4%, still within the 5% stability threshold. Energy efficiency remained stable at 94%, illustrating the robustness of AM-PSO in dynamic operations across varying speeds and loads.
Table 6 summarizes the performance metrics across all three test scenarios, highlighting the trade-offs between speed error, settling time, overshoot, and energy efficiency as the conditions varied.
Figure 7 provides a graphical comparison of these performance metrics, offering a visual representation of the stability and efficiency of the AM-PSO control across these scenarios.
In-Depth Interpretation of
Figure 7. The AM-PSO algorithm demonstrates consistently stable performance across all test scenarios. Speed error remains extremely low, at 0.03 RPM in steady-state operation (3000 RPM) with minimal drift (≤0.02 RPM over 30 min), and increases slightly to 0.05 RPM under load variation and dynamic speed tracking, still within the acceptable threshold. Settling time is 0.3 s in steady-state, rising to 1.2 s during load changes and 2.5 s during speed tracking—reasonable increases due to motor inertia rather than instability. Overshoot remains minimal at 1.2% for steady-state, increasing to 3–4% for load variation and speed tracking, yet staying below the 5% stability limit. Energy efficiency remains high (94–96%) across all conditions, ensuring thermal stability and robust operation.
The inset of
Figure 7 highlights dynamic response under load variation: the speed returns to 3000 RPM within 1.2 s after a 10%→50% load step, with no post-settling oscillations. Overall, the AM-PSO algorithm maintains a favorable balance between response speed and overshoot, avoiding the typical trade-offs seen in conventional methods (e.g., PSO: overshoot 6–8%, PID: settling time 3–4 s), confirming its superior stability, precision, and robustness for PMSM drives under varied operating conditions.
6.3. System Stability and Robustness
The stability and robustness of the AM-PSO algorithm were tested under various dynamic conditions, including external disturbances, parameter variations, and sensor noise. During the disturbance tests, a sudden increase in load from 10% to 50% was applied, causing a slight increase in speed error from 0.03 RPM to 0.05 RPM, as shown in
Table 7. Despite this, the system adapted well, with a settling time of 1.2 s and a slight increase in overshoot to 3%. Energy efficiency increased to 96% after the load change, showcasing the controller’s adaptability to external variations without notable performance loss.
The system’s robustness to parameter variations, such as changes in inertia and damping, was tested.
Figure 8 illustrates the response of the system under both nominal and parameter-varying conditions. The speed error increased slightly to 0.06 RPM, and settling time rose to 1.5 s, but the system maintained stable performance. This result highlights the AM-PSO algorithm’s ability to operate effectively even when system parameters fluctuate or are uncertain, a common challenge in practical applications.
The system’s response to sensor noise was evaluated by introducing random noise into the motor speed measurements. As shown in
Figure 8, the system remained resilient, with the speed error staying within 0.05 RPM and settling time unchanged at 0.3 s. This demonstrates the robustness of the AM-PSO algorithm in noisy environments, ensuring stable performance even with imperfect measurements. Overall, these tests underscore the AM-PSO controller’s stability and robustness across various operating conditions, making it ideal for real-world applications where disruptions, parameter variations, and sensor noise are inevitable.
6.4. Comparative Analysis with Other Control Methods
We evaluate the performance of the AM-PSO algorithm by comparing it with conventional control strategies, including PID, Model Predictive Control (MPC), Genetic Algorithm (GA)-based control, a standard Particle Swarm Optimization (PSO) controller, and recent state-of-the-art PSO variants and PMSM-specific control methods [
17,
18,
26]. The comparative results are summarized in
Table 8, highlighting AM-PSO’s superior performance across key metrics.
AM-PSO demonstrates clear advantages over existing PSO-based approaches for PMSM control. Compared with previously reported adaptive PSO variants [
12] (0.04 RPM, 0.7 s), AM-PSO reduces speed error by 25% and shortens settling time by 57%, primarily due to its multi-stage optimization strategy that adaptively balances exploration and exploitation across different phases—capabilities not present in standard PSO implementations. Similarly, modified PSO-PID methods [
13] (0.045 RPM) illustrate the benefits of AM-PSO’s hybrid SA/DE local search, which effectively avoids local optima and enhances convergence speed and robustness under dynamic load variations. In contrast, non-PMSM-specific PSO variants degrade in performance: adaptive factor PSO [
8] achieves 0.06 RPM and PSO-MPPT [
9] 0.07 RPM, highlighting the importance of AM-PSO’s PMSM-tailored multi-objective optimization that simultaneously targets precision, robustness, and energy efficiency.
All comparative algorithms were independently optimized for fairness. For instance, MPC uses a prediction horizon of 5 and control horizon of 2, while GA-based control uses a population size of 50 with 150 iterations, ensuring each method operates at its optimal parameters. Compared with traditional and advanced control methods, AM-PSO consistently delivers superior performance while maintaining practical adaptability. Against MPC [
25], which handles constraints effectively but depends on hardware, AM-PSO achieves slightly lower speed error (0.03 vs. 0.04 RPM) with 50% faster settling, without hardware-specific limitations. GA-based control [
24] achieves similar precision but requires 2.3 times longer settling, while PID [
5] is outperformed across all metrics, including a 40% reduction in speed error. These results confirm that AM-PSO effectively manages the nonlinear dynamics of PMSMs, providing fast, robust, and energy-efficient control across a wide range of operating conditions.
As shown in
Figure 9, AM-PSO consistently delivers the fastest stabilization and minimal overshoot across all comparisons. The integration of dynamic inertia weighting, hybrid SA/DE search, and multi-stage optimization effectively addresses key limitations of previous methods, confirming AM-PSO’s superiority in both PMSM-specific and generalizable control scenarios.
6.5. Analysis of Errors and Sensitivity Evaluation
This part provides an error analysis and sensitivity examination to evaluate the robustness of the AM-PSO method across different dynamic scenarios, emphasizing its responsiveness to disturbances, parameter fluctuations, and sensor noise. The goal is to understand how the system maintains optimal performance while minimizing errors, a critical factor for real-world applications.
Tests were conducted to evaluate the system’s response to speed error over time under nominal conditions, load variations, and parameter changes. As shown in
Figure 10, speed error remained low, even with load changes from 10% to 50%, where the error only increased slightly from 0.03 RPM to 0.05 RPM. This indicates the system’s strong ability to reject disturbances. Further tests with small variations in motor inertia and damping (summarized in
Table 9) showed that the speed error remained low, and settling time increased by just 0.3 s, demonstrating the system’s resilience to parameter uncertainties.
Additionally, random sensor noise was introduced to simulate real-world measurement errors. Despite the noise, the AM-PSO algorithm kept the speed error below 0.05 RPM with no significant increase in settling time, as shown in
Figure 10. This confirms the controller’s robustness against sensor inaccuracies. Overall, the error analysis and sensitivity study highlight that the AM-PSO algorithm is highly resilient to both external disturbances and internal variations, ensuring reliable performance with low speed error, fast settling times, and high energy efficiency in challenging conditions.
6.6. Generalizability Analysis Across Multiple PMSM Configurations
To validate whether the proposed AM-PSO algorithm’s performance is generalizable beyond the original 1.5 kW PMSM,
Table 10 summarizes the key metrics of AM-PSO, PID, and traditional PSO across PMSM-1 (1.5 kW), PMSM-2 (0.5 kW), and PMSM-3 (10 kW) under the Parameter Mismatch scenario (R/L perturbed by ±20%):
For all three PMSM configurations, AM-PSO consistently achieves the lowest speed error (0.02–0.08 RPM), fastest settling time (0.8–2.1 s), and highest energy efficiency (94–96%), outperforming PID and traditional PSO by 15–40% in key metrics.
For PMSM-2 (precision robotics), AM-PSO meets the strict speed error requirement (≤0.02 RPM), while PID and PSO fail to reach this threshold—demonstrating adaptability to high-precision scenarios.
For PMSM-3 (EV powertrains), AM-PSO maintains stability during rapid load steps and parameter perturbations, with overshoot reduced by 40% compared to PID—validating its suitability for high-power dynamic applications.
The relative improvement of AM-PSO over competing methods is consistent across all motors (e.g., speed error reduced by 33–50% vs. PID), indicating that its core mechanisms (dynamic inertia weight, hybrid SA/DE, multi-stage optimization) are effective regardless of motor power, torque, or speed range.
Figure 11.
Speed error comparison under parameter mismatch for three PMSM configurations (AM-PSO: red, PID: blue, PSO: green).
Figure 11.
Speed error comparison under parameter mismatch for three PMSM configurations (AM-PSO: red, PID: blue, PSO: green).
6.7. Cross-Configuration Validity Analysis
To demonstrate the generalizability of the AM-PSO algorithm across heterogeneous hardware/software setups, its performance was systematically evaluated on Config-1 (DSP+Simulink), Config-2 (STM32+Python), and Config-3 (FPGA+Modelica) using the 1.5 kW PMSM under identical core scenarios: Constant Speed, Load Variation, and Parameter Mismatch. The key performance metrics are summarized in
Table 11.
To further evaluate the generalizability of the proposed AM-PSO algorithm beyond a single hardware/software setup, its performance was tested across Config-1 (DSP+Simulink), Config-2 (STM32+Python), and Config-3 (FPGA+Modelica) using the 1.5 kW PMSM. The algorithm was subjected to identical control scenarios, including Constant Speed, Load Variation, and Parameter Mismatch, to ensure a fair comparison. The resulting key performance metrics are summarized in
Table 11, providing the basis for detailed observations regarding its adaptability and robustness across heterogeneous platforms.
1. Consistent Performance: AM-PSO maintains low speed error (<0.07 RPM) and high energy efficiency (>94%) across all configurations, exhibiting only minor variations (≤0.03 RPM) despite differences in hardware capabilities.
2. Adaptability to Platform Constraints: On Config-2 (resource-constrained MCU), computation latency is elevated (250 µs) but remains within real-time motor control requirements (<500 µs), with minimal impact on overall performance—highlighting the algorithm’s low computational burden. On Config-3 (high-frequency FPGA), the algorithm exploits 100 kHz PWM to achieve faster settling (1.0 s) and lower speed error (0.04 RPM), demonstrating compatibility with high-performance hardware.
3. Robustness Across Platforms: Relative improvements of AM-PSO over conventional PID and standard PSO are consistent (e.g., speed error reduction of 30–45% vs. PID), confirming that its core mechanisms, including dynamic inertia weighting and hybrid SA/DE search, are platform-agnostic.
To further confirm generalizability, AM-PSO was also evaluated on Config-2 paired with the 0.5 kW PMSM and Config-3 paired with the 10 kW PMSM. As summarized in
Table 12, the algorithm retains its performance advantages, achieving speed error < 0.05 RPM for the 0.5 kW PMSM and <0.09 RPM for the 10 kW PMSM, with overshoot < 4% in both cases.
6.8. Discussion of Results in the Context of Previous Studies
The experimental results show that AM-PSO achieves high speed control precision, rapid convergence, and robust disturbance rejection across multiple PMSM configurations and system setups. Unlike previous PSO-based PMSM methods focusing on single-mechanism improvements, AM-PSO integrates dynamic inertia weighting, hybrid SA/DE search, and multi-stage optimization. This holistic design reduces speed error by 25–40% and settling time by 33–57%, achieving a minimum speed error of 0.03 RPM for the 1.5 kW PMSM. The improvement stems from adaptively balancing exploration in early stages and exploitation in later stages, effectively resolving the convergence-precision trade-off inherent in traditional PSO.
AM-PSO further addresses multi-objective optimization, simultaneously considering precision, response time, robustness, and energy efficiency. The algorithm achieves a balanced performance profile: 95% energy efficiency, 0.3 s settling time, and 1.2% overshoot, demonstrating that the weighted fitness function effectively handles conflicting objectives. Previous methods often optimized only two or three metrics, leading to trade-offs; AM-PSO overcomes this through integrated multi-stage and hybrid optimization.
A key advancement of AM-PSO is its generalizability and robustness. It performs consistently across PMSM power ratings from 0.5 to 10 kW and hardware setups including DSP, MCU, and FPGA, with speed error RPM and energy efficiency . The modular, platform-agnostic design allows application to robotics, industrial drives, and EV powertrains. External disturbances such as load changes, parameter variations, and sensor noise cause minimal performance degradation. Computational latency (40–250 µs) remains suitable for real-time control, outperforming GA-based methods while avoiding the hardware constraints of MPC. Overall, AM-PSO unifies precision, efficiency, robustness, and cross-platform applicability in a single framework.
7. Conclusions
The AM-PSO algorithm demonstrates strong robustness in maintaining low speed error, fast settling times, and high energy efficiency across three distinct PMSM configurations: 0.5 kW precision robotics, 1.5 kW industrial drives, and 10 kW EV powertrains, as well as three system setups (DSP, MCU, FPGA) under various dynamic conditions. Specifically, it achieves speed errors as low as 0.02–0.08 RPM, settling times from 0.3 to 2.5 s depending on load and motor rating, and energy efficiency consistently above 94%. These results represent 25–40% lower speed error and 33–57% faster settling compared to existing PSO-based and conventional control methods.
Key advantages and observations of AM-PSO include the following:
Integrated optimization mechanisms (dynamic inertia weight + hybrid SA/DE + multi-stage optimization) that effectively balance exploration and exploitation, reducing speed error by up to 40% compared to standard PSO or PID control.
Multi-objective optimization that simultaneously manages precision, response time, robustness, and energy efficiency. Pareto front analysis shows a smooth trade-off between torque ripple and current consumption: for example, torque ripple can be reduced by 15% while current consumption only increases by 8%, demonstrating balanced multi-objective performance.
Generalizability across motor ratings (0.5–10 kW) and system configurations (DSP, MCU, FPGA), maintaining performance consistency: speed error RPM and energy efficiency in all tested scenarios.
Robust disturbance rejection under load variations (10–50%), parameter mismatches, and sensor noise, with minimal performance degradation (speed error increase RPM).
Despite these strengths, the current work has several limitations: (i) sensor noise was modeled as Gaussian random noise, which may not fully capture real-world disturbances; (ii) computational latency ranges from 40 to 250 µs, which could be further reduced for ultra-high-frequency control scenarios; (iii) the method has so far been validated only on PMSMs, and not on other motor types such as induction or synchronous reluctance motors; and (iv) while this study focuses on single-objective optimization comparisons (GA and PSO), multi-objective algorithms such as MOPSO and NSGA-II have not been explored.
Future research will address these limitations by: (i) incorporating more realistic and complex noise and disturbance models to further assess robustness; (ii) optimizing computational efficiency for real-time implementation in high-frequency and multi-motor systems; (iii) extending the AM-PSO approach to other motor types, including induction motors and synchronous reluctance motors, to verify its applicability and performance across different motor topologies, and (iv) investigating multi-objective optimization algorithms, such as MOPSO and NSGA-II, to handle scenarios involving multiple conflicting objectives and further enhance the applicability of the proposed method.