Electroencephalogram positioning method and device for transcranial magnetic stimulation point location
Through multi-lead real-time EEG data analysis, the problem of insufficient real-time feedback in the transcranial magnetic stimulation position positioning method is solved, and the excitability assessment of cerebral cortex is realized, providing accurate magnetic stimulation positioning information is improved, and the accuracy of treatment is improved. efficiency.
Patent Information
- Application Number
- CN202311305114.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-10
- Publication Date
- 2024-12-06
AI Technical Summary
The existing transcranial magnetic stimulation position positioning method cannot achieve real-time and convenient feedback, resulting in deviations from the actual stimulation position and target position, affecting the treatment effect.
Multi-lead real-time EEG data is used to analyze and dynamically evaluate the excitability of the cerebral cortex. By calculating comprehensive indicators, the positioning information of magnetic stimulation is obtained, providing doctors with auxiliary decision-making and adjusting stimulation position and direction.
It realizes the precise positioning of transcranial magnetic stimulation, improves the accuracy and efficiency of treatment, and provides reliable regulatory guarantees for related diseases.
Smart Images

Figure CN119074011A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of transcranial magnetic stimulation point positioning, and in particular to a method and device for transcranial magnetic stimulation point positioning. Background Art
[0002] Transcranial Magnetic Stimulation (TMS) is a diagnostic and therapeutic technology that uses pulsed magnetic fields to pass through the skin and skull without trauma or pain, acting on the cerebral cortex, and stimulating local neurons in the brain by adjusting the frequency and intensity of stimulation to achieve regulation of the excitation or inhibition state of local neurons in the brain. TMS technology provides a new technical means for the clinical application of disciplines such as mental health and neurorehabilitation, and can be widely used in the treatment of mental health (such as depression, anxiety, obsessive-compulsive disorder, auditory hallucinations, sleep disorders, etc.) and neurorehabilitation (such as motor dysfunction after stroke, speech disorders, dysphagia, dystonia, spinal cord injury, epilepsy, Parkinson's disease, chronic pain, etc.).
[0003] In order to ensure the therapeutic effect of transcranial magnetic stimulation (TMS), it is first necessary to ensure that the actual scalp area of magnetic stimulation is consistent with the target area determined by the doctor. However, at present, transcranial magnetic stimulation is mainly achieved through methods such as doctor experience, 10-20 international standard lead system lead position information, and MRI imaging technology to achieve the positioning of transcranial magnetic stimulation. Among them, the method of positioning through doctor experience is simple, but the positioning accuracy cannot be guaranteed. The positioning method through the 10-20 international standard lead system lead position information can only be used for preliminary positioning. The method of using MRI images to determine the patient's stimulation position is costly and time-sensitive. Through comparative analysis, it can be seen that the biggest problem with the existing transcranial magnetic stimulation position positioning method is that it cannot achieve real-time and convenient feedback of transcranial magnetic stimulation and stimulation position information, resulting in deviations between the actual stimulation position and the target stimulation position, and the treatment cannot achieve the best effect.
[0004] In order to address the shortcomings of existing methods, the present invention uses multi-lead real-time EEG data to perform real-time analysis and dynamic evaluation of the excitability of the cerebral cortex during transcranial magnetic stimulation, thereby obtaining the positioning information of magnetic stimulation, providing auxiliary decision-making information for clinicians, helping doctors to adjust the position and direction of magnetic stimulation in a timely manner, and providing reliable guarantees for the precise regulation of related diseases. Summary of the invention
[0005] In view of this, the present invention provides a method for EEG localization of transcranial magnetic stimulation points, which specifically includes the following steps:
[0006] 100. Install EEG collection leads on the patient's head according to the 10-20 international standard lead system, set the EEG data sampling rate and data cutoff length, and collect EEG data;
[0007] 101. Save the currently acquired data fragment in the form of a matrix, where each row of the matrix represents data acquired for one lead with a sampling rate of f and a data truncation length of t;
[0008] 102. If the total number of acquired data segments is not greater than 1, no processing is performed and data segments continue to be acquired; otherwise, the current data segment is combined with the previous data segment, and each row in the combined data matrix is data of one lead in two data segments;
[0009] 103. Obtain the maximum value of each lead from the combined data, and normalize all the obtained maximum values to obtain a first index;
[0010] 104. Obtain the cumulative value of the absolute value of each lead data from the combined data, and perform normalization processing on all the obtained cumulative values to obtain a second index;
[0011] 105. The first index and the second index are weighted to obtain a comprehensive index, and the lead corresponding to the maximum comprehensive index is used as the initial positioning.
[0012] Furthermore, the collected EEG data is preprocessed, including filtering the intercepted data using a Butterworth zero-phase bandpass filter to retain 3-45 Hz data information and remove 50 Hz power frequency interference.
[0013] Furthermore, when the first indicator and the second indicator are weighted, the calculation of the weight of the first indicator is expressed as:
[0014]
[0015]
[0016] The calculation of the second indicator weight is expressed as:
[0017] W i 2 =1-W i 1
[0018] Among them, W i 1 represents the weight of the first indicator of the i-th lead; c represents the number of leads; M i ' represents the first index of the i-th lead; A i ' represents the second index of the i-th lead; W i2 represents the weight of the second indicator of the i-th lead.
[0019] Furthermore, when the number of installed EEG acquisition leads is greater than or equal to the set lead threshold, the obtained initial positioning is determined as the final positioning; when the number of installed EEG acquisition leads is less than the set lead threshold, the obtained initial positioning is fine-tuned, and the fine-tuning process includes:
[0020] Establish an N×M lead matrix according to the set lead threshold, and fill the lead matrix with lead information according to the 10-20 international standard lead system;
[0021] Determine whether the initial positioning lead has only one adjacent lead on the left or right in the N×M lead matrix. If so, the positioning position is not adjusted horizontally; otherwise
[0022] Calculate the difference between the initial positioning lead position and the comprehensive index of its left and right adjacent leads, and record the difference between it and the left adjacent lead as ΔK (c,left) , and the difference between it and the right adjacent lead is recorded as ΔK (c,right) , K c It is a comprehensive index for initial positioning of lead C;
[0023] If ΔK (c,left) >ΔK (c,right) , by querying the lead matrix, we can get the number of leads T between lead C and the adjacent lead actually installed to the right of lead C. If Then the initial positioning lead position is moved rightward by T+1-i positions in the N×M lead matrix;
[0024] If ΔK (c,left) <ΔK (c,right) , by querying the lead matrix, we can get the number of leads T between lead C and the adjacent lead actually installed on the left of lead C. If Then the initial positioning lead position is shifted to the left by T+1-i positions in the N×M lead matrix;
[0025] If ΔK (c,left) =ΔK (c,right) Then the initial positioning lead position is not fine-tuned in the lateral direction;
[0026] Determine whether the initial positioning lead has only one adjacent lead above or below in the N×M lead matrix. If so, the positioning position is not adjusted in the longitudinal direction; otherwise
[0027] Calculate the difference between the initial positioning lead position and the comprehensive index of the upper and lower adjacent leads, and record the difference between the initial positioning lead position and the upper adjacent lead as ΔK (c,up) , the difference between it and the next adjacent lead is recorded as ΔK (c,down) ;
[0028] If ΔK (c,up) >ΔK (c,down) , by querying the lead matrix, we can get the number of leads T between lead C and the adjacent leads actually installed below lead C. If Then the initial positioning lead position is moved down by T+1-i positions in the N×M lead matrix; if
[0029] If ΔK (c,up) <ΔK (c,down) , by querying the lead matrix, we can get the number of leads T between lead C and the adjacent lead actually installed above lead C. If Then the initial positioning lead position is moved upward by T+1-i positions in the N×M lead matrix;
[0030] If ΔK (c,up) =ΔK (c,down) , otherwise the final positioning will be in the vertical direction without fine-tuning.
[0031] The present invention also proposes an EEG localization device for transcranial magnetic stimulation points, which is used to implement an EEG localization method for transcranial magnetic stimulation points, including an EEG acquisition module, a data segment acquisition module and an EEG localization module, wherein:
[0032] The EEG acquisition module is used to install EEG acquisition leads on the patient's head according to the 10-20 international standard lead system, set the EEG data sampling rate and data truncation length, and collect EEG data;
[0033] A data segment acquisition module is used to save the currently acquired data segment in the form of a matrix, where each row of the matrix represents data acquired by a lead at a sampling rate of f and a data truncation length of t;
[0034] The EEG positioning module is used to perform positioning based on the preprocessed EEG data. The positioning process specifically includes:
[0035] If the total number of acquired data segments is not greater than 1, no processing is performed and data segments continue to be acquired; otherwise, the current data segment is combined with the previous data segment, and each row in the combined data matrix is the data of one lead in two data segments;
[0036] From the combined data, the maximum value of each lead is obtained, and all the obtained maximum values are normalized to obtain a first index;
[0037] From the combined data, the cumulative value of the absolute value of each lead data is obtained, and all the obtained cumulative values are normalized to obtain a second index;
[0038] The first index and the second index are weighted to obtain a comprehensive index, and the lead corresponding to the maximum comprehensive index is used as the initial positioning.
[0039] The present invention uses real-time EEG analysis to perform real-time analysis and dynamic evaluation of the excitability of the cerebral cortex, thereby obtaining precise positioning information of magnetic stimulation, providing auxiliary decision-making information for clinicians, helping doctors to adjust the position and direction of magnetic stimulation in a timely manner, and providing reliable guarantees for the precise regulation of related diseases. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 A schematic diagram of splicing two data fragments in the present invention;
[0041] Figure 2 Schematic diagram of a 61-lead matrix provided in an embodiment of the present invention;
[0042] Figure 3 A schematic diagram of the relationship between the initial positioning lead and the neighboring leads when the present invention is fine-tuned;
[0043] Figure 4 A flowchart of a preferred embodiment of a method for EEG localization of transcranial magnetic stimulation points according to the present invention;
[0044] Figure 5 Schematic diagram of the positions of the 61 leads and the 16 leads in the present invention. DETAILED DESCRIPTION
[0045] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0046] In view of this, the present invention provides a method for EEG localization of transcranial magnetic stimulation points, which specifically includes the following steps:
[0047] 100. Install EEG collection leads on the patient's head according to the 10-20 international standard lead system, set the EEG data sampling rate and data cutoff length, and collect EEG data;
[0048] 101. Save the currently acquired data fragment in the form of a matrix, where each row of the matrix represents data acquired for one lead with a sampling rate of f and a data truncation length of t;
[0049] 102. If the total number of acquired data segments is not greater than 1, no processing is performed and data segments continue to be acquired; otherwise, the current data segment is combined with the previous data segment, and each row in the combined data matrix is data of one lead in two data segments;
[0050] 103. Obtain the maximum value of each lead from the combined data, and normalize all the obtained maximum values to obtain a first index;
[0051] 104. Obtain the cumulative value of the absolute value of each lead data from the combined data, and perform normalization processing on all the obtained cumulative values to obtain a second index;
[0052] 105. The first index and the second index are weighted to obtain a comprehensive index, and the lead corresponding to the maximum comprehensive index is used as the initial positioning.
[0053] In this embodiment, an EEG acquisition lead is installed on the patient's head according to the 10-20 international standard lead system; the magnetic stimulation device of the transcranial magnetic stimulation device is placed above the brain area that needs to be treated; the patient is placed in a resting state; the magnetic stimulation device is turned on, and the stimulation frequency and stimulation intensity are set; according to the magnetic stimulation frequency f (in Hertz Hz) set by the doctor, the EEG data sampling rate and the length of the data truncation are set, and the truncation length t (in seconds s) and the magnetic stimulation interval time t TMS =1 / f is consistent; then the transcranial magnetic stimulation device and the EEG analyzer are turned on at the same time, and continuous magnetic stimulation and EEG data acquisition and analysis begin.
[0054] The process of intercepting analysis data includes the following steps:
[0055] Set the power-on time of the EEG instrument to the starting time t of the EEG analysis data start ;
[0056] With t start The EEG data is captured with t being the starting time and t being the cutoff length. Each segment of data is a basic analysis unit.
[0057] As a preferred implementation method, the intercepted data is filtered using a Butterworth zero-phase bandpass filter to retain 3-45 Hz data information while removing 50 Hz power frequency interference.
[0058] In this embodiment, the process of performing magnetic stimulation positioning specifically includes the following steps:
[0059] Get the current data segment and save it in matrix format: (number of leads c, T*sampling rate);
[0060] Determine the number of data fragments that have been acquired. If the number of data fragments is equal to 1, keep the current data and do not calculate; when the number of data fragments is greater than 1, combine the current data with the previous data fragment to form new data. The data is in matrix format: (number of leads c, 2*T*sampling rate) Figure 1 As shown, data segment N1 and data segment N2 are combined to obtain N';
[0061] Calculate the maximum value M of each lead for each lead of data N' i (i=1,2,......,c), i.e. the first index, and the maximum value of each lead is retained as the sequence M=(M1,M2,......,M c ) and press Normalize the sequence M to M'=(M1',M'2,......,M c ');
[0062] The line length index of each lead is calculated for the data matrix N' according to the lead, which is expressed as:
[0063]
[0064] Where i = 1, 2, ..., c, a c,t is the data in the cth row and tth column of the new data N'.
[0065] We get the sequence A=(A1,A2,......,A c ) and press Normalize the sequence A to A'=(A1',A'2,......,A c ');
[0066] Calculate the comprehensive index of each lead by lead:
[0067] K i =W i 1 *M i '+W i 2 *A i '
[0068] Among them, K i is the comprehensive index of lead i, W i 1 , W i 2 is the index weight of lead i.
[0069] For W i 1 , W i 2The weight is set according to the adaptive dynamic weight. The dynamic weight is calculated as follows:
[0070]
[0071]
[0072] W i 2 =1-W i 1
[0073] The EEG lead corresponding to the maximum value of the index is selected as the preliminary magnetic stimulation positioning position. The maximum value K of the index in each lead is max =max(K1,K2,......,K c ), the lead number corresponding to the maximum value C=index(K max ), where max() is a function for finding the maximum value of a sequence, and index() is a function for finding the corresponding position information of a value in a sequence.
[0074] For the case where the number of EEG leads actually installed on the patient's head is small (generally in practical applications, the amount of lead data installed on the patient's head is less than or equal to 16 leads, such as 4 leads, 8 leads, 16 leads, etc.), if the result calculated in step (4) is directly displayed according to the actual number of leads, the displayed position area is large and inaccurate; in addition, if the number of EEG leads actually installed on the patient's head is large, this step can be omitted for fine-tuning. Generally, in practical applications, it is believed that when the number of EEG leads installed on the patient's head is greater than or equal to 61 leads, no fine-tuning is required. The present invention maps the positioning position information obtained in the low-lead case to the lead matrix of a higher lead, and fine-tunes the preliminary positioning position information on the lead matrix of a higher lead according to the indicator information of the neighboring leads, thereby achieving more refined positioning. The specific steps are as follows:
[0075] In this embodiment, 61 leads are used as the high-density EEG lead position information to establish a lead position coordinate matrix (9 rows and 9 columns). The scale of the established lead position coordinate matrix is determined by the number of leads in the horizontal and vertical directions of the selected high-density EEG leads. The lead position coordinate matrix established by the 61 leads used in this embodiment is as follows: Figure 2 , according to the 10-20 international standard lead system, fill the name of each lead into the coordinate matrix, and search each lead according to the matrix coordinate position, for example, the coordinates of lead F3 are (x, y) = (3, 3);
[0076] Specifically, the corresponding relationship between 61 leads and 16 leads is a schematic diagram, as shown in FIG. Figure 5, where the dark blocks represent the leads shared by the 16-lead and the 61-lead, and the other leads are unique to the 61-lead. If the lead position coordinate matrix is established based on the 16-lead, a matrix of (5 rows, 4 columns) can be established;
[0077] The coordinate position of the lead is based on the selected high-density EEG lead position information. If a lead with a higher density is selected to establish a lead position coordinate matrix, an N×M lead matrix can be established. In this embodiment, 61 leads are selected, which can establish a matrix of 9 rows and 9 columns.
[0078] By obtaining the comprehensive index of each lead and the preliminary positioning, that is, the position of lead C corresponding to the maximum value of the comprehensive index, query the coordinate information (x, y) of lead C and the indexes of the surrounding neighboring leads (including the four leads of up, down, left and right);
[0079] Lead C establishes a rectangular coordinate system for the coordinate system point, such as Figure 3 In the comparison of the horizontal coordinates, if the initially located lead C has only one adjacent lead on the left or right, the location position is not adjusted horizontally. If the lead C has leads on both the left and right sides, the comprehensive index difference between the left and right neighboring leads and the initially located lead C is calculated, and the horizontal coordinate of the coordinate origin (initial location position) is adjusted according to the comprehensive index difference;
[0080] In the comparison of the vertical coordinates, if the initially located lead C has only an upper or lower adjacent lead, the positioning position will not be adjusted vertically. If there are leads above and below lead C, the difference in comprehensive indicators between the upper and lower neighboring leads and the initially located lead C is calculated, and the vertical coordinate of the coordinate origin (initial positioning position) is adjusted according to the difference in comprehensive indicators.
[0081] The specific process of fine-tuning includes:
[0082] Establish an N×M lead matrix according to the set lead threshold, and fill the lead matrix with lead information according to the 10-20 international standard lead system;
[0083] Determine whether the initial positioning lead has only one adjacent lead on the left or right in the N×M lead matrix. If so, the positioning position is not adjusted horizontally; otherwise
[0084] Calculate the difference between the initial positioning lead position and the comprehensive index of its left and right adjacent leads, and record the difference between it and the left adjacent lead as ΔK (c,left) , the difference between it and the right adjacent lead is recorded as ΔK (c,right) , K c It is a comprehensive index for initial positioning of lead C;
[0085] If ΔK (c,left) >ΔK (c,right), by querying the lead matrix, we can get the number of leads T between lead C and the adjacent lead actually installed on the right of lead C. For example, in the 16-lead system, F3 and F4 are adjacent. After being mapped to the lead position coordinate matrix of the 61-lead system, there are three leads, F1, FZ, and F2, between F3 and F4. That is, if lead C is F3 in the 16-lead system, then the number of leads T between lead C and the adjacent lead actually installed on the right of lead C is 3. If Then the initial positioning lead position is shifted to the right by T+1-i positions in the N×M lead matrix, where i is the optimal shift parameter obtained according to the inequality;
[0086] If ΔK (c,left) <ΔK (c,right) , by querying the lead matrix, we can get the number of leads T between lead C and the adjacent lead actually installed on the left of lead C. If Then the initial positioning lead position is shifted to the left by T+1-i positions in the N×M lead matrix;
[0087] If ΔK (c,left) =ΔK (c,right) , then the initial positioning lead position is not fine-tuned in the lateral direction;
[0088] Determine whether the initial positioning lead has only one adjacent lead above or below in the N×M lead matrix. If so, the positioning position is not adjusted in the longitudinal direction; otherwise
[0089] Calculate the difference between the initial positioning lead position and the comprehensive index of the upper and lower adjacent leads, and record the difference between the initial positioning lead position and the upper adjacent lead as ΔK (c,up) , the difference between it and the next adjacent lead is recorded as ΔK (c,down) ;
[0090] If ΔK (c,up) >ΔK (c,down) , by querying the lead matrix, we can get the number of leads T between lead C and the adjacent leads actually installed below lead C. If Then the initial positioning lead position is moved downward by T+1-i positions in the N×M lead matrix;
[0091] If ΔK (c,up) <ΔK (c,down) , by querying the lead matrix, we can get the number of leads T between lead C and the adjacent lead actually installed above lead C. If Then the initial positioning lead position is moved upward by T+1-i positions in the N×M lead matrix;
[0092] If ΔK (c,up) =ΔK (c,down) , the final positioning is in the vertical direction without fine-tuning;
[0093] The position information obtained by calculating and fine-tuning the position information based on the horizontal and vertical comparison is the final positioning information.
[0094] The present invention also proposes an EEG localization device for transcranial magnetic stimulation points, which is used to implement an EEG localization method for transcranial magnetic stimulation points, including an EEG acquisition module, a data segment acquisition module and an EEG localization module, wherein:
[0095] The EEG acquisition module is used to install EEG acquisition leads on the patient's head according to the 10-20 international standard lead system, set the EEG data sampling rate and data truncation length, and collect EEG data;
[0096] A data segment acquisition module is used to save the currently acquired data segment in the form of a matrix, where each row of the matrix represents data acquired by a lead at a sampling rate of f and a data truncation length of t;
[0097] The EEG positioning module is used to perform positioning based on the preprocessed EEG data. The positioning process specifically includes:
[0098] If the total number of acquired data segments is not greater than 1, no processing is performed and data segments continue to be acquired; otherwise, the current data segment is combined with the previous data segment, and each row in the combined data matrix is the data of one lead in two data segments;
[0099] From the combined data, the maximum value of each lead is obtained, and all the obtained maximum values are normalized to obtain a first index;
[0100] From the combined data, the cumulative value of the absolute value of each lead data is obtained, and all the obtained cumulative values are normalized to obtain a second index;
[0101] The first index and the second index are weighted to obtain a comprehensive index, and the lead corresponding to the maximum comprehensive index is used as the initial positioning.
[0102] This embodiment provides a specific embodiment of a method for EEG localization using a transcranial magnetic stimulation point. Figure 4 , including the following steps:
[0103] S1. Setting magnetic stimulation parameters and EEG analysis software parameters, the set parameters at least include stimulation frequency, stimulation intensity, EEG data sampling rate and data truncation length, and turning on the transcranial stimulator and EEG acquisition instrument at the same time;
[0104] S2, analyzing signal interception, i.e. collecting EEG data and intercepting it to obtain data fragments;
[0105] S3, signal preprocessing, i.e. filtering the intercepted data with a Butterworth zero-phase bandpass filter, retaining 3-45Hz data information and removing 50Hz power frequency interference;
[0106] S4, initial positioning calculation, which is described in detail in the above embodiment and will not be repeated here;
[0107] S5: fine-tuning the positioning information. The above embodiments have described this in detail and will not be repeated here.
[0108] S6, positioning information display, that is, the final positioning obtained after fine-tuning is displayed on a screen or the like;
[0109] S7, determine whether the final positioning position is the same as the transcranial magnetic stimulation position, if different, adjust the transcranial magnetic stimulation position, and return to step S1 to reposition, if the same, continue the magnetic stimulation treatment.
[0110] In the description of the present invention, it is necessary to understand that the terms "coaxial", "bottom", "one end", "top", "middle", "the other end", "upper", "one side", "top", "inside", "outside", "front", "center", "both ends" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0111] In the present invention, unless otherwise clearly stipulated and limited, the terms such as "installation", "setting", "connection", "fixation" and "rotation" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral one; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium; it can be the internal connection of two elements or the interaction relationship between two elements. Unless otherwise clearly defined, ordinary technicians in this field can understand the specific meanings of the above terms in the present invention according to the specific circumstances.
[0112] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for EEG localization of transcranial magnetic stimulation points. It is characterized in that The specific steps include:
100. Install EEG collection leads on the patient's head according to the 10-20 international standard lead system, set the EEG data sampling rate and data cutoff length, and collect EEG data; 101. Save the currently acquired data fragment in the form of a matrix, where each row of the matrix represents data acquired for one lead with a sampling rate of f and a data truncation length of t; 102. If the total number of acquired data segments is not greater than 1, no processing is performed and data segments continue to be acquired; otherwise, the current data segment is combined with the previous data segment, and each row in the combined data matrix is data of one lead in two data segments; 103. Obtain the maximum value of each lead from the combined data, and normalize all the obtained maximum values to obtain a first index; 104. Obtain the cumulative value of the absolute value of each lead data from the combined data, and perform normalization processing on all the obtained cumulative values to obtain a second index; 105. The first index and the second index are weighted to obtain a comprehensive index, and the lead corresponding to the maximum comprehensive index is used as the initial positioning.
2. The method for EEG localization of transcranial magnetic stimulation points according to claim 1, It is characterized in that The collected EEG data were preprocessed, including filtering the intercepted data with a Butterworth zero-phase bandpass filter, retaining 3-45 Hz data information and removing 50 Hz power frequency interference.
3. The method for EEG localization of transcranial magnetic stimulation points according to claim 1, It is characterized in that When weighting the first indicator and the second indicator, the calculation of the weight of the first indicator is expressed as: The calculation of the second indicator weight is expressed as: IN i 2 =1-W i 1 Among them, W i 1 represents the weight of the first indicator of the i-th lead in the combined data; c represents the number of leads; M i ' represents the first index of the i-th lead in the combined data; A i ' represents the second index of the i-th lead in the combined data; W i 2 Represents the weight of the second indicator of the i-th lead in the combined data.
4. The method for EEG localization of transcranial magnetic stimulation points according to claim 1, It is characterized in that When the number of installed EEG acquisition leads is greater than or equal to the set lead threshold, the initial positioning is determined as the final positioning; when the number of installed EEG acquisition leads is less than the set lead threshold, the initial positioning is fine-tuned, and the fine-tuning process includes: Establish an N×M lead matrix according to the set lead threshold, and fill the lead matrix with lead information according to the 10-20 international standard lead system; Determine whether the initial positioning lead has only one adjacent lead on the left or right in the N×M lead matrix. If so, the positioning position is not adjusted horizontally; otherwise Calculate the difference between the initial positioning lead position and the comprehensive index of its left and right adjacent leads, and record the difference between it and the left adjacent lead as ΔK (c,left) , and the difference between it and the right adjacent lead is recorded as ΔK (c,right) , K c It is a comprehensive index for initial positioning of lead C; If ΔK (c,left) >ΔK (c,right) , by querying the lead matrix, we can get the number of leads T between lead C and the adjacent lead actually installed to the right of lead C. If Then the initial positioning lead position is moved rightward by T+1-i positions in the N×M lead matrix; If ΔK (c,left) <ΔK (c,right) , by querying the lead matrix, we can get the number of leads T between lead C and the adjacent lead actually installed on the left of lead C. If Then the initial positioning lead position is shifted to the left by T+1-i positions in the N×M lead matrix; If ΔK (c,left) =ΔK (c,right) Then the initial positioning lead position is not fine-tuned in the lateral direction; Determine whether the initial positioning lead has only one adjacent lead above or below in the N×M lead matrix. If so, the positioning position is not adjusted in the longitudinal direction; otherwise Calculate the difference between the initial positioning lead position and the comprehensive index of the upper and lower adjacent leads, and record the difference between the initial positioning lead position and the upper adjacent lead as ΔK (c,up) , the difference between it and the next adjacent lead is recorded as ΔK (c,down) ; If ΔK (c,up) >ΔK (c,down) , by querying the lead matrix, we can get the number of leads T between lead C and the adjacent leads actually installed below lead C. If Then the initial positioning lead position is moved down by T+1-i positions in the N×M lead matrix; if If ΔK (c,up) <ΔK (c,down) , by querying the lead matrix, we can get the number of leads T between lead C and the adjacent lead actually installed above lead C. If Then the initial positioning lead position is moved upward by T+1-i positions in the N×M lead matrix; If ΔK (c,up) =ΔK (c,down) , otherwise the final positioning will be in the vertical direction without fine-tuning.
5. A device for positioning EEG points of transcranial magnetic stimulation, It is characterized in that The method for implementing the EEG localization method of the transcranial magnetic stimulation point according to claim 1 comprises an EEG acquisition module, a data segment acquisition module and an EEG localization module, wherein: The EEG acquisition module is used to install EEG acquisition leads on the patient's head according to the 10-20 international standard lead system, set the EEG data sampling rate and data truncation length, and collect EEG data; A data segment acquisition module is used to save the currently acquired data segment in the form of a matrix, where each row of the matrix represents data acquired by a lead at a sampling rate of f and a data truncation length of t; The EEG positioning module is used to perform positioning based on the preprocessed EEG data. The positioning process specifically includes: If the total number of acquired data segments is not greater than 1, no processing is performed and data segments continue to be acquired; otherwise, the current data segment is combined with the previous data segment, and each row in the combined data matrix is the data of one lead in two data segments; From the combined data, the maximum value of each lead is obtained, and all the obtained maximum values are normalized to obtain a first index; Obtaining the cumulative value of the absolute value of each lead data from the combined data, and performing normalization processing on all the obtained cumulative values to obtain a second index; The first index and the second index are weighted to obtain a comprehensive index, and the lead corresponding to the maximum comprehensive index is used as the initial positioning.
6. The device for locating the EEG points of transcranial magnetic stimulation according to claim 5, It is characterized in that The data from the data segment acquisition module is processed by the EEG preprocessing module and then input into the EEG positioning module. The preprocessing process of the EEG preprocessing module includes filtering the intercepted data with a Butterworth zero-phase bandpass filter, retaining 3-45Hz data information and removing 50Hz power frequency interference.
7. The device for locating the EEG points of transcranial magnetic stimulation according to claim 5, It is characterized in that When weighting the first indicator and the second indicator, the calculation of the weight of the first indicator is expressed as: The calculation of the second indicator weight is expressed as: IN i 2 =1-W i 1 Among them, W i 1 represents the weight of the first indicator of the i-th lead in the combined data; c represents the number of leads; M i ' represents the first index of the i-th lead in the combined data; A i ' represents the second index of the i-th lead in the combined data; W i 2 Represents the weight of the second indicator of the i-th lead in the combined data.
8. The device for locating the EEG points of transcranial magnetic stimulation according to claim 5, It is characterized in that When the number of installed EEG acquisition leads is greater than or equal to the set lead threshold, the obtained initial positioning is determined as the final positioning; when the number of installed EEG acquisition leads is less than the set lead threshold, the obtained initial positioning is fine-tuned by the fine-tuning module, and the fine-tuning process of the fine-tuning module includes: Establish an N×M lead matrix according to the set lead threshold, and fill the lead matrix with lead information according to the 10-20 international standard lead system; Determine whether the initial positioning lead has only one adjacent lead on the left or right in the N×M lead matrix. If so, the positioning position is not adjusted horizontally; otherwise Calculate the difference between the initial positioning lead position and the comprehensive index of its left and right adjacent leads, and record the difference between it and the left adjacent lead as ΔK (c,left) , and the difference between it and the right adjacent lead is recorded as ΔK (c,right) , K c It is a comprehensive index for initial positioning of lead C; If ΔK (c,left) >ΔK (c,right) , by querying the lead matrix, we can get the number of leads T between lead C and the adjacent lead actually installed to the right of lead C. If Then the initial positioning lead position is moved rightward by T+1-i positions in the N×M lead matrix; If ΔK (c,left) <ΔK (c,right) , by querying the lead matrix, we can get the number of leads T between lead C and the adjacent lead actually installed on the left of lead C. If Then the initial positioning lead position is shifted to the left by T+1-i positions in the N×M lead matrix; If ΔK (c,left) =ΔK (c,right) Then the initial positioning lead position is not fine-tuned in the lateral direction; Determine whether the initial positioning lead has only one adjacent lead above or below in the N×M lead matrix. If so, the positioning position is not adjusted in the longitudinal direction; otherwise Calculate the difference between the initial positioning lead position and the comprehensive index of the upper and lower adjacent leads, and record the difference between the initial positioning lead position and the upper adjacent lead as ΔK (c,up) , the difference between it and the next adjacent lead is recorded as ΔK (c,down) ; If ΔK (c,up) >ΔK (c,down) , by querying the lead matrix, we can get the number of leads T between lead C and the adjacent leads actually installed below lead C. If Then the initial positioning lead position is moved down by T+1-i positions in the N×M lead matrix; if If ΔK (c,up) <ΔK (c,down) , by querying the lead matrix, we can get the number of leads T between lead C and the adjacent lead actually installed above lead C. If Then the initial positioning lead position is moved upward by T+1-i positions in the N×M lead matrix; If ΔK (c,up) =ΔK (c,down) , otherwise the final positioning will be in the vertical direction without fine-tuning.
Citation Information
Cited By
Transcranial direct current stimulation intervention system
CN119883000A
Transcranial magnetic stimulation combined electroencephalogram data processing method and device and storage medium
CN120067821A
