1. Introduction
Representations and models of humans play a crucial role in the development and implementation of systems ranging from robotic motion planning [
1] to Industry 5 [
2]. Despite the growing adoption of collaborative robots (cobots), companies continue to experience workplace and industrial accidents [
3], 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 [
4]. Traditional methods relying on physical barriers or basic proximity sensors often limit flexibility and reconfigurability and hinder close interaction [
5]. Digital twin (DT) technology introduces a potential alternative by enabling a real-time virtual model of physical systems that can simulate and monitor operational states [
2,
6].
At the same time, advances in deep learning-based computer vision, particularly human pose estimation, have significantly improved human recognition and scene understanding [
7,
8]. Integrating pose estimation with a digital twin enables a more adaptive safety framework in which human motion can inform protective robot responses.
Although digital twins have been widely used for robot visualization, state monitoring, predictive maintenance, and process optimization, their use in safety-critical human–robot collaboration remains limited. In particular, monitoring-oriented systems do not necessarily address three practical problems: temporary loss or inconsistency of RGB-D human pose measurements, delayed intervention when safety decisions rely only on current separation, and the conversion of perceived risk into physically feasible robot commands. This study does not claim novelty for YOLO26s-pose estimation, Kalman filtering, digital twin modeling, or QP control individually. Instead, its contribution lies in coupling these components through a closed-loop perception–prediction–control architecture. The framework maintains bounded human arm estimates during temporary measurement loss, predicts future capsule-based human–robot clearance, and translates the resulting risk into constrained speed reduction, stopping, or collision avoidance commands synchronized between the digital twin and the physical robot. The main contributions of this work are as follows: because the perception, estimation, prediction, and control stages are tightly coupled, the experiments compare integrated configurations and do not quantify the independent contribution of every individual module.
A closed-loop DT-based safety architecture is developed that connects RGB-D human perception, short-term risk prediction, and constrained robot control, extending the DT from passive visualization and monitoring to active safety intervention.
A robust 3D human arm tracking pipeline is implemented by combining depth validity checking, eye-to-hand transformation, bounded Kalman prediction, kinematic constraints, and covariance-based safety margin adjustment. The pipeline maintains usable arm-state estimates during temporary measurement loss while preventing uncertain long-term extrapolation; its evaluation is system-level and does not isolate the Kalman filter or kinematic constraints independently.
A short-term capsule-based clearance prediction method is implemented to identify impending reductions in human–robot separation before they are fully reflected in the current-distance measurement. Its incremental effect is evaluated against a no-prediction configuration and a zero-order-hold reference; no claim of superiority over other prediction methods is made.
A QP/NEO-based controller converts current and predicted safety risk into physically feasible joint-velocity commands while enforcing obstacle avoidance, joint limit, and self-collision constraints. Same-sequence comparisons of the integrated configurations show greater tracking availability, smoother reconstructed arm motion, less stopped time, and a higher mean-operating-speed command under the tested laboratory conditions.
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 this paper and outlines future research directions.
4. Results and Discussion
This section presents a controlled proof-of-concept evaluation of the integrated framework. It describes the experimental setup, camera calibration accuracy, human–robot safety response, and reactive motion control with collision avoidance. The experiments were not designed as a comprehensive industrial deployment or multi-participant safety certification study.
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.30 GHz), 64 GB of RAM, and an NVIDIA Quadro RTX 6000 GPU (24 GB). The DT was implemented in Unity3D 2021.3.18f1, while human pose estimation used the Ultralytics YOLO26s-pose checkpoint (yolo26s-pose.pt) 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.
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 0.7°, with median values of and 0.515°, respectively. Only two poses (003 and 009) present comparatively larger deviations, reaching in translation and 1.930° 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 2. This qualitative agreement confirms the correctness of the estimated extrinsic parameters for reliable perception and collision avoidance.
4.3. Human Arm Skeleton Estimation Results
RGB-D frames were acquired at
pixels and
, while YOLO26s-pose used an input size of
, a detection threshold of 0.25, and a keypoint threshold of
. Keypoint depth was the median in a
window and was accepted within 0.25–3.50 m when its local standard deviation was below
. The constant-velocity Kalman filter used was
All six diagonal entries of the initial covariance matrix were 0.05. Δt was clipped to 0.001–0.5 s; joint speed and acceleration were limited to 2.5 m s
−1 and 8.0 m s
−2; and prediction-only tracking was limited to 1.5 s. Therefore, the Kalman output is continuous only for dropouts not exceeding 1.5 s. Longer dropouts produce the visible gaps in
Figure 3 because the stale track is invalidated and later reinitialized.
For the motion predictor in
Section 3.3.4, acceleration was smoothed with
, the decay coefficient was
, and acceleration and jerk were limited to
and
, respectively. The online horizon was
, with future candidates sampled every
. The robust clearance selection in Equations (27) and (28) used the
percentile; forecast-only risk required three consecutive frames, and the temporal smoothing weight was
.
Figure 3 summarizes the estimator response to temporary loss of hand measurements. The longest measurement-unavailable intervals were 2.54 s for the left hand and 2.17 s for the right hand; therefore, only the first 1.5 s of each interval was covered by prediction-only tracking, while the remaining portion appears as a trajectory gap. Across the complete sequence, the left and right hands were in prediction-only mode for 26.8% and 26.6% of the trial, respectively, while total estimate availability reached 96.7% and 97.5%, as shown in
Table 2. During controlled masking, the RMSE (root mean square error) relative to the withheld RGB-D/YOLO26s-pose keypoint observations was 0.292 m for the left hand and 0.167 m for the right hand.
Figure 4 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,
Figure 4 shows that the integrated framework converted predicted human–robot proximity into a continuous protective speed response in the tested sequence. The robot maintained nominal speed when sufficient separation was available, slowed in the warning region, and stopped during confirmed high-risk intervals. This result supports proof-of-concept feasibility under the controlled laboratory conditions; it does not demonstrate superiority to other forecasting methods or readiness for unrestricted industrial deployment.
Table 2 compares the direct RGB-D baseline with the integrated proposed configuration. Left-hand availability increased from 95.3% to 96.7% (1.4 percentage points), and right-hand availability increased from 87.1% to 97.5% (10.4 percentage points). The left- and right-arm acceleration RMS values decreased by 76.2% and 82.6%, respectively, while the corresponding jerk RMS values decreased by 81.1% and 85.5%. These results show greater continuity and temporal stability for the complete proposed pipeline. Because Kalman propagation, kinematic constraints, reconstruction, and stabilization operate together, the comparison does not isolate their independent contributions.
In the integrated comparison, greater trajectory continuity coincided with less conservative controller behavior. The proportion of robot stopped time decreased from 20.66% to 7.06%, while the mean robot speed command increased from 33.95% to 70.21%. These are system-level outcomes under the same tested sequence and should not be attributed quantitatively to any single estimation, prediction, or constraint module.
4.4. Controlled Occlusion Recovery Comparison and Interpretation Limits
Table 3 evaluates controlled bilateral elbow/wrist measurement loss in three selected motion speed cases. ZOH (zero-order hold) denotes a non-predictive last-valid-observation hold, whereas the proposed method uses CV-Kalman state propagation with shoulder-anchored distal-arm reconstruction. The direct no-filter pipeline produces no distal skeleton during the bilateral mask and, therefore, has an undefined reconstruction RMSE; ZOH is used as a numerical non-predictive reference.
At the nominal 1.0 s occlusion duration, the proposed pipeline reduced the RMSE from 0.128 to 0.072 m in the low-speed case, from 0.212 to 0.197 m in the medium-speed case, and from 0.353 to 0.284 m in the high-speed case. At 1.5 s, the corresponding values decreased from 0.300 to 0.105 m, from 0.283 to 0.265 m, and from 0.383 to 0.282 m. The unweighted mean RMSE decreased from 0.231 to 0.184 m for the 1.0 s mask and from 0.322 to 0.217 m for the 1.5 s mask. These controlled cases show that the implemented state propagation pipeline outperformed the static zero-order-hold reference when the arm continued to move during synthetic measurement loss. The reference was the same-sequence RGB-D/YOLO26s-pose skeleton retained before masking; thus, RMSE measures trajectory consistency rather than absolute motion capture accuracy. No alternative motion prediction algorithms were tested, so these results do not establish superiority over existing prediction methods.
The safety distance threshold and prediction horizon were selected based on measured human arm velocity and RGB-D tracking uncertainty. The evaluated hand speeds were 0.397, 0.650, and 0.904 , with an average of 0.650 . Over the selected 0.5 s prediction horizon, the corresponding hand displacements were approximately 0.199, 0.325, and 0.452 m, allowing the system to anticipate motion toward the 0.25 m warning zone.
The 0.25 m threshold was chosen as a conservative engineering margin that accounts for local depth uncertainty and human motion during system response. With a local depth consistency limit of 0.12 m, the remaining 0.13 m corresponds to approximately 0.20 s of hand motion at the average speed. The mean reconstruction RMSE increased from 0.184 m at 1.0 s to 0.217 m at 1.5 s. Therefore, the selected parameters represent a practical compromise between early intervention, prediction uncertainty, and unnecessary robot interruption.
4.5. Human–Robot Safety Response
The proposed system’s real-time human–robot distance monitoring is illustrated in
Figure 5 using both real and virtual views. In the real view in
Figure 5a, 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 5b,c. In
Figure 5b, the Unity-based digital twin displays the UR10e and the human arm using three arm keypoints.
Figure 5c shows the ROS/RViz environment, in which human–robot distance is monitored during the experiment. For this proof of concept, the safety threshold was configured as 0.25 m using the engineering rationale described in
Section 4.4. Because ROS communication and actuator response latencies were not recorded separately, the threshold should not be interpreted as a formally validated industrial safety distance. When the measured distance fell below the threshold, the nearest robot joint was marked in red, and a stop command was triggered. This experiment verifies information exchange among the physical robot, digital twin, and control system under the tested conditions.
4.6. Reactive Motion Control and Collision Avoidance
Figure 6 compares the simulated manipulator motion with execution on the physical UR10e under the implemented optimization-based controller. Each row represents a stage of the motion sequence. In simulation, the dotted red arc indicates the trajectory generated by the QP solver around the modeled obstacle. The virtual obstacle is shown as a black sphere, whereas the physical experiment uses a blue cube with an equivalent collision volume in the optimization model. The paired images provide qualitative evidence that the planned avoidance behavior was reproduced by the physical robot in this controlled trial.
Across the illustrated stages, the controller modified the joint velocities as the end-effector approached the modeled obstacle and then redirected the motion toward the task goal after the obstacle was bypassed. The qualitative agreement between simulation and physical execution supports the feasibility of the optimization formulation for the tested trajectory. However, this single controlled sequence does not establish reliability, real-time deployment readiness, or safety performance in unstructured industrial environments.
4.7. Integrated Configuration Comparison and Computational Latency Evaluation
To quantify the incremental computational cost of short-term motion forecasting, the online perception–prediction pipeline was evaluated with forecasting disabled and enabled while all other stages were retained. This is a two-configuration forecasting comparison, not a full module-by-module ablation. The QP/NEO trajectory was generated offline before the collision avoidance algorithm was activated; its computation time was, therefore, outside the online perception–prediction cycle.
Table 4 reports the online per-stage times measured on the workstation in
Section 4.1 and lists the offline QP/NEO trajectory generation time separately.
The online subtotal was 11.17 ms without forecasting and 24.55 ms with forecasting. The 13.38 ms increase was dominated by clearance evaluation and short-term motion prediction, whose mean processing time increased from 1.30 to 14.64 ms. These online computational subtotals correspond to nominal update rates of approximately 89.5 Hz and 40.7 Hz, respectively. Although the 24.55 ms subtotal with forecasting is below the 33.33 ms period of a 30 Hz camera stream, complete end-to-end operation at 30 Hz cannot be established without measuring ROS communication, robot command reception, and actuator response latency. The separately measured QP/NEO value of 85.10 ± 28.13 ms represents offline trajectory generation performed before the collision avoidance algorithm was activated and is, therefore, not included in either online subtotal.
The existing results, nevertheless, provide quantitative evidence for estimation smoothness and robustness under occlusion and rapid human motion. As shown in
Table 2, the proposed method reduced the left- and right-arm acceleration RMS from 19.00 and 27.66 m·s
−2 to 4.53 and 4.82 m·s
−2, respectively, and reduced the corresponding jerk RMS from 948.9 and 1509.1 m·s
−3 to 179.7 and 218.3 m·s
−3. These indicators describe the temporal smoothness of the reconstructed human arm trajectory, rather than the physical end-effector trajectory. Furthermore,
Table 3 evaluates controlled 1.0 s and 1.5 s bilateral arm occlusions at hand speeds of 0.397, 0.650, and 0.904 m·s
−1. Therefore, the current evidence supports the robustness of the perception and prediction pipeline to temporary occlusion and increasing human motion speed, but it should not be interpreted as a task-level robot success rate evaluation.
The present experiments did not separately record ROS communication, robot command reception, or actuator response latency. Accordingly, the online values in
Table 4 are computational subtotals rather than complete sensor-to-actuator latency. The reported QP/NEO time is an offline trajectory generation measurement and does not represent an online controller delay. Moreover, the available dataset does not provide independent measurements of end-effector positioning accuracy, physical end-effector trajectory smoothness, task completion time, task-level success rate, or performance under varying illumination. These quantities cannot be reconstructed reliably from the available data and require dedicated experiments.
The tight coupling among Kalman filtering, kinematic constraints, short-term prediction, clearance evaluation, and control also prevents the present comparisons from quantifying each module’s independent contribution. The forecasting experiment isolates only the difference between enabled and disabled forecasting, and no alternative prediction algorithms were evaluated. Therefore, all performance claims are restricted to the compared integrated configurations. Finally, the experiments were conducted in a controlled, primarily single-participant laboratory setting and should be interpreted as feasibility validation rather than comprehensive industrial safety validation.
5. Conclusions and Future Work
This study presented a digital twin-based framework that integrates RGB-D pose estimation, Kalman-based 3D arm tracking, short-term motion prediction, predicted-clearance evaluation, and an offline-generated QP/NEO trajectory. Under controlled laboratory conditions, the integrated framework maintained hand trajectories during temporary measurement loss, anticipated reductions in human–robot separation, and triggered graded speed reduction or stopping. The online computational subtotal was 24.55 ms with forecasting and 11.17 ms without forecasting, excluding offline QP/NEO trajectory generation, ROS communication, robot command reception, and actuator response; these values are not complete sensor-to-actuator latencies. Because the compared stages are tightly coupled, the results do not quantify the independent contributions of Kalman filtering, kinematic constraints, prediction, or control. The prediction results are limited to no-prediction and zero-order-hold references and do not demonstrate superiority over other prediction methods. Accordingly, this study establishes proof-of-concept feasibility rather than industrial deployment readiness. Future work will evaluate alternative predictors and conduct factorial module ablations where technically feasible. It will also use independent motion capture and robot controller measurements to assess end-effector accuracy, physical trajectory smoothness, task completion time, task-level success rate, and complete end-to-end latency in more complex industrial environments with multiple participants, dynamic occlusion, varying illumination, and rapid human motion.