Next Article in Journal
Unconventional Fossil Energy Carrier Assessment of the Influence of the Gas Permeability Coefficient on the Structure of Porous Materials: A Review
Next Article in Special Issue
Emergency Load-Shedding Strategy for Power System Frequency Stability Based on Disturbance Location Identification
Previous Article in Journal
Study on the Causes and Countermeasures of High Lightning Trip-Out Rate on Electric Transmission Lines
Previous Article in Special Issue
Event-Triggered Transmission of Sensor Measurements Using Twin Hybrid Filters for Renewable Energy Resource Management Systems
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Enhanced Raccoon Optimization Algorithm for PMSM Electrical Parameter Identification

1
College of Electrical and Information Engineering, Zhengzhou University of Light Industry, Zhengzhou 450002, China
2
School of Wind Energy Engineering, Hunan Electrical College of Technology, Xiangtan 411101, China
3
College of Electrical and Information Engineering, Hunan University, Changsha 410082, China
4
School of Elevator Engineering, Hunan Electrical College of Technology, Xiangtan 411101, China
*
Author to whom correspondence should be addressed.
Energies 2025, 18(4), 869; https://doi.org/10.3390/en18040869
Submission received: 7 January 2025 / Revised: 28 January 2025 / Accepted: 10 February 2025 / Published: 12 February 2025
(This article belongs to the Special Issue Renewable Energy Management System and Power Electronic Converters)

Abstract

:
This article proposes an improved algorithm for the parameter identification of permanent magnet synchronous motors (PMSMs). An enhanced raccoon optimization algorithm (EROA) was formed by combining the raccoon optimization algorithm (ROA) with the adaptive exploration radius, raccoon-washing-food-inspired, and escaping-predator strategies. First, using some of the functions in IEEE CEC2015, the EROA solution has a large improvement in convergence speed and solution accuracy compared with other algorithms. Second, the EROA solution is more stable under the same conditions, as demonstrated by MATLAB parameter identification simulation. Finally, EROA is applied to motor parameter identification through motor control experiments.

1. Introduction

Permanent magnet synchronous motors (PMSMs) are widely used in industry due to their high efficiency and small size [1,2,3]. However, realizing the high-performance control for PMSMs requires accurate motor parameters. For example, model predictive control [4,5] and speed sensorless control [6,7] require accurate motor parameters as a basis. The PMSM parameter identification is categorized into online identification [8,9,10] and offline identification [11,12,13]. Online identification is performed when the motor is integrated into the control system. This method relies on the real-time response of the motor’s input and output, combining the motor control model with the identification algorithm to estimate key parameters. Online identification is often coupled with motor control techniques [14,15] to continuously update the motor parameters. In contrast, offline identification is typically performed when the motor is disconnected from the operating system. This method uses feedback data to estimate the motor’s electrical and mechanical parameters by applying a predetermined signal to the motor. Offline identification is commonly used to initialize parameters before motor startup [16], and it is widely applied in industry.
The main online identification methods are recursive least squares (RLS), model reference adaptive (MRAS), extended Kalman filtering, and high-frequency signal injection. RLS has good mathematical-statistical properties and a wide range of adaptability. In article [17], inductance, flux linkage, and resistance parameters are recognized by a recursive total least-square excitatory and inhibitory learning to update the model parameters of the velocity-free sensor. Reference [18] addresses the rank-deficiency problem in motor parameter identification using the current derivative method in combination with RLS to obtain parameter results. However, RLS requires careful consideration of the convergence speed and solution accuracy of the algorithm. In [19], inductance, resistance, and flux linkages are identified using MRAS. Ref. [20] improves the tracking accuracy of inductance parameters and enhances the precision of speed sensorless control by combining the improved Virtual Rotating Axis High-Frequency Injection (VHFSI) method with MRAS. However, the adaptive rate design process of MRAS is more complex.
In [21], system states and two key motor parameters are estimated using a dual extended Kalman filter. However, this method operates the motor under steady-state conditions, and there is a rank-deficiency issue in the parameter identification process, making it difficult to identify all electrical parameters, particularly for Interior PMSMs (IPMSMs). In [22], motor parameters are obtained by injecting high-frequency sinusoidal voltages into the stationary coordinate system ( α β -axis) to update the model parameters in the position observer. However, high-frequency signals can interfere with motor control, and motor feedback signals are prone to distortion. Reference [23] proposes using a triangle wave injection method to address the rank-deficiency problem in parameter identification, employing RLS to extract multiple motor parameters after receiving the motor feedback signal.
Offline identification methods include finite element analysis (FEA) [24], signal injection [25], and artificial intelligence algorithms [26]. FEA can provide high-precision parameters that accurately reflect the nonlinear characteristics of the motor, but FEA is commonly used in the pre-design stage of the motor. In article [27], the effectiveness of a parameter identification scheme is verified by FEA. However, finite element analysis requires a powerful computing system and is often used when designing engines. In article [16], the amplitude-auto-adjusting signal injection (ASI) method is proposed to recognize the inductance and stator resistance in different states offline. Selecting an appropriate signal injection method is crucial for motor parameter identification, as it helps decouple the parameters in the identification model and compensates for rank deficiencies in the identification process. In this study, the issue of rank deficiency in the identification equation is addressed by injecting different currents into the d-axis. Intelligent algorithms have rapidly developed, and many types of intelligent algorithms have emerged [28]. Depending on the source of inspiration, they can be categorized as swarm-based, evolution-based, physics-based, game-rule-based, and human-social-relationship-based [29]. Artificial intelligence algorithms have outstanding abilities to solve high-dimensional functions, and scholars have applied them to the solution of motor parameters [30]. Commonly, an improved particle swarm algorithm (PSO) performs parameter identification. In article [31], a modified PSO is used to solve the motor parameter identification objective function. In article [32], the particle motion states are improved to form an interactive and dynamically learned PSO to solve for motor parameters.
In recent years, the number of swarm intelligence algorithms has steadily increased, expanding the range of methods available for parameter identification. Ref. [33] employs PSO to identify key motor parameters, enhancing the effectiveness of model predictive control. Ref. [34] uses PSO to optimize the peak cogging torque and no-load back electromotive force (EMF) amplitude, thereby improving motor control performance. Ref. [35] introduces the improved CGCRAO algorithm to enhance parameter identification accuracy, offering new insights in the field. Reference [36] takes into account the negative effects of the drive circuit, such as the dead time of the switching devices, the time delay of the low-pass filter, and angle deviation, to improve the accuracy of parameter identification results.
ROA [37] has a better solution at lower population sizes. In article [38], ROA reduces the scheduling time compared to other algorithms. In article [39], an algorithm based on ROA is implemented for precise localization to improve the accuracy of range measurements. In article [40], ROA is used to significantly improve job scheduling. By improving ROA, motor parameters can be more accurately identified, yielding new insights. To ensure the algorithm meets the requirements of parameter identification, this paper introduces three improvements aimed at enhancing the accuracy and stability of the process.
In this article, the signal injection method combined with intelligent algorithms is used for PMSM parameter identification. Since the direct application of ROA does not solve the problem effectively, this article improves ROA using the adaptive exploration radius, raccoon-washing-food-inspired, and escaping-predator strategies. To validate the effectiveness of EROA, the more classical algorithms ROA, PSO [41], E_WOA [42], and GA [43] were selected for comparison using some of the IEEE CEC 2015 test sets. When compared with recent algorithms such as the Snow ablation optimizer [44] and the Walrus Optimization Algorithm [29], the newly proposed EROA reaches an advanced level of performance. EROA has a large advantage in convergence speed and solution accuracy. Parameter identification objective functions are established in simulation and motor experiments for comparison. EROA can find the motor parameters more quickly.

