Abstract
In this paper, a novel forward adaptive neural MIMO NARX model is used for modelling and identifying the forward kinematics of an industrial 3-DOF robot arm system. The nonlinear features of the forward kinematics of the industrial robot arm drive are thoroughly modelled based on the forward adaptive neural NARX model-based identification process using experimental input-output training data. This paper proposes a novel use of a back propagation (BP) algorithm to generate the forward neural MIMO NARX (FNMN) model for the forward kinematics of the industrial 3-DOF robot arm. The results show that the proposed adaptive neural NARX model trained by a Back Propagation learning algorithm yields outstanding performance and perfect accuracy.
Keywords
1. Introduction
The robot control problems can be divided into two main areas: kinematics control (the coordination of the links of a kinematics chain to produce the desired motion of the robot) and dynamic control (the driving of the actuator of a mechanism to follow the commanded positional velocities). In general, the control strategies used in robots involve position coordination in a Cartesian space by direct or indirect kinematics methods. Forward kinematics comprises the computation needed to find the join angles for a given Cartesian position and the orientation of the end effectors. This computation is fundamental to the control of robot arms but it is very difficult to calculate a forward kinematics solution of the robot arm. For this solution, most industrial robot arms are designed using a nonlinear algebraic computation for finding the forward kinematics solution. It is well known in literature that there is no unique solution for forward kinematics. This is the reason why it is important to apply artificial neural network models to obtain a solution.
Novel approaches of artificial neural network (ANN) models have been proposed to control the motion of robot arms. In these works, two types of ANN models are used. The first kind of ANN model is the MLP (multilayer perceptron), which is popular as a back propagation neural model. In this network, gradient descent types of learning rules are applied. The second kind of ANN model is the PPN (polynomial poly-processor neural network), where a polynomial equation was used. Here, work has been undertaken to find the best ANN configuration for the problem. It was found that between MLP and PPN, MLP gives better results as compared with PPN, considering the average percentage error as the performance index.
Alavandar and Nigam [1] developed a Neuro-Fuzzy-based approach for a forward kinematics solution for industrial robot arms. In their paper, it is shown that by using the ability of an Adaptive Neuro-Fuzzy Inference System (ANFIS) to learn from training data, it is possible to create an implementation of a representative fuzzy inference system using a BP neural network-like structure, with limited mathematical representation of the system. Computer simulations conducted on 2-DOF and 3-DOF robot arms showed the effectiveness of the approach.
Morris et al. [2] developed an artificial neural network for finding the kinematics of a robot arm using a look-up table. The neural networks utilized were multi-layered perceptrons with a back-propagation training algorithm. They used 5 hidden layer neurons with the rate of training ή set at 2.018, and the momentum factor α set at 0.54. The average percentage error – i.e., the percentage of the difference between the actual and the targeted/desired output – at the last iteration of the final session was 0.02% for the first joint and 0.3% for the second joint.
Guez and Ahmad [3] developed a solution to the forward kinematics problem in robots using a neural network. It was found that the neural network could be trained to generate a fairly accurate solution which would result in a minimal burden on the processing load of each control cycle and, thus, enable real-time robot control. The back propagation algorithm simulating a three-layer perceptron was employed to tackle this problem. Symmetric sigmoidal nonlinearity was used. The learning rate and the momentum term assumed the values of 0.1 and 0.4 respectively. In addition, the desired outputs were normalized between −0.9 and +0.9. The average error was less than 0.01 radians while the maximum error was 0.25 radians.
Karlik et al. [4] developed an improved approach to the solution of forward kinematics problems for robot arms. In their approach, a structured artificial neural network (ANN) was proposed to control the motion of a robot arm. Many neural network models use threshold units with sigmoid transfer functions and gradient descent-type learning rules. The learning equations used were those of the back propagation algorithm. In their work, the solution of the kinematics for a 6-DOF robot arm is implemented using an ANN. The training of the ANN required 6000 iterations.
Furthermore, various numerical and intelligent methods to solve the forward kinematics of industrial robot arms have been investigated in [5-10]. Recently, robust adaptive control approaches combining conventional methods with new learning techniques have been realized. During the last decade, several adaptive neural network models and learning schemes have been applied to the offline and online learning of robot arm dynamics [11-13]. Ahn and Anh in [14–15] have successfully optimized a NARX neural model of the forward kinematics of a PAM-based robot arm using a genetic algorithm. These authors – in [16] – have identified the forward kinematics of the industrial robot arm based on adaptive neural networks. The drawback of all these results is related to the forward kinematics of the industrial robot arm being considered as an independent decoupling system with the external force variation having negligible effect. Consequently, not all of the intrinsic cross-effect features of the forward kinematics of industrial robot arms have been represented in the resulting adaptive neural model.
This paper proposes the novel use of an adaptive neural NARX model to generate the Forward Neural MIMO NARX (FNMN) model for the nonlinear forward kinematics of a 3-DOF industrial robot arm system. A Back Propagation (BP) learning algorithm is used to process the experimental input-output data that is measured from the forward kinematics of the industrial robot arm system to optimize all of the nonlinear and dynamic features of this system. Thus, the BP algorithm optimally generates the appropriate neural weightings so as to perfectly characterize the dynamic features of the forward kinematics of the industrial robot arm. These good results are due to the proposed FNMN model, which combines the extraordinary approximating capability of the neural system with the powerful predictive and adaptive potentiality of the nonlinear ARX structure that is implied in the proposed FNMN model. Consequently, the proposed method for the industrial robot arm Forward Neural NARX model identification approach successfully modelled the nonlinear forward kinematics of the industrial robot arm system and performed well.
The rest of the paper is organized as follows. Section II introduces the calculation of the 3-DOF industrial robot arm forward kinematics. Section III presents the novel neural NARX model using the forward kinematics model identification of the industrial 3-DOF robot arm. The results from the proposed forward kinematics identification are presented in Section IV. Finally, Section V makes some concluding remarks.
2. Forward Kinematics of the Industrial 3-Dof Robot Arm System
The Forward kinematics analysis for a planar 3-R robot arm appears to be complicated, but we can derive analytical solutions. Recall that the direct kinematics Equations (1) are:
Call Φ = θ1 + θ2 + θ3 and from the given coordinates, x, y and Φ: we want to find analytical expressions for the joint angles θ1, θ2 and θ3 in terms of the Cartesian coordinates.
Substituting Φ into 1(a) and 1(b), we can eliminate θ3 so that we have two equations in θ1 and θ2:
Rename the left hand sides x' = (x – l3cosφ) and y' = (y – l3sinφ) for convenience. We can regroup the terms in (1c) and (1d), square both sides in each equation, and then we have:
After rearranging the terms we get a single nonlinear equation in θ1. Hence, there are two solutions for θ1, given by:
with:
and σ = ± 1.
Substituting any one of these solutions back into Equations (1c) and (1d) gives us:
Hence:
and:
Equations (1f), (1g) and (1h) are the forward kinematics solution for the 3-R manipulator. For a given end effector's position and orientation, there are two different ways of reaching it, each corresponding to a different value of σ. These different configurations are shown in Figure 2:
In this paper, the testing data was taken from training data. In general, because the forward kinematics of a 6-DOF robot arm is a nonlinear mapping from a (X, Y, Z, φx, φy, and φz) space to a (θ1, θ2, θ3, θ4, θ5 and θ6) space, it can be regarded as an input-output process with an unknown transfer function. the approximation of such a relationship is an example of the general approximation problem and as such it is well-suited to learning by an adaptive MIMO NARX neural model. Two problems encountered when teaching a NN robot forward kinematics are the low accuracy of approximation and the need to create a teaching data set with a relatively large number of data points. In the case, where the kinematic parameters of each robot link are known, a simple kinematic model of the 3-DOF robot can be made based on Equations 1(f) to 1(h) and a required number of data points can be readily generated. In the case where the joint parameters are unknown, the required data has to be obtained by measuring the position and orientation of the robot gripper although with a number of arm configurations. Such measurement is very difficult in practice.
3. Proposed Adaptive Forward Neural Mimo Narx (Fnmn) Model of the Nonlinear Forward Kinematics of the Industrial 3-Dof Robot Arm System
The adaptive Forward Neural MIMO NARX (FNMN) model used in this paper is a combination of the Multi-Layer Perceptron Neural Networks (MLPNNs) structure and the Auto-Regressive with eXogenous input (ARX) model. Due to this combination, the proposed Forward Neural MIMO NARX (FNMN) model possesses a powerful universal approximating feature from the MLPNN structure and a strong predictive feature from the nonlinear ARX model.
A fully connected 3-layer feed-forward MLP-network with n inputs, q hidden units (also called “nodes” or “neurons”) and m output units is shown in Fig. 3.
In Figure 1, w10,.., wq0 and W10,..,Wm0 are the weighting values of the bias neurons of the input layer and the hidden layer respectively.

