scieee AI-readable full text Open interactive document viewer

Efficient convolution-based pairwise elastic image registration on three multimodal similarity metrics

Menchon Lara, Rosa María,Simmross Wattenberg, Federico Jesús,Rodríguez Cayetano, Manuel,Casaseca de la Higuera, Juan Pablo,Martín Fernández, Miguel Angel,Alberola López, Carlos

Abstract

Producción Científica

Full text

Signal Processing 202 (2023) 108771 Contents lists available at ScienceDirect Signal Processing journal homepage: www.elsevier.com/locate/sigpro Efficient convolution-based pairwise elastic image registration on three multimodal similarity metrics Rosa-María Menchón-Lara ∗, Federico Simmross-Wattenberg , Manuel Rodríguez-Cayetano , Pablo Casaseca-de-la-Higuera, Miguel Á. Martín-Fernández, Carlos Alberola-López Laboratorio de Procesado de Imagen. ETSI de Telecomunicación, Universidad de Valladolid, Valladolid, Spain a r t i c l e i n f o Article history: Received 31 January 2022 Revised 31 August 2022 Accepted 3 September 2022 Available online 6 September 2022 Keywords: Multimodal registration Free-form deformation Convolution Non-rigid registration Efficient implementation a b s t r a c t This paper proposes a complete convolutional formulation for 2D multimodal pairwise image registration problems based on free-form deformations. We have reformulated in terms of discrete 1D convolutions the evaluation of spatial transformations, the regularization term, and their gradients for three different multimodal registration metrics, namely, normalized cross correlation, mutual information, and normalized mutual information. A sufficient condition on the metric gradient is provided for further extension to other metrics. The proposed approach has been tested, as a proof of concept, on contrast-enhanced first-pass perfusion cardiac magnetic resonance images. Execution times have been compared with the corresponding execution times of the classical tensor product formulation, both on CPU and GPU. The speed-up achieved by using convolutions instead of tensor products depends on the image size and the number of control points considered, the larger those magnitudes, the greater the execution time reduction. Furthermore, the speed-up will be more significant when gradient operations constitute the major bottleneck in the optimization process. ©2022 The Author(s). Published by Elsevier B.V. This is an open access article under the CC BY-NC-ND license ( http://creativecommons.org/licenses/by-nc-nd/4.0/ ) 1. Introduction Image registration plays a crucial role in the field of image processing and constitutes the basis for many higher level applications. This technique consists in aligning a pair or a set of images, for which spatial transformations have to be determined. A popular approach to define these transformations in elastic registration, specially for medical imaging applications, is the free-form deformations (FFD) paradigm [1,2] . This powerful geometric modeling technique can be used to represent arbitrary deformations applied to objects [3] . An FFD model inherently gives rise to smooth deformation fields with appropriate selection of its basis functions. However, these models are limited by large memory requirements and high execution times needed to register large-scale images [4] . Recently, a novel and highly efficient implementation of groupwise image registration based on FFDs has been proposed [5] . This approach replaces the classical FFD implementation based on tensor products by a convolutional formulation, achieving large execu- ∗Corresponding author. E-mail address: [email protected]a.es (R.-M. Menchón-Lara) . tion time reduction not only for evaluation of transformations, but also for gradient calculation during the optimization process. The average runtime reduction reported is above 90% and the registration accuracy was properly demonstrated on different datasets. Interpolation using convolutions is a well-known topic [6–8] ; however, the implementation of FFDs has been based on tensor products since its onset [1,9] and, to the best of our knowledge, reported implementations [10–14] have not made use of convolutions. As for the convolution-based implementation in [5] , it was fully developed for a monomodal registration metric only, namely, the sum of squared differences. In this paper, we propose the convolutional formulation of elastic pairwise registration on multimodal metrics and we focus on three of them, specifically, normalized cross correlation (NCC), mutual information (MI) and normalized mutual information (NMI). Interestingly, the requirement stated in [5] for the metrics turns out not to be a necessary condition for convolution-based problem formulation. Albeit it is satisfied by NCC, it does not hold for either MI or NMI but they both adhere to this formulation because of the analytical expression of their gradients, for which a sufficient condition has been determined. Furthermore, both the regularization https://doi.org/10.1016/j.sigpro.2022.108771 0165-1684/© 2022 The Author(s). Published by Elsevier B.V. This is an open access article under the CC BY-NC-ND license ( http://creativecommons.org/licenses/by-nc-nd/4.0/ ) R.-M. Menchón-Lara, F. Simmross-Wattenberg, M. Rodríguez-Cayetano et al. Signal Processing 202 (2023) 108771 Fig. 1. Scheme of spatial transformations in 2D pairwise image registration. term and its gradient are also posed in terms of simple convolutions. The regularization term was not analyzed in [5] . The simple regularizer proposed in [15] was applied directly on the deformation coefficients. This term is a quadratic-like penalty function and does not require additional B-spline interpolations. Therefore, there are no grounds for its convolutional reformulation. However, in this paper we have resorted to a popular regularization term, namely, the transformation Laplacian, as a simplified version of the 2D transformation bending energy [1,16,17] . It turns out that the convolutional implementation of this term provides a significant reduction of the computing time with respect to its direct implementation. Analytical expressions are derived for both the metrics and the regularization gradients. In order to accelerate the registration procedure, several efficient implementations on graphics processing units (GPU) have been proposed [18–23] , reporting significant speed-ups over CPU implementations. Moreover, Deep Learning approaches have also been applied to the image registration problem [24–26] , providing fast solutions once the networks have been trained for a specific application. Our proposal leads to important execution time reductions for the reformulated functions, both in CPU and GPU, as evidenced by the empirical tests carried out. Since these functions are repeated at each iteration of the optimization process, the speedup reached by the proposed approach in the overall registration procedure will be more significant whenever those functions —and more specifically, operations in which gradients are involved— constitute a major bottleneck. The aim of this work is to provide an efficient alternative to compute FFDs for any application of elastic image registration, including multimodal scenarios, based on the convolution operator — which in turn is very efficiently implemented in many platforms— instead of on the tensor product operator. Hence, we will not focus on the comparative analysis of accuracy —or advantages and disadvantages— of different metrics. As a proof of concept, 2D pairwise (PW) image registration has been explored on contrastenhanced first-pass perfusion cardiac magnetic resonance images (MRI). Our formulation applies naturally on 3D applications, as we showed in [5] . The remainder of this paper is structured as follows. Section 2 describes the methods. First, in Sect. 2.1 , 2D PW image registration based on FFDs is revised and spatial transformations are reformulated in terms of convolutions. Then, Section 2.2 introduces NCC, MI and NMI. As stated above, the efficient convolutional approach can also be applied to calculate the regularization term, as Section 2.3 describes. Gradient evaluation is described in Sect. 2.4 ). Results are shown and discussed in Section 3 . Section 4 summarizes the main conclusions of the paper. Finally, Appendix A provides a detailed description of gradient calculations for the three multimodal metrics analyzed in this work. 2. Methods 2.1. Convolutional pairwise registration In the case of PW image registration, two images are to be spatially aligned. In particular, a moving image ( I M ) is registered to a fixed image ( I F ) —or reference image— by means of a spatial transformation T θ, parameterized by θ, that maps each point in I F into the corresponding point in I M (see Fig. 1 ). The registration process consists in finding the parameters θ, which define the optimal spatial transformation T θ. Therefore, the problem is posed as an optimization problem where a cost function is minimized. Typically, the registration cost function is defined as C(θ) = −S(I F (x ) , I M ( T θ(x ))) + λ·R (θ) (1) The first term in Eq. (1) represents the cost associated with image similarity, i.e. the degree of alignment between both the fixed image and the transformed moving image; the minus sign converts similarity into a cost, so higher similarity implies less cost. In addition, to constrain the deformation to be realistic, a regularization term R (θ) , weighted by a λfactor, is included. The solution to this equation in θis usually found by iterative optimization procedures. This paper focuses on elastic registration based on the FFD paradigm, which consists in locally deforming a given image by manipulating a grid of control points distributed across the image at an arbitrary mesh resolution [1] . B-spline functions are commonly used to define transformations; specifically, third-order B- spline basis functions provide a good balance between function smoothness and region support [14] . Thus, FFD-based registration defines T θthrough cubic B-spline interpolation from a lattice of control points u by the following expression [1,9] T θ(x ) = x +  u ∈N(x )  L  l=1 B x l −p u l l  ·θu (2) where x represents a spatial point in the image domain X of dimension L , N ( x ) is the set of all indices of control points in the vicinity of x , θu represents the control point displacements, p u l is the location of a given control point in X along dimension l, l is the spacing in pixels between control points along dimension l, and B stands for the third order B-spline function obtained through the Cox-DeBoor recursion formula as defined in [27] . As introduced in [5] , on the basis of the compact support of B-spline functions and by assuming the FFD defined on a discrete Cartesian coordinate system, the classical tensor product formulation ( Eq. (2) ) can be implemented by means of convolutions. Thus, for a 2D domain problem, the spatial coordinates x = (x 1 , x 2 ) ∈ X take on integer values, 1 ≤x 1 ≤N 1 and 1 ≤x 2 ≤N 2 , with N l the image size along dimension l. Furthermore, we assume the grid of control points u = (u 1 , u 2 ) , with = (1 , 2 ) ∈ Z 2 + spacing, lo- 2 R.-M. Menchón-Lara, F. Simmross-Wattenberg, M. Rodríguez-Cayetano et al. Signal Processing 202 (2023) 108771 cated on a subset of the (N 1 , N 2 ) points. Then, the 2D transformation can be expressed as T θ(x ) = x + N 1  q 1 =1 B x 1 −q 1 1 N 2  q 2 =1 B x 2 −q 2 2 ·(q 1 , q 2 ) (3) where (q 1 , q 2 ) = δ(q 1 −ρ1 (q 1 )) ·δ(q 2 −ρ2 (q 2 )) ·θ(η1 (q 1 ) ,η2 (q 2 )) (4) with δdenoting the Kronecker delta. Functions ρl and ηl are defined for convenience to cancel the contribution of any point q l that is not a control point and to select the appropriate displacement ρl (q l ) = q l if ∃ u l : q l = p u l 1 / 2 otherwise (5) ηl (q l ) = u l if q l = p u l 0 otherwise (6) Therefore, the 2D transformation can be reformulated as two consecutive 1D discrete convolutions with zero extension along each spatial dimension T θ(x ) = x + B [ x 1 / 1 ] ∗B [ x 2 / 2 ] ∗[ x 1 , x 2 ] (7) Furthermore, because of the definition of (see Eq. (7) ), the first convolution implemented can be evaluated only in those rows (or columns) containing control points. The computational complexity of the proposed convolutional formulation is detailed in [5] for 3D transformations. 2.2. Multimodal image similarity metrics Three different image similarity metrics are described here for multimodal pairwise registration, namely, NCC, MI and NMI. 2.2.1. Normalized cross correlation The normalized cross correlation (NCC) between the fixed image, I F (x ) , and the transformed moving image, I M (T θ(x )) , is defined by NCC =  x ∈X (I F (x ) −I F )(I M (T θ(x )) −I M )   x ∈X (I F (x ) −I F ) 2  x ∈X (I M (T θ(x )) −I M ) 2 = A B (8) where I F and I M stand for the average gray-values of the corresponding images respectively, i.e., I F = 1 / |X |  x ∈X I F (x ) and I M = 1 / |X |  x ∈X I M (T θ(x )) , where |X | is the number of pixels of the images. 2.2.2. Mutual information In the PW approach, mutual information (MI) is defined from three entropy functions MI = H(I F (x )) + H(I M (T θ(x )) −H(I F (x ) , I M (T θ(x )) (9) where H(·) is the Shannon’s entropy 1 Then, MI can be calculated by normalized histograms of the images, MI =  f∈L F  m ∈L M p(f, m | θ) ·log 2 p(f, m | θ) p F (f) ·p M (m | θ) (10) 1 Given the histogram, p(i ) , of an image I, the Shannon’s entropy is defined by H(I) = − i p(i ) log 2 (p(i )) . where L F and L M are discrete sets (bins) of intensity values of the fixed and moving images, respectively, with bin centres ( f, m ) regularly spaced; p(f, m | θ) stands for the joint histogram, which can by expressed as follows based on the Parzen-window method p(f, m | θ) = 1 |X |  x ∈X K f −I F (x ) σF ·K m−I M (T θ(x )) σM  (11) where K(·) is a kernel function. In this case, we use the cubic B-spline kernel as in [28] . The scaling factors σF and σM in Eq. (11) are the intensity bin widths in L F and L M . Note that if the number of bins is too small, the estimated joint histogram will have poor resolution, whereas computational cost increases with the number of bins. A good trade-off, empirically selected for medical images, is to use 64 bins to normalize both ranges of intensities [29] . The fixed and moving marginal histograms, p F (f) and p M (m | θ) in Eq. (10) , can be estimated by summing p(f, m | θ) on the intensity bins of the other image, i.e., over m and f, respectively. p F (f) =  m ∈L M p(f, m | θ) = 1 |X |  x ∈X K f −I F (x ) σF (12) p M (m | θ) =  f∈L F p(f, m | θ) = 1 |X |  x ∈X K m −I M (T θ(x )) σM (13) 2.2.3. Normalized mutual information The normalized mutual information (NMI) is defined as NMI = H(I F (x )) + H(I M (T θ(x )) H(I F (x ) , I M (T θ(x )) =  f∈L F  m ∈L M p f, m | θ·lo g 2 p F ( f ) ·p M m | θ  f∈L F  m ∈L M p f, m | θ·lo g 2 p f, m | θ = D E (14) with the aforementioned joint and marginal histograms described in Eqs. (11) - (13) . As proposed in [29] , we use a specifically defined second order polynomial kernel function for NMI metric: K(x ) =  −1 . 8 | x | 2 −0 . 1 | x | + 1 , if 0 ≤| x | < 0 . 5 1 . 8 | x | 2 −3 . 7 | x | + 1 . 9 , if 0 . 5 ≤| x | ≤1 0 , otherwise (15) 2.3. Regularization term As stated above, it is advisable to include a regularization term in the cost function to obtain realistic deformations. In this paper, the second order spatial derivatives have been used to define R (θ) as R θ= 1 | X |  x ∈X   ∂ 2 T θ( x ) ∂x 2 1  2 +  ∂ 2 T θ( x ) ∂x 2 2  2  = 1 | X |  x ∈X R 1 x ;θ2 + R 2 x ;θ2  = 1 | X |  x ∈X R 2 1 , 1 x ;θu , 1 + R 2 1 , 2 x ;θu , 2 + R 2 2 , 1 x ;θu , 1  + R 2 2 , 2 x ;θu , 2  (16) with R i,l the l-th component of the vector function R i (x ;θ) = ∂ 2 T θ(x ) ∂x 2 i . Thus, we can use the same procedure applied for the reformulation of the transformation in Eqs. (3) - (7) to the partial derivatives in Eq. (16) R 1 ,l (x ;θu,l ) = 1 2 1 C 2 1  u 1 = C 1 1 B  x 1 −p u 1 1 C 2 2  u 2 = C 1 2 B x 2 −p u 2 2 ·θu ,l = 3 R.-M. Menchón-Lara, F. Simmross-Wattenberg, M. Rodríguez-Cayetano et al. Signal Processing 202 (2023) 108771 = 1 2 1 B  [ x 1 / 1 ] ∗B [ x 2 / 2 ] ∗l [ x 1 , x 2 ] (17) where B  stands for the second order derivative of the B-spline function, which can be calculated analytically. A similar expression can be obtained for the components of the partial derivative R 2 (x ;θ) in Eq. (16) R 2 ,l (x ;θu,l ) = 1 2 2 B [ x 1 / 1 ] ∗B  [ x 2 / 2 ] ∗l [ x 1 , x 2 ] (18) Therefore, the convolutional formulation has been extended here for evaluating efficiently not only the transformations but also the regularization term. 2.4. Gradient evaluation As previously stated, the optimal set of deformation parameters θ= { θu ,l } = { θ(u 1 ,u 2 ) ,l } , with l = { 1 , . . . , L } —see Eq. (2) —, are found by minimizing the cost function in Eq. (1) ˆ θ= argmin θ C(θ) = argmin θ−S(θ) + λ·R (θ) (19) Therefore, ∇C(θ) must be evaluated at each iteration of the optimization process. The derivative of the cost function with respect to each component θu,l is defined as ∂C(θ) ∂θu,l = −∂S(θ) ∂θu,l + λ·∂R (θ) ∂θu,l (20) Our formulation also permits gradient evaluation with convolutions. However, only the gradient of the registration metric was addressed in [5] , i.e., the first term in Eq. (20) , and it was fully developed only for the sum of squares differences, which is a monomodal metric. Here, the convolutional approach to compute the gradient is applied to other multimodal registration metrics that comply with a sufficient condition. Furthermore, we show how the same procedure can be used to evaluate the gradient of the regularization term (second term in Eq. (20) ) as well. 2.4.1. Metric gradient The use of convolutions as a way to implement the gradient of the similarity function ( S(θ) ) between the images to be registered is possible whenever the derivative of the registration metric with respect to each component θu,l of the transformation parameters includes terms with the following structure  x ∈X S (I F (x ) , I M ( T θ(x )) , θ) ·∂I M (T θ(x )) ∂T θl (x )    V θl (x ) ·∂T θl (x ) ∂θu,l (21) where S = ∂S ∂I M , and θstands for a set of terms that are common ∀ x ∈ X . This is straightforwardly satisfied when the similarity function can be expressed as a function of terms that take the form  x ∈X S(I F (x ) , I M ( T θ(x )) , θ) (22) which is the case of SSD and NCC, as stated in [5] . However, other functions, such as MI and NMI do not satisfy Eq. (22) , although Eq. (21) is indeed satisfied. A detailed formulation for NCC, MI and NMI is included in Appendix A to arrive at (21) . From this expression, as we introduced in [5] , it is possible to obtain the following convolutional formulation: ∂S θ ∂θu,l =  x ∈X V θl ( x ) B x 1 −p u 1 1 B x 2 −p u 2 2 = s 12  x 1 = s 11 B x 1 −p u 1 1 s 22  x 2 = s 21 B x 2 −p u 2 2 V θl ( x 1 , x 2 )    =  s 12  x 1 = s 11 B x 1 −p u 1 1 ( x 1 , p u 2 )     (23) where s l1 = p u l −R l , and s l2 = p u l + R l , with R l the influence radius of the control points. Functions and correspond to discrete 1D convolutions at control point u , in coordinates x 2 and x 1 respectively. Function V θl (x ) has been defined in Eq. (21) . Hence: ∂S(θ) ∂θu,l = B  x 1 1  ∗B  x 2 2  ∗V θl [ x 1 , x 2 ] (p u 1 ,p u 2 ) (24) 2.4.2. Regularization term gradient As for the gradient of the regularization term R (θ) , similarly to the metric gradient, it can also be implemented with respect to the whole parameter set at once by means of convolutions. From the expressions defined in Eqs. (16) - (18) ∂R (θ) ∂θu,l = 2 |X |  x ∈X R 1 ,l (x ;θu,l ) ∂ R 1 ,l (x ;θu,l ) ∂θu,l + R 2 ,l (x ;θu,l ) ∂ R 2 ,l (x ;θu,l ) ∂θu,l = = 2 |X |  x ∈X D 1 ,l (x ;θu ,l ) +  x ∈X D 2 ,l (x ;θu ,l ) (25) The components of the term  D 1 ,l can be expressed as  x ∈X D 1 ,l x ;θu ,l = 1 2 1 s 22  x 2 = s 21 B x 2 −p u 2 2 s 12  x 1 = s 11 B ’ ’ x 1 −p u 1 1 R 1 ,l x 1 , x 2 ;θu ,l     = Y 1 2 1 s 22  x 2 = s 21 B x 2 −p u 2 2 Y ( p u 1 , x 2 )    = ζ 1 2 1 B ’ ’  x 1 1  ∗B  x 2 2  ∗R 1 ,l [ x 1 , x 2 ] ( p u 1 ,p u 2 ) (26) Functions ϒand ζare the results of 1D convolutions evaluated at control point locations, each of which along a different spatial dimension. A similar expression can be obtained for the components of the term  D 2 ,l in Eq. (25)  x ∈X D 2 ,l (x ;θu ,l ) = 1 2 2 B  x 1 1  ∗B   x 2 2  ∗R 2 ,l [ x 1 , x 2 ] (p u 1 ,p u 2 ) (27) 3. Results and discussion All experiments have been run using MATLAB R2020a on a standard PC workstation with Intel Core i7-4790 @ 3,6 GHz processor and 16 GB RAM. GPU executions were carried out on a nVIDIA Quadro RTX60 0 0 using MATLAB CUDA capabilities with no further parallelization work from our implementation. Throughout the experiments, our aim is to compare FFD-based convolutional PW registration with the implementation based on tensor products, on both CPU and GPU. 4 R.-M. Menchón-Lara, F. Simmross-Wattenberg, M. Rodríguez-Cayetano et al. Signal Processing 202 (2023) 108771 Fig. 2. Graph of the experiment for empirical measurement of execution times on CPU and GPU as a function of image size and control point spacing for both the tensor products approach and our convolutional proposal. Fig. 3. Speed-up achieved using the proposed convolutional approach versus the tensor product approach (time prod./time conv.) for image sizes 256 ×256 (solid line) and 512 ×512 (dashed line) for different resolutions of control point grid: (a) speed-up from Matlab executions on CPU; (a) speed-up from Matlab executions on GPU. 3.1. Analysis of execution time as a function of image size and control point grid resolution In this section we mean to gain insight on the computational savings that can be obtained from each component of our convolutional formulation. The core of our proposal consists of the spatial transformation, T θ(x ) , described in Eqs. (2) - (7) , the regularization term, R (θ) , —Eqs. (16) - (18) —, the metric gradient, ∇S, — Eqs. (21) - (23) —and the gradient of the regularization term, ∇R , expressed in Eqs. (25) - (27) . The actual metric used is involved in ∇Sthrough the term S . In [5] , the computational cost in terms of number of operations of both the tensor product and the convolutional approaches was analytically derived. The obtained cost showed that the number of products needed for the proposed approach depends on the image size as well as on the control point grid resolution and, consequently, on the number of control points. Bearing this in mind, the execution times of the reformulated functions have been empirically measured on CPU and GPU for different values of the involved parameters (see the graph of the experiment in Fig. 2 ). To this end, arbitrary images and control point grids are used to evaluate the functions reformulated by convolutions in isolation. In order to make our analysis independent of the actual metric used, we have used a random value for S . Only one execution of the functions involved has been carried out, i.e., no iterations until convergence of the cost functions are measured in this experiment. Table 1 includes the measured execution times for the tensor product formulation (prod.) and the convolutional formulation (conv.) for one execution of functions T θ(x ) , R (θ) , ∇S— with S as indicated above— and ∇R . Different image sizes (256 and 512 pixels per dimension) and different control point spacings ( = { 8 , 12 } pixels) —which leads to different sizes of the control point grid— have been considered. The execution times have been obtained by means of the timeit and gputimeit Matlab functions in CPU and GPU, respectively. Both functions call the specified function multiple times and returns the median of the time measurements. The figures in this table indicate that our proposal significantly reduces execution times of the four functions, both on CPU and GPU, showing a dependence on the problem magnitude, i.e., on the image and grid sizes. As can be seen, evaluations of both ∇R and the ∇Sconstitute the most time-consuming functions in the optimization, excluded metric calculation. According to these data, the greatest time reduction is achieved for ∇R , which also represents the slowest function. 5 R.-M. Menchón-Lara, F. Simmross-Wattenberg, M. Rodríguez-Cayetano et al. Signal Processing 202 (2023) 108771 Table 1 Empirical CPU and GPU execution times in milliseconds for those functions that can be reformulated in terms of convolution operations. Experiments include two sizes of image and two control point resolutions ( , in pixels) leading to four different grids of control points. Times for the classical tensor product formulation (prod.) and the proposed convolutional approach (conv.) are shown, as well as the percentage of time reduction (R) and speed-up achieved using convolutions. Function Img. Size Grid CPU Execution GPU Execution prod. (ms) conv. (ms) R Speed-up prod. (ms) conv. (ms) R Speed-up T θ(x ) 256 ×256 12 21 ×21 4.68 0.81 82.7% ×6 2.06 0.44 78.6% ×5 8 31 ×31 5.06 0.90 82.2% ×6 2.10 0.43 79.5% ×5 512 ×512 12 43 ×43 27.42 2.72 90.1% ×10 2.50 0.45 82.0% ×6 8 63 ×63 28.18 3.18 88.7% ×9 2.47 0.45 81.8% ×5 R (θ) 256 ×256 12 21 ×21 6.95 1.59 77.1% ×4 2.30 0.90 60.9% ×3 8 31 ×31 7.15 1.83 74.4% ×4 2.28 0.96 57.9% ×2 512 ×512 12 43 ×43 36.83 4.53 87.7% ×8 3.07 0.99 67.8% ×3 8 63 ×63 37.70 5.34 85.8% ×7 3.09 1.04 66.3% ×3 ∇S256 ×256 12 21 ×21 9.61 2.93 69.5% ×3 6.47 0.63 90.3% ×10 8 31 ×31 10.78 2.89 73.2% ×4 7.63 0.64 91.6% ×12 512 ×512 12 43 ×43 45.57 10.31 77.4% ×4 34.21 0.67 98.0% ×51 8 63 ×63 50.88 9.90 80.5% ×5 39.94 0.65 98.4% ×61 ∇R 256 ×256 12 21 ×21 14.60 1.06 92.7% ×14 11.35 0.63 94.4% ×18 8 31 ×31 15.90 1.24 92.2% ×13 12.75 0.61 95.2% ×21 512 ×512 12 43 ×43 79.20 3.96 95.0% ×20 63.87 0.62 99.0% ×103 8 63 ×63 85.40 3.44 96.0% ×25 70.93 0.62 99.1% ×114 Fig. 4. Example of cardiac first-pass perfusion images. Short-axis view of a medial slice of the heart. From left to right: previous to contrast arrival; contrast reaches the right ventricle (RV) cavity; contrast reaches the left ventricle (LV) cavity; myocardium enhanced; and final frame of the dynamic perfusion sequence. Fig. 5. Graph of the experiment for the alignment of 2D cardiac perfusion MRI sequences by pairwise image registration. 6 R.-M. Menchón-Lara, F. Simmross-Wattenberg, M. Rodríguez-Cayetano et al. Signal Processing 202 (2023) 108771 Fig. 6. Visual results for 2D sequential elastic pairwise (PW) registration of dynamic cardiac perfusion MRI: (a) Frame selected as optimal reference with vertical and horizontal profiles (dashed lines); (b) vertical and horizontal temporal profiles of the original sequence; (c) temporal profiles of the registered sequence using NCC metric; (d) temporal profiles of the registered sequence using MI metric; (e) temporal profiles of the registered sequence using NMI metric. Additionally, Fig. 3 shows the speed-up achieved using convolutions instead of tensor products on CPU ( Fig. 3 a) and on GPU ( Fig. 3 b). These execution time accelerations have been empirically calculated from executions for different resolutions of the control point grid by considering all the functions included in Table 1 . In Fig. 3 , the variation of the convolutional improvement with respect to the image size and resolution of control point grid can be clearly appreciated. For an image size of 256 ×256 pixels, again without taking into account the time for metric evaluation, each iteration of the optimizer is at least 5 times faster using the proposed approach on CPU. The speed-up is even higher on GPU, with execution time improvements above ×10. These values are significantly increased for smaller values of , i.e., as a denser control point grid is considered and, therefore, the computational load of the tensor product approach increases. A similar trend is observed for the case of an image size of 512 ×512 pixels. In this case, the execution time improvement is greater, with figures above ×7 and ×30 faster on CPU and GPU, respectively. Although calculation of the registration metric has been excluded in the analysis presented here, it does play a key role in the computational efficiency of a registration procedure, as we show next. 3.2. 2D Cardiac perfusion magnetic resonance images The multimodal scenario used in this paper to analyze the proposed convolutional formulation for FFD based registration is the alignment of contrast-enhanced first-pass perfusion cardiac MRI, hereinafter referred to as cardiac perfusion MRI. Perfusion MRI uses a T 1 -weighted acquisition sequence and requires the injection of a contrast agent that gives rise to a shortening of the T 1 relaxation time of the tissues. Thus, signal intensity increases when the contrast agent uptake by a given tissue takes place. Therefore, this translates to changes in the image intensities of the acquired image sequence (see Fig. 4 ). In particular, cardiac perfusion MRI is used to study the blood supply to the myocardium in order to detect and evaluate myocardial ischemia, for which a precise analysis of the temporal curves of contrast concentration in different regions of the myocardium is carried out. The evaluation of these perfusion curves requires the correct alignment of the image sequence, since several sources of motion, such as patient breathing and inaccuracies in the cardiac triggering during acquisition, may cause misalignment among the images. The test dataset used here includes 12 cardiac perfusion MRI sequences acquired with a Philips Intera 1.5 T scanner using a fast field echo MAG prepared gradient recalled sequence with spatial presaturation. All images have 288 ×288 matrix size, whereas the number of frames ranges from 132 to 188 with spatial resolution from 1.250 to 1.840 mm 2 , depending on the subject. For each perfusion MRI study, the alignment procedure is carried out by registering each image frame to a preselected reference image sequentially. Therefore, a total of N −1 PW registrations are executed for each one of the perfusion sequences, with Nthe number of frames (see Fig. 5 ). For the reference selection, we use the unbiased template estimation method proposed in [30] . The spacing between control points is set to 15 mm, since this spacing showed the best results with this dataset in a previous work [31] . Furthermore, the optimizer used is the iterative non-linear conjugate gradient algorithm [32] , with the maximum number of iterations set to 100. It is worth mentioning that other alternatives may be used to reduce the computational cost of the optimization, such as undersampling strategies and the adaptive stochastic gradient descent algorithm. However, these additional optimizations have not been considered in this work since we focus on the comparative analysis of the efficiency achieved using the proposed convolutional approach with respect to the formulation based on tensor products. Figure 6 shows an example of the results of the sequential elastic PW registration of a cardiac perfusion MRI using the three multimodal metrics analyzed in this work: NCC, MI and NMI. Two temporal intensity profiles, marked with dashed lines on the reference image ( Fig. 6 a), are shown for the registered sequence using each metric ( Figs. 6 c- 6 e). Furthermore, the same profiles from the original non registered sequence are also included, in which the misalignments between consecutive frames can be appreciated ( Fig. 6 b). Moreover, as Fig. 7 illustrates with an example, there are no significant differences between the results for the convolutionbased PW registration and the classical implementation; the resulting aligned images, as well as deformations and the corresponding pixel displacements, are virtually identical. Fig. 8 supports this statement by showing boxplots of these differences; as can be seen, in all cases the interquartile ranges of the differences are below 0.2 pixels, and only one of the whiskers extends to the vicinity of 0.45 pixels, i.e., far less than half of a pixel. Table 2 includes specific execution times for the sequential PW registration of each one of the cardiac perfusion MRI sequences using NCC, MI and NMI with the classical formulation based on tensor products and the proposed reformulation based on con- 7 R.-M. Menchón-Lara, F. Simmross-Wattenberg, M. Rodríguez-Cayetano et al. Signal Processing 202 (2023) 108771 Fig. 7. Comparison between the proposed convolution-based registration and the classical tensor product methodology. Table 2 Results for 2D sequential elastic pairwise (PW) registration of each cardiac perfusion MRI study (ID) by using three multimodal similarity metrics: NCC, MI and NMI. Matlab execution times in minutes on CPU and GPU devices (Dev.) for the proposed convolutional approach (conv.) and the tensor product formulation (prod.) of the overall registration procedure. Number of frames of each sequence (N); resolution of images in mm/pixel (Res.); grid size of control points (Grid). ID N Res. Grid Dev. NCC Metric MI Metric NMI Metric prod. conv. prod. conv. prod. conv. 1 139 1.250 23 ×23 CPU 4.29 1.12 75.41 69.45 173.3 165.0 GPU 2.79 0.69 9.49 6.00 15.06 10.31 2 132 1.667 31 ×31 CPU 6.63 1.52 78.87 64.05 236.3 226.0 GPU 4.44 0.94 10.70 6.68 21.32 14.89 3 159 1.424 25 ×25 CPU 5.51 1.42 90.82 86.59 209.5 197.3 GPU 3.54 0.84 11.66 7.14 19.05 13.04 4 155 1.250 23 ×23 CPU 6.47 1.70 58.30 57.16 257.6 246.7 GPU 4.39 1.07 7.61 4.81 22.68 16.00 5 159 1.389 25 ×25 CPU 9.00 2.24 119.1 112.2 253.7 204.4 GPU 6.24 1.40 14.58 8.91 24.61 16.37 6 188 1.250 23 ×23 CPU 8.14 2.14 133.6 121.8 333.4 317.9 GPU 5.39 1.29 16.73 10.17 26.47 18.49 7 139 1.354 23 ×23 CPU 4.42 1.12 85.53 82.27 206.9 200.8 GPU 2.99 0.72 11.10 6.78 17.53 12.06 8 149 1.840 31 ×31 CPU 8.12 1.92 98.97 90.16 358.1 294.7 GPU 5.70 1.19 12.28 7.67 32.35 21.75 9 188 1.562 29 ×29 CPU 12.50 2.81 94.40 85.58 375.4 356.8 GPU 8.72 1.76 12.60 7.21 36.54 24.39 10 188 1.458 25 ×25 CPU 5.76 1.52 106.3 102.7 274.3 266.7 GPU 3.93 0.95 13.46 8.49 24.44 16.40 11 135 1.424 25 ×25 CPU 5.11 1.26 79.61 68.96 206.0 184.9 GPU 3.45 0.82 10.30 5.88 16.46 11.70 12 188 1.389 25 ×25 CPU 6.30 1.61 112.0 105.5 278.4 227.6 GPU 4.21 0.99 14.15 8.66 25.49 17.98 Conv. Time Reduction CPU 75.23% 7.64% 8.67% GPU 77.90% 38.90% 31.43% volution operations, both on CPU and GPU. As can be seen, our convolutional approach accomplishes lower registration times for all the perfusion sequences and metrics on both CPU and GPU. However, the execution time reduction is not uniform among the three multimodal metrics used. The improvement of the convolutional approach in the overall registration time is lower for MI and NMI metrics, as indicated by the mean reduction percentages highlighted in the last two rows of the table. As discussed below, this is due to the fact that the bottleneck in registration using MI and NMI is the calculation of the metric itself. However, as for NCC, the bottleneck is the evaluation of those functions that can be efficiently reformulated by means of convolutions and, hence, a great speed-up is observed. On the other hand, the time reduction percentages of the convolutional approach with respect to the tensor product formulation (see last two rows in Table 2 ) indicate that the gain achieved on GPU is greater than the gain on CPU. 8 R.-M. Menchón-Lara, F. Simmross-Wattenberg, M. Rodríguez-Cayetano et al. Signal Processing 202 (2023) 108771 Fig. 8. Boxplot of differences (in pixels, for the set of frames in each sequence) between pixel displacements obtained with the proposed convolution-based algorithm and the classical tensor product methodology. Fig. 9. Boxplots of CPU execution times in milliseconds for evaluating the spatial transformation (black), the metric gradient (blue) and the regularization term together with its gradient (red): (a) execution times for the tensor product approach; (b) execution times for the proposed convolutional approach; (c) speed-up achieved by the proposed reformulation (time prod. / time conv.). (For interpretation of the references to colour in this figure legend, the reader is referred to the web version of this article.) Fig. 10. Boxplots of GPU execution times in milliseconds for evaluating the spatial transformation (black), the metric gradient (blue) and the regularization term together with its gradient (red): (a) execution times for the tensor product approach; (b) execution times for the proposed convolutional approach; (c) speed-up achieved by the proposed reformulation (time prod. / time conv.). (For interpretation of the references to colour in this figure legend, the reader is referred to the web version of this article.) 9