11institutetext: The Chinese University of Hong Kong, Hong Kong, China22institutetext: The Hong Kong Polytechnic University, Hong Kong, China33institutetext: Shenzhen Institute of Advanced Technology, CAS, Shenzhen, China44institutetext: National University of Singapore, Singapore, Singapore
44email: [email protected]

Epicardium Prompt-guided Real-time Cardiac Ultrasound Frame-to-volume Registration

Long Lei Equal contribution.11    Jun Zhou ⋆⋆22    Jialun Pei 1(✉)1(✉)    Baoliang Zhao 33    Yueming ** 44    Yuen-Chun Jeremy Teoh 11    **g Qin 22    Pheng-Ann Heng 11
Abstract

Real-time fusion of intraoperative 2D ultrasound images and preoperative 3D ultrasound volume based on the frame-to-volume registration can provide a comprehensive guidance view for cardiac interventional surgery. However, cardiac ultrasound images are characterized by a low signal-to-noise ratio and small differences between adjacent frames, coupled with significant dimension variations between 2D frames and 3D volumes to be registered, resulting in real-time and accurate cardiac ultrasound frame-to-volume registration being a very challenging task. This paper introduces a lightweight end-to-end Cardiac Ultrasound frame-to-volume Registration network, termed CU-Reg. Specifically, the proposed model leverages epicardium prompt-guided anatomical clues to reinforce the interaction of 2D sparse and 3D dense features, followed by a voxel-wise local-global aggregation of enhanced features, thereby boosting the cross-dimensional matching effectiveness of low-quality ultrasound modalities. We further embed an inter-frame discriminative regularization term within the hybrid supervised learning to increase the distinction between adjacent slices in the same ultrasound volume to ensure registration stability. Experimental results on the reprocessed CAMUS dataset demonstrate that our CU-Reg surpasses existing methods in terms of registration accuracy and efficiency, meeting the guidance requirements of clinical cardiac interventional surgery. Our code is available at https://github.com/LLEIHIT/CU-Reg.

Keywords:
Cardiac interventional surgery Frame-to-volume registration Ultrasound image.

1 Introduction

Cardiac interventional surgery has been widely used in the treatment of structural heart diseases, such as congenital heart disease and valvular heart disease [2]. Compared to DSA (Digital Subtraction Angiography) and CT, 2D ultrasound imaging has the advantages of low equipment requirements, easy operation, real-time imaging, and no radiation exposure, so ultrasound-guided cardiac interventional surgery has become a new trend [1, 15]. However, 2D ultrasound imaging can only display one section of the heart at a time. Doctors need to determine the position of the section in the heart structure reconstructed in their mind, and further fusion the real-time ultrasound images with the virtual cardiac anatomy to guide the surgical instruments [7], which requires extremely high levels of doctor experience. Currently, 3D ultrasound imaging is also becoming increasingly popular to obtain the complete anatomical structure of the heart [3, 18]. To provide a complete guidance view for cardiac interventions, it is necessary to explore frame-to-volume registration that fuse intraoperative 2D ultrasound images and preoperative 3D ultrasound volumes in real time, which shortens the learning curve of ultrasound-guided cardiac interventions.

Refer to caption
Figure 1: Schematic of cardiac ultrasound frame-to-volume registration.

The ultrasound frame-to-volume registration aims to seek a transformation that optimally aligns the resampled slice from the given volume by the transformation with the 2D input image [6, 5], as shown in Fig. 1. Existing registration methods are divided into mathematical methods and deep learning-based methods. Mathematically, the registration task is usually modeled as an optimization problem [17, 14]. Although iteration-based methods can yield reasonable accuracy, they cannot meet the real-time requirements of cardiac surgical guidance due to the slow registration speed. Currently, various deep learning-based methods are widely applied to the image registration task, such as directly learning target transformations [19, 4], keypoint descriptors [16], and image similarity metrics [8]. In the field of frame-to-volume registration, Hou et al. [10] utilized a CNN-based model to predict rigid transformation of arbitrary 2D image slices from 3D volumes, but only attained an average alignment error of 7 mm on simulated MRI brain data. Yeung et al. [20] also employed a CNN to predict the position of 2D ultrasound fetal brain scans in 3D atlas space. However, the method only takes a set of images rather than image-volume pairs as input, which results in poor generalization ability of the model among individuals. For the ultrasound frame-to-volume registration, Guo et al. [6] introduced an end-to-end registration network to align a 2D TRUS frame with a 3D TRUS volume. However, this method extracts features from ultrasound images only using 2D and 3D convolutions and directly concatenates them, which can be further enhanced by epicardium mask prompts to provide sufficient critical anatomical cues and adequate cross-dimensional feature interactions for the registration of ultrasound samples with low signal-to-noise ratios.

Refer to caption
Figure 2: (a) Overview of the proposed CU-Reg, where VLGA is the voxel-wise local-global aggregation; (b) The proposed prompt-guided gated cross-dimensional attention.

In this paper, we aim to accomplish a real-time and accurate cardiac ultrasound frame-to-volume registration to provide a complete guidance view for cardiac interventional surgery under the beating heart. To address the feature extraction difficulties caused by low signal-to-noise ratios and low tissue contrast in ultrasound images, we introduce epicardium mask prompts to provide sufficient critical anatomical information. Specifically, a bi-directional prompt-guided gated cross-dimensional attention (PGCA) operation is introduced to produce abundant structure features and perform efficient interaction between 2D frame and 3D volume features. Further, we propose a voxel-wise local-global aggregation (VLGA) module to efficiently integrate dense local-global features across dimensions. To avoid the large registration errors caused by small differences between adjacent frame images, we embed an inter-frame discriminative regularization term within our hybrid supervised learning to increase the distinction between adjacent slices in the same ultrasound volume to ensure registration stability. Additionally, we build a simulated cardiac frame-to-volume registration dataset through post-processing the CAMUS dataset [13]. The experimental results demonstrate that our model achieves superior performance compared to the state-of-the-art methods, e.g., a runtime of over 35 FPS and a DistErr of 3.91 mm, which can meet the 5 mm accuracy requirement for many cardiac catheterizations [12]. We hope our model can be applied for real-time and accurate guidance in cardiac interventions.

