Abstract
Accurate tracking of catheter tips in 2D X-ray sequences is essential for guiding minimally invasive cardiac interventions. However, traditional tracking methods often struggle with occlusion, visual distractors, and non-linear motion. We present ConTrack, a novel transformer-based framework that integrates spatial and temporal context to enhance tracking robustness. By combining multi-template transformer fusion with catheter body segmentation and mask-based optical flow, ConTrack achieves a median tracking error of 1.08 mm—a 45% improvement over previous state-of-the-art models. Our approach maintains high accuracy even in the presence of surgical hardware and contrast agents, operating at 12 frames per second.
Introduction
In minimally invasive cardiac procedures, clinicians rely on fluoroscopy and angiography to navigate catheters through complex vascular structures. A critical component of modern guidance is "roadmapping," where static vessel structures are overlaid onto live X-ray video. For this overlay to remain accurate, the system must precisely track the catheter tip in real-time.
Despite its importance, catheter tracking remains a significant challenge due to several factors:
- Occlusion: The injection of contrast agents during angiography can temporarily obscure the catheter tip.
- Visual Distractors: Sternal wires, stents, and other surgical implants often mimic the appearance of the catheter.
- Complex Motion: The combined effects of cardiac contraction and respiratory cycles create constant, non-linear movement.
- Model Drift: Conventional Siamese-network trackers typically rely on a single initial template, making them prone to losing the target over long sequences as the device's appearance changes.
Methods
ConTrack addresses these challenges through an end-to-end architecture designed to leverage broader contextual information rather than focusing solely on isolated point-tracking.
Transformer-Based Fusion
Unlike standard trackers that compare a search image to a single static template, ConTrack utilizes a Transformer encoder to fuse information from multiple templates. This includes the initial frame and dynamic recent frames, allowing the model to adapt to appearance changes and recover from momentary occlusions.
Spatial Context via Multi-Task Learning
To mitigate the impact of visual distractors, ConTrack employs a multi-task learning strategy. The model is trained to simultaneously track the catheter tip and segment the entire catheter body. This spatial context acts as a structural anchor; by recognizing that a valid tip must be connected to a catheter body, the model effectively filters out noise from unrelated medical devices like sternal wires.
Temporal Context and Contextual Flow
To handle motion, the framework incorporates a RAFT-inspired optical flow module. A key innovation in ConTrack is the computation of flow on predicted segmentation masks rather than raw X-ray pixels. Raw X-ray images are often noisy and low-contrast; by focusing on the masks, the model captures the underlying physics of the device's movement while ignoring background interference.
Refinement Module
The final stage of the architecture is a convolutional refinement module. This component synthesizes the spatial predictions and the flow-based temporal predictions to output a highly accurate coordinate for the catheter tip.
Experimental Setup
The model was evaluated using a large-scale internal dataset comprising 2,314 X-ray sequences and nearly 199,000 frames. The data was categorized into three distinct sets to test specific challenges:
- Fluoroscopy: Low-dose imaging without contrast agents.
- Angiography: High-dose imaging involving contrast agent injections.
- Devices: Challenging cases specifically selected for the presence of sternal wires and other distractors.
All frames were standardized to a 512x512 resolution with a consistent 0.308 mm pixel spacing for training and evaluation.
Results and Discussion
ConTrack demonstrated superior performance compared to existing benchmarks, including SiameseRPN, STARK, and Cycle Ynet.
- Accuracy: The model achieved a median tracking error of 1.08 mm across the entire dataset, representing a 45% increase in accuracy over the previous state-of-the-art (Cycle Ynet).
- Robustness: In the "Devices" category—the most rigorous test of the model's ability to distinguish the catheter from distractors—ConTrack maintained a median error of 1.61 mm. In contrast, baseline models saw their errors increase significantly to the 4–7 mm range.
- Efficiency: The system operates at 12 frames per second (fps), nearing the real-time requirements necessary for integration into clinical surgical suites.
The results suggest that providing the model with "body" context transforms the tracking task from a difficult point-detection problem into a more stable structural recognition task. Furthermore, the use of dynamic templates effectively prevents the "drifting" common in earlier Siamese architectures.
Conclusion and Future Work
ConTrack represents a significant advancement in medical device tracking by successfully integrating spatial and temporal context through a transformer architecture. While the model shows high robustness, current limitations include the requirement for manual initialization in the first frame and the high volume of annotated data required for training.
Future research will focus on incorporating longer-term trajectory history to improve motion prediction and developing methods for automatic device detection to eliminate the need for manual initialization. The ultimate goal is a fully autonomous tracking system that enhances the safety and precision of cardiac interventions.
Summary updated