Hostname: page-component-586b7cd67f-dsjbd Total loading time: 0 Render date: 2024-11-23T23:37:31.178Z Has data issue: false hasContentIssue false

Nonlinear model identification and statistical verification using experimental data with a case study of the UR5 manipulator joint parameters

Published online by Cambridge University Press:  23 December 2022

Masoud Abedinifar*
Affiliation:
Department of Mechatronics Engineering, Istanbul Technical University, Sariyer, Istanbul 34469, Turkey
Seniz Ertugrul
Affiliation:
Department of Mechatronics Engineering, Izmir University of Economics, Balcova, Izmir 35330, Turkey
Serdar Hakan Arguz
Affiliation:
Department of Mechanical Engineering, Izmir Institute of Technology, Urla, Izmir 35433, Turkey
*
*Corresponding author. E-mail: [email protected]
Rights & Permissions [Opens in a new window]

Abstract

The identification of nonlinear terms existing in the dynamic model of real-world mechanical systems such as robotic manipulators is a challenging modeling problem. The main aim of this research is not only to identify the unknown parameters of the nonlinear terms but also to verify their existence in the model. Generally, if the structure of the model is provided, the parameters of the nonlinear terms can be identified using different numerical approaches or evolutionary algorithms. However, finding a non-zero coefficient does not guarantee the existence of the nonlinear term or vice versa. Therefore, in this study, a meticulous investigation and statistical verification are carried out to ensure the reliability of the identification process. First, the simulation data are generated using the white-box model of a direct current motor that includes some of the nonlinear terms. Second, the particle swarm optimization (PSO) algorithm is applied to identify the unknown parameters of the model among many possible configurations. Then, to evaluate the results of the algorithm, statistical hypothesis and confidence interval tests are implemented. Finally, the reliability of the PSO algorithm is investigated using experimental data acquired from the UR5 manipulator. To compare the results of the PSO algorithm, the nonlinear least squares errors (NLSE) estimation algorithm is applied to identify the unknown parameters of the nonlinear models. The result shows that the PSO algorithm has higher identification accuracy than the NLSE estimation algorithm, and the model with identified parameters using the PSO algorithm accurately calculates the output torques of the joints of the manipulator.

Type
Research Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2022. Published by Cambridge University Press

1. Introduction

Modeling real-world mechanical components is a challenging problem in engineering applications [Reference Ljung, Glad and Hansson1]. Obtaining an accurate mathematical model of the systems is crucial to better understand the systems’ dynamic behavior [Reference Imai, Yun, Maruyama and Shinozuka2]. Moreover, the mathematical model plays an important role in various research areas such as filter design, monitoring, design optimization, fault detection, and sensor-less control [Reference Calabrese, Strano and Terzo3Reference Belegundu and Chandrupatla5]. Over the past few decades, many studies have been performed to develop and implement various algorithms to model real-world systems such as robotic manipulators. However, the identification of unknown parameters of the nonlinear terms that exist in the dynamics of these components is the key and most difficult point of the modeling techniques, and they are seldom solved simply and effectively. The main types of modeling methods that are commonly used in engineering applications can be categorized into black-box and white-box modeling methods [Reference Loyola-Gonzalez6].

In black-box models, the model structure and its parameters are adjusted without considering the physical insight of the system. Generally, these models are based on neural networks, deep neural networks, fuzzy rules, and so on [Reference van den Bosch and van der Klauw7]. There is broad research on the application of these methods to engineering problems. In ref. [Reference Hamdy and El-Ghazaly8], the parameters of the nonlinear dynamics model of a two-link robotic manipulator are identified using fuzzy logic. In other research, an artificial neural network model is trained using the Levenberg–Marquardt method to model a 2-degree-of-freedom (DOF) robotic manipulator [Reference Sharkawy, Koustoumpardis and Aspragathos9]. In ref. [Reference Jiménez-López, de la Mora-Pulido, vila, de la Mora-Pulido, Melendez-Campos and López-Martínez10], Bayesian regularization backpropagation-based artificial neural network is applied to model the kinematics of the three first links of the PUMA 560 robotic manipulator. In some other papers, different neural network methods are combined with fuzzy rules to identify the parameters of the underlying models of real-world components. In ref. [Reference Wang, Luo and Wang11], a typical neuro-fuzzy method is used to identify the model parameters of the nonlinear systems. A hybrid fuzzy wavelet neural network is used to develop nonlinear models through experimental data in ref. [Reference Linhares, Fontes, Martins, Araújo and Silveira12]. In black-box models, since a mathematical function is fitted to the input–output data, they lack any physical meaning.

On the other hand, white-box models are based on physical principles (Kirchhoff’s law, Newton’s law, and so on) and clearly explain the behavior of real-world systems [Reference Loyola-Gonzalez6]. They are the most preferred modeling method in engineering fields as they represent the actual relationship between the variables of the model. Generally, all real-world mechanical systems exhibit nonlinear behaviors in certain regions of operation. The identification and interpretation of nonlinear phenomena in these systems are the main challenge in dynamic modeling procedures. The static, viscous, Coulomb frictions, and Stribeck velocity effect are possible nonlinear phenomena that affect the dynamic response of the systems. Generally, the errors in dynamic models arise from ignoring these nonlinearities in mathematical models. Consequently, developing parsimonious models of the systems that include physically interpretable nonlinear terms is necessary to evaluate the performance of the systems.

Since white-box models represent the real physical behavior of the systems, they are preferred while developing the components’ nonlinear mathematical models. An appropriate estimation algorithm is needed to identify the models’ unknown parameters. In the literature, extensive research has been performed to develop different techniques to estimate the unknown parameters of the models. In ref. [Reference Ting, Mistry, Peters, Schaal and Nakanishi13], the Bayesian technique is utilized to identify the parameters of the 10-DOF robotic arm. They showed that the algorithm could estimate the parameters of the joints of the robotic arm with more accuracy than conventional methods, such as the step-wise regression method. In other research, the parameters of the acoustic model are estimated using iterative linear inversion and the inverse scattering series methods. It is shown that the inverse scattering series method swiftly converges to the optimal value at different values of the reflection coefficient when compared to the iterative linear inversion method [Reference Yang and Weglein14]. The other types of methods that are commonly used to identify the unknown parameters of white-box models are conventional and evolutionary methods. In conventional methods, a model is selected and its unknown parameters are determined by minimizing the objective function [Reference Van den Bos15]. These methods are usually based on gradient descent techniques. Methods such as least squares estimation, weighted least squares estimation, nonlinear least squares errors (NLSE) estimation, and maximum likelihood are used to approximate model parameters [Reference Siciliano and Khatib16Reference Olsen and Petersen20]. However, conventional methods may not provide accurate solutions since they are capable of getting trapped in local optima [Reference Haji and Abdulazeez21]. Moreover, they may lead to sub-optimal performance under nonlinear conditions [Reference Wang and Liu22].

The other type of estimation method that is commonly used to identify the unknown parameters of white-box models is evolutionary algorithms. The parameters of the nonlinear dynamic models have been identified using algorithms such as particle swarm optimization (PSO), the genetic algorithm (GA), and the simulated annealing algorithm [Reference Baker, Schallau and Junker23]. Some comparative studies in the literature discuss the PSO algorithm’s advantages over other evolutionary methods. According to Wihartiko et al., the PSO algorithm is advantageous compared to the GA algorithm in terms of complexity, precision, iteration number, and simplicity in programing when it searches for the optimal solution [Reference Wihartiko, Wijayanti and Virgantari24]. They demonstrate that the average accuracy of the GA and PSO algorithms for obtaining an optimal solution is 99 $\%$ , and 100 $\%$ , respectively. Furthermore, for solving complex optimization problems, the PSO algorithm provides swift and accurate results compared to the GA [Reference Kecskes, Szekacs, Fodor and Odry25]. The PSO algorithm has been extensively applied to solve various daily life engineering problems. Liu et al. applied the PSO algorithm to estimate the time-varying parameters of the permanent magnet synchronous motor model [Reference Liu, Liu and Cartes26]. In related research by the authors, the PSO algorithm is applied to identify the unknown parameters of nonlinear models of a direct current (DC) motor [Reference Abedinifar, Argin and Ertugrul27, Reference Abedinifar and Ertugrul28]. It is demonstrated that the PSO algorithm successfully identifies the model parameters with different nonlinear friction terms. Yan et al. employed the PSO algorithm along with a Proportional Integral Derivative controller to identify the dynamic parameters of a 2-DOF robotic manipulator [Reference Yan, Lu and Levy29]. They successfully identified the robots’ dynamic parameters, such as the mass of the links and lengths of the links. In ref. [Reference Sahu, Panigrahi and Pattnaik30], it is shown that the PSO algorithm can accurately identify the unknown coefficients of the model over a wide working region. Moreover, the PSO algorithm needs fewer parameters to tune and converges to the optimum solution with fewer iterations. Since the PSO algorithm performs a parallel search to converge to the optimal solution, it could be used efficiently to solve complicated nonlinear model problems in engineering fields. In this study, due to the stated advantages, the PSO algorithm is selected to identify the unknown parameters of the nonlinear terms that exist in the real models of the mechanical components.

