Data-Driven Dynamics for Safer Human-Cobot Collaboration

Collaborative robots, or cobots, are reshaping industries by working alongside humans, but their intricate dynamics demand smarter control methods to maintain both accuracy and safety. A pioneering study by Diego Navarro-Cabrera and colleagues addresses this hurdle, introducing a novel methodology to create data-driven dynamic models for cobots that enhance motion control in human-robot interactions (HRI). Published in Robotics and Autonomous Systems in 2025, their work uses multi-objective optimization to calibrate controllers, producing a high-quality dataset that surpasses conventional approaches and sets the foundation for more adaptable cobot operations in shared workspaces.
Developing and Validating the Data-Driven Approach
The researchers’ primary innovation lies in a systematic method to develop a dataset that captures the motion behavior of a cobot, specifically the KUKA LBR iiwa robot arm with 7 degrees of freedom. Standard control methods, which depend on fixed analytical models, falter with cobots due to safety features like elastic components and low-torque motors that create complex movement patterns. To address this, Navarro-Cabrera et al. propose a data-driven solution, using supervised learning to map the relationship between a cobot’s joint positions, velocities, and the torques required to achieve target movements. The process begins with a proportional-derivative (PD) controller, chosen for its straightforward design and accuracy under specific conditions. The team adjusts these controllers for various benchmark trajectories—paths the cobot must follow—using multi-objective evolutionary algorithms (MOEAs) such as NSGA-II, SPEA2, and HypE. These algorithms balance two objectives: maximizing motion accuracy (measured by the mean Euclidean distance between the cobot’s end-effector and the target path) and guaranteeing safety by minimizing torque values to prevent abrupt, hazardous movements. The outcome is a dataset that logs the cobot’s motion states and corresponding torque commands, collected through a 4-layer architecture. Integrated via ROS2, this setup separates real-time control (system, control, and sensor/actuator layers operating at 250 Hz) from asynchronous analysis (analytic layer), enabling scalable data collection across multiple cobots if needed.
Testing was conducted on the KUKA LBR iiwa, a cobot built for human-robot collaboration, using a Gazebo simulator to maintain consistent results. The team selected benchmark trajectories—spiral, rectilinear, and random paths—to span a broad spectrum of movements within a defined workspace (X: [-0.1, 0.1], Y: [0.45, 0.65], Z: [0.3, 0.5]). These paths were crafted to test the cobot with varying speeds and acceleration gradients, capturing a range of motion behaviors essential for training a versatile machine learning (ML) controller. The MOEAs were refined to optimize PD controller parameters, with NSGA-II and SPEA2 proving most effective after comparisons with HypE and a random search baseline. A population size of 60 individuals and a distribution index of 10 were selected for optimal convergence, as larger populations (e.g., 80) yielded diminishing returns, while smaller ones (e.g., 40) converged prematurely. The Hypervolume Indicator (HV) evaluated the quality of the Pareto fronts—sets of trade-off solutions balancing accuracy and safety. Slower trajectories (e.g., 1500 time steps, or 6 seconds) were easier to track, producing higher HV values due to simpler motion patterns, while faster ones (e.g., 900 time steps, or 3.6 seconds) introduced nonlinear effects that increased control complexity.
A notable insight was the advantage of adjusted PD controllers over generic ones. Generic controllers, calibrated across all trajectories simultaneously, achieved an average HV of 0.599 to 0.835, reflecting inconsistent performance. In contrast, trajectory-specific controllers exceeded their generic counterparts, with HV values ranging from 0.646 to 0.847—a marked improvement, particularly in balancing accuracy and torque. This emphasizes the value of tailored calibration to gather reliable data for ML models, as generic controllers struggled to adapt to varied motion profiles. To select the best controller from each Pareto front, the researchers used a knee-based approach, calculating the perpendicular distance from each non-dominated solution to a line connecting the front’s extremes, ensuring the dataset included the most balanced motion data.
The dataset was then used to train a bidirectional recurrent neural network (BRNN) to learn the cobot’s inverse dynamic model, predicting torque commands based on position and velocity inputs. The BRNN was integrated into a feedforward control loop, paired with a PD watchdog controller to handle minor deviations. Two BRNN models were trained: one using data from adjusted controllers, and another using data from generic controllers. The adjusted model achieved an R² value of 0.94 on the test set, significantly surpassing the generic model’s R² of 0.87, highlighting the importance of reliable data. In a hybrid control loop, the BRNN model trained with adjusted data outperformed even the tailored PD controllers, reducing mean average error by up to 15% for the same torque levels across trajectories like Spiral 1 and Random 2. The feedforward BRNN contributed over 80% of the torque control action (measured by Torque Time Integral), with the PD watchdog providing minimal adjustments, maintaining both accuracy and safety in HRI scenarios.
Looking Ahead
While the methodology performed well in simulation, applying it to physical cobots presents obstacles, as simulated motion patterns often differ from actual systems, meaning PD parameters calibrated in simulation may not translate directly to hardware; the researchers suggest adjusting controllers on real cobots, focusing on rapid convergence to reduce joint wear and tear, and incorporating real-time safety checks during the MOEA calibration process to constrain randomization and prioritize human and robot safety, as some intermediate PD configurations could lead to unsafe motions. The approach could be adapted for other collaborative tasks, such as assembly lines or medical robotics, where accurate, low-torque movements are essential, and applying it to various cobot models and trajectories could broaden its applicability.
The global collaborative robot market, projected to reach $11 billion by 2030 according to MarketsandMarkets, highlights the potential for data-driven control solutions to enhance safety and performance, encouraging adoption in industries requiring human-robot collaboration. This study ushers in a new phase of collaborative robotics, where cobots can operate with exceptional accuracy and safety in shared environments. For those inspired to explore data-driven robotics, start by joining the Robotics and Automation Slack community to connect with experts, or experiment with open-source tools like ROS2 to simulate cobot dynamics; a diagram comparing the torque contributions of feedforward and feedback controllers could further highlight the streamlined performance of this approach, bringing its potential to the forefront.
Citation
Navarro-Cabrera, D., García-Guzmán, J. H., Cruz, N. C., Valencia-Vidal, B., Luque, N. R., & Ros, E. (2025). From data extraction to data-driven dynamic modeling for cobots: A method using multi-objective optimization. Robotics and Autonomous Systems, 105006. https://doi.org/10.1016/j.robot.2025.105006
