Certified Self-Training for Markerless Kinematic Error Correction in Surgical Robots

Surgical robots such as the da Vinci report where their instruments are from motor encoders. Those reports are wrong by clinically meaningful amounts, because the cables that drive the joints stretch, stick and lag. The standard fix is to watch the tool with a camera. In practice that still means attaching markers to the tool, running a slow optimizer offline, or training a detector on hand-labeled images. We propose a lightweight network that runs at video rate and predicts the robot's current pose error from two inputs: its own joint readings and the stereo endoscope images. It is trained on unlabeled surgical video. Its training labels come from a slow, accurate optimizer, and each label is kept only if it passes checks built from the robot's own mechanical geometry. The main check uses the fact that every instrument shaft must pass through a fixed pivot point in the patient's body wall.

The key observation is that the kinematic error is low-dimensional and changes slowly compared with the video frame rate. A fast network therefore only has to predict a small correction, and a correction that is wrong across a window of frames can be detected through geometry alone. This turns the robot's mechanical constraints into a supervision signal. Prior work used those constraints only as a loss term inside a one-off calibration.

Core Claim

Cross-modal fusion has a circularity problem in this setting. Methods that lift image features onto 3D points look up the image at the pixel where each 3D point projects. PointFusion concatenates CNN features at those pixels, and CoFF adds image-patch "fingerprints" around 3D superpoints. That projection is exact only when the camera-to-robot transform is correct. In markerless surgical tracking, that transform is precisely the unknown quantity. Points projected through drifting kinematics land on tissue instead of the tool.

We claim the loop can be broken in two steps. First, sample image features over a window whose size follows the current pose uncertainty, rather than at a single projected pixel. Second, train the fusion network only on pseudo-labels that pass articulated geometric certificates, meaning checks that a physically valid pose must satisfy and that can be computed without ground truth. The resulting network should match offline markerless calibration on per-frame tool-tip accuracy while running at 30 fps or faster and tracking drift that a single static calibration cannot capture.

Concretely, following the lumped-error model of Stable Tracking-in-the-Loop Control of Cable-Driven Surgical Manipulators under Erroneous Kinematic Chains, we write the tool pose in the camera frame as

$$T^{c}_t = \Delta_t \, \hat{T} \, f(q_t),$$

where $q_t$ is the joint reading at time $t$, $f$ is forward kinematics, $\hat{T}$ is a nominal camera-to-base transform, and $\Delta_t$ is a rigid correction. $\Delta_t$ absorbs both calibration error and the joint errors that happen outside the camera's view. The network predicts $\Delta_t$ from the joint history and the stereo features. The pivot certificate for a window of $W$ frames is the residual

$$r_{\mathrm{RCM}} = \min_{c} \frac{1}{W}\sum_{t} d\big(c, \ell_t(\Delta_t)\big),$$

where $\ell_t(\Delta_t)$ is the corrected shaft axis at frame $t$, $c$ is a candidate pivot point (the Remote Center of Motion, RCM), and $d$ is point-to-line distance. Because the physical pivot is fixed in the body wall over short windows, correct corrections give a small residual. Incorrect per-frame corrections scatter the axes and make the residual large, even when each individual frame looks plausible in the image.

Relation to Prior Work

Four papers motivate or constrain the design.

SurgCalib is the closest work. It runs a two-phase optimization over 3D Gaussian splats of the tool, using keypoints, silhouettes and a frozen RCM, to solve hand-eye calibration on the da Vinci Research Kit (dVRK). It is offline, relies on a supervised keypoint detector, and outputs one calibration rather than a time-varying correction. We use a SurgCalib-style optimizer as our slow teacher. Our contribution is to distill it into a real-time per-frame corrector and to use the RCM as a gate on labels rather than as a loss.

A Correct-and-Certify Approach to Self-Supervise Object Pose Estimators via Ensemble Self-Training supplies the self-training recipe. It accepts pseudo-labels only when both a CAD-to-point-cloud certificate and a silhouette certificate pass, and it reports certified-correct poses rising from 19% to 80% during self-training. It needs rigid CAD models and static tabletop scenes. We replace the CAD certificate with articulated ones: pivot invariance, joint limits, and left–right stereo agreement. These are available for any cable-driven instrument.

The lumped-error controller paper motivates the problem. It shows that encoders alone failed all 20 of 20 autonomous thread-grasping trials, while visual tracking-in-the-loop succeeded in 19 of 20. Its hardware still used tip markers, and our goal is to remove them.

Robust Surgical Tool Tracking with Pixel-based Probabilities for Projected Geometric Primitives constrains the design. Its particle filter over deep line heatmaps reaches 3.1% and 3.5% 2D error but runs at 1–2 fps. This shows that expressive geometric search at test time is too slow, which is why we move the search into training.

The fusion side has two further constraints. Countering Multi-modal Representation Collapse through Rank-targeted Fusion warns that unweighted fusion collapses toward one modality, so the kinematic stream enters as a separate prior on $\Delta_t$ rather than as concatenated features. Hard geometric rejection, as in the free-space checks of Hurl et al. and the reprojection pruning of MonoXiver, discards valid targets under occlusion. For that reason our image-based certificates are weighted by the visible fraction of the tool, and the pivot certificate, which needs no visibility, carries most of the decision.