Generally, if the structure of the model with nonlinear terms is provided, the unknown parameters of these terms can be identified using any conventional approach or evolutionary algorithm. However, finding a non-zero coefficient does not guarantee the existence of the nonlinear term or vice versa. Therefore, a thorough investigation and statistical verification are required to ensure the reliability of the identification process. According to the literature, there is not a general method to validate the value of identified parameters using different approaches. However, the hypothesis and confidence interval tests are well-known techniques that are commonly used in statistics science to test the reliability of the regression coefficients [Reference Murphy, Myors and Wolach31, Reference Fan and Zhang32]. Meanwhile, they have received less attention in the nonlinear modeling of real-world mechanical components to validate the accuracy of the identified parameters. Therefore, employing hypothesis and confidence interval tests to validate the accuracy of the identified parameters of the nonlinear models using the PSO algorithm is one of the main contributions of this study.

This research aims to properly identify the unknown parameters of nonlinear models of real-world mechanical components such as robotic manipulators and validate the results using statistical testing. Obtaining an explicit mathematical model for nonlinear dynamic systems is a very difficult process. In this study, the existence of some nonlinear phenomena such as nonlinear friction terms has been determined, and their unknown parameters have been identified. The parameter identification part could be performed with various methods, but the existence of nonlinear terms in the mathematical model of the system has to be verified with statistical methods. For this purpose, the identification algorithm is combined with the statistical hypothesis and confidence interval tests to evaluate the reliability of the identification algorithm. In this study, the PSO algorithm is used to identify the unknown parameters in its simplest form so that any interested reader may implement the proposed strategy. To realize the nonlinear model’s parameters identification algorithm, the following steps are performed: first, some possible nonlinear terms that exist in mechanical components such as robotic manipulators, including the static, viscous, and Coulomb frictions, and the Stribeck velocity effect, are collected from the literature. The simulation data for two different scenarios, including different combinations of nonlinear terms, were initially generated using the nonlinear white-box models of a DC motor as a benchmark problem. In the first case, all nonlinear terms are included in the real model of the DC motor. In the second case, some of the possible nonlinear terms are excluded from the real model of the DC motor to check the reliability of the PSO algorithm in the identification of the right terms in the model. Then, the PSO algorithm is applied to identify unknown parameters in the models. To evaluate the accuracy of the results, the statistical hypothesis and confidence interval tests are implemented. Finally, the reliability of the algorithm is evaluated using experimental data acquired from the 6-DOF UR5 robotic manipulator. The complete dynamic model of the manipulator is developed, and unknown parameters of the nonlinear terms are identified using the PSO algorithm. To compare the accuracy of the identified parameters of the model using the PSO algorithm, the NLSE estimation algorithm is applied to identify the unknown parameters of the nonlinear models and the results are discussed. The nonlinear white-box model development, the PSO identification algorithm, and all the statistical validation tests are implemented in MATLAB software.

The remainder of the paper is categorized as follows. The literature review on modeling methods and the methodology utilized in this paper is given in Section 2. The nonlinear models for the case studies that are utilized to verify the suggested methodology are presented in Section 3. The results of the research are discussed in Section 4. Finally, concluding remarks are provided in Section 5.

2. Problem definition and methodology

2.1. Nonlinear modeling

Various mathematical models have been suggested in the literature to identify nonlinear phenomena that are physically seen in mechanical components such as robotic manipulators. The nonlinear hysteresis behavior of the mechanical systems is addressed and modeled in refs. [Reference Do, Tjahjowidodo, Lau and Phee33, Reference Rabbi and Rahman34]. Static friction and the effect of temperature and pressure on its coefficient are investigated in ref. [Reference Tadić, Kočović, Matejić, Brzaković and Mijatović35]. Static friction models cannot capture the friction effect in the pre-sliding phase or when the system operates at extremely low velocities. To compensate for these inadequacies, dynamic friction models including Coulomb friction terms have been developed in refs. [Reference De Wit, Olsson, Astrom and Lischinsky36, Reference Olsson, Åström, De Wit, Gäfvert and Lischinsky37]. The Stribeck velocity effect, which makes friction very nonlinear, is proposed in ref. [Reference Armstrong-Helouvry38] and is included in certain nonlinear friction models [Reference Haessig and Friedland39, Reference Makkar, Dixon, Sawyer and Hu40]. The nonlinear behavior of viscous friction on lubricated surfaces was investigated in ref. [Reference Wolf and Iskandar41]. In this study, two nonlinear terms, including an exponential shape and a third-order polynomial, are added to the LuGre model in order to capture the nonlinearities in the gross sliding regime. The general equation for nonlinear friction torque ( $T_f$ ), which includes all of the nonlinearities mentioned in the literature, is written as Eq. (1).

(1) \begin{equation} T_{f} = T_{c}sign (\omega )+(T_{s}-T_{c})exp^{-|\frac{\omega }{\omega _{s}}|}sign (\omega )+T_{v1}\omega + T_{v2}sign(\omega ){\omega ^2}+T_{v3}{\omega ^3} \end{equation}

where $T_{c}$ represents the Coulomb friction that occurs when non-lubricated surfaces are in contact. The static friction which describes the steady-state behavior between angular velocity and friction torques is approximated with $T_{s}$ . The nonlinear Stribeck velocity is represented with $\omega _{s}$ . The viscous friction that captures the linear relationship, exponential shape, and nonlinearity effect is represented by the last three terms of the equation. The angular velocity (rad/s) is shown with $\omega$ .

After developing a general equation of possible nonlinear terms of real-world mechanical components, the PSO algorithm is adopted to identify the unknown parameters $\beta = [T_{s}, T_{c}, T_{v1}, T_{v2}, T_{v3}, \omega _{s}]$ of the nonlinear models.

2.2. Parameter identification through PSO algorithm

In this research, the PSO algorithm is adopted to identify the parameters of the nonlinear terms of Eq. (1). Although the PSO algorithm has been implemented in different engineering applications, it is scarcely utilized for the identification of the parameters of the physically meaningful nonlinear terms of the systems’ model. The PSO is an iterative evolutionary algorithm inspired by the animal colony behavior that was first introduced in ref. [Reference Kennedy and Eberhart42]. In the algorithm, each particle keeps track of its previous best position while accelerating toward the best solution of its position and the population’s best position [Reference Yuhui and Eberhart43]. At each iteration, the particle compares the fitness value of its current location to that of the population. If the particle’s current location has a higher fitness value, the best value in the population is replaced with the particle’s current location. After several iterations, the algorithm converges to the location where the best solution, called the ”global best,” is found. The updated velocity of each particle $(V_{i}^{z+1})$ is calculated using the particle’s current velocity $(V_{i}^{z})$ and the particle’s distance from the global best (gBest) and personal best (pBest) as Eq. (2).

(2) \begin{equation} V_{i}^{z+1}= \chi V_{i}^z+ d_{1}(pBest^z-X_{i}^z)\times rnd_{1}+ d_{2}(gBest^z-X_{i}^z)\times rnd_{2} \end{equation}

where $d_{1}$ and $d_{2}$ are acceleration coefficients and are tuned as 2. The best position of the particle in the population and the best position of the particle in its search history are shown with gBest and pBest, respectively. The distance of the global best and the personal best from the particle’s current position is multiplied by random values ( $rnd_{1}$ and $rnd_{2}$ ) between 0 and 1. $\chi$ is the inertia weight and could be expressed as Eq. (3):

(3) \begin{equation} \chi = \chi _{max}+ \frac{\chi _{max}-\chi _{min}}{Iter_{max}} \end{equation}