Schematic of a robot arm with three revolute joints.

The two Forward kinematics solutions for the 3-R manipulator

Structure of the feed-forward MLPNN.
We consider an Auto-Regressive with eXogenous input (ARX) model with noisy input, which can be described as:
with
where e(t) is the white noise sequence with a zero mean and unit variance, u(t) and y(t) are the input and output of the system respectively, q is the shift operator and T is the time delay.
From Equation (2), and not considering the noise component e(t), we have the general form of the discrete ARX model in a z-domain (with the time delay T=nk=1):
This paper investigates the potentiality of various simple adaptive Neural MIMO NARX models in order to exploit them in modelling, identification and control. The forward kinematic model of the industrial 3-DOF robot arm is investigated. Thus, by embedding a 3-layer MLPNN (with the number of neurons of the hidden layer equal 5) in a 1st-order ARX model, its characteristic equation induced from (3) is as follows:
We will design the proposed Forward Neural MIMO NARX11 (FNMN11) model (with na = 1, nb = 1, nk =1) for the industrial 3-DOF robot arm with 5 inputs (including q1(k), q2(k), q3(k), recurrent delayed values y(k-1), x(k-1)), and 2 output values (yhat(k), xhat(k)). We recall that three input values q1(k), q2(k) and q3(k) represent the three joint angles [rad] of the 3-DOF robot arm and the two output values yhat(k) and xhat(k) represent the Cartesian coordinates (x,y) of the 3-DOF robot arm end-effector respectively. Its structure is shown in Fig. 4a.

