Individualized brain state detection method and system based on dynamic gradient

The individualized brain state detection method through dynamic gradient solves the shortcomings of traditional methods in adapting to individual dynamic changes, achieves stable brain area signal extraction and brain state identification, improves detection efficiency and accuracy, and is suitable for brain function Analysis and Diagnosis.

CN118587168APending Publication Date: 2024-09-03BEIJING INST OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410647701.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-23
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

The traditional brain state detection method based on sliding time windows cannot adapt to the dynamic changes of individuals in terms of space and time, resulting in a low and unstable signal-to-noise ratio of brain area signals, and the stability of the clustering algorithm is poor, making it impossible to effectively identify individualized brain states. .

Method used

An individualized brain state detection method based on dynamic gradient is used to obtain the whole-brain functional image scanning time series, perform individualized brain region segmentation in spatial dimensions, determine the optimal individualized sliding time window length, calculate the functional connection gradient feature matrix, and Identification of distinct brain states via clustering algorithms.

Benefits of technology

It achieves individual-specific and stable brain region signal extraction, reduces dimensionality of functional connection features, improves the efficiency and accuracy of brain state detection, and can describe individualized brain states in more detail, which can be applied to brain functional mechanism analysis and brain disease diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587168A
    Figure CN118587168A
Patent Text Reader

Abstract

The invention discloses a dynamic gradient-based individualized brain state detection method and system. The method comprises the following steps of: acquiring a functional image scanning time sequence XV of all voxels of the whole brain of a testee; carrying out the individualized brain region segmentation of the spatial dimension based on voxels, and obtaining a functional image time sequence XR; based on a preset sliding time window length range, determining an optimal individualized window length Looptim of the time dimension, and based on the optimal individualized window length Looptim, dividing the T time points into time windows of which the number is T-Looptim + 1; calculating a functional connection gradient feature matrix based on the brain region and the time window to obtain a gradient feature matrix; and calculating an individualized brain state based on the gradient feature matrix, and carrying out visualization processing on the individualized brain state.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of individualized brain state detection, and in particular relates to an individualized brain state detection method and system based on dynamic gradient. Background Art

[0002] Different areas of the human brain interact and influence each other functionally, forming a spontaneous and continuous pattern of brain functional activity, namely the brain state. The brain state describes the connectivity of brain regions over a period of time, which is a supplement to the traditional resting state functional connectivity. By calculating the brain state and analyzing the state change pattern, we can deepen our understanding of brain mechanisms. At the same time, it can serve as an important brain function indicator to assist in the diagnosis of brain diseases.

[0003] Resting-state functional magnetic resonance imaging achieves functional signal scanning of the entire brain region within a certain time range, forming a four-dimensional matrix of brain function signals (three-dimensional brain images and time), which can be used to extract brain state characteristics. The main method for extracting brain state in previous studies is to divide the entire resting-state time series collected continuously into continuous and overlapping time windows, and calculate the functional connectivity between brain regions within the template based on the group-level template in each time window. A clustering algorithm is further used to divide the time windows into different categories based on the similarity of brain functional connectivity between time windows. The average of the functional connectivity of all time windows in each category is the brain state of brain functional connectivity. With the development of imaging technology and diagnosis and treatment technology, higher demands are placed on individualized detection of brain states.

[0004] The main problems with the traditional sliding time window method for detecting brain states are: in terms of space, the group-level template may not be able to adapt to the boundaries of the functional brain regions of the individual, resulting in a low signal-to-noise ratio and instability in the brain region. In terms of time, the fixed sliding time window length may not be able to adapt to the dynamic change frequency of the individual, causing the solved brain state to lose individual characteristics. In addition, medical data is usually small sample data, and the feature dimension of functional connectivity is usually several thousand. The imbalance between the feature dimension and the number of samples may make the clustering algorithm less stable. Therefore, it is necessary to consider effectively reducing the dimension of the functional connectivity features, so as to achieve stable clustering and brain state recognition in a low-dimensional space. Therefore, there is an urgent need for an individualized brain state detection method based on dynamic gradients to improve the efficiency of individualized brain state detection. Summary of the invention

[0005] The present invention aims to solve the deficiencies of the prior art and provides the following solutions:

[0006] A method for detecting individualized brain states based on dynamic gradients, comprising the following steps:

[0007] Obtain the functional imaging scan time series X of all voxels in the whole brain of the subject V, the functional imaging scanning time series includes: V voxels and T time points, and the data dimension is T×V;

[0008] Based on the voxels, individualized brain region segmentation in spatial dimension is performed to obtain the functional imaging time series X R , the functional imaging sequence includes R brain regions and T time points, and the data dimension is T×R;