The tuning coefficients $\chi _{min}$ and $\chi _{max}$ are chosen to be 0.4 and 0.9, respectively, which are ideal values according to ref. [Reference Shi and Eberhart44]. The other parameters of the PSO algorithm are determined by trial and error as follows: 10 particles are assigned to each of the unknown parameters of the mathematical models, and the maximum iteration is set to 1000.

Using the updated velocity of the particle $(V_{i}^{z+1})$ and the current position of the particle $(X_{i}^z)$ , the updated position of the particle $(X_{i}^{z+1})$ could be calculated with Eq. (4):

(4) \begin{equation} X_{i}^{z+1} = X_{i}^z + V_{i}^{z+1} \end{equation}

Since the equation of the possible nonlinearities was introduced in Eq. (1), model parameters could be identified using the output signal of the real model and the model with identified parameters of the mechanical components. The cost function $(J)$ of the algorithm is constructed as a root mean squared error between the real outputs $Y_{j}$ and the calculated outputs $(\hat{Y}_{j})$ values using the model with identified parameters for $n$ data samples as Eq. (5). The best-fitted model should be determined in such a way that the cost function value (J) is minimized.

(5) \begin{equation} J = \sqrt{\frac{1}{n}\sum _{j=1}^{n}(Y_{j} - \hat{Y}_{j})^{2}} \end{equation}

Furthermore, the NLSE estimation algorithm, which is an extended form of the linear least square errors estimation method, is applied to evaluate the performance of the PSO algorithm in the identification of the exact parameters of the nonlinear model of the mechanical components [Reference Billings45]. The algorithm estimates the parameters of the nonlinear model using the linear least square errors estimation method, and the results are attentively refined using the Levenberg–Marquardt algorithm [Reference Li46].

2.3. Statistical test

Since the identified parameters using the PSO algorithm are utilized in real models of the systems, the results should be verified with statistical tests. For this aim, the hypothesis test is implemented to determine the significance of the identified model parameters ( $\beta _{k}$ ). In the first step, the two hypotheses including null hypothesis $H_{0}$ and alternative hypothesis $H_{1}$ are considered as represented in Eq. (6) [Reference Berk47, Reference Ramachandran and Tsokos48]:

(6) \begin{equation} \begin{cases} H_{0}\;:\; \beta _{k}=0 \\[5pt] H_{1}\;:\; \beta _{k}\neq 0 \end{cases} \end{equation}

In the statistical hypothesis test, a null hypothesis and an alternative hypothesis are formulated such that if the null $H_{0}$ is rejected, then the alternative is accepted [Reference Montgomery and Runger49]. The hypotheses test begins with the null hypothesis that each of the parameters of the nonlinear model is equal to zero and is excluded from the nonlinear model.

Then, the standard deviation of the model parameters $(SD_{\beta k})$ is calculated using Eq. (7).

(7) \begin{equation} SD_{{\beta }_{k}} = \sqrt{\sigma ^2_{{\beta }_{k}}} \end{equation}

where $(\sigma ^2_{\beta k})$ is the variances of the model parameters which are extracted from the diagonal elements of the variance–covariance matrix.

In the next step, the standard error of the model parameters ( $SE_{\beta _{k}}$ ) is calculated via dividing the standard deviation of the parameters to the square root of the data samples (n) and is represented as Eq. (8).

(8) \begin{equation} SE_{\beta _{k}} = \frac{SD_{{\beta }_{k}}}{\sqrt{n}} \end{equation}

Then, the test statistic value ( $Z_{k}$ ) is calculated using Eq. (9):

(9) \begin{equation} Z_{k} = \frac{\beta _{k}-{\beta _{0}}}{SE_{\beta _{k}}} \end{equation}

where $\beta _{0}$ is the value assigned to the parameters in the null hypothesis ( $H_{0}$ ).

Then, the corresponding probability value $(p-value)_{k}$ of the calculated test statistic value ( $Z_{k}$ ) from the distribution under the null hypothesis ( $\Phi (Z_{k})$ ) is calculated using Eq. (10).

(10) \begin{equation} (p-value)_{k} = 2(1-\Phi (Z_{k})) \end{equation}

The $(p-value)_{k}$ checks the validity of the null hypothesis that the parameter k of the model is equal to zero or not. In other words, the significance of the parameter $\beta _{k}$ is evaluated using the probability value $(p-value)_{k}$ . If the $(p-value)_{k}$ is equal to or less than the specified significance level ( $\alpha$ ), the null hypothesis is rejected and the alternative hypothesis is accepted at that level. In this case, it could be concluded that the alternative hypothesis is true, which means that the parameter $\beta _{k}$ of the nonlinear model is not equal to zero and the corresponding term exists in the model. Conversely, if the $(p-value)_{k}$ is greater than the specified $\alpha$ value, it could be concluded that the parameter $\beta _{k}$ of the nonlinear model is equal to zero and the corresponding term does not exist in the model. In this research, the significance level ( $\alpha$ ) is assumed to be 0.01, which corresponds to the confidence interval level of 99%. The procedure of the hypotheses test is shown in Fig. 1.

Figure 1. The flowchart for the procedure of the hypotheses test.

For further analysis of the results of the PSO algorithm, the lower bound confidence intervals $(LBCI_{k})$ and upper bound confidence intervals $(UBCI_{k})$ values of the identified parameters $\beta _{k}$ are calculated as Eq. (11). The identified parameter $\beta _{k}$ that includes 0 value in its confidence interval [ $LBCI_{k}$ $UBCI_{k}$ ] has no significant effect on the model and its corresponding term could be ignored from the model and vice versa [Reference Ramachandran and Tsokos48].

(11) \begin{align} \begin{cases} LBCI_{k} ={\beta }_{k}+ 2.58(SE_{\beta{k}})\\[5pt] UBCI_{k} ={\beta }_{k}- 2.58(SE_{\beta{k}}) \end{cases} \end{align}

The procedure of the confidence interval test is shown in Fig. 2.

Figure 2. The flowchart for the procedure of the confidence interval test.

In the next section, two different nonlinear modeling benchmark problems are presented.

3. Case studies

In this section, two case studies, including nonlinear models of a DC motor and the UR5 robotic manipulator, are represented, which include nonlinear terms in the systems. The first case study is intentionally modeled using simulation data for validation, whereas the second one utilizes experimental data from the robotic arm.

3.1. Case study 1: DC motor

In the first case study, an actual model of a DC motor that contains all or some of the possible nonlinear terms is used to generate the simulation data for nonlinear modeling through the PSO algorithm. The DC motor is an electro-mechanical element that converts electrical energy into mechanical energy [Reference Janocha50]. Due to its durability, portability, and high efficiency, it is one of the most preferred actuating components in many industrial applications such as robotics and automatic systems. A schematic diagram of a DC motor including electrical and mechanical circuits is represented in Fig. 3.

Figure 3. Schematic diagram of a DC motor.

Developing an accurate mathematical model representing the actual dynamic behavior of the DC motor is necessary for controller design, performance evaluation, and so on. The mathematical model of the DC motor includes both electrical and mechanical terms. The electrical circuit of the motor could be represented as Eq. (12) using Kirchhoff’s second law:

(12) \begin{equation} U{(t)} ={R} i{(t)}+ L\frac{di{}}{dt}+ E{(t)} \end{equation}

where U(t) is the input voltage, i(t) is the current flowing in the circuit, and R and L are the resistance and inductance of the motor coil. E(t) represents the back electro-motive force and could be written as Eq. (13):

(13) \begin{equation} E{(t)} ={K}\omega{(t)} \end{equation}

where $\omega (t)$ is the angular velocity and K represents the motor constant.

The mechanical circuit of the DC motor is developed using Newton’s second law as Eq. (14):

(14) \begin{equation} T_{m}(t) ={J}\frac{d\omega }{dt} \end{equation}

where $T_{m}(t)$ is the motor torque, and J is the total moment of inertia of the motor.

In DC motor modeling, the general approach is to ignore the nonlinear terms and develop linear models using Eqs. (13) and (14). However, when the motor rotates in two directions or works at low velocities, nonlinear phenomena such as Coulomb friction and viscous friction affect the performance of the system. Neglecting the effect of these nonlinear phenomena in the mathematical model of the system leads to modeling errors. To develop a more accurate model of the DC motor, the possible nonlinear terms in Eq. (1) should be added to the linear model. However, to test the reliability of the PSO algorithm in the identification of the correct terms of the model, two possible situations are considered.

In the first situation, all nonlinear terms in Eq. (1) are included in the simulation model and the PSO algorithm is utilized to identify model parameters. Consequently, the motor torque Eq. (14) is re-written as Eq. (15):

