Figures
Abstract
Nonlinear friction in high-precision, ultra-low-speed servo systems severely degrades performance, causing low-speed crawling, static errors, and limit-cycle oscillations. This study introduces the LuGre friction model to describe these phenomena mathematically and proposes an improved genetic algorithm (GA) for precise parameter identification. Simulations demonstrate that LuGre-based feedforward compensation outperforms conventional proportional-integral-derivative (PID) control, effectively mitigating speed tracking errors and enhancing both speed and position accuracy. Experimental validation on a linear motor platform confirms the method’s efficacy, achieving a 25.1% improvement in tracking accuracy. The results highlight the practical relevance of this approach for precision servo systems. This work has achieved a practical identification framework for LuGre parameters, combining GA optimization with transient/steady-state data, feedforward compensation that directly injects estimated friction forces, bypassing feedback delays and experimental verification of the method’s industrial applicability.
Citation: Zhang W, Zhang F, Zhang J, Zhang S, Zhang J, Zhang J, et al. (2025) Research and analysis of an enhanced genetic algorithm identification method based on the LuGre model. PLoS One 20(6): e0322844. https://doi.org/10.1371/journal.pone.0322844
Editor: Himadri Majumder, G H Raisoni College of Engineering and Management, Pune, INDIA
Received: December 2, 2024; Accepted: March 30, 2025; Published: June 3, 2025
Copyright: © 2025 Zhang et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: All relevant data are within the paper and its Supporting Information files.
Funding: This work is supported by NSFC (51321004, 92475109) and National Science and Technology Major Project (2018ZX040001-181).
Competing interests: No authors have competing interests.
1 Introduction
Friction is a critical factor influencing the performance of electromechanical servo systems. To enhance system performance, appropriate friction compensation methods must be employed to mitigate or eliminate the adverse effects of friction [1–3]. It is essential to address nonlinear frictional forces for optimal servo system functionality [4].
Among the various friction compensation methodologies, those based on friction models are particularly effective as they can deliver swift and accurate compensation, making them a widely adopted approach. In terms of reducing the impact of friction, compensating for nonlinear friction is more practical and cheaper than pure mechanical methods, such as improving contact surface materials and lubrication conditions [5–7].
In order to compensate for nonlinear friction, the key step is to establish an accurate friction model and accurately determine the parameters of the model, which is helpful for conducting friction compensation research in precision mechanical system engineering applications, such as trajectory tracking and dynamic prediction. So far, many effective mathematical models have been proposed to describe friction characteristics, such as Coulomb model, Stribeck model, Dahl model, Leuven model, LuGre model, etc [7]. Among them, the LuGre friction model is a relatively complete friction model that can accurately describe the characteristics of viscous sliding motion, friction hysteresis, pre sliding displacement, and variable maximum static friction force during the friction process [8]. During low-speed operation of the motor, negative phenomena such as low-speed crawling, unstable operation, and limit cycles are particularly prone to occur, all of which are caused by nonlinear friction [9,10].
There are two main types of friction compensation methods [11–15]. The first type is compensation that is not based on friction models, treating friction as a disturbance and suppressing its effects by providing the system with anti-interference capabilities.
Zhao et al. [16] studied a novel sliding mode control algorithm with adaptive gain, introduced an integral term to design the sliding surface, and selected a torsion control algorithm based on high-order SMC idea as the switching control law. Ali K et al. [17] proposed an advanced control algorithm that combines fast integral terminal sliding mode control, robust exact differentiator, and feedforward neural network-based estimator. Firstly, considering the dynamic LuGre friction compensation model, a mechanical manual model of an n-degree-of-freedom system was established. Then, a friction compensation based FIT-SMC nonlinear control method was proposed, which showed better performance than traditional compensators. However, it is pointed by author that it is a computationally complicated function that takes a long time to execute.
Another work that Ali K et al. [18] proposes is an integral sliding mode control (ISMC) for an anthropomorphic manipulator using a modified LuGre friction model with friction compensation. His contributions include deriving a mathematical model for a 5-DOF AUTAREP robotic manipulator, incorporating kinematics, dynamics, and the LuGre friction model, designing a robust controller to compensate for dynamic friction and ensure precise trajectory tracking. The ISMC law, based on the Lyapunov function, addresses system parametric and load torque uncertainties, and implementing the control law on a custom platform with LabVIEW and NI myRIO hardware, including motor drive circuits. However, negative aspect in the proposed technique ISMC with friction compensation is that the temperature effects of joints are not considered as well high control gains and high control efforts related to chattering issues.
Furthermore, Ali K et al. [19] proposes a fault-tolerant control (FTC) strategy for a 5-DoF robotic manipulator, combining an observer-based approach with hardware redundancy to enhance performance under actuator and sensor faults. A dynamic LuGre friction model is derived as the basis for control law design. For FTC, an adaptive back-stepping method is used for fault estimation, while nominal control laws enable controller reconfiguration and observer design. Fault detection compares actual and observed states, followed by fault-tolerant methods using redundant sensors. Results confirm the effectiveness of the proposed FTC strategy with model-based friction compensation, demonstrating improved tracking performance and robustness in the presence of friction and faults. While Mehmood Y et al. [20] proposes fractional and integral order fuzzy sliding mode controllers (FSMC, FFSMC) for skid-steered vehicles (SSV) with variable friction coefficients and displaced center of gravity (CG). The FFSMC reduces forces from ground-tire interaction during skidding and friction variations. Implemented on a four-wheel SSV during high-speed turns, the controllers were tested in a simulation environment integrating SSV dynamics and a wheel-road model. Tests used a pioneer-3AT (P-3AT) robot SSV with displaced CG and variable tire friction. Results show the FFSMC achieves reduced state errors and minimal chattering, compensating for wheel response variations due to CG shifts. Additionally, fuzzy tuning minimizes chattering from conventional sliding mode controllers (SMCs). P. Moradi et al. as well as M. H. Korayem et al. has also performed similar work and achieved significant findings [21–24].
Cong [25] designed an improved Stribeck friction model. Based on the improved model, an inertia stabilization platform and speed stabilization loop feedforward control were designed in the closed-loop control system to avoid vibration and limit cycle problems caused by changes in motion direction and excessive friction compensation. The experimental results show that, with the use of nonlinear friction model compensation, the isolation performance of both the tracking system and the isolation system is superior to the corresponding control system.
Aguilar Avelar et al. [26] first discussed the modeling, identification, and compensation of the influence of nonlinear friction on flywheel control. A new algorithm for stabilizing the flywheel in an unstable position and a friction compensation controller based on feedback linearization have been proposed. The experimental results show that the established asymmetric Coulomb friction element dynamic model can better characterize the real experimental platform of the system, with good stability and low power consumption control performance. However, the velocity of the pendulum s slightly greater for the proposed algorithm.
Li et al. [10] proposed an improved Stribeck friction model (SFM) and an optimization algorithm consistent with the positioning platform, and verified a compensator based on the friction model and disturbance observer through simulation. The simulation results show that the compensator based on friction model with added disturbance has better performance than traditional compensators. In addition, compensation comparisons were made between Coulomb friction, traditional SFM, and improved SFM. The experimental results showed that compared with Coulomb friction compensation, the improved SFM compensation reduced the following errors by 67.67% and 51.63% at speeds of 0.005m/s and 0.05m/s, respectively. However, the proposed modified SFM has a limitation in terms of velocity reversals. Fixed model friction compensation includes a fixed friction model compensation term, which remains unchanged throughout the entire control process as it is a parameter fixed friction model. Therefore, the accuracy requirements for the friction model are extremely high, but in actual systems, factors such as time and temperature affect friction, and fixed friction compensation terms inevitably have errors. For the method of fixed model friction compensation, it not only needs to meet the high requirements for model accuracy, but also needs to have better results in practical situations with extremely low environmental impact.
Han et al. [27] established a robust positioning control scheme using a friction parameter observer and a recursive fuzzy neural network based on sliding mode control. The friction state observer fully captures nonlinear dynamic friction, and uses recursive fuzzy neural network technology to establish an approximation method for system uncertainty, improving positioning accuracy. The performance of the control scheme is verified through experiments. However, for the purpose of more enhancement of precision positioning, the authors consider the robust control using the RFNN estimator and adaptive approximation error estimator.
Meng et al. [28] constructed an adaptive robust controller for dynamic friction compensation based on the LuGre friction compensation model. Adopting online recursive least squares estimation for model parameter identification, achieving real-time parameter updates, and designing a sliding mode controller to alleviate the degradation of control performance caused by parameter estimation errors and unmodeled dynamics. It is noted that since the trajectory is not always persistently exciting, the parameter estimates exhibit slow convergence. In Jin et al.’s work [29], a complementary sliding mode control method based on approximation angle saturation function is proposed, which can reduce the boundary layer as the state trajectory changes until it converges to the sliding surface. This method effectively eliminates system chattering and improves position tracking accuracy and robustness. The designed control method was compared with the controller using traditional saturation function, and the results showed that the control method can achieve lower tracking error and stronger robustness. However, it can only be applied to the case where the trajectory of the state moves towards the switching surface, also the friction force is considered as a part of the lumped uncertainty, and the influence of friction force on the system is not properly analyzed.
The second type of friction compensation methods is error compensation based on specific friction models. This type of compensation method relies on establishing mathematical models that can accurately reflect various frictions in the system.
Lu et al. [30] proposed a sliding mode controller based on the approach law for controlling the position of permanent magnet synchronous motors. In addition, an adaptive disturbance observer was designed to suppress external disturbances and parameter uncertainties, and the designed controller was validated through experiments.
Chen et al. [31] proposed a discrete adaptive sliding mode controller for high-precision motion control of linear permanent magnet synchronous motors, which achieves real-time gain tuning capability and robustness, ensuring the performance of tracking tasks. Experimental results show that the designed controller has fast response and strong robustness to uncertainty and noise. However, maximum static friction force may arouse a higher tracking error at the beginning of the move.
Zhao et al. [32] proposed an adaptive neural network nonsingular fast terminal sliding mode control for high-precision position tracking of permanent magnet synchronous motors in the presence of uncertainty. Nonsingular fast terminal sliding mode control was used to achieve rapid convergence of the system at the equilibrium point. However, the approach often inadequately addresses parameter uncertainty, compromising the quality of identification outcomes
Currently, mainstream identification algorithms for LuGre friction model parameters include GAs, particle swarm optimization algorithms, and neural network algorithms. Despite the plethora of methodologies available for friction identification and compensation, challenges persist regarding parameter identification accuracy and chattering phenomena during feedforward compensation processes at velocity-zero positions [33].
To enhance speed and position tracking accuracy in high-precision, ultra-low-speed servo systems, an improved LuGre GA is employed for identification and compensation, achieving precise control objectives for the platform. Nonlinear friction links significantly impact the dynamic and static performance of high-precision, ultra-low-speed servo systems, largely evidenced by low-speed crawling, substantial static errors, or steady-state limit cycles. This work introduces the fundamental principles and mathematical expressions of the LuGre friction model and presents an advanced GA identification method based on LuGre. Simulation analyses demonstrate that, compared to traditional PID control, incorporating feedforward friction compensation based on the LuGre model effectively mitigates speed tracking discrepancies attributed to nonlinear friction, thereby enhancing both speed and position tracking accuracy while offering greater engineering practicality. In fact, these intelligent algorithms also have some shortcomings, such as poor generalization performance of NNA when processing large amounts of data, slow convergence speed of SAA, and low accuracy and easy divergence of PSO algorithm. Considering the multi parameter characteristics of the friction model established by the research object, this paper intends to use a genetic algorithm with relatively ideal parallel iteration ability as the identification method for the friction model.
The manuscript is composed of five sections. Section 1 introduces the LuGre friction model, detailing its fundamental principles and mathematical formulation. The LuGre model comprehensively describes both the dynamic and static characteristics of friction in servo systems. Accurate identification of the model parameters is crucial for achieving effective friction compensation. Section 2 proposes an improved genetic algorithm-based identification method for the LuGre model. This section primarily presents a detailed description of the LuGre friction model and the identification framework. Section 3 elaborates on the theoretical model of the enhanced genetic algorithm identification method proposed in this paper for the LuGre model. Section 4 constructs a linear motor platform and outlines its configuration and parameters. It provides a detailed explanation of the parameter identification method for the LuGre friction compensation model and validates the effectiveness of the friction compensation technique as well as the robustness of the designed controller on the physical platform. The performance of the proposed parameter identification algorithm is verified through simulation examples and compared with existing methods. Section 5 concludes the paper and discusses potential future work.
The main contributions of this paper can be summarized: A novel parameter identification algorithm is proposed by integrating an adaptive evolution module and an optimal solution precision optimization module into the traditional genetic algorithm; Based on simulation experiments, it is demonstrated that the proposed algorithm can effectively identify the six parameters of the LuGre friction model; To highlight the advantages of the proposed method, it is compared with existing approaches. The results show that the method significantly improves the accuracy of parameter identification while ensuring fast convergence. Simulation results validate the effectiveness and feasibility of the algorithm.
2 Identification structure model
2.1 Traditional friction model
Currently, friction feedforward compensation in servo feed systems predominantly relies on the traditional Stribeck friction model, as illustrated in Fig 1. This model, which reflects the characteristic behavior of friction on lubricated metal surfaces, can be categorized into four distinct stages. As the operational speed progressively increases, these stages encompass static friction, boundary lubrication friction, partial fluid lubrication friction, and full fluid lubrication friction. Notably, under conditions of partial fluid lubrication, an increase in system operating speed results in a decrease in the frictional force between the two metal contact surfaces. This phenomenon is referred to as the Stribeck effect.
Traditional friction model expression:
In Equation (1), represents the relative velocity between the contact surfaces;
represents the current motion speed of the system;
is the coefficient of viscous friction;
refers to time,
denotes the Stribeck speed;
refers to the Coulomb friction force; and
is defined as the maximum static friction force. Consequently, this defines the static coefficient.
As illustrated in Fig 1, the LuGre friction model introduced by Canudas et al. [12] conceptualizes the interaction between two contacting surfaces as comprising numerous fine elastic asperities. When there is relative displacement between the two objects, these asperities experience elastic deformation, resulting in a restoring force that manifests as frictional force. In details, this model posits that the contact between rigid body surfaces is mediated by elastic bristles, with the lower surface material exhibiting greater stiffness compared to the upper surface. When an external force is applied, the bristles undergo deformation due to the tangential force, generating frictional resistance. If the tangential force exceeds a critical threshold, the bristles experience further deformation, leading to sliding motion.
2.2 LuGre friction model
The enhanced LuGre genetic algorithm identification method is primarily employed for parameter identification within the LuGre model, encompassing both static and dynamic parameters.
- (1) Static parameters [9]: This category comprises static friction, Coulomb friction, Stribeck friction, and viscous friction. These parameters are utilized to characterize the relationship between speed and friction (or friction torque) during steady-state conditions.
- (2) Dynamic parameters [10]: Encompassing two parameters that influence dynamic friction response, this set is employed to delineate the dynamic attributes of friction, including sliding friction, pre-sliding displacement, Dahl effect, and Stribeck effect.
The choice of a linear motor for evaluating a nonlinear friction model is driven by its ability to operate at ultra-low speeds, its sensitivity to friction effects, and its suitability for high-precision applications. These characteristics make linear motors an excellent platform for studying and validating advanced friction models like the LuGre model. The LuGre friction model is a comprehensive and widely used dynamic friction model that captures the complex behavior of friction in mechanical systems, it is a dynamic friction model that integrates the Dahl model with steady-state friction characteristics to comprehensively describe friction phenomena such as the Stribeck effect, presliding displacement, hysteresis, and frictional lag. By incorporating the Stribeck effect, this model captures the variable friction behavior that occurs at extremely low velocities, enhancing its ability to simulate real-world friction dynamics.
The average elastic deformation of the asperities is denoted as the state variable, which is utilized in formulating the LuGre friction model.
The model defines friction force as a combination of bristle deflection dynamics and velocity-dependent terms.
- Friction force:
: Bristle stiffness coefficient (N/m).
: Bristle damping coefficient (N·s/m).
: Viscous friction coefficient (N·s/m).
: Average bristle deflection (m).
: Relative velocity (m/s).
- Bristle deflection dynamics:
The function models the Stribeck effect:
: Coulomb friction (N).
: Static friction (N).
: Stribeck velocity (m/s).
According to the LuGre friction model, when the system reaches a steady state, :
Where, is a symbolic function, which is defined as:
Under steady-speed conditions, the LuGre model represents an exponential model and can effectively characterize the Stribeck phenomenon. Additionally, this model is capable of illustrating phenomena such as friction lag and augmented static friction. At low speeds, the model can capture the Dahl effect. The expression for the friction force during steady-state motion varies with the speed change, and is as follows:
2.3 Static and dynamic friction to be identified
(a) Identification of static friction parameters.
According to the Equation (7), the parameter vector to be identified is set as follows:
In Equation (8), is static friction parameter vector to be identified.
From the equation above, it can be seen that the LuGre friction model is clear and concise. Compared with other models, this model can smoothly transition from the current friction state to another friction state and has good continuity to a certain extent. In addition, this model can accurately express complex nonlinear friction characteristics such as Coulomb friction, viscous friction, friction hysteresis, Stribeck effect, and friction memory. The unknown parameters can be obtained through parameter identification methods, providing possibilities for the design and application of various friction compensation algorithms. The relevant parameters that need to be set in the genetic algorithm will be provided in the simulation section later. Combining the above derived statements, the static friction parameters of the LuGre friction model can be obtained.
(b) Identification of dynamic friction parameters.
The optimal result obtained by identifying the static friction parameters will serve as the basis for identifying the dynamic friction parameters. Dynamic friction parameter identification can be carried out using the acceleration and control force output by the system. The parameter vector to be identified is set as follows:
In Equation (9), is Dynamic friction parameter vector to be identified. Combining the LuGre friction model formula, there are:
The relevant parameters that need to be set in the genetic algorithm will be provided in the simulation section later. By combining the above formula, the dynamic friction parameters of the LuGre friction model can be obtained.
3 Improved annealing genetic algorithm
In order to realize the model and program design, the LuGre friction model of Eq. (12) is discretized:
In Equation (12), k represents current sampling time. Initial condition: ;
enter the corresponding speed
to obtain LuGre friction.
Equation (12) includes the state variable , which allows for a more comprehensive representation of the frictional process. In friction modeling, the precision of the parameters significantly influences the overall accuracy of the friction analysis. To enhance parameter identification, a parameter identification matrix
is established, utilizing an advanced identification algorithm. The variance of the deviation between the measured trajectory and the reference trajectory is employed as the evaluation function, as outlined below:
In Equation (13) and (14), is the input of the system;
is the actual observed value of the system output, and it represents the LuGre target friction force;
denotes the estimated model calculation value, which is the LuGre friction force calculated from the identified parameters during the iterative process;
is the estimation error.
The fundamental principles of system identification are illustrated in Fig 2.
The definition objective function is:
In Equation (15), represents the number of samples, with
as the identification objective aimed at minimizing the adaptation value denoted as
. Here, e signifies the identification error, and Equation (15) serves as the derived objective function. The LuGre model parameter identification flow chart is given in Fig 3.
Comparison curve of objective function (J) is shown in Fig 4.
It is noticeable to point out the effectiveness of the improved genetic algorithm compared with the traditional algorithm; The convergence process of the Genetic Algorithm for LuGre parameter identification is shown in Fig 5.
From Fig 5, it can be clearly observed that in the initial stages of the genetic process, the convergence speed is relatively fast. As the number of generations increases, the convergence tends to get trapped in a local optimum, slowing down the speed. When the number of generations reaches a certain level, the Genetic Algorithm escapes the local optimum and gradually converges to the global optimum. Comparison curve of objective function () is shown in Fig 6.
The comparative results among the traditional genetic identification algorithm, the adaptive genetic identification algorithm, and the algorithm proposed in this study, along with the corresponding objective function value curves, are illustrated in Fig 7.
Figs 6 and 7 present a comparison of the traditional genetic identification algorithm, the adaptive genetic identification algorithm, and the algorithm proposed in this paper, along with the corresponding objective function value curves. The results demonstrate that the identified friction force closely aligns with the model, exhibiting minimal error. However, in cases where the identified maximum static friction force significantly exceeds the model’s value, this discrepancy may be attributed to testing errors in the provided data. Although some data points fall outside the expected range, they have not been excluded from the analysis. In comparison to the other algorithms, the proposed algorithm in this study achieves faster and more accurate identification of the friction model parameters.
4 Annealing genetic synthesis algorithm based on improved LuGre friction model
The objective of parameter identification and compensation is to enhance the control performance of mechanical systems. Parameter identification involves estimating system parameters, including friction coefficients and dynamic characteristics, through experimental means and data analysis. By accurately determining these parameters, a more refined model of the mechanical system can be developed, thereby facilitating the design and performance optimization of control algorithms.
Parameter compensation entails the development of corresponding compensation algorithms based on the estimated parameter values to mitigate the effects of friction and other nonlinearities within the system. By addressing frictional influences, the tracking error of the system can be minimized, leading to improved control accuracy and stability. Furthermore, parameter compensation allows for adaptation to variations in system parameters, thereby increasing the robustness and adaptability of the control system.
- Step 1: Define the system parameters and population parameters for the friction model. Specify the population size:
denotes both the upper and lower limits of the population, while the identification vector is represented as
.
- Step 2: Implement adaptive calculations for the crossover rate and mutation rate. The crossover rate and mutation rate proposed in this study employ an adaptive strategy. The expressions for the crossover rate and mutation rate are as follows:
denotes the crossover variation rate;
and
represents the minimum and maximum values of the crossover rate, defined as constant parameters;
and
indicates the minimum and maximum values of the mutation rate, which are also treated as constant parameters;
refers to the higher fitness value of the two individuals involved in the crossover;
signifies the average fitness of each generation, as well as the average fitness value of the offspring.
- Step 3: Implement crossover and mutation operations to generate the next generation population, During the parental crossover process, the participating parental individuals are denoted as
and
. If the objective function value of
exceeds that of
, the resultant offspring individuals can be generated according to the following formula:
In Equation (18): represents the dimensionality of the variable, while parameter
can either be a constant or a random number that follows a uniform distribution.
In Equation (19): Parameter is defined as a constant or a random number
that adheres to a uniform distribution. The mutation method employs single-point mutation. It is assumed that the mutation occurs in individual
, resulting in the new individual as follows:
- Step 4: Simulated annealing for new species, initially, establish the number of optimal individuals as
. The fitness experience of the first
in each generation is unconditionally retained for the next generation, while each subsequent individual is saved with a certain probability following the Boltzmann acceptance criterion. The probability is given by:
In Equation (21)
represents the current temperature;
denotes the fitness of the current individual;
signifies the individual adaptation with the fitness ranking
.
Consequently, the individual fitness function can be chosen as:
- Step 5: Assess whether the current iteration of the evolutionary process has concluded. If not, employ a ranking-based selection method to identify the population with the highest fitness value in the current generation, designating it as the new parent population. Return to Step 3. If the iteration is complete, proceed to Step 6.
- Step 6: Extract and store the optimal solution derived from the single-round evolutionary process.
- Step 7: Evaluate whether the predefined number of evolutionary rounds has been achieved. If not, revert to Step 2. If completed, advance to Step 8.
- Step 8: Compute the fitness value of the optimal solution from each evolutionary round and select the global optimal solution for final output.
- Step 9: Develop a genetic algorithm tailored to enhance the accuracy and performance of the LuGre friction model (Fig 8).
5 Model of friction compensation cross coupling
Perform LuGre genetic algorithm identification testing on a high-precision open servo platform. The structural configuration of the high-precision open servo platform system is illustrated in Fig 9. This platform comprises an industrial control computer, a programmable multi-axis controller (PMAC), servo drives, servo motors, ball screw-nut pairs, linear guides, and a mobile platform.
Physical picture of linear motor platform is shown in Fig 10.
The gantry linear motor platform is manufactured by Akribis company. The X-axis motor has a rated thrust of 221N and a peak thrust of 1248N, with a linear motor constant of 22.4N/W, peak current of 13A, thrust constant of 96N/Arms, and a load mass of 4.6 kg. The linear motor servo drive is a high-order AC servo drive direct drive co-produced by Akribis and Servotronix, featuring a maximum input control voltage of 10V and an instantaneous maximum output control current of 18Arms. Communication with industrial control computer control systems is facilitated through the EtherCAT bus protocol. The position measurement device utilizes Renishaw’s absolute grating ruler with a resolution of 50nm.
The industrial control computer is integrated with TwinCAT3 software, responsible for programming control algorithms and real-time calculation of control signals that are sent to the driver. Real-time monitoring of system parameters such as motor displacement, speed, control signal, tracking error, etc., is enabled for easy controller debugging. The closed-loop control system is achieved using the Control System Industrial Control Computer TwinCAT3.
The simulation model for frictional compensation cross coupling is essential for accurately representing and compensating for frictional forces, particularly when constructing nonlinear friction models, conducting parameter identification, and exploring control strategies. The specific research approach of the simulation system for frictional compensation cross coupling is illustrated in Fig. 11 as the simulation and experimental research route.
The curve depicting the relationship between friction and velocity is illustrated in Fig 12.
Sinusoidal signal simulation is shown in Fig 13.
When employing an improved genetic algorithm for the identification of LuGre model parameters, static parameter identification adheres to traditional methodologies. However, for dynamic parameter identification, the displacement (or acceleration) output from the servo system, along with the control shear force, are directly utilized for parameter estimation. In this identification process, the control force serves as the approximation value for the objective function, allowing for the identification of two dynamic parameters. The use of Simulink for simulating the LuGre friction model offers convenience and efficiency. Based on the results obtained from parameter identification, the LuGre friction model leveraging the improved genetic algorithm demonstrates high accuracy in both static and dynamic nonlinear parameter identification, rapid parameter identification speed, and strong robustness performance. Additionally, load change estimations are depicted in Fig 14, while the friction compensation simulation is illustrated in Fig 15.
From Figs 14 and 15, it is evident that the improved LuGre genetic algorithm identification control strategy introduced in this study has significantly enhanced the friction compensation effect compared to traditional methods. Notably, a maximum improvement of 25.1% in tracking accuracy at corners has been achieved. Furthermore, due to the impact of friction, the linear motor may experience deviations when executing feed rate commands issued by the driver. By implementing compensatory controls, these deviations can be minimized, the feed rate error has been reduced from 2.8 m/min to 2.3 m/min, representing a decrease of up to 17.8%. Investigating friction disturbances contributes to a deeper understanding of motion tracking accuracy in linear motors. The improved LuGre genetic algorithm facilitates the identification of friction feedforward compensation strategies, thereby enhancing tracking accuracy and establishing a foundation for improving the overall contour accuracy of precision machining platforms.
It is important to note that the offline identification compensation method is more applicable to precision machine tools with limited strokes; however, the compensation effect tends to be less effective for large-stroke machine tools (such as gantry machines) characterized by considerable parameter variability. In such cases, employing online identification and online compensation methods may yield favorable results, although this approach necessitates additional high-performance computing resources and acquisition cards, thereby increasing hardware costs.
A linear motor platform was constructed, detailing the basic configuration and parameters of the system. The parameter identification method for the LuGre friction compensation model was elaborated upon, and the effectiveness of the friction compensation method, along with the robust performance of the designed controller, was validated on the physical platform.
5.1 Calculation of target frictional force via motor dynamics
The general mechanical dynamics model for the x-axis of a linear synchronous motor (LSM) servo system is expressed as:
Where,
and
denote the displacement, velocity, and acceleration of the LSM, respectively.
,
and
represent the moving mass, equivalent viscous damping coefficient, and stiffness constant of the X-axis.
is the electromagnetic driving force (
: force constant;
: amplifier gain;
: control input),
is the friction force, and
encompasses unmodeled disturbances and external interference.
By neglecting additional external characteristics of the linear motor, the simplified nonlinear dynamics model of the x-axis reduces to:
Here is the load mass;
is the electromagnetic driving force (
: lumped gain),
is the frictional force. Equation (24) describes the rigid-body dynamics of the motor as a second-order system with control voltage
as the input and displacement
as the output:
The LuGre friction model characterizes using stiffness coefficient
, damping coefficient
, and average bristle deformation
:
Under pre-sliding conditions (i.e., no macroscopic motion, and
), the friction force simplifies to:
That yields:
Ignoring , the simplified equation is described as:
Simplify the equation into an expression:
The input is defined as the control voltage, and the output is the motor displacement . Applying the Laplace transform yields the transfer function:
It is evident that when the system is actuated by electromagnetic driving forces and remains in the pre-sliding regime (i.e., prior to macroscopic motion), its dynamics can be approximated as a linear second-order damped system. Let the natural frequency be denoted as and the damping ratio as. The governing equation can then be expressed in the canonical form of a second-order system:
Where, the expressions for the natural frequency and damping coefficient
are described as:
From the knowledge of control theory, it can be concluded that:
Where, is the steady-state value of step response;
is the overshoot of the response.
Consequently, under steady-state conditions, a step control voltage input may be introduced to the linear motor system to record its step response. The dynamic parameters of the system can then be systematically identified through analysis of the steady-state displacement and percentage overshoot derived from the transient response profile.
As illustrated in Fig 16, the step response of the stationary motor under a control voltage excitation of exhibits a steady-state displacement of
and a percentage overshoot of
. The dynamic parameters of the LuGre friction compensation model are computed as
and
. These values quantitatively characterize the pre-sliding stiffness and viscous damping properties of the frictional interface.
6 Experiment and results
LuGre friction model parameters are shown in Table 1.
When developing the controller, it is essential to ascertain the parameters of the friction model within the real system to effectively apply the chosen friction model. The outcomes of parameter identification significantly impact the compensation effectiveness of the friction model, thereby influencing the control accuracy of the controller. Consequently, it is imperative to choose suitable parameter identification methods to accurately determine model parameters, thus ensuring the attainment of high-precision compensation.
6.1 Sinusoidal signal tracking simulation
To evaluate the influence of bristle stiffness on friction torque, the LuGre model was employed to analyze the tracking accuracy of friction torque and the behavior under micro-displacement and micro-velocity conditions. The experiment was designed using the Matlab Simulink simulation module and subsequently implemented in TwinCAT3 software. The system was simulated and analyzed with the following parameters: simulation inputs set to , a simulation duration of 3 seconds, a fixed-step simulation type with a step size of 0.0001 seconds, and the solver configured to use the ode4 method. The LuGre parameters were simulated and compared separately using both the original and identified parameters. The corresponding time-dependent friction torque curves and identification results are illustrated in Fig 17, which also includes the speed-friction torque curve.
From Fig 17, it is evident that when the friction torque crosses the zero point during upward and downward motion, the tracking error waveform becomes distorted and exhibits a peak phenomenon. This indicates that the stiffness of the bristles significantly influences the friction torque.
6.2 Friction compensation experiment
(1) Experimental study on LuGre model feedforward friction compensation controller.
To mitigate the adverse effects of nonlinear friction on system performance, a feedforward friction compensation controller based on the LuGre model was designed. The control architecture employs a three-loop strategy, where the current loop is embedded within the motor driver, while the speed and position loops are externally implemented. The controller was developed in Simulink and deployed via TwinCAT3 software for real-time execution.
The compensation scheme utilizes feedback speed as the input to the LuGre friction model. To address sampling-period delays inherent in feedback-based compensation, a feedforward friction compensation structure (Fig 18) was adopted. This structure directly injects the estimated friction force into the control input, bypassing latency issues and enhancing system responsiveness.
By introducing a sinusoidal signal into both control systems, the signal tracking performance is analyzed. The experiments are divided into two groups based on the presence or absence of feedforward compensation for comparative analysis. The speed tracking curves before and after friction compensation are illustrated in Fig 19.
As illustrated in the speed tracking results, a ‘dead zone’ is observed during zero-speed transitions. The implementation of friction feedforward compensation significantly mitigates this issue, achieving minimal position tracking error and smooth velocity transitions at the zero-crossing point. As shown in Fig 19, the position tracking error for the fuzzy PID control system with friction feedforward compensation is notably reduced.
The figure demonstrates that with friction compensation, the system maintains stability, effectively balancing and suppressing friction. The position tracking curves before and after the application of friction compensation are illustrated in Fig 20.
The experimental results demonstrate that feedforward friction compensation control based on the LuGre model significantly outperforms traditional PID control in addressing speed tracking imbalances caused by nonlinear friction. This improvement enhances both speed and position tracking accuracy, showcasing greater practical applicability in engineering contexts.
(2) Control shear force and control force of identification values.
For the LuGre model, static parameter identification follows conventional methods, while dynamic parameter identification utilizes sensor outputs (displacement or acceleration) and the control shear force as direct inputs. During identification, the control shear force serves as the target approximation value, simplifying the identification of two dynamic parameters.
For dynamic parameter identification, the servo system’s displacement (or acceleration) and control shear force outputs are directly used, with the control shear force acting as the target approximation value. Assuming the dynamic parameter requires identification, the identification error is defined as:
Where, controls the shear force for the servo system, while
model parameter system identifies the output control force.
Substituting yields equation:
The objective function is defined as:
During the identification of power parameters, the servo system outputs , and the corresponding identification results for the control force
and friction force are illustrated in Fig 21. Throughout the identification process, the parameter population search space is defined as
It is confirmed that the fuzzy PID control system, integrated with friction feedforward compensation, exhibits both rapid response and steady-state stability. The identification values for friction, control force, and displacement loop are illustrated in Fig 22.
The discrepancy between the friction and control force in the two figures is attributed to inertial force; specifically, the control force is equivalent to the sum of friction and inertial force. Subsequently, the LuGre friction compensation model was introduced and compared with the simplified model under the same control law, resulting in a significant reduction in tracking error. This fully demonstrates the efficacy of the LuGre friction compensation model.
From the parameter identification results, traditional genetic algorithms (GA), adaptive genetic algorithms, and the proposed algorithm exhibit high accuracy and fast identification speed in determining the static and dynamic nonlinear parameters of the LuGre friction model, establishing them as ideal tools for nonlinear parameter identification.
Building upon the LuGre friction model and an enhanced adaptive genetic identification algorithm, the findings of this research are anticipated to mitigate the adverse effects of nonlinear friction on high-precision and ultra-low-speed servo systems. Nonetheless, constrained by various factors, the proposed method’s performance has been initially corroborated only within a simulation framework. Prospective research endeavors will concentrate on the following domains:
We aim to implement the algorithm delineated in this study within actual high-precision and ultra-low-speed servo systems to ascertain its performance in real-world engineering scenarios, and to further refine the algorithm adaptively to tackle emergent challenges. Although the convergence velocity of the algorithm presented herein surpasses that of the adaptive genetic algorithm, it still lags behind the conventional genetic algorithm. Enhancing the proposed algorithm to accelerate convergence and enhance its suitability for engineering applications remains a pivotal objective for future investigations.
7 Summary
- (1) In high-precision and ultra-low-speed servo systems, the presence of nonlinear friction significantly impacts both dynamic and static performance. This is primarily evident through phenomena such as low-speed crawling, substantial static errors, and steady-state limit cycles. The basic principles and mathematical representations of the LuGre friction model are introduced in this context. This article presents an enhanced identification method for the LuGre model utilizing a genetic algorithm. Simulation analysis of this improved genetic algorithm demonstrates that, compared to traditional PID control, the incorporation of feedforward friction compensation based on the LuGre model effectively mitigates speed tracking imbalances caused by nonlinear friction. This leads to enhanced speed and position tracking accuracy, thereby offering substantial practical engineering value.
- (2) A linear motor platform was established, detailing its fundamental characteristics and parameters. The parameter identification methodology for the LuGre friction compensation model is explained, confirming the effectiveness of the friction compensation technique and the robust performance of the designed controller on the physical platform.
- (3) Experimental validation indicates that employing the LuGre friction compensation model substantially enhances the tracking accuracy of linear motor control systems. The improved LuGre genetic algorithm identification controller exhibits commendable control performance, and the synergy between these two approaches facilitates high-precision control outcomes.
References
- 1. Tsai D-M, Jen P-H. Autoencoder-based anomaly detection for surface defect inspection. Advanced Engineering Informatics. 2021;48:101272.
- 2. Gao Y, Li X, Wang XV, Wang L, Gao L. A Review on Recent Advances in Vision-based Defect Recognition towards Industrial Intelligence. Journal of Manufacturing Systems. 2022;62:753–66.
- 3. Wang Y, Hong K, Zou J, Peng T, Yang H. A CNN-based visual sorting system with cloud-edge computing for flexible manufacturing systems. IEEE Trans Ind Informat. 2019;16(7):4726–35.
- 4. Eshkevari M, Rezaee MJ, Zarinbal M, Izadbakhsh H. Automatic dimensional defect detection for glass vials based on machine vision: A heuristic segmentation method. J Manuf Process. 2021;68:973–89.
- 5. Li W, Li B, Niu S, Wang Z, Wang M, Niu T. Lsa-net: location and shape attention network for automatic surface defect segmentation. J Manuf Process. 2023;99:65–77.
- 6.
Arey D, Gao J, Le CH, El Souri M. An investigation into the adoption of automation in the aerospace manufacturing industry. Advances in manufacturing technology XXXIII. IOS Press. 2019. p. 87–92.
- 7. Shi X, Chen Y. Extended state observer design with fractional order Bode’s ideal cut-off filter in a linear motor motion control system. Proceedings of the Institution of Mechanical Engineers, Part I: Journal of Systems and Control Engineering. 2022;237(2):196–206.
- 8. Li J, Du H, Cheng Y, Wen G, Chen X, Jiang C. Position tracking control for permanent magnet linear motor via fast nonsingular terminal sliding mode control. Nonlinear Dyn. 2019;97(4):2595–605.
- 9. Lin X, Liu T, Wang J. Optimization of Servo Parameters for Enhanced Dynamic Behavior of Direct Feed System with Hybrid FEM and PLS Regression. Int J Precis Eng Manuf. 2018;19(11):1627–36.
- 10. Li F, Ma L, Mi L, Zeng Y, Jin N, Gao Y. Friction identification and compensation design for precision positioning. Advances Manuf. 2017;5:120–9.
- 11. Li C, Chen Z, Yao B. Identification and adaptive robust precision motion control of systems with nonlinear friction. Nonlinear Dyn. 2019;95:995–1007.
- 12. Yang M, Yang J, Ding H. A two-stage friction model and its application in tracking error pre-compensation of CNC machine tools. Precision Engineering. 2018;51:426–36.
- 13. Shi X, Lan Y, Sun Y, Lei C. A new reaching law for sliding mode observer of controllable excitation linear synchronous motor. Transactions of the Institute of Measurement and Control. 2021;44(2):263–71.
- 14. Du F, Zhang M, Wang Z, Yu C, Feng X, Li P. Identification and compensation of friction for a novel two-axis differential micro-feed system. Mech Syst Signal Process. 2018;106:453–65.
- 15. Keck A, Zimmermann J, Sawodny O. Friction parameter identification and compensation using the elastoplastic friction model. Mechatronics. 2017;47:168–82.
- 16.
Rui Z, Jianhong Y. A friction compensation algorithm based on sliding mode control. In: Proceedings of the 2nd International Conference on Telecommunications and Communication Engineering. 2018. 358–62.
- 17. Ali K, Ullah S, Mehmood A, Mostafa H, Marey M, Iqbal J. Adaptive fit-smc approach for an anthropomorphic manipulator with robust exact differentiator and neural network-based friction compensation. IEEE Access. 2022;10:3378–89.
- 18. Ali K, Mehmood A, Muhammad I, Razzaq S, & Iqbal J. (2021). Control of an anthropomorphic manipulator using lugre friction model-design and experimental validation. Journal of Mechanical Engineering, 67(9), 401–10.
- 19. Ali K, Mehmood A, Iqbal J. Fault-tolerant scheme for robotic manipulator-Nonlinear robust back-stepping control with friction compensation. PLoS One. 2021;16(8):e0256491. pmid:34415970
- 20. Mehmood Y, Aslam J, Ullah N, Alsheikhy AA, Din EU, Iqbal J. Robust fuzzy sliding mode controller for a skid-steered vehicle subjected to friction variations. PLoS One. 2021;16(11):e0258909. pmid:34784368
- 21. Moradi P, Habibnejad Korayem M, Yousefi Lademakhi N. Extended nonlinear time-varying lugre-based friction model identification of robot manipulator with sliding mode control compensation approach. Proc Inst Mech Eng Part I J Syst Control Eng. 2023;237(2):207–19.
- 22. Moradi P, Korayem MH, Lademakhi NY. Online identification and robust compensation of extended nonlinear time-varying friction model in robotic arms. J Mech Sci Technol. 2023;37(1):367–73.
- 23. Korayem MH, Zakeri M, Taheri M. Simulation of Two-Dimensional Nanomanipulation of Particles Based on the HK and LuGre Friction Models. Arab J Sci Eng. 2013;38(6):1573–85.
- 24. Korayem M, Hedayat A, Dehkordi S. Dynamic modeling of cooperative manipulators with frictional contact at the end effectors. Appl Math Model. 2021;90:302–26.
- 25. Cong S, Deng K, Shang W, Kong D, Shen H. Isolation control for inertially stabilized platform based on nonlinear friction compensation. Nonlinear Dyn. 2016;84:1123–33.
- 26. Aguilar-Avelar C, Rodríguez-Calderón R, Puga-Guzmán S, Moreno-Valenzuela J. Effects of nonlinear friction compensation in the inertia wheel pendulum. J Mech Sci Technol. 2017;31:4425–33.
- 27. Han SI, Jeong CS, Yang SY. Robust sliding mode control for uncertain servo system using friction observer and recurrent fuzzy neural networks?. J Mech Sci Technol. 2012;26:1149–59.
- 28. Meng D, Tao G, Liu H, Zhu X. Adaptive robust motion trajectory tracking control of pneumatic cylinders with LuGre model-based friction compensation. Chin J Mech Eng. 2014;27(4):802–15.
- 29. Jin H, Zhao X. Approach Angle-Based Saturation Function of Modified Complementary Sliding Mode Control for PMLSM. IEEE Access. 2019;7:126014–24.
- 30. Lu H, Jiang M, Chen Q, Wei L, Gao W. Sliding mode control of PMLSM for high speeding gringding machine. Adv Mater Res. 2012;462:701–6.
- 31. Chen M-Y, Lu J-S. High-Precision Motion Control for a Linear Permanent Magnet Iron Core Synchronous Motor Drive in Position Platform. IEEE Trans Ind Inf. 2014;10(1):99–108.
- 32. Zhao X, Fu D. Adaptive Neural Network Nonsingular Fast Terminal Sliding Mode Control for Permanent Magnet Linear Synchronous Motor. IEEE Access. 2019;7:180361–72.
- 33. Liao J, Zhou F, Zheng J. An Improved Parameter Identification Algorithm for the Friction Model of Electro-Hydraulic Servo Systems. Sensors (Basel). 2023;23(4):2076. pmid:36850674