Previous Article in Journal
Numerical Analysis of the Dispersive Behaviour of Buried Elastic Periodic Structures
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Trajectory Control of Flexible Manipulators Using Forward and Inverse Models with Neural Networks

1
Intelligent Production Technology Research & Development Center for Aerospace (IPTeCA), Tokai National Higher Education and Research System, Gifu 501-1193, Japan
2
Graduate School of Engineering, Gifu University, Gifu 501-1193, Japan
3
Center for Robotics and Biomedical Engineering, School of Engineering, Dedan Kimathi University of Technology, Nyeri 657-10100, Kenya
*
Author to whom correspondence should be addressed.
Vibration 2025, 8(3), 48; https://doi.org/10.3390/vibration8030048
Submission received: 16 June 2025 / Revised: 12 August 2025 / Accepted: 23 August 2025 / Published: 26 August 2025

Abstract

This study explores trajectory control in flexible manipulators using neural-network-based forward and inverse modeling. Unlike traditional approaches that enhance precision by increasing structural rigidity—often at the cost of added weight and energy consumption—this work focuses on lightweight flexible manipulators, which are more suitable for aerospace and other weight-sensitive applications but introduce control complexities due to elastic deformations. To address these challenges, neural-network-based models are proposed for a two-link, three-degree-of-freedom (3-DOF) flexible manipulator. Simulation and experimental results show that incorporating system delay compensation into the training data significantly improves tracking accuracy. Nonetheless, difficulties remain in achieving smooth trajectory generation. The findings highlight the potential of neural networks in adaptive control and point to future opportunities for refining input–output modeling to better align theoretical developments with practical implementation.

1. Introduction

In the pursuit of enhanced positional accuracy for industrial robotic manipulators, a conventional design strategy has been to increase the structural rigidity of the robot arm. While this approach effectively minimizes deflection and improves tip tracking, it also results in increased mass, higher energy consumption, and greater operational costs. These drawbacks are particularly restrictive in fields such as aerospace, where weight constraints are critical. Additionally, increased rigidity often necessitates larger actuators and structural reinforcements, thereby limiting the robot’s speed and maneuverability [1,2,3,4,5,6].
To address these limitations, researchers have explored the development of lightweight robotic arms constructed with flexible components. These so-called flexible manipulators, which may consist of single or multiple links, offer several advantages, including reduced energy usage, compact form factors, and the potential for high-speed operation [7,8,9]. The use of smaller actuators and cost-effective materials also lowers manufacturing and maintenance costs, enabling wider applicability in dynamic and constrained environments.
However, the benefits of flexible manipulators are accompanied by significant challenges. The inherent elasticity of the structure introduces vibrations, deformations, and tip oscillations, all of which complicate the control task. These issues are further exacerbated when multiple joints and links are involved, as each additional degree of freedom introduces more dynamic complexity. Extensive research has thus been directed toward vibration suppression and deformation control in flexible manipulators [10,11,12,13,14,15,16].
Among the most widely adopted open-loop control strategies for vibration suppression are command shaping and input shaping. These techniques modify the reference input by convolving it with a sequence of impulses designed to cancel vibratory modes, thereby minimizing residual oscillations without requiring feedback. Work by Singhose [11] and Conway et al. [12] demonstrated that input shaping is robust to modeling errors and effective even in multi-mode or high-speed systems. These strategies have been successfully applied to various flexible systems, including long-span cranes and robotic arms, where residual oscillations significantly affect performance [13]. For manipulators with long, flexible arms or joints, input shaping has been used to generate motion trajectories that avoid exciting natural frequencies, leading to smoother motion and improved accuracy. These strategies are particularly attractive because they do not require changes to the physical hardware or complex sensing.
Traditional control methods, which assume rigid-body dynamics, struggle to manage the nonlinear and distributed nature of flexible systems. The presence of components such as harmonic drive reducers further complicates control by introducing time delays and residual oscillations during rapid movements. As a result, rigid-body models and conventional inverse kinematics become insufficient for precise trajectory control under these conditions [14].
To overcome these challenges, researchers have increasingly turned to artificial neural networks (ANNs), which offer powerful nonlinear approximation capabilities. Neural-network-based controllers can be broadly categorized into direct methods, such as inverse modeling, and indirect methods, such as adaptive gain tuning [1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]. For instance, Gao et al. [10] employed neural networks for vibration suppression and trajectory tracking in a two-link manipulator using the assumed mode method. Abe [14] explored neural networks for flexible Cartesian manipulators, while Sun et al. [15] integrated fuzzy logic into neural models to improve trajectory control. Recurrent neural networks (RNNs) have also been utilized to model forward and inverse dynamics, providing enhanced control via feedforward–feedback loops [16].
Among these studies, Kume et al. [1] demonstrated the angle control of a two-link, two-degree-of-freedom flexible manipulator using an inverse model constructed with a hierarchical neural network. While promising, their work was limited to two-dimensional motion and did not extend to full 3D trajectory control—an essential requirement in many modern industrial applications.
This study builds upon and extends prior research by proposing a model architecture for the three-dimensional trajectory control of a two-link, three-degree-of-freedom flexible manipulator. While the architecture supports 3D motion, only planar (2D) trajectories were evaluated in this work. Both forward and inverse models were developed using neural networks and validated through comprehensive simulations and real-world implementation. To bridge the gap between theoretical modeling and practical deployment, the study incorporates delay-compensated training data and analyzes model behavior under realistic operating conditions.