(15) \begin{align} T^{(1)}_{m}(t) & ={J}\frac{d\omega }{dt}+T^{(1)}_{c}sign (\omega )\nonumber \\[5pt] & +(T^{(1)}_{s}-T^{(1)}_{c})exp^{-|\frac{\omega }{\omega ^{(1)}_{s}}|}sign (\omega )+T^{(1)}_{v1}\omega (t)+ T^{(1)}_{v2}sign(\omega (t)){\omega ^2(t)}+T^{(1)}_{v3}{\omega ^3(t)} \end{align}

The PSO algorithm will be utilized to identify the unknown parameters ( $J$ , $K$ , $L$ , $R$ , $T^{(1)}_{s}$ , $T^{(1)}_{c}$ , $T^{(1)}_{v1}$ , $T^{(1)}_{v2}$ , $T^{(1)}_{v3}$ , $\omega ^{(1)}_{s}$ ) of the nonlinear model using the simulation data of the DC motor model.

However, in the second situation, to evaluate the reliability of the PSO algorithm in the identification of the correct nonlinear terms, the nonlinear terms of the viscous friction are eliminated from the model represented in Eq. (1). Consequently, the last two nonlinear terms of the model including $T_{v2}sign(\omega (t)){\omega ^2(t)}$ and $T_{v3}{\omega ^3(t)}$ are discarded from the simulation model as represented in Eq. (16).

(16) \begin{equation} T^{(2)}_{m}(t) ={J}\frac{d\omega }{dt}+T^{(2)}_{c}sign (\omega )+(T^{(2)}_{s}-T^{(2)}_{c})exp^{-|\frac{\omega }{\omega ^{(2)}_{s}}|}sign (\omega )+T^{(2)}_{v1}\omega (t) \end{equation}

3.2. Case study 2: A UR5 manipulator

In the second case study, experimental data are used to verify the reliability of the PSO algorithm in the identification of the nonlinear model parameters. For this purpose, experiments are performed to acquire data from the UR5 robotic manipulator through the appropriate identification and test signals. The UR5 robotic arm is a 6-DOF manipulator that is comprised of six revolute joints, which are categorized into two sets of joints. The first set comprises the first three joints (base, shoulder, and elbow) with bigger motors, whereas the second one includes the last three joints with smaller motors (wrist-1, wrist-2, and wrist-3) [Reference Sorli, Mauro, De Martin, Raviola and Guida51]. Each joint of the robot includes its own brushless alternating current motor along with a strain wave gearing mechanism. The main structure of the UR5 manipulator and its experimental setup are represented in Fig. 4(a) and (b).

Figure 4. The main structure of the UR5 manipulator (a) and its experimental setup (b).

The dynamic model of a robot explains its motion in terms of the torques and forces applied to the robot’s joints. The explicit knowledge of this model is very useful as it may be used for many purposes, such as model-based control and sensor-less force estimation. For industrial robots, the torques ( $\tau$ ) applied to the robot joints could be calculated using the Euler–Lagrangian method using Eq. (17) by taking the joint coordinates as the generalized coordinates [Reference Siciliano, Sciavicco, Villani and Oriolo52].

(17) \begin{align} \tau = M(q)\ddot{q}(t) + C(q,\dot{q})\dot{q}+g(q) \end{align}

where $M(q)$ is the (6 $\times$ 6) mass inertial matrix, $C(q,\dot{q})$ is the (6 $\times$ 6) Coriolis and centrifugal matrix, and $g(q)$ is the (6 $\times$ 1) gravity force matrix. $q$ , $\dot{q}$ , and $\ddot{q}$ represent the position, velocity, and acceleration of the joints of the robotic manipulator. The matrices that appear in this equation, however, are different for each robot. Consequently, the dynamic analysis of an industrial robot concerns itself with finding those values for a given robot of some known parameters.

In this study, the dynamic model of a UR5 manipulator is computed analytically. In the first step of this analysis, the kinematics of the robot are solved at the position and velocity levels using the Denavit–Hartenberg parameters. In addition to the task space coordinates of the tip-point, the rotation matrices that describe the orientation of each link and the tip-point Jacobian are computed. In the second step, the Jacobian matrices for the individual center of mass locations of the links are computed. This information in conjunction with the mass and center of mass values is used to compute the values for the elements of the matrices ( $M(q)$ , $C(q,\dot{q})$ and $g(q)$ ) that appear in Eq. (17). The kinematic information of the UR5 manipulator, which is provided by the manufacturer, is listed in Tables I and II.

The inertia tensors of the links ( $i=1:6$ ) including the moment of inertia values are calculated and provided as Eq. (18).

(18) \begin{equation} \begin{aligned}{I}_{1}= \begin{bmatrix} 0.0085 & 0 & 0\\[5pt] 0 & 0.0064& 0\\[5pt] 0 & 0& 0.0085 \end{bmatrix}, \hspace{0.6cm}{I}_{2}= \begin{bmatrix} 0.0085 & 0 & 0\\[5pt] 0 & 0.212& 0\\[5pt] 0 & 0& 0.212 \end{bmatrix}, \hspace{0.6cm}{I}_{3}= \begin{bmatrix} 0.0017 & 0 & 0\\[5pt] 0 & 0.0473& 0\\[5pt] 0 & 0& 0.0473 \end{bmatrix}\\[5pt]{I}_{4}= \begin{bmatrix} 0.0018 & 0 & 0\\[5pt] 0 & 0.0014& 0\\[5pt] 0 & 0& 0.0018 \end{bmatrix}, \hspace{0.3cm}{I}_{5}= \begin{bmatrix} 0.0018 & 0 & 0\\[5pt] 0 &0.0014& 0\\[5pt] 0 & 0& 0.0018 \end{bmatrix},{I}_{6}= \begin{bmatrix} 0.00008 & 0 & 0\\[5pt] 0 &0.00008&0 \\[5pt] 0 & 0& 0.00013 \end{bmatrix}\\[5pt] \end{aligned} \end{equation}

To describe the effects of nonlinear friction on the joints, an extra term ( $\tau _{f}$ ) should be added to the standard form of the dynamic model in Eq. (17). The friction ( $\tau _{f}$ ) adversely affects the performance of the robot during reversal motions and low velocities, and it has to be identified accurately. The friction ( $\tau _{f}$ ) could be shown as Eq. (19) via re-writing Eq. (1).

(19) \begin{align} \tau _{f} = \tau _{c}sign (\dot{q})+(\tau _{s}-\tau _{c})exp^{-|\frac{\dot{q}}{\dot{q}_{s}}|}sign (\dot{q})+\tau _{v1}\dot{q}+ \tau _{v2}sign(\dot{q}){\dot{q}^2}+\tau _{v3}{\dot{q}^3} \end{align}

Table I. Denavit–Hartenberg parameters of the manipulator.

Table II. Mass properties of the manipulator.

Since different possible configurations of the nonlinear friction terms expressed in Eq. (19) may occur while the robot is operating, the identification of the exact type of friction that exists in the model of the joint has great importance. A precise dynamic model of the manipulators generally relies on the identification of accurate parameters for these nonlinear terms. For this purpose, the PSO algorithm is applied to identify the unknown parameters of the nonlinear terms of the UR5 dynamic model. To realize the identification procedure, the appropriate identification and validation trajectories are generated. Then, while the UR5 manipulator follows the trajectory, experimental data from the encoder position and the motor current sensor are collected.

4. Results and discussion

In this section, the nonlinear model’s parameter identification using the PSO algorithm and statistical tests of the results are provided for both case studies.

4.1. Case study 1

Two possible scenarios are considered to check the reliability of the PSO algorithm in the identification of the correct nonlinear terms of the DC motor dynamic model. In the first scenario, the real nonlinear model of the DC motor, which contains all possible nonlinear terms (Eq. 15), is employed to generate simulation data. Two input signals which cover different working regions of the DC motor are used for parameter identification and model validation purposes. To obtain the exact dynamic behavior of the DC motor, the input signal should have the capacity to excite all the dynamics of the system. For this aim, an extended random signal in the range of [-5 5] V is applied as an identification signal and is represented in Fig. 5.

Figure 5. The input voltage signal for the identification.