Structure of the proposed Forward Neural MIMO NARX11 (FNMN11) model.
In this way, the parameters a11, a12, b11, b12, b13 and a21, a22, b21, b22, b23 of the ARX structure of the output variables yhat(t) and xhat(t), respectively, become adaptively nonlinear and will be determined from the weighting values Wij and wjl of the proposed Neural MIMO NARX11 model. This feature makes the adaptive Neural MIMO NARX model very powerful for modelling, identification and for model-based advanced control as well.
In the same way, we will design the proposed Forward Neural MIMO NARX22 (FNMN22) model (with na = 2, nb = 2, nk =1) for the industrial 3-DOF robot arm by embedding a 3-layer MLPNN (with the number of neurons of the hidden layer equal 5) in a 2nd-order ARX model with its characteristic equation induced from (3) as follows:
In this way, the proposed Forward Neural MIMO NARX22 (FNMN22) model (na = 2, nb = 2, nk =1) for the industrial 3-DOF robot arm illustrated in Fig. 4b is composed of 16 inputs (including q1(k), q2(k), q3(k), q1(k-1), q2(k-1), q3(k-1), recurrent delayed values y(k-1), x(k-1), y(k-2), x(k-2)), and 2 output values (yhat(k), xhat(k)). We should once more recall that the three input values q1(k), q2(k) and q3(k) represent the three joint angles [rad] of the 3-DOF robot arm and the two output values yhat(k) and xhat(k) represent the Cartesian coordinates (x,y) of the industrial 3-DOF robot arm end-effector, respectively. Its structure is shown in Fig. 4b.

