Method, device, electronic device and storage medium for extracting epilepsy electroencephalogram index
Through standardized preprocessing and traceability reconstruction analysis, mapping to brain atlas templates solves the problems of unrepeatable and low reliability of epilepsy EEG index extraction, achieves more accurate EEG index extraction, and improves the efficiency of epilepsy diagnosis and treatment. reliability.
Patent Information
- Application Number
- CN202410795235.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-06-19
AI Technical Summary
Existing epilepsy EEG index extraction methods have problems of non-repeatability and low reliability, mainly due to the subjectivity of clinicians and differences in data formats caused by different EEG data acquisition systems.
By obtaining the EEG data of the target subject before and after epilepsy, perform data standardization preprocessing, extract the EEG data of a specific analysis period, perform traceability reconstruction analysis, and map the results to the brain areas of the brain atlas template. to extract target EEG indicators.
It improves the repeatability and reliability of epilepsy EEG index extraction, eliminates the impact of differences between different EEG data acquisition systems, and provides more accurate and unified EEG indicators to help diagnosis and treatment.
Smart Images

Figure CN118356201B
Abstract
Description
Technical Field
[0001] The present application relates to the field of neuroimage processing technology, and in particular to a method, device, electronic device and storage medium for extracting epilepsy electroencephalogram indicators. Background Art
[0002] Electroencephalography (EEG) is a widely used non-invasive neuroimaging technology that records changes in brain neural potentials by monitoring electrical activity on the surface of the human scalp. EEG can capture rapidly changing brain electrical activity, is low-cost, non-invasive to subjects, and has a wide range of applications. Therefore, it is an important tool for studying brain function and neurological diseases in both clinical and experimental settings. In cognitive science research, EEG has become a core device for exploring brain mechanisms such as attention, perception, language processing, and memory because of its millisecond-level temporal resolution. In addition, EEG is gradually showing its application potential in studying neural development and the impact of brain lesions on cognitive function.
[0003] Epilepsy is a typical neurological disease characterized by abnormal discharges of brain nerve cells leading to temporary brain dysfunction. EEG recordings can capture traces of these abnormal discharges and are a key tool for diagnosing and analyzing epilepsy. By analyzing EEG recordings, professional physicians can monitor the brain electrical activity of epilepsy patients and extract key EEG indicators that are helpful for diagnosis and treatment.
[0004] However, the analysis of epileptic EEG is a complex process that requires comprehensive judgment of multiple features such as EEG waveform, frequency, amplitude, etc. Current challenges include diverse EEG waveform variations, the difficulty of distinguishing pathological waveforms from normal background activities, and the need to accurately extract indicators from EEG records containing many artifacts.
[0005] At present, many analyses of epilepsy mainly rely on the experience and judgment of clinical physicians, which are highly subjective. Subjective judgments are prone to errors and have poor reliability. In other epilepsy analysis methods, since the collection of EEG data will use different experimental sites and EEG systems, there will be certain differences in the format of the collected EEG data, and it is impossible to obtain epilepsy EEG indicators through the same analysis method.
[0006] There is currently no effective solution to the problems of non-repeatability and low reliability in the extraction of epilepsy EEG indicators in related technologies. Summary of the invention
[0007] In this embodiment, a method, device, electronic device and storage medium for extracting epilepsy EEG indicators are provided to solve the problems of non-repeatability and low reliability of epilepsy EEG indicator extraction in related technologies.
[0008] In a first aspect, a method for extracting epilepsy EEG indicators is provided in this embodiment, comprising:
[0009] obtaining first electroencephalogram data of the target subject before and after the epileptic seizure;
[0010] Performing data standardization preprocessing on the first electroencephalogram data to obtain second electroencephalogram data;
[0011] Extracting electroencephalogram data of a specific analysis period from the second electroencephalogram data to obtain third electroencephalogram data;
[0012] Performing source tracing and reconstruction analysis according to the third electroencephalogram data to obtain a source tracing and reconstruction analysis result;
[0013] Map the traceability reconstruction analysis results onto the brain regions of the brain atlas template to obtain EEG traceability data at the brain atlas level;
[0014] Extract target EEG indicators based on EEG traceability data at the brain map level.
[0015] In some embodiments, obtaining first electroencephalogram data of a target subject before and after an epileptic seizure includes:
[0016] Reading one or more initial EEG data conforming to a standard exchange format according to different data reading methods; wherein the standard exchange format includes: European data format, biological signal data format, continuous data file format and electroencephalogram signal recording combined file format;
[0017] The EEG electrodes of the initial EEG data are matched, renamed and sorted with the EEG electrodes in the standard EEG electrode system to obtain first EEG data.
[0018] In some embodiments, performing data standardization preprocessing on the first electroencephalogram data to obtain the second electroencephalogram data includes:
[0019] Performing high-pass and low-pass filtering and notch filtering on the first electroencephalogram data to obtain filtered electroencephalogram data;
[0020] Through downsampling processing, the sampling rate of the filtered EEG data is adjusted down to a fixed analysis frequency to obtain downsampled EEG data;
[0021] Performing artifact removal processing on the downsampled EEG data to obtain artifact-removed EEG data;
[0022] Perform bad track interpolation repair on the artifact-removed EEG data to obtain repaired EEG data;
[0023] The repaired EEG data is globally averaged and re-referenced to obtain the second EEG data.
[0024] In some embodiments, extracting EEG data of a specific analysis period from the second EEG data to obtain third EEG data includes:
[0025] Classifying and arranging the second electroencephalogram data according to the event types marked in the second electroencephalogram data;
[0026] For each event type, a specific analysis time window is set respectively, and the electroencephalogram data of the specific analysis time window is extracted to obtain the third electroencephalogram data.
[0027] In some of the embodiments, performing source tracing reconstruction analysis based on the third EEG data to obtain source tracing reconstruction analysis results includes:
[0028] Calculate the time-frequency representation of the third EEG data to obtain a cross-frequency covariance matrix;
[0029] Construct a head model and a source space, and calculate a forward solution based on the head model and the source space;
[0030] The source reconstruction is performed based on the cross-frequency covariance matrix and the forward solution to obtain the source reconstruction analysis results.
[0031] In some of the embodiments, the traceability reconstruction analysis results are mapped onto the brain regions of the brain atlas template to obtain EEG traceability data at the brain atlas level, including:
[0032] Obtain the correspondence between all source points in the source space and each brain region in the brain atlas template;
[0033] According to the corresponding relationship, the traceability reconstruction analysis results are mapped to the brain area to obtain EEG traceability data at the brain map level.
[0034] In some of the embodiments, extracting target EEG indicators based on EEG traceability data at the brain atlas level also includes:
[0035] The EEG connections between brain regions are calculated based on the EEG traceability data at the brain map level. The EEG connections include power envelope correlation, phase lag index, phase slope index, spectral coherence, phase lock value and phase consistency.
[0036] Determine the synchronization, phase relationship and information transmission characteristics between different brain regions based on EEG connections.
[0037] In the second aspect, in this embodiment, a device for extracting epilepsy EEG indicators is provided, including: a data acquisition module, a data preprocessing module, a source tracing and reconstruction module, and a spectrum mapping module, wherein:
[0038] A data acquisition module, used to acquire first electroencephalogram data of a target subject before and after an epileptic seizure;
[0039] A data preprocessing module is used to perform data standardization preprocessing on the first electroencephalogram data to obtain second electroencephalogram data; extract the electroencephalogram data of a specific analysis period in the second electroencephalogram data to obtain third electroencephalogram data;
[0040] A source tracing and reconstruction module is used to perform source tracing and reconstruction analysis based on the third electroencephalogram data to obtain a source tracing and reconstruction analysis result;
[0041] The atlas mapping module is used to map the traceability reconstruction analysis results onto the brain area of the brain atlas template to obtain EEG traceability data at the brain atlas level; and to extract target EEG indicators based on the EEG traceability data at the brain atlas level.
[0042] In a third aspect, an electronic device is provided in this embodiment, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for extracting epilepsy EEG indicators described in the first aspect is implemented.
[0043] In a fourth aspect, a storage medium is provided in this embodiment, on which a computer program is stored, and when the program is executed by a processor, the method for extracting epilepsy EEG indicators described in the first aspect is implemented.
[0044] Compared with the related art, the epilepsy EEG index extraction method provided in the present embodiment obtains the first EEG data of the target subject before and after the epileptic attack; performs data standardization preprocessing on the first EEG data to obtain the second EEG data; extracts the EEG data of a specific analysis period in the second EEG data to obtain the third EEG data; performs source tracing and reconstruction analysis based on the third EEG data to obtain the source tracing and reconstruction analysis result; maps the source tracing and reconstruction analysis result onto the brain area of the brain map template to obtain EEG source tracing data at the brain map level; extracts the target EEG index based on the EEG source tracing data at the brain map level, thereby achieving the repeatability of the epilepsy EEG index extraction and improving the reliability of the epilepsy EEG index extraction.
[0045] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0047] Figure 14 is a hardware structure block diagram of a terminal of the epilepsy EEG index extraction method of this embodiment.
[0048] Figure 2 4 is a flow chart of the epilepsy EEG index extraction method of this embodiment.
[0049] Figure 3 This is a preferred flow chart of the epilepsy EEG index extraction method of this embodiment.
[0050] Figure 4 4 is a structural block diagram of the epilepsy EEG index extraction device of this embodiment. DETAILED DESCRIPTION
[0051] In order to more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments.
[0052] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the general meaning understood by people with general skills in the technical field to which this application belongs. The words "one", "a", "the", "these" and the like in this application do not indicate a quantitative limitation, and they may be singular or plural. The terms "include", "comprise", "have" and any variants thereof involved in this application are intended to cover non-exclusive inclusions; for example, a process, method and system, product or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" may mean: A exists alone, A and B exist at the same time, and B exists alone. Generally, the character " / " indicates that the objects associated with each other are in an "or" relationship. The terms "first", "second", "third", etc. in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.
[0053] The method embodiment provided in this embodiment can be executed in a terminal, a computer or a similar computing device. For example, running on a terminal, Figure 1 FIG. 1 is a hardware structure diagram of a terminal of the epilepsy EEG index extraction method of this embodiment. Figure 1 As shown, the terminal may include one or more ( Figure 1Only one is shown in the figure) a processor 102 and a memory 104 for storing data, wherein the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA. The above terminal may also include a transmission device 106 and an input and output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0054] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the epilepsy EEG index extraction method in the present embodiment. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0055] The transmission device 106 is used to receive or send data via a network. The above network includes a wireless network provided by a communication provider of the terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.
[0056] In this embodiment, a method for extracting epilepsy EEG indicators is provided. Figure 2 is a flow chart of the epilepsy EEG index extraction method of this embodiment, such as Figure 2 As shown, the process includes the following steps:
[0057] Step S201, obtaining first electroencephalogram data of a target subject before and after an epileptic seizure.
[0058] Exemplarily, the EEG data of the target subject before and after the epileptic attack is collected by an EEG data collection device, or the EEG data of the target subject before and after the epileptic attack is directly obtained from a public database and recorded as the first EEG data.
[0059] Specifically, the target subject is generally an epilepsy patient with a history of epilepsy. The EEG data acquisition device can be a head-mounted device equipped with multiple channels, which collects the EEG data to be processed by monitoring the electrical activity of the target subject's brain neurons. When acquiring data from a public database, you can choose a recognized neuroimaging data sharing platform or a professional EEG database to screen out the epilepsy-related EEG data set required for the experimental research, which is recorded as the first EEG data.
[0060] Step S202: performing data standardization preprocessing on the first electroencephalogram data to obtain second electroencephalogram data.
[0061] Specifically, due to the differences in the EEG data formats obtained from different EEG data acquisition systems, the first EEG data obtained is subjected to unified standardized preprocessing, and the preprocessed first EEG data is recorded as the second EEG data. The influence of the differences between the data collected by different systems on the EEG data processing is eliminated, ensuring that the EEG data collected from different experimental sites and EEG systems can be processed with the same standardized process in the subsequent processing flow.
[0062] Step S203, extracting the electroencephalogram data of a specific analysis period from the second electroencephalogram data to obtain third electroencephalogram data.
[0063] Specifically, the data of each test are classified and sorted according to the event type marked in the EEG data, and a specific analysis time window is set for each event type, and the EEG data of a specific period in each test are extracted to obtain the third EEG data.
[0064] Step S204: performing source tracing and reconstruction analysis based on the third electroencephalogram data to obtain a source tracing and reconstruction analysis result.
[0065] Specifically, electroencephalography (EEG) is obtained by detecting and recording the electric fields generated by neuronal activity after they are superimposed to a certain extent, and has a high temporal resolution. However, compared with imaging technologies such as functional magnetic resonance imaging (fMRI), the spatial resolution of EEG is low, and it is difficult to determine the exact location of the brain source. In order to solve this problem, this embodiment uses source tracing and reconstruction analysis to estimate the distribution and characteristics of the intracranial source that generates scalp signals through mathematical models and algorithms. Source tracing and reconstruction analysis refers to the process of inferring the location and intensity of the neuronal current source that generates these signals in the brain based on the electric potential recorded on the scalp. The signal collected by the EEG system is the electric field distribution around the subject's head, not the point field distribution inside the brain. If the complex neuronal activity is abstracted into a brain source model, the process can be simulated by mathematical methods according to the propagation law of the electric field in space. This is the so-called positive problem, that is, the electromagnetic field distribution around the brain is forwardly inferred by the electrical activity inside the brain. It includes the establishment of a head model and the conductivity set according to the organization and composition of the brain. The opposite process to the above is the inverse problem in source reconstruction, which is to estimate the internal brain signals through a specific algorithm. After the third EEG data is subjected to source reconstruction analysis, the source reconstruction analysis results are obtained. Through source reconstruction analysis, deeper information about the source of brain activity can be provided, such as the intensity, location and direction of the activity source. This information helps to further understand the functional organization of the brain, cognitive processes and the mechanism of epilepsy.
[0066] Step S205, mapping the traceability reconstruction analysis results onto the brain area of the brain map template to obtain EEG traceability data at the brain map level.
[0067] Specifically, brain maps are a method of representing the structure and function of the brain as brain networks, which can help researchers study the function and structure of the brain. Commonly used brain maps include AAL (Automated Anatomical Labeling), BNA (Brainnetome Atlas) and HCP-MMP (Human Connectome Project Multi-Modal Parcellation). Brain maps are often used to study the brain's connection patterns, network topology and functional modules, and the use of brain maps can limit possible individual differences, thereby providing more accurate results. Furthermore, brain maps limit the scope of research to specific brain areas, which can narrow the scope of analyzing neuroimaging data, making the research results more accurate and unified. The neural index extraction method using brain maps is common in functional magnetic resonance imaging research, but it can also be extended to other neuroimaging studies such as electroencephalograms and magnetoencephalograms. With the help of brain map tools, epilepsy-related EEG indicators can be extracted in a standardized and automated manner. According to the correspondence between the traceability reconstruction analysis results and the brain regions in the standard spatial brain map template, the traceability reconstruction analysis results are mapped to the brain regions of the brain map template to obtain brain map-level EEG traceability data. By using a standard brain map, possible individual differences can be limited, thereby providing more accurate results for batch analysis of data from different sources.
[0068] Step S206, extracting target EEG indicators based on the EEG traceability data at the brain map level.
[0069] Specifically, in the process of mapping the traceability reconstruction analysis results to the brain area of the brain map template, the traceability results of the original source space point time point are mapped to the brain area, and the traceability data of the brain area time point is obtained. The temporal dynamics of brain activity are observed and analyzed in units of brain areas, and the data collected by different systems, different sites and different subjects are summarized in the same standard brain area for analysis. By summarizing the data on each brain area, the source activity power time series of each brain area is obtained. These time series reflect the intensity of neural activity in each brain area at different time points, that is, the target EEG indicators. Through these target EEG indicators, the trend and pattern of brain activity over time can be analyzed. The target EEG indicators are analyzed by analyzing the EEG traceability data at the brain map level. By analyzing these multidimensional EEG indicators, the potential mechanism of epileptic seizures can be revealed, and the propagation path of epileptic activity can be tracked. It is helpful for the prediction, diagnosis and formulation of treatment strategies for epilepsy. For example, by identifying the activity patterns of brain areas before and after epileptic seizures, a more effective epilepsy early warning system can be developed to help patients take measures in time. At the same time, these indicators also provide imaging basis for clinicians, which is helpful for the design and evaluation of personalized treatment plans.
[0070] Through the above steps S201 to S206, the first EEG data of the target subject before and after the epileptic attack is obtained; the first EEG data is preprocessed for data standardization to obtain the second EEG data; the EEG data of a specific analysis period in the second EEG data is extracted to obtain the third EEG data; the source reconstruction analysis is performed according to the third EEG data to obtain the source reconstruction analysis result; the source reconstruction analysis result is mapped on the brain area of the brain map template to obtain the EEG source data at the brain map level; the target EEG index is extracted according to the EEG source data at the brain map level. Compared with the current epilepsy analysis mainly based on the experience and judgment of clinicians, this application eliminates the influence of the difference between the data collected by different systems on the EEG data processing by performing differential processing on the EEG data acquisition system and data format, and improves the reliability of the extraction of epilepsy EEG indexes. Through the standardized and process-oriented EEG data preprocessing, brain map source reconstruction analysis and related EEG index extraction operations, the repeatability of EEG data processing and analysis research and the reliability of extracted indicators are improved. In addition, the epilepsy EEG index extraction method based on brain atlas in this application adds a certain degree of versatility and comparability to the EEG data processing and analysis process by making use of brain atlas tools commonly used in other neuroimaging fields.
[0071] In some embodiments, obtaining first EEG data of a target subject before and after an epileptic seizure includes: reading in one or more initial EEG data conforming to a standard exchange format according to different data reading methods; wherein the standard exchange format includes: a European data format, a biosignal data format, a continuous data file format, and an electroencephalographic signal recording combined file format; matching, renaming, and sorting the EEG electrodes of the initial EEG data with the EEG electrodes in a standard EEG electrode system to obtain the first EEG data.
[0072] Specifically, a variety of EEG data standard formats can be accepted when reading data, including but not limited to European data format, biosignal data format, continuous data file format, and electroencephalographic signal recording combined file format, etc., and the initial EEG data is obtained according to the data reading method. After obtaining the initial EEG data, the system matching of the EEG electrodes is performed to ensure that the electrode positions in the collected data conform to the layout of the international standard 10-20 system. The 10-20 system is an international standard for the placement of EEG electrodes. It determines the position of the electrodes based on the fixed points obtained by head measurement, ensures the consistency and comparability of the electrode positions, and through standardized layout, enables EEG data from different individuals and laboratories to be compared with each other, which helps researchers analyze brain electrical activity and locate related brain areas. At the same time, the electrodes whose names do not conform to the standard rules are renamed, and the arrangement order of the electrodes is adjusted to obtain the first EEG data. Ensuring the consistency of the data is conducive to the comparison, sharing and further analysis and processing of data in the subsequent process.
[0073] In another embodiment, performing data standardization preprocessing on the first electroencephalogram data to obtain second electroencephalogram data includes:
[0074] The first electroencephalogram data are subjected to high-pass and low-pass filtering and notch filtering respectively to obtain filtered electroencephalogram data; the sampling rate of the filtered electroencephalogram data is reduced to a fixed analysis frequency through downsampling processing to obtain downsampled electroencephalogram data; the downsampled electroencephalogram data is subjected to artifact removal processing to obtain artifact-removed electroencephalogram data; the artifact-removed electroencephalogram data is repaired by bad track interpolation to obtain repaired electroencephalogram data; the repaired electroencephalogram data is subjected to global average re-reference to obtain second electroencephalogram data.
[0075] Specifically, first, high-pass and low-pass filtering are used in data preprocessing to filter the first EEG data to remove noise and retain relevant EEG signals. A fixed filter cutoff frequency can be set in advance for the first EEG data. At present, the high-pass filter is generally set to 0.1 Hz and the low-pass filter is set to 80 Hz to filter out non-related frequency components in the EEG signal. Then, the noise of a specific frequency is eliminated by a notch filter to obtain the EEG number after filtering. Among them, the noise of a specific frequency can be power line interference, and its specific value depends on the geographical location of the experiment. It is usually 50 Hz in China and 60 Hz in the United States and some other countries. By setting a notch filter to specifically suppress the corresponding power grid frequency interference, the interference signal of this part of the specific frequency can be effectively removed to ensure the purity and accuracy of the EEG data.
[0076] Secondly, downsampling is performed to reduce the sampling rate of the data to a frequency suitable for analysis, thereby obtaining downsampled EEG data. Downsampling can reduce the volume of the data while retaining the necessary information in the EEG data, thereby improving the efficiency of subsequent processing and analysis. In addition, since the original sampling frequencies of different EEG data sets are different, downsampling the data from different sites and acquisition devices to a fixed analysis frequency is also conducive to subsequent unified analysis.
[0077] Subsequently, the downsampled EEG data is subjected to artifact removal, and the independent component analysis (ICA) method is used to identify and separate the eye movement and muscle artifact components in the EEG data. ICA is a signal processing technique that can decompose a mixed signal into multiple independent source signals that represent different physiological or non-physiological activities in the data. Through ICA, components related to eye movement or muscle activity can be effectively identified. These components usually appear as high-frequency transient fluctuations, which are significantly different from the characteristics of EEG signals. Artifact components are identified through ICA and removed from the downsampled EEG data, thereby improving the quality of the EEG data and obtaining artifact-free EEG data.
[0078] After removing the artifacts, the bad tracks in the data are interpolated and repaired. Bad tracks usually refer to signal loss or abnormality caused by poor electrode contact, equipment failure or other reasons. Interpolation repair estimates the signal value at the bad track by using the information of the surrounding normal data points, thereby filling the gaps in the data and obtaining the repaired EEG data. The continuity and integrity of the data can be maintained by interpolating the bad tracks.
[0079] Finally, the repaired EEG data is globally averaged and re-referenced. Re-referencing is a data normalization technique that eliminates the influence of the reference electrode by calculating the average of all electrode signals and subtracting this average from the signal of each electrode so that the signals of all electrodes are measured relative to a common benchmark. The data of all EEG channels are averaged to obtain a global average. This average is used as the new reference signal. The global average is subtracted from the data of each EEG channel to re-reference the channel to the global average signal. Re-referencing through global average helps to reduce the impact of reference electrode selection on data analysis results and improves data comparability and analysis accuracy.
[0080] In some embodiments, extracting EEG data of a specific analysis period from the second EEG data to obtain third EEG data includes:
[0081] The second electroencephalogram data are classified and sorted according to the event types marked in the second electroencephalogram data; for each event type, a specific analysis time period window is set respectively, and the electroencephalogram data of the specific analysis time period window is extracted to obtain the third electroencephalogram data.
[0082] Specifically, the second electroencephalogram data is classified and sorted according to the event types marked in the second electroencephalogram data. Among them, the marked event types include epileptic seizures, specific stimulus reactions, etc., and these event types are usually marked during data collection. According to each event type, a specific analysis time period window is set respectively. These specific analysis time period windows are usually determined based on the expected time point of the event, for example, the time period before and after the epileptic seizure, the time period before and after the stimulus presentation, etc. In each time period window, the electroencephalogram data of a specific time period in the second electroencephalogram data is extracted to obtain the third electroencephalogram data.
[0083] In another embodiment, performing source tracing reconstruction analysis according to the third electroencephalogram data to obtain a source tracing reconstruction analysis result includes:
[0084] Calculate the time-frequency representation of the third EEG data to obtain the cross-frequency covariance matrix; construct a head model and source space, and calculate the forward solution based on the head model and the source space; perform source reconstruction based on the cross-frequency covariance matrix and the forward solution to obtain the source reconstruction analysis result.
[0085] Specifically, first, the time-frequency representation of the third EEG data is calculated to obtain a cross-frequency covariance matrix. In this embodiment, Morlet wavelet transform is used to calculate the time-frequency representation of the third EEG data. Morlet wavelet transform is a time-frequency analysis method that combines the frequency resolution of Fourier transform and the time resolution of window Fourier transform, and is suitable for analyzing the local frequency characteristics of non-stationary signals. Afterwards, the coherence source density (CSD) method is used to calculate the cross-frequency covariance matrix. CSD is a covariance analysis method based on time-frequency representation, which can reveal the coherence or coupling relationship between different frequency components, and is helpful to understand the frequency interaction of brain activity. The above calculations are all based on the calculation functions in the MNE toolkit in python.
[0086] Secondly, this embodiment adopts a head model constructed by freesurfer software based on the boundary element method (Boundary Element Method, abbreviated as BEM). In the freesurfer software, the brain surface model based on the average of multiple subject MRI data is first segmented and decomposed into different tissue layers, including cerebral cortex, cerebrospinal fluid, skull and skin, etc., and then the conductivity of each layer of tissue is calculated, so as to construct a head model that can accurately reflect the actual physical properties. This embodiment adopts the standard fsaverage-ico-5-src source space, which is a three-dimensional space constructed based on anatomical knowledge, and the space represents the location of possible neural activity sources. The source space is pre-defined on the brain surface template based on the average of multiple subject MRI data, and the "icosahedral" (icosahedral) grid division method is used to subdivide the brain surface into a series of evenly distributed source points. This division method can provide high-resolution source positioning while maintaining computational efficiency, and is suitable for large-scale traceability analysis. In the source space, each source point can be regarded as a potential neural activity source. Based on the constructed head model and source space, the forward solution is calculated. The forward solution is a mathematical model that describes the signal propagation process from the neural activity source inside the brain to the EEG sensor on the scalp. This embodiment uses the make_forward_solution function in the MNE toolkit for calculation.
[0087] Finally, source reconstruction is performed by the dynamic imaging of coherent sources (DICS) beamformer method. DICS is a spatial filtering method based on beamforming technology, which is suitable for locating and tracking dynamic neural activity sources in EEG and magnetoencephalogram data. In this embodiment, the MNE toolkit is used to perform DICS source reconstruction calculations, and the cross-frequency covariance matrix calculated previously is used as the input of the DICS analysis. The forward solution is used to simulate the signal propagation process from each source point in the source space to the scalp EEG sensor, and a frequency range of 0.1-80Hz is set. Source points with high coherence are searched within this range. These source points are considered to be the main sources of the observed EEG signals. Through DICS analysis, the EEG source reconstruction analysis results are obtained, which are presented in the form of power time series for each source point in the source space, that is, for the source space with 20480 source points, each source point has N time points, and finally a 20480×N power time series matrix is obtained.
[0088] In some embodiments, the traceability reconstruction analysis results are mapped onto the brain regions of the brain atlas template to obtain EEG traceability data at the brain atlas level, including:
[0089] Obtain the correspondence between all source points in the source space and each brain region in the brain map template; based on the correspondence, map the traceability reconstruction analysis results to the brain region to obtain EEG traceability data at the brain map level.
[0090] Specifically, after obtaining the EEG source reconstruction analysis results, the source space has 20,480 source points, and the 20,480 source points are matched with each brain region in the standard space brain map template, and the 20,480 source points are divided into different brain regions. Among them, the standard space brain map template can be BNA (Brainnetome Atlas), HCP-MMP (Human Connectome Project Multi-Modal Parcellation), AAL (Automated Anatomical Labeling) and Desikan-Killiany Atlas or other anatomical or functional brain maps. Each brain region has its specific anatomical or functional significance. The use of standard brain maps can limit possible individual differences, thereby providing more accurate results for batch analysis of data from different sources. After obtaining the correspondence between the 20,480 source points and the brain regions of different standard brain maps, the source point-based source reconstruction analysis results are mapped to the brain regions, that is, the average activity intensity of all source points in each brain region is calculated. For example, for the HCP-MMP atlas of 360 brain regions, the result obtained after source reconstruction is a 20480×N power time series matrix. After being mapped to the brain regions, a 360×N power time series matrix is obtained. That is, the EEG source data at the brain atlas level is obtained.
[0091] In another embodiment, extracting target EEG indicators based on EEG traceability data at the brain atlas level also includes:
[0092] The EEG connections between brain regions are calculated based on the EEG traceability data at the brain map level. The EEG connections include power envelope correlation, phase lag index, phase slope index, spectral coherence, phase locking value and phase consistency; the synchronization, phase relationship and information transfer characteristics between different brain regions are determined based on the EEG connections.
[0093] Specifically, after mapping the traceability results obtained from the source space point × time point to the brain region, the traceability data of the brain region × time point are obtained, and the data on each brain region are summarized to obtain the source activity power time series on the brain region;
[0094] Based on the traceability data obtained by brain region × time point, the EEG connections between brain regions including power envelope correlation, phase lag index, phase slope index, spectral coherence, phase locking value and phase consistency are further calculated. The source activity power time series and the EEG connections between different brain regions can be used as multidimensional EEG indicators for analyzing epilepsy. Among them, power envelope correlation can be used to evaluate whether the activities of different brain regions are synchronized within a specific frequency range; the phase lag index and phase slope index can quantify the phase relationship between brain regions and reveal the direction and speed of information transmission; spectral coherence, phase locking value and phase consistency provide quantitative indicators of phase synchronization between brain regions. These indicators can reveal the synchronization, phase relationship and information transmission characteristics between different brain regions, help understand the dynamic interaction and functional integration of brain networks, help identify key nodes and paths in brain networks, help reveal the mechanism and transmission path of epilepsy, and provide imaging basis for the prediction and diagnosis of epilepsy.
[0095] Figure 3 : is a preferred flow chart of the epilepsy EEG index extraction method of this embodiment, and the epilepsy EEG index extraction method comprises the following steps:
[0096] Step S301, obtaining first electroencephalogram data of a target subject before and after an epileptic seizure;
[0097] Step S302, performing data standardization preprocessing on the first electroencephalogram data to obtain second electroencephalogram data;
[0098] Step S303, extracting the electroencephalogram data of a specific analysis period from the second electroencephalogram data to obtain third electroencephalogram data;
[0099] Step S304, using Morlet wavelet transform to calculate the time-frequency representation of the third electroencephalogram data to obtain a cross-frequency covariance matrix;
[0100] Step S305, constructing a head model and a source space, and calculating a forward solution based on the head model and the source space;
[0101] Step S306, performing source reconstruction based on the cross-frequency covariance matrix and the forward solution to obtain a source reconstruction analysis result;
[0102] Step S307, mapping the traceability reconstruction analysis result onto the brain region of the brain map template to obtain EEG traceability data at the brain map level;
[0103] Step S308, extracting target EEG indicators based on the EEG traceability data at the brain map level.
[0104] Through the above steps S301 to S308, the method for extracting epilepsy EEG indicators based on brain maps, by performing differential processing on the acquisition system and data format of the epilepsy EEG data of the target subject, and performing standardized preprocessing on the EEG data, extracts data for a specific analysis period; then the preprocessed EEG data is traced and reconstructed, and the results of the traced reconstruction are mapped on the brain region using the brain map tool to obtain EEG traceability data at the brain map level; finally, based on the EEG traceability data at the brain map level, relevant EEG indicators are obtained, including the source activity power time series on the brain region and the EEG connection between different brain regions. The problem of inconsistency in the data format, electrode system and data processing flow of EEG signals collected by many different EEG systems is solved, and the influence of the differences between the data collected by different systems on the processing of EEG data is eliminated. Through standardized and streamlined EEG data preprocessing, brain map traceability reconstruction analysis, and related EEG index extraction operations, the reliability and repeatability of EEG data processing and analysis research are improved, helping ordinary scientific researchers and medical professionals to quickly process complex epilepsy-related EEG data. In addition, the present invention provides an epilepsy EEG index extraction method based on brain maps. By using brain map tools commonly used in other neuroimaging fields, it adds a certain degree of versatility and comparability to the EEG data processing and analysis process, and also provides new ideas for epilepsy-related EEG research, which is of great significance for early diagnosis and treatment of epilepsy.
[0105] In this embodiment, a device for extracting epilepsy EEG indicators is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and will not be repeated hereafter. The terms "module", "unit", "subunit", etc. used below can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0106] Figure 4 is a structural block diagram of the epilepsy EEG index extraction device of this embodiment, such as Figure 4 As shown, the device 40 includes: a data acquisition module 41, a data preprocessing module 42, a source tracing and reconstruction module 43 and a spectrum mapping module 44, wherein:
[0107] A data acquisition module 41 is used to acquire first electroencephalogram data of a target subject before and after an epileptic seizure;
[0108] The data preprocessing module 42 is used to perform data standardization preprocessing on the first electroencephalogram data to obtain second electroencephalogram data; extract the electroencephalogram data of a specific analysis period in the second electroencephalogram data to obtain third electroencephalogram data;
[0109] A source tracing and reconstruction module 43 is used to perform source tracing and reconstruction analysis based on the third electroencephalogram data to obtain a source tracing and reconstruction analysis result;
[0110] The atlas mapping module 44 is used to map the traceability reconstruction analysis results onto the brain area of the brain atlas template to obtain EEG traceability data at the brain atlas level; and extract target EEG indicators based on the EEG traceability data at the brain atlas level.
[0111] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.
[0112] In this embodiment, an electronic device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0113] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0114] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0115] S1, obtaining the first EEG data of the target subject before and after the epileptic seizure;
[0116] S2, performing data standardization preprocessing on the first electroencephalogram data to obtain second electroencephalogram data;
[0117] S3, extracting the electroencephalogram data of a specific analysis period from the second electroencephalogram data to obtain third electroencephalogram data;
[0118] S4, performing source tracing reconstruction analysis based on the third electroencephalogram data to obtain a source tracing reconstruction analysis result;
[0119] S5, mapping the traceability reconstruction analysis results onto the brain area of the brain map template to obtain EEG traceability data at the brain map level;
[0120] S6, extracting target EEG indicators based on EEG traceability data at the brain map level.
[0121] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and will not be repeated in this embodiment.
[0122] In addition, in combination with the epilepsy EEG index extraction method provided in the above embodiment, a storage medium can also be provided in this embodiment to implement the method. The storage medium stores a computer program; when the computer program is executed by a processor, any of the epilepsy EEG index extraction methods in the above embodiment is implemented.
[0123] It should be understood that the specific embodiments described herein are only used to explain the application, rather than to limit it. Based on the embodiments provided in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of this application.
[0124] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0125] Obviously, the drawings are only some examples or embodiments of the present application. For ordinary technicians in the field, the present application can also be applied to other similar situations based on these drawings without creative work. In addition, it is understandable that although the work done in this development process may be complicated and lengthy, for ordinary technicians in the field, certain changes in design, manufacturing or production based on the technical content disclosed in this application are only conventional technical means and should not be regarded as insufficient content disclosed in this application.
[0126] The term "embodiment" in this application refers to a specific feature, structure or characteristic described in conjunction with the embodiment that can be included in at least one embodiment of the present application. The appearance of this phrase in various locations in the specification does not necessarily mean the same embodiment, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. It is clearly or implicitly understood by those of ordinary skill in the art that the embodiments described in this application can be combined with other embodiments without conflict.
[0127] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0128] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of patent protection. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the attached claims.
Claims
1. A method for extracting epilepsy EEG indicators, characterized in that: include: obtaining first electroencephalogram data of the target subject before and after the epileptic seizure; Performing data standardization preprocessing on the first electroencephalogram data to obtain second electroencephalogram data; Extracting electroencephalogram data of a specific analysis period from the second electroencephalogram data to obtain third electroencephalogram data; Performing source tracing and reconstruction analysis according to the third electroencephalogram data to obtain a source tracing and reconstruction analysis result; Mapping the traceability reconstruction analysis results onto the brain region of the brain atlas template to obtain EEG traceability data at the brain atlas level; Extract target EEG indicators based on the EEG traceability data at the brain atlas level, where: Calculating the EEG connections between the brain regions according to the EEG traceability data at the brain atlas level, wherein the EEG connections include power envelope correlation, phase lag index, phase slope index, spectral coherence, phase lock value, and phase consistency; The synchronization, phase relationship and information transfer characteristics between different brain regions are determined based on the EEG connections.
2. The epilepsy EEG index extraction method according to claim 1, characterized in that: The step of obtaining first electroencephalogram data of the target subject before and after the epileptic seizure comprises: Reading one or more initial EEG data conforming to a standard exchange format according to different data reading methods; wherein the standard exchange format includes: European data format, biological signal data format, continuous data file format and electroencephalogram signal recording combined file format; The EEG electrodes of the initial EEG data are matched, renamed and sorted with the EEG electrodes in the standard EEG electrode system to obtain the first EEG data.
3. The method for extracting epilepsy EEG indicators according to claim 2, characterized in that: The step of performing data standardization preprocessing on the first electroencephalogram data to obtain second electroencephalogram data includes: Performing high-pass and low-pass filtering and notch filtering on the first electroencephalogram data to obtain filtered electroencephalogram data; By downsampling processing, the sampling rate of the filtered electroencephalogram data is adjusted down to a fixed analysis frequency to obtain downsampled electroencephalogram data; Performing artifact removal processing on the downsampled EEG data to obtain artifact-removed EEG data; Performing bad track interpolation repair on the artifact-removed EEG data to obtain repaired EEG data; The repaired electroencephalogram data is globally averaged and re-referenced to obtain the second electroencephalogram data.
4. The epilepsy EEG index extraction method according to claim 1, characterized in that: The step of extracting the electroencephalogram data of a specific analysis period from the second electroencephalogram data to obtain third electroencephalogram data includes: Classifying and arranging the second electroencephalogram data according to the event types marked in the second electroencephalogram data; For each event type, a specific analysis time window is set respectively, and the electroencephalogram data of the specific analysis time window is extracted to obtain the third electroencephalogram data.
5. The epilepsy EEG index extraction method according to claim 1, characterized in that: The performing source tracing and reconstruction analysis according to the third electroencephalogram data to obtain a source tracing and reconstruction analysis result includes: Calculating the time-frequency representation of the third electroencephalogram data to obtain a cross-frequency covariance matrix; constructing a head model and a source space, and calculating a forward solution based on the head model and the source space; The source reconstruction is performed based on the cross-frequency covariance matrix and the forward solution to obtain the source reconstruction analysis result.
6. The epilepsy EEG index extraction method according to claim 5, characterized in that: Mapping the traceability reconstruction analysis result onto the brain region of the brain map template to obtain EEG traceability data at the brain map level includes: Acquire the correspondence between all source points in the source space and each brain region in the brain atlas template; According to the corresponding relationship, the traceability reconstruction analysis result is mapped to the brain area to obtain EEG traceability data at the brain atlas level.
7. An epilepsy EEG index extraction device, characterized in that: include: Data acquisition module, data preprocessing module, source tracing and reconstruction module and atlas mapping module, among which: The data acquisition module is used to acquire first electroencephalogram data of the target subject before and after the epileptic seizure; The data preprocessing module is used to perform data standardization preprocessing on the first electroencephalogram data to obtain second electroencephalogram data; extract the electroencephalogram data of a specific analysis period in the second electroencephalogram data to obtain third electroencephalogram data; The source tracing and reconstruction module is used to perform source tracing and reconstruction analysis based on the third electroencephalogram data to obtain a source tracing and reconstruction analysis result; The atlas mapping module is used to map the traceability reconstruction analysis results onto the brain area of the brain atlas template to obtain EEG traceability data at the brain atlas level; extract target EEG indicators based on the EEG traceability data at the brain atlas level, wherein: Calculating the EEG connections between the brain regions according to the EEG traceability data at the brain atlas level, wherein the EEG connections include power envelope correlation, phase lag index, phase slope index, spectral coherence, phase lock value, and phase consistency; The synchronization, phase relationship and information transfer characteristics between different brain regions are determined based on the EEG connections.
8. An electronic device comprising a memory and a processor, characterized in that: The memory stores a computer program, and the processor is configured to run the computer program to execute the epilepsy EEG index extraction method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for extracting epilepsy EEG indicators according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Electroencephalogram signal processing method and epilepsy detection system
CN109431497A
Epileptic focus positioning data processing method and system and storage medium
CN110251083A
Epilepsy magnetoencephalogram spinous wave automatic detection method and traceability positioning system
CN111340142A
Epileptic seizure area positioning system, equipment and medium
CN115363523A
Brain fatigue assessment method based on time-frequency-space multi-dimensional brain network features
CN117679045A
