# A Pilot Study of Diabetes Mellitus Classification from rs-fMRI Data Using Convolutional Neural Networks

Authors: Yunfei Liu; Xian Mo; Hao Yang; Yan Liu; Junran Zhang
Journal: Mathematical Problems in Engineering
 (2020)

---

## Abstract

Background. As a chronic progressive disease, diabetes mellitus (DM) has a high incidence worldwide, and it impacts on cognitive and learning abilities in the lifetime even in the early stage, may degenerate memory in middle age, and perhaps increases the risk of Alzheimer’s disease. Method. In this work, we propose a convolutional neural network (CNN) based classification method to help classify diabetes by distinguishing the brains with abnormal functions from the normal ones on resting-state functional magnetic resonance imaging (rs-fMRI). The proposed classification model is based on the Inception-v4-Residual convolutional neural network architecture. In our workflow, the original rs-fMRI data are first mapped to generate amplitude of low-frequency fluctuation (ALFF) images and then fed into the CNN model to get the classification result to indicate the potential existence of DM. Result. We validate our method on a realistic clinical rs-fMRI dataset, and the achieved average accuracy is 89.95% in fivefold cross-validation. Our model achieves a 0.8690 AUC with 77.50% and 77.51% sensitivity and specificity using our local dataset, respectively. Conclusion. It has the potential to become a novel clinical preliminary screening tool that provides help for the classification of different categories based on functional brain alteration caused by diabetes, benefiting from its accuracy and robustness, as well as efficiency and patient friendliness.


---

## Body

## 1. Background

Diabetes affects more than 451 million people (18–99 years) worldwide, and this figure will rise to 693 million by 2045; more surprisingly still, it is estimated that almost half of all people living with diabetes are undiagnosed [1]. It is a group of metabolic diseases characterized by hyperglycemia and frequently accompanied by complications. For many years, the most well-known complications caused by diabetes are dysfunction and failure of organs, like kidney, retina, peripheral nerve, and vasculature [2]. Children diagnosed with T1DM are more likely to perform poorly in school than their nondiabetic classmates and are particularly vulnerable showing impaired results on cognitive tests, learning abilities, and affecting memory [3]. There are now several studies demonstrating a linkage between T2DM and mild cognitive impairment (MCI) and Alzheimer’s disease (AD). The coexistence of cerebrovascular disease and T2DM enhances the correlation with MCI and the development of dementia [4]. Compared to nondiabetic individuals, several studies have demonstrated an increase of AD in T2DM patients [5]. Nowadays, clinical studies have shown that much more attention should be paid to the brain complications of diabetes, like diabetic encephalopathies and cognitive dysfunction. Diabetic encephalopathies are now accepted complications of diabetes, which manifest themselves as a gradual decline of cognitive function and result in brain structural lesions (neural slowing, increased cortical atrophy, microstructural abnormalities in white matter tracts) [6, 7]. There is a growing literature indicating that individuals with diabetes have impairments in recent memory [8], and the mechanism might be due to the fact that glucose transport is significantly reduced in diabetic animals [9]. Most of the current research has formed a consensus that DM affects brain function and brain structure, and the changes in brain function often precede those in brain structure. Previous studies have shown that white matter could alter after a six-week training period [10]. That is to say, the impact of diabetes on the brain is initiated from brain function and gradually extends to the brain structure. The reason might be that the long-term abnormal blood glucose level damages the cognitive function through its negative effect on target organs, namely, the central nervous system [11], which may help explain why animals that have abnormal glucose metabolism have more hippocampal damage [12]. Glucose borne by the blood accounts for 99% of the brain energy requirements, and metabolic substrate delivery also may influence brain function and structure [13]. What is more serious is that the damage is progressive and irreversible; in most cases, it will develop to dysfunction. It will cause patients to suffer long-term pain and seriously affect the quality of life. A few studies have indicated that reasonably controlling blood glucose with antidiabetic treatments on time may help prevent the dysfunction in diabetic patients [14]. Accordingly, the detection of diabetes mellitus and other changes in brain function can reduce the production probability of those serious complications; it also plays an important role in treatment planning and makes a positive influence on prognosis.As diabetic encephalopathy is a degenerative disease of the nervous system, we can choose to directly observe the degree of cognitive impairment of patients through modern imaging methods such as magnetic resonance imaging (MRI), so as to explore the correlation between it and diabetes. MRI imaging technology can be divided into structural modalities and functional modalities. Compared with structural images, functional images are more sensitive to early brain changes and so can better reflect earlier changes in brain function. fMRI uses oxygen consumption in brain tissue to determine whether a part of the brain is active in the resting state. The study found that the resting brain was not completely calm but had spontaneous BOLD signal fluctuations which account for 60 to 80 percent of the total energy consumed by the brain. A large number of studies have also shown that the inherent spontaneous neural activity signals of the brain at rest have important physiological significance [15]. Besides, resting-state functional MRI (rs-fMRI), which reflects the variation characteristics of spontaneous resting-level activities in resting state, has been increasingly applied in the field of brain science with unparalleled advantages recently. rs-fMRI is the preferred modality to investigate brain function due to its high temporal resolution and has already been used to measure spontaneous brain activity in patients with diabetes and to reflect changes in brain functional damage caused by diabetes encephalopathy [11]. We can observe the dysfunction degree directly through modern imaging modalities in a noninvasive way and explore its correlation with diabetes and its complication. By using rs-fMRI, researchers have demonstrated that diabetes is related to different indices of functional brain alterations, including regional homogeneity (ReHo) and amplitude of low-frequency fluctuations (ALFF) [16]. ALFF analysis is an important method for depicting the various characteristics of global rs-fMRI signals through measuring the intensity of neural activity at the single-voxel level and evaluating the differences in the amplitude of low-frequency oscillations of brains [17]. Abundant ALFF studies have demonstrated that the brain function of diabetic patients has changed. Previous studies by Cui et al. [16] showed that patients with T2DM had significantly decreased ALFF values in the postcentral gyrus and occipital lobe. Patients performed worse on several cognitive tests; the researchers speculated that this impaired cognitive performance was correlated with decreased activity in the cuneus and lingual gyrus in the occipital lobe. Recent studies by Xia et al. [18] indicated that T1DM patients showed significantly decreased ALFF values in the posterior cingulate cortex (PCC) and right inferior frontal gyrus compared with the healthy controls. Furthermore, they found a positive correlation between decreased ALFF values in the PCC and Rey–Osterrieth Complex Figure Test- (CFT-) delay scores in T1DM patients.Although ALFF has already been widely used in brain function research, the main analysis still follows the traditional ways (statistical analysis, functional connectivity analysis, and correlation analysis) depending on well-trained experts and is always qualitative and subjective. By contrast, we try to analyze the rs-fMRI sequence through deep learning technology and reflect the quantitative relationship between brain dysfunction and diabetes. In this work, we propose a learning-based classification model to distinguish the abnormal ALFF signals from the normal ones. We employ a convolutional neural network architecture to construct our model. The entire pipeline of the proposed method consists of three successive blocks, as shown in Figure1(a). This fully automated solution can process thousands of heterogeneous images quickly for accurate, objective diabetes detection. Furthermore, we seek to characterize the association between DM and brain function and structure. We study the differences in the brain function changes caused by diabetes between diabetic patients and healthy control groups to prove the reliability of the classification. All information learned in our end-to-end algorithmic pipeline is visualized through the Gradient-weighted Class Activation Mapping (Grad-CAM), and the subregions within the classified image are highlighted intuitively to further observe the extent of diabetes affecting different brain regions. The differential brain regions reflect the influence of diabetes on brain function and structure and provide some insights for the study of the brain complications of diabetes.Figure 1
The abstraction of the proposed algorithmic pipeline and visualization process. (a) The proposed Inception-v4-Residual network with seven parameter layers (about 0.09 million parameters). (b) Grad-CAM overview: Given an image and a class of interest as input, we forward-propagate the ALFF image through the CNN part of the model and then through the task-specific computations to obtain a raw score for the category. Then, the gradients are set to 0 for all classes except the desired class, which is set to 1. Finally, this signal is back-propagated to the parametric rectified convolutional feature maps of interest, which we combine to compute the coarse Grad-CAM localization (blue heatmap), which represents where the model has to look to make the particular decision.
(a)(b)


