基于深度神经网络逆动力学补偿与在线自适应的机械臂高精度轨迹跟踪控制
High-Precision Trajectory Tracking Control of Robotic Manipulators Based on Inverse Dynamics Compensation with Online Adaptation of Deep Neural Network
摘要: 机械臂动力学模型中的摩擦、负载变化等不确定因素是制约其轨迹跟踪精度的核心瓶颈。针对该问题,本文提出一种“离线深度学习逆动力学前馈补偿 + 在线递推最小二乘(RLS)末层自适应”的复合控制框架。首先,通过多正弦持续激励轨迹在闭环条件下采集约15.6万组状态–力矩样本,训练多层感知机(MLP)逆动力学模型;随后,将学习得到的前馈力矩与低增益PD反馈复合,构成NN-FF控制器;进一步利用RLS在线更新网络末层权重,形成对负载突变具有自适应能力的ANN-FF控制器。在二自由度机械臂高保真数值仿真平台上的系统实验表明:学习模型的力矩预测均方根误差为0.087 ± 0.004 N·m,较名义刚体模型(1.00 N·m)降低约91%~92% (R² > 0.998);在六种测试轨迹上,NN-FF的平均任务空间跟踪RMSE为0.49 mm,较PID (14.86 mm)与计算力矩法(7.85 mm)分别提升约30.5倍与16.1倍;面对1.0 kg负载突变,ANN-FF在约3~4 s内完成末层权重的主要重新整定,稳态误差降至1.01 mm,较冻结模型(5.49 mm)降低约82%。ANN-FF单步摊销计算耗时约160 μs,满足1 kHz实时控制要求。研究结果为数据驱动的机械臂高精度控制提供了一条兼顾精度、鲁棒性与实时性的可行途径。
Abstract: Uncertainties such as friction and payload variation in the dynamic model of a robotic manipulator are the core bottleneck limiting its trajectory-tracking accuracy. To address this problem, this paper proposes a composite control framework combining “offline deep-learning inverse-dynamics feedforward compensation + online recursive least-squares (RLS) output-layer adaptation”. First, approximately 156,000 state-torque sample pairs were collected under closed-loop conditions using multi-sine persistently exciting trajectories, and a multilayer perceptron (MLP) inverse-dynamics model was trained on these data. The learned feedforward torque was then combined with a low-gain PD feedback loop to form the NN-FF controller. RLS was further employed to update the network’s output-layer weights online, yielding an ANN-FF controller capable of adapting to sudden payload changes. Systematic experiments on a high-fidelity numerical simulation platform of a 2-DOF manipulator show that the learned model achieves a torque-prediction RMSE of 0.087 ± 0.004 N·m, a reduction of approximately 91%~92% relative to the nominal rigid-body model (1.00 N·m), with R² > 0.998. Across six test trajectories, NN-FF achieves a mean task-space tracking RMSE of 0.49 mm, representing improvements of approximately 30.5-fold and 16.1-fold over PID (14.86 mm) and computed-torque control (7.85 mm), respectively. Under a sudden 1.0 kg payload change, ANN-FF completes the main readjustment of its output-layer weights within approximately 3~4 s, with the steady-state error settling at 1.01 mm—a reduction of about 82% compared with the frozen model (5.49 mm). The amortized per-step computation time of ANN-FF is approximately 160 μs, satisfying the requirements of 1 kHz real-time control. These results provide a feasible pathway for data-driven high-precision manipulator control that balances accuracy, robustness, and real-time performance.
文章引用:刘世达, 邵音子, 姚智晔, 高月文. 基于深度神经网络逆动力学补偿与在线自适应的机械臂高精度轨迹跟踪控制[J]. 人工智能与机器人研究, 2026, 15(5): 1335-1346. https://doi.org/10.12677/airr.2026.155121

参考文献

[1] 张成浩, 杨圣慧, 夏川迪, 等. 双臂葡萄采摘机器人手眼布局与底盘步进优化[J/OL]. 智慧农业(中英文): 1-11.
https://link.cnki.net/urlid/10.1681.S.20260828.1539.002, 2026-08-31.
[2] 李涛, 范筝, 施绍武, 等. 基于机械手臂技术对有源医疗器械检测方法的应用[J]. 计量与测试技术, 2026, 52(8): 169-173.
[3] 张航, 郑正鼎, 高全杰, 等. 面向砌筑机器人机械臂路径规划的改进Q-RRT*算法[J]. 工程设计学报, 2026, 33(4): 491-500.
[4] 李森, 库祥臣, 朱二州, 等. 应用混合迭代法的机器人动力学参数辨识[J]. 现代制造工程, 2026(7): 33-40+85.
[5] 刘妮, 张永林, 吴梦宇. 水下机械臂双边遥操作力反馈-位置反馈混合控制研究[J]. 计算机应用与软件, 2025, 42(8): 132-138.
[6] Slotine, J.E. and Weiping Li, (1987) On the Adaptive Control of Robot Manipulators. The International Journal of Robotics Research, 6, 49-59.
https://doi.org/10.1177/027836498700600303
[7] Nguyen-Tuong, D. and Peters, J. (2011) Model Learning for Robot Control: A Survey. Cognitive Processing, 12, 319-340.
https://doi.org/10.1007/s10339-011-0404-1
[8] Lewis, F.L., Yesildirek, A. and Kai Liu, (1996) Multilayer Neural-Net Robot Controller with Guaranteed Tracking Performance. IEEE Transactions on Neural Networks, 7, 388-399.
https://doi.org/10.1109/72.485674
[9] Hornik, K., Stinchcombe, M. and White, H. (1989) Multilayer Feedforward Networks Are Universal Approximators. Neural Networks, 2, 359-366.
https://doi.org/10.1016/0893-6080(89)90020-8
[10] Peng, X.B., Andrychowicz, M., Zaremba, W. and Abbeel, P. (2018) Sim-to-Real Transfer of Robotic Control with Dynamics Randomization. 2018 IEEE International Conference on Robotics and Automation (ICRA), Brisbane, 21-25 May 2018, 3803-3810.
https://doi.org/10.1109/icra.2018.8460528
[11] 张相胜, 陈佳明. 一种改进的机器人动力学参数辨识方法[J]. 江苏大学学报(自然科学版), 2025, 46(1): 50-56.
[12] 孙鹏, 葛梦虎, 芮超, 等. 混联双足机械腿的动力学建模与参数辨识[J]. 机械工程学报, 2026, 62(5): 192-203.
[13] 张涛, 何家豪, 施永平, 等. 基于改进Stribeck摩擦的协作机器人动力学参数辨识[J]. 机械工程学报, 2026, 62(5): 151-167.
[14] Simpkins, A. (2012) System Identification: Theory for the User, 2nd Edition (Ljung, L.; 1999) [On the Shelf]. IEEE Robotics & Automation Magazine, 19, 95-96.
https://doi.org/10.1109/mra.2012.2192817
[15] Lutter, M., Ritter, C. and Peters, J. (2019) Deep Lagrangian Networks: Using Physics as Model Prior for Deep Learning. arXiv: 1907.04490.
[16] Kingma, D.P. and Ba, J. (2014) Adam: A method for Stochastic Optimization. arXiv: 1412.6980.