2. Methods

2.1. Physical Model and Experimental Setup

The experimental platform consisted of a 2-link, 3-degree-of-freedom (3-DOF) flexible manipulator constructed using stainless steel for Link 1 and aluminum for Link 2 as shown in Figure 1a. Each joint was actuated by a DC servo motor equipped with a harmonic drive to achieve high-precision rotational control. Joint 2 and Joint 3 supported angular motion of ±90°, while Joint 1 could additionally perform full 360° rotation. Encoders with 1000 pulses per revolution (P/R) were mounted on each motor shaft, and all joints used harmonic drives with a 1:100 reduction ratio. Cast iron counterweights were added to counterbalance each motor, and a weight was placed at the tip of the arm to induce measurable elastic deformation during movement.
Strain gauges were mounted on the links to measure bending and torsional deformation. The manipulator’s end-effector trajectory was tracked using an OptiTrack optical motion capture system. The physical and mechanical specifications of all components, including actuators, harmonic drives, and structural elements, are detailed in Table 1.
The control system architecture is presented in Figure 1b. Control algorithms were developed in MATLAB Simulink (2021b), compiled to C code using Real-Time Workshop (RTW), and deployed to a Digital Signal Processor (DSP) board (DS1003, dSPACE). The DSP communicated with a D/A converter and speed-controlled servo amplifiers (DA2 series, Sanyo Denki) to actuate the motors. Encoder signals were processed via a counter board, while strain gauge voltages were extracted using bridge circuits and amplified using dynamic strain meters (Kyowa Electric DPM713B, DPM913B) and then digitized through an A/D converter. The sampling interval was set to 0.01 s.

2.2. Neural Network Training

Neural network training was conducted using an offline learning approach based on the Levenberg–Marquardt (LM) algorithm. This method is widely adopted due to its hybrid optimization mechanism that combines the fast convergence properties of Newton’s method with the stability of gradient descent.
The training objective was to minimize the mean squared error (MSE) between the neural network output and the target values, as defined by the loss function in (1):
f x = 1 2 j = 1 m r j 2 x
or in vector notation as shown in (2):
f x = 1 2 r x T r x
Let J x be the Jacobian of r x , given by (3):
J = r 1 x T r m x T = r 1 x 1 r 1 x n r m x 1 r m x n

2.2.1. Gradient Descent Approach

The steepest descent method approximates the minimum of the objective function using the gradient. The gradient vector of the objective function is expressed as (4).
f x = j = 1 m r j x r j x = J x T r x
The weight update rule becomes (5).
x k + 1 = x k η J x T J x
where η is the learning rate. However, as a first-order method, steepest descent exhibits slow convergence.

2.2.2. Newton’s Method

Newton’s method enhances convergence using a second-order approximation. The Hessian of the objective function is given by (6).
2 f x = j = 1 m r j x r j x T + j = 1 m r j x 2 r j x = J x T J x + j = 1 m r j x 2 r j x
Neglecting second-order residuals, 2 r j x can be approximated to 0, and the Hessian matrix can be approximated as (7).
2 f x = J x T J x
Therefore, the update equation for Newton’s method can be expressed as (8).
x k + 1 = x k η J k T J k 1 J k T r k
While this provides fast convergence, it requires that J k T J k is positive definite. If not, the update direction may increase the loss function, leading to instability.

2.2.3. Levenberg–Marquardt Method

The LM method addresses this by interpolating between the steepest descent and Newton’s method. The weight update rule is defined as (9).
x k + 1 = x k J T J + μ I 1 J T r
where μ is the damping factor. When μ → 0, the method approaches Newton’s method; for a large μ, it behaves like gradient descent. The value of μ is adapted dynamically: it is decreased when the error decreases and increased when the error rises, allowing for both robustness and fast convergence.
Training was conducted offline, where data was collected over time and processed in batch mode. This contrasts with online learning, where updates are made in real time for each new sample. Offline training is particularly effective for systems exhibiting periodic behaviors, such as cyclic robot motions.

2.2.4. Neural Network Architecture

The neural network employed in this study consisted of 11 layers: one input layer, ten hidden layers, and one output layer. Sigmoid activation functions were used for the input and hidden layers, enabling nonlinear mapping, while a linear activation function was applied to the output layer to ensure smooth signal generation.
The learning dataset comprised pairs of inverse kinematic joint angles and corresponding measured trajectories. This setup formed the basis for a direct inverse model, where the network maps desired end-effector positions to the required motor input angles.
Training used the LM algorithm as described, with a mean squared error cost function. The damping factor μ was dynamically adjusted with an increment factor of 0.1 and a decrement factor of 10, optimizing the learning process to avoid overfitting and poor convergence.

2.3. Derivation of Inverse Kinematics