2. Parameter Identification of PMSM

The parameter identification method in this article is based on the voltage equations in the steady state of the PMSM. To facilitate the analysis, the motor voltage Equation (1), which ignores the effect of core saturation and losses of PMSM, is considered in the d q rotating coordinate system.
u d = R s i d + L d d i d d t ω e L q i q u q = R s i q + L q d i q d t + ω e L d i d + ψ f ω e
where u d and u q are the d q -axis voltages; i d and i q are the d q -axis currents; ω e are the electromechanical angular velocities; R s is the stator resistance; L d and L q are the d q -axis inductances; and ψ f is the permanent flux linkage. Through PMSM vector control, the motor steadily operates at a certain speed. At this point, the d q -axis currents of the PMSM remain stable in a very small range. It may be assumed that d i d / d t = d i q / d t = 0 . From Equation (1), we obtain Equation (2).
u d = R s i d ω e L q i q u q = R s i q + ω e L d i d + ψ f ω e
Injecting different currents into the d-axis increases the number of equations. The system of full-rank voltage equations is shown in (3), which can be used as a reference model for the motor.
u d 0 = ω e 0 L q i q 0 u q 0 = R s i q 0 + ψ f ω e 0 u d 1 = R s i d 1 ω e 1 L q i q 1 u q 1 = R s i q 1 + ω e 1 L d i d 1 + ψ f ω e 1
where i d = 0 A defines the formula subscript as 0, and i d = −1 A defines the formula subscript as 1. The adjustable model (4) is formed using the PMSM run data and the reference model.
u ^ d 0 = ω e 0 L ^ q i q 0 u ^ q 0 = R ^ s i q 0 + ψ ^ f ω e 0 u ^ d 1 = R ^ s i d 1 ω e 1 L ^ q i q 1 u ^ q 1 = R ^ s i q 1 + ω e 1 L ^ d i d 1 + ψ ^ f ω e 1
Using the sum of squares of the differences between the reference and adjustable models, we obtain (5) as a fitness function for parameter identification.
f 1 ( L ^ q ) = [ u d 0 ( k ) u ^ d 0 ( k ) ] 2 f 2 ( R ^ s , ψ ^ f ) = [ u q 0 ( k ) u ^ q 0 ( k ) ] 2 f 3 ( R ^ s , L ^ q ) = [ u d 1 ( k ) u ^ d 1 ( k ) ] 2 f 4 ( R ^ s , L ^ d , ψ ^ f ) = [ u q 1 ( k ) u ^ q 1 ( k ) ] 2
When suitable motor parameters are encountered such that the sum of the four functions is 0, the PMSM parameters in (6) are found.
F u n ( p ) = i = 1 4 f i ( p ) ,   p = [ R ^ s , L ^ d , L ^ q , ψ ^ f ]
F u n ( p ) is the fitness of the parameter vector p. In this paper, this function is solved by improving the raccoon optimization algorithm, and the final parameter vector p can be obtained when the function converges to a certain range.

3. Enhanced ROA

3.1. Characteristics of ROA

ROA is mainly characterized by generating two sets of scenarios, R b e s t 0 and V b e s t 0 , in two ranges around the initial location l o c 0 , namely the reachable zone radius (RZR) and the visible zone radius (VZR). We compare the fitness values of R b e s t 0 , V b e s t 0 , and l o c 0 to obtain their best solution (7).
F u n ( l o c 1 ) = m i n [ F u n ( l o c 0 ) , F u n ( R b e s t ) , F u n ( V b e s t ) ]
By comparing the fitness value of the new generation l o c 1 with G o p t , the algorithm determines whether to update the globally optimal solution G o p t . If no good solution is selected around l o c 0 , we infer that l o c 1 = l o c 0 , which represents no movement in the raccoon location and requires a cumulative migration factor (MF). When MF reaches a certain number of times, the l o c 1 position is forced to update. If a certain number of times is not reached, we generate a different population. We perform the iteration NI times and finally output G o p t . To quickly find the optimal solution, it is necessary to rationalize the migration scheme and the new position after the migration.
To improve the algorithm’s accuracy, ROA is improved using the adaptive exploration radius, raccoon-washing-food-inspired, and escaping-predator strategies to form EROA. Figure 1 shows the overall flow of EROA. In Figure 1, i is the current number of iterations; n t is the current number of times l o c i = l o c 0 ; L o c 0 is the raccoon natural community; and F l o c 0 , F l o c 1 , F R b e s t , and F V b e s t are the values of l o c 0 , l o c 1 , R b e s t , and V b e s t for the fitness values, respectively.