[0009] Determine the optimal individualized window length L in the time dimension based on the preset sliding time window length range optimum , and based on the optimal individualized window length L optimum Divide the T time points into TL optimum +1 time window;

[0010] Calculate the functional connection gradient feature matrix based on the brain region and the time window to obtain a gradient feature matrix;

[0011] An individualized brain state is calculated based on the gradient feature matrix, and the individualized brain state is visualized.

[0012] Preferably, the functional imaging time series X is obtained R The methods include:

[0013] Preset a group-level brain region template and an individualized parameter threshold to determine whether any voxel in the voxels is a pending voxel;

[0014] All non-pending voxels are retained to obtain an individualized brain region segmentation template;

[0015] Based on the individualized brain region segmentation template, the average value of all voxel signals in each brain region is calculated at any time point to obtain the functional imaging time series X R .

[0016] Preferably, the optimal individualized window length L in the time dimension is determined optimum The methods include:

[0017] The preset sliding time window length range L min :L max , in the sliding time window length L i Next, with a step size of 1, the Pearson correlation coefficients of all brain regions in the sliding time window were calculated and Z-transformed to obtain the brain region connectivity;

[0018] The connections between all the brain regions in the time window are averaged, the variance of the average connections of all time windows is calculated, and the variance is divided by the total number of time windows to obtain the standardized average connection variance;

[0019] Draw a curve of the change of the average connection variance when the window length increases by 1, and the sliding time window length corresponding to the inflection point of the curve is the optimal individualized window length L optimum .

[0020] Preferably, the method for obtaining the gradient feature matrix includes:

[0021] The functional connectivity matrices of all time windows were averaged, and the reference gradient was calculated based on the gradient distance function and the mapping method;

[0022] Calculating a first gradient based on the gradient distance function and the mapping manner within any single time window;

[0023] The first gradient is aligned with the reference gradient as the gradient feature of a single time window, and the gradient features of all time windows are concatenated to obtain a gradient feature matrix. The matrix dimension of the gradient feature matrix is: (TL optimum +1)×R.

[0024] Preferably, the method for calculating the individualized brain state comprises:

[0025] Based on the gradient feature matrix, according to the similarity distance evaluation method, the gradient features of all time windows are clustered into K categories, and category labels are set for all time windows;

[0026] According to the category label of each time window, the functional connectivity average and the gradient average of the time window in the same category are calculated, and the functional connectivity average and the gradient average are used as the individualized brain state.

[0027] The present invention also provides an individualized brain state detection system based on dynamic gradient, comprising: a data acquisition module, a brain region segmentation module, a time window division module, a feature matrix calculation module and a brain state calculation module;

[0028] The data acquisition module is used to obtain the functional imaging scan time series X of all voxels of the whole brain of the subject. V , the functional imaging scanning time series includes: V voxels and T time points, and the data dimension is T×V;

[0029] The brain region segmentation module performs individualized brain region segmentation in the spatial dimension based on the voxels to obtain the functional image time series X R , the functional imaging sequence includes R brain regions and T time points, and the data dimension is T×R;

[0030] The time window division module determines the optimal individualized window length L of the time dimension based on the preset sliding time window length range optimum , and based on the optimal individualized window length L optimumDivide the T time points into TL optimum +1 time window;

[0031] The feature matrix calculation module calculates the functional connectivity gradient feature matrix based on the brain region and the time window to obtain a gradient feature matrix;

[0032] The brain state calculation module calculates individualized brain states based on the gradient feature matrix and visualizes the individualized brain states.

[0033] Preferably, the brain region segmentation module includes: a judgment unit, a template determination unit and a segmentation unit;

[0034] The judgment unit is used to preset a group-level brain region template and an individualized parameter threshold to judge whether any voxel among the voxels is a pending voxel;

[0035] The template determination unit is used to retain all undetermined voxels to obtain an individualized brain region segmentation template;

[0036] The segmentation unit calculates the average value of all voxel signals in each brain region at any time point based on the individualized brain region segmentation template to obtain the functional imaging time series X R .

[0037] Preferably, the time window division module includes: a Z transform unit, an average connection variance calculation unit, a window length determination unit and a time window division unit:

[0038] The Z transform unit is used to preset the sliding time window length range L min :L max , in the sliding time window length L i Next, with a step size of 1, the Pearson correlation coefficients of all brain regions in the sliding time windows were calculated and Z-transformed to obtain the brain region connectivity;

[0039] The average connection method calculation unit is used to average all the inter-brain area connections within the time window, calculate the variance of the average connection of all time windows, and divide it by the total number of time windows as the standardized average connection variance;

[0040] The window length determination unit is used to draw a curve of the change of the average connection variance when the window length increases by 1, and the sliding time window length corresponding to the inflection point of the curve is the optimal individualized window length L optimum ;

[0041] The time window division unit is based on the optimal individualized window length L optimum Divide the T time points into TL optimum +1 for the time window.

[0042] Preferably, the feature matrix calculation module includes: a reference gradient calculation unit, a first gradient calculation unit and a splicing unit;

[0043] The reference gradient calculation unit is used to average the functional connection matrices of all time windows and calculate the reference gradient based on the gradient distance function and the mapping method;

[0044] The first gradient calculation unit is used to calculate a first gradient based on the gradient distance function and the mapping mode within any single time window;

[0045] The splicing unit is used to align the first gradient with the reference gradient as the gradient feature of a single time window, and splice the gradient features of all time windows to obtain a gradient feature matrix. The matrix dimension of the gradient feature matrix is: (TL optimum +1)×R.

[0046] Preferably, the brain state calculation module comprises: a clustering unit, a brain state calculation unit and a visualization unit;

[0047] The clustering unit clusters the gradient features of all time windows into K categories based on the gradient feature matrix and according to a similarity distance evaluation method, and sets category labels for all time windows;

[0048] The brain state calculation unit is used to calculate the functional connectivity average value and the gradient average value of the time window in the same category according to the category label of each time window, and use the functional connectivity average value and the gradient average value as the individualized brain state;

[0049] The visualization unit is used to visualize the individualized brain state.

[0050] Compared with the prior art, the present invention has the following beneficial effects:

[0051] (1) The present invention targets resting-state functional magnetic resonance imaging data, takes a group-level brain region segmentation template as a basis, deletes pending voxels according to the similarity of time series signals, and draws an individualized brain region segmentation template, thereby extracting individual-specific and stable brain region signal time series.

[0052] (2) The present invention identifies the individual sliding time window length, and ensures that the selected window length can provide the maximum variance according to the incremental change of the functional connection variance within the unit time window. Furthermore, the functional connection gradient is calculated within each time window to achieve dimensionality reduction of high-dimensional functional connections, while retaining the effective features of functional connections from the perspective of gradient, providing a novel feature matrix for brain state analysis.

[0053] (3) The present invention uses the functional connectivity gradient feature matrix calculated by the sliding time window as input, divides the time window into different categories through a clustering algorithm, identifies different brain states, and realizes the gradient visualization of the cluster center, the functional connectivity visualization, and the visualization of the transition between different categories. Compared with the traditional brain state detection method, this method uses an individualized brain region segmentation template, an individualized sliding time window length, and a functional connectivity gradient to extract brain functional characteristics, which can more carefully characterize the individualized brain state and is applied to the fields of brain function mechanism analysis, brain disease diagnosis, and non-invasive physical intervention based on brain state. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the technical solution of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0055] Figure 1 A schematic diagram of a method flow of an embodiment of the present invention;

[0056] Figure 2 Schematic diagram of three viewing angles of a group template and an individual template according to an embodiment of the present invention;

[0057] Figure 3 Schematic diagram of a process for determining an individualized window length in the time dimension in an embodiment of the present invention;

[0058] Figure 4 Schematic diagram of the connection matrix of four brain states in an embodiment of the present invention;

[0059] Figure 5 Schematic diagram of a reference gradient and four brain state gradients in an embodiment of the present invention;

[0060] Figure 6 Schematic diagram of transition between four brain states in an embodiment of the present invention. DETAILED DESCRIPTION

[0061] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0062] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0063] Embodiment 1

[0064] In this embodiment, if Figure 1 As shown, a dynamic gradient-based individualized brain state detection method comprises the following steps:

[0065] S1. Obtain the functional imaging scan time series X of all voxels in the whole brain of the subject V ,The time series of functional imaging scans includes: V voxels and T time points, and the data dimension is T×V.

[0066] S2. Perform individualized brain region segmentation in the spatial dimension based on voxels to obtain the functional imaging time series X R , the functional imaging sequence includes R brain regions and T time points, and the data dimension is T×R.

[0067] Get the functional imaging time series X R The method includes: presetting a group-level brain region template and an individualized parameter threshold to determine whether any voxel in the voxels is a pending voxel; retaining all non-pending voxels to obtain an individualized brain region segmentation template; based on the individualized brain region segmentation template, calculating the average value of all voxel signals in each brain region at any time point to obtain a functional imaging time series X R .

