Submitted:
08 July 2026
Posted:
09 July 2026
You are already at the latest version
Abstract
Safe human-robot collaboration continues to present a critical challenge in manufacturing. Traditional safety approaches, such as cages and proximity sensors, are often insufficient for dynamic human interaction. This paper presents a digital twin-based collision avoidance framework for industrial collaborative robot manipulation. The system integrates RGB-D sensing, YOLO-based human pose estimation, Kalman-filter-based 3D arm tracking, short-term motion prediction, and QP-based reactive motion control. Human arm keypoints detected from RGB-D images are reconstructed in 3D, transformed into the robot base frame, and continuously tracked under temporary occlusion using Kalman filtering with kinematic constraints. Predicted human–robot clearance is then evaluated to determine safety responses, including speed reduction, robot stopping, or collision-free joint-velocity generation. The framework is implemented using a UR10e robot, an Intel RealSense D435 camera, Unity3D digital twin, and ROS communication. Experimental results show that the proposed system can track human arm motion, predict proximity risk, and trigger protective robot responses, demonstrating its feasibility for real-time collision avoidance in collaborative robotic workspaces.
Keywords:
digital twin
; deep learning
; computer vision
; collision avoidance
; industrial robot
1. Introduction
Representations and models of humans play a crucial role in the development and implementation of systems ranging from robotic motion planning (Schulman et al. 2014) to Industry 5.0 (Xia et al. 2025). Despite the growing adoption of collaborative robots (cobots), companies continue to experience workplace and industrial accidents (Jung and Yang 2025), highlighting the need for improved safety mechanisms.
The ever-increasing integration of robots into manufacturing has accelerated the demand for reliable human-robot interaction safety systems (Liu et al. 2025). Traditional methods relying on physical barriers or basic proximity sensors often limit flexibility and reconfigurability, and hinder close interaction (Villani et al. 2018). Digital twin (DT) technology introduces a potential alternative by enabling a real-time virtual model of physical systems which can simulate and monitor operational states (Grieves and Vickers 2017; Xia et al. 2025).
At the same time, advances in deep learning-based computer vision technology, particularly in human pose estimation, have significantly improved human recognition and scene understanding (Cao et al. 2017; Cheng et al. 2024). Combining this technology enables a more adaptive safety framework in which a DT can interpret human movements and trigger safety responses to avoid collisions.
Although prior work has increasingly adopted DTs in robotics for predictive maintenance, process optimization, and remote monitoring, the integration of deep learning-based perception into DTs for safety-critical decision-making remains limited, especially for industrial collaborative robot arms. This work focuses on developing and validating a DT system that can recognize human poses and ensure safe human-robot interaction. The system continuously monitors the distance between detected human keypoints and robot arm joints and responds when a human approaches within a predefined safety threshold. The main contributions of the work are as follows:
- A digital twin-based human–robot safety framework is developed by synchronizing a UR10e collaborative robot, Unity3D virtual environment, ROS communication, and RGB-D human pose perception for real-time collaborative workspace monitoring.
- A 3D human arm reconstruction and tracking method is proposed by combining YOLO-based pose detection, RealSense depth information, eye-to-hand calibration, Kalman filtering, and kinematic arm constraints to maintain continuous arm-state estimation under temporary occlusion and noisy measurements.
- A predictive human–robot clearance evaluation method is introduced to estimate future collision risk between human arm capsules and robot body capsules, allowing the robot to respond before unsafe contact occurs.
- A QP/NEO-based reactive motion control strategy is implemented to modify robot motion, reduce speed, stop operation, or generate collision-free joint velocities while maintaining task execution and respecting joint-limit constraints.
The remainder of this paper is organized as follows. Section 2 reviews related studies on human pose estimation, digital twins, and collision avoidance in human–robot collaboration. Section 3 describes the proposed system architecture, eye-to-hand calibration, human arm skeleton estimation, short-term motion prediction, clearance computation, and reactive motion control algorithm. Section 4 presents the experimental setup and discusses the calibration accuracy, Kalman-based occlusion recovery, predictive safety response, digital twin visualization, and real-robot collision avoidance results. Section 5 concludes the paper and outlines future research directions.
2. Related Work
This section highlights prior studies on human pose estimation and digital twin technologies in human-robot collaboration.
2.1. Human Pose Estimation
Several work have studied collision avoidance methods for autonomous and robotic systems using learning-based approaches. Studies (Lee et al. 2025) and (Yoon and Lee 2026) focus on predicting and reacting to possible collisions in environments, while (Heo et al. 2019) and (Tao et al. 2025) use deep learning and reinforcement learning to improve safety for robots working with humans or navigating through complex spaces. However, these studies mainly focus on sensing, motion planning, and control, and do not yet consider DT frameworks or pose estimation techniques.
Pose estimation using convolutional neural networks, such as OpenPose (Cao et al. 2017) and MediaPipe (Lugaresi et al. 2019), provides an effective means of capturing human body keypoints. These models have been applied to gesture recognition (Cao et al. 2017), but few studies have integrated them with robotic DTs for real-time safety intervention (Xia et al. 2025).
2.2. Digital Twin in Human-Robot Collaboration
Human-robot collaboration has traditionally depended on mechanical safety measures and limited perception systems. Early frameworks relied on fixed safety zones and light curtains (Lasota et al. 2017), which restricted task adaptability. With the emergence of collaborative robots (cobots), vision-based systems have gained importance in ensuring dynamic safety (Ajoudani et al. 2018).
(Liao et al. 2025) presented an improved moving target tracking algorithm based on the YOLO model for detection. Experimental results showed that the algorithm achieved high multi-target tracking accuracy and stability in complex industrial environments, providing a valuable reference for future research. However, the study did not include the presence or involvement of humans in the research framework.
(Lian et al. 2026) proposed a digital twin-based security monitoring method for production lines by integrating physical and virtual models with twin data—which refers to the synchronized bidirectional information flow between the physical production line and its digital representation, including sensor measurements, actuator states, and process variables—and a service platform to enable real-time monitoring. However, the presence or involvement of humans in the research framework was limited.
In summary, DTs have increasingly been adopted in industrial robotics for predictive maintenance, process optimization, and remote monitoring (Kritzinger et al. 2018; Feng et al. 2025; Xia et al. 2025). However, integrating deep learning-based perception into DTs for safety-critical decision-making remains limited (Liu et al. 2025). The proposed approach contributes to the effort to address this gap by coupling a DT model of a robot arm with live human pose estimation for collision prevention.
3. Methods
This section presents the system overview, the eye-to-hand calibration method for aligning the camera and robot frames, and the optimization algorithm used for reactive motion control of the manipulator.
3.1. System Overview
The proposed system follows an integrated perception–prediction–control workflow for real-time human–robot collision avoidance, as shown in Figure 1. First, RGB-D sensing acquires color and depth frames to monitor the shared human–robot workspace. A YOLOv26 pose model then estimates 2D human arm keypoints and infers the hand position. These keypoints are reconstructed into 3D coordinates using depth information and transformed into the robot base frame. To improve robustness against noisy observations and temporary occlusion, Kalman filtering and kinematic constraints are applied to estimate continuous human arm states. The filtered arm states are further used for short-term motion forecasting to predict future human–robot distances. Current and predicted distances between the human arm and robot links are continuously assessed. Based on this assessment, the safety decision and reactive motion control module adjusts the robot motion by reducing joint velocity, enforcing obstacle avoidance, joint limits, and self-collision constraints. Finally, the physical robot and digital twin are synchronized through ROS, allowing the safety response and robot state to be updated in both the real and virtual environments.
3.2. Eye-to-Hand Calibration
The eye-to-hand calibration process establishes the rigid spatial transformation between a fixed vision sensor (camera) and the robot’s coordinate system. This relationship enables the robot to interpret visual information in its own reference frame, a prerequisite for vision-guided manipulation and autonomous perception tasks. Unlike eye-in-hand setups—where the camera moves with the manipulator—eye-to-hand calibration involves a static camera observing the robot workspace.
The transformation between the robot base and the camera coordinate system is defined as a homogeneous transformation matrix:
where denotes the rotation matrix, and represents the translation vector. Given multiple robot poses and corresponding observations of a calibration target, the calibration problem can be expressed as:
where:
- is the transformation from the robot base to the end-effector for pose , obtained from the robot’s kinematic model.
- is the transformation from the calibration target to the camera coordinate system for the same pose, computed from image-based pose estimation.
The objective is to estimate , which represents the camera’s pose relative to the robot base. The equation is typically solved using least-squares optimization over multiple observations to minimize both rotational and translational errors.
The calibration experiment was conducted using a fixed RGB camera positioned to observe the robot’s entire workspace. A checkerboard target of known geometry was mounted on the robot end-effector. The robot was commanded to move to multiple poses (15 in total), covering a broad range of orientations and positions within the camera’s field of view. For each pose, the following data were recorded:
- The end-effector pose with respect to the robot base frame, obtained from the robot controller.
- The target pose with respect to the camera, estimated from the detected checkerboard corners.
The calibration data pairs were processed using the Tsai–Lenz algorithm (Tsai 1987) to determine the transformation matrix between the robot base and the camera coordinate system. This algorithm separately estimates the rotational and translational components of the transformation and then combines them into a single homogeneous transformation matrix:
where and denote the rotation and translation components, respectively. To improve robustness, outlier poses were removed based on the reprojection error threshold computed from the camera observations.
To evaluate the calibration accuracy, the estimated transformation matrix was used to project known 3D target points from the robot base frame into the image plane. The reprojection error between the observed and projected points was computed as:
where and are the observed and projected pixel coordinates, respectively. A smaller reprojection error indicates better alignment between the robot and camera coordinate systems, reflecting higher calibration accuracy.
3.3. Human Arm Skeleton Estimation
3.3.1. RGB-D-Based Human Arm Recontruction
Let denote the left and right arms, and let denote the shoulder, elbow, wrist, and hand respectively. At frame , YOLOv26 pose detection gives a 2D keypoint measurement
where and are pixel coordinates and is the keypoint confidence.
The aligned depth image provides the depth value . To suppress local depth noise, is computed as the median valid depth in a local window around the keypoint.
here, , , , and are the intrinsic parameters of the RealSense D435 camera.
The 3D point is transformed from the camera coordinate system to the robot base coordinate system as
3.3.2. Kalman-Filter-Based 3D Arm State Estimation
Each 3D joint is tracked independently using a constant-velocity Kalman filter. The state vector is defined as
The first three components represent joint position, and the last three components represent joint velocity. The predicted state and covariance are computed as
where is the covariance matrix and is the process-noise covariance matrix. The state transition matrix is
where is the identify matrix and and is the zero matrix.
If a valid 3D measurement is available, the measurement vector is
The Kalman gain is computed as
where is the measurement matrix and is the measurement-noise covariance matrix. The state and covariance are updated as
A measurement is considered invalid if the keypoint confidence is below a threshold, the depth value is missing, or the depth measurement is physically inconsistent. If the measurement is invalid, the update step is skipped and the predicted state is retained:
This mechanism provides a continuous estimate of the human arm skeleton during temporary occlusion. Since uncertainty increases during prediction-only updates, the estimated covariance can also be used to enlarge the effective safety margin around the corresponding arm segment.
3.3.3. Recovery of Occluded Joints Using Kinematic Constraints
To ensure physically plausible arm configurations, kinematic constraints are imposed after Kalman filtering. The upper-arm and forearm lengths are assumed to remain approximately constant over short intervals:
As the YOLOv26 pose model does not provide a dedicated hand keypoint, the hand position is inferred from the direction of the forearm.
These constraints reduce unrealistic skeleton deformation and improve the robustness of distance evaluation when the elbow, wrist, or hand is partially occluded.
3.3.4. Short-Term Future Arm-Pose Prediction
The short-term motion predictor uses the filtered position, filtered velocity, and a damped acceleration term. The raw acceleration estimate is obtained from the velocity difference:
The acceleration is smoothed as
In implementation, additional speed, acceleration, and jerk limits are applied to suppress unstable RGB-D noise
For the prediction horizon , the predicted joint position is
where is the acceleration-decay coefficient and
This damping term reduces the influence of transient acceleration estimates at longer horizons while preserving short-term responsiveness. Because the pose model does not provide a dedicated hand keypoint, the future hand position is inferred from the predicted forearm direction:
3.3.5. Predicted Clearance
The predicted human–robot clearance is the minimum surface distance between all predicted human arm capsules and robot capsules:
In the implementation, the controller evaluates a discrete set of future horizons and selects a robust low-clearance candidate:
where denotes the selected low quantile of the predicted clearance candidates. Forecast-only risk is confirmed over multiple frames and low-pass filtered before it is sent to the speed controller.
3.4. Optimisation Algorithm for Reactive Motion Control Manipulator
This work employs a Novel Expeditious Optimisation (NEO) algorithm to achieve reactive motion control for robotic manipulators (Haviland and Corke 2020). The motion control problem is expressed as a real-time Quadratic Program (QP) that balances goal tracking, obstacle avoidance, and kinematic performance. The cost function penalizes joint velocities to minimize control effort while incorporating a manipulability term derived from the gradient of Yoshikawa’s measure to maintain dexterous configurations. Obstacle and joint-limit avoidance are formulated as inequality constraints using velocity dampers, which dynamically restrict joint motion as the manipulator approaches obstacles or mechanical limits. This formulation ensures that each computed joint velocity vector achieves a feasible, collision-free, and well-conditioned motion toward the target pose.
where
- is the end-effector spatial velocity, defined as a vector containing the linear velocities and angular velocities:
- is the manipulator Jacobian matrix.
- is the joint velocity vector.
3.4.1. Basic Quadratic Program (Resolved-Rate Motion Control
The goal of the optimization is to find the set of joint velocities that satisfies the task while being “minimum-norm.” The objective function used is typically a quadratic form that penalizes large joint velocities:
This objective function minimizes the kinetic energy, or simply the Euclidean norm of the joint velocity vector. Here, is an identity or weighting matrix. If is the identity matrix, the solution is the mathematically simplest (smallest vector length). If is a diagonal matrix of weights, it allows you to prioritize minimizing the velocity of certain joints. By minimizing this quantity, the robot uses the least amount of joint movement/effort to achieve the desired end-effector motion, often resulting in smoother, more energy-efficient control. This finds the minimum-norm joint velocities that achieve the desired end-effector velocity.
Translational Manipulability Measure (), often referred to as the Yoshikawa Manipulability Index applied only to translation.
The Manipulability-Augmented Quadratic Program is a control strategy used primarily for redundant robotic manipulators. It extends the basic Resolved-Rate QP to ensure that the robot not only executes its primary movement task but also maintains or improves its kinematic dexterity, specifically by maximizing its manipulability.
where
- is the velocity regularization gain.
- is the manipulability Jacobian.
In collision avoidance schemes for robotics (and human-robot interaction), this unit vector is used to define the direction of a repulsive velocity or force field that pushes the arm away from the obstacle.
where
- : The vector pointing from the obstacle point to the robot point .
- : The scalar distance calculated previously, .
- Division by : Normalizes the vector, resulting in a unit vector with a length of exactly 1.
The distance is often used to scale the magnitude of this force (e.g., the closer the arm is, the stronger the repulsive force becomes)
where
- : The position vector of the obstacle point in 3D space.
- : The position vector of a specific point on the robot.
- : The vector pointing from the robot point to the obstacle point .
- : The Euclidean norm (or length) of the vector.
3.4.2. Optimisation Algorithm for Reactive Motion Control Manipulator Equations
This subsection presents the reactive motion control of the manipulator using an optimisation problem with constraints. The goal is to find control inputs that require minimal effort while satisfying motion requirements, physical limits, and joint bounds to produce safe and stable movements.
Where
The resulting optimal command is
where is applied to the robot at each control cycle.
This algorithm implements real-time whole-body motion control using QP. The pseudocode for the optimization algorithm for reactive motion control of the manipulator is presented below Table 1.
4. Results and Discussion
This section presents the experimental evaluation of the proposed system. It describes the experimental setup, camera calibration accuracy, human-robot safety response, and reactive motion control with collision avoidance.
4.1. Experimental Setup
The physical setup includes a UR10e 6-DOF robotic manipulator, an Intel RealSense D435 depth camera, and a workstation equipped with an Intel Xeon Gold 6234 CPU (3.30GHz), 64 GB of RAM, and an NVIDIA Quadro RTX 6000 GPU (24GB). The DT was implemented in Unity3D 2021.3.18f1, while pose estimation ran on YOLOv8l-pose with Python 3.10. The robot arm control and data exchange were managed through ROS Melodic.
4.2. Camera Calibration Accuracy
Accurate camera calibration is a fundamental requirement for vision-based collision avoidance in robotic systems, as it directly affects the precision of environment perception and the consistency between visual and robot coordinate frames. Inaccurate calibration can lead to misalignment between perceived obstacles and the robot model, resulting in unsafe motion planning and potential collisions. Therefore, a reliable and repeatable camera calibration procedure is essential to ensure safe robot operation. In this work, a structured camera calibration process is employed in an eye-to-hand configuration to support robust collision avoidance. The proposed calibration pipeline consists of four main stages: workspace setup, data collection, hand-eye calibration, and validation, as illustrated in Figure 2.
The workspace is configured in an eye-to-hand arrangement to ensure stable and repeatable camera observations for collision avoidance. A planar chessboard calibration target with 13 × 8 squares and a square size of 20 mm is rigidly attached to the end-effector of the UR10e robot. An Intel RealSense D435 depth camera is rigidly mounted in the environment with a fixed pose and operates at a resolution of 1280 × 720 pixels, ensuring consistent image acquisition throughout the calibration process. The camera intrinsic parameters are obtained from factory calibration and remain fixed during the extrinsic calibration procedure.
During the data collection stage, the robot is commanded to move the calibration target through a set of predefined poses within the camera field of view. For each pose, two types of data are synchronously recorded: (1) the robot pose, represented by the transformation from the robot base frame to the tool frame, obtained from the robot kinematic model, and (2) the transformation from the camera frame to the chessboard frame, estimated from the detected chessboard corners in the captured images. This paired dataset forms the basis for the hand-eye calibration.
This distribution is designed to adequately excite all rotational degrees of freedom and reduce degeneracy in the calibration solution.
In addition to the calibration dataset, a separate validation dataset consisting of 10 images is collected using randomly selected robot poses that are not included in the calibration process. This independent dataset is used exclusively to evaluate the accuracy and generalization performance of the estimated camera extrinsic parameters after calibration is completed.
To evaluate the calibration accuracy, per-image translation and rotation errors were computed using an independent validation dataset. The use of a separate dataset provides a more unbiased and reliable assessment of calibration consistency.
According to the validation results, the majority of translation errors remain below , while most rotation errors are within , with median values of and , respectively. Only two poses (003 and 009) present comparatively larger deviations, reaching in translation and in rotation, which can be attributed to less favorable viewing geometry or increased noise in corner detection. Overall, the small magnitude and limited dispersion of the observed errors demonstrate that the calibrated extrinsic parameters provide adequate accuracy and generalization capability for reliable human–robot distance estimation within the proposed safety framework.
The estimated extrinsic parameters are further validated by visualizing the calibrated camera pose in RViz and comparing it with the real-world robot and camera setup. Using the computed transformation, the camera frame is rendered in the robot coordinate system and shows good alignment with the physical camera placement, as illustrated in Figure 3. This qualitative agreement confirms the correctness of the estimated extrinsic parameters for reliable perception and collision avoidance.
4.3. Human Arm Skeleton Estimation
Figure 4 evaluates the robustness of the Kalman-based hand-pose estimator during temporary measurement loss. The upper row shows the filtered 3D hand positions along the , , and axes for the left and right hands, while the shaded gray intervals indicate periods in which direct RGB-D measurements were unavailable. The lower row reports the corresponding state uncertainty in meters during these prediction-only intervals.
The results show that the Kalman estimator maintains continuous hand-position trajectories even when direct measurements are intermittently missing. Instead of producing discontinuous or undefined hand poses, the filter propagates the previous state using the motion model and provides a smooth estimate until valid measurements are recovered. This behavior is particularly important for real-time human–robot safety monitoring, where temporary keypoint or depth loss should not immediately remove the human arm from the safety model.
The left and right hands spent approximately and of the trial, respectively, in prediction-only tracking. The longest continuous prediction-only intervals were for the left hand and for the right hand. Despite these dropouts, the filtered hand availability remained high, reaching for the left hand and for the right hand. During controlled occlusion intervals, the filtered estimate achieved RMSE values of for the left hand and for the right hand.
, , and axes for both hands. The lower row shows the corresponding Kalman state uncertainty.
Figure 5 illustrates the time-resolved safety response of the proposed human–robot separation monitoring framework. The upper panel reports the current hand–robot clearance and the predicted clearance over the short-term motion horizon, while the lower panel shows the corresponding protective robot speed command. The shaded regions define the operational safety bands: collision/overlap at zero clearance, the stop zone below , the reduced-speed zone between and, and the nominal-speed region above .
The predicted clearance generally follows the current clearance trend while anticipating several impending reductions in separation. When the predicted trajectory enters the reduced-speed or stop zone, the controller decreases the commanded robot speed before or during the corresponding close-proximity event. Across the trial, the minimum current clearance reached approximately , while the minimum predicted clearance reached , indicating that the forecasting module produced a more conservative estimate of the closest approach. The system spent approximately of the trial in the warning-or-danger region and in the stop region, while the robot was commanded to stop for approximately of the trial. The mean commanded robot speed was approximately , showing that the controller did not simply stop the robot continuously, but modulated the trajectory speed according to the estimated separation risk.
Several intervals show overlap between the current and predicted clearance curves. This occurs when the forecasted future clearance is not confirmed as more hazardous than the current state, or when the current clearance remains the limiting safety condition. In these cases, the stabilized prediction output intentionally follows the current clearance to avoid spurious forecast-induced oscillations. Therefore, the overlap should be interpreted as a conservative stabilization behavior rather than a failure of the prediction module.
Overall, the figure demonstrates that the proposed framework converts predicted human–robot proximity into a continuous protective speed response. The robot maintains nominal speed when sufficient separation is available, slows down in the warning region, and stops only during confirmed high-risk intervals. This behavior supports the suitability of the approach for real-time proximity-aware trajectory modulation in collaborative robotic workspaces.
4.4. Human-Robot Safety Response
The proposed system’s real-time human-robot distance monitoring is illustrated in Fig. using both real and virtual views. In the real view Figure 6a, the UR10e robot is moving along a planned path when a human arm enters the robot’s workspace and blocks part of its motion. The system detects keypoints of the human arm using a vision-based pose estimation method, and these keypoints are displayed on the real image. The keypoints are tracked continuously and converted into the robot’s coordinate system using the calibrated camera-robot relationship. The three-dimensional positions of the human arm joints are then used to measure the distance between the human and the robot, allowing the system to stay aware of the human’s position while the robot arm is operating.
The synchronized virtual views of the human-robot interaction are shown in Figure 6b,c. In Figure 6b, the Unity-based DT displays the UR10e robot and the human arm using three keypoints of the arm. This visualization makes it easy to see the position of the human arm relative to the robot. Figure 6c shows the scenario in the ROS-RVIZ environment, where the distance between the robot and the human arm is monitored in real time. In this proof of concept, the safety threshold is configured to 20 cm, which provides a conservative margin that accounts for both the robot’s maximum velocity during collaborative operation and the system’s computational latency (including pose detection, coordinate transformation, and communication delays). This threshold value balances safety assurance with operational flexibility, allowing for close human-robot collaboration while maintaining adequate reaction time. When the distance between the human arm keypoints and the robot joints becomes smaller than the safety threshold, the affected robot joint is marked in red to show a dangerous situation. In this example, the last joint of the UR10e is the closest to the human arm, so a stop command is triggered to avoid a possible collision. This experiment shows that the safety information is consistently shared between the real robot, the DT, and the control system.
4.5. Reactive Motion Control and Collision Avoidance
Figure 7 presents a detailed comparison between the simulated motion of the manipulator and its execution on the real UR robotic arm under the proposed reactive optimization-based controller. Each row corresponds to a different stage in the motion sequence, progressing from the initial configuration (top left) to the final posture (top right). In the simulation views, the dotted red arc indicates the safe trajectory computed by the QP solver to navigate around the obstacle while maintaining the desired task motion. To facilitate visual distinction, the obstacle representation differs between virtual and physical environments: in the simulation environment, the obstacle is rendered as a black sphere to clearly indicate the avoidance zone in the virtual workspace, whereas in the physical experimental setup, a blue cube is employed as the tangible obstacle. Despite this geometric difference in representation, both objects are modeled with equivalent collision volumes in the optimization framework, ensuring consistent avoidance behavior across simulation and real-world execution. The corresponding real-robot images on the right demonstrate that the physical system replicates the simulated trajectory with high fidelity, validating both the kinematic modeling and the effectiveness of the optimization formulation. The robot consistently maintains clearance from the obstacle and executes smooth, continuous motions that match the solver outputs, highlighting the controller’s robustness.
Across all stages of motion, the controller successfully balances obstacle avoidance, task tracking, and joint-limit constraints in real time. As the end-effector approaches the obstacle, the inequality constraints embedded in the QP formulation gradually modify the joint velocities to steer the robot along a curved, collision-free path. This reactive behavior ensures that even as the environment changes or unexpected disturbances occur, the system remains safe and compliant. After bypassing the obstacle, the controller smoothly reorients the motion toward the task goal, demonstrating its ability to transition seamlessly between constraint-dominated and task-dominated regions of the workspace. The close alignment between simulation and real-world performance confirms that the proposed optimization scheme is practical, reliable, and deployable for real-time applications requiring safe and intelligent motion generation.
5. Conclusions and Future Work
This paper presented a digital twin-based collision avoidance framework for industrial collaborative robot manipulation. The system integrates RGB-D sensing, deep learning-based human pose estimation, eye-to-hand calibration, Kalman-filter-based 3D arm tracking, short-term motion prediction, predicted human–robot clearance evaluation, and QP/NEO-based reactive motion control. By transforming human arm keypoints into the robot base frame, the physical robot and digital twin share a consistent representation of the collaborative workspace.
Experimental results showed that the proposed framework can reconstruct and track human arm motion, maintain continuous tracking during temporary measurement loss, predict human–robot proximity, and convert collision risk into protective speed reduction or robot stopping. The reactive controller also generated smooth collision-free motion while considering task tracking, obstacle avoidance, manipulability, and joint-limit constraints. The consistency between Unity simulation and real UR10e execution confirms the feasibility of transferring the proposed method from the digital twin to the physical robot.
Overall, the proposed approach provides an adaptive solution for real-time human–robot safety monitoring compared with conventional fixed-zone safety methods. Future work will focus on multi-person and full-body tracking, quantitative evaluation of latency and prediction accuracy, adaptive safety thresholds, and validation in more realistic industrial tasks.
Author Contributions
Conceptualization, T.K. Nguyen and C.C. Tran; methodology, T.K. Nguyen, T.T. Pham, and C.C. Tran; software, , T.K. Nguyen and C.C. Tran; validation, , T.K. Nguyen and C.C. Tran; formal analysis, , T.K. Nguyen and C.C. Tran; investigation, , T.K. Nguyen and C.C. Tran; resources, , T.K. Nguyen and C.C. Tran; data curation, , T.K. Nguyen and C.C. Tran; writing—original draft preparation, T.T. Pham; writing—review and editing, , T.K. Nguyen and C.C. Tran; visualization, , T.K. Nguyen and C.C. Tran; supervision, , T.K. Nguyen and C.C. Tran; project administration, , T.K. Nguyen; funding acquisition, T.K. Nguyen. All authors have read and agreed to the published version of the manuscript.
Funding
This research is funded by the Vietnam Ministry of Education and Training under grant number B2024-VGU-03.
Data Availability Statement
All data generated or analyzed during this study are included in this published article.
Acknowledgments
During the preparation of this work, the authors used ChatGPT and Gemini to improve the language, flow, and grammar of the manuscript. After using these tools, the authors reviewed and edited the content as necessary and take full responsibility for the final content of the publication. Additionally, the authors confirm that all figures, images, and graphical abstracts were created manually without the use of generative AI tools.
Conflicts of Interest
The authors declare no conflicts of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| DT | Digital Twin |
| DoF | Degree of Freedom |
| QP | Quadratic Program |
| ROS | Robotics Operation System |
References
- Ajoudani, A.; Zanchettin, A. M.; Ivaldi, S.; Albu-Schäffer, A.; Kosuge, K.; Khatib, O. Progress and Prospects of the Human–Robot Collaboration. Autonomous Robots 2018, 42(5), 957–75. [Google Scholar] [CrossRef]
- Cao, Z.; Simon, T.; Wei, S.; Sheikh, Y. Realtime Multi-Person 2D Pose Estimation Using Part Affinity Fields. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR); 2017; pp. 7291–99. [Google Scholar] [CrossRef]
- Cheng, Y.; Wang, H.; Bao, Y.; Lu, F. Appearance-Based Gaze Estimation with Deep Learning: A Review and Benchmark. IEEE Transactions on Pattern Analysis and Machine Intelligence 2024, 46(12), 7509–28. [Google Scholar] [CrossRef] [PubMed]
- Feng, B.; Wang, Z.; Yuan, L.; Zhou, Q.; Chen, Y.; Bi, Y. Towards Safe Motion Planning for Industrial Human-Robot Interaction: A Co-Evolution Approach Based on Human Digital Twin and Mixed Reality. Robotics and Computer-Integrated Manufacturing 2025, 95, 103012. [Google Scholar] [CrossRef]
- Grieves, M.; Vickers, J. Digital Twin: Mitigating Unpredictable, Undesirable Emergent Behavior in Complex Systems. In Transdisciplinary Perspectives on Complex Systems; Kahlen, J., Flumerfelt, S., Alves, A., Eds.; Springer, 2017. [Google Scholar]
- Haviland, Jesse; Corke, Peter. NEO: A Novel Expeditious Optimisation Algorithm for Reactive Motion Control of Manipulators. IEEE Robotics and Automation Letters 2020, 5(2), 2142–49. [Google Scholar]
- Heo, Young Jin; Kim, Dayeon; Lee, Woongyong; Kim, Hyoungkyun; Park, Jonghoon; Chung, Wan Kyun. Collision Detection for Industrial Collaborative Robots: A Deep Learning Approach. IEEE Robotics and Automation Letters 2019, 4(2), 740–46. [Google Scholar] [CrossRef]
- Jung, K.; Yang, J.-S. Mitigating Safety Challenges in Human-Robot Collaboration: The Role of Human Competence. Technological Forecasting and Social Change 2025, 213, 124022. [Google Scholar] [CrossRef]
- Kritzinger, W.; Karner, M.; Traar, G.; Henjes, J.; Sihn, W. Digital Twin in Manufacturing: A Categorical Literature Review and Classification. IFAC-PapersOnLine 2018, 51(11), 1016–22. [Google Scholar] [CrossRef]
- Lasota, P. A.; Fong, T.; Shah, J. A. A Survey of Methods for Safe Human–Robot Interaction. Foundations and Trends in Robotics 2017, 5(4), 261–349. [Google Scholar] [CrossRef]
- Lee, Joonho; Kim, Yunho; Kim, Seokjoon; Nguyen, Quan; Heo, Youngjin. Learning Fast, Tool-Aware Collision Avoidance for Collaborative Robots. IEEE Robotics and Automation Letters 2025, 10(8), 7731–38. [Google Scholar] [CrossRef]
- Lian, Mengjia; Li, Lanqing; Wang, Shiyu; Wang, Chunxiao; Li, Mingshi. Design and Research of IIoT Intelligent Automatic Production Line Security Monitoring System Based on Digital Twin. International Journal of Computer Applications in Technology 2026, 78(1), 13–24. [Google Scholar] [CrossRef]
- Liao, Z.; Xu, Z.; Xu, X.; Ismail, A. Mean-Shift-Based Moving Target Tracking Algorithm in Complex Industrial Environments. International Journal of Computer Applications in Technology 2025. [Google Scholar] [CrossRef]
- Liu, Sichao; Liu, Zhihao; Qin, Qiang; Wang, Xi Vincent; Wang, Lihui. Multimodal Human-Robot Collaboration: Advancements and Future Directions. International Journal of Manufacturing Research 2025, 20(5), 1–47. [Google Scholar] [CrossRef]
- Lugaresi, C.; et al. MediaPipe: A Framework for Building Perception Pipelines. arXiv 2019, arXiv:1906.08172. [Google Scholar] [CrossRef]
- Schulman, J.; Duan, Y.; Ho, J.; et al. Motion Planning with Sequential Convex Optimization and Convex Collision Checking. The International Journal of Robotics Research 2014, 33(9), 1251–70. [Google Scholar] [CrossRef]
- Tao, Yuting; Li, Mingyang; Cao, Xiao; Lu, Peng. Mobile Robot Collision Avoidance Based on Deep Reinforcement Learning with Motion Constraints. IEEE Transactions on Intelligent Vehicles 2025, 10(3), 2163–73. [Google Scholar] [CrossRef]
- Tsai, Roger Y. A Versatile Camera Calibration Technique for High-Accuracy 3D Machine Vision Metrology Using Off-the-Shelf TV Cameras and Lenses. IEEE Journal of Robotics and Automation 1987, RA-3(4), 323–44. [Google Scholar] [CrossRef]
- Villani, V.; Pini, F.; Leali, F.; Secchi, C. Survey on Human–Robot Collaboration in Industrial Settings: Safety, Intuitive Interfaces and Applications. Mechatronics 2018, 55, 248–66. [Google Scholar] [CrossRef]
- Xia, G.; Ghrairi, Z.; Wuest, T.; et al. Towards Human Modeling for Human-Robot Collaboration and Digital Twins in Industrial Environments: Research Status, Prospects, and Challenges. Robotics and Computer-Integrated Manufacturing 2025, 95, 103043. [Google Scholar] [CrossRef]
- Yoon, Jusouk; Lee, Zoonky. Collision Detection and Body-Part Classification in Collaborative Robots Using a Multi-Task Deep Learning Model with Hybrid Time-Series Augmentation. IEEE Access 2026, 14, 9758–77. [Google Scholar] [CrossRef]
Figure 1.
Overall workflow of the proposed digital twin-based predictive collision avoidance framework.
Figure 1.
Overall workflow of the proposed digital twin-based predictive collision avoidance framework.