3.2. Adaptive Exploration Radius Strategy

The algorithm uses the adaptive exploration radius strategy to facilitate the solution, as the initial exploration radius is a human-set initial value, but each dimension is almost unpredictable for the problem that requires solving. To improve the convergence accuracy of the algorithm, one approach is to slowly converge the exploration radius during the iteration of the algorithm. The second approach is to explore different positions so that the algorithm can be automatically adjusted to the appropriate exploration radius.
The strategy to decrease the exploration radius with the number of iterations is expressed as (8).
R Z R = ( X m a x X m i n ) × k i f ( i < N i ) R Z R = ( X m a x X m i n ) × k ÷ i i f ( i N i )
where X min and X max constitute the exploration range, and k controls the range of RZR initial values. To adapt the radius of exploration so that the algorithm can automatically learn, we define (9) as follows:
R r = G o p t L o c ( r o u n d ( N o p ) , 1 )
where L o c 0 is the raccoon community, Nop is the set population density, R r is the adaptive radius updated with iterations, and round is defined to generate random positive integers. To ensure that R r has self-learning properties, we set (10).
F L o c r = F u n ( G o p t + r a n d × R r )
where F L o c r is the evaluated value of another raccoon that arrives at the new location under the influence of G o p t , and rand denotes a 0–1 uniform distribution. The adaptive updating of RZR is performed during the iteration of the algorithm, as shown in (11).
R Z R = R r ,   i f ( F l o c r < F G o p t )
If G o p t is updated, the adaptive radii RZR and VZR are updated with G o p t . The adaptive exploration radius strategy allows the algorithms to exchange optimal target information during the optimization process, improving the accuracy of the algorithm solution.

3.3. Raccoon-Washing-Food-Inspired Strategy

The raccoons must find a nearby water source to wash their food. From this perspective, the behavior of raccoons searching for wetlands after capturing food is modeled. Assume that the current optimal raccoon is the earliest to find food and arrive at the water source to wash the food, and the other raccoons come relatively late. At this point, the cluster of raccoons by the water edge can be represented as a partial cluster near the optimal raccoon, which produces a better solution by combining the optimal raccoon with the later ones in conjunction with one another. A mathematical model of the process in which the optimal raccoon and other raccoons head out to a nearby water source is established as follows. The small cluster gRZR (12) represents the concentration of raccoons near a given water source.
g R Z P = g R Z P 1 g R Z P i g R Z P m m × 1
where the new location of each raccoon is updated according to (13).
g R Z P i = G o p t + ( r a n d 0.5 ) × ( G o p t L o c ( s , : ) )
Loc(s,:) is the location of another raccoon with the same objective. The smallest F g R Z P m i n (14) is selected in gRZR (12).
F g R Z P m i n = m i n ( F u n ( g R Z P i ) )
The fitness of g R Z P m i n relative to G o p t determines whether G o p t is updated, as shown in Equation (15).
G o p t = g R Z P ( m i n ) ,   i f ( F u n ( g R Z P ( m i n ) ) < F G o p t )
This produces better results and improves the algorithm solution accuracy. Using the raccoon-washing-food-inspired strategy, a new generation of raccoons can be provided with a new advantageous position, guiding the algorithm to quickly pursue the optimal goal.

3.4. Escaping-Predator Strategy

A raccoon ducking under attack often creates new possibilities. The raccoon escape strategy is modeled by assuming that a raccoon looks for a direction to quickly escape after being attacked. During this behavior, the ability of the raccoon to arrive at a new safe location implies that the algorithm finds a new target. Failure to do so means that the raccoon fails to escape, and a better target is not found. M r i is the new location of the raccoon after it has escaped, and its update process can be tabulated as shown in (16).
M r i = L o c 0 ( x i , : ) + ( M X m i n + ( r a n d + 0.5 ) × ( M X m a x M X m i n ) ) M X m a x = X m a x i ,   M X m i n = X m i n i
M X m i n and M X m a x are the current minimum and maximum ranges of escape of the raccoon, which continuously change as the algorithm iterates; xi is a random integer, and 0 < xiNop. The resulting superior solution is used to update the raccoon colony (17).
L o c 0 ( x i , : ) = M r i F L o c x i = F u n ( M r i ) ,   i f ( F u n ( M r i ) < F u n ( L o c 0 ( x i , : ) ) )
which can be compared with G o p t (18).
G o p t = M r i F G o p t = F u n ( M r i ) ,   i f ( F u n ( M r i ) < F G o p t )
Here, the algorithm can greatly jump out of the local optimum and find better results. Under certain conditions, the escaping-predator strategy offers an effective solution for the raccoon’s new location, aiding in the optimization of the algorithm and potentially improving its solution speed.
In summary, this article employs the adaptive exploration radius, raccoon-washing-food-inspired, and predator-escape strategies to enhance ROA, resulting in the generation of EROA.

4. Simulation and Experimental Methods

4.1. Algorithm Testing