The PSO algorithm is applied to identify the parameters of the nonlinear model, and statistical tests are performed to check the accuracy of the results. The white Gaussian noise with the signal to noise ratio of 28 dbW is added to the output angular velocity $\omega (t)$ of the actual nonlinear model of the DC motor. The output of the actual nonlinear model of the DC motor and the calculated output angular velocity using the model with identified parameters are shown in Fig. 6.

Figure 6. The output of the actual model and the calculated output of the model with identified parameters of the DC motor for the first scenario using identification signal.

The real parameters of the DC motor and the identified parameters using PSO and NLSE estimation algorithms, identification errors along with the LBCI, UBCI, and p-values of the parameters are shown in Table III.

Table III. The real and identified parameters of the DC motor and their statistical test results for the first scenario.

Both actual parameters and identified parameters of the DC motor are given in Table III. For further analysis of the results, p-values of the parameters are calculated. The p-values of all the parameters are calculated as 0, which is less than the significance level value ( $\alpha$ ) (p-value $\lt$ 0.01). It could be concluded that all of these parameters are significant and should be included in the model of the DC motor. Moreover, the values of the LBCI and UBCI of the parameters of the model are calculated. Since none of the identified parameters includes a 0 value in their confidence region, it could be concluded that all the parameters are statistically significant and exist in the real model. Consequently, due to the statistical results, the PSO algorithm successfully identifies the unknown parameters of the model when all the nonlinear terms exist in the actual model of the DC motor. Furthermore, since the identification error of the parameters is less than 5 $\%$ , it could be concluded that the PSO algorithm is capable of identifying the unknown parameters of the nonlinear model.

The identified parameters are replaced in the DC motor model and the accuracy of the model is evaluated using another extended random signal in the range of [-5 5]V. The white Gaussian noise with the signal to noise ratio of 25 dbW is added to the output angular velocity $\omega (t)$ of the actual nonlinear model of the DC motor. The input signal and the output signal of the actual nonlinear model of the DC motor and the calculated output angular velocity using the model with identified parameters are shown in Figs. 7 and 8.

Figure 7. The input voltage signal for verification of the model with identified parameters.

Figure 8. The output of the actual model and the calculated output of the model with identified parameters of the DC motor for the first scenario using verification signal.

The coefficient of determination ( $R^{2}$ ) is calculated to evaluate the relative measure of fitness between actual and calculated output using the model with identified parameters through the PSO algorithm as Eq. (20) [Reference Draper and Smith53].

(20) \begin{equation} \begin{aligned} R^{2} = \frac{\sum _{j=1}^{n}(\hat{Y}_{j}-\overline{Y}_{j})^{2}}{\sum _{j=1}^{n}(Y_{j} - \overline{Y}_{j})^{2}}\times 100 \end{aligned} \end{equation}

where $\hat{Y}_{j}$ , $Y_{j}$ , and $\overline{Y}_{j}$ represent the calculated, actual outputs, and the mean of the output, respectively. The $R^{2}$ value for the first scenario is calculated as 97.1 $\%$ , which means that the model with identified parameters using the PSO algorithm could perfectly explain the variations in the output angular velocity data around its mean. Furthermore, the mean square errors (MSE) is calculated to check the accuracy of the model with identified parameters in calculating the outputs. The MSE value is calculated as small as 0.01 (rad/s), which means that the model with identified parameters using the PSO algorithm could accurately calculate the output of the DC motor.

In the second scenario, to evaluate the reliability of the PSO algorithm in the identification of the correct nonlinear terms, some of the possible nonlinear terms are excluded from the real model of the motor. For this aim, the nonlinear terms of the viscous friction are eliminated from the nonlinear model represented in Eq. (1) and simulation data are generated using the model shown in Eq. (16). The same input voltage signal used for the prior scenario, which is represented in Fig. 5, is applied as an identification signal to the model.

Then, the PSO algorithm is applied to identify the parameters of the nonlinear model, and statistical tests are performed to check the accuracy of the results. The white Gaussian noise with the signal to noise ratio of 28 dbW is added to the output angular velocity $\omega (t)$ of the actual nonlinear model of the DC motor. The output of the actual nonlinear model of the DC motor and the calculated output angular velocity using the model with identified parameters are shown in Fig. 9.

Figure 9. The output of the actual model and the calculated output of the model with identified parameters of the DC motor for the second scenario using identification signal.

The real parameters of the DC motor and the identified parameters using PSO algorithms, along with the identification error and parameters’ LBCI, UBCI, and p-values, are shown in Table IV.

Table IV. The real and identified parameters of the DC motor and their statistical test results for the second scenario.

Both actual parameters and identified parameters of the DC motor are given in Table IV. For further analysis of the identification results, p-values of the parameters are calculated. Except for $T(2)_v2$ and $T(2)_v3$ , the p-values of other identified parameters such as $J$ , $K$ , $L$ , $R$ , $T^{(2)}_{s}$ , $T^{(2)}_{c}$ , $T^{(2)}_{v1}$ , and $\omega ^{(2)}_{s}$ are calculated as 0, which is less than the significance level $\alpha$ value (p-value $\lt$ 0.01). It means that these parameters are statistically significant and should be included in the model of the DC motor. The p-values of $T^{(2)}_{v2}$ and $T^{(2)}_{v3}$ , on the other hand, are calculated as 1, which is greater than the significance level value (p-value $\gt$ 0.01). It means that these parameters are statistically insignificant and could be discarded from the model. Moreover, for further analysis of the reliability of the identified parameters, the values of the LBCI and UBCI of the model parameters are calculated. The $T^{(2)}_{v2}$ and $T^{(2)}_{v3}$ parameters include 0 values in their confidence region, which means that these parameters are statistically insignificant and do not exist in the real model. Consequently, according to the results of the statistical tests, the PSO algorithm could identify the unknown parameters of the model even when some of the nonlinear terms are not included in the actual model of the DC motor. Furthermore, since the identification error of the parameters is less than 5 $\%$ , it could be concluded that the PSO algorithm is capable of identifying the unknown parameters of the nonlinear model.

In the next step, the identified parameters are replaced in the DC motor model. The same input voltage signal used for the prior scenario, which is represented in Fig. 7, is applied as a verification signal to the model. The white Gaussian noise with the signal to noise ratio of 25 dbW is added to the output angular velocity $\omega (t)$ of the actual nonlinear model of the DC motor. The output signal of the actual nonlinear model of the DC motor and the calculated output angular velocity using the model with identified parameters are represented in Fig. 10.

Figure 10. The output of the actual model and the calculated output of the model with identified parameters of the DC motor for the second scenario using verification signal.

Figure 11. The position $(q_{i})$ , velocity $(\dot{q}_{i})$ , and acceleration $(\ddot{q}_{i})$ signals of joints ( $i$ = 1-6) of the UR5 manipulator for identification.

Figure 12. The representation of the trajectory for identification in Cartesian space.

To evaluate the output of the model with identified parameters in the second scenario, $R^{2}$ and MSE values are calculated and discussed. The $R^{2}$ value is calculated as 97.5 $\%$ , which means that the model with identified parameters explains the variations in the output angular velocity data around its mean. The MSE value is calculated as small as 0.01 (rad/s) which indicates that the model with identified parameters using the PSO algorithm could accurately calculate the output angular velocity of the DC motor.

Table V. The identified model parameters of the joints of the UR5 manipulator and their statistical test results.

Figure 13. The measured torque and the calculated torque of the models with identified parameters using PSO and NLSE estimation algorithms.

Figure 14. The position, velocity, and acceleration signals for model validation.

Figure 15. The representation of the trajectory for verification in Cartesian space.

Figure 16. The measured applied torques and calculated torques of the joints of the models with identified parameters using both PSO and NLSE estimation algorithms.

Figure 17. The torque errors of the joints of the models with identified parameter using PSO and NLSE estimation algorithms.

4.2. Case study 2