Figure 2 shows the coordinate system set for the flexible manipulator. All coordinate systems are left-handed, and the reference coordinate system is set at the manipulator’s base. Although the physical system is flexible, the inverse kinematics derivation here assumes a rigid-body model. It is further assumed that the origins of Σ 0 to Σ 1 overlap. Let l 1 , l 2 be the distance between the axes of Joint2 and Joint3 and the distance from the axis of Joint1 to the tip, respectively. Also, θ 1 , θ 2 , θ 3 are the operating angles of Joint1, Joint2, and Joint3, respectively, and the upright state is 0[deg]. Normally, the posture of the robot arm should also be determined, but since the manipulator used this time has only three degrees of freedom, the tip posture is not considered.
Once again, define the translation vector d as shown in (10).
d = x y z = c o s θ 1 l 1 s i n θ 2 + l 2 sin θ 2 + θ 3 s i n θ 1 l 1 s i n θ 2 + l 2 sin θ 2 + θ 3 l 1 c o s θ 2 + l 2 cos θ 2 + θ 3
The following Equation holds from the x and y components of Equation (10).
y x = t a n θ 1
Therefore, θ 1 can be found as follows.
θ 1 = a t a n 2 y , x
From Equations (10)–(12), each joint is determined by the following Equation.
θ 1 θ 2 θ 3 = atan 2 y , x atan 2 ± x 2 + y 2 , z atan 2 2 l 1 l 2 sin θ 3 + β , x 2 + y 2 + z 2 + l 1 2 l 2 2 atan 2 ± 1 D 2 , D
In Equation (13), there are two solutions because the manipulator can take two postures for any given position (Figure 3). Therefore, this time, the authors treated Equation (14), which is closer to the initial attitude, as the solution.
θ 1 θ 2 θ 3 = atan 2 y , x atan 2 x 2 + y 2 , z atan 2 2 l 1 l 2 sin θ 3 + β , x 2 + y 2 + z 2 + l 1 2 l 2 2 α atan 2 1 D 2 , D β
Here, α represents the azimuthal angle from the base frame’s X -axis to the projection of the end-effector position onto the X Y plane, and is given by
α = tan 1 y x
β denotes the elevation-related offset angle obtained from the law of cosines when solving the planar geometry in the r Z plane, where r = x 2 + y 2 is the horizontal distance from the base axis. Specifically,
β = cos 1 r 2 + z 2 + L 1 2 L 2 2 2 L 1 r 2 + z 2

2.4. Verification of Control

To evaluate the control system’s performance, a circular trajectory was prescribed for the flexible manipulator using inverse kinematics. The control experiment was carried out under a proportional (P) control scheme. The results were analyzed to assess the tracking accuracy and dynamic response under realistic conditions. The experimental configuration used for this test is shown in Figure 4, which illustrates the control flow from the target trajectory input to the output response of the flexible manipulator.
The comparison between target and measured data is presented in Figure 5. From Figure 5a, it is evident that the motor output angle lags behind the reference angle computed via inverse kinematics. This delay is primarily attributed to the compliance of the harmonic drive, which introduces elastic behavior in the joint transmission.
Figure 5b further reveals that the output trajectory of the arm tip is delayed by approximately 0.3 s relative to the target trajectory. This phase lag is considered to stem from the mechanical flexibility of the links and transmissions. Specifically, the time delay is caused by the propagation of movement from the motor base through the flexible links to the tip of the manipulator. As a result, the end-effector trajectory fails to synchronize with the ideal path in real time.
In Figure 5c, additional steady-state deviation is observed: the trajectory shifts toward the negative Y-axis and the positive Z-axis. This positional offset is likely due to a combination of physical asymmetries in the hardware and the limitations of using P control alone. The absence of integral or derivative components in the controller means that steady-state errors are not actively corrected during operation.
These observations underscore two key findings:
  • Time-delay effects introduced by mechanical flexibility significantly impact tracking accuracy.
  • Steady-state offsets arise from uncompensated structural and control limitations, especially when using minimal control schemes.
This verification step confirms that the experimental setup exhibits notable dynamic lag and spatial deviation, which must be considered when training the neural network models for improved trajectory prediction and control fidelity.

2.5. Neural Network Experiment Setup

A forward model and an inverse model were constructed using the inverse kinematics output angles and the actual output trajectories obtained from the manipulator. The corresponding input and output data used for training the neural network models are illustrated in Figure 6. Specifically, Figure 6a shows the overall input–output flow of the experimental system, where the desired trajectory is first converted into joint angles via inverse kinematics, which are then applied to the flexible manipulator to generate the resulting output trajectory. This experimental configuration provided the basis for constructing both models. For the forward model, the input was the joint angles derived from inverse kinematics, and the target output was the actual end-effector trajectory, as shown in Figure 6b. In contrast, the inverse model used the actual trajectory as input and learned to predict the corresponding joint angles, as illustrated in Figure 6c. The complete dataset was randomly partitioned into training, validation, and test sets in the proportions of 70%, 15%, and 15%, respectively. The training data was used to train the neural network, while the validation data helped prevent overfitting by monitoring the mean squared error (MSE) and terminating training once a predefined number of consecutive increases in MSE occurred. The test data was reserved for a final performance evaluation after training was complete, ensuring that the models were assessed independently of the learning process.
The learning termination conditions are shown in Table 2. In addition, the increase coefficient of the weight μ in the Levenberg–Marquardt method update formula was set to 0.1, and the decrease coefficient was set to 10.