2 Method

2.1 Overview of the proposed CU-Reg

Fig. 2(a) illustrates the proposed lightweight end-to-end cardiac frame-to-volume registration network, called CU-Reg. We consider real-time 2D ultrasound frame images and 3D ultrasound volumes as fixed and moving images respectively [6], and take them as inputs to our framework. CU-Reg outputs six parameters {tx,ty,tz,rx,ry,rzsubscript𝑡𝑥subscript𝑡𝑦subscript𝑡𝑧subscript𝑟𝑥subscript𝑟𝑦subscript𝑟𝑧t_{x},t_{y},t_{z},r_{x},r_{y},r_{z}italic_t start_POSTSUBSCRIPT italic_x end_POSTSUBSCRIPT , italic_t start_POSTSUBSCRIPT italic_y end_POSTSUBSCRIPT , italic_t start_POSTSUBSCRIPT italic_z end_POSTSUBSCRIPT , italic_r start_POSTSUBSCRIPT italic_x end_POSTSUBSCRIPT , italic_r start_POSTSUBSCRIPT italic_y end_POSTSUBSCRIPT , italic_r start_POSTSUBSCRIPT italic_z end_POSTSUBSCRIPT} that uniquely determine the spatial transformation of the 2D image coordinate system relative to the 3D volumetric coordinate system. Therein, the first three parameters determine the relative displacement between the origin of the coordinate system, and the last three parameters determine the rotation transformation matrix.

Given the moving image UvD×H×Wsubscript𝑈𝑣superscript𝐷𝐻𝑊U_{v}\in\mathbb{R}^{D\times H\times W}italic_U start_POSTSUBSCRIPT italic_v end_POSTSUBSCRIPT ∈ blackboard_R start_POSTSUPERSCRIPT italic_D × italic_H × italic_W end_POSTSUPERSCRIPT and fixed images UfiH×W,i={0,1,2,3}formulae-sequencesuperscriptsubscript𝑈𝑓𝑖superscript𝐻𝑊𝑖0123U_{f}^{i}\in\mathbb{R}^{H\times W},i=\{0,1,2,3\}italic_U start_POSTSUBSCRIPT italic_f end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_i end_POSTSUPERSCRIPT ∈ blackboard_R start_POSTSUPERSCRIPT italic_H × italic_W end_POSTSUPERSCRIPT , italic_i = { 0 , 1 , 2 , 3 }, where Uf0superscriptsubscript𝑈𝑓0U_{f}^{0}italic_U start_POSTSUBSCRIPT italic_f end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 0 end_POSTSUPERSCRIPT denotes the current anchor frame to be estimated and Uf1,2,3superscriptsubscript𝑈𝑓123U_{f}^{1,2,3}italic_U start_POSTSUBSCRIPT italic_f end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 1 , 2 , 3 end_POSTSUPERSCRIPT denotes adjacent frames within the same volume. We initially utilize two independent encoding branches to extract 2D slice features ssubscript𝑠\mathcal{F}_{s}caligraphic_F start_POSTSUBSCRIPT italic_s end_POSTSUBSCRIPT and 3D volume features vsubscript𝑣\mathcal{F}_{v}caligraphic_F start_POSTSUBSCRIPT italic_v end_POSTSUBSCRIPT. For the 2D frame branch, we first use two Conv1d𝐶𝑜𝑛𝑣1𝑑Conv1ditalic_C italic_o italic_n italic_v 1 italic_d layers to normalize the channel dimension by increasing the number of channels from 4 to 64 followed by reducing it to 3, then feed frames into the CNN-based encoder [21] for multi-level features. To encode the 3D volume, we employ three 3D convolutional blocks with different kernel sizes to extract coarse-to-fine multi-scale features. Subsequently, we introduced the epicardium prompt-guided cross-dimensional attention operation that leverages the epicardium mask prompt with the bi-directional gated cross-dimensional attention block to spotlight critical anatomical features, providing informative alignment cues for ultrasound images. The enhanced features are processed by our voxel-wise local-global aggregation module to boost the fine-grained fusion of cross-dimensional representations. Finally, transformation parameters are estimated via the pose predictor. Additionally, our model embeds an inter-frame discriminative regularization term to highlight the discrimination between adjacent slices within the same ultrasound volume, yielding a hybrid-supervised training strategy to ensure registration stability.

2.2 Epicardium Prompt-guided Cross-dimensional Interaction

