A method for constructing a magnetoencephalogram directed network based on granger causality analysis

By constructing MEG directed connectivity brain networks through Granger causality analysis, the problem of traditional methods failing to reflect the direction of signal transmission is solved, enabling precise analysis of causal relationships between brain regions and improving the effectiveness of diagnosis and treatment for epilepsy patients.

CN117912702BActive Publication Date: 2026-11-27BEIJING UNIV OF TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311844607.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-28
Publication Date
2026-11-27
Estimated Expiration
2043-12-28

AI Technical Summary

Technical Problem

Existing technologies, when constructing functional networks of magnetoencephalography (MEG), cannot effectively reflect the direction of signal or information transmission in the network, nor can they accurately understand the propagation path and regulatory mechanism of brain network signals. In particular, in epilepsy patient research, there is a lack of in-depth analysis of directed connections.

Method used

A directed MEG brain network was constructed using Granger causality analysis. Through preprocessing, source reconstruction, Granger causality analysis, and other steps, causal relationships between brain regions were established. The optimal model order was estimated using the Bayesian information criterion and a multivariate autoregressive model, and statistical tests were performed to ensure the model fit quality.

Benefits of technology

It provides information on causal relationships between brain regions, reflects the direction of signal transmission, and can better distinguish the differences between healthy subjects and epilepsy patients, thus promoting the diagnosis and treatment of epilepsy and having potential clinical and academic application value.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117912702B_ABST
    Figure CN117912702B_ABST
Patent Text Reader

Abstract

A magnetoencephalography directed network construction method based on Granger causality analysis relates to the technical field of magnetoencephalography functional network construction and analysis.The present application contains two parts: firstly, the preparation of data, including the MEG data preprocessing process, MEG data source reconstruction, extraction of MEG signals of the brain region of interest and confirmation of the optimal MVAR model lag order; secondly, the construction process of the brain network, including fitting the MVAR model and Granger causality analysis. The method can obtain the causal relationship between brain regions and the direction information of node transmission. The experimental results show that, compared with the traditional method based on Pearson correlation coefficient, the method has advantages in brain region connection and abnormal analysis of topological properties, and can provide more comprehensive and objective information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of magnetoencephalography (MEG) functional network construction and analysis technology, specifically covering a method for constructing directed networks from resting-state MEG. This method primarily employs the Granger causality analysis algorithm for the construction of the directed network. Background Technology

[0002] In neuroscience, brain network analysis has become an important tool for understanding the relationship between brain function and structure. The pathogenesis of epilepsy involves specific changes in the brain networks of patients, which may be closely related to factors such as the frequency and intensity of seizures and the patient's cognitive function. Therefore, in-depth analysis of the brain networks of epilepsy patients is of great significance, helping us to more comprehensively understand the nature of the pathophysiology of epilepsy.

[0003] Based on the directionality of connections, brain networks can be divided into directed and undirected networks, reflecting the "unidirectional transmission" and "bidirectional interaction" relationships between neurons, respectively. "Unidirectional transmission" refers to information flowing from one neuron to another without reverse flow; "bidirectional interaction" refers to information flowing back and forth between two neurons. Previous research has shown that directed connectivity analysis helps capture and present the propagation process of brain activity in epilepsy patients, exhibiting high sensitivity in locating epileptic foci and detecting differences in functional networks among epilepsy patients. However, most epilepsy-related research is still based on explorations of undirected functional connectivity, with relatively few studies using MEG to construct directed connectivity.

[0004] Directed connections involve edges (or connections) in a network graph having directionality, meaning they point from one node to another. In a directed connection, each edge has a definite start and end point, and information or relationships are passed along this direction. In contrast, undirected connections refer to edges (or connections) in a network graph that do not have a clearly defined directionality; they only indicate that the relationship between two nodes is reciprocal, without a distinction between start and end points.

[0005] Granger causality analysis is a traditional time series analysis method used to study causal relationships in a set of time series data. Brain network construction methods based on Granger causality analysis aim to determine whether the activity of one brain region influences the activity of another by analyzing the time delays between different brain regions. When using the activity of brain region A to predict the activity of brain region B, if the prediction effect is significantly better than the prediction effect based solely on the activity of brain region B itself, it indicates that the activity of brain region A has a better predictive ability for the activity of brain region B, i.e., a causal relationship exists between the two brain regions; otherwise, no causal relationship exists. By performing Granger causality analysis on the time series data of every two brain regions, directional brain networks can be constructed, where the connections between brain regions reflect the directionality of signal transmission.

