Deformable registration은 scan 사이 구조의 비교를 가능하게 함
대부분 deformable registration algorithm은 energy function에 기반하여 transformation을 반복적으로 최적화
$$ \begin{aligned} \hat{\phi}&=\text{argmin}\phi\mathcal{L}(f,m,\phi) &(1)\\ &=\text{argmin}\phi\mathcal{L}{sim}(f,m\circ\phi)+\lambda\mathcal{L}{smooth}(\phi) &(2) \end{aligned} $$
standard gradient-based method를 사용하기 위해, $m\circ\phi$를 계산하는 spatial transformer network 기반 미분 가능한 연산 구축
each voxel $\text{p}$에 대해,
image value는 integer location에 정의되기 때문에, eight neighboring voxels을 통해 linearly interpolation 사용
$$ m\circ\phi=\sum_{\text{q}\in\mathcal{Z}(\text{p}')}m(\text{q})\Pi_{d\in\{x,y,z\}}(1-|\text{p}'_d-\text{q}_d|) \tag{3} $$
two loss functions
1) Unsupervised Loss Function
$\mathcal{L}_{us}$ (an unsupervised loss) : input volume과 생성된 registration field로 모델 평가
$$ \mathcal{L}{us}(f,m,\phi)=\mathcal{L}{sim}(f,m\circ\phi)+\lambda\mathcal{L}_{smooth}(\phi) \tag{4} $$
the mean squared voxelwise difference → $f$와 $m$이 비슷한 image intensity distribution과 local contrast를 가진 경우
$$ MSE(f,m\circ\phi)=\frac{1}{|\Omega|}\sum_{p\in\Omega}[f(\text{p})-m\circ\phi]^2 \tag{5} $$
the local cross-correlation of $f$ and $m\circ\phi$ → intensity variations에 더 robust
$$ \begin{aligned} &CC(f,m\circ\phi)= \\ &\sum_{\text{p}\in\Omega}\frac{(\sum_{\text{p}_i}(f(\text{p}i)-\hat{f}(\text{p}))(m\circ\phi-\hat{m}\circ\phi))^2}{(\sum{\text{p}_i}(f(\text{p}i)-\hat{f}(\text{p}))^2)(\sum{\text{p}_i}(m\circ\phi-\hat{m}\circ\phi)^2)} \tag{6} \end{aligned} $$
$\mathcal{L}_{sim}$을 최소화하는 것은 $m\circ\phi$를 $f$에 잘 맞추도록 하지만, 현실적이지 않은 non-smooth $\phi$를 생성할 수 있음 → displacement $\text{u}$의 spatial gradients에 diffusion regularizer를 사용해서 smooth displacement field $\phi$ 생성!
$$ \mathcal{L}{smooth}(\phi)=\sum{\text{p}\in\Omega}||\nabla\text{u}(\text{p})||^2 \tag{7} $$
2) Auxiliary Data Loss Function
$\mathcal{L}_a$ (an auxiliary loss) : 학습동안 anatomical segmentation 이용. 테스트시 사용 X
→ anatomical segmentation map이 있는 경우에만 사용가능하기 때문
→ registration field $\phi$가 정확한 anotomical correspondance를 나타내면, $f$와 $m\circ\phi$의 영역이 같은 anatomical structure에서 잘 겹쳐져야 함을 의미
$$ \text{Dice}(s^k_f,s^k_m\circ\phi)=2\cdot\frac{|s^k_f\cap(s^k_m\circ\phi)|}{|s^k_f|+|s^k_m\circ\phi|} \tag{8} $$
$s^k_f, s^k_m\circ\phi$ : $f$와 $m\circ\phi$의 structure $k$의 voxel
Dice score = 1 : anatomy가 완벽하게 알맞음 | = 0 : 겹치는 부분이 없음 → 전체 structure $k\in[1,K]$ 에 대한 segmentation loss $\mathcal{L}_{seg}$
$$ \mathcal{L}{seg}(s_f,s_m\circ\phi)=-\frac{1}{K}\sum^K{k=1}\text{Dice}(s^k_f,s^k_m\circ\phi) \tag{9} $$
$\mathcal{L}{us}$와 $\mathcal{L}{seg}$를 결함
$$ \begin{aligned} &\mathcal{L}a(f,m,s_f,s_m,\phi)= \\ &\mathcal{L}{us}(f,m,\phi)+\gamma\mathcal{L}_{seg}(s_f,s_m\circ\phi) \tag{10} \end{aligned} $$
anatomical label은 categorical이기 때문에 $s_m\circ\phi$를 계산하기 위한 linear interpolation은 부적절하고 dice score를 계산할 때 미분불가능할 수 있음