Due to the low contrast and signal-to-noise ratio of cardiac ultrasound slices, relying solely on the encoder is insufficient to provide critical anatomical information for intraoperative and preoperative registration. In this regard, we exploit epicardium masks as prompts to pinpoint tissue landmarks for better alignment. Specifically, the features ssubscript𝑠\mathcal{F}_{s}caligraphic_F start_POSTSUBSCRIPT italic_s end_POSTSUBSCRIPT extracted from the 2D image encoder are passed through a Softmax𝑆𝑜𝑓𝑡𝑚𝑎𝑥Softmaxitalic_S italic_o italic_f italic_t italic_m italic_a italic_x layer to epicardium mask prompts. The predicted epicardium mask is supervised by the ready-made ground truth during training. After passing the epicardium mask prompt through two 1×\times×1 convolutions for matching the dimensions of 3D volumetric features, we introduce a prompt-guided gated cross-dimensional attention (PGCA) to improve the interaction among 2D slice features, 3D volume features, and epicardium prompt features. Inspired by gated attention [11], PGCA dynamically regulates the feature dependencies between features of different dimensions, thereby enabling more efficient cross-dimensional interactions for capturing local-global features. Here, we embed bi-directional PGCA operations, and the three inputs of each PGCA are the cross-dimensional input 𝐂d×DHW𝐂superscript𝑑𝐷𝐻𝑊\mathbf{C}\in\mathbb{R}^{d\times DHW}bold_C ∈ blackboard_R start_POSTSUPERSCRIPT italic_d × italic_D italic_H italic_W end_POSTSUPERSCRIPT, the primary input 𝐏d×DHW𝐏superscript𝑑𝐷𝐻𝑊\mathbf{P}\in\mathbb{R}^{d\times DHW}bold_P ∈ blackboard_R start_POSTSUPERSCRIPT italic_d × italic_D italic_H italic_W end_POSTSUPERSCRIPT, and the epicardium prompt 𝐄d×DHW𝐄superscript𝑑𝐷𝐻𝑊\mathbf{E}\in\mathbb{R}^{d\times DHW}bold_E ∈ blackboard_R start_POSTSUPERSCRIPT italic_d × italic_D italic_H italic_W end_POSTSUPERSCRIPT, where 𝐏𝐏\mathbf{P}bold_P represents the current branch features (ssubscript𝑠\mathcal{F}_{s}caligraphic_F start_POSTSUBSCRIPT italic_s end_POSTSUBSCRIPT or vsubscript𝑣\mathcal{F}_{v}caligraphic_F start_POSTSUBSCRIPT italic_v end_POSTSUBSCRIPT), and 𝐂𝐂\mathbf{C}bold_C means other corresponding branching features (vsubscript𝑣\mathcal{F}_{v}caligraphic_F start_POSTSUBSCRIPT italic_v end_POSTSUBSCRIPT or ssubscript𝑠\mathcal{F}_{s}caligraphic_F start_POSTSUBSCRIPT italic_s end_POSTSUBSCRIPT). In addition, d𝑑ditalic_d and DHW𝐷𝐻𝑊DHWitalic_D italic_H italic_W denote the feature channel dimension and the size of each feature map, respectively. As described in Fig. 2(b), we first perform a linear projection of 𝐏d×DHW𝐏superscript𝑑𝐷𝐻𝑊\mathbf{P}\in\mathbb{R}^{d\times DHW}bold_P ∈ blackboard_R start_POSTSUPERSCRIPT italic_d × italic_D italic_H italic_W end_POSTSUPERSCRIPT and 𝐂d×DHW𝐂superscript𝑑𝐷𝐻𝑊\mathbf{C}\in\mathbb{R}^{d\times DHW}bold_C ∈ blackboard_R start_POSTSUPERSCRIPT italic_d × italic_D italic_H italic_W end_POSTSUPERSCRIPT with the SiLU𝑆𝑖𝐿𝑈SiLUitalic_S italic_i italic_L italic_U function to produce the queries Q𝑄Qitalic_Q, keys K𝐾Kitalic_K, values V𝑉Vitalic_V and gated vectors G𝐺Gitalic_G:

Q=Wq𝐂,K=Wk𝐏,V=ϕ(Wv𝐏),G=ϕ(Wg𝐏),formulae-sequence𝑄subscript𝑊𝑞𝐂formulae-sequence𝐾subscript𝑊𝑘𝐏formulae-sequence𝑉italic-ϕsubscript𝑊𝑣𝐏𝐺italic-ϕsubscript𝑊𝑔𝐏Q=W_{q}\cdot\mathbf{C},\ K=W_{k}\cdot\mathbf{P},\ V=\phi(W_{v}\cdot\mathbf{P})% ,\ G=\phi(W_{g}\cdot\mathbf{P}),italic_Q = italic_W start_POSTSUBSCRIPT italic_q end_POSTSUBSCRIPT ⋅ bold_C , italic_K = italic_W start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT ⋅ bold_P , italic_V = italic_ϕ ( italic_W start_POSTSUBSCRIPT italic_v end_POSTSUBSCRIPT ⋅ bold_P ) , italic_G = italic_ϕ ( italic_W start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT ⋅ bold_P ) , (1)

where Wq,Wk,Wv,Wgd×dsubscript𝑊𝑞subscript𝑊𝑘subscript𝑊𝑣subscript𝑊𝑔superscript𝑑𝑑W_{q},W_{k},W_{v},W_{g}\in\mathbb{R}^{d\times d}italic_W start_POSTSUBSCRIPT italic_q end_POSTSUBSCRIPT , italic_W start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT , italic_W start_POSTSUBSCRIPT italic_v end_POSTSUBSCRIPT , italic_W start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT ∈ blackboard_R start_POSTSUPERSCRIPT italic_d × italic_d end_POSTSUPERSCRIPT denote the projection matrix, ϕitalic-ϕ\phiitalic_ϕ is the SiLU𝑆𝑖𝐿𝑈SiLUitalic_S italic_i italic_L italic_U function. Then, we obtain the enhanced 2D slice feature zsd×DHWsubscript𝑧𝑠superscript𝑑𝐷𝐻𝑊z_{s}\in\mathbb{R}^{d\times DHW}italic_z start_POSTSUBSCRIPT italic_s end_POSTSUBSCRIPT ∈ blackboard_R start_POSTSUPERSCRIPT italic_d × italic_D italic_H italic_W end_POSTSUPERSCRIPT and 3D volume feature zvd×DHWsubscript𝑧𝑣superscript𝑑𝐷𝐻𝑊z_{v}\in\mathbb{R}^{d\times DHW}italic_z start_POSTSUBSCRIPT italic_v end_POSTSUBSCRIPT ∈ blackboard_R start_POSTSUPERSCRIPT italic_d × italic_D italic_H italic_W end_POSTSUPERSCRIPT via the prompt-guided cross-attention, which can be formulated as follows:

zi{s,v}=𝐏+f(Gθ(QKT/dk)V)+f(𝐄),subscript𝑧𝑖𝑠𝑣𝐏𝑓𝐺𝜃𝑄superscript𝐾𝑇subscript𝑑𝑘𝑉𝑓𝐄z_{i\in\{s,v\}}=\mathbf{P}+f(G\cdot\theta(Q\cdot K^{T}/\sqrt{d_{k}})\cdot V)\ % +f(\mathbf{E}),italic_z start_POSTSUBSCRIPT italic_i ∈ { italic_s , italic_v } end_POSTSUBSCRIPT = bold_P + italic_f ( italic_G ⋅ italic_θ ( italic_Q ⋅ italic_K start_POSTSUPERSCRIPT italic_T end_POSTSUPERSCRIPT / square-root start_ARG italic_d start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT end_ARG ) ⋅ italic_V ) + italic_f ( bold_E ) , (2)

where f()𝑓f(\cdot)italic_f ( ⋅ ) denotes the convolution operations, θ()𝜃\theta(\cdot)italic_θ ( ⋅ ) is the standard Softmax𝑆𝑜𝑓𝑡𝑚𝑎𝑥Softmaxitalic_S italic_o italic_f italic_t italic_m italic_a italic_x function, 1/dk1subscript𝑑𝑘1/\sqrt{d_{k}}1 / square-root start_ARG italic_d start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT end_ARG is a scaling factor and dksubscript𝑑𝑘d_{k}italic_d start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT is the number of channels.

2.3 Voxel-wise Dense Local-Global Aggregation

After obtaining the sufficient interaction between ultrasound frames and volume features, it is essential to fuse cross-dimensional features for a cohesive synthesis of critical structural details. To accommodate ultrasound registration with multiple noises, we introduce a voxel-wise local-global aggregation module (VLGA) to efficiently associate local dense cues with global geometric information. Given the enhanced 2D slice features zsd×DHWsubscript𝑧𝑠superscript𝑑𝐷𝐻𝑊z_{s}\in\mathbb{R}^{d\times DHW}italic_z start_POSTSUBSCRIPT italic_s end_POSTSUBSCRIPT ∈ blackboard_R start_POSTSUPERSCRIPT italic_d × italic_D italic_H italic_W end_POSTSUPERSCRIPT and 3D volume features zvd×DHWsubscript𝑧𝑣superscript𝑑𝐷𝐻𝑊z_{v}\in\mathbb{R}^{d\times DHW}italic_z start_POSTSUBSCRIPT italic_v end_POSTSUBSCRIPT ∈ blackboard_R start_POSTSUPERSCRIPT italic_d × italic_D italic_H italic_W end_POSTSUPERSCRIPT derived from bi-directional PGCA operations, we map the volume feature of each voxel and its spatial corresponding slice feature to the same size through 3D convolution and 2D convolution operations to generate voxel-wise pairs of features. Subsequently, these feature pairs are concatenated and fed into an MLP to obtain a global feature vector glosubscript𝑔𝑙𝑜\mathcal{F}_{glo}caligraphic_F start_POSTSUBSCRIPT italic_g italic_l italic_o end_POSTSUBSCRIPT. Lastly, glosubscript𝑔𝑙𝑜\mathcal{F}_{glo}caligraphic_F start_POSTSUBSCRIPT italic_g italic_l italic_o end_POSTSUBSCRIPT is concatenated with the paired features, facilitating the acquisition of local-global context insights. Our VLGA module can be summarized as follows:

Z=𝒞[𝒞[zs;zv];Max(MLP(𝒞[zs;zv))],Z=\mathcal{C}[\mathcal{C}[z_{s};z_{v}];Max(MLP(\mathcal{C}[z_{s};z_{v}))],italic_Z = caligraphic_C [ caligraphic_C [ italic_z start_POSTSUBSCRIPT italic_s end_POSTSUBSCRIPT ; italic_z start_POSTSUBSCRIPT italic_v end_POSTSUBSCRIPT ] ; italic_M italic_a italic_x ( italic_M italic_L italic_P ( caligraphic_C [ italic_z start_POSTSUBSCRIPT italic_s end_POSTSUBSCRIPT ; italic_z start_POSTSUBSCRIPT italic_v end_POSTSUBSCRIPT ) ) ] , (3)

where 𝒞[;]\mathcal{C}[;]caligraphic_C [ ; ] is the concatenation operation and Max()𝑀𝑎𝑥Max(\cdot)italic_M italic_a italic_x ( ⋅ ) denotes max-pooling.

2.4 Hybrid Supervised Learning

In the training phase, we employ a hybrid loss function to supervise our model. Unlike existing methods that jointly regress the pose parameters, we propose to predict the pose parameters separately by decoupling the rotation and translation branches so as to avoid discontinuity in the rotational space from disturbing the prediction of translation parameters. Here, we use two MLP layers to regress the rotation and translation parameters along with a smoothed L1 loss to supervise the pose parameters. The translation loss transsubscript𝑡𝑟𝑎𝑛𝑠\mathcal{L}_{trans}caligraphic_L start_POSTSUBSCRIPT italic_t italic_r italic_a italic_n italic_s end_POSTSUBSCRIPT and rotation loss rotsubscript𝑟𝑜𝑡\mathcal{L}_{rot}caligraphic_L start_POSTSUBSCRIPT italic_r italic_o italic_t end_POSTSUBSCRIPT are used to make the network converge quickly, and they can be formulated as

trans=1Ni=1NsmoothL1(𝐓𝐓),rot=1Ni=1NsmoothL1(𝐑𝐑),formulae-sequencesubscript𝑡𝑟𝑎𝑛𝑠1𝑁superscriptsubscript𝑖1𝑁𝑠𝑚𝑜𝑜𝑡subscript𝐿1𝐓superscript𝐓subscript𝑟𝑜𝑡1𝑁superscriptsubscript𝑖1𝑁𝑠𝑚𝑜𝑜𝑡subscript𝐿1𝐑superscript𝐑\mathcal{L}_{trans}=\frac{1}{N}\sum_{i=1}^{N}smooth_{L1}(\mathbf{T}-\mathbf{T}% ^{*}),\ \mathcal{L}_{rot}=\frac{1}{N}\sum_{i=1}^{N}smooth_{L1}(\mathbf{R}-% \mathbf{R}^{*}),caligraphic_L start_POSTSUBSCRIPT italic_t italic_r italic_a italic_n italic_s end_POSTSUBSCRIPT = divide start_ARG 1 end_ARG start_ARG italic_N end_ARG ∑ start_POSTSUBSCRIPT italic_i = 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_N end_POSTSUPERSCRIPT italic_s italic_m italic_o italic_o italic_t italic_h start_POSTSUBSCRIPT italic_L 1 end_POSTSUBSCRIPT ( bold_T - bold_T start_POSTSUPERSCRIPT ∗ end_POSTSUPERSCRIPT ) , caligraphic_L start_POSTSUBSCRIPT italic_r italic_o italic_t end_POSTSUBSCRIPT = divide start_ARG 1 end_ARG start_ARG italic_N end_ARG ∑ start_POSTSUBSCRIPT italic_i = 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_N end_POSTSUPERSCRIPT italic_s italic_m italic_o italic_o italic_t italic_h start_POSTSUBSCRIPT italic_L 1 end_POSTSUBSCRIPT ( bold_R - bold_R start_POSTSUPERSCRIPT ∗ end_POSTSUPERSCRIPT ) , (4)

where N𝑁Nitalic_N is the total number of samples. 𝐓𝐓\mathbf{T}bold_T and 𝐑𝐑\mathbf{R}bold_R means the predicted poses parameters, 𝐓superscript𝐓\mathbf{T}^{*}bold_T start_POSTSUPERSCRIPT ∗ end_POSTSUPERSCRIPT and 𝐑superscript𝐑\mathbf{R}^{*}bold_R start_POSTSUPERSCRIPT ∗ end_POSTSUPERSCRIPT are the ground truth. For prompt learning, we utilize the MSE loss to directly supervise the predicted epicardium prompt 𝐄𝐄\mathbf{E}bold_E:

prompt=1Ni=1N𝐄𝐄2,subscript𝑝𝑟𝑜𝑚𝑝𝑡1𝑁superscriptsubscript𝑖1𝑁subscriptnorm𝐄superscript𝐄2\mathcal{L}_{prompt}=\frac{1}{N}\sum_{i=1}^{N}||\mathbf{E}-\mathbf{E}^{*}||_{2},caligraphic_L start_POSTSUBSCRIPT italic_p italic_r italic_o italic_m italic_p italic_t end_POSTSUBSCRIPT = divide start_ARG 1 end_ARG start_ARG italic_N end_ARG ∑ start_POSTSUBSCRIPT italic_i = 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_N end_POSTSUPERSCRIPT | | bold_E - bold_E start_POSTSUPERSCRIPT ∗ end_POSTSUPERSCRIPT | | start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT , (5)

where 𝐄superscript𝐄\mathbf{E}^{*}bold_E start_POSTSUPERSCRIPT ∗ end_POSTSUPERSCRIPT is the ground truth of mask prompts. Moreover, to enlarge the discrimination between neighboring slices in the same volume, we embed an inter-frame discriminative regularization term regsubscript𝑟𝑒𝑔\mathcal{L}_{reg}caligraphic_L start_POSTSUBSCRIPT italic_r italic_e italic_g end_POSTSUBSCRIPT to ensure the stability of the registration:

reg=1Ni=1NsmoothL1(DfDf),subscript𝑟𝑒𝑔1𝑁superscriptsubscript𝑖1𝑁𝑠𝑚𝑜𝑜𝑡subscript𝐿1subscript𝐷𝑓subscriptsuperscript𝐷𝑓\mathcal{L}_{reg}=\frac{1}{N}\sum_{i=1}^{N}smooth_{L1}(D_{f}-D^{*}_{f}),caligraphic_L start_POSTSUBSCRIPT italic_r italic_e italic_g end_POSTSUBSCRIPT = divide start_ARG 1 end_ARG start_ARG italic_N end_ARG ∑ start_POSTSUBSCRIPT italic_i = 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_N end_POSTSUPERSCRIPT italic_s italic_m italic_o italic_o italic_t italic_h start_POSTSUBSCRIPT italic_L 1 end_POSTSUBSCRIPT ( italic_D start_POSTSUBSCRIPT italic_f end_POSTSUBSCRIPT - italic_D start_POSTSUPERSCRIPT ∗ end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_f end_POSTSUBSCRIPT ) , (6)

where Df1×3subscript𝐷𝑓superscript13D_{f}\in\mathbb{R}^{1\times 3}italic_D start_POSTSUBSCRIPT italic_f end_POSTSUBSCRIPT ∈ blackboard_R start_POSTSUPERSCRIPT 1 × 3 end_POSTSUPERSCRIPT is the estimated inter-frame distance, which is predicted from the aggregated feature Z𝑍Zitalic_Z by a separated MLP network, and Dfsubscriptsuperscript𝐷𝑓D^{*}_{f}italic_D start_POSTSUPERSCRIPT ∗ end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_f end_POSTSUBSCRIPT is the ground truth. The inter-frame distance is defined as the Euclidean distance between the translation vectors of the two adjacent frames. In addition, we leverage the MS-SSIM loss simsubscript𝑠𝑖𝑚\mathcal{L}_{sim}caligraphic_L start_POSTSUBSCRIPT italic_s italic_i italic_m end_POSTSUBSCRIPT for self-supervised training by constraining the similarity between the resampled and input frames to make the training process more stable and avoid overfitting. Overall, the hybrid loss function of CU-Reg is computed as

=λ1trans+λ2rot+λ3prompt+λ4reg+λ5simsubscript𝜆1subscript𝑡𝑟𝑎𝑛𝑠subscript𝜆2subscript𝑟𝑜𝑡subscript𝜆3subscript𝑝𝑟𝑜𝑚𝑝𝑡subscript𝜆4subscript𝑟𝑒𝑔subscript𝜆5subscript𝑠𝑖𝑚\mathcal{L}=\lambda_{1}\mathcal{L}_{trans}+\lambda_{2}\mathcal{L}_{rot}+% \lambda_{3}\mathcal{L}_{prompt}+\lambda_{4}\mathcal{L}_{reg}+\lambda_{5}% \mathcal{L}_{sim}caligraphic_L = italic_λ start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT caligraphic_L start_POSTSUBSCRIPT italic_t italic_r italic_a italic_n italic_s end_POSTSUBSCRIPT + italic_λ start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT caligraphic_L start_POSTSUBSCRIPT italic_r italic_o italic_t end_POSTSUBSCRIPT + italic_λ start_POSTSUBSCRIPT 3 end_POSTSUBSCRIPT caligraphic_L start_POSTSUBSCRIPT italic_p italic_r italic_o italic_m italic_p italic_t end_POSTSUBSCRIPT + italic_λ start_POSTSUBSCRIPT 4 end_POSTSUBSCRIPT caligraphic_L start_POSTSUBSCRIPT italic_r italic_e italic_g end_POSTSUBSCRIPT + italic_λ start_POSTSUBSCRIPT 5 end_POSTSUBSCRIPT caligraphic_L start_POSTSUBSCRIPT italic_s italic_i italic_m end_POSTSUBSCRIPT (7)

where λn,n=1,2,,5formulae-sequencesubscript𝜆𝑛𝑛125\lambda_{n},n=1,2,...,5italic_λ start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT , italic_n = 1 , 2 , … , 5 are the hyper-parameters. In our implementation, we set λ1=λ2=1.0subscript𝜆1subscript𝜆21.0\lambda_{1}=\lambda_{2}=1.0italic_λ start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT = italic_λ start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT = 1.0, λ3=λ4=0.1subscript𝜆3subscript𝜆40.1\lambda_{3}=\lambda_{4}=0.1italic_λ start_POSTSUBSCRIPT 3 end_POSTSUBSCRIPT = italic_λ start_POSTSUBSCRIPT 4 end_POSTSUBSCRIPT = 0.1, and λ5=0.5subscript𝜆50.5\lambda_{5}=0.5italic_λ start_POSTSUBSCRIPT 5 end_POSTSUBSCRIPT = 0.5, respectively.

2.5 Implementation Details

Our model is trained by an Adam optimizer on a single RTX3090 GPU for 500 epochs with a batch size of 16. The inputs of CU-Reg are ultrasound slices with the size of 128×\times×128×\times×1×\times×1 and corresponding volumes with the size of 128×\times×128×\times×32×\times×1. In the 2D ultrasound frame branch, we employ a ResNet-34 [9] as the 2D encoder. In the training phase, the inputs are a current anchor frame and three adjacent frames, i.e., 128×\times×128×\times×1×\times×4. During inference, we manually adjust the input dimension by repeating the number of channels four times. The hyperparameter values are the optimal results obtained through ablation experiments.

3 Experiments

3.1 Dataset and Evaluation Metrics

To evaluate the cardiac frame-to-volume registration network, a simulated dataset is generated by post-processing the public CAMUS dataset [13]. CAMUS contains 2D echocardiographic sequences with two- and four-chamber views of 500 patients, along with the masks of the left ventricular epicardium, these 2D sequences are expressed as 3D volumes in Cartesian coordinates with a unique grid resolution using the same interpolation procedure. For each original 3D volume, four transformations are generated by add random deviations to the identity transformation, the deviations of translation parameters of each transformation are within the range of 10 mm, and the deviations of the rotation parameters are within the range of 20 degrees. Based on these transformations, 2D slices and corresponding masks are sampled from the original volume. The sampled slices include 128×\times×128 pixels, and the pixel spacing is 0.62 mm×\times×0.62 mm. Meanwhile, a new volume is sampled from the original volume based on the identity transformation with a volume size of 128×\times×128×\times×32 and a voxel spacing of 0.62 mm×\times×0.62 mm×\times×0.62 mm. In this way, we can obtain four volume-frame-mask pairs with true transformations for one original volume. All data are split at the patient level, with 3,600 volume-frame-mask pairs for training and 400 volume-frame-mask pairs for testing.

For evaluation, we adopt the distance error (DistErr) to represent the average distance of the center and four corners between the input slice and the predicted slice. Normalized cross-correlation (NCC) and structure similarity index measure (SSIM) are used as image similarity metrics. In addition, the translation error (TE) denotes the L1 distance between the true and the predicted translation vectors [tx,ty,tzsubscript𝑡𝑥subscript𝑡𝑦subscript𝑡𝑧t_{x},t_{y},t_{z}italic_t start_POSTSUBSCRIPT italic_x end_POSTSUBSCRIPT , italic_t start_POSTSUBSCRIPT italic_y end_POSTSUBSCRIPT , italic_t start_POSTSUBSCRIPT italic_z end_POSTSUBSCRIPT], and the rotation error (RE) denotes the L1 distance between the true and the predicted rotation vectors [rx,ry,rzsubscript𝑟𝑥subscript𝑟𝑦subscript𝑟𝑧r_{x},r_{y},r_{z}italic_r start_POSTSUBSCRIPT italic_x end_POSTSUBSCRIPT , italic_r start_POSTSUBSCRIPT italic_y end_POSTSUBSCRIPT , italic_r start_POSTSUBSCRIPT italic_z end_POSTSUBSCRIPT].

Table 1: Comparative results and ablation analysis of our CU-Reg in terms of mean values of quantitative metrics. \uparrow / \downarrow indicates the higher/lower the score, the better.

[c] Methods DistErr (mm)\downarrow Img -NCC(%)\uparrow Img -SSIM(%)\uparrow Transformation paprameters Run-time (FPS)\uparrow TE(mm)\downarrow RE()\downarrow Para -NCC(%)\uparrow MRF-based [17] 4.02 87.14 60.06 2.51 6.49 72.83 0.1 FVR-Net [6] 5.84 65.49 47.77 4.22 7.87 56.60 36 CU-Reg 3.91 88.07 60.53 2.48 6.24 74.07 37 w/o PGCA 4.06 87.91 59.89 2.63 6.43 72.10 38 w/o VLGA 4.04 87.90 59.90 2.61 6.30 72.28 38 w/o PGCA&VLGA 5.06 82.36 53.28 3.07 6.93 67.11 39 w/o PGCA&VLGA&regsubscript𝑟𝑒𝑔\mathcal{L}_{reg}caligraphic_L start_POSTSUBSCRIPT italic_r italic_e italic_g end_POSTSUBSCRIPT 5.47 77.17 48.26 3.83 7.40 61.98 39 Baseline 7.99 60.39 44.39 4.81 8.54 49.72 39

3.2 Comparison with State-of-the-Art methods

We compare the proposed CU-Reg with the MRF-based conventional method [17] and the deep model FVR-Net [6] on the test set of our simulated data. As shown in Table 1, our model significantly outperforms FVR-Net for registration accuracy, e.g., about 33% decrease for the DistErr and 34% improvement for the Img-NCC, which can be attributed to the interaction of cross-dimensional features by the proposed PGCA and the augmentation of structural information by the epicardium mask prompt. The visualization results in Fig. 3 also illustrate that our model can perform remarkable registration outcomes. For registration efficiency, CU-Reg is significantly faster than conventional MRF-based methods (requiring multiple optimization iterations) by over 35 FPS, further confirming the superiority of our model in enhancing registration speed.

Refer to caption
Figure 3: Qualitative comparison on the registration results of different methods, including predicted slices and their difference heatmaps with the ground truth.

3.3 Ablation Study

We conduct thorough ablation experiments on each key component of the proposed CU-Reg, including the epicardium prompt supervision, a prompt-guided gated cross-dimensional attention (PGCA), a voxel-wise local-global aggregation module (VLGA), and an inter-frame discriminative regularization term regsubscript𝑟𝑒𝑔\mathcal{L}_{reg}caligraphic_L start_POSTSUBSCRIPT italic_r italic_e italic_g end_POSTSUBSCRIPT. For our baseline, we utilize the regular 2D frame and 3D volume encoders to extract frame and volume features and directly concatenate them for feeding into the pose predictor. As shown in the last two rows of Table 1, when we embed the epicardium prompt supervision to the baseline, there is a significant improvement in the perception of anatomical features of cardiac ultrasound images by CU-Reg, e.g., about 17% increase in the Img-NCC metric. With the addition of regsubscript𝑟𝑒𝑔\mathcal{L}_{reg}caligraphic_L start_POSTSUBSCRIPT italic_r italic_e italic_g end_POSTSUBSCRIPT to our total loss function, the registration accuracy of our model is further improved. Moreover, the proposed PGCA and VLGA play an indispensable role in the overall model and drive our model to optimal performance when used in synergy. Additionally, the last column of  Table 1 illustrates the advantage of our model in inference speed, thanks to the lightweight design of CU-Reg.

4 Conclusion

In this study, we present a novel lightweight end-to-end model, termed CU-Reg, for real-time and accurate cardiac ultrasound frame-to-volume registration. Launched from the epicardium mask prompt, we present a bi-directional prompt-guided gated cross-dimensional attention together with a voxel-wise local-global aggregation module to efficiently interact and integrate 2D sparse features and 3D dense features to obtain sufficient registration information. Further, we also introduce inter-frame discriminative regularization to increase the discrimination of similar frames by our model. The experimental results demonstrate that the proposed CU-Reg outperforms the current state-of-the-art methods in both precision and efficiency. Significantly, our model provides indispensable real-time guidance view for cardiac interventional surgery. Furthermore, it can serve as a bridge for ultrasound-CT/MRI registration and showcase the potential for immediate application in cross-modal ultrasound-CT/MRI registration fields.

{credits}

4.0.1 Acknowledgements

This work was supported in part by the Research Grants Council of the Hong Kong Special Administrative Region, China (Project No.: T45-401/22-N), in part by the Hong Kong Innovation and Technology Fund under Grant GHP/080/20SZ, in part by the Innovation and Technology Fund under Guangdong-Hong Kong Technology Cooperation Funding Scheme under Grant GHP/050/20SZ, in part by the National Natural Science Foundation of China under Grant 62273328, and in part by the Guangdong-Hong Kong-Macao Research Team Project under Grant 2021B1515130003.

4.0.2 \discintname

The authors have no competing interests to declare.

References

  • [1] Abbas, S., Peng, P.: Basic principles and physics of ultrasound. Ultrasound for Interventional Pain Management: An Illustrated Procedural Guide pp. 1–31 (2020)
  • [2] Al-Ebrahim, E.K., Madani, T.A., Al-Ebrahim, K.E.: Future of cardiac surgery, introducing the interventional surgeon. Journal of Cardiac Surgery 37(1), 88–92 (2022)
  • [3] Avola, D., Cinque, L., Fagioli, A., Foresti, G., Mecca, A.: Ultrasound medical imaging techniques: a survey. ACM CSUR 54(3), 1–38 (2021)
  • [4] Bharati, S., Mondal, M., Podder, P., Prasath, V.: Deep learning for medical image registration: A comprehensive review. arXiv preprint arXiv:2204.11341 (2022)
  • [5] Ferrante, E., Paragios, N.: Slice-to-volume medical image registration: A survey. Medical Image Anal. 39, 101–123 (2017)
  • [6] Guo, H., Xu, X., Xu, S., Wood, B.J., Yan, P.: End-to-end ultrasound frame to volume registration. In: MICCAI. pp. 56–65 (2021)
  • [7] Hacihaliloglu, I., Chen, E.C., Mousavi, P., Abolmaesumi, P., Boctor, E., Linte, C.A.: Interventional imaging: Ultrasound. In: Handbook of Medical Image Computing and Computer Assisted Intervention, pp. 701–720. Elsevier (2020)
  • [8] Haskins, G., Kruger, U., Yan, P.: Deep learning in medical image registration: a survey. Machine Vision and Applications 31, 1–18 (2020)
  • [9] He, K., Zhang, X., Ren, S., Sun, J.: Deep residual learning for image recognition. In: IEEE CVPR. pp. 770–778 (2016)
  • [10] Hou, B., Alansary, A., McDonagh, S., Davidson, A., Rutherford, M., Hajnal, J.V., Rueckert, D., Glocker, B., Kainz, B.: Predicting slice-to-volume transformation in presence of arbitrary subject motion. In: MICCAI. pp. 296–304 (2017)
  • [11] Hua, W., Dai, Z., Liu, H., Le, Q.: Transformer quality in linear time. In: ICML. pp. 9099–9117 (2022)
  • [12] King, A.P., Jansen, C., Rhode, K.S., Caulfield, D., Razavi, R., Penney, G.P.: Respiratory motion correction for image-guided cardiac interventions using 3-d echocardiography. Medical image analysis 14(1), 21–29 (2010)
  • [13] Leclerc, S., Smistad, E., Pedrosa, J., Østvik, A., Cervenansky, F., Espinosa, F., Espeland, T., Berg, E.A.R., Jodoin, P.M., Grenier, T., et al.: Deep learning for segmentation using an open large-scale dataset in 2d echocardiography. IEEE TIP 38(9), 2198–2210 (2019)
  • [14] Lei, L., Zhao, B., Qi, X., Mi, R., Ye, H., Zhang, P., Wang, Q., Heng, P.A., Hu, Y.: Robotic needle insertion with 2d ultrasound–3d ct fusion guidance. IEEE TASE (2023)
  • [15] Liu, Z., Li, W., Li, H., Zhang, F., Ouyang, W., Wang, S., Wang, C., Luo, Z., Wang, J., Chen, Y., et al.: Automated deep neural network-based identification, localization, and tracking of cardiac structures for ultrasound-guided interventional surgery. Journal of Thoracic Disease 15(4),  2129 (2023)
  • [16] Markova, V., Ronchetti, M., Wein, W., Zettinig, O., Prevost, R.: Global multi-modal 2d/3d registration via local descriptors learning. In: MICCAI. pp. 269–279 (2022)
  • [17] Porchetto, R., Stramana, F., Paragios, N., Ferrante, E.: Rigid slice-to-volume medical image registration through markov random fields. In: MICCAIW. pp. 172–185 (2017)
  • [18] Song, X., Guo, H., Xu, X., Chao, H., Xu, S., Turkbey, B., Wood, B.J., Wang, G., Yan, P.: Cross-modal attention for mri and ultrasound volume registration. In: MICCAI. pp. 66–75 (2021)
  • [19] Xu, J., Moyer, D., Grant, P.E., Golland, P., Iglesias, J.E., Adalsteinsson, E.: Svort: iterative transformer for slice-to-volume registration in fetal brain mri. In: MICCAI. pp. 3–13 (2022)
  • [20] Yeung, P.H., Aliasi, M., Papageorghiou, A.T., Haak, M., Xie, W., Namburete, A.I.: Learning to map 2d ultrasound images into 3d space with minimal human annotation. Medical Image Anal. 70, 101998 (2021)
  • [21] Zhao, H., Shi, J., Qi, X., Wang, X., Jia, J.: Pyramid scene parsing network. In: IEEE CVPR. pp. 2881–2890 (2017)