3. Results and Discussion

Neural networks were trained using datasets that included target and actual trajectories, divided into training, validation, and test subsets. Results showed that while the forward model successfully predicted output trajectories, the inverse model struggled due to a phase shift caused by system delays.

3.1. Training Performance of the Neural Network

The training results for the forward and inverse neural network models are summarized in Figure 7. To prevent overfitting, the stopping criterion for both models was set as 1000 consecutive increases in the validation error. Training concluded after 1030 iterations for the forward model and 2088 iterations for the inverse model, as outlined by the learning termination conditions.
In Figure 7a, the inverse model’s predicted joint angles are plotted against the reference angles calculated using a rigid-body inverse kinematics model. Although the predicted waveforms follow the general shape of the target signals, a clear phase lag is observed across all joints—especially in Joint 3—indicating that the model struggled to account for system delays caused by the mechanical compliance of the manipulator. This lag impacts the tracking accuracy and highlights the importance of delay-compensated training.
Figure 7b presents the forward model’s predicted end-effector trajectory over time, plotted alongside the target (training) trajectory. The two curves align closely across all three axes (X, Y, and Z), confirming that the forward model successfully learned the mapping from joint angles to spatial positions. However, small deviations appear near 0 and 5 s, likely caused by hardware-induced effects such as flexural settling, which introduced subtle inconsistencies between cycles of the circular motion.
The accuracy of the spatial mapping is further visualized in Figure 7c, where the predicted and actual 3D trajectories form nearly overlapping circular paths. This demonstrates that the forward model captures the overall dynamics and directional behavior of the manipulator with high fidelity.
To better highlight the performance gap in the inverse model, Figure 7d compares the inverse model’s joint angle predictions (red dashed lines) directly against the reference angles from inverse kinematics (blue lines) for all three joints. The figure clearly reveals phase shifts in the neural network output, particularly in Joints 1 and 3, supporting the observation that the inverse model’s accuracy was limited by unmodeled actuation delays and system lag.
While the results in Figure 7 were obtained in simulation using recorded trajectory data, Figure 8 presents experimental results from deploying the trained neural network models on the actual flexible manipulator. This implementation on a robot reveals the physical effects of compliance, unmodeled dynamics, and actuation delays not captured in the simulation.
As illustrated in Figure 8a,b, both the output angle of the inverse model and the forward model’s generated trajectory exhibited notable discrepancies from the desired inverse kinematic angles and target path. Specifically, the output trajectory deviated significantly from a perfect circular orbit, revealing residual modeling inaccuracies.
Nonetheless, consistent waveform patterns were observed: the Y-direction motion correlated strongly with the response of Joint 1, and the Z-direction motion was closely linked to Joint 3. These correlations suggest that, although the network captured key relationships between joint actuation and spatial motion, accurately modeling dynamic behavior under real conditions remains challenging.
To further illustrate the deviation in trajectory, Figure 8c presents the end-effector path in the Y-Z plane, comparing the desired circular trajectory with outputs from both the nonlinear neural network and the linear inverse kinematics model. The nonlinear model, in particular, shows notable divergence, especially in curved segments, reaffirming the complexity of precise control in nonlinear mappings.

3.2. Results of Delay Compensation Through Adjusted Training Data

To address the identified delay, training datasets were adjusted by advancing the actual output trajectory relative to the inverse kinematic angles by 0.28 s, 0.29 s, and 0.30 s. Simulation results for each case are shown in Figure 9, with the associated mean squared errors listed in Table 3.
Results showed that 0.29 s produced the lowest error and the closest visual match to the target trajectory. Therefore, 0.29 s was selected as the optimal lead for aligning training data.
Simulations using models trained on the 0.29 s adjusted data demonstrated enhanced tracking performance compared to the original unadjusted models. The inverse model output angle more closely approximated inverse kinematic results but still lacked full continuity. The forward model continued to reflect accurate directional mapping between the joints and tip motion.
To explain the residual deviation, wave propagation speeds within the manipulator links were calculated using elasticity theory:
Torsional velocity as shown in Equation (17).
v t = E ρ
Bending velocity as shown in Equation (18).
v b = E I ρ A
Estimated propagation durations for joint 1, 2, and 3 based on material and geometric properties were 0.000175 s, 0.109 s, and 0.073 s, respectively. These values confirm that delays differ per joint, suggesting that future learning datasets may benefit from per-joint temporal alignment.

3.3. Implementation Experiment and Physical Validation

An implementation experiment was conducted using the inverse model trained with 0.29 s adjusted data. Results of real-time implementation using the inverse neural network model are shown in Figure 10, and the results are plotted in Figure 11.
Figure 10 presents a comprehensive evaluation of the system’s performance using three distinct visualizations: joint angle outputs, Cartesian trajectories, and a Y-Z plane projection of the end-effector motion. In Figure 10a, the angular responses of Joints 1, 2, and 3 are shown for both the nonlinear neural network model and the conventional inverse kinematics approach. While both methods generally follow the expected profiles, the neural network demonstrates improved tracking, particularly for Joint 2 and Joint 3. It is important to note that these joint angles correspond to individual rotational joints of the manipulator and are not directly equivalent to the Cartesian X, Y, and Z axes used to describe end-effector motion. The joint angles determine spatial motion through the manipulator’s kinematics, which are nonlinear and configuration-dependent.
In Figure 10b, the end-effector’s actual position along the X, Y, and Z axes is plotted and compared with the desired trajectory. The trajectory generated by the neural network more closely matches the target path than that generated by the rigid-body inverse kinematics model, especially in the Y and Z directions. While the inverse kinematics model is based on a geometric (nonlinear) formulation that assumes ideal, rigid links and instantaneous actuation, it does not account for joint elasticity, time delays, or real actuator dynamics. In contrast, the neural network adapts to these unmodeled effects, resulting in a closer approximation of the intended trajectory.
Figure 10c displays the trajectory projected onto the Y-Z plane, providing additional insight into the path’s geometry. Although the trajectory generated by the neural network is not smooth and includes abrupt changes, it better approximates the intended circular shape and center point compared to the non-linear model. This suggests that the network effectively learned the spatial relationship between joint movement and the end-effector position. However, the lack of smooth transitions highlights the model’s inability to account for motor dynamics and mechanical constraints. To address this, future training should include real actuator data—both inputs and measured outputs—to better capture the true system behavior and ensure feasible trajectory execution.
There was also a large deviation between the trajectory of the first and second revolutions. However, compared to the inverse kinematics output trajectory, the center point and radius of the circle approximated were closer to the target trajectory. The approximated circular path parameters are shown in Table 4.
While the inverse model enabled the manipulator to follow a roughly circular trajectory, the output trajectory was not smooth. In particular, a significant deviation was observed between the first and second revolutions. However, compared to the trajectory generated using inverse kinematics, the approximated circle’s center and radius were notably closer to the target values. This improvement suggests that the neural network successfully captured the dynamic characteristics of the actual hardware, partially compensating for structural and actuation inaccuracies.
To investigate the cause of the observed discontinuities, it is important to consider the training data used. In this study, only the inverse kinematic output angles were employed during training—these angles represent ideal trajectories calculated directly from the desired end-effector path. However, in practice, the motor cannot perfectly follow abrupt angle changes due to mechanical constraints and response time limitations. As a result, the inverse model, having learned from ideal angles, produced control signals that exceeded the real-time capabilities of the hardware.
This mismatch likely caused the physical system to fall out of synchronization with the model output, leading to unsmooth and inconsistent trajectory execution. To resolve this, it is recommended that future model training incorporates both the motor input and actual output angles, enabling the network to learn realistic dynamics and generate feasible control signals.
Further analysis is presented in Figure 11 and Table 5, which reaffirm that while the trajectory shape improved relative to traditional inverse kinematics control, smoothness and consistency still require enhancement through more representative training data.
The results of this study demonstrate that neural networks—when trained with delay-compensated data—can effectively model the nonlinear and dynamic characteristics of flexible manipulators. The forward model accurately captured the relationship between joint angles and the end-effector position, while the inverse model, although less stable, achieved improved tracking performance over classical inverse kinematics approaches when trained on temporally aligned datasets.

4. Discussion

Compared to the work of Kume et al. [1], who applied a hierarchical neural network to control a 2-DOF flexible manipulator in a planar setting, our study can extend the concept to a 3-DOF system. Although the manipulator has three degrees of freedom, the evaluated trajectory in this study remains planar, constrained to a circular path in the Y-Z plane. Kume’s model achieved satisfactory angle control in a planar setting but did not address spatial trajectory tracking or system delays. By incorporating delay compensation through a time lead in the training data, we addressed this limitation and demonstrated a notable improvement in trajectory accuracy. Our implementation experiment further showed that the neural network was able to internalize system-specific nonlinearities—such as elastic delay and mechanical asymmetry—which conventional model-based controllers do not inherently handle.
In comparison, Gao et al. [10] applied neural networks to a two-link flexible manipulator using the assumed mode method and achieved effective trajectory tracking. However, their approach relied on explicit modeling of the system’s dynamics and modal frequencies, whereas our study adopts a model-free learning paradigm. This shift reduces dependency on physical system identification but highlights the sensitivity of data-driven models to training data alignment, as evidenced by the performance deterioration in our uncorrected inverse model.
Sun et al. [12] proposed a fuzzy-neural hybrid system for a single-link flexible manipulator. While they reported improvements in trajectory accuracy and vibration suppression, their system was limited to low-DOF tasks and did not explicitly address joint-specific actuation delays. In contrast, our study showed that adjusting training data on a per-joint basis (e.g., using distinct propagation delay approximations) could enhance tracking fidelity, especially for high-DOF manipulators.
Moreover, our findings resonate with Chen and Wen [13], who used recurrent neural networks (RNNs) to model forward and inverse dynamics in robotic manipulators. They noted the difficulty in ensuring stability and continuity in inverse models—a challenge we also faced. While RNNs inherently handle temporal sequences, our approach demonstrated that even feedforward architectures can be effective when data is carefully prepared to align causal relationships.
Despite these advancements, the inverse model in our implementation experiment failed to produce a smooth circular trajectory. This is attributed to the training data using only inverse kinematic angles, which represent ideal, discontinuous signals that the hardware cannot follow. The resulting control signals exceeded the actuator’s capacity, causing trajectory distortions. This observation supports the conclusion of Abe [11], who emphasized the importance of incorporating actual motor behavior into learning systems for improved real-world applicability.
To address this limitation, future research should adopt a dual-input training approach that incorporates both the commanded motor inputs and the corresponding measured output angles. This strategy would enable the model to better learn and account for the system’s dynamic behavior and physical constraints. This would allow the neural network to learn the actuator’s dynamic limits and provide more realistic outputs. Additionally, per-joint delay compensation based on physical propagation speeds could be incorporated to further improve accuracy.