[0006] In summary, this study aims to utilize MEG technology to analyze directed connections and delve into the causal relationships between brain network nodes in epilepsy patients, thereby aiding our subsequent experiments and analyses. This will not only contribute to the diagnosis and treatment of epilepsy but also provide a new research tool for the field of neuroscience, with potential clinical and academic applications. Summary of the Invention

[0007] To address the numerous limitations of traditional magnetoencephalography (MEG) functional network construction methods, such as the inability to reflect the transmission direction of signals or information in the network and the inability to accurately understand the propagation path and regulatory mechanism of brain network signals, this invention proposes a new technique for constructing MEG brain networks based on Granger causality analysis.

[0008] MEG directed connectivity brain networks constructed based on Granger causality analysis help provide richer information on causal relationships and clear directional information between brain network nodes, overcoming the limitations of traditional undirected connectivity methods in information transmission. This technology has potentially significant applications in deepening the understanding and analysis of brain networks, studying the interactions and individual differences between brain regions, and advancing research on the brain network mechanisms of related diseases in the field of neuroscience.

[0009] To achieve the above objectives, this invention employs the following technical solution: First, the raw data is preprocessed. A head model and a source model are constructed based on the subjects' T1-weighted magnetic resonance imaging (T1 MRI). Preprocessing includes high-pass filtering, notch filtering, independent component analysis, and downsampling. Second, based on the Beamformer method, source reconstruction is performed on the preprocessed magnetoencephalogram (MEG) signals, the head model, and the source model. Then, the brain is divided into 116 brain regions according to anatomical marker templates, and the signal with the highest power in each brain region is extracted as the representative signal, resulting in a time series with a size equal to the number of brain region nodes multiplied by the number of time points. Finally, a directed brain connectivity matrix is ​​constructed based on Granger causality analysis. This step includes: First, based on the time series processed above, the Bayesian Information Criterion (BIC) is used to estimate the optimal model order. Second, a multivariate autoregressive (MVAR) model is fitted based on the optimal model order to estimate the MVAR model parameters. Third, statistical tests are used to verify whether the model residuals satisfy the assumptions of stationarity and white noise, ensuring the model's fit quality. Fourth, Granger causality analysis is performed using the estimated MVAR model parameters to reveal potential causal relationships between different brain regions. Based on the statistical tests of Granger causality analysis, it is identified which brain regions' signals can predict signal changes in other brain regions, thereby revealing causal relationships between brain region activities.

[0010] The present invention comprises the following steps:

[0011] Step 1: Obtain the subject's magnetoencephalogram (MEG) data and corresponding T1-weighted magnetic resonance imaging (T1 MRI).

[0012] Step 2: Preprocess the raw magnetoencephalogram (MEG) signals and construct the head model and source model using the subject's T1 MRI.

[0013] Step 2.1: Examine the raw magnetoencephalogram (MEG) data, remove problematic channel signals and replace them with the average or weighted average of two adjacent channel signals. Both replacement methods are acceptable and have no impact on subsequent processing. Use a 0.5Hz high-pass filter to remove baseline drift and a 50Hz notch filter to remove power frequency interference. Use independent component analysis to remove interference from electromyography (EMG), electrooculography (EOG), and electrocardiography (ECG) signals. Segment the processed data at 2-second intervals.

[0014] Step 2.2: Segment the T1 MRI, extract the surface image of the cerebral cortex, and establish a volume conduction model; slice the T1 MRI to construct a source model based on cortical surface information to describe the position and orientation of dipoles.

[0015] Step 3: Based on beamforming, source reconstruction is performed on the preprocessed magnetoencephalogram signal, head model, and source model to create source mapping relationships between channel signals and sources.

[0016] Step 4: Based on the anatomical marker template, the brain is divided into 116 brain regions. Each brain region has a different number of channel signals, and these signals are all processed by source mapping.

[0017] Step 5: Extract the signal with the highest power in each brain region as the representative signal to obtain a time series of brain regions × number of time points.

[0018] Step 6: Construct MEG directed brain network based on Granger causality analysis. Perform Granger causality analysis on the whole brain time series extracted in Step 5 to construct a matrix of size equal to the number of brain regions × the number of brain regions.

[0019] Step 6 includes:

[0020] Step 6.1, estimate the optimal lag order for the multiple autoregressive (MVAR) model.

[0021] The MVAR model is a linear regression model that uses a linear combination of random variables from several past moments to describe random variables from a future moment. The lag order *p* is a physical quantity describing the number of variables from past moments used. Increasing the lag order *p* has two advantages: firstly, using more variables from past moments makes the description of future variables more accurate; secondly, it increases the number of model parameters, leading to additional computational resource requirements. To strike a balance between goodness of fit and model complexity (i.e., the number of parameters), appropriate lag order *p* needs to be selected using certain criteria. In this invention, the Bayesian Information Criteria (BIC) is used to estimate the optimal lag order for the MVAR model. The time series data used to fit the MVAR model is derived from the results in step 5.

[0022] The estimation of the optimal model lag order can be divided into the following three parts: 1) establishing and fitting MVAR models with different model lag orders; 2) calculating the BIC value of the MVAR model; 3) selecting the optimal model lag order based on the BIC value of different lag orders.

[0023] 1) Establish and fit MVAR models with different model lag orders.

[0024] To determine a suitable model lag order, a series of MVAR models with different lag orders need to be constructed and fitted for analysis and comparison. The formula for the MVAR model is shown below:

[0025]

[0026] Among them, U t Let represent the multivariate time series at time t, i.e., the multivariate time series obtained in step 5; p represents the model lag order, i.e., the maximum lag period considered by the model; k represents the number of lag periods, from 1 to p; A k U is an n×n real-valued matrix of autoregressive coefficients, where n represents the number of time series; t-k Represents a multivariate time series with a lag of k time steps; ε t The residual term at time t reflects the model's fit quality. In the MVAR model, the error term ε is typically assumed to be... t It follows a multivariate normal distribution, i.e., ε t ~n(0, ∑) indicates that the error term vector follows an n-dimensional normal distribution with a mean of 0, and ∑ represents the covariance matrix of the error term. It is important to note that U... t U t-k Given a known quantity, different p-values ​​need to be set to fit A. k And ∑, to construct MVAR models with different model lag orders.

[0027] In this invention, the maximum likelihood estimation (MLE) method is used to evaluate the above model parameters A. k Estimate the likelihood using the likelihood function L(A) and ∑. k ,∑|U t Find the optimal parameters by maximizing them. and The likelihood function can be expressed as the product of the probability density functions of the multivariate normal distribution of the error terms at all time points, as shown in the following formula:

[0028]

[0029] Where T represents the number of time points in the time series. To optimize the calculation process, the logarithm is typically used to simplify the multiplication on the right side of the equation to addition, and the likelihood function is minimized by taking the negative value and differentiating. Therefore, the optimization problem of MLE can be simplified to...

[0030]

[0031] in This means minimizing -ln L(A) k ,∑|U t To obtain the optimal parameters and

[0032] 2) Calculate the BIC value of the MVAR model.

[0033] BIC is a commonly used information criterion that combines model fit and model complexity to balance these two factors. The formula for calculating BIC is as follows:

[0034] BIC=-2*ln(L)+m*ln(T) (4)

[0035] Where L represents the optimal fitting parameters and The maximum likelihood estimate is obtained at time m, where m represents the number of model parameters and T represents the number of time points in the time series. -2*ln(L) reflects the model fit, while m*ln(T) is a regularization term used to constrain model complexity. A smaller BIC value indicates a better model fit and a simpler model.

[0036] 3) Selecting the Optimal Model Lag Order Based on BIC Values ​​for Different Lag Orders: After fitting the model using different lag orders p, a series of BIC values ​​will be obtained. The lag order with the lowest BIC value is selected as the optimal model lag order. The model with the lowest BIC value is considered to perform best in balancing model complexity and data fit. Selecting the optimal model order helps avoid overfitting or oversimplification, enabling the model to provide more reliable and accurate predictions.

[0037] Step 6.2, Estimate the parameters of the MVAR model

[0038] Fit the MVAR model according to the selected optimal model lag order. The specific steps for fitting the MVAR model are the same as in 6.1-1.

[0039] Step 6.3 Model Validation

[0040] The residual ε at each time point of the MVAR model t Perform tests to ensure the model's fit quality. Use statistical tests in SPSS to verify whether the model's residuals satisfy the assumptions of stationarity and white noise. ε t It can be done using known optimal parameters and the lag order of the optimal model Calculated using the following formula:

[0041]

[0042] Step 6.4 Granger Causal Analysis

[0043] To better illustrate the analytical process of Granger causality analysis, we assume a multivariate time series U t Given two time series X t Y t Composition, namely:

[0044] The MVAR model formula (1) can be written as:

[0045]

[0046] Simplified to:

[0047]

[0048] Among them, A xy,k X represents t For X t The past and Y t Past dependencies. When A xy,k =0, that is, X t Only by X t The prediction of the future in the past is represented by X. t Autoregressive model:

[0049]

[0050] Among them, A′ xx,k This indicates a reduction in the amount of Y t The autoregressive coefficient after dependence, ε′ x,t This indicates a reduction in the amount of Y t The dependent residuals. Therefore, the time series X can be calculated separately. t In the presence of Y t The residual covariance matrix ∑ when the information is past xx And without Y t The residual covariance matrix ∑′ of past information xx The calculation formula is as follows:

[0051] ∑′ xx =cov(ε′) x,t (9)

[0052] ∑ xx =cov(ε x,t (10)

[0053] Where ε x,t and ε′ x,t This represents the residual vector at time t. The covariance matrix can be directly calculated in Matlab using built-in functions. By comparing two residual covariance matrices (∑′... xx and ∑ xx Y can be measured t To X t The causal relationship is calculated using the following formula:

[0054]

[0055] Specifically It is measured by calculating the ratio between these two covariance matrices. If If the value of Y is large, then we can assume that Y t For X t There is a strong causal relationship. Among them, X t and Y t Representing different time-series variables (brain regions); Indicates from Y t To X t A measure of causality, used to assess the Y region of a brain. t For another brain region X t The causal influence. Therefore, when Granger causality analysis is extended to whole-brain time series, the Granger causality coefficient value F for every two brain regions can be obtained, thereby constructing a Granger causal directed connection brain network with the number of brain regions × the size of the number of brain regions.

[0056] To conduct a comparative analysis, a traditional resting-state undirected MEG network based on the Pearson correlation coefficient was constructed, and the average connection strength of the brain connectivity matrix was calculated. Furthermore, the topological properties of the two methods were extracted and compared by classification.

[0057] Compared with the prior art, the beneficial effects of the present invention are:

[0058] 1. MEG directed brain network construction based on Granger causality analysis can provide information on causal relationships between brain regions and reflect the direction of signal or information transmission in the network.

[0059] 2. Through comparative analysis, MEG directed brain network construction based on Granger causality analysis is better able to distinguish between healthy subjects and patients than undirected brain network construction based on Pearson correlation coefficient at both the connectivity and feature classification levels. Attached Figure Description

[0060] Figure 1 This is a schematic diagram of the data preprocessing workflow;

[0061] Figure 2 Here is an example of the MEG directed connectivity matrix for epilepsy patients based on Granger causality analysis;

[0062] Figure 3 Visualization of partial connections between epilepsy patients and normal controls based on Granger causality analysis of MEG directed connections;

[0063] Figure 4 Box plot comparing the average connectivity strength of directed connectivity in epilepsy MEG based on Granger causality analysis and undirected connectivity in epilepsy MEG based on Pearson analysis;

[0064] Figure 5This study compares the classification performance of epilepsy patients with directed MEG connectivity based on Granger causality analysis and undirected MEG connectivity based on Pearson analysis with normal controls. Detailed Implementation

[0065] The present invention will be further described below with reference to the accompanying drawings and specific embodiments.

[0066] A method for constructing MEG directed brain networks based on Granger causality analysis includes the following steps:

[0067] like Figure 1 The diagram shows the preprocessing procedure of this invention. This invention involves data from 14 healthy subjects and 34 patients with epilepsy. This step primarily uses one subject as an example and includes the following steps:

[0068] Step 1: Data preparation stage. In this embodiment, the acquired MEG channel data and T1MRI images need to be preprocessed.

[0069] The MEG data preprocessing workflow is based on Python 3.6 and uses Jupyter Notebook as the compilation environment. The specific preprocessing steps are as follows:

[0070] 1) Data Acquisition: MEG data were acquired using a whole-brain CTF 275-channel MEG system at a sampling frequency of 1200Hz. The acquired signals were filtered through a bandpass filter from 0.03 to 300Hz and then digitized at 1000Hz. The acceptable head movement during acquisition was limited to 5mm. Each test session recorded 120 seconds of MEG data, and at least 20 sets of MEG data were recorded for each subject.

[0071] 2) Quality Inspection: Review the MEG data for abnormal channels, including channels where no signal was acquired and channels where the signal amplitude is more than twice the average value of the signal channels. We replace the signal of the abnormal channel with the average amplitude of the two adjacent channel signals or a weighted average, either of which has no impact on subsequent processing.