For identifying the parameters of the nonlinear model of the joints of the UR5 manipulator, two trajectories are generated for identification and validation purposes. The connection with the UR5 manipulator is established via the Universal Robot-Robot Operating System driver, provided by the ROS industrial project. The joint trajectories of random frequency content are generated in MATLAB at waypoints sampled at 100 Hz. These waypoints are then sent to the robot via the Joint Trajectory Action client. As the robot executes the trajectories, joint variables, including the positions and velocities of all the joints, as well as their currents, are published by the ROS driver. To compute the acceleration of the joints, feed-forward and feed-backward numerical differentiation of the measured velocity signal is performed. For each joint of the robot, the measured current of the motor is multiplied by the joint’s gear ratio and the motor’s torque constant to obtain the applied torque values of the joint. For this purpose, the gear ratios are taken as 101 and the motor torque constant of the joints (i = 1–6) is assumed to be [0.135 0.136 0.135 0.095 0.086 0.089] (N.m/A) [Reference Sorli, Mauro, De Martin, Raviola and Guida51]. Since all terms of the joint models of the UR5 manipulator depend on the velocity profiles of the joints, the trajectories for identification and validation are chosen such that they cover different motor velocities. Two different trajectories are utilized to identify the unknown parameters of the model and verify the models with identified parameters using PSO and NLSE estimation algorithms. The signals ( $q_{i}$ , $\dot{q}_{i}$ , and $\ddot{q}_{i}$ ) of all six joints of the UR5 manipulator and the representation of the identification trajectory in Cartesian space are demonstrated in Figs. 11 and 12.

In the next step, the nonlinear model of the manipulator is developed and the PSO algorithm is applied to identify the unknown parameters of the dynamic model. The parameter identification process with the PSO algorithm is considered as an optimization problem that searches for the best values in the parameter space. The cost function of the algorithm is to minimize the error between the measured and calculated torque for a given trajectory. Each particle of the algorithm contains 6 parameters, and the total number of particles is set to 60 (10 particles for each parameter). To evaluate the performance of the PSO algorithm, the NLSE estimation algorithm is performed using the optimization toolbox of MATLAB and the unknown parameters of the nonlinear model are identified using this method. To evaluate the results of both algorithms, statistical hypothesis tests, including null hypothesis and confidence interval tests, are performed. The identified parameters of the model using the PSO and the NLSE estimation algorithms along with their statistical test results, including LBCI, UBCI, and p-values of the parameters, are shown in Table V.

According to Table V, the identified parameters, including $\tau _{c_i}$ , $\tau _{s_i}$ , $\tau _{v1_i}$ , and $\dot{q}_{s_i}$ for all joints of the robot ( $i$ = 1–6), are identified as non-zero values using the PSO algorithm, which means that their corresponding nonlinear terms exist in the dynamic model of the joints. However, $\tau _{v2_i}$ and $\tau _{v3_i}$ ( $i$ = 1–6) values for all joints of the UR5 manipulator are identified as approximately equal to 0 using the PSO algorithm. It means that the corresponding nonlinear terms of these parameters could be discarded from the dynamic model of the joints. However, according to the results of the NLSE algorithm, all the parameters of the dynamic model of the joints, except $\tau _{v2_5}$ and $\tau _{v3_5}$ , are identified as non-zero values. It means that the corresponding nonlinear terms of the identified non-zero parameters exist in the dynamic model of the joints while the other two parameters ( $\tau _{v2_5}$ , $\tau _{v3_5}$ ) do not exist or have less impact in the model. Statistical tests of the parameters are conducted for further analysis of the reliability of the identified parameters using both algorithms. According to the confidence interval tests, only the parameters including $\tau _{v2_i}$ and $\tau _{v3_i}$ of all joints contain zero values in their confidence interval [LBCI UBCI]. It could be concluded that these parameters are statistically insignificant and do not exist in the model. Meanwhile, the remaining parameters, including $\tau _{c_i}$ , $\tau _{s_i}$ , $\tau _{v1_i}$ , and $\dot{q}_{s_i}$ , should be included in the dynamic model of the joints since their confidence intervals do not contain a 0 value. The null hypothesis test results could be interpreted as follows: The p-values of the identified parameters, including $\tau _{c_i}$ , $\tau _{s_i}$ , $\tau _{v1_i}$ , and $\dot{q}_{s_i}$ are all calculated as approximately equal to 0, which is less than the significance level $\alpha$ (p-value $\lt$ 0.01). It could be concluded that these parameters are statistically significant and exist in the dynamic model of the joints. Conversely, the p-value of the remaining parameters, including $\tau _{v2_i}$ and $\tau _{v3_i}$ , is calculated approximately equal to 1, which is greater than the significance level $\alpha$ (p-value $\gt$ 0.01). It indicates that these parameters are statistically insignificant and do not exist in the dynamic model of the joints. Consequently, concerning the statistical tests, the identified parameters using the PSO algorithm are more accurate than those identified using the NLSE algorithm.

With the exception of the viscous friction nonlinear terms $\tau _{v2_i}$ and $\tau _{v3_i}$ , the physical interpretation of the results shows that all nonlinear terms mentioned in Eq. (1) exist in the real nonlinear model of all the joints ( $i$ = 1–6) of the UR5 manipulator.

To interpret the accuracy of the model with identified parameters using both PSO and NLSE algorithms, the applied torques of the joints are calculated and are shown in Fig. 13.

To validate the model with identified parameters using both algorithms, a new trajectory is generated and supplied to the UR5 manipulator. The validation signal, including position, velocity, and accelerations of all the joints of the manipulator, and the representation of the verification trajectory in Cartesian space are demonstrated in Figs. 14 and 15.

Finally, the models with identified parameters using both algorithms are utilized to calculate the output torque of the joints of the UR5 manipulator using a validation signal. The measured applied torques of the joints and the calculated torque of the joints of the models with identified parameters using both PSO and NLSE algorithms are shown in Fig. 16.

To evaluate the performance of the model with identified parameters using the PSO and NLSE algorithms, the joints of the robot are divided into two sets, where the first three joints (base, shoulder, elbow) are assigned to set 1 and the other three (wrist-1, wrist-2, wrist-3) are assigned to set 2. The absolute values of the joints’ torque errors are calculated and represented in Fig. 17.

The higher errors of the NLSE algorithm are related to the accuracy of the identified parameters, which may be obtained as local optima values. The $R^{2}$ and MSE values are calculated to compare the output of the model with identified parameters using the PSO and NLSE algorithms for each set of the joints of the UR5 manipulator and are listed in Table VI.

Table VI. The $R^{2}$ and MSE values of the outputs of the model with identified parameters using the PSO and NLSE algorithm of all joints of the UR5 manipulator.

According to Table VI, the $R^{2}$ values of output torques of all joints of the models with identified parameters using the PSO algorithm are greater than the ones calculated for the models with identified parameters using the NLSE algorithm. Furthermore, the average $R^{2}$ value for first set of the joint of the models with identified parameters using the PSO and the NLSE algorithms is calculated as 97.27% and 89.91%, and for the second set of the joints it was calculated as 89.68% and 85.81%. It means that the models with identified parameters using the PSO algorithm for all the joints could explain the variations in the output angular velocity data around their mean much better than the models identified using the NLSE algorithm. Furthermore, the corresponding MSE values of the model outputs using the PSO algorithm for all joints of the UR5 manipulator are less than the ones calculated for model outputs using the NLSE algorithm. Furthermore, the average MSE value for the model outputs of the first set of the joints using the PSO and NLSE algorithms is calculated as 3.64 (N.m) and 15.3 (N.m), and for the second set of the joints, it is calculated as 0.53 (N.m) and 0.71 (N.m), respectively. It could be concluded that the models with identified parameters using the PSO algorithm more accurately calculate the actual torques of the joints when compared to the output of the models with identified parameters using the NLSE algorithm.

5. Conclusion