Figure 2.
Overview of the camera calibration process.

Figure 3.
Comparison between the real-world setup and the estimated camera pose after extrinsic calibration. (a) Real-world camera and robot setup; (b) Estimated camera pose visualized in Rviz.
Figure 3.
Comparison between the real-world setup and the estimated camera pose after extrinsic calibration. (a) Real-world camera and robot setup; (b) Estimated camera pose visualized in Rviz.

Figure 4.
Kalman-based occlusion recovery for 3D hand tracking. The upper row shows the filtered hand positions along the
Figure 4.
Kalman-based occlusion recovery for 3D hand tracking. The upper row shows the filtered hand positions along the

Figure 5.
Predictive human–robot clearance and protective speed response. The upper panel shows the current and predicted hand–robot clearance with safety regions, while the lower panel reports the resulting robot speed command.
Figure 5.
Predictive human–robot clearance and protective speed response. The upper panel shows the current and predicted hand–robot clearance with safety regions, while the lower panel reports the resulting robot speed command.

Figure 6.
Real and virtual views of keypoint detection, proximity monitoring, and robot stop at the safety threshold. (a) real scene; (b) Unity environment;(c) ROS-RVIZ.
Figure 6.
Real and virtual views of keypoint detection, proximity monitoring, and robot stop at the safety threshold. (a) real scene; (b) Unity environment;(c) ROS-RVIZ.

Figure 7.
Comparison between simulation (left) and real robot execution (right) during reactive motion control. The optimization-based controller computes collision-free joint velocities that follow the desired task trajectory (red dotted curve) while avoiding the obstacle. Orange arrows indicate the progression of time from the initial state (top left) to the final state (top right).
Figure 7.
Comparison between simulation (left) and real robot execution (right) during reactive motion control. The optimization-based controller computes collision-free joint velocities that follow the desired task trajectory (red dotted curve) while avoiding the obstacle. Orange arrows indicate the progression of time from the initial state (top left) to the final state (top right).

Table 1.
QP-based reactive motion control for collision avoidance.
| Line | Procedure |
| 1 | Input:. |
| 2 | Output:. |
| 3 | while robot operation is active do |
| 4 | . |
| 5 | . |
| 6 | . |
| 7 | . |
| 8 | . |
| 9 | . |
| 10 | , . |
| 11 | . |
| 12 | . |
| 13 | . |
| 14 | to the robot controller. |
| 15 | Advance to the next control cycle. |
| 16 | end while |
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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.