To validate the EROA effectiveness, the algorithm was tested through some of the IEEE CEC 2015 function test sets. Five algorithms were set to identical conditions with a total population size of 100 and 1000 iterations: ROA, PSO, E_WOA, GA, and EROA. To approach the dimensionality of the problem of parameter identification, we tested the algorithms by selecting their medium fixed-dimensional multi-peaked test functions F 1 F 9 . Equations (19)–(27) can be used to express the objective function of the test functions F 1 F 9 .
F 1 ( X ) = 1 500 + j = 1 25 1 j + i = 1 2 ( x i a i j ) 6 1 ,   [ 65.53 , 65.53 ] 2
F 2 ( X ) = i = 1 11 a i x i ( b i 2 + b i x 2 ) b i 2 + b i x 3 + x 4 2 ,   [ 5 , 5 ] 4
F 3 ( X ) = 4 x 1 2 2.1 x 1 4 + 1 3 x 1 6 + x 1 x 2 4 x 2 2 + x 2 4 ,   [ 5 , 5 ] 2
F 4 ( X ) = x 2 5.1 4 π 2 x 1 2 + 5 π x 1 6 2 + 10 1 1 8 π c o s x 1 + 10 ,   [ 5 , 10 ] × [ 0 , 15 ]
F 5 ( X ) = [ 1 + ( x 1 + x 2 + 1 ) 2 ( 19 14 x 1 + 3 x 1 2 14 x 2 + 6 x 1 x 2 + 3 x 2 2 ) ] × [ 30 + ( 2 x 1 3 x 2 ) 2 ( 18 32 x 1 + 12 x 1 2 + 48 x 2 + 36 x 1 x 2 + 27 x 2 2 ) ] ,   [ - 2 , 2 ] 2
F 6 ( X ) = i = 1 4 c i e j = 1 3 a i j ( x j p i j ) 2 ,   [ 0 , 1 ] 3
F 7 ( X ) = i = 1 4 c i e j = 1 6 a i j ( x j p i j ) 2 ,   [ 0 , 1 ] 6
F 8 ( X ) = i = 1 5 ( X a i ) ( X a i ) T + c i 1 ,   [ 0 , 10 ] 4
F 9 ( X ) = i = 1 7 ( X a i ) ( X a i ) T + c i 1 ,   [ 0 , 10 ] 4
Table 1 shows the values of the fixed-dimensional multi-peak test functions F 1 F 9 .
Figure 2 shows the effect of the test function algorithm iteration. Figure 2 compares the performance of five algorithms—EROA, ROA, PSO, GA, and E_WOA—during the solution process. As shown in Table 1, the dimensions of the 9 IEEE CEC 2015 test set functions represent varying levels of problem difficulty. The dimensions of these functions are similar to those used in the parameter identification process in this study. By comparing these test set functions, the most suitable algorithm for parameter identification can be optimized.
Equations (19)–(23) represent complex solution functions with 2 or 4 dimensions. The algorithm performance comparison for these functions is shown as F 1 F 5 in Figure 2. Among the algorithms, GA and ROA show poor optimization performance, while EROA, PSO, and E_WOA exhibit better overall performance and faster convergence.
For the solution process of Equations (24) and (25), represented by F 6 F 7 in Figure 2, the presence of multiple extreme points in the function makes it easy for the algorithm to fall into local optima. ROA and GA are more susceptible to this issue and fail to reach the optimal value. In contrast, EROA, PSO, and E_WOA perform well by escaping the local optimum and successfully optimizing toward the global optimum.
The objective functions (26) and (27) are more prone to falling into local optima than function (27). The optimization process for these functions is shown in F 8 F 9 in Figure 2. ROA, GA, PSO, and E_WOA are differently affected by this issue, with EROA demonstrating a clear advantage in escaping the local optimum.
Overall, EROA could quickly find the optimal value during the solution process. Compared with ROA, EROA has a large improvement in solving speed and accuracy. Compared with algorithms such as E_WOA, EROA is leading in F 1 F 9 . Ten independent experiments were conducted for each algorithm, and the average results are shown in Table 2. As shown in Table 2, there is a significant improvement in EROA compared to ROA. In F 1 , F 3 , F 4 , F 5 , F 6 , and F 7 , EROA, PSO, and E_WOA have identical effects. In F 2 and F 8 , the value sought by EROA is minimized. In F 9 , EROA and PSO have similar effects. Overall, EROA excels compared to other algorithms.

4.2. Simulation Analysis

The PMSM vector control simulation model was built in MATLAB. The motor in this experiment was a surface-mounted PMSM. In the process of identifying the motor parameters, let L d = L q = L s . Table 3 shows the PMSM parameters.
We set the simulation parameters as follows: DC bus voltage, 150 V; motor angular velocity speed, 40 Hz; and 0.5 s to join the load. Throughout the control process, a current with i d = 0 A and i d = −1 A was injected into the d-axis. The two different currents can be separated by 0.1 s to make it easier for the parameter identification algorithm to process the motor operating data. During motor operation, data such as i d , i q , u d , u q , and ω e were saved to the MATLAB workspace. To test the algorithms, the algorithm population size was set to 20, and the number of iterations was set to 200. Seventy data sets were selected for parameter identification. Table 4 shows the average values of the solution effectiveness of several algorithms, including EROA.
From Table 4, EROA had the highest solution accuracy with three parameters within 1% error. ROA had large errors in L s and ψ f , which could not be satisfied. PSO had a similar solving accuracy to EROA. The L s error of the E_WOA solution was large, which shows that the EROA solution is more stable than the E_WOA solution under identical conditions. At the end of Table 4, two relatively advanced algorithms, WaOA and SAO, are introduced for comparison with the performance of EROA. Under the same conditions, EROA demonstrates comparable solution capabilities to these advanced algorithms, indicating that the optimization approach presented in this paper significantly enhances the performance of the original algorithm.

4.3. Experimentation