Structure of the proposed Forward Neural MIMO NARX22 (FNMN22) model.
Furthermore, the class of MLPNN-networks considered in this paper is confined to those having only one hidden layer and using sigmoid activation functions. From Figure 3, the predictive output value ŷ(t) (or yhat(t)) is calculated as follows:
The weights (specified by the matrices
We specify the training set by:
The objective of training is then to determine a mapping from the set of training data to the set of possible weights,
The prediction error approach, which is the strategy applied here, is based on the introduction of a measure of closeness in terms of a mean sum of a square error (MSSE) criterion:
Based on the conventional error Back-Propagation (BP) training algorithms, the weighting value is calculated as follows:
where k is the kth iterative step of the calculation and λ is the learning rate, which is often chosen as a small constant value.
More concretely, the weights Wij and wjl of the neural NARX are then updated as:
where δ
i
is the search direction value of the ith neuron of the output layer (i=[1 → m]), Oj is the output value of the jth neuron of the hidden layer (j=[1 → q]), yi and ŷi are the real and predicted outputs, respectively, of the ith neuron of output layer (i=[1 → m]), and:
in which δj is the search direction value of the jth neuron of the hidden layer (j=[1 → q]), Oj is the output value of the jth neuron of the hidden layer (j=[1 → q]), and ul is the input of the lth neuron of the input layer (l=[1 → n]). These results by Equations (9) and (10) are demonstrated as follows in the case of the sigmoid being the activation function of the hidden and output layers. Consider the case of the output layer and the error to be minimized:
Using the chain rule method, we have:
From Equation (11), the following equation is derived:
with
Replace (13), (14), (15) with (12) and then substitute all of them into (8), then the following equation is derived:
Equation (9) is, therefore, demonstrated.
Using the chain rule method, the same approach is used for updating the weights of the hidden layer, namely:
Then:
with
Replace (18), (19), (20) with (17) and then substitute all of them into (8). The following equation is derived:
Equation (10) is thus demonstrated.
4. Modelling and Identification Results
In general, the procedure which must be executed when attempting to identify a dynamical system consists of four basic steps:
STEP 1 (Getting the Training Data)
STEP 2 (Selecting the Model Structure)
STEP 3 (Estimating the Model)
STEP 4 (Validating the Model)
In Step 1, the identification procedure is based on experimental input-output data values measured from the forward kinematics of the industrial 3-DOF robot arm system. The input signals θ1, θ2 and θ3 (or q1(k), q2(k) and q3(k) in the z-domain) represented the joint-angles applied to the three joints of the industrial robot arm in order to obtain a circular trajectory from the output signals (x,y) represented by the Cartesian coordinates of the end-effecter of the industrial 3-DOF robot arm. Thus, the responding output Cartesian coordinates (x,y) are chosen to formulate a circular trajectory of the robot arm's end-effecter. Figure 5a presents the collected input-output data composed of the three θ1, θ2 and θ3 angle inputs applied to the three joints of the industrial 3-DOF robot arm system and the responding x(t) and y(t) outputs of the industrial robot arm's end-effector Cartesian coordinates.

Training data composed of (θ1, θ2 and θ3) inputs and (x, y) outputs the for identification process.
This collected input-output data is used for training and validating the proposed Forward Neural MIMO NARX (FNMN) model. The Cartesian coordinates (x,y) considered as reference outputs and the forward kinematics of the industrial 3-DOF robot arm angles (θ1, θ2 and θ3) are considered as reference inputs. Figure 5a shows that the input signals θ1, θ2 and θ3 (or q1(k), q2(k) and q3(k) in the z-domain) represent joint-angles applied to the three joints of the industrial robot arm and the output signals (x,y) represent the Cartesian coordinates of the end-effecter of the industrial 3-DOF robot arm. From Figure 5a, we have the (θ1, θ2, and θ3) reference inputs (corresponding to q1(k), q2(k) and q3(k) in the z-domain) and (x,y) considered as reference outputs from (0–1) [s] are used for training, while the (x,y) reference outputs and the 3-DOF robot arm joint-angle inputs (θ1, θ2 and θ3) from (1–2)[s] used for validation purpose.
Back Propagation (BP) learning algorithm based on the error between the reference coordinates (x,y) collected from the industrial 3-DOF robot arm system and the responding Cartesian coordinates (xh, yh) collected from the designed FNMN model to update the weights of the proposed adaptive forward neural MIMO NARX model. Figure 5b and Figure 5c illustrate the identification scheme of the industrial 3-DOF robot arm using the proposed Forward Neural MIMO NARX11 (FNMN11) and Forward Neural MIMO NARX22 (FNMN22) models respectively.

Identification scheme of the industrial 3-DOF robot arm using the proposed FNMN11 model.

Identification scheme of the industrial 3-DOF robot arm using the Forward Neural MIMO NARX22 model.
The second step relates to the selection of the model structure. The proposed Forward Neural MIMO NARX11 (FNMN11) and Forward Neural MIMO NARX22 (FNMN22) model structures are attempted. The block diagrams in Figure 5b and Figure 5c illustrate the identification scheme of these two proposed FNMN models. Figure 4a and Figure 4b illustrate the final Forward Neural MIMO NARX11 and Forward Neural MIMO NARX22 model structures of these two proposed FNMN models.
The third step estimates the values for the trained Forward Neural NARX model. The optimal fitness value for the BP-based optimization and identification process is calculated. The estimation result is presented in Figure 6. This figure represents the fitness convergence values of the proposed forward kinematics of the industrial 3-DOF robot arm system which correspond to two different FNMN models (Forward Neural NARX11 and Forward Neural NARX22 models) and all two were identified and optimized with the Back Propagation (BP) learning algorithm. A good convergence of the minimized fitness value after 500 training iterations is shown in Figure 6 with a perfect Mean Sum of Scaled Error (MSSE) = 0.000016 and MSSE = 0.0000012 with the proposed FNMN11 and FNMN22 model respectively. The training result shows that proposed Forward Neural MIMO NARX (FNMN) model, with an MSSE value which is perfectly minimized, ensures to learn well dynamic and nonlinear features of the industrial 3-DOF robot arm.
These good results are attributed to how the proposed FNMN model combines the extraordinary approximating capability of the neural system with the powerful predictive and adaptive potentiality of the nonlinear NARX structure that is implied in the FNMN model. Consequently, the BP-based Forward kinematics of the industrial robot arm FNMN model addresses all of the nonlinear features of the forward kinematics of the industrial robot arm system that are implied in the input angle signals (θ1, θ2 and θ3) and the responding output Cartesian co-ordinates (x,y).
The last step relates to the validating of the resulting nonlinear FNMN models. Applying the same training diagram in Figure 5b and Figure 5c, a good validating result demonstrates the performance of the resulting Forward Neural MIMO NARX model, as presented in Figure 7 and Figure 8. The error optimized nearly zero between the real industrial 3-DOF robot arm system responding (x,y) and the Forward Neural MIMO NARX model responding (xh, yh) asserts the very good performance of proposed FNMN model. The error shown in Figure 7 and Figure 8 emphasises the fact that the quality of the Forward Neural MIMO NARX22 model is similar to the Forward Neural MIMO NARX11 model.

Fitness convergence of the forward kinematics of the industrial robot arm: a) the Forward Neural MIMO NARX11 model; b) the Forward Neural MIMO NARX22 model.