[0072] 3) Denoising: The MEG data was filtered through a high-pass filter with a cutoff frequency of 0.5Hz to remove baseline drift, and then filtered through a 50Hz notch filter to remove power frequency interference. Independent component analysis (ICA) was used to remove ECG, EOS, and EMG interference signals from the MEG data. The ICA method was implemented using the MNE toolkit in Python, with parameters set to 21 components and a seed of 97 to ensure consistent random results across different runs. The 21 component signals were overlaid to create a superimposed image. The waveforms and amplitudes of the signals to be removed differed from the MEG signals. The waveform differences were manifested as different trends, and the amplitude differences as differences in signal strength magnitude, typically 1.5-2 times. By removing each component signal sequentially and repeating the above observation process, the interference signals to be removed were identified and eliminated. After ICA, independent signals were obtained, retaining only the MEG signal. The MEG data was then resampled to a frequency of 500Hz.

[0073] 4) Signal segmentation: The processed MEG data was segmented into 2-second segments, and the MEG data of each subject was divided into 60 segments for subsequent analysis.

[0074] T1 MRI images are used to solve the source reconstruction problem in MEG data. Source reconstruction can be divided into a forward problem (knowing the distribution location of the activity sources, solving for the head surface signal in a forward manner) and an inverse problem (based on the head surface signal, solving for the location, direction, and intensity of the neural activity sources in the brain). First, we need to use T1 MRI data to construct a solution model for the forward problem, namely a head model and a source model, to obtain the mapping relationship, thereby solving the inverse problem. Our specific processing steps are as follows:

[0075] 1) Data Acquisition: To accurately register the T1 MRI and MEG datasets, three reference points were placed at the same locations as the three coils used in the MEG acquisition. All subjects' heads were secured with foam pads. A GE Signa NV / i 1.5T superconducting MRI scanner was used, employing orthogonal cranial coils. Sagittal scans were performed to reconstruct axial and coronal images. After the scan, the MRI data was fused with the MEG anatomical structures. Throughout the MRI scan, subjects remained relaxed, lying supine with their eyes closed and at rest.

[0076] 2) Head Model Creation: The head model is a mathematical model describing the geometry and tissue conductivity of the head. It can be used to calculate the forward problem, i.e., how brain power sources generate head surface potential signals. Because the data to be analyzed is MEG data, a single-shell volume conduction model needs to be constructed. The model was constructed using the SPM12 toolbox in FieldTrip 2019. First, the `ft_read_mri` function was used to read the subject's T1 MRI modal data and register it to the MNI template. Second, to obtain the conductivity and boundaries of different tissues, the `ft_volumesegment` function was used to divide the registered T1 MRI data into gray matter, white matter, and cerebrospinal fluid density maps. Finally, the `ft_prepare_headmodel` function was used to construct the head model by taking the segmented data as input. It should be noted that the head model is in CTF coordinate system at this time.

[0077] 3) Source Model Construction: The source model is a mathematical model describing the location, direction, and quantity of brain electrical signals. It can be used to calculate the inverse problem, i.e., to estimate the distribution of brain electrical signals based on cerebrospinal potential signals. First, to facilitate subsequent meshing operations, the original T1 MRI data of the subject needs to be re-sliced. The T1 MRI data is read using the `ft_read_mri` function, and re-sliced ​​using `ft_volumereslice`. The image resolution `cfg.solution` is set to 1, and the image dimensions `cfg.dim` are set to 256×256×256. To obtain the relationship between CTF coordinates and ACPC coordinates, the re-sliced ​​T1 MRI data needs to be registered to ACPC coordinates using the `ft_volumerealign` function, and the transformation matrix is ​​saved. During the registration process, the method `cfg.method` is set to `interactive`, and the registration coordinates `cfg.coordsys` are set to `acpc`. The transformation matrix can be accessed using the `mri.transform` function, and the inverse transformation matrix can be obtained using the `inv` function to convert the ACPC coordinate data to CTF coordinates. Subsequently, the `FreeSurferPipeline.sh` script in the HCP workbench is used to reconstruct the surface of the processed T1 MRI, generating a triangular mesh of gray and white matter boundaries and the meningeal surface, and then smoothing, correcting, and refining the surface. The `ft_read_headshape` function is then used to construct the source model using the above triangular mesh as input. The `ft_transform_geometry` function, using the inverse transformation matrix and the source model as input, transforms the source model from the ACPC coordinate system to the CTF coordinate system, thus unifying the coordinate systems of the head model and the source model. Finally, points with an `atlasroi` field greater than 0 in the source model are considered internal points, and unnecessary external points are removed.