[0068] In this embodiment, group-level brain region templates are preset, including common structural and functional templates. According to different templates, the brain is divided into 116 regions, 160 regions, 400 regions, and other different situations. The template is a three-dimensional matrix, in which the number 0 represents the background, and the numbers 1, 2, 3... refer to different brain regions in turn; according to the preset group-level brain region template, the average value of all voxel signals in each brain region is calculated at any time point to obtain the reference time series of all brain regions; for each voxel in the whole brain signal, the Pearson correlation coefficient of the voxel time series and the time series of all brain regions is calculated respectively, and the correlation coefficients are sorted from high to low. The higher the correlation coefficient, the greater the possibility that the voxel belongs to the corresponding brain region; the individualized parameter threshold is preset, and the partition of the whole brain signal voxel is determined according to the threshold to determine whether it is consistent with the group-level partition. The individualized parameter threshold is an integer, which describes the tolerance range of partition consistency. For example, if the individualized parameter threshold is 300, the voxels with the correlation coefficient ranking (from high to low) between the group-level partitions and the group-level partitions in the top 300 can be judged as partition consistency; according to the voxel partition determination method, all voxels that are judged to be inconsistent with the group-level partitions are regarded as pending voxels. In the original group-level partition template, the partition numbers of all pending voxels are set to 0, so that the pending voxels are removed from the partition template; on the basis of the group-level brain region template, the template obtained after excluding the pending voxels is the individualized partition template, in which 0 represents the background and pending voxels, and the numbers 1, 2, 3... refer to different brain regions in turn; according to the individualized brain region segmentation template, the average value of all voxel signals in each brain region is calculated at any time point to obtain the functional imaging time series X at the brain region level. R , the time series X R It includes R brain regions and T time points, and the data dimension is T×R.

[0069] S3. Determine the optimal individualized window length L in the time dimension based on the preset sliding time window length range optimum , and based on the optimal individualized window length L optimum Divide T time points into TL optimum +1 for the time window.

[0070] Determine the optimal individualized window length L in the time dimension optimum The method includes: a preset sliding time window length range L min :L max , in the sliding time window length L iIn this case, with a step size of 1, the Pearson correlation coefficients of all brain regions in the sliding time windows were calculated and Z-transformed to obtain the brain region connections; all brain region connections in the time window were averaged, the variance of the average connections in all time windows was calculated, and divided by the total number of time windows as the standardized average connection variance; a curve of the change in the average connection variance when the window length increases by 1 was plotted, and the sliding time window length corresponding to the inflection point of the curve was the optimal individualized window length L optimum .

[0071] S4. Calculate the functional connectivity gradient feature matrix based on brain regions and time windows to obtain the gradient feature matrix.

[0072] The method for obtaining the gradient feature matrix includes: averaging the functional connection matrices of all time windows, and calculating the reference gradient based on the gradient distance function and the mapping method; calculating the first gradient based on the gradient distance function and the mapping method in any single time window; aligning the first gradient with the reference gradient as the gradient feature of a single time window, and concatenating the gradient features of all time windows to obtain the gradient feature matrix. The matrix dimension of the gradient feature matrix is: (TL optimum +1)×R.

[0073] In this embodiment, the functional connectivity matrix FC of each time window is Z-transformed to obtain FC Z , which is expressed as:

[0074] FC z =0.5×[ln(1+FC)-ln(1-FC)

[0075] The average functional connectivity of all time windows is calculated as a reference. For any brain region, the first 10% of the connections connected to it are retained for the average functional connectivity matrix and the connection matrix of each time window. The cosine similarity between each pair of connections is calculated after thresholding to obtain the cosine similarity matrix. Diffusion map embedding is used for data dimensionality reduction to obtain the gradient of the average functional connectivity and the connection of each time window. In the process of calculating the gradient of each time window, Procrustes Analysis is used to align the gradient of each time window to the gradient of the average functional connection. The gradient features of all time windows are spliced ​​to obtain the gradient feature matrix G, and the matrix dimension is (TL optimum +1)×R.

[0076] S5. Calculate the individualized brain state based on the gradient feature matrix, and visualize the individualized brain state.

[0077] The method for calculating the individualized brain state includes: based on the gradient feature matrix, according to the similarity distance evaluation method, the gradient features of all time windows are clustered into K categories, and category labels are set for all time windows; according to the category label of each time window, the functional connectivity average value and the gradient average value of the time window in the same category are calculated, and the functional connectivity average value and the gradient average value are used as the individualized brain state.

[0078] In this embodiment, the individualized brain state calculation uses the K-means clustering algorithm. Assume that the rth brain region is at t i and t j The whole brain gradient values ​​at each moment are and Then any of the following distance functions can be solved in the gradient clustering process:

[0079] (1) Pearson correlation coefficient:

[0080] (2) Absolute value of Pearson correlation coefficient: d ap =1-|d p |,

[0081] (3) Angle cosine:

[0082] (4) Absolute value of the cosine of the angle: d ac =1-|d c |,

[0083] (5) Euclidean distance:

[0084] (6) Manhattan distance:

[0085] The visualization method of individualized brain states includes: (1) visualization of the functional connection strength of cluster centers. According to the above clustering results, the functional connection matrices of the time windows of the same category are averaged, and the connection diagram is drawn using the imagesc function of MATLAB; (2) visualization of the functional connection gradient of the cluster centers. The functional connection gradient of the time windows of the same category is averaged and used as the gradient file in the BrainSpace drawing process. The brain regions defined by the group-level template are used as node files to draw the gradient diagram; (3) visualization of the temporal transformation of the cluster centers. The functional connection gradient feature matrix is ​​reduced in dimension to three-dimensional space, and different time window sample points are depicted in the three-dimensional space. The distance between the sample points is adjusted according to the similarity of the gradients between the time windows. Finally, the sample points are connected with directed arrows in chronological order to obtain the temporal transformation pattern between different categories.

[0086] Embodiment 2

[0087] In this embodiment, the practical application of the present invention is illustrated by taking the group level template as the Schaefer2018_400 template, the individualized brain region segmentation parameter threshold as 300, the individualized window length range as 50:70, the K value of the brain state K-means clustering as 4, and the distance function as the Pearson correlation distance.

[0088] The data used in this example is a subject in the public data set of the human connectome project (HCP). For this subject, the functional imaging scan time series X of all voxels in the whole brain after preprocessing is obtained. V , the time series X V It is at the voxel level, including V voxels and T time points, and the data dimension is T×V. In this embodiment, T is 1200, and V is 91×109×91=902629;

[0089] like Figure 2 As shown, the group-level brain region template preset in this embodiment is the Schaefer2018_400 template, the individual parameter threshold is 300, and the functional imaging scan time series X is judged. V Whether any voxel in the V voxels is a pending voxel, all the non-pending voxels are retained as the individualized brain region segmentation template. In this embodiment, there are 13610 pending voxels and 889019 non-pending voxels. According to the individualized brain region segmentation template, the average value of all voxel signals in each brain region at each time point is calculated to obtain the functional imaging time series X at the brain region level. R , the time series X R It includes R brain regions and T time points, and the data dimension is T×R. In this embodiment, R is 400.

[0090] Specifically, the preset group-level brain region template includes 400 regions. The template is a three-dimensional matrix, in which the number 0 represents the background, and the numbers 1, 2, 3...400 refer to different brain regions in turn; according to the preset group-level brain region template, the average value of all voxel signals in each brain region is calculated at any time point to obtain the reference time series of all brain regions; for each voxel in the whole brain signal, the Pearson correlation coefficient between the voxel time series and the time series of all brain regions is calculated, and the correlation coefficients are sorted from high to low. The higher the correlation coefficient, the greater the possibility that the voxel belongs to the corresponding brain region; the individualized parameter threshold is preset to 300, and the threshold is used to determine whether the partition of the whole brain signal voxel is consistent with the group-level partition. The individualized parameter threshold is an integer, which describes the tolerance range of partition consistency. For example, in this embodiment, the individualized parameter threshold is 300, and the voxels with the correlation coefficients of the group-level partitions ranked in the top 300 (from high to low) can be judged as partition consistency; according to the voxel partition determination method, all voxels that are judged to be inconsistent with the group-level partitions are regarded as pending voxels. In this embodiment, there are 13610 pending voxels. In the original group-level partition template, the partition numbers of all pending voxels are set to 0, so that the pending voxels are removed from the partition template; on the basis of the group-level brain region template, the template obtained after excluding the pending voxels is the individualized partition template, and 0 in the template represents the background and pending voxels, and the numbers 1, 2, 3...400 refer to different brain regions in turn; according to the individualized brain region segmentation template, the average value of all voxel signals in each brain region is calculated at any time point to obtain the functional imaging time series X at the brain region level. R , the time series X R It includes 400 brain regions and 1200 time points, and the data dimension is 1200×400.

[0091] According to the preset sliding time window length range of 50:70, the optimal individualized window length between 50:70 is determined. i , with a step size of 1, calculate the Pearson correlation coefficient between brain regions of all sliding time windows, and perform Z transformation as the brain region connection. Average all connections in the time window, calculate the variance of the average connection of all time windows, and divide it by the total number of time windows as the standardized average connection variance. Plot the change curve of the average connection variance when the window length increases by 1. The sliding time window length corresponding to the inflection point of the curve is the optimal individualized window length of 65, as shown in Figure 3 As shown, according to the set individualized window length 65, T time points can be divided into 1136 time windows.

[0092] The functional connection matrices of all time windows are averaged, and the first gradient is calculated as the reference gradient according to the preset gradient distance function and mapping method. In any time window, the first gradient is calculated according to the preset gradient distance function and mapping method, and aligned with the reference gradient as the gradient feature of the time window. The gradient features of all time windows are spliced ​​to obtain a gradient feature matrix with a matrix dimension of 1136×400.

[0093] Specifically, the steps for calculating the functional connectivity gradient feature matrix are as follows: Z-transform the functional connectivity matrix FC of each time window to obtain FC Z , which is expressed as:

[0094] FC z =0.5×[ln(1+FC)-ln(1-FC)

[0095] The average functional connectivity of all time windows was calculated as a reference. For any brain region, the top 10% of the connections connected to it were retained for the average functional connectivity matrix and the connection matrix of each time window. The cosine similarity between each pair of connections was calculated after thresholding to obtain the cosine similarity matrix. Diffusion map embedding was used for data dimensionality reduction to obtain the gradient of the average functional connectivity and the connections of each time window. In the gradient calculation process of each time window, Procrustes Analysis was used to align the gradient of each time window to the gradient of the average functional connectivity. The gradient features of all time windows were concatenated to obtain the gradient feature matrix G with a matrix dimension of 1136×400.

[0096] Taking the gradient feature matrix as input, according to the preset similarity distance evaluation method, the gradient features of all time windows are clustered into K categories. In this embodiment, the K value is 4, that is, each time window is divided into one of the four categories; according to the label of each time window, the average value of the functional connection of the time window in the same category and the average value of the gradient are calculated as the brain state, and the whole brain functional connection strength and gradient of different categories are visualized. In addition, the gradient feature matrix is ​​reduced to three dimensions, and the conversion of different categories is drawn in three-dimensional space;

[0097] Specifically, the individualized brain state calculation uses the K-means clustering algorithm. In this embodiment, the distance function is the Pearson correlation coefficient. Suppose the whole brain gradient values ​​of the rth brain region at time ti and tj are and The following distance function can be solved in the gradient clustering process:

[0098] Pearson correlation coefficient:

[0099] The steps for visualizing individualized brain states are as follows: (1) Visualize the functional connectivity strength of the cluster centers. According to the clustering results, average the functional connectivity matrices of the time windows of the same category and use MATLAB's imagesc function to draw the connectivity map, as shown in Figure 2. Figure 4 (2) Visualization of the functional connection gradient of the cluster center. According to the clustering results, the functional connection gradient of the time window of the same category is averaged as the gradient file in the BrainSpace drawing process. The brain area defined by the group level template is used as the node file to draw the reference gradient and the gradient map of each state, as shown in Figure 5 (3) Visualization of the temporal transformation of cluster centers. According to the clustering results, the functional connection gradient feature matrix is ​​reduced to three-dimensional space. Sample points of different time windows are depicted in the three-dimensional space. The distance of the sample points is adjusted according to the similarity of the gradients between the time windows. The color of the sample points represents different clustering categories. Finally, the sample points are connected with directed arrows in chronological order to obtain the temporal transformation pattern between different categories, as shown in Figure 2. Figure 6 shown.

[0100] Embodiment 3

[0101] In this embodiment, a dynamic gradient-based individualized brain state detection system includes: a data acquisition module, a brain region segmentation module, a time window division module, a feature matrix calculation module and a brain state calculation module.

[0102] The data acquisition module is used to obtain the functional imaging scan time series X of all voxels in the whole brain of the subject. V ,The time series of functional imaging scans includes: V voxels and T time points, and the data dimension is T×V.

[0103] The brain region segmentation module performs individualized brain region segmentation in the spatial dimension based on voxels to obtain the functional imaging time series X R , the functional imaging sequence includes R brain regions and T time points, and the data dimension is T×R.

[0104] The brain region segmentation module includes: a judgment unit, a template determination unit and a segmentation unit; the judgment unit is used to preset the group-level brain region template and the individualized parameter threshold to determine whether any voxel in the voxels is a pending voxel; the template determination unit is used to retain all non-pending voxels to obtain an individualized brain region segmentation template; the segmentation unit calculates the average value of all voxel signals in each brain region at any time point based on the individualized brain region segmentation template to obtain the functional imaging time series X R .

[0105] The time window division module determines the optimal individualized window length L in the time dimension based on the preset sliding time window length range. optimum , and based on the optimal individualized window length Loptimum Divide T time points into TL optimum +1 for the time window.

[0106] The time window division module includes: a Z transform unit, an average connection variance calculation unit, a window length determination unit and a time window division unit: the Z transform unit is used to preset the sliding time window length range L min :L max , in the sliding time window length L i The Pearson correlation coefficients of all brain regions in the sliding time windows are calculated with a step size of 1 and Z-transformed to obtain the brain region connections; the average connection method calculation unit is used to average all brain region connections in the time window, calculate the variance of the average connections of all time windows, and divide it by the total number of time windows as the standardized average connection variance; the window length determination unit is used to draw a curve of the change of the average connection variance when the window length increases by 1, and the sliding time window length corresponding to the inflection point of the curve is the optimal individualized window length L optimum ; The time window division unit is based on the optimal individual window length L optimum Divide T time points into TL optimum +1 for the time window.

[0107] The feature matrix calculation module calculates the functional connection gradient feature matrix based on brain regions and time windows to obtain the gradient feature matrix.

[0108] The feature matrix calculation module includes: a reference gradient calculation unit, a first gradient calculation unit and a splicing unit; the reference gradient calculation unit is used to average the functional connection matrices of all time windows and calculate the reference gradient based on the gradient distance function and the mapping method; the first gradient calculation unit is used to calculate the first gradient based on the gradient distance function and the mapping method in any single time window; the splicing unit is used to align the first gradient with the reference gradient as the gradient feature of a single time window, and splice the gradient features of all time windows to obtain a gradient feature matrix. The matrix dimension of the gradient feature matrix is: (TL optimum +1)×R.

[0109] The brain state calculation module calculates the individualized brain state based on the gradient feature matrix and visualizes the individualized brain state.

[0110] The brain state calculation module includes: a clustering unit, a brain state calculation unit and a visualization unit; the clustering unit is based on the gradient feature matrix and the similarity distance evaluation method to cluster the gradient features of all time windows into K categories, and set category labels for all time windows; the brain state calculation unit is used to calculate the functional connectivity average and gradient average of the time windows in the same category according to the category label of each time window, and use the functional connectivity average and gradient average as the individualized brain state; the visualization unit is used to visualize the individualized brain state.

[0111] The embodiments described above are only descriptions of the preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary technicians in this field should all fall within the protection scope determined by the claims of the present invention.

Claims

1. A method for individualized brain state detection based on dynamic gradient, characterized in that: The following steps are involved: Obtain the functional imaging scan time series X of all voxels in the whole brain of the subject V , the functional imaging scanning time series includes: V voxels and T time points, and the data dimension is T×V; Based on the voxels, individualized brain region segmentation in spatial dimension is performed to obtain the functional imaging time series X R , the functional imaging sequence includes R brain regions and T time points, and the data dimension is T×R; Determine the optimal individualized window length L in the time dimension based on the preset sliding time window length range optimum , and based on the optimal individualized window length L optimum Divide the T time points into TL optimum +1 time window; Calculate the functional connection gradient feature matrix based on the brain region and the time window to obtain a gradient feature matrix; An individualized brain state is calculated based on the gradient feature matrix, and the individualized brain state is visualized.

2. The method for individualized brain state detection based on dynamic gradient according to claim 1, characterized in that: Get the functional image time series X R The methods include: Preset a group-level brain region template and an individualized parameter threshold to determine whether any voxel in the voxels is a pending voxel; All non-pending voxels are retained to obtain an individualized brain region segmentation template; Based on the individualized brain region segmentation template, the average value of all voxel signals in each brain region is calculated at any time point to obtain the functional imaging time series X R .

3. The method for individualized brain state detection based on dynamic gradient according to claim 1, characterized in that: Determine the optimal individualized window length L in the time dimension optimum The methods include: The preset sliding time window length range L min :L max , in the sliding time window length L i Next, with a step size of 1, the Pearson correlation coefficients of all brain regions in the sliding time windows were calculated and Z-transformed to obtain the brain region connectivity; The connections between all the brain regions in the time window are averaged, the variance of the average connections of all time windows is calculated, and the variance is divided by the total number of time windows to obtain the standardized average connection variance; Draw a curve of the change of the average connection variance when the window length increases by 1, and the sliding time window length corresponding to the inflection point of the curve is the optimal individualized window length L optimum .

4. The method for individualized brain state detection based on dynamic gradient according to claim 1, characterized in that: The method of obtaining the gradient feature matrix includes: The functional connectivity matrices of all time windows were averaged, and the reference gradient was calculated based on the gradient distance function and the mapping method; Calculating a first gradient based on the gradient distance function and the mapping manner within any single time window; The first gradient is aligned with the reference gradient as the gradient feature of a single time window, and the gradient features of all time windows are concatenated to obtain a gradient feature matrix. The matrix dimension of the gradient feature matrix is: (TL optimum +1)×R.

5. The method for individualized brain state detection based on dynamic gradient according to claim 1, characterized in that: The method of calculating the individualized brain state comprises: Based on the gradient feature matrix, according to the similarity distance evaluation method, the gradient features of all time windows are clustered into K categories, and category labels are set for all time windows; According to the category label of each time window, the functional connectivity average and the gradient average of the time window in the same category are calculated, and the functional connectivity average and the gradient average are used as the individualized brain state.

6. A dynamic gradient-based individualized brain state detection system, characterized in that: include: Data acquisition module, brain region segmentation module, time window division module, feature matrix calculation module and brain state calculation module; The data acquisition module is used to obtain the functional imaging scan time series X of all voxels of the whole brain of the subject. V , the functional imaging scanning time series includes: V voxels and T time points, and the data dimension is T×V; The brain region segmentation module performs individualized brain region segmentation in the spatial dimension based on the voxels to obtain the functional image time series X R , the functional imaging sequence includes R brain regions and T time points, and the data dimension is T×R; The time window division module determines the optimal individualized window length L of the time dimension based on the preset sliding time window length range optimum , and based on the optimal individualized window length L optimum Divide the T time points into TL optimum +1 time window; The feature matrix calculation module calculates the functional connectivity gradient feature matrix based on the brain region and the time window to obtain a gradient feature matrix; The brain state calculation module calculates individualized brain states based on the gradient feature matrix and visualizes the individualized brain states.

7. The dynamic gradient-based individualized brain state detection system according to claim 6, characterized in that: The brain region segmentation module includes: a judgment unit, a template determination unit and a segmentation unit; The judgment unit is used to preset a group-level brain region template and an individualized parameter threshold to judge whether any voxel among the voxels is a pending voxel; The template determination unit is used to retain all undetermined voxels to obtain an individualized brain region segmentation template; The segmentation unit calculates the average value of all voxel signals in each brain region at any time point based on the individualized brain region segmentation template to obtain the functional imaging time series X R .

8. The dynamic gradient-based individualized brain state detection system according to claim 6, characterized in that: The time window division module includes: a Z transform unit, an average connection variance calculation unit, a window length determination unit and a time window division unit: The Z transform unit is used to preset the sliding time window length range L min :L max , in the sliding time window length L i Next, with a step size of 1, the Pearson correlation coefficients of all brain regions in the sliding time windows were calculated and Z-transformed to obtain the brain region connectivity; The average connection method calculation unit is used to average all the inter-brain connections within the time window, calculate the variance of the average connections of all time windows, and divide it by the total number of time windows as the standardized average connection variance; The window length determination unit is used to draw a curve of the change of the average connection variance when the window length increases by 1, and the sliding time window length corresponding to the inflection point of the curve is the optimal individualized window length L optimum ; The time window division unit is based on the optimal individualized window length L optimum Divide the T time points into TL optimum +1 for the time window.

9. The dynamic gradient-based individualized brain state detection system according to claim 6, characterized in that: The feature matrix calculation module includes: a reference gradient calculation unit, a first gradient calculation unit and a splicing unit; The reference gradient calculation unit is used to average the functional connection matrices of all time windows and calculate the reference gradient based on the gradient distance function and the mapping method; The first gradient calculation unit is used to calculate a first gradient based on the gradient distance function and the mapping mode within any single time window; The splicing unit is used to align the first gradient with the reference gradient as the gradient feature of a single time window, and splice the gradient features of all time windows to obtain a gradient feature matrix. The matrix dimension of the gradient feature matrix is: (TL optimum +1)×R.

10. The dynamic gradient-based individualized brain state detection system according to claim 6, characterized in that: The brain state calculation module includes: a clustering unit, a brain state calculation unit and a visualization unit; The clustering unit clusters the gradient features of all time windows into K categories based on the gradient feature matrix and according to a similarity distance evaluation method, and sets category labels for all time windows; The brain state calculation unit is used to calculate the functional connectivity average value and the gradient average value of the time window in the same category according to the category label of each time window, and use the functional connectivity average value and the gradient average value as the individualized brain state; The visualization unit is used to visualize the individualized brain state.