Over time, various energy losses within the motor accumulate as heat. Changes in motor temperature lead to nonlinear variations in resistance parameters, which, in turn, affect the conduction current. As an inductive element, the magnitude of the motor stator winding inductance can cause saturation of the winding coil’s magnetic field, leading to changes in inductance. Decoupling control is central to FOC (Field-Oriented Control), and variations in electrical parameters can disrupt this control. This disruption may prevent the accurate regulation of the torque and excitation components, thereby affecting FOC performance. In addition, the demagnetization of the permanent magnets due to high temperatures can cause permanent damage to the motor control. Therefore, parameter identification plays a critical role in motor control.
In order to fully verify the use of EROA to solve PMSM parameter identification, application tests of the algorithm were conducted on the actual motor control platform. The motor control platform was the TMDSHVMTRPFCKIT from Texas Instruments (TI). Figure 3 shows the physical motor control platform.
The experimental platform was a PMSM control system with TMS320F28335 as the core. The PMSM model number was EMJ-04APB22, and Table 3 shows the main parameters. Motor motion state control was performed using Code Composer Studio (CCS). The inverter DC bus voltage was set to 150 V, and an Interrupt Service Routine frequency of 10 kHz was defined. A segment of motor operating data, including the d q -axis voltage, current, and ω e , was saved while the motor was stabilized. Due to the tight storage resources inside the chip, 70 sets of motor operation data were saved for this experiment. The operating data in the control chip were uploaded to the host computer through CCS, and the motor recognition function was implemented in MATLAB. Figure 4 shows the motor parameter identification process, a common method for PMSM parameter identification. The motor control platform uses vector control to operate the PMSM. During motor operation, a current is applied to the d-axis, with id set to either 0 A or −1 A. The d-axis current change interval can be referenced through simulation. Memory resources on the motor control chip are used to store the operational data required for parameter identification. Data such as u d , u q , i d , i q , and ω e are then uploaded via the communication interface between the control board and the computer, enabling MATLAB to process the data. By running EROA to solve the parameter identification fitness function, the motor’s electrical parameters can be obtained.
In this process, a set of experimental data was selected to compare the effects of EROA, ROA, PSO, GA, and E_WOA. The algorithm parameters were set to populate 20 and 300 iterations. Figure 5 shows the performance of the five intelligent algorithms.
When EROA was used to determine the motor parameters, the convergence speed was faster, and the results were more accurate and more stable compared to the other four algorithms. PSO had similar solution accuracy to EROA, but EROA converged more quickly and stabilized at approximately 150 iterations. This algorithm maintained a high accuracy with few iterations and obtained a more optimal solution. This result is consistent with the simulation results. Figure 6 shows the parameter identification results for the 70 sets of data.
The EROA identification had a more stable effect than the identification of the other algorithms. Table 5 shows the statistical analysis results of the 70 sets of data. As shown in Table 5, this article’s improved raccoon algorithm EROA was used to recognize the motor parameters with average errors of 1% for R s and ψ f and 1.6% for L s .
In this article, EROA was applied to the motor control system to identify the motor parameters on the motor control platform TMDSHVMTRPFCKIT. Figure 7 shows the parameter identification process. Compared to Figure 4, the key difference in Figure 7 is that the parameter identification process no longer requires computer involvement. This represents a significant innovation of this study, where EROA is applied directly to the motor control chip. The motor control platform is run to collect operational data under i d = 0   A and i d = - 1   A . These data are processed directly within the motor control chip. Following the parameter identification principles outlined in Section 2, the motor operation data are used to construct a parameter identification fitness function. Finally, EROA is run on the motor control chip to obtain the motor’s electrical parameters.
We controlled the motor motion state and saved a portion of the motor operation data. The EROA solving algorithm was applied in the motor control chip to solve the motor parameters. To ensure the accuracy of the EROA solution, the population was set at 20, and the number of iterations was set at 400. The obtained motor parameters were imported into the computer for review, and Figure 8 shows the results.
The data therein were analyzed, and Table 6 shows the results. The parameter identification in the motor control system was performed using EROA. The error of the required parameters was within 2%. In summary, this method can be used to monitor changes in motor parameters. EROA can be used to solve the fitness function and determine the motor parameters at regular intervals.

5. Conclusions

In this article, R s , L s , and ψ f of PMSMs were identified based on an enhanced raccoon optimization algorithm. ROA was improved using the adaptive exploration radius, raccoon-washing-food-inspired, and escaping-predator strategies to form EROA with better solution efficiency. The simulation results show that EROA can achieve faster converge speed and higher robustness than ROA. From the experimental results, EROA can quickly find the motor parameters, which are consistent with the simulation results, and the error of the identification results does not exceed 2%.
In conclusion, this study offers significant implications for the field of motor control. The flexibility of intelligent algorithms has expanded the application scope of parameter identification techniques. In future work, the research will focus on reducing the computational complexity of intelligent algorithms, enhancing the speed and accuracy of parameter identification, and expanding its applications to various contexts.

Author Contributions