[0078] Step 2: Source Reconstruction: Source reconstruction essentially uses the solution model of the forward problem to solve the inverse problem, that is, to create a source mapping relationship between MEG channel signals and sources, mapping sensor signals to brain regions. Based on the MEG data, head model, and source model obtained in the above steps, the source reconstruction of MEG data can be performed. First, the subject's MEG data, head model, source model, and AAL standard template need to be loaded, and the units of various models and data need to be standardized. Second, the `ft_timelockanalysis` function performs time-domain analysis on the MEG to obtain the average signal and covariance matrix for each channel. `cfg.covariance` is set to `yes` to calculate the covariance of each channel, and `cfg.covariancewindow` is set to `all` to use all time windows to calculate the covariance matrix. Next, the `ft_sourceanalysis` function performs source analysis on the time-domain analysis results. The method `cfg.method` is set to `lcmv` to use the linearly constrained minimum variance algorithm to calculate the activity intensity and direction of each source point. Finally, the `ft_sourceinterpolate` function interpolates the source analysis results with the AAL template. The method `cfg.intermethod` is set to `nearest`, and the parameter `cfg.parameter` is set to `tissue`. The source analysis results are then saved.

[0079] Step 3: Extract representative signals from corresponding brain regions: Based on the source analysis results above, signals from regions of interest can be extracted according to the brain region list in the AAL template. We used the whole brain of the AAL template for subsequent research, employing the maximum power method to select the channel signal with the highest power within a brain region as the representative signal of that region. Thus, each subject obtained 60 time series of 116 (number of brain regions) × 1000 (number of time points). The first segment of data for each subject was extracted, resulting in a 116 (number of brain regions) × 1000 (number of time points) time series for each subject.

[0080] Figure 2 For epilepsy patients, the MEG directed connectivity matrix was calculated using Granger causality analysis, resulting in a connectivity matrix graph. The calculation of the Granger causality analysis connectivity matrix was performed in Matlab, including the following steps:

[0081] Step 4: Based on the process in Step 6.1 above, calculate the optimal model order in Matlab. We take p values ​​from 1 to 10 and fit 10 MVAR models with different lag orders respectively. The optimal model order is 5.

[0082] Step 5: Based on the process in steps 6.2-6.4 above and the egc_gcMVAR function in the downloaded eGC toolkit, estimate the MVAR model parameters. After validating the model, calculate the Granger causality analysis connectivity matrix, obtaining a 116 (number of brain regions) × 116 (number of brain regions) connectivity matrix for each subject. There are a total of 48 subjects, including 14 healthy controls and 34 patients with epilepsy. Use the plot_pw function to visualize the matrix of one of the epilepsy patients.

[0083] Figure 3 This visualization visualizes partial connectivity of a MEG directed connectivity brain network constructed based on Granger causality analysis. The visualization results can intuitively reflect the differences in Granger causality directionality between healthy subjects and epilepsy patients. Figure 3 (a) and Figure 3 (b) Visualization results of the 20 strongest directed connections in the brain networks of healthy controls and epilepsy patients, respectively. The specific steps are as follows:

[0084] Step 6: Average the connection matrices obtained above for 14 healthy controls and 34 epilepsy patients respectively. Normalize the two matrices for healthy controls and epilepsy patients respectively, and keep only the top 20 connections with the highest connection strength. Save the two matrices in .txt format.

[0085] Step 7: Input the two matrices above, representing edge information from the network, into the BrainNet Viewer toolbox. This toolbox contains standard templates for brain surface files and network node information. Visualization is achieved using the brain surface file, network nodes, and the input edge information.