In this study, the existence of nonlinear friction terms in mechanical components such as robotic manipulators has been determined, and their unknown parameters have been identified. For this purpose, the white-box models of real-world mechanical components that include nonlinear terms were developed, and then the PSO algorithm was applied to identify the parameters of the existing nonlinear terms of the model among possible configurations. However, the main aim of this research was not only to identify unknown parameters but also to verify the existence of nonlinear terms in mechanical components such as robotic manipulators. Therefore, meticulous investigation and statistical verification were carried out for a reliable identification process using both simulations and experimental data. Moreover, to evaluate the performance of the PSO algorithm, the NLSE algorithm is applied to identify the unknown parameters of the nonlinear model. The framework of identification used here could be summarized as follows: first, the PSO algorithm was adopted to identify the unknown parameters of the nonlinear model of the DC motor using simulation data for two different scenarios, including different combinations of the nonlinear friction terms. Then, the reliability of the PSO algorithm in the identification of the correct terms of the nonlinear model was evaluated by applying the statistical hypothesis and confidence interval tests. The statistical tests proved that the PSO algorithm could successfully identify the accurate model parameters of the DC motor using simulation data, and the maximum identification error was as small as 5 $\%$ . To evaluate the reliability of the PSO algorithm in the identification of the exact nonlinear terms, experimental data were acquired from all joints of the UR5 manipulator. The statistical test results demonstrated that the PSO algorithm can successfully identify the significant parameters of the nonlinear model of real-world mechanical components such as the UR5 robotic manipulator. To evaluate the performance of the PSO algorithm, the NLSE algorithm is also performed using the optimization toolbox of MATLAB and the unknown parameters of the nonlinear model of the UR5 manipulator are identified. According to the statistical tests, the identified parameters using the PSO algorithm are more accurate than those identified using the NLSE algorithm. In order to determine which models with identified parameters give more accurate results, the $R^{2}$ and MSE values for the model outputs are calculated. It was demonstrated that the $R2$ values of the output torques of all joints calculated using the PSO algorithm are greater than those calculated using the NLSE algorithm. It means that the models with identified parameters using the PSO algorithm could explain the variations in the output angular velocity data around its mean much better than the models with identified parameters using the NLSE algorithm. The corresponding MSE values of the model outputs using the PSO algorithm for all joints of the UR5 manipulator are calculated to be lower than those for model outputs using the NLSE algorithm. It could be concluded that the PSO algorithm not only identifies the accurate parameters of the nonlinear model of the UR5 manipulator, but the models with identified parameters using the PSO algorithm could calculate the actual torques of the joints more accurately than the ones calculated using the models with identified parameters using the NLSE algorithm.

For further development of the algorithm, additional physically interpretable nonlinear terms such as flexibility, hysteresis, dead-zone, and saturation that exist in real-world mechanical components would be collected from the literature and included in the nonlinear mathematical model. The identification framework used here can be applied to different real-world nonlinear systems, such as thermal or fluid systems, mechanical or electrical systems, such as solenoid actuators. Hence, this study might lead to new directions for both academic research and engineering applications. Moreover, other methods such as the Monte Carlo Markov chain combined with the Bayesian principle will be utilized to estimate the unknown parameters of the models to compare the results obtained in this research.

Acknowledgement

We would like to sincerely appreciate Prof. Ahmet Sermet Anagun for sharing his pearls of wisdom with us during the implementation and writing of this research paper.

Author contributions

The authors contributed equally to the paper. There is mutual agreement about the order of the authors’ names.

Financial support

This research received no specific grant from any funding agency, commercial, or any sector.

Conflicts of interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this study.

References

Ljung, L., Glad, T. and Hansson, A.. Modeling and Identification of Dynamic Systems (Studentlitteratur AB, Lund, Sweden, 2021).Google Scholar
Imai, H., Yun, C.-B., Maruyama, O. and Shinozuka, M., “Fundamentals of system identification in structural dynamics,” Probabilist. Eng. Mech. 4(4), 162173 (1989).CrossRefGoogle Scholar
Calabrese, A., Strano, S. and Terzo, M., “Adaptive constrained unscented kalman filtering for real-time nonlinear structural system identification,” Struct. Control Health Monitor. 25(2), e2084 (2018).CrossRefGoogle Scholar
Tangirala, A. K., Principles of System Identification: Theory and Practice (CRC Press, Boca Raton, 2015).Google Scholar
Belegundu, A. D. and Chandrupatla, T. R., Optimization Concepts and Applications in Engineering (Cambridge University Press, Cambridge, UK, 2019).CrossRefGoogle Scholar
Loyola-Gonzalez, O., “Black-box vs. white-box: Understanding their advantages and weaknesses from a practical point of view,” IEEE Access 7, 154096154113 (2019).CrossRefGoogle Scholar
van den Bosch, P. P. and van der Klauw, A. C., Modeling, Identification and Simulation of Dynamical Systems (CRC Press,2020).CrossRefGoogle Scholar
Hamdy, M. and El-Ghazaly, G., “Extended dynamic fuzzy logic system for a class of mimo nonlinear systems and its application to robotic manipulators,” Robotica 31(2), 251265 (2013).CrossRefGoogle Scholar
Sharkawy, A.-N., Koustoumpardis, P. N. and Aspragathos, N., “Neural network design for manipulator collision detection based only on the joint position sensors,” Robotica 38(10), 17371755 (2020).CrossRefGoogle Scholar
Jiménez-López, E., de la Mora-Pulido, D. S., vila, L. A. R.-Á., de la Mora-Pulido, R. S., Melendez-Campos, J. and López-Martínez, A. A., “Modeling of inverse kinematic of 3-dof robot, using unit quaternions and artificial neural network,” Robotica 39(7), 1230-1250 (2021).Google Scholar
Wang, H., Luo, C. and Wang, X., “Synchronization and identification of nonlinear systems by using a novel self-evolving interval type-2 fuzzy lstm-neural network,” Eng. Appl. Artif. Intel. 81, 7993 (2019).CrossRefGoogle Scholar
Linhares, L. L., Fontes, A. I., Martins, A. M., Araújo, F. M. and Silveira, L. F., Fuzzy wavelet neural network using a correntropy criterion for nonlinear system identification. Mathematical. Prob. Eng . 2015(5), 1–12 (2015).CrossRefGoogle Scholar
Ting, J.-A., Mistry, M. N., Peters, J., Schaal, S. and Nakanishi, J., “A Bayesian Approach to Nonlinear Parameter Identification for Rigid Body Dynamics,” In: Robotics: Science and Systems , Philadelphia, USA (2006) pp. 3239.Google Scholar
Yang, J. and Weglein, A. B., “A First Comparison of the Inverse Scattering Series Non-Linear Inversion and the Iterative Linear Inversion for Parameter Estimation,” In: 2015 SEG Annual Meeting, OnePetro (2015).CrossRefGoogle Scholar
Van den Bos, A.. Parameter Estimation for Scientists and Engineers (John Wiley & Sons, New York, USA, 2007).Google Scholar
Siciliano, B. and Khatib, O.. Robotics and the Handbook (Springer Handbook of Robotics, Springer, 2016) pp. 16.Google Scholar
Zak, G., Benhabib, B., Fenton, R. and S, I. aban, , Application of the weighted least squares parameter estimation method to the robot calibration," Journal of Mechanical Design 116(3), 890–893 (1994).CrossRefGoogle Scholar
Zollo, L., Lopez, E., Spedaliere, L., Aracil, N. G. and Guglielmelli, E., “Identification of dynamic parameters for robots with elastic joints,” Adv. Mech. Eng. 7(2), 2015843186 (2015).CrossRefGoogle Scholar
Miranda-Colorado, R. and Moreno-Valenzuela, J., “Experimental parameter identification of flexible joint robot manipulators,” Robotica 36(3), 2018 313332 (2018).CrossRefGoogle Scholar
Olsen, M. M. and Petersen, H. G., “A new method for estimating parameters of a dynamic robot model,” IEEE Trans. Robot. Autom. 17(1), 95100 (2001).CrossRefGoogle Scholar
Haji, S. H. and Abdulazeez, A. M., “Comparison of optimization techniques based on gradient descent algorithm: A review,” PalArch’s J. Arch. Egypt/Egyptology 18(4), 27152743 (2021).Google Scholar
Wang, D. and Liu, Q., “Nonlinear Stein Variational Gradient Descent for Learning Diversified Mixture Models,” In: International Conference on Machine Learning (PMLR) (2019) pp. 65766585.Google Scholar
Baker, S. M., Schallau, K. and Junker, B. H., “Comparison of different algorithms for simultaneous estimation of multiple parameters in kinetic metabolic models,” J. Integr. Bioinform. 7(3), 254262 (2010).CrossRefGoogle ScholarPubMed
Wihartiko, F., Wijayanti, H. and Virgantari, F., “Performance Comparison of Genetic Algorithms and Particle Swarm Optimization for Model Integer Programming Bus Timetabling Problem,” In: IOP Conference Series: Materials Science and Engineering , vol. 332 (IOP Publishing, 2018) p. 012020.CrossRefGoogle Scholar
Kecskes, I., Szekacs, L., Fodor, J. C. and Odry, P., “Pso and GA Optimization Methods Comparison on Simulation Model of a Real Hexapod Robot,” In: 2013 IEEE 9th International Conference on Computational Cybernetics (ICCC) (IEEE, 2013) pp. 125130.CrossRefGoogle Scholar
Liu, L., Liu, W. and Cartes, D. A., “Particle swarm optimization-based parameter identification applied to permanent magnet synchronous motors,” Eng. Appl. Artif. Intel. 21(7), 2008 10921100 (2008).CrossRefGoogle Scholar
Abedinifar, M., Argin, O. F. and Ertugrul, S., “Identification of a Nonlinear DC Motor Model with Particle Swarm Optimization,” In: 9th International Conference on Advanced Technology (Izmir Ktip Celebi University and Iskenderun Technical University, 2020) pp. 5257.Google Scholar
Abedinifar, M. and Ertugrul, S., “Comparative Study of Identification Using Nonlinear Least Squares Errors and Particle Swarm Optimization Algorithms for a Nonlinear Dc Motor Model,” In: International Conference on Intelligent and Fuzzy Systems (Springer, 2021) pp. 554561.CrossRefGoogle Scholar
Yan, D., Lu, Y. and Levy, D., “Parameter identification of robot manipulators: A heuristic particle swarm search approach,” PloS One 10(6), e0129157 (2015).Google ScholarPubMed
Sahu, A., Panigrahi, S. K. and Pattnaik, S., “Fast convergence particle swarm optimization for functions optimization,” Proc. Tech. 4, 319324 (2012).CrossRefGoogle Scholar
Murphy, K. R., Myors, B. and Wolach, A.. Statistical Power Analysis: A Simple and General Model for Traditional and Modern Hypothesis Tests (Routledge, New York, 2014).CrossRefGoogle Scholar
Fan, J. and Zhang, W., “Simultaneous confidence bands and hypothesis testing in varying-coefficient models,” Scand. J. Stat. 27(4), 715731 (2000).CrossRefGoogle Scholar
Do, T., Tjahjowidodo, T., Lau, M. and Phee, S., “Nonlinear friction modelling and compensation control of hysteresis phenomena for a pair of tendon-sheath actuated surgical robots,” Mech. Syst. Signal Process. 60, 770784 (2015).CrossRefGoogle Scholar
Rabbi, S. and Rahman, M., “Equivalent circuit modeling of a hysteresis interior permanent magnet motor for electric submersible pumps,” IEEE Trans. Mag. 52(7), 2016 14 (2016).CrossRefGoogle Scholar
Tadić, B., Kočović, V., Matejić, M., Brzaković, L. and Mijatović, M., “Static coefficient of rolling friction at high contact temperatures and various contact pressure,” Tribol. Ind. 38(1), 83 (2016).Google Scholar
De Wit, C. C., Olsson, H., Astrom, K. J. and Lischinsky, P., “A new model for control of systems with friction,” IEEE Trans. Automat. Contr. 40(3),419425 (1995).CrossRefGoogle Scholar
Olsson, H., Åström, K. J., De Wit, C. C., Gäfvert, M. and Lischinsky, P., “Friction models and friction compensation,” Eur. J. Contr. 4(3), 176195 (1998).CrossRefGoogle Scholar
Armstrong-Helouvry, B., “Stick-slip Arising From Stribeck Friction,” In: Proceedings of the IEEE International Conference on Robotics and Automation (IEEE, 1990) pp. 13771382.Google Scholar
Haessig, D. A. Jr and Friedland, B., “On the modeling and simulation of friction, ournal of dynamic systems, measurement and control,” Trans. ASME 113(3), 354362 (1991).Google Scholar
Makkar, C., Dixon, W., Sawyer, W. and Hu, G., “A New Continuously Differentiable Friction Model for Control Systems Design,” In: Proceedings of the 2005 IEEE/ASME International Conference on Advanced Intelligent Mechatronics (IEEE, 2005) pp. 600605.Google Scholar
Wolf, S. and Iskandar, M., “Extending a Dynamic Friction Model with Nonlinear Viscous and Thermal Dependency for a Motor and Harmonic Drive Gear,” In: 2018 IEEE International Conference on Robotics and Automation (ICRA) (IEEE, 2018) pp. 783790.CrossRefGoogle Scholar
Kennedy, J. and Eberhart, R., “Particle Swarm Optimization,” In: Proceedings of ICNN95-International Conference on Neural Networks (IEEE, 1995) pp. 19421948.Google Scholar
Yuhui, S. and Eberhart, R., “A modified particle swarm optimizer,” In: IEEE International Conference on Evolutionary Computation Proceedings (Cat. No.98TH8360) (IEEE World Congress on Computational Intelligence, 1998), 69–73.Google Scholar
Shi, Y. and Eberhart, R. C., “Empirical Study of Particle Swarm Optimization,” In: Proceedings of the 1999 Congress on Evolutionary computation-CEC99 (Cat. No. 99TH8406) (IEEE, 1999) pp. 19451950.CrossRefGoogle Scholar
Billings, S. A.. Nonlinear System Identification: NARMAX Methods in the Time, Frequency, and Spatio-Temporal Domains (John Wiley & Sons, Chichester, West Sussex, UK, 2013).CrossRefGoogle Scholar
Li, M. Y., “Parameter Estimation and Nonlinear Least-Squares Methods,” In: An Introduction to Mathematical Modeling of Infectious Diseases (Springer, 2018) pp. 103124.CrossRefGoogle Scholar
Berk, K., Nonlinear regression (1991).CrossRefGoogle Scholar
Ramachandran, K. M. and Tsokos, C. P.. Mathematical Statistics with Applications in R (Academic Press, London, UK, 2020).Google Scholar
Montgomery, D. C. and Runger, G. C.. Applied Statistics and Probability for Engineers (John Wiley & Sons, New York, USA, 2010).Google Scholar
Janocha, H.. Actuators (Springer, Berlin, Germany, 2004).Google Scholar
Sorli, M., Mauro, S., De Martin, A., Raviola, A. and Guida, R., Sviluppo di un modello high-fidelity del robot ur5 a fini diagnostici e prognostici, 2020.Google Scholar
Siciliano, B., Sciavicco, L., Villani, L. and Oriolo, G.. Modelling, Planning and Control, Advanced Textbooks in Control and Signal Processing (Springer, London, UK, 2009).Google Scholar
Draper, N. R. and Smith, H., Applied Regression Analysis. vol. 326 (John Wiley & Sons, 1998).CrossRefGoogle Scholar
Figure 0