Research Program

The system has three parts.

The first is the teacher. It is a SurgCalib-like render-and-compare optimizer run offline over sliding windows of unlabeled stereo video. It outputs candidate corrections $\Delta_t$, initialized from the student's prediction once the student exists.

The second is the certifier. It scores each window using four quantities: the pivot residual $r_{\mathrm{RCM}}$, whether the implied joint offsets stay within mechanical limits, left–right stereo reprojection agreement of the tool keypoints, and silhouette agreement weighted by estimated visibility. Windows are kept above a threshold chosen on a small labeled validation split.

The third is the student, which runs online. It takes image features from a fast backbone of the kind SurgPose reports at about 8–16 ms per frame. These features are sampled in windows around each kinematically projected keypoint, with each window's radius set by the student's own uncertainty from the previous frame. The student also takes a short history of joint readings. It outputs $\Delta_t$ together with an uncertainty estimate.

Training alternates between the teacher and the student, so certified labels grow round by round, as in correct-and-certify. The analysis questions follow from this design. Does the certifier's precision stay high as rounds proceed? How much of $\Delta_t$ varies within a trajectory, which is exactly the part a static calibration cannot capture? Does uncertainty-sized sampling prevent the feature contamination that fixed-pixel fusion suffers?

Baselines

The naive reference is raw forward kinematics through the nominal transform. The lumped-error paper shows it fails in practice, so it sets the floor.

The strongest existing method is SurgCalib. Its calibration is applied to forward kinematics on held-out SurgPose trajectories, and it reports 3D tool-tip Euclidean error of 5.98 mm (left) and 4.75 mm (right) and 2D reprojection error of 12.24 px and 11.33 px. We will rerun it on our exact splits with its published procedure, so that comparisons use the same trajectories. Beating it means lower per-frame 3D tip error on both arms at 30 fps or faster, with statistically significant differences across held-out trajectories. Its offline runtime is not a basis for comparison, because the claim concerns accuracy at a given speed.

A second strong competitor is a per-frame pipeline: a supervised 2D keypoint detector trained on SurgPose labels (YOLOv8, reported at 63.3 mAP in SurgPose; DeepLabCut, at 66.2 mAP), followed by stereo triangulation fused with kinematics in an extended Kalman filter. We give this baseline the same backbone, the same labeled fraction, and an equal hyperparameter search budget.

Three ablations isolate the key ingredients. The first removes the certifier and trains on all teacher outputs. The second keeps image-only certificates but drops the pivot certificate. The third replaces uncertainty-sized sampling with PointFusion-style single-pixel sampling.

Why not just…?

Why not just calibrate once with SurgCalib and trust kinematics afterward? This is the most serious threat. If most of the error is a constant camera-to-base offset, a single calibration captures it. The lumped-error paper indicates that joint biases arising outside the camera's view drift, and SurgCalib attributes its residual error to cable stretch and hysteresis. Neither paper, however, measures how much the error varies within a trajectory. Our first experiment does exactly this. We fit the best possible static transform to ground truth on each held-out trajectory, which is an oracle static calibration. If its tip error is already within 1 mm of the student's, the dynamic correction is not worth building, and we would reframe the work around certified label generation alone.

Why not just triangulate keypoints from a good detector and Kalman-filter them with kinematics? This baseline is fast and simple. Its weakness is that it needs dense 2D labels, and a single wrong keypoint goes unchecked, so errors from occlusion by tissue, smoke or specular highlights pass straight into the filter. The multi-view spine study (Next-generation surgical navigation) found that synthetic data plus only 1% of real labels matched full supervision. That suggests label efficiency, rather than peak accuracy, is where certified self-training should win. We test the triangulation baseline at 1%, 10% and 100% labels. If it matches the student at 100%, the method's value lies in the low-label regime, and we will state that result directly.

Why not just train the fusion network end-to-end on all available pseudo-labels? The correct-and-certify results show that uncertified self-training drifts. Early fusion under misaligned projection also samples tissue pixels, which feeds the collapse described in the rank-targeted fusion paper. The no-certifier ablation measures this directly through label precision per round and final tip error.

Proposed Experiments

The primary benchmark is SurgPose: stereo pairs, 7D joint states, and UV-paint keypoints across 30 trajectories. The UV keypoints are used only for evaluation and the small validation split. We split by trajectory and report 3D tip error in millimetres, 2D reprojection error in pixels, and frames per second.

The decisive checks, in order, are the following. First, the oracle static-calibration test described above. Second, whether the student beats SurgCalib's re-run per-frame numbers at 30 fps or faster. Third, whether certificate precision, measured against held-out ground truth, stays above 90% as certified coverage grows. Fourth, robustness: we inject synthetic camera-to-base perturbations and simulated occlusions (smoke, tissue overlays), and compare fixed-pixel sampling against uncertainty-sized sampling and hard against visibility-weighted certificates.

As a secondary test of the tracking component alone, we run the student's image branch on the dVRK structured and deformable-tissue sequences from the pixel-probability tracking paper. There we compare against its reported 3.1% and 3.5% 2D error at matched speed. This comparison is only valid if those sequences expose joint readings. Otherwise we use the image branch with nominal kinematics and report it as a weaker, image-only comparison.