[0086] Figure 4 This is a box plot comparing the average connectivity strength of a MEG directed connectivity brain network constructed based on Granger causality analysis and a MEG undirected connectivity brain network constructed based on Pearson correlation coefficient. The box plot shows that the directed connectivity based on Granger causality analysis can better distinguish between healthy subjects and epilepsy patients, while the undirected connectivity based on Pearson correlation coefficient cannot significantly distinguish between them. The specific steps are as follows:

[0087] Step 8: Based on the Pearson correlation coefficient (corr function) built into MATLAB, undirected connections were constructed for the subjects to obtain a 116 (number of brain regions) × 116 (number of brain regions) connection matrix for each subject. There were a total of 48 subjects, including 14 healthy controls and 34 patients with epilepsy.

[0088] Step 9: Calculate the sum of the directed connectivity matrix based on Granger causality analysis and the undirected connectivity matrix based on Pearson correlation coefficient, and obtain the average connectivity strength of each connectivity matrix by dividing by the number of brain regions. Draw box plots at the individual level based on the obtained average connectivity strength.

[0089] Figure 5 The ROC curve comparison chart allows for a direct comparison of the advantages and disadvantages of MEG directed connectivity brain networks constructed based on Granger causality analysis and MEG undirected connectivity brain networks constructed based on Pearson correlation coefficients, based on the classification results. Figure 5 (a) represents the ROC curve for classification based on MEG directed connections using Granger causality analysis. Figure 5 (b) represents the ROC curve for classification based on the undirected MEG connections of the Pearson correlation coefficient.

[0090] The specific steps are as follows:

[0091] Step 10: Using the Gretna toolkit, extract four global and four local topological attributes from the two connection matrices of healthy subjects and epilepsy patients respectively. The four global attributes are: clustering coefficient, global efficiency, local efficiency, and feature path length; the four local topological attributes are: node efficiency, node local efficiency, node clustering coefficient, and degree centrality. Summarize the topological attributes obtained from all subjects to obtain a 48×468 (4+4*116) matrix, and assign feature labels according to healthy controls and epilepsy patients respectively.

[0092] Step 11: Use nonparametric tests in SPSS software to screen features. Based on the topological properties of Granger causality analysis, 34 features with differences were selected, and based on the topological properties of Pearson correlation coefficient, 12 features with differences were selected.

[0093] Step 12: Use the selected features as input to a Support Vector Machine (SVM) model and perform classification using a linear kernel function. The SVM model is based on a Python 3.6 environment and runs in the PyCharm compilation environment. Plot ROC curves for the classification results obtained from the SVM models trained using the topological attribute features from Granger causality analysis and the topological attributes from Pearson correlation coefficients.

Claims

