A method for interpreting CNN classification results of multi-subject complex fMRI data based on saliency maps
By extracting and interpreting the convolution layer feature map in the CNN model, the saliency map visualization method explains the advantages of the SSP map in complex fMRI data, solves the problem of the advantage continuation of the SSP map during the transmission process in the CNN, and improves the reliability of the model. Reliability and classification accuracy.
Patent Information
- Application Number
- CN202111480785.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-06
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-12-06
AI Technical Summary
In the existing technology, during the transmission process of the spatial source phase map (SSP) and spatial source magnitude map (SSM) of complex fMRI data in the CNN model, how to continue the advantages of the SSP map to obtain better classification performance is currently lacking. Interpretable methods.
By inputting the SSP/SSM image slice samples of a single subject or multiple subjects into the trained CNN model, the feature maps of each convolutional layer are extracted, averaged and upsampled, and a saliency map is generated to explain the classification results and demonstrate the internal transfer of the CNN. salient features of the process.
The saliency map visualization method explains the better classification performance of SSP maps than SSM maps in CNN, especially retaining more complete DMN features in the first convolutional layer and generating complementary features in the second convolutional layer, improving the model credibility and classification accuracy.
Smart Images

Figure CN114239705B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of biomedical signal processing and relates to a method for explaining CNN (Convolutional neural network) classification results of multiple subject complex fMRI (functional magnetic resonance imaging) data based on a saliency map. Background Art
[0002] In recent years, deep learning CNN has demonstrated unique advantages in medical image classification. For example, independent component analysis (ICA) was used to extract brain spatial activation maps from complex fMRI data of schizophrenia patients and healthy control subjects. In the existing ICA-CNN classification framework (patent application number 201910350137.2), the phase map of the complex spatial activation map of the component of interest (such as the default network DMN), namely the spatial source phase (Spatial Source Phase, SSP) was used as the CNN input, achieving a subject-level classification accuracy of up to 98%.
[0003] However, when the amplitude map of the complex spatial activation map, namely the spatial source amplitude (Spatial Source Magnitude, SSM), is used as the input of CNN, the subject-level classification accuracy is only 83%. What factors affect the prediction results of CNN, or what factors dominate the classification results? This study is called the interpretability study of CNN models and has become a current research hotspot. SSP maps have more potential than SSM in the auxiliary diagnosis of neuropsychiatric brain diseases. However, in the transmission process within CNN, how can the advantages of SSP maps be continued and why SSP maps can achieve better classification performance than SSM maps? There is currently no explainable method. Summary of the invention
[0004] The present invention provides a method for explaining the CNN classification results of multiple fMRI data of multiple subjects based on saliency maps. The method takes into account the unique spatial convolution and hierarchical feature extraction structure of CNN, so that the prediction results of the CNN model can be reflected by the feature maps of each convolution layer. First, the slice sample of the SSP map or SSM map of a single subject is sent to a trained CNN model to obtain the feature map output by each convolution layer; then the multi-channel feature map of each convolution layer is averaged and upsampled to the same size as the input sample, and then the threshold is taken to obtain the salient features of each convolution layer based on the classification process to explain the classification results of the single subject. For multiple subjects, the feature maps output by the same type of subjects in the same convolution layer of the trained CNN are first averaged, and then the threshold is taken to obtain the group salient features based on the classification process, which are used to explain the classification results of multiple subjects.
[0005] The technical solution adopted by the present invention is as follows (see Figure 1 and Figure 2 ):
[0006] The first step is to input the 2D SSP slice samples of the subject j along the z-axis into a trained 2D-CNN model. The SSP slice is represented as J is the total number of subjects, X×Y is the size of the SSP slice, x=1,…,X, y=1,…,Y.
[0007] Step 2: Extract the feature map of the 2D-CNN convolutional layer. Extract the feature map of a convolutional layer output from the 2D-CNN model, expressed as K is the number of channels, X′×Y′ is the size of the feature map, X′ and Y′ are determined by the convolution kernel size of the corresponding layer, j=1,…,J, J is the total number of subjects.
[0008] Step 3: Multi-channel feature map averaging. The feature maps of the K channels of the convolutional layer are averaged as follows:
[0009]
[0010] Step 4: Upsampling the average feature map. Interpolate to make it the same as the input SSP slice sample size X×Y, expressed as J is the total number of subjects.
[0011] Step 5: Generate a single-subject saliency map. After normalization, the threshold is taken to obtain the single subject saliency map, which is expressed as in
[0012]
[0013] The threshold for controlling the significance level in the single-subject analysis is determined based on the principle of being close to the SSP slice activation input by the CNN. J is the total number of subjects.
[0014] Step 6: Generate multi-subject group feature maps. Averaging the upsampled average feature maps of the same type of single subjects, we get the group feature map, as follows:
[0015]
[0016] In the formula, J′ is the total number of subjects of the same type.
[0017] Step 7: Generate saliency maps for multiple subjects. After normalization, the threshold is taken to obtain the group saliency map, which is expressed as in
[0018]
[0019] is the threshold for controlling the significance level in multi-subject group analysis, which can be equal to the threshold for controlling the significance level in single-subject analysis.
[0020] Step 8: Output single-subject saliency map and multi-subject group saliency map.
[0021] The present invention visualizes the significant features in the network transmission process through saliency maps and interprets the classification results afterwards. For example, after extracting the default mode network (DMN) components of interest from the multiple resting-state fMRI data of 82 subjects, sample sets of SSP maps and SSM maps are established respectively, and two 2D-CNN models with the same structure are trained. Then, the saliency map visualization method provided by the present invention is used to calculate the saliency maps output by the first and second convolutional layers of schizophrenia patients and healthy control subjects under the two CNN models, and single-subject and multi-subject analyses are performed. The results are displayed in Figure 3 , Figure 4 It can be observed that for both single-subject and multi-subject results, for the saliency map obtained in the first convolutional layer, SSP retains more complete DMN features than SSM, especially the inferior parietal lobule and anterior cingulate cortex areas; at the second convolutional layer, the saliency features of SSP are transferred to the edge of the DMN component, complementing the saliency map of the first convolutional layer, while the saliency features of SSM are not significantly different from those of the first convolutional layer. Overall, the SSP map generates more complete and more discriminative saliency features in the internal transmission of the CNN network, which explains why the SSP map has better CNN classification results than the SSM map and improves the credibility of the CNN model classification. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A schematic diagram of generating a single-subject saliency map according to the present invention.
[0023] Figure 2 It is the position of the present invention in CNN.
[0024] Figure 3 Single-subject saliency map comparison between healthy control subjects and schizophrenia patients.
[0025] Figure 4 Comparison of multi-subject saliency maps between healthy control subjects and schizophrenia patients. DETAILED DESCRIPTION
[0026] The following is a detailed description of the embodiments of the present invention in conjunction with the technical solution. There are multiple resting-state fMRI data of J = 82 subjects, including 42 schizophrenia patients and 40 healthy control subjects. Each subject has 146 whole-brain scans, and each whole-brain scan has a total of X×Y×Z=53×63×46=153594 voxels, of which there are 62336 voxels in the brain.
[0027] First, the SSP map of the component of interest was obtained. The model order N was set to 20, and the complex EBM (EntropyBound Minimization) algorithm was used to separate the complex fMRI data of each subject. According to the reference template of DMN (Selected from the analysis results given in the literature "SMSmith, PTFox et al., Correspondence of the brain's functional architecture during activation and rest, Proceedings of the National Academy of Sciences of the United States of America, vol. 106, no. 31, pp. 13040-13045, 2009") Extract the multiple DMN components of each subject as the components of interest. Among them, the spatial activation map Time course based on The real part energy is maximized to calculate the rotation angle of phase correction as follows:
[0028]
[0029] In the formula, “Re{·}” means taking the real part, Then add s (j) The rotation correction in the complex plane is as follows:
[0030]
[0031] In the formula, “corr(·)” calculates the correlation coefficient of two vectors, and “-1” means a 180-degree rotation in the complex plane. Constructing a binary mask as follows:
[0032]
[0033] express s (j) The phase value of voxel v in , v = 1, ..., 62336; using masking b (j) right s (j) Phase denoising is performed to obtain:
[0034]
[0035] In the formula Denotes the Hadamard product. is the DMN spatial activation map after denoising; repeat the above steps 10 times, and use the method in "LDKuang, QHLinet al., Model order effects on ICA of resting-state complex-valued fMRI data: application to schizophrenia, Journal of Neuroscience Methods vol. 304, pp. 24–38, 2018" to take the best run result in 10 DMN denoised spatial activation maps, expressed as Pick The phase of DMN is used to obtain the SSP map of DMN.
[0036] Then, the SSP sample set was established. After zero-filling the extracerebral voxels of the SSP map of the DMN, it was expanded along the z-axis into 46 two-dimensional slice stacks of size 53×63, and then the SSP map was constructed according to the reference template. After retaining the 25 slices with large information content (z = 12, ..., 36), the absolute value of each slice is taken and standardized to obtain the sample set of subject j for Tags (definition Indicates that the slice is from a healthy control subject. Indicates that it comes from schizophrenia patients); the model order N ranges from 30 to 140, and a value is taken every 10. Repeat the above steps 12 times to obtain an augmented sample set of 82 subjects.
[0037] Next, train the CNN model. Randomly shuffle the order of the subjects, and divide the sample set into training set, validation set, and test set in a ratio of 3:1:1; build a 2D-CNN with a structure similar to that in patent application number 201910350137.2, including two convolutional layers, two pooling layers, and two fully connected layers, except that the activation function after the two convolutional layers is set to tanh. The model was trained for 50 rounds with a batch size of 64. The model obtained in each round of training was evaluated using the accuracy on the validation set. Among the 50 rounds, the model with the highest accuracy on the validation set was determined as the final CNN model obtained by training. The test set was sent to the final CNN model for prediction, and the slice classification accuracy was calculated to be 77.85%, and the subject classification accuracy was 98%.
[0038] Based on the above single-subject SSP graph slice sample and the trained CNN model, the steps of using the present invention to generate a saliency map for CNN model interpretation are as follows:
[0039] Step 1: Select J = 30 subjects with less noise (including 15 healthy control subjects and 15 schizophrenia patients) to generate saliency maps and explain the single-subject and multi-subject classification results.
[0040] Step 2: Slice the 2D SSP of test j (j=1,…,30) Input the trained 2D-CNN model.
[0041] Step 3: Extract the feature maps of the first and second convolutional layer outputs from the 2D-CNN model, represented as
[0042] Step 4: Substitute the multi-channel feature maps of the two convolutional layers into equation (1) and average them to obtain and
[0043] Step 5: Use bilinear interpolation to and Interpolation, we get and
[0044] Step 6: and After normalization, the output is inserted into formula (2), and the thresholds are set to 0.6 and 0.4 respectively, and the saliency map of the single subject output in the two convolutional layers is obtained. and
[0045] Step 7: Upsample and average the feature maps of J′=15 single subjects of the same type and Substituting into formula (3), we can generate the feature maps of the healthy control group and the schizophrenia group at two convolutional layers. and
[0046] Step 8: and Substituting into formula (4), the thresholds are set to 0.6 and 0.4 respectively to generate the group saliency map. and
[0047] Step 9: Get the SSM graph of the component of interest. Repeat the above steps, except that The SSM map is obtained by the amplitude value, and then the SSM sample set is established in the same way as the SSP map sample set. The 2D-CNN model with the same structure is trained, and the slice classification accuracy is calculated to be 68.13%, and the subject classification accuracy is 83%.
[0048] Step 10: Repeat steps 1 to 8 to generate single-subject and multi-subject saliency maps of the SSM map, and compare them with the results of the SSP map. The results are as follows: Figure 3 , Figure 4 shown.
Claims
1. A method for explaining the CNN classification results of multi-subject complex fMRI data based on saliency maps, by feeding the slice sample of a single subject into a trained CNN model to obtain the feature map output by the convolution layer, and then averaging the multi-channel feature map of the convolution layer and upsampling it to the same size as the input sample, and obtaining the salient features based on the classification process after normalization and thresholding to explain the classification results of a single subject; For multiple subjects, the feature maps of the same subjects are averaged first, normalized and then thresholded to obtain the group significant features based on the classification process, which are used to explain the classification results of multiple subjects; the characteristics are: Follow these steps: Step 1: Input the 2D SSP slice samples of the subject j along the z-axis into a trained 2D-CNN model. The SSP slice is represented as J is the total number of subjects, X×Y is the size of the SSP slice, x=1,…,X, y=1,…,Y; Step 2: Extract the feature map of the 2D-CNN convolutional layer. Extract the feature map of a convolutional layer output from the 2D-CNN model, expressed as K is the number of channels, X′×Y′ is the size of the feature map, X' and Y' are determined by the convolution kernel size of the corresponding layer, j=1,…,J, J is the total number of subjects; Step 3: Multi-channel feature map averaging: average the feature maps of K channels in the convolutional layer, as follows: Step 4: Upsampling the average feature map Interpolate to make it the same as the input SSP slice sample size X×Y, expressed as J is the total number of subjects; Step 5: Generate a single-subject saliency map. After normalization, the threshold is taken to obtain the single subject saliency map, which is expressed as in is the threshold for controlling the significance level in the single-subject analysis, which is determined based on the principle of being close to the SSP slice activation input by the CNN; j = 1,…,J, where J is the total number of subjects; Step 6: Generate a multi-subject group feature map, average the upsampled average feature maps of the same single subject, and obtain the group feature map, as follows: In the formula, J′ is the total number of subjects of the same type; Step 7: Generate saliency maps for multiple subjects. After normalization, the threshold is taken to obtain the group saliency map, which is expressed as in It is the threshold for controlling the significance level in the multi-subject group analysis, which can be equal to the threshold for controlling the significance level in the single-subject analysis; Step 8: Output single-subject saliency map and multi-subject group saliency map.
2. The method for explaining CNN classification results of multiple fMRI data of multiple subjects based on saliency maps according to claim 1, characterized in that: In the fifth step, the value range of the significance threshold of the control single subject is, J is the total number of subjects.
3. A method for interpreting CNN classification results of multiple fMRI data of multiple subjects based on saliency maps according to claim 1 or 2, characterized in that: In the seventh step, the value range of the threshold of the significance level of multiple subjects is controlled as follows:
