Prediction and Optimization of Motion Trajectory of Hybrid Mechanism Based on Transformer
Main Article Content
Abstract
To address error accumulation from multi-variable features and complex dynamic coupling in the motion trajectory prediction of hybrid mechanisms, this paper applies a Transformer-based prediction framework. The framework integrates a spatiotemporal attention mechanism and kinematic constraints to obtain precise and physically feasible predictions of component movement. Such trajectory modeling is also meaningful for advanced electromagnetic engineering, including antenna-positioning mechanisms, microwave inspection platforms, and robotic systems used in electromagnetic measurement. The method uses a Transformer core with a hierarchical spatiotemporal attention module to model time dependency and spatial coupling among joint angles, velocities, and torques, while refining multimodal dynamic behavior. A Dynamic Graph Convolutional Network captures the influence of topological changes on motion-transfer paths and reflects configuration-dependent joint interactions. By constructing a kinematic constraint loss function based on the Lagrangian equation, the model embeds dynamic priors and improves physical consistency. Experimental results show that the method achieves an RMSE of 1.42 mm and an MAE of 1.06 mm on the standard test set, reducing these errors by 63.3% and 64.1% compared with a traditional LSTM model. In a six-degreeof-freedom mechanism, the median prediction error of critical Joint 1 is controlled at 1.42 mm, supporting accurate motion prediction for constrained serial-reachable hybrid topologies.
Downloads
Article Details

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).
References
X. Fu, D. Zhang, N. Xu, S. Ren, Y. Chu, D. Xiong, et al., “Adaptive Kinematic and Stiffness Control of a Hybrid-Driven Soft Robot for Enhanced Interactions under External Loads,” Results in Engineering, vol. 28, pp. 107955-107965, 2025, doi: 10.1016/j.rineng.2025.107955.
A. T. Mathew, D. Feliu-Talegon, A. Alkayas, F. Boyer, and F. Renda, “Reduced order modeling of hybrid soft-rigid robots using global, local, and state-dependent strain parameterization,” The International Journal of Robotics Research, vol. 44, no. 1, pp. 129-154, 2025, doi: 10.1177/02783649241262333.
E. Uhlmann, M. N. Fielers, T. Pache, and O. Senyüz, “Stiffness Enhancement by Means of Situational Coupling of Two Collaborative Robots,” Journal of Manufacturing and Materials Processing, vol. 10, no. 2, pp. 54-63, 2026, doi: 10.3390/jmmp10020054.
Y. Yang, Z. Chen, C. Guang, Y. Zheng, and C. Lin, “Design and kinematics analysis of a serial-parallel hybrid mechanism used for intraocular surgeries,” Journal of Mechanical Engineering, vol. 58, no. 3, pp. 36-44, 2022, doi: 10.3901/JME.2022.03.036.
F. H. Chen, L. P. Zou, and L. Q. Zou, “Research on humanoid robot motion generation and real-time trajectory optimization based on sparse attention mechanism in deep reinforcement learning,” Discover Artificial Intelligence, vol. 5, no. 1, pp. 324, 2025, doi: 10.1007/s44163-025-00603-3.
J. Lee and B. K. Cho, “Development of a DDP-based trajectory generation method considering the manipulability measure for 6-DOF collaborative robots,” Journal of Computational Design and Engineering, vol. 12, no. 3, pp. 98-114, 2025, doi: 10.1093/jcde/qwae110.
X. B. Chen, H. J. Zhang, H. Yu, J. Liang, and H. Wang, “VNAGT: Variational non-autoregressive graph transformer network for multi-agent trajectory prediction,” IEEE Transactions on Vehicular Technology, vol. 72, no. 10, pp. 12540-12552, 2023, doi: 10.1109/TVT.2023.3273230.
B. Mei, Xie Fg, X. J. Liu, Z. H. Xie, and H. C. Zhao, “A mobile hybrid robot and its accuracy issue in machining of large-scale structures,” IEEE/ASME Transactions on Mechatronics, vol. 29, no. 1, pp. 347-357, 2023, doi: 10.1109/TMECH.2023.3277459.
G. G. Cui, B. Li, W. Tian, W. H. Liao, and W. Zhao, “Dynamic modeling and vibration prediction of an industrial robot in manufacturing,” Applied Mathematical Modelling, vol. 105, pp. 114-136, 2022, doi: 10.1016/j.apm.2021.12.031.
L. H. Li, X. H. Wang, D. F. Yang, Y. F. Ju, Z. G. Zhang, and J. Lian, “Real-time heterogeneous road-agents trajectory prediction using hierarchical convolutional networks and multi-task learning,” IEEE Transactions on Intelligent Vehicles, vol. 9, no. 2, pp. 4055-4069, 2023, doi: 10.1109/TIV.2023.3275164.
H. Y. Chen, P. H. Huang, and L. C. Fu, “Social crowd navigation of a mobile robot based on human trajectory prediction and hybrid sensing,” Autonomous Robots, vol. 47, no. 4, pp. 339-351, 2023, doi: 10.1007/s10514-023-10103-x.
A. Ahmadi, A. K. Eigoli, and A. Taghvaeipour, “Adaptive backstepping controller based on a novel framework for dynamic solution of an ankle rehabilitation spherical parallel robot,” Robotica, vol. 42, no. 5, pp. 1568-1596, 2024, doi: 10.1017/S0263574724000390.
J. K. Yan, L. Jin, Z. T. Yuan, and Z. Y. Liu, “RNN for receding horizon control of redundant robot manipulators,” IEEE Transactions on Industrial Electronics, vol. 69, no. 2, pp. 1608-1619, 2021, doi: 10.1109/TIE.2021.3062257.
T. M. N. U. Akhund, Z. A. Shaikh, I. D. L. T. Diez, M. Gafar, D. H. Ajabani, and O. Alfarraj, “IoST-enabled robotic arm control and abnormality prediction using minimal flex sensors and gaussian mixture models,” IEEE Access, vol. 12, pp. 45265-45278, 2024, doi: 10.1109/ACCESS.2024.3380360.
C. C. Wang and Y. Q. Zhu, “Identification and Machine Learning Prediction of Nonlinear Behavior in a Robotic Arm System,” Symmetry, vol. 13, no. 8, pp. 1445, 2021, doi: 10.3390/sym13081445.
W. Bielajewa, M. Tindall, and P. Nithiarasu, “Comparative study of Transformer-and LSTM-based machine learning methods for transient thermal field reconstruction,” Computational Thermal Sciences: An International Journal, vol. 16, no. 3, pp. 89-111, 2024, doi: 10.1615/ComputThermalScien.2023049936.
F. C. Yin, Q. Z. Ji, and C. Z. Wang, “Research on machining error prediction and compensation technology for a stone-carving robotic manipulator,” The International Journal of Advanced Manufacturing Technology, vol. 115, pp. 1683-1700, 2021, doi: 10.1007/s00170-021-07230-z.
D. Bruder, D. Bombara, and R. J. Wood, “A Koopman-based residual modeling approach for the control of a soft robot arm,” The International journal of robotics research, vol. 44, no. 3, pp. 388-406, 2025, doi: 10.1177/02783649241272114.
J. Z. Ding and C. J. Wang, “Accuracy analysis and error compensation for Tricept machine tool under load,” Journal of Mechanical Science and Technology, vol. 35, pp. 3591-3600, 2021, doi: 10.1007/s12206-021-0730-x.
S. Y. Peng, Z. H. Cheng, L. X. Che, S. Cui, and Z. J. Jin, “Configuration design and dimensional synthesis of an asymmetry 2R1T parallel mechanism,” Robotica, vol. 41, no. 2, pp. 713-734, 2023, doi: 10.1017/S0263574722001540.
Y. P. Gong and J. B. Lou, “Natural frequency prediction of the 3-RPS parallel manipulator using the substructure synthesis technology,” Robotica, vol. 41, no. 9, pp. 2850-2860, 2023, doi: 10.1017/S0263574723000723.
A. Antonov, “Parallel–serial robotic manipulators: a review of architectures, applications, and methods of design and analysis,” Machines, vol. 12, no. 11, pp. 811-884, 2024, doi: 10.3390/machines12110811.
G. Singh and V. K. Banga, “Combinations of novel hybrid optimization algorithms-based trajectory planning analysis for an industrial robotic manipulators,” Journal of Field Robotics, vol. 39, no. 5, pp. 650-674, 2022, doi: 10.1002/rob.22069.
C. Garriz and R. Domingo, “Trajectory optimization in terms of energy and performance of an industrial robot in the manufacturing industry,” Sensors, vol. 22, no. 19, pp. 7538, 2022, doi: 10.3390/s22197538.
A. Rout, D. Bbvl, B. B. Biswal, and G. B. Mahanta, “Optimal trajectory planning of industrial robot for improving positional accuracy,” Industrial Robot: the International Journal of Robotics Research and Application, vol. 48, no. 1, pp. 71-83, 2021, doi: 10.1108/IR-07-2019-0148.
G. Singh and V. K. Banga, “Kinematics and trajectory planning analysis based on hybrid optimization algorithms for an industrial robotic manipulators,” Soft Computing, vol. 26, no. 21, pp. 11339-11372, 2022, doi: 10.1007/s00500-022-07423-y.
M. G. Tamizi, M. Yaghoubi, and H. Najjaran, “A review of recent trend in motion planning of industrial robots,” International Journal of Intelligent Robotics and Applications, vol. 7, no. 2, pp. 253-274, 2023, doi: 10.1007/s41315-023-00274-2.
Y. M. Li, Z. D. Wang, H. Yang, H. Zhang, and Y. K. Wei, “Energy-optimal planning of robot trajectory based on dynamics,” Arabian Journal for Science and Engineering, vol. 48, no. 3, pp. 3523-3536, 2023, doi: 10.1007/s13369-022-07185-7.
F. Kordi, S. Mobayen, H. Rezaalikhani, and J. Nikoukar, “Hybrid trajectory tracking control of wheeled mobile robots using predictive kinematic control and dynamic robust control,” Asian Journal of Control, vol. 27, no. 3, pp. 1203-1223, 2025, doi: 10.1002/asjc.3503.
R. Xu, J. Li, S. Y. Zhang, L. Li, H. L. Li, G. Y. Ren, et al., “Interactive trajectory prediction for autonomous driving based on Transformer,” Mechanical Sciences, vol. 16, no. 1, pp. 87-97, 2025, doi: 10.5194/ms-16-87-2025.
P. Jiang, Z. X. Wang, X. B. Li, X. V. Wang, B. D. Yang, and J. J. Zheng, “Energy consumption prediction and optimization of industrial robots based on LSTM,” Journal of Manufacturing Systems, vol. 70, pp. 137-148, 2023, doi: 10.1016/j.jmsy.2023.07.009.
F. Wang, Z. J. Wu, and T. T. Bao, “Time-jerk optimal trajectory planning of industrial robots based on a hybrid WOA-GA algorithm,” Processes, vol. 10, no. 5, pp. 1014-1030, 2022, doi: 10.3390/pr10051014.
Y. J. Jiao, M. Z. Miao, Z. S. Yin, C. Y. Lei, X. Zhu, and X. B. Zhao, “A hierarchical hybrid learning framework for multi-agent trajectory prediction,” IEEE Transactions on Intelligent Transportation Systems, vol. 25, no. 8, pp. 10344-10354, 2024, doi: 10.1109/TITS.2024.3357479.
W. H. Zhao, W. Wang, and Z. L. Wan, “Vehicle trajectory prediction based on spatio-temporal Transformer feature fusion,” Journal on Communication/Tongxin Xuebao, vol. 45, no. 11, pp. 267, 2024, doi: 10.11959/j.issn.1000-436x.2024192.
Y. L. Liu, J. L. Chen, Y. H. Chang, S. L. He, and Z. T. Zhou, “A novel integration framework for degradation-state prediction via transformer model with autonomous optimizing mechanism,” Journal of Manufacturing Systems, vol. 64, pp. 288-302, 2022, doi: 10.1016/j.jmsy.2022.07.004.
J. Q. Zhou, Z. Wang, J. X. Liu, X. L. Luo, and M. Y. Chen, “Modeling and Evaluation of Attention Mechanism Neural Network Based on Industrial Time Series Data,” Processes, vol. 13, no. 1, pp. 184-205, 2025, doi: 10.3390/pr13010184.