Gauge equivariant convolutional neural networks for diffusion MRI
Gauge ekvarijantne konvolucione neuronske mreže za difuzionu MRI
Hussain U, Khan AR.
2025 · Scientific reports · CC BY
Prevod na srpski je mašinski (Claude) i prikazan je radi čitljivosti; original je merodavan.
Abstract Diffusion MRI (dMRI) is an imaging technique widely used in neuroimaging research, where the signal carries directional information of underlying neuronal fibres based on the diffusivity of water molecules. One of the shortcomings of dMRI is that numerous images, sampled at gradient directions on a sphere, must be acquired to achieve a reliable angular resolution for model-fitting, which translates to longer scan times, higher costs, and barriers to clinical adoption. In this work we introduce gauge equivariant convolutional neural network (gCNN) layers for dMRI that overcome the challenges associated with the signal being acquired on a sphere with antipodal points identified. This is done by noting that the domain is equivalent to the real projective plane, , which is a non-euclidean and a non-orientable manifold. This is in stark contrast to a rectangular grid which typical convolutional neural networks (CNNs) are designed for. We apply our method to upsample angular resolution for predicting diffusion tensor imaging (DTI) parameters from just six diffusion gradient directions. The symmetries introduced allow gCNNs the ability to train with fewer subjects as compared to a baseline model that involves only 3D convolutions. Subject terms: Neuroscience, Medical research
Introduction Diffusion weighted imaging (DWI) or diffusion MRI (dMRI) is a type of imaging that conveys microstructural information of underlying tissue, by tracking the diffusion rate of water particles along different directions 1 . Applied to brain imaging, this gives dMRI the unique ability to map the integrity and direction of white matter tracts 2 and also the orientation and dispersion of neurites in grey matter 3 . Diffusion tensor imaging (DTI) is the most commonly used model applied to dMRI datasets, and it aims to predict the diffusion tensor at each location of the image 4 . The eigenvalues of the tensor provide useful rotationally-invariant micro-structural metrics, such as fractional anisotropy (FA) and mean diffusivity (MD). The first eigenvector of the tensor (V1), provides an estimate of the underlying direction of white matter fibres, and can be used to perform tractography for mapping white matter tracts in the brain. One of the drawbacks of dMRI and analysis techniques like DTI is that many images are required, one for each direction we want measure the diffusion rate along. Although theoretically the diffusion tensor only requires six directions to be fully determined mathematically, in practice more directions are needed to reduce noise, which translates into longer scan times and higher costs. Recently, many machine learning based methods for dMRI have been proposed to address this issue and reduce the noise generated from using fewer directions 5 – 9 . The earliest of these models, q-space deep learning (q-DL) 8 was able to show that a simple three-layer multi-layer perceptron (MLP) was able to accurately estimate diffusion kurtosis and neurite orientation dispersion and density imaging (NODDI) 3 parameters with fewer directions thereby reducing scan time by twelve-fold. However, this MLP approach did not take advantage of the inherent spatial correlation between voxels in doing so. Convolutional neural networks (CNNs) are a highly-effective means to leverage spatial correlations present in images. For a single scalar 3D image, one can easily employ 3D convolutions, but for dMRI, at each voxel, we have many signals, one for each direction the signal is sampled from in q-space. Thus, at each voxel the signal is realized on a unit sphere, with directions uniformly distributed on the sphere. Further, because of the inherent antipodal symmetry in the diffusion signals, the domain for the signal is actually the set of all unoriented lines from the origin of , i.e., the real projective plane, 10 . Standard CNNs, developed for computer vision tasks, make use of flat, orientable manifolds, and thus are not readily applicable to the non-euclidean and non-orientable nature of the real projective plane. To circumvent these obstacles, one approach taken by authors is to perform convolutions in the spectral space 5 . This approach has the advantage of easily implementing rotational equivariance by employing Wigner matrices acting on spherical harmonics 11 , however, a downside is that moving to spectral space introduces an extra level of processing. Another approach is to limit the domain to six predefined directions, then apply regular 3d convolutions while taking the six directions as different channels 6 . Although this method has the advantage of readily using available 3D convolution toolboxes, the directions sampled must be fixed to these six directions, which is rarely the case in practice. Further, this approach does not have the rotational equivariance property. Another promising approach is to use models developed for natural language processing (NLP) like the attention based transformer architecture 7 , 12 . However, this requires substantially more subjects for training, which is infeasible in many research or clinical applications. Also, similar to 6 , it requires six predefined directions and lacks rotational equivariance. In this work we apply the theory of gauge equivariant CNNs (gCNNs) 13 , 14 to introduce convolutional layers for the real projective plane, , and apply these to the problem of denoising DTI metrics derived from six directions. Using gCNNs allows us to perform convolutions on non-euclidean manifolds, and by modelling as the top half of an icosahedron we are able to take convolutions on a non-orientable manifold as well. In addition, we are not limited to a predefined and fixed set of diffusion gradient directions, as our approach can be applied with any set of uniformly distributed directions. With the accompanying open-source implementation, these generalizations should allow the gCNN layers developed here to be applied to other dMRI related problems or architectures where the signal is acquired on a unit sphere with antipodal symmetry. As we will see below, a particularly beneficial side-effect of using gCNNs is a higher learning efficiency brought about by manually rotating and reflecting convolution kernels, as opposed to learning these transformations, and as a result we are able to reach reasonable accuracy levels with significantly fewer training subjects. Theory The theory of gCNNs is developed in 14 , which is then elegantly applied to the icosahedron in 13 . For completeness we review some aspects of the theory relevant to this work, and show how it can be applied to the real projective plane, , which is the manifold of interest for dMRI. Gauge transformations A gauge usually means a choice of some reference point. E.g., in a literal gauge like a speedometer, we calibrate the needle to a zero on the markings, and measure speed against that zero. This idea also applies when viewing coordinate systems as a reference, and then coordinate transformations are a type of gauge transformation. One simple example of a gauge transformation is a rotation of the 2d Cartesian plane by some angle. More formally, following the notation and definitions of 13 , we define a gauge as a position-dependent invertible linear map where is the tangent space of a d -dimensional manifold M at point p . If is the standard Cartesian frame of then is the frame in . A gauge transformation, , is a position-dependent mapping where is the general linear group (the group of invertible matrices). To apply the gauge transformation, one composes with , i.e., . In addition, components of a vector, v , in the basis , transform as , leaving the vector invariant. We can see this invariance in the previous example of the 2D plane and the standard Cartesian basis, now is the identity map, and is a rotation matrix, R . Let and . Then for a vector, V , we have , where and are the x and y components of the vector. Under a coordinate rotation we have , and , in the new basis . In general, at a point p on M , we have other fibres of which d -dimensional vectors in are a special case. For the purposes of neural networks, a natural object to consider is a feature field f with C channels. If under a gauge transformation, f transforms as , we will call f a -field where is a representation of G . For example, consider a change of coordinate systems in d -dimensional Cartesian space by a constant translation, . Then a vector transforms as , where J is the Jacobian matrix. On the other hand, a complex valued function , transforms as . Here the Jacobian matrix is an element of but is an element of (in this particular example we have to extend our field of numbers from real to complex). To arrive at the definition of gauge equivariant convolutions we need one more ingredient, the exponential map. Let be a geodesic such that and the geodesic tangent is . Then, the exponential map is defined simply by . This map walks a point along the geodesic starting at p with velocity || V || for one unit of time arriving at 15 . Gauge equivariant convolution Suppose we have a feature map which is a -dimensional -field, f . We define the following convolution 13 : 1 where , is the kernel, and is the transformation that undergoes as it is transported to p . Under a gauge transformation these objects transform as, 2 3 In addition, we require that be a -field, i.e., it should transform as, . This is achieved if and only if, 4 for all . Group convolutions of hexagonal filters In this study we will be using group convolutions with hexagonal filters 16 . We fill first briefly review group convolutions for flat manifolds and then show how it connects with Equation 1 . For a group G , group convolution is abstractly defined as 14 , 17 , 5 where , is a feature map, is a filter, and is a Haar measure. For hexagonal filters the group G is the dihedral group, . As we will see below, since the manifold we are using is the real projective plane, , our group, , includes reflections in addition to rotations, giving 12 elements. Writing these elements out, we have, 6 where R is a rotation by . Letting for , we then have . We take S to be the reflection along the axis; this implies that RS is a reflection along the axis, is a reflection along the axis, and so on. To match the notation of the rotations we will denote reflections as , but note that this does not mean that the reflection is along the axis, but rather half of that. Consider the inverses of these operations, . For the inverse of reflections we have . This can be simplified further, noting that . The first equality comes from the fact that if you apply reflection twice it’s the same as identity, then the rest follows. This means that . With , let be the c -th channel of the input and be the hexagonal filter for the first layer 13 , 16 . Group operations on the filter are denoted as (omitting indices for clarity), and . Then the group convolution for the input (scalar) layers is given by 18 , 7 where denotes a typical spatial convolution, denotes the application of rotation, and denotes the application of a reflection. After the convolution, we add the bias, , and apply a non-linearity , 8 where . Layers after the first one are called group-convolutional, or “regular” layers, since the input now has both a spatial argument and rotation/reflection argument. This means that the filters will also have rotation/reflection arguments, . For these layers, consider first the convolution where we restrict the filter only over rotations, 9 where, 10 Going from the first line to the second we have used the group multiplication rule, i.e., . The third line follows from our notation for rotated filters, and in the fourth line, denotes spatial convolution and we introduce the notation, 11 Following similar steps we can show that, 12 where, 13 Restricting the filter argument over reflections we get, 14 where, 15 16 Note that in the Equation 9 we inevitably have two summations, one over the input channels and one over the group elements. To make the connection with the gauge equivariant convolution, Equation 1 we will stack these summations into one channel dimension 13 . Then we have at point, p , 17 18 This stacking allows us to express the group convolution in the form of Equation 1 with . In Figure 1 we see this stack of filters, where the first column shows how a filter, is expanded for scalar inputs, i.e, rotations/reflections of the the filter. For regular layers, the treatment is different as now we also have an extra dimension , denoted by different colors in Figure 1 . The rows show the action of operators and . Notice how and permute within their blocks with actions of , but the blocks as a whole also permute with action of . This is because a rotation followed by a reflection produces a reflection, and two consecutive reflections produces a rotation. Here we can see that for scalar layers we have 12 times more computations and for deeper layers we have more computations as compared to regular convolutions with the same number of dimensions. Fig. 1 This is an illustration of the group operations on an input layer filter, i.e., scalar layer, and deeper (regular) layers. For the scalar layer we see a simple rotation and reflection of the hexagonal filter. On the other hand, for regular layers, we have an extra dimension, for previously applied group operations. This is depicted horizontally with the different colors. The vertical axis shows the effect of the operations and . The half icosahedron and padding In dMRI the signal is assumed to have the following form 19 , 19 where is a constant, is the diffusion tensor field, is a unit vector, and b is the b-value. In a typical dMRI acquisition there will be many images, , such that the unit vectors are spread evenly over a sphere. We can see from Equation 19 that the signal has antipodal symmetry, i.e., it is invariant under the transformation . Hence, we assume that the data from dMRI is a function of all unoriented lines from the origin of , i.e., the real projective plane, . A topological model of can be constructed by a sphere with antipodal sides points identified and then extracting the top hemisphere of such a sphere 10 . This top hemisphere can then be flattened in a manner analogous to the treatment in 13 . This procedure is illustrated in Figure 2 . Fig. 2 This figure illustrates how a signal and feature maps on the icosahedron are padded, and mapped to a rectangular grid. In ( a ) we see the five square charts with the blue arrow showing the y -axis and the red arrow showing the x -axis. Also labelled in ( a ) are the regions where the charts overlap, the bottom strip overlaps due to antipodal identification. In ( b ) and ( c ) we see how the unit vectors, blue and red, are related to the unit vectors purple and orange, respectively, of the chart on the left by counter-clockwise rotation of . In d) we see an example of how antipodal identification on the bottom strip leads to a reflection that swaps the x and y axes. In ( e ) we see how a scalar signal is mapped to the rectangular grid. In ( f ) we see the first six directions for the HCP dataset for 40 training subjects. Following the procedure of 13 , a hexagonal grid on the half icosahedron can be constructed from series of grid-refinement steps. Let be the grid consisting of only the corners of . We may then take each triangular face and subdivide it into four smaller triangles which introduces three new points on the mid-points of the edges of the original larger triangles. This process can be repeated r times to obtain a refined grid, . The half icosahedron, , has an atlas that consists of five overlapping charts. A chart is an invertible map , where and . For each chart we define an exterior , which consists of border pixels, and an interior , consisting of all pixels that have neighbours in the same chart i . To ensure that each pixel (except for the 11 corners) in is occupied by a chart, a strip is added added to the left and bottom of each chart as shown in Figure 2 . Note in Figure 2 a) that some points in the bottom strip are outside the half icosahedron, , but due to antipodal identification in our topological model they are identified with pixels on . For a point we choose a gauge, , which is illustrated with red (x-axis) and blue (y-axis) in Figure 2 a). Let and be the orthonormal basis vectors for , then is given by the Jacobian of , . The basis vectors and make an angle of and are aligned with the grid. Certain pixels, , are occupied by multiple charts, for example, in the edges of each chart, either due to sharing an edge or due to antipodal identification. Another example is points on the added strips which are clearly in an overlap of charts, or when some of these points are in multiple charts due to antipodal identification. Note that the basis vectors at such a point p may not coincide, i.e, may not be the same as for . To switch from one chart to another we have to apply a gauge transformation . In Figure 2 b) and c) we see how the x -axis (red) and y -axis (blue) vectors of a chart compare with the those of a chart on its left. The gauge transformation in this case is a counter clockwise rotation of 60 on the left charts vectors to align them on the overlap. This gauge transformation is conveniently an element of the group . Figure 2 d) shows how vectors transform as we move to an antipodal point: the x -axis (orange) and y -axis (purple) swap. This gauge transformation, a reflection, is the element of the group . In accordance with these gauge transformations, we can pad the input and the activation maps between convolutions. Figure 2 e) shows the padding for a scalar input. There are five square charts, each with dimension . Adding the padding strips on the left and bottom, we have dimension , and finally stacking them gives dimensions . The left strips are padded with neighbouring charts, and the bottom strips are padded with antipodal points. Note that after the first layer, activation maps will have dimensions . In this case the padding is similar, but we have to pad from the appropriate dimension. For example, when padding the left strip of a particular chart in the dimension we take values from the dimension, when padding the top we take values from the , and when padding the bottom and right we take values form the dimension. Note that we pad the right column of each of the five charts after each convolution since the neighbouring column to that is a padding strip for the next chart. Methods Data We use dMRI data from the Human Connectome Project (HCP) Young Adult 3T study, WU-Minn S1200 release 20 . Informed consent was given by each participant, all methods and experimental protocols had approval from the Washington University Institutional Review Board (IRB) and were in accordance with relevant guidelines and regulations. The dMRI acquisition is multi-shell with b-values of 0, 1000, 2000, and 3000 s/ with approximately an equal number of directions on each non-zero b-shell and an echo spacing of 0.78 ms. The resolution is 1.25 mm and the voxels are isotropic. For this work we use the first 90 directions from the 1000 s/ shell and use FSL’s 21 to obtain the fractional anisotropy (FA) and primary eigenvector , these two quantities serve as the ground truth. We use 40 random subjects for training and 25 random subjects for testing. We also calculate a brain mask that excludes the cerebrospinal fluid (CSF) using Freesurfer’s mri_binarize with flags and ( https://surfer.nmr.mgh.harvard.edu ) 22 – 24 . In addition to the dMRI data we also utilize the structural and weighted images which are downsampled with cubic spline interpolation to match the resolution of the diffusion images at 1.25mm. All input data are normalized to have a mean of zero and a standard deviation of one 25 . Network The fundamental network architecture we follow is a residual network 26 . As shown in Figure 3 , we have two models; depicted in the grey box is the baseline model which consists of two blocks of 3d convolutions. The first block is denser, followed by another block of 3d convolutions consisting of four layers. Taking the output of the first block of 3d convolutions and passing it instead through four layers of gauge equivariant layers gives the architecture of the second model. Both architectures are trained independently of each other. Fig. 3 This figure shows the two main architectures we used. The input to each is and for which are volumes corresponding to six diffusion gradient directions. Each volume is broken into patches. The base model (top) is a residual network of 3d convolutions with each layer containing 246 filters with a kernel, followed by ReLU activations. The model with gauge equivariant layers (bottom) has a block with three 3d convolution layers, each containing filters with a kernel size of , followed by ReLU activation functions. These six channels are projected onto the top icosahedron mesh which is then flattened giving 64 channels with the voxels stacked into the batch dimension. The block is four layers of gauge equivariant convolutions with 64 filters each. The first layer has hexagonal filters containing seven weights followed by group convolutional layers with weights, each layer is followed by group batch norm and a ReLU nonlinearity. At the last layer we perform orientation pooling. Finally we put the batch dimension back into its 3d shape and add the inputs, after projection to the icosahedron, giving us volumes with shape where h and w are the height and width of the flattened icosahedron. The architecture is similar to the work of 6 with some differences, as opposed to a fixed frame of six directions (or rigid rotations of this frame), the directions are simply taken to be the first six in the acquisition; this is done to mimic an early stop of the scan session. This is possible since the HCP protocol made use of incremental acquisition schemes, which are designed to make sure an aborted scan would result in a reasonably uniform coverage of the sampling domain 27 . is the first image taken without diffusion gradients applied. To isolate the effects of just the gradient directions, we do not upsample this image and the same is used during predictions, which is another deviation from 6 . The input is blocks of , , , and six images corresponding to six gradient directions from the shell with b-value 1,000 s/ . Given the high memory consumption, we limit our batch size to one. For the gauge equivariant architecture, these blocks are passed through three 3D convolutional layers with non-linearities, filters of size and channels. This gives 64 channels for each of the six gradient directions. Then, the output of the first block of 3D convolutions is projected to the icosahedron. This is done by using inverse distance weighting interpolation to sample points on the icosahedron from the six directions for each of the channels. This is followed by averaging antipodal points and then flattening to the top half of the icosahedron as shown in Figure 2 . During this flattening, the voxels are moved to the batch dimension with the chosen and parameters. This is then passed on to four layers of gauge equivariant convolutions with hexagonal filters 16 , i.e., seven weights per channel, 64 channels, followed by group batch normalization layers and ReLUnon-linearity. In the final gauge equivariant layer, we use an orientation pooling layer to collapse the rotation/reflection direction 17 . Next, the batch dimension is put back into the original shape. Since this is a residual network to get the final output we have to add the inputs. This is done by taking the signal for the six directions, , and flattening it in the same way as the outputs of the 3d convolutions. We train the models to predict the signal as computed with the tensor model from the fully-sampled data Equation 19 , and not the actual acquired fully-sampled signal. We fit the parameters for this equation by using FSL’s https://fsl.fmrib.ox.ac.uk/ 21 . This gives us the diagonalized form of the diffusion tensor D , i.e, we get three eigenvectors and and their corresponding eigenvalues and . The metrics that are of particular interest are the first eigenvector, , and fractional anisotropy, which can be computed from the eigenvalues and is a measure of how anisotropic the diffusion process is. This approach of fitting to a modelled signal rather than the acquired signal results in more accurate and FA values after is performed on the predicted signal 6 . For the gauge equivariant model, we generate training labels in the following way, let be the projection of the signal at the six directions on to icosahedron followed by flattening to a rectangle as described above. Then we use the dMRI signal for 90 directions with b-value of 1000 s/ , and perform dtifit on it. This allows us to directly compute the signal on the icosahedron mesh using Equation 19 , letting this quantity be . The final training label is given by . For the baseline architecture a simple strategy is used, we have seven layers of 3d convolutions with 246 filters each. Here, we also generate the labels using Equation 19 but the signal is sampled along the same six directions as the input, since this is a residual architecture. These input directions are then added to that output at the end. For the gauge equivariant model training was performed with 5, 10 and 15 subjects, using a learning rate of , reduced by a factor of 0.5 on plateaus, number of epochs was 20 with a batch size of one due to memory constraints, and the loss function as mean squared error. For the baseline model there were two differences; training was performed on 5, 10, 15, 20, 30 and 40 subjects. The memory and time consumptions of the training are summarized in the Appendix, Table 1, the base model shown here is denoted simply as ’3d (base)’ and the one followed by gauge equivariant layers is denoted as ’3d Gauge’. Predictions were performed on 25 test subjects. Once the outputs were computed, for the gauge equivariant model, a single shell dMRI volume was created with a b-value 1000s/ , with directions taken to be the nodes of the icosahedron mesh. The baseline model simply outputs the same directions as the input. Once we have the volume from both models we perform dtifit to obtain FA and . To evaluate the performance of the network in predicting FA and , we compute the mean absolute difference (MAD) between ground truth values and predicted values where the mean is taken over all voxels within the mask that excluded CSF. This is also done for FA and values computed from the six direction volume without the enhancement from the network. Results and discussion Figure 4 shows the result of one of the test subjects out of the 25. In a) we have the results from the baseline model and b) the gauge equivariant model. The first column is the input followed by the predictions from each model trained with varying number of training subjects, 20, 30 and 40 for the baseline model in a), and 5, 10 and 15 for the gauge equivariant model in b). The next column shows the ground truth followed by the differences in the last column. The FA difference is an absolute difference whereas for the difference corresponds to the angle between the vectors, computed using the dot product formula. In the images the direction of the vector is encoded by color as is typical, where red represents left to right, green anterior to posterior and blue superior to inferior. Fig. 4 Panel ( a ) shows the results for the baseline model and ( b ) shows the results of the gauge equivariant model. The rows are FA and , respectively, the first column is the input, the next three columns are the results from increasing training subjects, the fourth column is the ground truth and the last column is the difference between the ground truth and the output from highest number of training subjects, for this difference is the angle between the vectors. A mask applied that removes the CSF regions. For the primary eigenvector , the colors encode the direction of the vectors, red represents left to right, green anterior to posterior and blue superior to inferior. Figure 5 shows the voxel density plots of the subject shown in Figure 4 . Here, the CSF voxels are excluded. The y -axis in all these plots is the ground truth FA, denoted . The x -axis in a) is defined as the difference between the ground truth FA, and the FA calculated from the input (first row), the baseline model trained with 40 training subjects (second row) and the gauge equivariant model trained with 15 training subjects (third row). The x -axis in b), , is the angle between the ground truth and the ’s calculated from the input (first row), the baseline model (second row) and the gauge equivariant model (third row). Fig. 5 This figure shows the metrics of the model as a density plot over the voxels in the same subject as Figure 4 . The three rows in ( a ) and ( b ) correspond to the input, baseline model (40 subjects) and gauge equivariant model (15 subjects), respectively. In all panels the y -axis is the ground truth FA, denoted by . In ( a ) the x -axis is defined so that corresponds to the being greater than the input, or model predictions. In ( b ) the x -axis is which is angle between the ground truth and input, or model predictions. In Figure 6 we see the effect the size of the training set has on the accuracy metrics for both models. For each of the 25 testing subjects we calculate on the CSF excluding mask the mean over voxels of absolute of and , then the mean of these quantities is taken over all subjects. Panels a) and b) show result for and respectively, with the orange line for the baseline model and the red line for the gauge equivariant model. Note that due to the relatively high time consumption of the gauge equivariant model, we train up to 15 subjects. Fig. 6 This figure shows the effect of training sample size on the accuracy metrics for both the baseline model (orange) and the gauge equivariant model (red). Panel ( a ) shows the metrics for FA and panel ( b ) for . Each point is calculated by taking the mean absolute difference per subject and then averaging this over all 25 subjects. The error bars show the standard deviation. Compared to the baseline model that uses just 3D convolutions the gauge equivariant model performs better with fewer training subjects. A particular weakness of the baseline model is that, given the residual architecture, the inputs need to be added to the outputs and hence the number of directions needs to be kept at six, this limits the accuracy of the dtifit fitting procedure. Although, as more subjects are added the accuracy of the baseline model improves reasonably well. This limitation is addressed in the gauge equivariant model by projecting the input onto the icosahedron which has many vertices, each vertex corresponding to a volume. Importantly, this projection is done in a manner that is not dependent on the directions that the dMRI signal is acquired on. This coordinate independence on is achieved with an elegant uniting of group convolutions and padding on different coordinate patches on the icosahedron, i.e., the five grids in Figure 2 a). As demonstrated in Figure 2 f) the first six directions in the HCP acquisition scheme are not completely aligned amongst subjects. In the baseline model there is no straightforward way to address this variability and it is assumed that the six input and output directions correspond to exactly the same directions in all training subjects. In the gauge equivariant model, however, this inter-subject variability is tracked as each subject gets projected on to the icosahedron based on the exact gradient vector. In the Appendix, Table 2, we show the effect on the accuracy metrics when the input gradient vectors are modified. Here, ‘Regular’ is with no modification, for ’Rotation’ a random rotation matrix (three random Euler angles) per subject is applied to the gradient directions, for ’Random’ six random gradient directions are chosen per subject. Note that for both these latter cases each test subject is modified with its own random matrix and random sampling of six vectors. Also, here the base model is the one labeled ‘3d’ and the improved model is labeled ’3d Gauge’. Also shown in Appendix, Figure 1 is a summary of the predictions, for one subject, under each type of modification of the input gradient directions and the different models used. In Table 2 we can see that for the model involving gauge equivariant layers remains approximately the same in the ‘Rotation’ column, providing empirical verification of the rotation equivariance of the layers. The base model, on the other hand, has no built in rotational equivariance as the six output channels are always fixed to the same directions. For the random sampling of the gradient directions, we see a degradation in the accuracy metrics, suggesting that data augmentation with random directions would be needed during training. In the Appendix, Table 3, we have also shown the accuracy metrics in each brain ROI, here we see typical results, for example, regions with a high FA like the corpus callosum (CC) have a better accuracy, whereas more complex regions like the hippocampus have worse accuracy metrics. Typically we note that areas in which the base model performs well the gauge model performs better, with no increased gains by the gauge model in a specific area. In Figure 6 we see another improvement of the gauge equivariant model which is data efficiency, the model is able to use the training data well and is able to achieve good results with just 15 training subjects. Data efficiency is an expected result of equivariant models 13 , and it arises from the architectural requirement for gauge equivariance, where the same convolution kernel is rotated and reflected. These rotated and reflected kernels then don’t have to be learned from more data. This also brings us to the main limitation of the gauge equivariant model, which is its memory and time consumption. In the Appendix, Table 1, we can see that the models involving gauge equivariant layers take considerably more time and memory compared to the base model. This is because each kernel has many versions, they have to be saved in memory and convolutions with every version need to be computed. This limitation is what led us to limit training to 15 subjects for the gauge equivariant model (Figure 6 ). Thus, we see the gauge equivariant approach as a suitable choice in instances where training datasets are small. Conclusion In this work we have laid out the foundations of gauge equivariance that are relevant for dMRI, we achieved this by applying the abstract theory of 13 to , where we found that the non-orientable nature of this manifold necessitates reflections of the filter in addition to rotations. We applied our model to the problem of denoising DTI metrics as derived from using only six diffusion gradient directions. We found that the gauge equivariant model performs significatly better than the baseline model that consists of only 3D convolutions. Particularly, since rotated and reflected filters are given as priors and are not learned by the network, the model is data efficient and requires significantly fewer subjects to train as compared to the baseline model. However, this data efficiency comes at a cost of high memory and time consumption, which is a limitation of this approach. We have implemented these layers as an open source package and they can be utilized in other convolutional architectures involving the dMRI signal. In future studies we aim optimize the implementation of these layers to address memory and time challenges. Such improvements can allow us to practically explore other types of applications, like, larger datasets, kurtosis, NODDI, longitudinal studies, disease detection, and clinical adoption. Supplementary Information Supplementary Information. Acknowledgements Data were provided [in part] by the Human Connectome Project, WU-Minn Consortium (Principal Investigators: David Van Essen and Kamil Ugurbil; 1U54MH091657) funded by the 16 NIH Institutes and Centers that support the NIH Blueprint for Neuroscience Research; and by the McDonnell Center for Systems Neuroscience at Washington University. During the course of this study UH was supported by a postdoctoral fellowship award from the Canadian Open Neuroscience Platform (CONP) and AK was supported by the Canada Research Chairs program #950-231964, NSERC Discovery Grant #6639, and Canada Foundation for Innovation (CFI) John R. Evans Leaders Fund Project #37427, the Canada First Research Excellence Fund, and Brain Canada. This research was enabled in part by the support provided by the Digital Research Alliance of Canada (formerly Compute Canada) ( www.computecanada.ca ) Author contributions Study conception and design: UH, AK Theory, and implementation of code: UH Interpretation of results:UH, AK Manuscript preparation: UH, AK Data and code availability The open source code for this can be found at https://github.com/khanlab/dgcnn . The HCP dataset is openly available at https://www.humanconnectome.org/ . Declarations Competing interests The authors declare no competing interests. Footnotes Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Supplementary Information The online version contains supplementary material available at 10.1038/s41598-025-93033-1. References 1. Soares, J. M., Marques, P., Alves, V. & Sousa, N. A hitchhiker’s guide to diffusion tensor imaging. Frontiers in neuroscience 7 , 31 (2013). 2. Lebel, C., Treit, S. & Beaulieu, C. A review of diffusion MRI of typical white matter development from early childhood to young adulthood. NMR in Biomedicine 32 , e3778 (2019). 3. Zhang, H., Schneider, T., Wheeler-Kingshott, C. A. & Alexander, D. C. NODDI: practical in vivo neurite orientation dispersion and density imaging of the human brain. Neuroimage 61 , 1000–1016 (2012). 4. Alexander, A. L., Lee, J. E., Lazar, M. & Field, A. S. Diffusion tensor imaging of the brain. Neurotherapeutics 4 , 316–329 (2007). 5. Müller, P., Golkov, V., Tomassini, V. & Cremers, D. Rotation-equivariant deep learning for diffusion MRI. arXiv preprint arXiv:2102.06942 (2021). 6. Tian, Q. et al. DeepDTI: High-fidelity six-direction diffusion tensor imaging using deep learning. NeuroImage 219 , 117017 (2020). 7. Karimi, D. & Gholipour, A. Diffusion tensor estimation with transformer neural networks. Artificial Intelligence in Medicine , 102330 (2022). 8. Golkov, V. et al. Q-space deep learning: twelve-fold shorter and model-free diffusionMRI scans. IEEE transactions on medical imaging 35 , 1344–1351 (2016). 9. Cheng, H. et al. Denoising diffusion weighted imaging data using convolutional neural networks. bioRxiv (2022). 10. Frankel, T. The geometry of physics: an introduction (Cambridge University Press, 2011). 11. Tung, W.-K. Group theory in physics (World Scientific, 1985). 12. Vaswani, A. et al. Attention is all you need. Advances in neural information processing systems 30 (2017). 13. Cohen, T., Weiler, M., Kicanaoglu, B. & Welling, M. Gauge equivariant convolutional networks and the icosahe330 dral CNN in International Conference on Machine Learning (2019), 1321–1330. 14. Cohen, T. & Welling, M. Group equivariant convolutional networks in International conference on machine learning (2016), 2990–2999. 15. Lee, J. M. Introduction to Riemannian manifolds (Springer, 2018). 16. Hoogeboom, E., Peters, J. W., Cohen, T. S. & Welling, M. Hexaconv. arXiv preprint arXiv:1803.02108 (2018). 17. Weiler, M., Hamprecht, F. A. & Storath, M. Learning steerable filters for rotation equivariant cnns in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (2018), 849–858. 18. Cohen, T. S. & Welling, M. Steerable cnns. arXiv preprint arXiv:1612.08498 (2016). 19. O’Donnell, L. J. & Westin, C.-F. An introduction to diffusion tensor image analysis. Neurosurgery Clinics 22 , 185–196 (2011). 20. Van Essen, D. C. et al. The Human Connectome Project: a data acquisition perspective. Neuroimage 62 , 2222–2231 (2012). 21. Jenkinson, M., Beckmann, C. F., Behrens, T. E., Woolrich, M. W. & Smith, S. M. Fsl. Neuroimage 62 , 782–790 (2012). 22. Fischl, B., Sereno, M. I. & Dale, A. Cortical Surface-Based Analysis: II: Inflation, Flattening, and a Surface-Based Coordinate System. NeuroImage 9 , 195–207 (1999). 23. Dale, A., Fischl, B. & Sereno, M. I. Cortical Surface-Based Analysis: I. Segmentation and Surface Reconstruction. NeuroImage 9 , 179–194 (1999). 24. Fischl, B. FreeSurfer. Neuroimage 62 , 774–781 (2012). 25. Goodfellow, I. Deep learning 2016. 26. Kim, J., Lee, J. K. & Lee, K. M. Accurate image super-resolution using very deep convolutional networks in 351 Proceedings of the IEEE conference on computer vision and pattern recognition (2016), 1646–1654. 27. Caruyer, E., Lenglet, C., Sapiro, G. & Deriche, R. Design of multishell sampling schemes with uniform coverage in diffusion MRI. Magnetic Resonance in Medicine 69 , 1534–1540 (2013). Associated Data Supplementary Materials Supplementary Information. Data Availability Statement The open source code for this can be found at https://github.com/khanlab/dgcnn . The HCP dataset is openly available at https://www.humanconnectome.org/ .