5. Conclusions

This study investigated the trajectory control of a 2-link, 3-DOF flexible manipulator using neural network-based forward and inverse models. Unlike conventional rigid-body control strategies, our approach leveraged data-driven modeling to account for system nonlinearities, elastic deformations, and actuation delays.
The forward model demonstrated strong correlation between joint angles and end-effector positions, accurately reflecting the spatial dynamics of the manipulator. The inverse model, though initially limited by phase mismatch in training data, showed significant improvement when delay-compensated trajectories were introduced—particularly with a 0.29 s time lead, which minimized the mean squared error and improved trajectory tracking fidelity.
Simulation and implementation experiments validated the effectiveness of the neural-network-based control scheme. In comparison to classical inverse kinematics, the proposed method achieved a trajectory closer to the desired circular path, with an improved radius and center point estimation. However, the output trajectory remained unsmooth due to the use of idealized inverse kinematic angles in the training process, which failed to capture the actual motor dynamics.
To further enhance performance, future work should focus on incorporating both motor input and output angles into the training dataset, allowing the network to learn more realistic control strategies. Additionally, introducing joint-specific delay compensation and exploring recurrent or hybrid network architectures may help resolve the discontinuities in inverse model outputs. To improve performance, we plan to expand our dataset to include both measured joint torques and motor input commands, which will allow the network to learn actuation limitations and better approximate the physical behavior of the system.
Overall, this study highlights the potential of neural networks as a powerful alternative to model-based control in flexible manipulators, particularly in systems where mechanical compliance and nonlinear dynamics hinder traditional approaches.

Author Contributions

Conceptualization, M.S., M.T. and W.N.; methodology, M.S. and W.N.; software, J.M. and M.T.; validation, M.S., M.T., J.M. and W.N.; formal analysis, M.T. and W.N.; investigation, M.T. and J.M.; resources, M.S. and M.T.; data curation, M.T.; writing—original draft preparation, M.S. and M.T.; writing—review and editing, J.M. and W.N.; visualization, M.T. and W.N.; supervision, M.S.; project administration, M.S.; funding acquisition, M.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research supported by grants-in-aid for the promotion of regional industry-university-government collaboration from the Cabinet Office in Japan.

Data Availability Statement

All data underlying the results are available as part of the article, and no additional source data are required.

Acknowledgments

