State-of-the-art techniques for denoising functional MRI (fMRI) images consider the problems of spatial and temporal regularization as decoupled tasks. In this work we propose a partial differential equations (PDEs) -based algorithm that acts directly on the 4-D fMRI image. Our approach is based on the idea that large image variations should be preserved as they occur during brain activation, but small variations should be smoothed to remove noise. Starting from this principle, by means of PDEs we were able to smooth the fMRI image with an anisotropic regularization, thus recovering the location of the brain activations in space and their timing and duration.
Let $$$Ω$$$ be a 4-D (3-D space × time) domain and assume Neumann boundary conditions on $$$\partial Ω$$$. We defined a regularization process, based on gradient descent computed with PDEs, such that:
$$\frac{\partial I}{\partial t}=(1- \lambda) \frac{\bar H \star(I_0-H \star I)}{A}+ \lambda \frac{div(D \nabla I)}{B} \quad \text{(1)}$$
where $$$I_0$$$ and $$$I$$$ are the original and the denoised image respectively, $$$A=\|I_0\|$$$ and $$$B= \|div(D \nabla I_0)\|$$$ are normalization factors, $$$H$$$ is the hemodynamic response function4 (HRF), $$$\bar H$$$ is the time-reversed HRF, $$$\lambda$$$ is the regularization parameter and $$$D = \frac{\nabla I \nabla I^T}{\| \nabla I\|^2} \star G$$$ is the 4-D structure tensor of $$$I$$$ smoothed by the gaussian kernel $$$G$$$ ($$$\sigma _G=1$$$). In (1) the first term on the right is the data fitting term, which measures the correlation of the residual with $$$H$$$, and the second term minimizes image variations. The convolution with $$$H$$$ and $$$\bar H$$$ were computed only along the time dimension. After computing the operator $$$D$$$, we defined the directions of the image variations by an eigendecomposition of $$$D$$$ such that $$$D = Q \Lambda Q^T$$$, where $$$Q$$$ contains the orthogonal eigenvectors ($$$\theta_{1,2,3,4}$$$) of $$$D$$$ and $$$\Lambda$$$ contains their associated eigenvalues ($$$\lambda_1> \lambda_2> \lambda_3> \lambda_4 $$$). Finally, we recomputed the matrix $$$\tilde D = Q \tilde \Lambda Q^T$$$ as follows: the highest eigenvalue, $$$\lambda_1$$$, was set according to a function of $$$\| \nabla I \|$$$, i.e. $$$f(\|\nabla I\|)$$$, such that if $$$\| \nabla I \| >> 0$$$ the current voxel may be located on a edge and the smoothing is performed just along the other three directions (anisotropic smoothing). Otherwise, if $$$\| \nabla I \| \rightarrow0$$$ the smoothing will be isotropic in all the four directions. $$$\lambda_2$$$,$$$\lambda_3$$$,$$$\lambda_4$$$ were indeed set to 1 to perform an isotropic smoothing. After that, we replaced the operator $$$D$$$ in (1) with $$$\tilde D$$$.
As a proof of concept, similarly to previous works5,6, we scaled a 3-D activation map computed with the FMRIB Software Library (FSL) in the range [0,3], with a 2-mm isotropic resolution (Fig.1.a). We multiplied it by a piece-wise constant signal of 100s, with one onset of 40s (Fig.1.b). We corrupted the image with model noise, we convolved it with the HRF4 and we added gaussian noise thus simulating the fMRI time-courses $$$y(t)$$$. We regularized the image as showed above, and we recovered $$$u^*(t)$$$. Finally, to evaluate the results, we computed the root of the mean square errors (MSE) and standard deviation (STD) and the Pearson correlation and its STD between $$$u(t)$$$ and $$$u^*(t)$$$ averaged among the voxels belonging to the grey matter. We compared our results with those obtained using the Total Activation approach6 (TA), implemented in the iCAPs toolbox (https://miplab.epfl.ch/index.php/software/total-activation).
Fig.2 shows examples of regularized spatial maps and time series using our approach ($$$u^*_{PDEs}$$$) and the TA ($$$u^*_{TA}$$$). Fig.3 shows that the MSEs $$$\pm$$$ STDs change for different peak-SNRs (pSNRs) and that they are lower than the ones obtained using TA. Fig.4 shows that the activation recovered with our approach is more correlated with the ground truth, for different pSNRs, whereas the results obtained with TA are more sensitive to noise.
Both techniques succeeded at finding the activated regions, but the results obtained using our approach were closer to the ground truth in terms of amplitude and also of correlation between the simulated activations and the recovered ones, for different pSNRs. Our findings shows that our approach enabled us to solve a unique problem, coupling the space and the time dimension thus having to set just one regularization parameter, $$$\lambda$$$, rather than dividing it into two separate problems, i.e. time and space, as it was done by Farouj and colleagues6.
Fig. 2: (a) From left to right: spatial maps of the simulated functional MRI (fMRI) image $$$y$$$, ground truth activation $$$u$$$, recovered activation using the Total Activation (TA) approach $$$u^*_{TA}$$$ and our approach ($$$u^*_{PDEs}$$$). Each row correspons to a a different peak-SNR (pSNR): 6.54 dB, 5.99 dB, 5.9 dB, 3.93 dB from the top to the bottom.
(b) Reconstructed time series $$$u^*$$$ obtained with our approach $$$u^*_{PDEs}(t)$$$ (red) and the TA approach $$$u^*_{TA}(t)$$$ (blue) superimposed on the activation $$$u(t)$$$ (black) and fMRI signal $$$y(t)$$$ (green).