## 2. Methods

The pipeline of the proposed method is represented in Figure2.Figure 2
The pipeline of the proposed method.


### 2.1. Data

#### 2.1.1. Data Acquisition

Our retrospective study includes 47 patients with type 1 diabetes mellitus (denoted as “T1DM”), 73 patients with type 2 diabetes mellitus (denoted as “T2DM”), and 50 healthy controls (denoted as “HC”). Physicians make all the diagnoses according to the criteria from the American Diabetes Association [19]. All subjects are right-handed and undergo brain scans at the Huaxi MR Research Center of the West China Hospital. Exclusion criteria for all participants include a history of substance or alcohol abuse, a psychiatric or neurological disorder unrelated to diabetes, contraindications to MRI, and a history of a brain lesion such as tumor or stroke. Control subjects are excluded if they have a fasting blood glucose level ≥7.0 mmol/L, glucose level ≥7.8mmol/L after oral glucose tolerance test (OGTT).All rs-fMRI images are acquired via a Siemens (Erlangen, Germany) 3-Tesla Trio scanner. Subjects are instructed to relax, to keep their eyes closed but to remain awake, to keep their heads still during the scanning, and to avoid thinking of anything in particular. The functional images are recorded using an echo-planar imaging (EPI) sequence with the following parameters: repetition time/echo time (TR/TE)=2000/30ms, 90°flip angle, 240×240mmmm field of view (FOV), slice thickness/gap =5/0mm, 3.75×3.75×5mm3 voxel size, and 64×64 matrix resolution. No very obvious structural damage is found in any subject based on MRI scans, which are examined by two experienced specialists.


#### 2.1.2. Functional Image Preprocessing

The raw rs-fMRI data are preprocessed with the Statistical Parametric Mapping software (SPM8) on the MATLAB (R2013b) platform. The adopted preprocessing operation is shown in Figure1. The first 10 volumes of the scanning sessions are discarded due to the instability of the initial MRI signal and adaptation of the participants to the situation. The remaining volumes with size 61×73×61×170 are analyzed. For each subject, the remaining rs-fMRI images first undergo section-timing correction and are then are realigned. Here, participants with head displacement >2 mm in any x, y, and z direction and >2°in any angular dimension are excluded. After realignment, the resulting images are spatially normalized using 3 mm isotropic voxels. The last step is to smooth the images using a Gaussian kernel of 4 mm full width at half-maximum to improve signal-to-noise ratio and reduce the difference between individuals after standardization.


#### 2.1.3. Feature Mapping