Conceptualization, Z.H. and X.Y.; methodology, J.Z.; software, J.Z.; validation, J.Z., X.Y. and Z.F.; formal analysis, X.Y.; investigation, J.Z.; resources, X.Y.; data curation, J.Z.; writing—original draft preparation, J.Z.; writing—review and editing, X.Y.; visualization, X.Y.; supervision, Z.L.; project administration, X.H.; funding acquisition, X.Y. 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 General Program, the Henan Province Key R&D Project, the Science and Technology Development Project of Henan Province, and the Hunan Provincial Natural Science Foundation, grant numbers 62273313, 241111242300, 242102240110, 2023JJ60178, and 2024JJ8046.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Wang, Y.; Liao, W.; Huang, S.; Zhang, J.; Yang, M.; Li, C.; Huang, S. A Robust DPCC for IPMSM Based on a Full Parameter Identification Method. IEEE Trans. Ind. Electron. 2023, 70, 7695–7705. [Google Scholar] [CrossRef]
  2. Liu, S.; Wang, Q.; Wang, G.; Li, B.; Ding, D.; Zhang, G.; Xu, D. Virtual-Axis Injection Based Online Parameter Identification of PMSM Considering Cross Coupling and Saturation Effects. IEEE Trans. Power Electron. 2023, 38, 5791–5802. [Google Scholar] [CrossRef]
  3. Shen, Y.; Zheng, Z.; Wang, Q.; Liu, P.; Yang, X. DC Bus Current Sensed Space Vector Pulsewidth Modulation for Three-Phase Inverter. IEEE Trans. Transp. Electrif. 2021, 7, 815–824. [Google Scholar] [CrossRef]
  4. Chen, Z.; Qiu, J. Adjacent-Vector-Based Model Predictive Control for Permanent Magnet Synchronous Motors With Full Model Estimation. IEEE J. Emerg. Sel. Top. Power Electron. 2023, 11, 1317–1331. [Google Scholar] [CrossRef]
  5. Yang, X.; Liu, G.; Le, V.D.; Le, C.Q. A Novel Model-Predictive Direct Control for Induction Motor Drives. IEEJ Trans. Electr. Electron. Eng. 2019, 14, 1691–1702. [Google Scholar] [CrossRef]
  6. Woldegiorgis, A.T.; Ge, X.; Zuo, Y.; Wang, H.; Hassan, M. Sensorless Control of Interior Permanent Magnet Synchronous Motor Drives Considering Resistance and Permanent Magnet Flux Linkage Variation. IEEE Trans. Ind. Electron. 2023, 70, 7716–7730. [Google Scholar] [CrossRef]
  7. Liu, P.; Liu, D.; Shen, Y.; Liu, A.; Yang, X.; Zhao, J. Full Speed Range Position-Sensorless Compound Control Scheme for PMSMs. J. Power Electron. 2022, 22, 1302–1312. [Google Scholar] [CrossRef]
  8. Brosch, A.; Wallscheid, O.; Bocker, J. Long-Term Memory Recursive Least Squares Online Identification of Highly Utilized Permanent Magnet Synchronous Motors for Finite-Control-Set Model Predictive Control. IEEE Trans. Power Electron. 2023, 38, 1451–1467. [Google Scholar] [CrossRef]
  9. Huang, X.; Yu, Y.; Li, Z.; Chen, Z.; Huang, S.; Niu, F.; Zhang, J. Online Identification of Inductance and Flux Linkage for Inverter-Fed SPMSMs Using Switching State Functions. IEEE Trans. Power Electron. 2023, 38, 917–930. [Google Scholar] [CrossRef]
  10. Dai, S.; Wang, J.; Sun, Z.; Chong, E. Transient Performance Improvement of Deadbeat Predictive Current Control of High-Speed Surface-Mounted PMSM Drives by Online Inductance Identification. IEEE Trans. Ind. Electron. 2022, 69, 12358–12368. [Google Scholar] [CrossRef]
  11. Hinkkanen, M.; Pescetto, P.; Mölsä, E.; Saarakkala, S.E.; Pellegrino, G.; Bojoi, R. Sensorless Self-Commissioning of Synchronous Reluctance Motors at Standstill Without Rotor Locking. IEEE Trans. Ind. Appl. 2017, 53, 2120–2129. [Google Scholar] [CrossRef]
  12. Wang, G.; Qu, L.; Zhan, H.; Xu, J.; Ding, L.; Zhang, G.; Xu, D. Self-Commissioning of Permanent Magnet Synchronous Machine Drives at Standstill Considering Inverter Nonlinearities. IEEE Trans. Power Electronics. 2014, 29, 6615–6627. [Google Scholar] [CrossRef]
  13. Odhano, S.A.; Pescetto, P.; Awan, H.A.A.; Hinkkanen, M.; Pellegrino, G.; Bojoi, R. Parameter Identification and Self-Commissioning in AC Motor Drives: A Technology Status Review. IEEE Trans. Power Electron. 2019, 34, 3603–3614. [Google Scholar] [CrossRef]
  14. Zhang, J.; Peng, F.; Huang, Y.; Yao, Y.; Zhu, Z. Online Inductance Identification Using PWM Current Ripple for Position Sensorless Drive of High-Speed Surface-Mounted Permanent Magnet Synchronous Machines. IEEE Trans. Ind. Electron. 2022, 69, 12426–12436. [Google Scholar] [CrossRef]
  15. Yang, X.-L.; Liu, G.-R.; Chen, N.-H.; Lou, T.-S. Desensitized Ensemble Kalman Filtering for Induction Motor Estimation. IEEE Access 2019, 7, 78029–78036. [Google Scholar] [CrossRef]
  16. Wang, Q.; Zhang, G.; Wang, G.; Li, C.; Xu, D.G. Offline Parameter Self-Learning Method for General-Purpose PMSM Drives with Estimation Error Compensation. IEEE Trans. Power Electron. 2019, 34, 11103–11115. [Google Scholar] [CrossRef]
  17. Yang, Q.; Mao, K.; Zheng, S.; Zhou, C.; Zhong, Q. Position Sensorless Drive with Online Parameters Estimation for Magnetic Suspension Centrifugal Compressor. IEEE Trans. Power Electron. 2023, 38, 9384–9394. [Google Scholar] [CrossRef]
  18. Yu, Y.; Huang, X.; Li, Z. Overall Electrical Parameters Identification for IPMSMs Using Current Derivative to Avoid Rank Deficiency. IEEE Trans. Ind. Electron. 2023, 70, 7515–7520. [Google Scholar] [CrossRef]
  19. Liu, K.; Zhu, Z.Q.; Zhang, Q.; Zhang, J. Influence of Nonideal Voltage Measurement on Parameter Estimation in Permanent-Magnet Synchronous Machines. IEEE Trans. Ind. Electron. 2012, 59, 2438–2447. [Google Scholar] [CrossRef]
  20. Chen, K.; Xiao, L.; Zhang, B.; Yang, M.; Yang, X.; Guo, X. Decoupling Algorithm for Online Identification of Inductance in Permanent Magnet Synchronous Motors Based on Virtual Axis Injection Method and Sensorless Control. Energies 2024, 17, 6308. [Google Scholar] [CrossRef]
  21. Li, X.; Kennel, R. General Formulation of Kalman-Filter-Based Online Parameter Identification Methods for VSI-Fed PMSM. IEEE Trans. Ind. Electron. 2021, 68, 2856–2864. [Google Scholar] [CrossRef]
  22. Wu, C.; Zhao, Y.; Sun, M. Enhancing Low-Speed Sensorless Control of PMSM Using Phase Voltage Measurements and Online Multiple Parameter Identification. IEEE Trans. Power Electron. 2020, 35, 10700–10710. [Google Scholar] [CrossRef]
  23. Wang, Q.; Zhao, X.; Yang, P.; Hua, W.; Buja, G. Effects of Triangular Wave Injection and Current Differential Terms on Multiparameter Identification for PMSM. IEEE Trans. Power Electron. 2024, 39, 2943–2947. [Google Scholar] [CrossRef]
  24. Son, J.-C.; Lim, D.-K. Novel Method of Deriving Torque and Speed Curve of the Permanent Magnet Synchronous Motor Using Initial State Finite Element Analysis. IEEE Trans. Magn. 2022, 58, 8203906. [Google Scholar] [CrossRef]
  25. Wang, Q.; Zhao, N.; Wang, G.; Zhao, S.; Chen, Z.; Zhang, G.; Xu, D. An Offline Parameter Self-Learning Method Considering Inverter Nonlinearity with Zero-Axis Voltage. IEEE Trans. Power Electron. 2021, 36, 14098–14109. [Google Scholar] [CrossRef]
  26. Liu, Z.-H.; Wei, H.-L.; Zhong, Q.-C.; Liu, K.; Xiao, X.-S.; Wu, L.-H. Parameter Estimation for VSI-Fed PMSM Based on a Dynamic PSO with Learning Strategies. IEEE Trans. Power Electron. 2017, 32, 3154–3165. [Google Scholar] [CrossRef]
  27. Wang, Q.; Wang, G.; Zhao, N.; Zhang, G.; Cui, Q.; Xu, D.G. An Impedance Model-Based Multiparameter Identification Method of PMSM for Both Offline and Online Conditions. IEEE Trans. Power Electron. 2021, 36, 727–738. [Google Scholar] [CrossRef]
  28. Rajwar, K.; Deep, K.; Das, S. An Exhaustive Review of the Metaheuristic Algorithms for Search and Optimization: Taxonomy, Applications, and Open Challenges. Artif. Intell. Rev. 2023, 56, 13187–13257. [Google Scholar] [CrossRef]
  29. Trojovsky, P.; Dehghani, M. A New Bio-Inspired Metaheuristic Algorithm for Solving Optimization Problems Based on Walruses Behavior. Sci. Rep. 2023, 13, 8775. [Google Scholar] [CrossRef]
  30. Pham, T.H.; Raahemi, B. Bio-Inspired Feature Selection Algorithms with Their Applications: A Systematic Literature Review. IEEE Access 2023, 11, 43733–43758. [Google Scholar] [CrossRef]
  31. Zhang, Y.; Zhou, M.; Zhang, C.; Shen, A.; Bing, L. Identification of PMSM Parameters with Time-Error Compensated Based on Contractile Factor Anti-Predator PSO. IEEE Trans. Transp. Electrif. 2023, 10, 4006–4017. [Google Scholar] [CrossRef]
  32. Liu, Z.-H.; Wei, H.-L.; Li, X.-H.; Liu, K.; Zhong, Q.-C. Global Identification of Electrical and Mechanical Parameters in PMSM Drive Based on Dynamic Self-Learning PSO. IEEE Trans. Power Electron. 2018, 33, 10858–10871. [Google Scholar] [CrossRef]
  33. Xie, C.; Zhang, S.; Li, X.; Zhou, Y.; Dong, Y. Parameter Identification for SPMSM with Deadbeat Predictive Current Control Using Online PSO. IEEE Trans. Transp. Electrif. 2023, 10, 4055–4064. [Google Scholar] [CrossRef]
  34. Cen, Y.; Shen, H.; Wang, X.; Wu, Y.; Du, J. Multi-Objective Optimization Analysis of Electromagnetic Performance of Permanent Magnet Synchronous Motors Based on the PSO Algorithm. Energies 2024, 17, 4637. [Google Scholar] [CrossRef]
  35. Li, H.; Jian, X. Parameter Identification of Permanent Magnet Synchronous Motor Based on CGCRAO Algorithm. IEEE Access 2023, 11, 124319–124330. [Google Scholar] [CrossRef]
  36. Gierczynski, M.; Jakubowski, R.; Kupiec, E.; Niewiara, L.J.; Tarczewski, T.; Grzesiak, L.M. Identification of the Parameters of the Highly Saturated Permanent Magnet Synchronous Motor (PMSM): Selected Problems of Accuracy. Energies 2024, 17, 6096. [Google Scholar] [CrossRef]
  37. Zangbari Koohi, S.; Abdul Hamid, N.A.W.; Othman, M.; Ibragimov, G. Raccoon Optimization Algorithm. IEEE Access 2019, 7, 5383–5399. [Google Scholar] [CrossRef]
  38. Koohi, S.Z.; Hamid, N.A.W.A.; Othman, M.; Ibragimov, G. HATS: HetTask Scheduling. IEEE Trans. Cloud Comput. 2023, 11, 2071–2083. [Google Scholar] [CrossRef]
  39. Balamurugan, A.; Priya, M.D.; Malar, A.C.J.; Janakiraman, S. Raccoon Optimization Algorithm-Based Accurate Positioning Scheme for Reliable Emergency Data Dissemination under NLOS Situations in VANETs. J. Ambient Intell. Humaniz. Comput. 2021, 12, 10405–10424. [Google Scholar] [CrossRef]
  40. Koohi, S.Z.; Abdul Hamid, N.A.W.; Othman, M.; Ibragimov, G. ROA-CONS: Raccoon Optimization for Job Scheduling. Symmetry-Basel 2021, 13, 2270. [Google Scholar] [CrossRef]
  41. Marini, F.; Walczak, B. Particle Swarm Optimization (PSO). A Tutorial. Chemom. Intell. Lab. Syst. 2015, 149, 153–165. [Google Scholar] [CrossRef]
  42. Nadimi-Shahraki, M.H.; Zamani, H.; Mirjalili, S. Enhanced Whale Optimization Algorithm for Medical Feature Selection: A COVID-19 Case Study. Comput. Biol. Med. 2022, 148, 105858. [Google Scholar] [CrossRef]
  43. Holland, J.H. Genetic Algorithms and the Optimal Allocation of Trials. SIAM J. Comput. 1973, 2, 88–105. [Google Scholar] [CrossRef]
  44. Deng, L.; Liu, S. Snow Ablation Optimizer: A Novel Metaheuristic Technique for Numerical Optimization and Engineering Design. Expert Syst. Appl. 2023, 225, 120069. [Google Scholar] [CrossRef]