Figure 1. The flowchart for the procedure of the hypotheses test.

Figure 1

Figure 2. The flowchart for the procedure of the confidence interval test.

Figure 2

Figure 3. Schematic diagram of a DC motor.

Figure 3

Figure 4. The main structure of the UR5 manipulator (a) and its experimental setup (b).

Figure 4

Table I. Denavit–Hartenberg parameters of the manipulator.

Figure 5

Table II. Mass properties of the manipulator.

Figure 6

Figure 5. The input voltage signal for the identification.

Figure 7

Figure 6. The output of the actual model and the calculated output of the model with identified parameters of the DC motor for the first scenario using identification signal.

Figure 8

Table III. The real and identified parameters of the DC motor and their statistical test results for the first scenario.

Figure 9

Figure 7. The input voltage signal for verification of the model with identified parameters.

Figure 10

Figure 8. The output of the actual model and the calculated output of the model with identified parameters of the DC motor for the first scenario using verification signal.

Figure 11

Figure 9. The output of the actual model and the calculated output of the model with identified parameters of the DC motor for the second scenario using identification signal.

Figure 12

Table IV. The real and identified parameters of the DC motor and their statistical test results for the second scenario.

Figure 13

Figure 10. The output of the actual model and the calculated output of the model with identified parameters of the DC motor for the second scenario using verification signal.

Figure 14

Figure 11. The position $(q_{i})$, velocity $(\dot{q}_{i})$, and acceleration $(\ddot{q}_{i})$ signals of joints ($i$ = 1-6) of the UR5 manipulator for identification.

Figure 15

Figure 12. The representation of the trajectory for identification in Cartesian space.

Figure 16

Table V. The identified model parameters of the joints of the UR5 manipulator and their statistical test results.

Figure 17

Figure 13. The measured torque and the calculated torque of the models with identified parameters using PSO and NLSE estimation algorithms.

Figure 18

Figure 14. The position, velocity, and acceleration signals for model validation.

Figure 19

Figure 15. The representation of the trajectory for verification in Cartesian space.

Figure 20

Figure 16. The measured applied torques and calculated torques of the joints of the models with identified parameters using both PSO and NLSE estimation algorithms.

Figure 21

Figure 17. The torque errors of the joints of the models with identified parameter using PSO and NLSE estimation algorithms.

Figure 22

Table VI. The $R^{2}$ and MSE values of the outputs of the model with identified parameters using the PSO and NLSE algorithm of all joints of the UR5 manipulator.