ALFF measures the intensity of neural activity at the single-voxel level and can be calculated through the Data Processing Assistant for Resting-State fMRI (DPARSF) [20] (http://rfmri.org/DPARSF). After the above preprocessing, band-pass filtering (0.01−0.08 Hz) is performed on the time series of each voxel to remove the effect of low-frequency drift and high-frequency respiratory and cardiac noise [21]. For each subject, the time series of each voxel is transformed into the frequency domain using Fast Fourier Transform in turn, and the power spectrum is obtained. Then, the square root of the power spectrum is computed and averaged across a predefined frequency interval. The averaged square root is ALFF, an effective indicator of spontaneous neuronal or regional intrinsic activity in the brain [22]. Following the above steps, ALFF, the function map is generated for each subject.


#### 2.1.4. Training and Testing Dataset

Each participant is associated with a diagnostic label of 1 or 0 referring to DM or HC, confirmed by medical specialists. Our data augmentation protocol is as follows. Firstly, all images are normalized to0,1 and resized to the standard resolution of 73×73. Secondly, images are flipped horizontally or vertically to capture the reflection invariance. The final data transformation is brightness adjustment with one random scale factor α per image, sampled from a uniform distribution over −0.2,0.2. We add above transformations that extend the translation invariance, improve our model’s ability to generalize, and correctly classify images without a loss of accuracy. To address the imbalance of dataset categories, about 20% of the subjects from HC and DM are assigned to the testing data, and the remaining are used for training.


#### 2.1.5. Model and Visualization

A full diagram of the classification model can be viewed in Figure1(a), and the abstraction of the visualization process is represented in Figure 1(b).


#### 2.1.6. Classification Model

The network used in this study is inspired by the CNN architecture, Inception-v4-Residual, presented in [23]. It speeds up the flow of information, extracts features from different scales, accelerates network training, and avoids gradient disappearing. Limited by the amount of data, we simplify the original Inception-v4-Residual architecture into three integrated convolutional blocks (block1, block2 (Inception), block3 (Residual)), one average pooling (AvgPool) layer, and one fully connected (FC) layer, as depicted in Figure 1(a). All integrated blocks are stacked by basic blocks as follows.(1)Block1=Conv−BN−PReLU−MaxP,(2)BasicConv=Conv−BN−PReLU−Dropoutbranch1=BasicConvbranch2=BasicConv−BasicConvbranch3=BasicConv−BasicConv−BasicConvbranch4=AvgP−BasicConv,Block2=Concatbranch1,branch2,branch3,branch4,(3)Block3=BN−Conv−BN−ReLU−Conv−BN−ReLU−Conv−BN−Dropout,where branch1,branch2,branch3,branch4 in (2) refers to the concatenation of the feature maps produced in branch1,⋯,4. Conv is the convolutional layer which learns iteratively filters that transform the input into hierarchical feature maps. BN is the normalization layer used to normalize the activation for fast convergence and to improve performance [24]. A BN layer conducts an affine transformation with the following equation:(4)y=γx+β,where γ and β are learned for every activation in feature maps. Parametric Rectified Linear Unit (PReLU) [25] or Rectified Linear Unit (ReLU) [26] layer applies an elementwise activation function, such as the max αx,x or max 0,x thresholding, and does not change the size of the image volume, as defined by(5)xl=PReLUconvlxl−1,where convl represents a convolutional layer l, which returns the previous convolutional layer’s output volume. The pooling layer (MaxP or AvgP) performs a downsampling operation along the spatial dimensions to reduce hyperparameters and prevent overfitting. The key idea of dropout layer (dropout) [27] is to randomly drop units (along with their connections) from the neural network during training. This strategy prevents too much coadaptation of units, significantly reduces overfitting, and gives major improvements over other regularization methods. FC layer computes the class scores, resulting in a volume of several classes. As the name implies, each neuron in the FC layer will be connected to all the numbers in the previous volume [28, 29]. An abstraction of this feature-learning architecture is represented in Figure 1(a), and see Table 1 for detailed architectures.Table 1
Inception-v4-Residual architectures. Building blocks are shown in brackets (see also Figure1(a)).
Layer nameOutput sizeConvBlock137×373×3,16,stride2,padding119×193×3,max pool,stride2Block2inception19×191×1,16,stride119×191×1,16,stride13×3,32,stride1,padding119×191×1,16,stride13×3,16,stride1,padding13×3,32,stride1,padding119×193×3,stride1,padding11×1,8,stride1catbranch_all=Concatbranch1,branch2,branch3,branch4=88sumshortcut=1×1,88,stride1shortcut+branch_allBlock3residual9×91×1,44,stride13×3,44,stride21×1,88,stride1+3×3,88,stride2Adaptive average pool, 2d FC, softmax# Params.0.09 MFLOPs1×107Trunk depth7


#### 2.1.7. Implementation

Our implementation for Inception-v4-Residual follows the practice in [30, 31]. We initialize the weight as in [25] and train the Inception-v4-Residual network from scratch. We use Adam and SGD in the early and late stages of model training with a minibatch size of 10, respectively. The learning rate (lr) starts from 0.001, and the model is trained for up to 20×104 iterations. Figure 3 shows how the learning rate changes and how the optimizer is selected during training. We use weight decay of 0.0005 and momentum of 0.8. Since the data are relatively unbalanced, we also use the 2-class categorical focal loss for discrimination [32]. In practice, we use an α−balanced variant of the focal loss:(6)FLpt=−αt1−ptγlogpt,where t∈0,1 specifies the ground-truth class and pt∈0,1 is the model’s estimated probability for the class with a label t. A weighting factor α∈0,1 is applied for class t=0 and 1−α for class t=1. In practice, α is set by inverse class frequency, and we set γ=2 in our experiment.Figure 3
Schematic diagram of optimizer selection and dynamic adjustment of learning rate. Green: the initial lr decays by gamma = 0.5 every four epochs. Blue and red: after the 20th epoch, cyclical lr is a function of epoch. Epoch≤40: Adam. Epoch >40: SGD.


#### 2.1.8. Visualization Process

The efficient visualization process used in this work is Grad-CAM proposed by Selvaraju et al. [33]—for making any CNN based models more transparent by producing “visual explanations.” Grad-CAM uses the gradients of any target concept, flowing into the corresponding convolutional layer to produce a coarse localization map highlighting the most important regions in the image for predicting the concept. We apply Grad-CAM, a class-discriminative localization technique, to find characteristic brain regions that can classify diabetic patients. The procedure for generating these maps is illustrated in Figure 1(b).As shown in Figure1(b), to obtain the class-discriminative localization map Grad-CAM Ln,Grad−CAMc∈ℝμ×υ of width μ=73 and height ν=73 for any class c=2, we first compute the gradient of the score for the class c, yc with respect to feature maps Ank (A1k,A2k,A3k) of a convolutional block, i.e., ∂yc/∂Ank. These gradients flowing back are global-average-pooled to obtain the neuron importance weights αn,kc. The final localization map is calculated through (7) and visualized as a heatmap in Figure 1(b). The highlighted regions in the ALFF image might be used to help real-time clinical validation of automated detection in the future.(7)Ln,Grad−CAMc=PReLU∑k1Z∑i∑j∂yc∂An,ijk︷backprop gradients︷global average pooling:αn,kc⋅Ank︸linear combination.


## 2.1. Data

### 2.1.1. Data Acquisition

Our retrospective study includes 47 patients with type 1 diabetes mellitus (denoted as “T1DM”), 73 patients with type 2 diabetes mellitus (denoted as “T2DM”), and 50 healthy controls (denoted as “HC”). Physicians make all the diagnoses according to the criteria from the American Diabetes Association [19]. All subjects are right-handed and undergo brain scans at the Huaxi MR Research Center of the West China Hospital. Exclusion criteria for all participants include a history of substance or alcohol abuse, a psychiatric or neurological disorder unrelated to diabetes, contraindications to MRI, and a history of a brain lesion such as tumor or stroke. Control subjects are excluded if they have a fasting blood glucose level ≥7.0 mmol/L, glucose level ≥7.8mmol/L after oral glucose tolerance test (OGTT).All rs-fMRI images are acquired via a Siemens (Erlangen, Germany) 3-Tesla Trio scanner. Subjects are instructed to relax, to keep their eyes closed but to remain awake, to keep their heads still during the scanning, and to avoid thinking of anything in particular. The functional images are recorded using an echo-planar imaging (EPI) sequence with the following parameters: repetition time/echo time (TR/TE)=2000/30ms, 90°flip angle, 240×240mmmm field of view (FOV), slice thickness/gap =5/0mm, 3.75×3.75×5mm3 voxel size, and 64×64 matrix resolution. No very obvious structural damage is found in any subject based on MRI scans, which are examined by two experienced specialists.


### 2.1.2. Functional Image Preprocessing

The raw rs-fMRI data are preprocessed with the Statistical Parametric Mapping software (SPM8) on the MATLAB (R2013b) platform. The adopted preprocessing operation is shown in Figure1. The first 10 volumes of the scanning sessions are discarded due to the instability of the initial MRI signal and adaptation of the participants to the situation. The remaining volumes with size 61×73×61×170 are analyzed. For each subject, the remaining rs-fMRI images first undergo section-timing correction and are then are realigned. Here, participants with head displacement >2 mm in any x, y, and z direction and >2°in any angular dimension are excluded. After realignment, the resulting images are spatially normalized using 3 mm isotropic voxels. The last step is to smooth the images using a Gaussian kernel of 4 mm full width at half-maximum to improve signal-to-noise ratio and reduce the difference between individuals after standardization.


### 2.1.3. Feature Mapping

ALFF measures the intensity of neural activity at the single-voxel level and can be calculated through the Data Processing Assistant for Resting-State fMRI (DPARSF) [20] (http://rfmri.org/DPARSF). After the above preprocessing, band-pass filtering (0.01−0.08 Hz) is performed on the time series of each voxel to remove the effect of low-frequency drift and high-frequency respiratory and cardiac noise [21]. For each subject, the time series of each voxel is transformed into the frequency domain using Fast Fourier Transform in turn, and the power spectrum is obtained. Then, the square root of the power spectrum is computed and averaged across a predefined frequency interval. The averaged square root is ALFF, an effective indicator of spontaneous neuronal or regional intrinsic activity in the brain [22]. Following the above steps, ALFF, the function map is generated for each subject.


### 2.1.4. Training and Testing Dataset

Each participant is associated with a diagnostic label of 1 or 0 referring to DM or HC, confirmed by medical specialists. Our data augmentation protocol is as follows. Firstly, all images are normalized to0,1 and resized to the standard resolution of 73×73. Secondly, images are flipped horizontally or vertically to capture the reflection invariance. The final data transformation is brightness adjustment with one random scale factor α per image, sampled from a uniform distribution over −0.2,0.2. We add above transformations that extend the translation invariance, improve our model’s ability to generalize, and correctly classify images without a loss of accuracy. To address the imbalance of dataset categories, about 20% of the subjects from HC and DM are assigned to the testing data, and the remaining are used for training.


### 2.1.5. Model and Visualization

A full diagram of the classification model can be viewed in Figure1(a), and the abstraction of the visualization process is represented in Figure 1(b).


### 2.1.6. Classification Model

The network used in this study is inspired by the CNN architecture, Inception-v4-Residual, presented in [23]. It speeds up the flow of information, extracts features from different scales, accelerates network training, and avoids gradient disappearing. Limited by the amount of data, we simplify the original Inception-v4-Residual architecture into three integrated convolutional blocks (block1, block2 (Inception), block3 (Residual)), one average pooling (AvgPool) layer, and one fully connected (FC) layer, as depicted in Figure 1(a). All integrated blocks are stacked by basic blocks as follows.(1)Block1=Conv−BN−PReLU−MaxP,(2)BasicConv=Conv−BN−PReLU−Dropoutbranch1=BasicConvbranch2=BasicConv−BasicConvbranch3=BasicConv−BasicConv−BasicConvbranch4=AvgP−BasicConv,Block2=Concatbranch1,branch2,branch3,branch4,(3)Block3=BN−Conv−BN−ReLU−Conv−BN−ReLU−Conv−BN−Dropout,where branch1,branch2,branch3,branch4 in (2) refers to the concatenation of the feature maps produced in branch1,⋯,4. Conv is the convolutional layer which learns iteratively filters that transform the input into hierarchical feature maps. BN is the normalization layer used to normalize the activation for fast convergence and to improve performance [24]. A BN layer conducts an affine transformation with the following equation:(4)y=γx+β,where γ and β are learned for every activation in feature maps. Parametric Rectified Linear Unit (PReLU) [25] or Rectified Linear Unit (ReLU) [26] layer applies an elementwise activation function, such as the max αx,x or max 0,x thresholding, and does not change the size of the image volume, as defined by(5)xl=PReLUconvlxl−1,where convl represents a convolutional layer l, which returns the previous convolutional layer’s output volume. The pooling layer (MaxP or AvgP) performs a downsampling operation along the spatial dimensions to reduce hyperparameters and prevent overfitting. The key idea of dropout layer (dropout) [27] is to randomly drop units (along with their connections) from the neural network during training. This strategy prevents too much coadaptation of units, significantly reduces overfitting, and gives major improvements over other regularization methods. FC layer computes the class scores, resulting in a volume of several classes. As the name implies, each neuron in the FC layer will be connected to all the numbers in the previous volume [28, 29]. An abstraction of this feature-learning architecture is represented in Figure 1(a), and see Table 1 for detailed architectures.Table 1
Inception-v4-Residual architectures. Building blocks are shown in brackets (see also Figure1(a)).
Layer nameOutput sizeConvBlock137×373×3,16,stride2,padding119×193×3,max pool,stride2Block2inception19×191×1,16,stride119×191×1,16,stride13×3,32,stride1,padding119×191×1,16,stride13×3,16,stride1,padding13×3,32,stride1,padding119×193×3,stride1,padding11×1,8,stride1catbranch_all=Concatbranch1,branch2,branch3,branch4=88sumshortcut=1×1,88,stride1shortcut+branch_allBlock3residual9×91×1,44,stride13×3,44,stride21×1,88,stride1+3×3,88,stride2Adaptive average pool, 2d FC, softmax# Params.0.09 MFLOPs1×107Trunk depth7


### 2.1.7. Implementation

Our implementation for Inception-v4-Residual follows the practice in [30, 31]. We initialize the weight as in [25] and train the Inception-v4-Residual network from scratch. We use Adam and SGD in the early and late stages of model training with a minibatch size of 10, respectively. The learning rate (lr) starts from 0.001, and the model is trained for up to 20×104 iterations. Figure 3 shows how the learning rate changes and how the optimizer is selected during training. We use weight decay of 0.0005 and momentum of 0.8. Since the data are relatively unbalanced, we also use the 2-class categorical focal loss for discrimination [32]. In practice, we use an α−balanced variant of the focal loss:(6)FLpt=−αt1−ptγlogpt,where t∈0,1 specifies the ground-truth class and pt∈0,1 is the model’s estimated probability for the class with a label t. A weighting factor α∈0,1 is applied for class t=0 and 1−α for class t=1. In practice, α is set by inverse class frequency, and we set γ=2 in our experiment.Figure 3
Schematic diagram of optimizer selection and dynamic adjustment of learning rate. Green: the initial lr decays by gamma = 0.5 every four epochs. Blue and red: after the 20th epoch, cyclical lr is a function of epoch. Epoch≤40: Adam. Epoch >40: SGD.


### 2.1.8. Visualization Process

The efficient visualization process used in this work is Grad-CAM proposed by Selvaraju et al. [33]—for making any CNN based models more transparent by producing “visual explanations.” Grad-CAM uses the gradients of any target concept, flowing into the corresponding convolutional layer to produce a coarse localization map highlighting the most important regions in the image for predicting the concept. We apply Grad-CAM, a class-discriminative localization technique, to find characteristic brain regions that can classify diabetic patients. The procedure for generating these maps is illustrated in Figure 1(b).As shown in Figure1(b), to obtain the class-discriminative localization map Grad-CAM Ln,Grad−CAMc∈ℝμ×υ of width μ=73 and height ν=73 for any class c=2, we first compute the gradient of the score for the class c, yc with respect to feature maps Ank (A1k,A2k,A3k) of a convolutional block, i.e., ∂yc/∂Ank. These gradients flowing back are global-average-pooled to obtain the neuron importance weights αn,kc. The final localization map is calculated through (7) and visualized as a heatmap in Figure 1(b). The highlighted regions in the ALFF image might be used to help real-time clinical validation of automated detection in the future.(7)Ln,Grad−CAMc=PReLU∑k1Z∑i∑j∂yc∂An,ijk︷backprop gradients︷global average pooling:αn,kc⋅Ank︸linear combination.


## 2.1.1. Data Acquisition

Our retrospective study includes 47 patients with type 1 diabetes mellitus (denoted as “T1DM”), 73 patients with type 2 diabetes mellitus (denoted as “T2DM”), and 50 healthy controls (denoted as “HC”). Physicians make all the diagnoses according to the criteria from the American Diabetes Association [19]. All subjects are right-handed and undergo brain scans at the Huaxi MR Research Center of the West China Hospital. Exclusion criteria for all participants include a history of substance or alcohol abuse, a psychiatric or neurological disorder unrelated to diabetes, contraindications to MRI, and a history of a brain lesion such as tumor or stroke. Control subjects are excluded if they have a fasting blood glucose level ≥7.0 mmol/L, glucose level ≥7.8mmol/L after oral glucose tolerance test (OGTT).All rs-fMRI images are acquired via a Siemens (Erlangen, Germany) 3-Tesla Trio scanner. Subjects are instructed to relax, to keep their eyes closed but to remain awake, to keep their heads still during the scanning, and to avoid thinking of anything in particular. The functional images are recorded using an echo-planar imaging (EPI) sequence with the following parameters: repetition time/echo time (TR/TE)=2000/30ms, 90°flip angle, 240×240mmmm field of view (FOV), slice thickness/gap =5/0mm, 3.75×3.75×5mm3 voxel size, and 64×64 matrix resolution. No very obvious structural damage is found in any subject based on MRI scans, which are examined by two experienced specialists.


## 2.1.2. Functional Image Preprocessing

The raw rs-fMRI data are preprocessed with the Statistical Parametric Mapping software (SPM8) on the MATLAB (R2013b) platform. The adopted preprocessing operation is shown in Figure1. The first 10 volumes of the scanning sessions are discarded due to the instability of the initial MRI signal and adaptation of the participants to the situation. The remaining volumes with size 61×73×61×170 are analyzed. For each subject, the remaining rs-fMRI images first undergo section-timing correction and are then are realigned. Here, participants with head displacement >2 mm in any x, y, and z direction and >2°in any angular dimension are excluded. After realignment, the resulting images are spatially normalized using 3 mm isotropic voxels. The last step is to smooth the images using a Gaussian kernel of 4 mm full width at half-maximum to improve signal-to-noise ratio and reduce the difference between individuals after standardization.


## 2.1.3. Feature Mapping

ALFF measures the intensity of neural activity at the single-voxel level and can be calculated through the Data Processing Assistant for Resting-State fMRI (DPARSF) [20] (http://rfmri.org/DPARSF). After the above preprocessing, band-pass filtering (0.01−0.08 Hz) is performed on the time series of each voxel to remove the effect of low-frequency drift and high-frequency respiratory and cardiac noise [21]. For each subject, the time series of each voxel is transformed into the frequency domain using Fast Fourier Transform in turn, and the power spectrum is obtained. Then, the square root of the power spectrum is computed and averaged across a predefined frequency interval. The averaged square root is ALFF, an effective indicator of spontaneous neuronal or regional intrinsic activity in the brain [22]. Following the above steps, ALFF, the function map is generated for each subject.


## 2.1.4. Training and Testing Dataset

Each participant is associated with a diagnostic label of 1 or 0 referring to DM or HC, confirmed by medical specialists. Our data augmentation protocol is as follows. Firstly, all images are normalized to0,1 and resized to the standard resolution of 73×73. Secondly, images are flipped horizontally or vertically to capture the reflection invariance. The final data transformation is brightness adjustment with one random scale factor α per image, sampled from a uniform distribution over −0.2,0.2. We add above transformations that extend the translation invariance, improve our model’s ability to generalize, and correctly classify images without a loss of accuracy. To address the imbalance of dataset categories, about 20% of the subjects from HC and DM are assigned to the testing data, and the remaining are used for training.


## 2.1.5. Model and Visualization

A full diagram of the classification model can be viewed in Figure1(a), and the abstraction of the visualization process is represented in Figure 1(b).


## 2.1.6. Classification Model

The network used in this study is inspired by the CNN architecture, Inception-v4-Residual, presented in [23]. It speeds up the flow of information, extracts features from different scales, accelerates network training, and avoids gradient disappearing. Limited by the amount of data, we simplify the original Inception-v4-Residual architecture into three integrated convolutional blocks (block1, block2 (Inception), block3 (Residual)), one average pooling (AvgPool) layer, and one fully connected (FC) layer, as depicted in Figure 1(a). All integrated blocks are stacked by basic blocks as follows.(1)Block1=Conv−BN−PReLU−MaxP,(2)BasicConv=Conv−BN−PReLU−Dropoutbranch1=BasicConvbranch2=BasicConv−BasicConvbranch3=BasicConv−BasicConv−BasicConvbranch4=AvgP−BasicConv,Block2=Concatbranch1,branch2,branch3,branch4,(3)Block3=BN−Conv−BN−ReLU−Conv−BN−ReLU−Conv−BN−Dropout,where branch1,branch2,branch3,branch4 in (2) refers to the concatenation of the feature maps produced in branch1,⋯,4. Conv is the convolutional layer which learns iteratively filters that transform the input into hierarchical feature maps. BN is the normalization layer used to normalize the activation for fast convergence and to improve performance [24]. A BN layer conducts an affine transformation with the following equation:(4)y=γx+β,where γ and β are learned for every activation in feature maps. Parametric Rectified Linear Unit (PReLU) [25] or Rectified Linear Unit (ReLU) [26] layer applies an elementwise activation function, such as the max αx,x or max 0,x thresholding, and does not change the size of the image volume, as defined by(5)xl=PReLUconvlxl−1,where convl represents a convolutional layer l, which returns the previous convolutional layer’s output volume. The pooling layer (MaxP or AvgP) performs a downsampling operation along the spatial dimensions to reduce hyperparameters and prevent overfitting. The key idea of dropout layer (dropout) [27] is to randomly drop units (along with their connections) from the neural network during training. This strategy prevents too much coadaptation of units, significantly reduces overfitting, and gives major improvements over other regularization methods. FC layer computes the class scores, resulting in a volume of several classes. As the name implies, each neuron in the FC layer will be connected to all the numbers in the previous volume [28, 29]. An abstraction of this feature-learning architecture is represented in Figure 1(a), and see Table 1 for detailed architectures.Table 1
Inception-v4-Residual architectures. Building blocks are shown in brackets (see also Figure1(a)).
Layer nameOutput sizeConvBlock137×373×3,16,stride2,padding119×193×3,max pool,stride2Block2inception19×191×1,16,stride119×191×1,16,stride13×3,32,stride1,padding119×191×1,16,stride13×3,16,stride1,padding13×3,32,stride1,padding119×193×3,stride1,padding11×1,8,stride1catbranch_all=Concatbranch1,branch2,branch3,branch4=88sumshortcut=1×1,88,stride1shortcut+branch_allBlock3residual9×91×1,44,stride13×3,44,stride21×1,88,stride1+3×3,88,stride2Adaptive average pool, 2d FC, softmax# Params.0.09 MFLOPs1×107Trunk depth7


## 2.1.7. Implementation

Our implementation for Inception-v4-Residual follows the practice in [30, 31]. We initialize the weight as in [25] and train the Inception-v4-Residual network from scratch. We use Adam and SGD in the early and late stages of model training with a minibatch size of 10, respectively. The learning rate (lr) starts from 0.001, and the model is trained for up to 20×104 iterations. Figure 3 shows how the learning rate changes and how the optimizer is selected during training. We use weight decay of 0.0005 and momentum of 0.8. Since the data are relatively unbalanced, we also use the 2-class categorical focal loss for discrimination [32]. In practice, we use an α−balanced variant of the focal loss:(6)FLpt=−αt1−ptγlogpt,where t∈0,1 specifies the ground-truth class and pt∈0,1 is the model’s estimated probability for the class with a label t. A weighting factor α∈0,1 is applied for class t=0 and 1−α for class t=1. In practice, α is set by inverse class frequency, and we set γ=2 in our experiment.Figure 3
Schematic diagram of optimizer selection and dynamic adjustment of learning rate. Green: the initial lr decays by gamma = 0.5 every four epochs. Blue and red: after the 20th epoch, cyclical lr is a function of epoch. Epoch≤40: Adam. Epoch >40: SGD.


## 2.1.8. Visualization Process

The efficient visualization process used in this work is Grad-CAM proposed by Selvaraju et al. [33]—for making any CNN based models more transparent by producing “visual explanations.” Grad-CAM uses the gradients of any target concept, flowing into the corresponding convolutional layer to produce a coarse localization map highlighting the most important regions in the image for predicting the concept. We apply Grad-CAM, a class-discriminative localization technique, to find characteristic brain regions that can classify diabetic patients. The procedure for generating these maps is illustrated in Figure 1(b).As shown in Figure1(b), to obtain the class-discriminative localization map Grad-CAM Ln,Grad−CAMc∈ℝμ×υ of width μ=73 and height ν=73 for any class c=2, we first compute the gradient of the score for the class c, yc with respect to feature maps Ank (A1k,A2k,A3k) of a convolutional block, i.e., ∂yc/∂Ank. These gradients flowing back are global-average-pooled to obtain the neuron importance weights αn,kc. The final localization map is calculated through (7) and visualized as a heatmap in Figure 1(b). The highlighted regions in the ALFF image might be used to help real-time clinical validation of automated detection in the future.(7)Ln,Grad−CAMc=PReLU∑k1Z∑i∑j∂yc∂An,ijk︷backprop gradients︷global average pooling:αn,kc⋅Ank︸linear combination.


## 3. Results

We use 5-fold cross-validation in this study. Average metrics originated from 5 test runs on respective held-out data.


### 3.1. Local Cross-Validation Results

In our work, we mainly use the accuracy for evaluating our network architecture. All the networks are trained using the same experimental setup as in Section2.1.7. The initial lr is set to 0.001, and we train models for 300 epochs with a batch size of 10 with the same data augmentation strategies as in Section 2.1.4. Note that we use early stopping [34] to prevent overfitting in all the networks. The accuracy of the single-crop is provided in Table 2 for evaluating our models. Our algorithm scores an AUC of 0.8690 during cross-validation and also achieves an average 77.50% sensitivity and a 77.51% specificity. This ROC curve is plotted in Figure 4. In the training phase, accuracy and also loss of training and testing are measured as is depicted in Figure 5. The experimental results in Figure 5 show that the Inception-v4-Residual network with only 0.091 M trainable parameters converges fairly fast, which indicates that our network has a real-time runtime performance and has computational efficiency. We empirically demonstrate the Inception-v4-Residual network’s effectiveness on ALFF classification accuracy grouped by subject in Figure 6. Through Figure 6, we can see that the recognition rate of the model to diabetic patients is quite high. However, classification for HC is slightly worse because of the lack of distinct image features. Compared with false-negatives, false-positives could be expected when using an automated method for the detection of a patient.Table 2
Accuracies achieved from Inception-v4-Residual network across five runs.
Inception-v2-ResidualTraining time per epoch (s)Total time (m)Top-1 accuracy (%)AUCrun15.659.5189.510.8708run25649.4989.880.8862run35.719.6190.120.8721run45.705.6090.120.8762run55.5912.0390.120.8391# of params.=0.09 MMean accuracy89.95%Mean AUC0.8690Figure 4
The average ROC curve derived from the Inception-v4-Residual network’s run3. The black dotted line represents the trade-off resulting from random chance. The red curve represents the model’s trade-off, with the blue dot marking the threshold point.Figure 5
Loss and accuracy of training and testing for Inception-v4-Residual network’s run3.Figure 6
Subject-level ALFF classification accuracy on the test set using the best model.


### 3.2. Grad-CAM Visualization Results

For efficiently triaging referrals and focusing on one’s clinical examination, it is highly important to interpret the output of detection-guiding software reasonably. Toward that end, we apply the Grad-CAM visualization method to locate the most discriminative features of our deep learning network. Figure7 illustrate some feature maps of the final filter (kernel) of block1, block2, and block3, where the regions that contributed most to the final classification result are highlighted on the heatmaps. Those highlighted regions tie the mathematical learning of the network to the domain of clinical data. The distribution differences of these important regions corroborate the domain-guided learning procedure of our model. The average activation of HC is much higher than DM, which proves to some extent the reliability of the classification results.Figure 7
Examples of visualization map generated from deep features. Note that, in all subjects, red regions correspond to a high score for the class. The figure is best viewed in color.


### 3.3. Effectiveness of Different Network Architectures

Apart from the Inception-v4-Residual network, we explore several other CNN models, including ResNet [35] and Inception [36] for performance comparison. The total number of parameters in these networks is shown in Table 3. The same image preprocessing is adopted for a fair comparison. We train network entirely for several epochs at a certain resolution from scratch. Table 3 shows the experiment results. It is observed that the network architectures have a slight impact on the performance, and Inception-v4-Residual network achieves better performance than the other two networks, which demonstrates the efficiency of our method.Table 3
Accuracies achieved from Inception-v4-Residual, ResNet, and Inception models.
OursInceptionResNet#of params. (M)Top-1 accuracy (%)✓0.09190.12✓0.15289.88✓2.03988.78


### 3.4. Ablation Studies

The main design choices we make for the training and testing procedure are the data augmentation protocols and test-time rotations. To show their impact, we perform two ablation studies.


#### 3.4.1. Rotation

The experimental setting of the training process remains the same as the above experiment, but during testing the images are only presented in their original orientation or show the direction after being rotated at a certain angle. To improve accuracy, we average the classification scores.


#### 3.4.2. Data Augmentation Protocols

During training, we have not adopted any data augmentation protocols. Meanwhile, we separately test the impact of each of the data augmentation protocols and their combination on the experimental results. The testing procedure is unchanged.Figure8 shows results on the preliminary test set for our proposed setting and the two ablation studies. The influence of data augmentation protocols is significant but smaller; we note that the brightness adjustment is beneficial to the model’s generalization ability, but other data augmentation protocols have reduced the model’s ability to learn features. Not using test-time rotation slightly decreases the mean accuracy (0.24%) and AUC (0.006) in fivefold cross-validation.Figure 8
Metrics on the preliminary test set measured after the early stopping for the proposed setting and the two ablation studies. The shaded area marks one standard deviation. The figure is best viewed electronically and zoomed in.


## 3.1. Local Cross-Validation Results

In our work, we mainly use the accuracy for evaluating our network architecture. All the networks are trained using the same experimental setup as in Section2.1.7. The initial lr is set to 0.001, and we train models for 300 epochs with a batch size of 10 with the same data augmentation strategies as in Section 2.1.4. Note that we use early stopping [34] to prevent overfitting in all the networks. The accuracy of the single-crop is provided in Table 2 for evaluating our models. Our algorithm scores an AUC of 0.8690 during cross-validation and also achieves an average 77.50% sensitivity and a 77.51% specificity. This ROC curve is plotted in Figure 4. In the training phase, accuracy and also loss of training and testing are measured as is depicted in Figure 5. The experimental results in Figure 5 show that the Inception-v4-Residual network with only 0.091 M trainable parameters converges fairly fast, which indicates that our network has a real-time runtime performance and has computational efficiency. We empirically demonstrate the Inception-v4-Residual network’s effectiveness on ALFF classification accuracy grouped by subject in Figure 6. Through Figure 6, we can see that the recognition rate of the model to diabetic patients is quite high. However, classification for HC is slightly worse because of the lack of distinct image features. Compared with false-negatives, false-positives could be expected when using an automated method for the detection of a patient.Table 2
Accuracies achieved from Inception-v4-Residual network across five runs.
Inception-v2-ResidualTraining time per epoch (s)Total time (m)Top-1 accuracy (%)AUCrun15.659.5189.510.8708run25649.4989.880.8862run35.719.6190.120.8721run45.705.6090.120.8762run55.5912.0390.120.8391# of params.=0.09 MMean accuracy89.95%Mean AUC0.8690Figure 4
The average ROC curve derived from the Inception-v4-Residual network’s run3. The black dotted line represents the trade-off resulting from random chance. The red curve represents the model’s trade-off, with the blue dot marking the threshold point.Figure 5
Loss and accuracy of training and testing for Inception-v4-Residual network’s run3.Figure 6
Subject-level ALFF classification accuracy on the test set using the best model.


## 3.2. Grad-CAM Visualization Results

For efficiently triaging referrals and focusing on one’s clinical examination, it is highly important to interpret the output of detection-guiding software reasonably. Toward that end, we apply the Grad-CAM visualization method to locate the most discriminative features of our deep learning network. Figure7 illustrate some feature maps of the final filter (kernel) of block1, block2, and block3, where the regions that contributed most to the final classification result are highlighted on the heatmaps. Those highlighted regions tie the mathematical learning of the network to the domain of clinical data. The distribution differences of these important regions corroborate the domain-guided learning procedure of our model. The average activation of HC is much higher than DM, which proves to some extent the reliability of the classification results.Figure 7
Examples of visualization map generated from deep features. Note that, in all subjects, red regions correspond to a high score for the class. The figure is best viewed in color.


## 3.3. Effectiveness of Different Network Architectures

Apart from the Inception-v4-Residual network, we explore several other CNN models, including ResNet [35] and Inception [36] for performance comparison. The total number of parameters in these networks is shown in Table 3. The same image preprocessing is adopted for a fair comparison. We train network entirely for several epochs at a certain resolution from scratch. Table 3 shows the experiment results. It is observed that the network architectures have a slight impact on the performance, and Inception-v4-Residual network achieves better performance than the other two networks, which demonstrates the efficiency of our method.Table 3
Accuracies achieved from Inception-v4-Residual, ResNet, and Inception models.
OursInceptionResNet#of params. (M)Top-1 accuracy (%)✓0.09190.12✓0.15289.88✓2.03988.78


## 3.4. Ablation Studies

The main design choices we make for the training and testing procedure are the data augmentation protocols and test-time rotations. To show their impact, we perform two ablation studies.


### 3.4.1. Rotation

The experimental setting of the training process remains the same as the above experiment, but during testing the images are only presented in their original orientation or show the direction after being rotated at a certain angle. To improve accuracy, we average the classification scores.


### 3.4.2. Data Augmentation Protocols

During training, we have not adopted any data augmentation protocols. Meanwhile, we separately test the impact of each of the data augmentation protocols and their combination on the experimental results. The testing procedure is unchanged.Figure8 shows results on the preliminary test set for our proposed setting and the two ablation studies. The influence of data augmentation protocols is significant but smaller; we note that the brightness adjustment is beneficial to the model’s generalization ability, but other data augmentation protocols have reduced the model’s ability to learn features. Not using test-time rotation slightly decreases the mean accuracy (0.24%) and AUC (0.006) in fivefold cross-validation.Figure 8
Metrics on the preliminary test set measured after the early stopping for the proposed setting and the two ablation studies. The shaded area marks one standard deviation. The figure is best viewed electronically and zoomed in.


## 3.4.1. Rotation

The experimental setting of the training process remains the same as the above experiment, but during testing the images are only presented in their original orientation or show the direction after being rotated at a certain angle. To improve accuracy, we average the classification scores.


## 3.4.2. Data Augmentation Protocols

During training, we have not adopted any data augmentation protocols. Meanwhile, we separately test the impact of each of the data augmentation protocols and their combination on the experimental results. The testing procedure is unchanged.Figure8 shows results on the preliminary test set for our proposed setting and the two ablation studies. The influence of data augmentation protocols is significant but smaller; we note that the brightness adjustment is beneficial to the model’s generalization ability, but other data augmentation protocols have reduced the model’s ability to learn features. Not using test-time rotation slightly decreases the mean accuracy (0.24%) and AUC (0.006) in fivefold cross-validation.Figure 8
Metrics on the preliminary test set measured after the early stopping for the proposed setting and the two ablation studies. The shaded area marks one standard deviation. The figure is best viewed electronically and zoomed in.


## 4. Discussion

In this work, the convolution neural network based on the classification model is proposed to help DM and brain related abnormalities classification based on rs-fMRI, and the results indicate that it is effective and accurate. In addition to facilitating detection, for the first time, our algorithm pipeline visualizes the abnormal brain areas, which might provide critical information to understand the effect of diabetes on brain dysfunction. Our approach provides an attempt to utilize deep learning to detect DM and brain related abnormalities from resting-state fMRI data. Results obtained suggest that rs-fMRI holds the potential to increase the translation of rs-fMRI data into clinical detection.In classifying HC and DM, we can achieve an AUC of 0.869 on the local dataset. The visualization results in Figure7 provide some reliable evidence for the results of this experiment. As we have seen, the degree of activation of HC and DM is significantly different, which confirms the previous research finding that DM patients have a decreased spontaneous brain activity on rs-fMRI. However, the difference in activation between T1DM and T2DM is not that obvious. To a certain degree, this visualization result can explain the high level of accuracy in the experiment. As expected, decreased neural activity is significantly associated with DM, a result which is in agreement with other studies [16]. It is extremely difficult to accurately classify diabetes and its type in the early stages even for medical care personnel because many diabetic individuals do not easily fit into a single class, and assigning a type of diabetes to an individual often depends on the circumstances present at the time of diagnosis. The detection of subtle differences in brain function between T1DM and T2DM poses an important limitation on accurate identification in future DM typing detection systems. In future research, we look forward to combining manual features for targeting specific characteristics of DM and the robust potential of deep learning systems to characterize the type of diabetes accurately to yield more clinically useful results.Further optimization of the sensitivity metric might be necessary to ensure a minimum false-negative rate for proper clinical application of our algorithm. The computer-aided system for DM classification must minimize false-negative results to provide necessary glucose care for patients. During clinical use, it may be quite critical to control specific variances in local dataset, such as age, to optimize the model for certain demographics. Patient history, duration of diabetes, symptom type, hemoglobin A1C value, genetic factors, and other clinical data may play a crucial role in investigating different types of common patient metadata that may assist healthcare professionals in making a correct diagnosis of the type of DM. Adding confirmed clinical information into the classification system may yield insightful correlations into underlying DM risk factors outside of imaging information, potentially enhancing classification accuracy between T1DM and T2DM. Several limitations of this study should be noted. First, during subsequent experiments, a large patient and control subject cohort is needed to create a more robust model, and independent testing on external datasets is required to confirm its predictive properties. Second, the impact of different background ethnicity and geographic location of demographics on the classification model needs to be considered. Third, our experiments assume that diabetic patients with chronic insulin deficiency or hyperglycemia may cause corresponding changes in brain function and microstructure. These changes can be reflected in rs-fMRI images, which can use deep learning methods to identify the disease but cannot exclude the presence of diabetes without causing changes in brain function and microstructure, for instance, when diabetes is quite early. In short, much effort is still required to achieve the clinical implementation of a texture-based decision-support system in further research.Diabetic encephalopathies are now accepted complications of diabetes. They appear to differ in T1DM and T2DM as to the underlying mechanisms and the nature of resulting cognitive deficits [3]. Both types of diabetes are associated with increased risks for micro- and macrovascular disease and cerebrovascular accidents with compounding effects on cognitive deficits [13]. Studies of brain function and structural neuroimaging have demonstrated associated anomalies. As shown in Figure 7, it should be mentioned though that the class activation mapping in T1DM appears to be different from that of T2DM, which coincides with previous studies. There is evidence suggesting that the progressive deficits in brain function and structure may develop already in patients with prediabetes [13] (T1DM leads to neuronal loss and disintegration of neuronal networking fundamental to cognitive function; T2DM results in neuronal loss). However, some of the underlying pathogenetic mechanisms are different in the encephalopathies of the two types of diabetes. Therefore, continued investigations are needed to start to formulate precise therapeutic interventions to curtail the increase in these major complications. In future research, we will seek to characterize the association between DM and brain function and structure using CNN and Grad-CAM to further quantitatively investigate the impact of diabetes on brain complications. Definitely, this can reduce the production probability of those serious complications; it also plays an important role in treatment planning and makes a positive influence on prognosis.In this study, we distinguish diabetic patients from healthy controls and seek to characterize the association between DM and brain function and structure. We propose that, among DM patients, the activation degree of the feature map would be associated with decreased spontaneous brain activity. This study may also help create the view that differences in brain activity of different diabetes types are closely related to the corresponding brain complications. On the whole, we propose a cost-effective and time-efficient automatic diagnosis algorithm of diabetes which shows the potential of automated feature-learning systems in streamlining current diabetes screening programs.


## 5. Conclusion

In this work, we explore an approach based on deep learning to distinguish the DM data from normal control data with89.95% accuracy. The results showed that rs-fMRI holds great promise for the prediction of DM. However, further validation on independent datasets is required to confirm its predictive properties. This deep learning solution and our algorithm pipeline provide a new idea for the diagnosis of DM. It will potentially alleviate the workload of manual analysis and guide high-risk patients for referral to further care. We believe that the methodology presented in this work can be also generalized to predict the different types of DM for different age groups, and it can eventually lead to improvements in treatment personalization and patient survival.



---

*Source: 1903734-2020-10-21.xml*