This work was partially supported by grants-in-aid for regional industry-university-government collaboration from the Cabinet Office in Japan.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Sasaki, M.; Muguro, J.; Njeri, W.; Doss, A.S.A. Adaptive Notch Filter in a Two-Link Flexible Manipulator for the Compensation of Vibration and Gravity-Induced Distortion. Vibration 2023, 6, 286–302. [Google Scholar] [CrossRef]
  2. Saito, H. Fundamentals of Industrial Vibration, 22nd ed.; Yokendou Co., Ltd.: Tokyo, Japan, 2006. [Google Scholar]
  3. Kawasaki, H. Fundamentals of Robotics, 2nd ed.; Morikita Publishing Co., Ltd.: Tokyo, Japan, 2019. [Google Scholar]
  4. Sasaki, M.; Maeno, D.; Muguro, J.; Takeda, M.; Njeri, W.; Matsushita, K. 3D vibration control of flexible manipulator using inverse system and strain feedback. In Vibration Engineering; CRC Press: Boca Raton, FL, USA, 2024; pp. 25–31. [Google Scholar]
  5. Sasaki, M.; Asai, H.; Kawafuku, M.; Hori, Y. Self-Tuning Control of a Translational Flexible Arm Using Neural Networks. In Proceedings of the 2000 IEEE International Conference on Systems, Man, and Cybernetics, Nashville, TN, USA, 8–11 October 2000; pp. 3259–3264. [Google Scholar]
  6. Sasaki, M.; Murasawa, H.; Ito, S. Control of a two-link flexible manipulator using neural networks. In Proceedings of the SPIE, ICMIT 2007 Mechatronics, MEMS, and Smart Materials, Gifu, Japan, 16–18 December 2007; Volume 6794 Part 1 of 2 Parts, pp. 679421Y-1–679421Y-6. [Google Scholar]
  7. Sasaki, M.; Asai, A.; Shimizu, T.; Ito, S. Self-Tuning Control of a Two-Link Flexible Manipulator using Neural Networks. In Proceedings of the ICCAS-SICE International Conference 2009 (CD-ROM), Fukuoka, Japan, 18–21 August 2009; Available online: https://ieeexplore.ieee.org/document/5335303 (accessed on 1 August 2023).
  8. Njeri, W.; Sasaki, M.; Matsushita, K. Gain tuning for high speed vibration control of a multilink flexible manipulator using artificial neural network. Trans. ASME J. Vib. Acoust. 2019, 141, 041011. [Google Scholar] [CrossRef]
  9. Sasaki, M.; Honda, N.; Njeri, W.; Matsushita, K. Gain tuning using neural network for Contact force control of flexible arm. J. Sustain. Res. Eng. 2020, 5, 139–149. [Google Scholar]
  10. Gao, H.; He, W.; Zhou, C.; Sun, C. Neural Network Control of a Two-Link Flexible Robotic Manipulator Using Assumed Mode Method. IEEE Trans. Ind. Inform. 2019, 15, 755–765. [Google Scholar] [CrossRef]
  11. Singhose, W.E. Command shaping for flexible systems: A review of the first 50 years. Int. J. Precis. Eng. Manuf. 2000, 1, 283–292. [Google Scholar] [CrossRef]
  12. Vaughan, J.; Yano, A.; Singhose, W. Comparison of robust input shapers. J. Sound Vib. 2008, 315, 797–815. [Google Scholar] [CrossRef]
  13. Sorensen, K.; Singhose, W.; Dickerson, S. A controller enabling precise positioning and sway reduction in bridge and gantry cranes. Control Eng. Pract. 2005, 13, 707–719. [Google Scholar] [CrossRef]
  14. Abe, A. Trajectory Planning for Flexible Cartesian Robot Manipulators Using Artificial Neural Networks. Robotica 2011, 29, 797–804. [Google Scholar] [CrossRef]
  15. Sun, C.; Gao, H.; He, W.; Yu, Y. Fuzzy Neural Network Control of a Flexible Robotic Manipulator. IEEE Trans. Neural Netw. Learn. Syst. 2018, 29, 5214–5227. [Google Scholar] [CrossRef] [PubMed]
  16. Chen, S.; Wen, J.T. Neural-Learning Trajectory Tracking Control of Flexible-Joint Robot Manipulators with Unknown Dynamics. In Proceedings of the 2020 IEEE International Conference on Robotics and Automation (ICRA), Paris, France, 31 May–31 August 2020. [Google Scholar] [CrossRef]
  17. Li, S.; Meng, L.; Fang, K.; Liu, F. Neural Network Adaptive Inverse Control of Flexible Joint Space Manipulator Considering the Influence of Gravity. Sensors 2024, 24, 6942. [Google Scholar] [CrossRef] [PubMed]
  18. Chen, X.; Zhao, H.; Zhen, S.; Liu, X.; Zhang, J. Fixed-Time Adaptive Neural Network-Based Trajectory Tracking Control for Workspace Manipulators. Actuators 2024, 13, 252. [Google Scholar] [CrossRef]