Validation of the proposed forward kinematics of the industrial 3-DOF robot arm: a) Forward Neural MIMO NARX11 model; b) Forward Neural MIMO NARX22 model.

Validation of the proposed forward kinematics of the industrial 3-DOF robot arm: a) Forward Neural MIMO NARX11 model; b) Forward Neural MIMO NARX22 model.
Finally, Figure 9 and Figure 10 illustrate the auto-tuning variation of the adaptive ARX parameters of the proposed Forward Neural MIMO NARX11 and NARX22 models of the industrial 3-DOF robot arm. In essence, the ten parameters a11, a12, b11, b12, b13, and a21, a22, b21, b22, b23 of the two 1st-order ARX structure integrated in the proposed FNMN11 model were adaptively auto-tuned, as illustrated in Figure 9. Similarly, the twenty parameters a11, a12, a13, a14, b11, b12, b13, b14, b15, b16 and a21, a22, a23, a24, b21, b22, b23, b24, b25, b26 of the two 2nd-order ARX structures integrated in the proposed FNMN22 model were adaptively and flexibly auto-tuned, as illustrated in Figure 10. These results show that the parameters of the ARX structure integrated in the proposed FNMN models now become adaptively nonlinear and will be adaptively determined from the optimized weighting values Wij and wjl of the Neural MIMO NARX model. This feature once more proves that the proposed adaptive Forward Neural MIMO NARX (FNMN) model is very powerful and adaptive for identification and model-based advanced control.

Adaptive Parameters of the ARX Structure embedded in the proposed FNMN11 model.

Adaptive Parameters of the ARX Structure embedded in the proposed FNMN22 model.
In summary, Table 1 and Table 2 tabulate the optimized weighting values of the proposed Forward Neural MIMO NARX11 and Forward Neural MIMO NARX11 models. The final structures of the Forward Neural MIMO NARX11 and Forward Neural MIMO NARX22 models which were identified and optimized by the BP learning algorithm are shown in Figure 4a and Figure 4b respectively.
Optimized weights of the Forward NEURAL MIMO-NARX11 – Total Number of weighting values = 57.
Optimized weights of the Forward NEURAL MIMO-NARX22 – Total Number of weighting values = 97.
5. Conclusions
In this paper, a new approach in the form of a Forward Neural MIMO NARX (FNMN) model is introduced for the modelling and identification of the forward kinematics of the industrial robot arm-based intelligent actuator. The training and testing results show that the newly proposed forward dynamic neural MIMO NARX model presented in this paper can be used in online control with better dynamic properties and with significant robustness. This resulting proposed intelligent model is quite suitable for application in the modelling, identification and control of various complex plants, including linear and nonlinear processes, and without concern for any large change in the external environment.
Footnotes
6. Acknowledgments
This research was completely supported by the NAFOSTED (Vietnam).
