A transcranial magnetic stimulation combined with electroencephalogram data processing method, device and storage medium
By collecting and processing EEG data during transcranial magnetic stimulation, removing artifacts and generating EEG reports, the problem of electromagnetic interference covering EEG signals is solved, and effective grading and evaluation of EEG signals is achieved.
Patent Information
- Application Number
- CN202510544994.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-28
- Publication Date
- 2025-08-05
- Estimated Expiration
- 2045-04-28
AI Technical Summary
The electromagnetic interference generated by existing transcranial magnetic stimulators during pulse stimulation covers real EEG signals and induced EEG signals, resulting in the inability to identify and use transcranial magnetic stimulation combined with EEG signals for classification and evaluation.
EEG data was collected at the same time as transcranial magnetic stimulation, and artifacts were removed through technical means such as preprocessing, reverse independent component analysis and reverse wavelet transformation, EEG potential and oscillation data were obtained, and reports were generated for grading evaluation.
Effectively utilize transcranial magnetic stimulation combined with EEG data to improve the signal-to-noise ratio, and the classic EEG waveform was clearly observed, realizing the grading evaluation and visual analysis of EEG signals.
Smart Images

Figure CN120067821B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of neural regulation combined with electroencephalogram (EEG) technology, and in particular to a transcranial magnetic stimulation combined with EEG data processing method, device and storage medium. Background Art
[0002] Transcranial magnetic stimulation (TMS) is a non-invasive neuromodulation technique that, since its development in the 1980s, has become a vital tool in neuroscience research and clinical treatment. Its core principle is to penetrate the skull with rapidly varying pulsed magnetic fields, inducing induced currents in the cerebral cortex, thereby reversibly activating or inhibiting local neuronal activity. Due to its high spatial resolution, non-invasive nature, and minimal side effects, TMS is now widely used in the diagnosis and treatment of neurological and psychiatric disorders such as depression, schizophrenia, and Parkinson's disease, and has become a key technical tool for exploring human brain function and higher-order cognitive functions.
[0003] However, existing TMS technology still has significant limitations, restricting its clinical application and scientific research potential. The significant electromagnetic interference generated by a transcranial magnetic stimulator during pulse stimulation can obscure both real and evoked EEG signals within 30-50 milliseconds of this event, rendering them unrecognizable. This makes it impossible to properly use these signals for EEG classification and assessment. Summary of the Invention
[0004] In order to solve the technical problem that the electromagnetic interference generated by the existing transcranial magnetic stimulation device affects the EEG signals, resulting in the inability to use transcranial magnetic stimulation combined with EEG signals for grading and evaluating EEG signals, the present invention provides a transcranial magnetic stimulation combined with EEG data processing method, device and storage medium. By collecting transcranial magnetic stimulation combined with EEG data while transcranial magnetic stimulation is being performed, and processing the real-time transcranial magnetic stimulation combined with EEG data, the required EEG potential data and EEG oscillation data are obtained, and a report is generated to facilitate subsequent EEG data grading and evaluation, thereby effectively utilizing the transcranial magnetic stimulation combined with EEG data.
[0005] In a first aspect, an embodiment of the present application provides a method for transcranial magnetic stimulation combined with electroencephalogram (EEG) data processing, the method comprising:
[0006] Acquiring transcranial magnetic stimulation combined with electroencephalogram (EEG) data; the transcranial magnetic stimulation combined with electroencephalogram (EEG) data is the EEG data of the target subject under transcranial magnetic stimulation with preset parameters;
[0007] Determining EEG potential data and EEG oscillation data based on the transcranial magnetic stimulation combined with EEG data;
[0008] Based on the EEG potential data and the EEG oscillation data, a transcranial magnetic stimulation combined with EEG report is generated; the transcranial magnetic stimulation combined with EEG report is used to perform a graded evaluation of the transcranial magnetic stimulation combined with EEG data.
[0009] In an optional embodiment, determining EEG potential data and EEG oscillation data based on the transcranial magnetic stimulation combined with EEG data includes:
[0010] Preprocessing the transcranial magnetic stimulation combined with electroencephalogram (EEG) data to obtain preprocessed transcranial magnetic stimulation combined with electroencephalogram (EEG) data;
[0011] Performing inverse independent component analysis on the preprocessed transcranial magnetic stimulation combined with electroencephalogram (EEG) data to obtain artifact-removed transcranial magnetic stimulation combined with EEG data;
[0012] performing inverse wavelet transform processing on the artifact-removed transcranial magnetic stimulation combined with electroencephalogram (EEG) data to determine the EEG potential data;
[0013] The EEG oscillation data is determined based on the artifact-removed transcranial magnetic stimulation combined with EEG data.
[0014] In an optional embodiment, performing inverse independent component analysis on the pre-processed transcranial magnetic stimulation combined with electroencephalogram data to obtain the artifact-removed transcranial magnetic stimulation combined with electroencephalogram data includes:
[0015] Segmenting the preprocessed transcranial magnetic stimulation combined with electroencephalogram (EEG) data to obtain a plurality of first EEG data segments;
[0016] Performing time axis reversal processing on each of the first EEG data segments to obtain a plurality of reversed first EEG data segments;
[0017] performing independent component analysis on each of the inverted first EEG data segments to obtain inverted independent component data;
[0018] Separating artifact component data from the inverted independent component data to obtain artifact-removed inverted independent component data;
[0019] The time axis of the inverted independent component data after the artifact removal is restored to obtain the transcranial magnetic stimulation combined with electroencephalogram data after the artifact removal.
[0020] In an optional embodiment, performing inverse wavelet transform on the artifact-removed transcranial magnetic stimulation combined with EEG data to determine the EEG potential data includes:
[0021] Segmenting the artifact-removed transcranial magnetic stimulation combined with electroencephalogram (EEG) data to obtain a plurality of second EEG data segments;
[0022] Performing time axis inversion processing on each of the second EEG data segments to obtain a plurality of inverted second EEG data segments;
[0023] Performing wavelet transform on each of the inverted second EEG data segments to obtain inverted wavelet coefficients;
[0024] Performing time axis restoration on the inverted wavelet coefficients to obtain wavelet coefficients;
[0025] The brain potential data is determined based on the wavelet coefficients.
[0026] In an optional embodiment, determining the EEG oscillation data based on the artifact-removed transcranial magnetic stimulation combined with EEG data includes:
[0027] Segmenting the artifact-removed transcranial magnetic stimulation combined with electroencephalogram (EEG) data to obtain a plurality of third EEG data segments;
[0028] acquiring event-related spectral perturbation data and inter-trial coherence data based on the plurality of third EEG data segments;
[0029] The EEG oscillation data is determined based on the event-related spectral perturbation data and the inter-trial coherence data.
[0030] In an optional embodiment, the transcranial magnetic stimulation combined with EEG report includes at least one of a total average transcranial magnetic stimulation evoked potential map, a spatiotemporal distribution map, a global mean field power map, a local mean field power map, an event-related spectral perturbation map, and an inter-trial coherence map.
[0031] In a second aspect, an embodiment of the present application provides a transcranial magnetic stimulation combined with electroencephalogram (EEG) data processing device, comprising:
[0032] An acquisition module is used to acquire transcranial magnetic stimulation combined with EEG data; the transcranial magnetic stimulation combined with EEG data is EEG data of the target subject under transcranial magnetic stimulation with preset parameters;
[0033] a determination module, configured to determine EEG potential data and EEG oscillation data based on the transcranial magnetic stimulation combined with EEG data;
[0034] A report generation module is used to generate a transcranial magnetic stimulation combined with EEG report based on the EEG potential data and the EEG oscillation data; the transcranial magnetic stimulation combined with EEG report is used to perform a graded evaluation of the transcranial magnetic stimulation combined with EEG data.
[0035] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the transcranial magnetic stimulation combined with EEG data processing method of the first aspect.
[0036] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which at least one instruction or at least one program is stored, and the at least one instruction or at least one program is loaded and executed by a processor to implement the transcranial magnetic stimulation combined with EEG data processing method of the first aspect.
[0037] In a fifth aspect, embodiments of the present application provide a computer program product or computer program, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the transcranial magnetic stimulation combined with electroencephalographic data processing method of the first aspect.
[0038] The transcranial magnetic stimulation combined with EEG data processing method, device, and storage medium provided in the embodiments of the present application have the following technical effects:
[0039] Acquire transcranial magnetic stimulation combined with EEG data; the transcranial magnetic stimulation combined with EEG data is the EEG data of the target object under transcranial magnetic stimulation with preset parameters; determine EEG potential data and EEG oscillation data based on the transcranial magnetic stimulation combined with EEG data; generate a transcranial magnetic stimulation combined with EEG report based on the EEG potential data and the EEG oscillation data; the transcranial magnetic stimulation combined with EEG report is used to perform a graded evaluation of the transcranial magnetic stimulation combined with EEG data, by collecting transcranial magnetic stimulation combined with EEG data while performing transcranial magnetic stimulation, and processing the real-time transcranial magnetic stimulation combined with EEG data to obtain the required EEG potential data and EEG oscillation data, and generate a report to facilitate subsequent graded evaluation of EEG data and effectively utilize transcranial magnetic stimulation combined with EEG data. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions and advantages of the embodiments of the present application or the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0041] Figure 1 is a schematic diagram of an application environment provided by an embodiment of the present application;
[0042] Figure 2 This is a schematic diagram of a transcranial magnetic stimulation combined with EEG data processing method provided in an embodiment of the present application. Figure 1 ;
[0043] Figure 3 This is a schematic diagram of a transcranial magnetic stimulation combined with EEG data processing method provided in an embodiment of the present application. Figure 2 ;
[0044] Figure 4 It is an average potential map and spatiotemporal distribution map of a TEP provided in this application;
[0045] Figure 5 Schematic diagram of global mean field power and local mean field power of a TEP provided in this application;
[0046] Figure 6 This is a flow chart of a method for removing artifacts from transcranial magnetic stimulation combined with electroencephalogram data provided in an embodiment of the present application;
[0047] Figure 7 This is a schematic structural diagram of a transcranial magnetic stimulation combined with electroencephalogram data processing device provided in an embodiment of the present application;
[0048] Figure 8 This is a hardware structure block diagram of a server for a transcranial magnetic stimulation combined with EEG data processing method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0050] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0051] See also Figure 1 , Figure 1 This is a schematic diagram of an application environment provided in an embodiment of the present application. The transcranial magnetic stimulation combined with EEG data processing system includes a transcranial magnetic stimulation device 101, an EEG acquisition device 102, an EEG amplification device 103 and a transcranial magnetic stimulation combined with EEG data processing device 104.
[0052] In an optional embodiment, the EEG acquisition device includes an EEG cap, EEG electrodes and an EEG cable.
[0053] Specifically, the EEG acquisition device 102 is used to collect EEG signals of the target object, wherein multiple EEG electrodes are arranged inside the EEG cap, and the EEG cable connects each electrode to the EEG amplifier, and transmits the electrical signals collected by the electrodes to the EEG amplifier for amplification. The EEG cap is used to fix the positions of multiple electrodes to ensure accurate positioning of the brain area.
[0054] In the embodiment of the present application, the EEG cap is made of silver or silver chloride and carbon fiber. Silver or silver chloride has high conductivity and stable chemical properties, while carbon fiber is lightweight and flexible, which can better fit the target subject's head.
[0055] In this embodiment, the contact surface of the EEG electrode is coated with conductive adhesive, while the other surface is coated with an isolation shielding layer. The conductive adhesive can fill the gap between the electrode and the scalp, reducing resistance. On the other hand, it can also achieve moisture retention and prevent the electrode from falling off.
[0056] The isolation shielding layer can be configured as a metal foil wrap (such as aluminum foil) or a conductive polymer coating to shield external electromagnetic interference, especially signal interference caused by transcranial magnetic stimulation devices.
[0057] The EEG cable uses a double-layer shielded cable. For example, the outer shield uses a silver-plated copper braided mesh, which has a high-strength shielding effect. The inner shield uses aramid fiber to enhance the tensile strength, support repeated bending, and also play a role in shielding external electromagnetic interference.
[0058] In an optional embodiment, the transcranial magnetic stimulation device 101 includes a transcranial magnetic coil; the brain electrodes and the transcranial magnetic stimulation coil are arranged in parallel lines. Specifically, the electrodes and the transcranial magnetic coil are arranged in the same direction (e.g., symmetrically, front-to-back or left-to-right) to minimize electromagnetic coupling between them. Furthermore, the distance between the electrodes and the transcranial magnetic coil can be controlled to be greater than a set value (e.g., 0.5 cm) to reduce the induced voltage.
[0059] In an optional embodiment, the EEG amplification device is mainly used to amplify the electrical signals collected by the EEG device for subsequent use. The EEG amplification device includes an EEG amplification mainboard, which is provided with an amplifier module, a filter module, and an artifact processing module.
[0060] Specifically, a differential amplifier with a high sampling rate of more than 5 kHz and a high dynamic range is used. The differential amplifier can eliminate common-mode interference, capture rapidly changing transcranial magnetic stimulation artifacts and perform subsequent processing. The filtering module can be a low-pass filter or a band-stop filter for real-time removal of transcranial magnetic stimulation artifacts.
[0061] In an optional embodiment, an anti-magnetic field interference circuit can be added to the EEG amplifier mainboard to reduce the impact of the magnetic field on signal acquisition, and improve the common-mode rejection ratio of the amplifier module to reduce the impact of common-mode noise on EEG signals.
[0062] Optionally, extending the length of the cable between the electrodes of the EEG acquisition device 102 and the EEG amplification device 103 can also reduce the possibility of magnetic field induction.
[0063] In an optional embodiment, non-magnetic materials may be used to wrap the connectors between the devices to reduce magnetic field induction.
[0064] In an optional embodiment, the transcranial magnetic stimulation combined with EEG data processing system further includes a magnetic field shielding room, and the transcranial magnetic stimulation device 101, the EEG acquisition device 102 and the EEG amplification device 103 are all arranged in the magnetic field shielding room.
[0065] A magnetic field shielding room can suppress external interference, reduce ambient noise, and improve the signal-to-noise ratio of EEG signals. It also blocks radio frequency interference, preventing wireless signals like WiFi and Bluetooth from interfering with EEG signals. Furthermore, a magnetic field shielding room can block the spread of the transcranial magnetic field, preventing stimulation artifacts from contaminating EEG signals.
[0066] In an optional embodiment, the transcranial magnetic stimulation combined with electroencephalogram (EEG) data processing device 104 receives and processes the amplified EEG signal, and includes an acquisition module for acquiring transcranial magnetic stimulation combined with electroencephalogram (EEG) data; the transcranial magnetic stimulation combined with electroencephalogram (EEG) data is the EEG data of the target subject under transcranial magnetic stimulation with preset parameters; a determination module for determining EEG potential data and EEG oscillation data based on the transcranial magnetic stimulation combined with electroencephalogram (EEG) data; a report generation module for generating a transcranial magnetic stimulation combined with electroencephalogram (EEG) report based on the EEG potential data and the EEG oscillation data; the transcranial magnetic stimulation combined with electroencephalogram (EEG) report is used to perform a graded evaluation of the transcranial magnetic stimulation combined with electroencephalogram (EEG) data. While performing transcranial magnetic stimulation, the transcranial magnetic stimulation combined with electroencephalogram (EEG) data is collected, and the real-time transcranial magnetic stimulation combined with electroencephalogram (EEG) data is processed to obtain the required EEG potential data and EEG oscillation data, and a report is generated to facilitate subsequent graded evaluation of the EEG data and effectively utilize the transcranial magnetic stimulation combined with electroencephalogram (EEG) data.
[0067] The following describes a specific embodiment of a transcranial magnetic stimulation combined with EEG data processing method of the present application. Figure 2 This is a schematic diagram of a transcranial magnetic stimulation combined with EEG data processing method provided in an embodiment of the present application. Figure 1 , this specification provides method operation steps such as embodiments or flow charts, but may include more or fewer operation steps based on routine or non-creative work. The order of steps listed in the embodiments is only one way of executing the steps among many steps, and does not represent the only execution order. When the actual system or server product is executed, it can be executed in the order shown in the embodiments or the drawings or in parallel (for example, in a parallel processor or multi-threaded processing environment). Specifically, Figure 2 As shown, the method is applied to a transcranial magnetic stimulation combined with EEG data processing device and may include:
[0068] S201: Acquire transcranial magnetic stimulation combined with electroencephalogram (EEG) data; the transcranial magnetic stimulation combined with electroencephalogram (EEG) data is EEG data of a target subject under transcranial magnetic stimulation with preset parameters.
[0069] S202: Determine EEG potential data and EEG oscillation data based on the transcranial magnetic stimulation combined with EEG data.
[0070] S203: Generate a transcranial magnetic stimulation combined with EEG report based on the EEG potential data and the EEG oscillation data; the transcranial magnetic stimulation combined with EEG report is used to perform a graded evaluation on the transcranial magnetic stimulation combined with EEG data.
[0071] Figure 3 This is a schematic diagram of a transcranial magnetic stimulation combined with EEG data processing method provided in an embodiment of the present application. Figure 2 , the method may include:
[0072] S301: Acquire transcranial magnetic stimulation combined with EEG data.
[0073] In a possible embodiment, the transcranial magnetic stimulation combined with electroencephalogram (EEG) data is EEG data of the target subject under transcranial magnetic stimulation with preset parameters.
[0074] In the embodiment of the present application, the target object is a user who needs transcranial magnetic stimulation, who may be a patient with consciousness disorder, cognitive disorder, or mental disorder.
[0075] Before performing transcranial magnetic stimulation, connect the EEG acquisition device to collect the user's basic EEG data, and use the EEG data without the influence of transcranial magnetic stimulation to adjust the transcranial magnetic stimulation parameters.
[0076] In a possible embodiment, the preset parameters are generally standard parameters based on population data or clinical guidelines. The preset parameters may include stimulation intensity parameters, stimulation frequency parameters, stimulation position parameters, etc. The preset parameters for different users are different.
[0077] Taking the graded assessment of a user's mental disorder as an example, the preset parameters may be a stimulation frequency of 1 Hz, a stimulation intensity parameter of 40% of the resting motor threshold, and a stimulation position parameter of the left dorsolateral prefrontal cortex.
[0078] S302: Preprocessing the transcranial magnetic stimulation combined with electroencephalogram data to obtain preprocessed transcranial magnetic stimulation combined with electroencephalogram data.
[0079] In one possible embodiment, preprocessing may include using a 0.5-80 Hz bandpass filter to remove low-frequency drift and high-frequency non-physiological noise; and optionally interpolating or marking the signal as NaN near the stimulation point (e.g., within 0-10 ms) to reduce the impact of transient extreme values.
[0080] S303: Performing inverse independent component analysis on the pre-processed transcranial magnetic stimulation combined with electroencephalogram data to obtain the transcranial magnetic stimulation combined with electroencephalogram data after artifact removal.
[0081] S304: Performing inverse wavelet transform processing on the artifact-removed transcranial magnetic stimulation combined with EEG data to determine the EEG potential data.
[0082] In the present embodiment, EEG data refers to transcranial magnetic evoked potential (TMS) signals, specifically the P30 and N45 components of the TEP. P30 represents a latency of 30ms and a positive amplitude, meaning it appears at 30ms, directly reflecting cortical excitability. Similarly, N45 reflects cortical inhibition.
[0083] In a possible embodiment, performing inverse wavelet transform processing on the artifact-removed transcranial magnetic stimulation combined with EEG data to determine the EEG potential data includes:
[0084] S3041: Segmenting the artifact-removed transcranial magnetic stimulation combined with electroencephalogram (EEG) data to obtain a plurality of second EEG data segments.
[0085] S3042: Perform time axis inversion processing on each of the second EEG data segments to obtain multiple inverted second EEG data segments.
[0086] S3043: Perform wavelet transform on each of the inverted second EEG data segments to obtain inverted wavelet coefficients.
[0087] S3044: Perform time axis restoration on the inverted wavelet coefficients to obtain wavelet coefficients.
[0088] S3045: Determine the EEG potential data based on the wavelet coefficients.
[0089] Specifically, in the aforementioned inverse wavelet transform process, the signal corresponding to each stimulus can be truncated as an independent second EEG data segment. The time axis of each second EEG data segment is reversed to form a new time series. This reversal allows the wavelet decomposition algorithm to preferentially access the "cleaner" later EEG activity when processing the signal, preventing artifact-dominated early signals from misleading the processing model. Wavelet decomposition is then applied to each reversed EEG signal to obtain the reversed wavelet coefficients. The Daubechies wavelet function (db4) is preferably used due to its strong ability to detect sudden changes in signals. Finally, the reversed wavelet coefficients are reversed again to return to the original time series order, completing the back-to-forward wavelet transform.
[0090] After inverse wavelet transform processing, the transcranial magnetic stimulation evoked potential (TMS-Evoked Potential, TEP) component map is constructed based on the forward wavelet coefficients. Based on the image, the signal in the 30-50ms interval after stimulation can be selected for visualization and quantitative analysis.
[0091] The experimental results in the examples of the present application show that the classic P30 and N45 component waveforms can be clearly observed in this section. Compared with the original signal, the signal in this time window is no longer overwhelmed by the instantaneous high-frequency noise induced by TMS, and the signal-to-noise ratio is significantly improved.
[0092] In other possible embodiments, the following method can be used for wavelet analysis: fast continuous wavelet transform (fCWT) is used to analyze transcranial magnetic resonance imaging (TMRI) combined with electroencephalography (EEG) data, and the time-frequency characteristics of the signal are extracted by convolving the signal with sub-wavelets of different scales and positions. The specific scheme is as follows:
[0093] First, the EEG signal is preprocessed, the frequency domain representation is obtained using fast Fourier transform, and the mother wavelet is generated in the frequency domain;
[0094] By downsampling the mother wavelet, sub-wavelets of different scales are obtained. After parallel calculation, the wavelet coefficients in the time domain method are obtained using the inverse Fourier transform.
[0095] The wavelet coefficient results were visualized, with the horizontal axis representing time and the vertical axis representing amplitude, to obtain the final transcranial magnetic stimulation evoked potential (TMS-Evoked Potential, TEP) component map.
[0096] S305: Determine the EEG oscillation data based on the artifact-removed transcranial magnetic stimulation combined with EEG data.
[0097] In the embodiment of the present application, the EEG oscillation data refers to a transcranial magnetically induced oscillation (TMS-Induced Oscillation, TIO) signal.
[0098] In a possible embodiment, determining the EEG oscillation data based on the artifact-removed transcranial magnetic stimulation combined with EEG data includes:
[0099] S3051: Segment the artifact-removed transcranial magnetic stimulation combined with electroencephalogram (EEG) data to obtain a plurality of third EEG data segments.
[0100] S3052: Acquire event-related spectral perturbation data and inter-trial coherence data based on the plurality of third EEG data segments.
[0101] S3053: Determine the EEG oscillation data based on the event-related spectral perturbation data and the inter-trial coherence data.
[0102] Among them, obtaining event-related spectral perturbation data includes: performing short-time Fourier transform (STFT) on the EEG data of each trial to obtain spectral estimation; using single-trial baseline correction before trial averaging, that is, performing baseline correction on each trial to reduce the influence of noise trials; calculating the average spectral power of all trials; and converting the result into decibel (dB) units to represent the power change relative to the baseline.
[0103] Obtaining inter-trial coherence data includes: extracting phase information from the spectrum estimation of each trial; and calculating the average of the phase vectors of all trials.
[0104] ERSP and ITC analyze EEG oscillation data from the perspectives of power and phase, respectively. ERSP reveals activation (power variations), while ITC reveals coordination (phase synchronization). Their combined use more accurately reflects the specific state of EEG oscillation data, enabling precise assessment of functional connectivity between cortical regions.
[0105] S306: Generate a transcranial magnetic stimulation combined with EEG report based on the EEG potential data and the EEG oscillation data.
[0106] In an embodiment of the present application, the transcranial magnetic stimulation combined with EEG report includes at least one of the total average transcranial magnetic stimulation evoked potential map, the spatiotemporal distribution map, the global mean field power map, the local mean field power map, the event-related spectral perturbation map, and the inter-trial coherence map.
[0107] In an embodiment of the present application, the transcranial magnetic stimulation combined with EEG report may include a transcranial magnetic stimulation evoked potential (TMS-Evoked Potential, TEP) report and a transcranial magnetic stimulation induced oscillation (TMS-Induced Oscillation, TIO) report.
[0108] Figure 4 This application provides a TEP average potential map and spatiotemporal distribution map. The average potential map (butterfly plot) visualizes TEP latency, amplitude, waveform, and other data by overlaying multi-channel EEG signals. The spatiotemporal distribution map is used to demonstrate the temporal dynamics (such as peak timing) and spatial distribution (such as the range of cortical activation) of TEP signals, revealing brain network activation patterns and signal propagation pathways.
[0109] exist Figure 4 In the figure, P22 represents a latency of 22ms and a positive amplitude direction, that is, the P22 component appears at 22ms; P63 represents a latency of 63ms and a positive amplitude direction, that is, the P63 component appears at 63ms; P163 represents a latency of 163ms and a positive amplitude direction, that is, the P163 component appears at 163ms.
[0110] Correspondingly, N44 represents a latency of 44ms and a negative amplitude direction, that is, the N44 component appears at 44ms; N94 represents a latency of 94ms and a negative amplitude direction, that is, the N94 component appears at 94ms; N281 represents a latency of 281ms and a negative amplitude direction, that is, the N281 component appears at 281ms.
[0111] Further, Figure 5This is a schematic diagram of the global mean field power and local mean field power of TEP provided in this application, in which the global mean field power (GMFP) quantifies the intensity of the whole brain electrical activity, reflecting the global activation level of the brain after stimulation, and the local mean field power (LMFP) quantifies the activity intensity of a specific brain area, reflecting the activation level of the local neural network.
[0112] The TIO report includes a schematic diagram of event-related spectral perturbation and a schematic diagram of inter-trial coherence. Event-related spectral perturbation (ERSP) quantifies the change in energy over time in specific frequency bands (such as the 4-40 Hz band, including theta, alpha, beta1, beta2, and gamma bands) after stimulation, identifies energy enhancement (ERS) or reduction (ERD), and is suitable for analyzing energy characteristics and temporal dynamics.
[0113] Inter-trial coherence (ITC) quantifies the phase consistency of brain activity, reveals phase locking, and is suitable for analyzing phase characteristics and temporal dynamics. These two methods complement each other in EEG signal analysis, helping researchers fully understand the frequency domain characteristics of brain activity from both an energy and phase perspective.
[0114] This application example visualizes TEP reports (waveform, spatiotemporal, GMFP / LMFP) and TIO reports (ERSP, ITC) to analyze the regulatory effects of TMS on the brain from multiple dimensions: time, space, energy, and phase. This multimodal analysis method helps determine the next cycle of transcranial magnetic stimulation from multiple perspectives, providing a dynamic, three-dimensional, and quantifiable evaluation framework for precise closed-loop feedback control.
[0115] Since the strong magnetic field generated by transcranial magnetic stimulation can interfere with EEG data recording, it is necessary to effectively remove artifacts from transcranial magnetic stimulation combined with EEG data. Figure 6 : This is a flow chart of a method for removing artifacts from transcranial magnetic stimulation combined with EEG data provided in an embodiment of the present application. The method may include:
[0116] S401: Segment the pre-processed transcranial magnetic stimulation combined with electroencephalogram (EEG) data to obtain a plurality of first EEG data segments.
[0117] S402: Perform time axis inversion processing on each of the first EEG data segments to obtain multiple inverted first EEG data segments.
[0118] S403: Perform independent component analysis on each of the inverted first EEG data segments to obtain inverted independent component data.
[0119] S404: Separate the artifact component data from the inverted independent component data to obtain artifact-removed inverted independent component data.
[0120] S405: Performing time axis restoration on the artifact-removed inverted independent component data to obtain the artifact-removed transcranial magnetic stimulation combined with electroencephalogram data.
[0121] Specifically, in the above-mentioned inverse independent component analysis (ICA) processing process, the signal corresponding to each stimulation can be intercepted as an independent first EEG data segment, and each first EEG data segment is reversed in the time dimension, that is, the data is arranged from 500ms after the stimulation to 500ms before the stimulation. This operation flips the data in the time dimension, but keeps the channel and sampling information unchanged.
[0122] This ensures that the ICA algorithm builds a more stable and representative independent source distribution model when it "first contacts" the cleaner signal part, avoiding being dominated by artifacts.
[0123] Based on the inverted data, the ICA algorithm is used to perform blind source separation on the EEG signal to identify and remove the artifact components. Finally, the EEG data is reversed again in the time dimension to restore the original time order.
[0124] In another possible embodiment, forward independent component analysis can also be used to remove artifacts. Specifically, the fast independent component analysis algorithm (FastICA) is used to separate the independent components in the signal by maximizing the non-Gaussianity (such as sparsity) by taking advantage of the characteristic that mixed signals tend to be Gaussian distributed, so as to achieve the purpose of removing artifact interference from the EEG signal and separating specific components. The specific scheme is as follows:
[0125] Data preprocessing is performed to center and whiten the obtained EEG signals to accelerate algorithm convergence, remove signal correlation, and ensure accurate separation direction.
[0126] A unit vector is randomly initialized for each independent component, and fixed-point iterative optimization is performed separately. The steps include: using the direction of the negative entropy gradient to continuously determine the optimal iteration direction, so that the algorithm approaches the optimal separation matrix more quickly; preventing all unit vectors from converging to the same direction to cause data redundancy, so each unit vector is required to be orthogonal to other unit vectors; ensuring that the unit vector has unit length during the iteration process to avoid numerical instability; and finally stopping the iteration if it is judged that the vector has converged.
[0127] The unit vectors after all iterative optimizations are used to obtain the separation matrix, and the independent components are estimated through the separation matrix to achieve the purpose of the algorithm.
[0128] In other possible embodiments, other methods of removing artifacts may be used as long as they can achieve the purpose of removing artifacts, for example:
[0129] The preprocessed transcranial magnetic stimulation combined with electroencephalogram (EEG) data are linearly decomposed to separate the first artifact signal from the preprocessed transcranial magnetic stimulation combined with electroencephalogram (EEG) data, thereby obtaining linearly decomposed transcranial magnetic stimulation combined with electroencephalogram (EEG) data.
[0130] In a possible embodiment, the linear decomposition process includes any one of a principal component analysis process and a blind source separation process.
[0131] The linearly decomposed transcranial magnetic stimulation combined with electroencephalogram (EEG) data is subjected to frequency domain filtering to obtain frequency domain filtered transcranial magnetic stimulation combined with electroencephalogram (EEG) data.
[0132] The frequency-domain filtered transcranial magnetic stimulation combined with electroencephalogram (EEG) data is input into a trained artifact separation model to obtain artifact-separated transcranial magnetic stimulation combined with electroencephalogram (EEG) data.
[0133] Through the multiple artifact removal of the above-mentioned linear decomposition, frequency domain filtering, and artifact separation model, the artifact influence in the EEG data under transcranial magnetic stimulation can be effectively removed.
[0134] The present application also provides a transcranial magnetic stimulation combined with EEG data processing device. Figure 7 Schematic diagram of a transcranial magnetic stimulation combined with EEG data processing device provided in an embodiment of the present application. Figure 7 As shown, the device 500 includes:
[0135] An acquisition module 510 is configured to acquire transcranial magnetic stimulation combined with electroencephalogram (EEG) data; the transcranial magnetic stimulation combined with electroencephalogram (EEG) data is EEG data of a target subject under transcranial magnetic stimulation with preset parameters;
[0136] A determination module 520 is configured to determine EEG potential data and EEG oscillation data based on the transcranial magnetic stimulation combined with EEG data;
[0137] The report generation module 530 is used to generate a transcranial magnetic stimulation combined with EEG report based on the EEG potential data and the EEG oscillation data; the transcranial magnetic stimulation combined with EEG report is used to perform a graded evaluation on the transcranial magnetic stimulation combined with EEG data.
[0138] In an optional embodiment, the determination module is further configured to:
[0139] Preprocessing the transcranial magnetic stimulation combined with electroencephalogram (EEG) data to obtain preprocessed transcranial magnetic stimulation combined with electroencephalogram (EEG) data;
[0140] Performing inverse independent component analysis on the preprocessed transcranial magnetic stimulation combined with electroencephalogram (EEG) data to obtain artifact-removed transcranial magnetic stimulation combined with EEG data;
[0141] performing inverse wavelet transform processing on the artifact-removed transcranial magnetic stimulation combined with electroencephalogram (EEG) data to determine the EEG potential data;
[0142] The EEG oscillation data is determined based on the artifact-removed transcranial magnetic stimulation combined with EEG data.
[0143] In an optional embodiment, the determining module is further configured to include:
[0144] Segmenting the preprocessed transcranial magnetic stimulation combined with electroencephalogram (EEG) data to obtain a plurality of first EEG data segments;
[0145] Performing time axis reversal processing on each of the first EEG data segments to obtain a plurality of reversed first EEG data segments;
[0146] performing independent component analysis on each of the inverted first EEG data segments to obtain inverted independent component data;
[0147] Separating artifact component data from the inverted independent component data to obtain artifact-removed inverted independent component data;
[0148] The time axis of the inverted independent component data after the artifact removal is restored to obtain the transcranial magnetic stimulation combined with electroencephalogram data after the artifact removal.
[0149] In an optional embodiment, the determination module is further configured to:
[0150] Segmenting the artifact-removed transcranial magnetic stimulation combined with electroencephalogram (EEG) data to obtain a plurality of second EEG data segments;
[0151] Performing time axis inversion processing on each of the second EEG data segments to obtain a plurality of inverted second EEG data segments;
[0152] Performing wavelet transform on each of the inverted second EEG data segments to obtain inverted wavelet coefficients;
[0153] Performing time axis restoration on the inverted wavelet coefficients to obtain wavelet coefficients;
[0154] The brain potential data is determined based on the wavelet coefficients.
[0155] In an optional embodiment, the determination module is further configured to:
[0156] Segmenting the artifact-removed transcranial magnetic stimulation combined with electroencephalogram (EEG) data to obtain a plurality of third EEG data segments;
[0157] acquiring event-related spectral perturbation data and inter-trial coherence data based on the plurality of third EEG data segments;
[0158] The EEG oscillation data is determined based on the event-related spectral perturbation data and the inter-trial coherence data.
[0159] In an optional embodiment, the transcranial magnetic stimulation combined with EEG report includes at least one of a total average transcranial magnetic stimulation evoked potential map, a spatiotemporal distribution map, a global mean field power map, a local mean field power map, an event-related spectral perturbation map, and an inter-trial coherence map.
[0160] The device and method embodiments in the embodiments of this application are based on the same application concept.
[0161] The method embodiments provided in the embodiments of the present application can be executed in a computer terminal, a server or a similar computing device. Taking running on a server as an example, Figure 8 This is a hardware structure diagram of a server for a transcranial magnetic stimulation combined with EEG data processing method provided in an embodiment of the present application. Figure 8 As shown, the server 600 may vary significantly depending on its configuration or performance. It may include one or more central processing units (CPUs) 610 (CPUs 610 may include, but are not limited to, processing devices such as microprocessors (MCUs) or programmable logic devices (FPGAs), memory 630 for storing data, and one or more storage media 620 (e.g., one or more mass storage devices) for storing applications 623 or data 622. Memory 630 and storage media 620 may be either transient or persistent storage. The program stored in storage media 620 may include one or more modules, each of which may include a series of instruction operations on the server. Furthermore, CPU 610 may be configured to communicate with storage media 620 to execute the series of instruction operations stored in storage media 620 on server 600. The server 600 may also include one or more power supplies 660, one or more wired or wireless network interfaces 650, one or more input and output interfaces 640, and / or one or more operating systems 621, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.
[0162] The input / output interface 640 can be used to receive or transmit data via a network. A specific example of the aforementioned network may include a wireless network provided by the communications provider of the server 600. In one embodiment, the input / output interface 640 may include a network interface controller (NIC), which can be connected to other network devices via a base station to enable communication with the Internet. In another embodiment, the input / output interface 640 may be a radio frequency (RF) module for wireless communication with the Internet.
[0163] It can be understood by those skilled in the art that Figure 8 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 8 More or fewer components than shown, or with Figure 8 Different configurations shown.
[0164] An embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, code set, or instruction set, and the at least one instruction, at least one program, code set, or instruction set is loaded and executed by the processor to implement the above-mentioned data processing method.
[0165] An embodiment of the present application also provides a computer-readable storage medium, which can be set in a server to store at least one instruction, at least one program, code set or instruction set related to a transcranial magnetic stimulation combined with EEG data processing method in an embodiment of the method. The at least one instruction, the at least one program, the code set or instruction set is loaded and executed by the processor to implement the above-mentioned transcranial magnetic stimulation combined with EEG data processing method.
[0166] Optionally, in this embodiment, the storage medium may be located in at least one of a plurality of network servers in the computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to, a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard drive, a magnetic disk, or an optical disk, among other media capable of storing program code.
[0167] It can be seen from the embodiments of the transcranial magnetic stimulation combined with EEG data processing method, device, electronic device or storage medium provided by the above-mentioned present application that, in the present application, the transcranial magnetic stimulation parameters of the current cycle are obtained; the first EEG data under the transcranial magnetic stimulation parameters of the current cycle are obtained; the first EEG data are analyzed to determine a first EEG report; the first EEG report is used to reflect the activity state information of the target object's brain under a preset task; based on the first EEG report, the transcranial magnetic stimulation parameters of the next cycle are determined; the transcranial magnetic stimulation parameters of the next cycle are used to obtain the first EEG data of the next cycle, and by collecting EEG data at the same time as transcranial magnetic stimulation and processing the real-time EEG data, the transcranial magnetic stimulation parameters of the next cycle are adjusted, and the EEG signal is used as an important benchmark for transcranial magnetic stimulation feedback adjustment, so that indicators such as the depth, intensity, and position accuracy of transcranial magnetic stimulation are effectively improved.
[0168] It should be noted that the order of the embodiments of the present application described above is for descriptive purposes only and does not represent the superiority or inferiority of the embodiments. The above description is of specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0169] The various embodiments in this specification are described in a progressive manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the device embodiments are generally similar to the method embodiments, so the description is relatively simple. For relevant parts, refer to the description of the method embodiments.
[0170] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk, etc.
[0171] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.
Claims
1. A transcranial magnetic stimulation combined with electroencephalogram data processing method, characterized in that: include: Acquiring transcranial magnetic stimulation combined with electroencephalogram (EEG) data; the transcranial magnetic stimulation combined with electroencephalogram (EEG) data is the EEG data of the target subject under transcranial magnetic stimulation with preset parameters; Determining EEG potential data and EEG oscillation data based on the transcranial magnetic stimulation combined with EEG data; generating a transcranial magnetic stimulation combined with electroencephalogram (EEG) report based on the EEG potential data and the EEG oscillation data; wherein the transcranial magnetic stimulation combined with electroencephalogram (EEG) report is used to perform a graded evaluation of the transcranial magnetic stimulation combined with electroencephalogram (EEG) data; The determining of EEG potential data and EEG oscillation data based on the transcranial magnetic stimulation combined with EEG data includes: Preprocessing the transcranial magnetic stimulation combined with electroencephalogram (EEG) data to obtain preprocessed transcranial magnetic stimulation combined with electroencephalogram (EEG) data; Performing inverse independent component analysis on the pre-processed transcranial magnetic stimulation combined with electroencephalogram (EEG) data to obtain artifact-removed transcranial magnetic stimulation combined with EEG data; performing inverse wavelet transform processing on the artifact-removed transcranial magnetic stimulation combined with electroencephalogram (EEG) data to determine the EEG potential data; Determining the EEG oscillation data based on the artifact-removed transcranial magnetic stimulation combined with EEG data; The performing of inverse independent component analysis on the pre-processed transcranial magnetic stimulation combined with electroencephalogram data to obtain the artifact-removed transcranial magnetic stimulation combined with electroencephalogram data includes: Segmenting the preprocessed transcranial magnetic stimulation combined with electroencephalogram (EEG) data to obtain a plurality of first EEG data segments; Performing time axis reversal processing on each of the first EEG data segments to obtain a plurality of reversed first EEG data segments; performing independent component analysis on each of the inverted first EEG data segments to obtain inverted independent component data; Separating artifact component data from the inverted independent component data to obtain artifact-removed inverted independent component data; The time axis of the inverted independent component data after the artifact removal is restored to obtain the transcranial magnetic stimulation combined with electroencephalogram data after the artifact removal.
2. The transcranial magnetic stimulation combined with EEG data processing method according to claim 1, characterized in that: The performing inverse wavelet transform on the artifact-removed transcranial magnetic stimulation combined with EEG data to determine the EEG potential data includes: Segmenting the artifact-removed transcranial magnetic stimulation combined with electroencephalogram (EEG) data to obtain a plurality of second EEG data segments; Performing time axis inversion processing on each of the second EEG data segments to obtain a plurality of inverted second EEG data segments; Performing wavelet transform on each of the inverted second EEG data segments to obtain inverted wavelet coefficients; Performing time axis restoration on the inverted wavelet coefficients to obtain wavelet coefficients; The brain potential data is determined based on the wavelet coefficients.
3. The transcranial magnetic stimulation combined with EEG data processing method according to claim 1, characterized in that: The determining of the EEG oscillation data based on the artifact-removed transcranial magnetic stimulation combined with EEG data includes: Segmenting the artifact-removed transcranial magnetic stimulation combined with electroencephalogram (EEG) data to obtain a plurality of third EEG data segments; acquiring event-related spectral perturbation data and inter-trial coherence based on the plurality of third EEG data segments; The EEG oscillation data is determined based on the event-related spectral perturbation data and the inter-trial coherence.
4. The method for transcranial magnetic stimulation combined with electroencephalogram data processing according to claim 1, characterized in that: The transcranial magnetic stimulation combined with EEG report includes at least one of a total average transcranial magnetic stimulation evoked potential map, a spatiotemporal distribution map, a global mean field power map, a local mean field power map, an event-related spectral perturbation map, and an inter-trial coherence map.
5. A transcranial magnetic stimulation combined with electroencephalogram data processing device, characterized in that: include: An acquisition module is used to acquire transcranial magnetic stimulation combined with EEG data; the transcranial magnetic stimulation combined with EEG data is EEG data of the target subject under transcranial magnetic stimulation with preset parameters; a determination module, configured to determine EEG potential data and EEG oscillation data based on the transcranial magnetic stimulation combined with EEG data; a report generation module, configured to generate a transcranial magnetic stimulation combined with electroencephalogram (EEG) report based on the EEG potential data and the EEG oscillation data; the transcranial magnetic stimulation combined with electroencephalogram (EEG) report being used to perform a graded evaluation of the transcranial magnetic stimulation combined with electroencephalogram (EEG) data; The determining of EEG potential data and EEG oscillation data based on the transcranial magnetic stimulation combined with EEG data includes: Preprocessing the transcranial magnetic stimulation combined with electroencephalogram (EEG) data to obtain preprocessed transcranial magnetic stimulation combined with electroencephalogram (EEG) data; Performing inverse independent component analysis on the pre-processed transcranial magnetic stimulation combined with electroencephalogram (EEG) data to obtain artifact-removed transcranial magnetic stimulation combined with EEG data; performing inverse wavelet transform processing on the artifact-removed transcranial magnetic stimulation combined with electroencephalogram (EEG) data to determine the EEG potential data; Determining the EEG oscillation data based on the artifact-removed transcranial magnetic stimulation combined with EEG data; The performing of inverse independent component analysis on the pre-processed transcranial magnetic stimulation combined with electroencephalogram data to obtain the artifact-removed transcranial magnetic stimulation combined with electroencephalogram data includes: Segmenting the preprocessed transcranial magnetic stimulation combined with electroencephalogram (EEG) data to obtain a plurality of first EEG data segments; Performing time axis reversal processing on each of the first EEG data segments to obtain a plurality of reversed first EEG data segments; performing independent component analysis on each of the inverted first EEG data segments to obtain inverted independent component data; Separating artifact component data from the inverted independent component data to obtain artifact-removed inverted independent component data; The time axis of the inverted independent component data after the artifact removal is restored to obtain the transcranial magnetic stimulation combined with electroencephalogram data after the artifact removal.
6. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the transcranial magnetic stimulation according to any one of claims 1 to 4. Combined electroencephalogram (EEG) data processing method.
7. A computer-readable storage medium, characterized in that The computer-readable storage medium stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the transcranial magnetic stimulation combined with electroencephalographic data processing method as described in any one of claims 1-4.
8. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the transcranial magnetic stimulation combined with EEG data processing method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Adaptive filtering TMS evoked potential extraction device
CN114041806A
Transcranial magnetic stimulation evaluation system for endogenous pairing associated stimulation effect
CN118044789A