OFELIA: Optical Flow-based Electrode LocalIzAtion

Xinyi Wang, Zikang Xu, Qingsong Yao, Yiyong Sun, S Kevin ZhouMIDL 2024

TL;DR

This paper introduces OFELIA, a novel deep learning approach that leverages optical flow to precisely locate electrodes on cardiac catheters in real-time X-ray sequences. By integrating temporal motion information with spatial features, OFELIA significantly improves localization accuracy, outperforming existing methods and aiding in critical cardiac procedures.

What Problem Does This Paper Address?

Cardiac catheter ablation, a common procedure for treating arrhythmias like atrial fibrillation, relies heavily on accurately tracking the position of specialized catheters equipped with electrodes. These electrodes collect crucial electrophysiological signals and their precise localization is vital for intraoperative catheter navigation, surgical planning, and building accurate 3D models of the heart. However, real-time X-ray imaging presents challenges: image quality can be inconsistent, and multiple catheters can overlap, making it difficult for clinicians to pinpoint electrode locations accurately. This difficulty is amplified for less experienced surgeons. Existing methods often rely on time-consuming segmentation or single-frame landmark detection, which can be insufficient given the dynamic and complex nature of these procedures.

Methods

The core of OFELIA is a novel deep network that integrates spatiotemporal information from X-ray video sequences. Unlike previous methods that might focus solely on individual frames, OFELIA explicitly uses optical flow to capture the motion and shape changes of the catheter electrodes between consecutive frames.

Here's a breakdown of their approach:

  • Optical Flow Integration: The network takes pairs of X-ray frames ($X_t$ and $X_{t+1}$) and their corresponding optical flow map ($F_{t \to t+1}$) as input. This optical flow map, which quantifies pixel-wise motion, provides valuable temporal context and hints at the electrode's shape and boundary.
  • Modified U-Net Architecture: A U-Net architecture, known for its effectiveness in image segmentation and localization tasks, is adapted. Its encoder is initialized with a pre-trained ResNet-34, and the decoder is designed to output a probability map for each electrode's location.
  • Optical Flow Estimation Pipeline: A significant challenge is obtaining accurate optical flow for X-ray images, as standard optical flow models are trained on natural images and suffer from a domain gap. To address this, the authors developed a pipeline:
  • They start with four pre-trained RAFT (Recurrent All-Pairs Field Transforms) models.
  • A saturation-channel-based selection algorithm is introduced. This algorithm leverages the fact that the saturation channel in HSV color space (derived from the RGB optical flow) can effectively capture electrode boundaries. They select the optical flow map with the highest mean saturation factor.
  • A quality control mechanism is implemented, discarding samples with a low saturation factor to ensure data quality.
  • Finally, they construct a synthetic dataset called the Flying-Catheter Dataset and fine-tune the RAFT model on this dataset. This task-specific fine-tuning is crucial for obtaining accurate optical flow maps for X-ray catheter images.

Datasets

  • In-house Multi-center Dataset: The primary dataset used for training and evaluation is an in-house collection of fluoroscopic sequences captured during cardiac ablation procedures and animal experiments. This dataset includes frames with two types of catheters: Coronary Sinus (CS) and Radio-Frequency (RF).
  • Test-DSA Subset: A challenging subset designed to represent scenarios with contrast agent injection, leading to non-uniform dark shadows.
  • Test-OBS Subset: Another challenging subset featuring situations where catheters obscure each other or are obscured by external elements.
  • Flying-Catheter Dataset: A novel, synthetically generated dataset created by the authors for training and fine-tuning the optical flow estimator. This dataset is crucial for bridging the domain gap between natural images and X-ray images.

Key Insights and Ideas

  • Optical Flow as a Shape and Motion Cue: The paper convincingly demonstrates that optical flow, beyond just indicating movement, provides crucial shape and boundary information for electrodes, which is difficult to obtain from single frames alone. This is a key insight for improving localization accuracy in dynamic medical imaging.
  • Saturation Channel's Importance: The empirical finding that the saturation channel in HSV color space is particularly effective for capturing electrode boundaries in optical flow maps is a novel and practical observation.
  • Synthetic Data for Domain Adaptation: The creation and use of the Flying-Catheter Dataset for fine-tuning optical flow models highlight the power of synthetic data generation in overcoming domain shift issues in medical imaging.
  • Task-Specific Fine-tuning is Key: Fine-tuning a general-purpose optical flow model (RAFT) on a task-specific dataset (Flying-Catheter) yields significantly better results than using off-the-shelf models, underscoring the importance of domain-specific adaptation.

Key Results

OFELIA achieved state-of-the-art performance on various test sets:

  • Mean Radial Error (MRE):
    • RF Catheters: 0.95 mm (outperforming others)
    • CS Catheters: 0.71 mm (outperforming others)
  • Successful Detection Rate (SDR): OFELIA consistently achieved higher SDRs across different radii (1mm, 2mm, 4mm) compared to baseline methods on both standard test sets and the challenging CCA subsets (Test-DSA and Test-OBS).
  • Generalization: The method showed good generalization on the CCA subsets, with a much smaller drop in SDR compared to other methods, indicating robustness in difficult clinical scenarios.
  • Qualitative Results: Visualizations show OFELIA producing more accurate and consistent landmark predictions, especially in challenging frames where other methods struggle. The fine-tuned RAFT model also produced clearer optical flow maps.

Limitations and Future Work

  • Annotation Burden: While OFELIA requires only point annotations (easier than segmentation masks), it still necessitates some level of annotation.
  • Generalizability to Other Tasks: The authors suggest that the approach could be generalized to other motion object detection tasks beyond catheter ablation.
  • Future Directions:
    • Exploring different combinations of loss functions for further optimization.
  • Investigating one-shot or few-shot learning methods to further reduce the annotation burden.
  • Further research into the use of different optical flow estimators and longer frame stacks.

Summary updated

BibTeX
@inproceedings{wang2024ofelia,
  author = {Xinyi Wang and Zikang Xu and Qingsong Yao and Yiyong Sun and S Kevin Zhou},
  title = {{OFELIA: Optical Flow-based Electrode LocalIzAtion}},
  booktitle = {MIDL},
  year = {2024},
  url = {https://openreview.net/forum?id=8245ExLB4I},
}
Figure