1. A method for constructing directed magnetoencephalography (MEG) networks based on Granger causality analysis, characterized in that, Includes the following steps: Step 1: Obtain the subject's magnetoencephalogram (MEG) data and corresponding T1-weighted magnetic resonance imaging (T1 MRI); Step 2: Preprocess the raw magnetoencephalogram (MEG) signals and construct the head model and source model using the subject's T1 MRI. Step 3: Based on beamforming, source reconstruction is performed on the preprocessed magnetoencephalogram signal, head model, and source model to create a source mapping relationship between channel signals and sources; Step 4: Based on the anatomical marker template, the brain is divided into 116 brain regions. Each brain region has a different number of channel signals, and these signals are all processed by source mapping. Step 5: Extract the signal with the highest power in each brain region as the representative signal to obtain a time series of brain regions × number of time points; Step 6: Construct MEG directed connectivity brain network based on Granger causality analysis. Perform Granger causality analysis on the whole brain time series extracted in Step 5 and construct a matrix of size equal to the number of brain regions × the number of brain regions. Step 6 includes: Step 6.1: Use the Bayesian Information Criterion (BIC) to estimate the optimal lag order of the multivariate autoregressive MVAR model. The time series used to fit the MVAR model is derived from the results in Step 5. The optimal model lag order estimation consists of the following three parts: 1) establishing and fitting MVAR models with different model lag orders; 2) calculating the BIC value of the MVAR model; 3) selecting the optimal model lag order based on the BIC values ​​of different lag orders. 1) Establish and fit MVAR models with different model lag orders. To determine a suitable model lag order, a series of MVAR models with different lag orders need to be constructed and fitted for analysis and comparison; the formula for the MVAR model is shown below: (1); in, denoted as the multivariate time series at time t, i.e., the multivariate time series obtained in step 5; p represents the model lag order, i.e., the maximum lag period considered by the model; k represents the number of lag periods, from 1 to p. This is an n×n real-valued matrix of autoregressive coefficients, where n represents the number of time series. This represents a multivariate time series with a lag of k time steps. The residual term at time t reflects the model's fit quality. In the MVAR model, the error term... It follows a multivariate normal distribution, that is This indicates that the error term vector follows an n-dimensional normal distribution with a mean of 0. This represents the covariance matrix of the error term; it's important to note the fitting process of the MVAR model. Given a known quantity, different p-values ​​need to be set for fitting. and To construct MVAR models with different model lag orders; The maximum likelihood estimation method was used to evaluate the parameters of the above model. and To make an estimate, i.e., through the likelihood function Find the optimal parameters by maximizing and The likelihood function is expressed as the product of the probability density functions of the multivariate normal distribution of the error terms at all time points, as shown in the following formula: (2); Where T represents the number of time points in the time series; the multiplication on the right side of the equation is simplified to addition by taking the logarithm, and the minimum of the likelihood function is calculated by taking the negative value and differentiating; the optimization problem of MLE is then simplified to (3); in This means minimizing Obtain the optimal parameters and ; 2) Calculate the BIC value of the MVAR model. The formula for calculating BIC is as follows: (4); in, Indicates the optimal fitting parameters and The maximum likelihood estimate obtained at time m represents the number of model parameters, and T represents the number of time points in the time series; where The goodness of fit of the response model, and 3) Use regularization terms to constrain model complexity; 4) Select the optimal model lag order based on the BIC values ​​of different lag orders; After fitting the model using different model lag orders p, a series of BIC values ​​for the models are obtained; the model lag order with the smallest BIC value is selected as the optimal model lag order; the model with the smallest BIC value is considered to perform best in balancing model complexity and data fit. Step 6.2, Estimate the parameters of the MVAR model Fit the MVAR model according to the selected optimal model lag order; Step 6.3 Model Validation The residuals of the MVAR model at each time point Perform tests; use statistical tests in SPSS to verify whether the residuals of the model satisfy the assumptions of stationarity and white noise. Based on known optimal parameters and the lag order of the optimal model Calculated using the following formula: (5); Step 6.4 Granger Causal Analysis Multivariate time series Two time series , Composition, namely: ; The formula (1) for the MVAR model is written as follows: (6) ; Simplified to: (7) ; in, express right The past and Past dependence; when =0, that is Only by Predictions about the future in the past are represented as Autoregressive model: (8) ; in, This indicates a reduction in the amount of... The autoregressive coefficient after dependence, This indicates a reduction in the amount of... Dependent residuals; thus calculating time series separately. In have Residual covariance matrix when information is past and none Residual covariance matrix when information is past The calculation formula is as follows: (9) ; (10) ; The covariance matrix can be directly calculated in Matlab using built-in functions. This is achieved by comparing the covariance matrices of two residuals. and measure arrive The causal relationship is calculated using the following formula: (11) ; It is measured by calculating the ratio between these two covariance matrices; where, and Time-series variables representing different brain regions; Indicates from arrive A measure of causality, used to assess a brain region. For another brain region The causal influence; when Granger causality analysis is extended to whole-brain time series, the Granger causality coefficient value F for every two brain regions is obtained, thereby constructing the number of brain regions. Granger causal directed connections in brain networks, based on the number and size of brain regions.

2. The method for constructing a directed magnetoencephalogram network based on Granger causality analysis as described in claim 1, wherein step 2 includes: Step 2.1: Examine the raw magnetoencephalogram (MEG) data, remove problematic channel signals and replace them with the average or weighted average of the signals from two adjacent channels; use a 0.5Hz high-pass filter to remove baseline drift and a 50Hz notch filter to remove power frequency interference; use independent component analysis to remove interference from electromyography (EMG), electrooculography (EOG), and electrocardiography (ECG) signals. The processed data is divided into segments with a 2-second interval; Step 2.2: Segment the T1 MRI, extract the surface image of the cerebral cortex, and establish a volume conduction model; slice the T1 MRI to construct a source model based on cortical surface information to describe the position and orientation of dipoles.

Citation Information

Patent Citations

  • Magnetoencephalogram dynamic function connection construction method based on Hilbert-Huang transform

    CN116509400A

  • Method and system for locating seizure focus from interictal data

    US20180279939A1