Figure 1. EROA main loop.
Figure 1. EROA main loop.
Energies 18 00869 g001
Figure 2. Test results comparing EROA with other typical algorithms after 1000 iterations.
Figure 2. Test results comparing EROA with other typical algorithms after 1000 iterations.
Energies 18 00869 g002
Figure 3. TMDSHVMTRPFCKIT experimental bench.
Figure 3. TMDSHVMTRPFCKIT experimental bench.
Energies 18 00869 g003
Figure 4. Experimental process.
Figure 4. Experimental process.
Energies 18 00869 g004
Figure 5. Comparison diagram of the algorithm iteration process.
Figure 5. Comparison diagram of the algorithm iteration process.
Energies 18 00869 g005
Figure 6. Results of 70 sets of data identification in MATLAB.
Figure 6. Results of 70 sets of data identification in MATLAB.
Energies 18 00869 g006
Figure 7. Parameter identification process on a motor control platform.
Figure 7. Parameter identification process on a motor control platform.
Energies 18 00869 g007
Figure 8. EROA Recognition Results in the Experimental Platform Chip.
Figure 8. EROA Recognition Results in the Experimental Platform Chip.
Energies 18 00869 g008
Table 1. IEEE CEC2015 F 1 F 9 test function set.
Table 1. IEEE CEC2015 F 1 F 9 test function set.
FunctionDimensionalityMinimum Value
F 1 20.998
F 2 40.0003075
F 3 2−1.0316285
F 4 20.398
F 5 23
F 6 3−3.86
F 7 6−3.32
F 8 4−10.153
F 9 4−10.403
Table 2. Comparison of EROA with other typical algorithms based on the average value over 10 iterations.
Table 2. Comparison of EROA with other typical algorithms based on the average value over 10 iterations.
FunctionEROAROAPSOE_WOAGA
F 1 9.98 × 10−11.12 × 10+19.98 × 10−19.98 × 10−11.14
F 2 4.91 × 10−45.29 × 10−36.33 × 10−45.01 × 10−41.06 × 10−2
F 3 −1.03−9.62 × 10−1−1.03−1.03−1.01
F 4 3.98 × 10−14.42 × 10−13.98 × 10−13.98 × 10−16.61 × 10+1
F 5 3.001.20 × 10+13.003.003.00
F 6 −3.86−3.33−3.86−3.86−3.46
F 7 −3.29−1.77−3.27−3.30−2.03
F 8 −9.65−5.25−8.13−8.62−1.67
F 9 −9.87−7.07−9.87−7.75−1.65
Table 3. PMSM data sheet.
Table 3. PMSM data sheet.
ParametersValueParametersValue
R s (Ω)2.35Rated Current (A)2.7
L s (H)0.0265Rated Torque (N·m)1.27
ψ f (Wb)0.0101Rated Speed (rpm)3000
Pole Pairs4Rated Power (W)400
Table 4. Seven algorithms for solving statistical tables.
Table 4. Seven algorithms for solving statistical tables.
Algorithm R s (Ω) L s (H) ψ f (Wb)
Real Value2.350.02650.0101
EROA2.35060.02640.0100
EROA error (%)0.02560.54720.9527
ROA2.37530.01760.0037
ROA error (%)1.075033.506263.0814
PSO2.35060.02630.0100
PSO error (%)0.02690.61371.0772
E_WOA2.35550.02480.0102
E_WOA error (%)0.23236.31660.6497
GA1.99890.20820.1258
GA error (%)14.9384685.70441145.9741
WaOA2.35060.02640.0100
WaOA error (%)0.0256 0.54720.9526
SAO2.35060.02640.0100
SAO error (%)0.02560.54720.9526
Table 5. Statistical results of the MATLAB identification of 70 sets of data.
Table 5. Statistical results of the MATLAB identification of 70 sets of data.
EROA R s (Ω) L s (H) ψ f (Wb)
Actual value2.350.02650.0101
Maximum2.41050.02700.0107
Minimum2.27520.02680.0094
Average2.34250.02690.0100
Average error/%0.31931.50640.6948
Table 6. Statistical analysis of the EROA identification results in the experimental platform.
Table 6. Statistical analysis of the EROA identification results in the experimental platform.
EROA R s (Ω) L s (H) ψ f (Wb)
Actual value2.350.02650.0101
Maximum2.39860.02710.0114
Minimum2.18860.02680.0095
Average2.31360.02690.0103
Average error/%1.54801.62411.7775
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

Hu, Z.; Zhan, J.; Li, Z.; Hou, X.; Fu, Z.; Yang, X. Enhanced Raccoon Optimization Algorithm for PMSM Electrical Parameter Identification. Energies 2025, 18, 869. https://doi.org/10.3390/en18040869

AMA Style

Hu Z, Zhan J, Li Z, Hou X, Fu Z, Yang X. Enhanced Raccoon Optimization Algorithm for PMSM Electrical Parameter Identification. Energies. 2025; 18(4):869. https://doi.org/10.3390/en18040869

Chicago/Turabian Style

Hu, Zhihong, Jihao Zhan, Zelan Li, Xiangqing Hou, Zhiang Fu, and Xiaoliang Yang. 2025. "Enhanced Raccoon Optimization Algorithm for PMSM Electrical Parameter Identification" Energies 18, no. 4: 869. https://doi.org/10.3390/en18040869

APA Style

Hu, Z., Zhan, J., Li, Z., Hou, X., Fu, Z., & Yang, X. (2025). Enhanced Raccoon Optimization Algorithm for PMSM Electrical Parameter Identification. Energies, 18(4), 869. https://doi.org/10.3390/en18040869

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