Figure 1. Setup of the flexible manipulator. (a) Actual flexible manipulator. (b) Illustration of the manipulator setup.
Figure 1. Setup of the flexible manipulator. (a) Actual flexible manipulator. (b) Illustration of the manipulator setup.
Vibration 08 00048 g001
Figure 2. Coordinate systems of flexible manipulator.
Figure 2. Coordinate systems of flexible manipulator.
Vibration 08 00048 g002
Figure 3. Solutions of inverse kinematic.
Figure 3. Solutions of inverse kinematic.
Vibration 08 00048 g003
Figure 4. Block diagram of experiment.
Figure 4. Block diagram of experiment.
Vibration 08 00048 g004
Figure 5. Verification of control scheme. (a) Angle, (b) trajectory, (c) trajectory 2D plot.
Figure 5. Verification of control scheme. (a) Angle, (b) trajectory, (c) trajectory 2D plot.
Vibration 08 00048 g005aVibration 08 00048 g005b
Figure 6. Learning data of neural network. (a) Input and output of simulation, (b) learning data of feed forward model, (c) learning data of inverse model.
Figure 6. Learning data of neural network. (a) Input and output of simulation, (b) learning data of feed forward model, (c) learning data of inverse model.
Vibration 08 00048 g006
Figure 7. Results of training neural network. (a) Outputs of inverse model, (b) outputs of feed forward model, (c) output of feed forward model, (d) comparison of inverse kinematics and neural network output (inverse model).
Figure 7. Results of training neural network. (a) Outputs of inverse model, (b) outputs of feed forward model, (c) output of feed forward model, (d) comparison of inverse kinematics and neural network output (inverse model).
Vibration 08 00048 g007aVibration 08 00048 g007b
Figure 8. Results of experiment. (a) Output angle, (b) output trajectory, (c) trajectory 3D plot.
Figure 8. Results of experiment. (a) Output angle, (b) output trajectory, (c) trajectory 3D plot.
Vibration 08 00048 g008
Figure 9. Result of simulations. (a) Advanced 0.28s trajectory, (b) advanced 0.29s trajectory, (c) advanced 0.30s trajectory.
Figure 9. Result of simulations. (a) Advanced 0.28s trajectory, (b) advanced 0.29s trajectory, (c) advanced 0.30s trajectory.
Vibration 08 00048 g009
Figure 10. Results of real-time implementation using the inverse neural network model trained with 0.29 s delay-compensated data. (a) Angular responses of Joints 1, 2, and 3 obtained from both the neural network model and inverse kinematics. (b) End-effector trajectory in Cartesian space (X, Y, Z) compared to the desired trajectory. (c) Projection of the end-effector path onto the Y–Z plane, highlighting deviations from the target circular trajectory.
Figure 10. Results of real-time implementation using the inverse neural network model trained with 0.29 s delay-compensated data. (a) Angular responses of Joints 1, 2, and 3 obtained from both the neural network model and inverse kinematics. (b) End-effector trajectory in Cartesian space (X, Y, Z) compared to the desired trajectory. (c) Projection of the end-effector path onto the Y–Z plane, highlighting deviations from the target circular trajectory.
Vibration 08 00048 g010aVibration 08 00048 g010b
Figure 11. Results of experiment.
Figure 11. Results of experiment.
Vibration 08 00048 g011
Table 1. Mechanical and electrical specifications of the flexible manipulator.
Table 1. Mechanical and electrical specifications of the flexible manipulator.
ComponentSpecification
Servo Motor 1 (Joint 1)Type: V850-012EL8; Voltage: 80 V; Current: 7.6 A; Power: 500 W; Speed: 2500 rpm; Torque: 1.96 N·m; Inertia: 0.60 × 10−3 kg·m2; Mass: 4.0 kg
Servo Motor 2 (Joint 2)Type: T511-012EL8; Voltage: 75 V; Current: 2 A; Power: 100 W; Speed: 3000 rpm; Torque: 0.34 N·m; Inertia: 0.037 × 10−3 kg·m2; Mass: 0.95 kg
Servo Motor 3 (Joint 3)Type: V404-012EL8; Voltage: 72 V; Current: 1 A; Power: 40 W; Speed: 3000 rpm; Torque: 0.13 N·m; Inertia: 0.0084 × 10−3 kg·m2; Mass: 0.4 kg
EncoderResolution: 1000 P/R; Reduction Ratio: 1/100
Harmonic Drive—Joint 1Type: CSF-40-100-2A-R-SP; Ratio: 1/100; Spring Constant: 23 N·m/rad; Inertia: 4.50 × 10−4 kg·m2
Harmonic Drive—Joint 2Type: CSF-17-100-2A-R-SP; Ratio: 1/100; Spring Constant: 1.6 × 10−4 N·m/rad; Inertia: 0.079 × 10−4 kg·m2
Harmonic Drive—Joint 3Type: CSF-14-100-2A-R-SP; Ratio: 1/100; Spring Constant: 0.71 × 10−4 N·m/rad; Inertia: 0.033 × 10−4 kg·m2
Link 1Material: Stainless Steel; Length: 0.44 m; Radius: 0.0005 m
Link 2Material: Aluminum; Length: 0.44 m; Radius: 0.004 m
Strain GaugeType: KGF-2-120-C1-23L1M2R
Table 2. Trigger of training end.
Table 2. Trigger of training end.
Epoch5000
Minimum performance gradient10 × 10−15
Maximum validation failure1000
Maximum parameter μ10 × 1060
Table 3. Mean squared errors.
Table 3. Mean squared errors.
Model TypeDatasetAdvance Time
0.28 s0.29 s0.30 s
Feed forward modelTraining data2.8921 × 10−63.0479 × 10−62.348 × 10−6
Test data9.9402 × 10−62.739 × 10−60.00010036
Validation data1.8928 × 10−65.4948 × 10−62.0567 × 10−6
Inverse modelTraining data0.00141284.3452 × 10−58.1377 × 10−5
Test data0.015540.00589880.0084634
Validation data0.0051910.00051950.0063507
Table 4. Approximated circle center and radius.
Table 4. Approximated circle center and radius.
MethodCenter (Y, Z)Radius
Neural network(−0.0016, 0.8069)0.1490
Inverse kinematics(−0.0062, 0.8247)0.1433
Desired trajectory(0.00055983, 0.8000)0.1500
Table 5. Centers and radiuses of circle.
Table 5. Centers and radiuses of circle.
Method(x, y)r
NN(−0.0016, 0.8069)0.1490
IK(−0.0062, 0.8247)0.1433
desired(0.00055983, 0.8000)0.1500
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Sasaki, M.; Takeda, M.; Muguro, J.; Njeri, W. Trajectory Control of Flexible Manipulators Using Forward and Inverse Models with Neural Networks. Vibration 2025, 8, 48. https://doi.org/10.3390/vibration8030048

AMA Style

Sasaki M, Takeda M, Muguro J, Njeri W. Trajectory Control of Flexible Manipulators Using Forward and Inverse Models with Neural Networks. Vibration. 2025; 8(3):48. https://doi.org/10.3390/vibration8030048

Chicago/Turabian Style

Sasaki, Minoru, Mizuki Takeda, Joseph Muguro, and Waweru Njeri. 2025. "Trajectory Control of Flexible Manipulators Using Forward and Inverse Models with Neural Networks" Vibration 8, no. 3: 48. https://doi.org/10.3390/vibration8030048

APA Style

Sasaki, M., Takeda, M., Muguro, J., & Njeri, W. (2025). Trajectory Control of Flexible Manipulators Using Forward and Inverse Models with Neural Networks. Vibration, 8(3), 48. https://doi.org/10.3390/vibration8030048

Article Metrics

Back to TopTop