A positioning method and system based on electroencephalogram signals

Through a positioning method based on EEG signals, Bayesian methods and source imaging models are used to automatically determine the location of neural stimulation, solving the problems of positioning deviation and expensive navigation systems in the existing technology, and achieving high accuracy and efficiency of neural stimulation. Stimulus localization.

CN118252513BActive Publication Date: 2024-09-20ZHEJIANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410675597.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-09-20
Estimated Expiration
2044-05-29

AI Technical Summary

Technical Problem

Existing neuromodulation equipment relies on human judgment when determining the location of nerve stimulation, which is prone to positioning deviations. The navigation system is expensive and lacks intuitive stimulation effect feedback.

Method used

Using a positioning method based on EEG signals, the EEG signals are converted into linear equations through a preset source imaging model, and the Bayesian method is used for posterior estimation, iteratively updating the time domain basis functions and weighting coefficients, and adaptive denoising. Determine the stimulation area for nerve stimulation.

Benefits of technology

No human intervention is required, which improves the accuracy and efficiency of stimulation positioning, avoids noise interference, and conforms to the operator's usage habits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118252513B
    Figure CN118252513B
Patent Text Reader

Abstract

The embodiments of this specification disclose a positioning method and system based on EEG signals, including: in response to the EEG signals obtained after neural stimulation, converting the EEG signals into the linear equations of a preset source imaging model; the linear equations of the source imaging model include: the relationship matrix of mapping the EEG source activity from the cerebral cortex to the scalp surface acquisition electrodes, the time domain basis functions of the EEG signals, and the weighting coefficients of the time domain basis functions of each source dipole; expressing the linear equations of the source imaging model in the form of probability distribution, and applying a priori probability to the source imaging model in the form of probability distribution according to the Bayesian method; performing a posteriori estimation on the source imaging model after applying the prior probability, and iteratively updating the time domain basis functions and weighting coefficients in the source imaging model, as well as the hyperparameters of the time domain basis functions and weighting coefficients, until the source imaging model converges to obtain the source activity signal corresponding to the EEG signal; determining the stimulation area corresponding to the neural stimulation according to the source activity signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] One or more embodiments of the present specification relate to the field of signal imaging technology, and specifically to a positioning method and system based on electroencephalogram signals. Background Art

[0002] Neuromodulation technology is a method of treating diseases or improving physiological functions by intervening in the activity of the nervous system. This technology involves multiple levels, including the use of electrical stimulation to stimulate nerves, drug intervention, and biomaterials to regulate neurogenic activity or neural pathways.

[0003] In related technologies, the stimulation position of the neuromodulator requires human intervention to determine, which is extremely dependent on the judgment of the operating doctor, and is prone to positioning deviations that affect the effect. Although some transcranial magnetic devices are equipped with navigation systems to assist in positioning, the positioning system is expensive, has limited application scenarios, and lacks intuitive feedback on the stimulation effect. The operating doctor still needs to indirectly judge the positioning effect through patient feedback, electromyographic response, etc. Summary of the invention

[0004] The embodiments of this specification provide a positioning method, device, electronic device, and storage medium based on EEG signals, and the technical solutions are as follows:

[0005] In a first aspect, the embodiments of this specification provide a positioning method based on EEG signals, including:

[0006] In response to the EEG signal acquired after the nerve stimulation, the EEG signal is converted into a linear equation of a preset source imaging model; wherein the linear equation of the source imaging model includes: a relationship matrix of mapping the EEG source activity from the cerebral cortex to the scalp surface acquisition electrode, a time domain basis function of the EEG signal, and a weighting coefficient of the time domain basis function of each source dipole;

[0007] Representing the linear equation of the source imaging model in a probability distribution form, and applying a priori probability to the source imaging model in the probability distribution form according to a Bayesian method;

[0008] Performing a posteriori estimation on the source imaging model after applying the prior probability, and iteratively updating the time domain basis function and weighting coefficient in the source imaging model, as well as the hyperparameters of the time domain basis function and weighting coefficient, until the source imaging model converges, so as to obtain the source activity signal corresponding to the EEG signal; wherein the source activity signal is the product of the time domain basis function and the weighting coefficient;

[0009] A stimulation area corresponding to the neural stimulation is determined according to the source activity signal.

[0010] In a second aspect, the embodiments of this specification provide a positioning device based on EEG signals, including:

[0011] A first conversion unit is used to convert the EEG signal into a linear equation of a preset source imaging model in response to the EEG signal obtained after the nerve stimulation; wherein the linear equation of the source imaging model includes: a relationship matrix of mapping the EEG source activity from the cerebral cortex to the scalp surface acquisition electrode, a time domain basis function of the EEG signal, and a weighting coefficient of the time domain basis function of each source dipole;

[0012] an applying unit, used for expressing the linear equation of the source imaging model in the form of probability distribution, and applying a priori probability to the source imaging model in the form of probability distribution according to a Bayesian method;

[0013] An updating unit, configured to perform a posteriori estimation on the source imaging model after applying the prior probability, and iteratively update the time domain basis function and the weighting coefficient in the source imaging model, as well as the hyperparameters of the time domain basis function and the weighting coefficient, until the source imaging model converges, so as to obtain a source activity signal corresponding to the EEG signal; wherein the source activity signal is the product of the time domain basis function and the weighting coefficient;

[0014] A determination unit is used to determine a stimulation area corresponding to the neural stimulation according to the source activity signal.

[0015] In a third aspect, an embodiment of the present specification provides an electronic device, comprising a processor and a memory; the processor is connected to the memory; the memory is used to store executable program code; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the steps of the EEG signal-based positioning method described in the first aspect of the above embodiment.

[0016] In a fourth aspect, an embodiment of this specification provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the steps of the EEG signal-based positioning method described in the first aspect of the above embodiment.

[0017] The beneficial effects brought by the technical solutions provided by some embodiments of this specification include at least:

[0018] (1) The EEG signal is represented by a pre-set source imaging model, and the source activity signal is automatically calculated to determine the stimulation area of ​​the neural stimulation. This process does not require human intervention, which can not only avoid the mistakes in manual determination of the stimulation area and improve the accuracy of stimulation positioning, but also improve positioning efficiency.

[0019] (2) The EEG signal is denoised before generating the source imaging model. The signal sequence of the noise is also adaptively calculated in the source imaging model to achieve secondary denoising, thereby eliminating the interference of noise on the positioning of the stimulation area and improving the accuracy of positioning.

[0020] (3) In the process of calculating the source activity signals corresponding to each area, the linear equations of the source imaging model are converted into a general form, which helps to express the linear equations in the form of probability distribution, thereby improving the positioning efficiency.

[0021] (4) Using different conditions based on actual conditions to determine the stimulation area according to the source activity signal, so that the determined stimulation area conforms to the operator's usage habits. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of this specification, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0023] Figure 1 This is an architecture diagram of a positioning system based on EEG signals provided in an embodiment of this specification.

[0024] Figure 2 It is a flowchart of a positioning method based on EEG signals provided in an embodiment of this specification.

[0025] Figure 3 This is a block diagram of a positioning device based on EEG signals provided in an embodiment of this specification.

[0026] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of this specification. DETAILED DESCRIPTION

[0027] The technical solutions in the embodiments of this specification will be described clearly and completely below in conjunction with the drawings in the embodiments of this specification.

[0028] The terms "first", "second", etc. in the description and claims of this specification and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any variation thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.

[0029] The positioning method based on EEG signals is described in detail below in combination with one or more embodiments.

[0030] Neuromodulation technology is a method of treating diseases or improving physiological functions by intervening in the activity of the nervous system. This technology involves multiple levels, including the use of electrical stimulation to stimulate nerves, drug intervention, and biomaterials to regulate neurogenic activity or neural pathways.

[0031] In related technologies, the stimulation position of the neuromodulator requires human intervention to determine, which is extremely dependent on the judgment of the operating doctor, and is prone to positioning deviations that affect the effect. Although some transcranial magnetic devices are equipped with navigation systems to assist in positioning, the positioning system is expensive, has limited application scenarios, and lacks intuitive feedback on the stimulation effect. The operating doctor still needs to indirectly judge the positioning effect through patient feedback, electromyographic response, etc.

[0032] In order to solve the problems existing in the related art, this specification proposes a positioning method, device, electronic device, and storage medium based on EEG signals.

[0033] Combine the following Figure 1 The architecture involved in this positioning method is described in detail. Figure 1 , Figure 1 FIG. 1 shows an architecture diagram of a positioning system based on EEG signals provided in an embodiment of the present specification, such as Figure 1 As shown, the system may include: a nerve stimulation device 11, a signal acquisition device 12, and a positioning device 13.

[0034] The neural stimulation device 11 can be used to apply neural stimulation to a stimulation object. The neural stimulation can be in the form of electrical stimulation, magnetic stimulation, or ultrasonic stimulation, which is not limited in this specification.

[0035] The signal acquisition device 12 may be used to acquire the electroencephalogram (EEG) signals of the stimulation subject after neural stimulation is applied thereto, and may send the acquired EEG signals to the positioning device 13 .

[0036] The positioning device 13 can cooperate with the signal acquisition device 12 to calculate the source activity signals of various areas of the stimulation object according to the received EEG signals, and determine the stimulation area of ​​the nerve stimulation according to the source activity signals.

[0037] The positioning system may further include a display device 14, which may be a display screen, for displaying the determined stimulation area to the operator of the positioning system in the form of an image, so as to facilitate navigation of the stimulation area. Of course, the display device 14 may not be limited to a display screen, and may include, for example, a voice broadcast device, for notifying the operator of the stimulation area in the form of a voice broadcast, and this specification does not limit the display device 14.

[0038] The above-mentioned EEG signal-based positioning system represents the EEG signal through a pre-set source imaging model, and automatically calculates the source activity signal, thereby determining the stimulation area of ​​neural stimulation. This process does not require human participation, which not only avoids mistakes in manual determination of the stimulation area, improves the accuracy of stimulation positioning, but also improves positioning efficiency.

[0039] See also Figure 2 , Figure 2 A schematic diagram of a positioning method based on EEG signals provided in an embodiment of this specification is shown. Figure 2 As shown, the positioning method based on EEG signals may at least include the following steps:

[0040] Step 202: In response to the EEG signal obtained after the neural stimulation, the EEG signal is converted into a linear equation of a preset source imaging model; wherein the linear equation of the source imaging model includes: a relationship matrix of mapping the EEG source activity from the cerebral cortex to the scalp surface acquisition electrodes, a time domain basis function of the EEG signal, and a weighting coefficient of the time domain basis function of each source dipole.

[0041] Electroencephalography (EEG) is a technique for recording the electrical activity of the brain, which captures the collective electrical activity of neurons in the brain through electrodes placed on the scalp. Time domain basis function analysis of EEG signals is a method used to analyze EEG data, which focuses on the characteristics of the signal in the time domain.

[0042] In EEG analysis, time domain basis functions generally refer to mathematical functions used to describe the temporal characteristics of EEG signals. These functions can capture specific temporal characteristics of EEG signals, such as amplitude, frequency, and waveform. By using time domain basis functions, researchers can better understand and interpret the information in EEG signals, thereby performing more accurate EEG analysis.

[0043] The relationship matrix of brain electrical activity mapped from the cerebral cortex to the electrodes collected on the scalp surface is the lead field matrix. It is used to describe the transmission process of electrical signals between scalp electrodes and the cerebral cortex. This matrix is ​​a model in neuroelectrophysiology that helps researchers estimate how the electrical signals recorded on the scalp are generated from specific areas of the cerebral cortex. The lead field matrix is ​​a mathematical model that quantifies the relationship between the position of the electrodes on the scalp and the corresponding areas inside the cerebral cortex. This matrix contains a mapping of the potential distribution from the scalp electrodes to each point in the cerebral cortex. Through the forward conduction matrix, the electrical activity of various areas inside the cerebral cortex can be predicted under the electrical signals recorded by the given electrodes.

[0044] Step 204: Express the linear equation of the source imaging model in the form of probability distribution, and apply a priori probability to the source imaging model in the form of probability distribution according to the Bayesian method.

[0045] The Bayesian method is a statistical inference method that updates the probability of a hypothesis based on the Bayesian theorem. This method is very useful when information is incomplete. The Bayesian theorem provides a way to calculate the probability of an event when certain other probabilities are known. The Bayesian theorem can be expressed as:

[0046] ;

[0047] Among them, P(A|B) is the conditional probability of event A occurring given event B occurring. P(B|A) is the conditional probability of event B occurring given event A occurring. P(A) is the prior probability of event A, that is, the probability of event A occurring without other information. P(B) is the marginal probability of event B, that is, the probability of event B occurring without other information.

[0048] The prior probability is the initial belief or knowledge about the parameter before considering specific data, and the posterior estimate is the updated estimate of the uncertainty in the parameter after considering the observed data.

[0049] Step 206: perform a posteriori estimation on the source imaging model after applying the prior probability, and iteratively update the time domain basis functions and weighting coefficients in the source imaging model, as well as the hyperparameters of the time domain basis functions and weighting coefficients, until the source imaging model converges to obtain the source activity signal corresponding to the EEG signal; wherein the source activity signal is the product of the time domain basis function and the weighting coefficient.

[0050] Step 208: Determine a stimulation area corresponding to the neural stimulation according to the source activity signal.

[0051] In this embodiment, the EEG signal is represented by a pre-set source imaging model, and the source activity signal is automatically calculated, thereby determining the stimulation area for neural stimulation. This process does not require human intervention, which not only avoids errors in manual determination of the stimulation area and improves the accuracy of stimulation positioning, but also improves positioning efficiency.

[0052] In one embodiment, the source imaging model further includes a hypothesized noise signal time series and an observation matrix of the noise signal. Also, the source imaging model further includes a residual term.

[0053] The following formula is used to introduce the process of solving the source imaging model. The linear equation of the source imaging model can be expressed as:

[0054] ;

[0055] Where L is the known forward conduction matrix (the relationship matrix of brain power activity mapped from the cerebral cortex to the scalp surface collection electrodes), represents the time domain basis function, W S represents the weighting coefficient of the time domain basis function of each source dipole, E is the noise signal time series, A is the observation matrix of the noise signal, is the residual term. In the above data (except the residual term), , W S , E are both unknown items, L can be obtained in advance (the method of obtaining the forward conduction matrix will not be repeated here), and A can be pre-set by the operator of the positioning system.

[0056] The residual term refers to the difference between the model's predicted value and the actual observed value. In simple terms, it is the part of the data that the model does not explain.

[0057] In this embodiment, by setting the noise signal time series and the noise signal observation matrix in the linear equation of the source imaging model, the noise signal sequence is also adaptively calculated in the source imaging model, thereby eliminating the interference of noise on the positioning of the stimulation area and improving the positioning accuracy.

[0058] Furthermore, the method also includes: converting the noise signal time series in the linear equation of the source imaging model into a linear combination form with the time domain basis function; decomposing the weighting coefficient of the source dipole time domain basis function into a first parameter and a second parameter, the product of the first parameter and the relationship matrix is ​​the relationship matrix, and the second parameter is used to characterize the correlation between adjacent source activities; converting the linear equation into a general form so that the linear equation can be expressed as a probability distribution form.

[0059] The above linear equation can be adjusted to:

[0060] ;

[0061] At the same time, the noise signal time series E is also expressed as a linear combination of time domain basis functions, thus obtaining:

[0062] ;

[0063] in, The time domain basis function including source activity and noise, W e is the weighting coefficient of the noise. Then W S This breaks down into:

[0064] ;

[0065] Among them, Z is used to represent the correlation between the activities of each source and its neighboring sources. Finally, the source imaging model is integrated into a general form:

[0066] ;

[0067] in, in L " and the aforementioned forward conduction matrix "L" are two data, and =L.

[0068] In this embodiment, in the process of calculating the source activity signal corresponding to each area, the linear equation of the source imaging model is converted into a general form, which helps to express the linear equation in a probability distribution form, thereby improving the positioning efficiency.

[0069] Next, the source imaging model is expressed as a probability distribution:

[0070]

[0071] Among them, T is the duration of EEG signal B, is the normal distribution function, b t , , are the EEG signal, time domain basis function and error value at time t respectively.

[0072] is the residual term The covariance matrix of is expressed as: . represents the diagonal matrix function, K is the number of time domain basis functions, W i is the weighting coefficient of the i-th time domain basis function, M is the spatial coefficient matrix, represents the transpose operation, To control the relative distribution of each source dipole, α controls the contribution of each time-domain basis function, are all hyperparameters.

[0073] Furthermore, the spatial coefficient matrix M satisfies: .in, represents a block diagonal matrix function, C i is the covariance matrix between the activities of each source and its neighboring sources, and r is the correlation coefficient.

[0074] .

[0075] In one embodiment, the a posteriori estimation method is to maximize the free energy of the source imaging model.

[0076] The probability distribution of the source imaging model is estimated a posteriori according to the variational Bayesian method, that is, the free energy of the model is maximized. :

[0077] ;

[0078] in, and are all probability distribution functions, ;

[0079] According to the mean field estimation method:

[0080] ;

[0081] By iteratively updating the parameters, the free energy Maximize, where w k The update method is as follows

[0082]

[0083] in Represents each round of iterative update , represents the kth time domain basis function, Indicates w k The covariance matrix of

[0084] The update method of Ф is as follows:

[0085]

[0086] The hyperparameters α and γ corresponding to W and Φ are updated, and the update formula is as follows:

[0087]

[0088] C i The update method can be:

[0089]

[0090] The update method is:

[0091]

[0092] When free energy When the relative change of is small, the algorithm is considered to have converged. The source activity signal is obtained:

[0093] .

[0094] In this embodiment, the EEG signal is represented by a pre-set source imaging model, and the source activity signal is automatically calculated, thereby determining the stimulation area for neural stimulation. This process does not require human intervention, which not only avoids errors in manual determination of the stimulation area and improves the accuracy of stimulation positioning, but also improves positioning efficiency.

[0095] In one embodiment, determining the stimulation area corresponding to the neural stimulation according to the source activity signal includes: determining the source activity intensity corresponding to different areas according to the source activity signal, and determining the first area with the largest source activity intensity as the stimulation area; and / or obtaining a brain activity template of the neural stimulation obtained in advance by analysis, and determining the correlation between the source activity of different areas and the brain activity template according to the source activity signal; and determining the area where the correlation exceeds a preset threshold as the stimulation area.

[0096] According to the calculated source activity signal S, the brain region where the source activity related to the neural stimulation is located is determined, that is, the stimulation area of ​​the neural stimulation.

[0097] In one embodiment, the source activity intensities corresponding to different regions are determined according to the source activity signal, and the first region with the largest source activity intensity is determined as the stimulation region. That is the stimulation area, which can be expressed as a formula:

[0098] .

[0099] In another case, a template of brain activity that indicates a neuromodulatory response can be obtained by pre-analysis. , looking for neural regulatory source activity and The area with large correlation is determined as the stimulation area for nerve stimulation, which can be expressed as a formula:

[0100] ;

[0101] Where corr is the Pearson correlation coefficient, and T is a threshold set by the user (such as 0.9).

[0102] In this embodiment, different conditions are used based on actual conditions to determine the stimulation area according to the source activity signal, so that the determined stimulation area meets the usage habits of the operator.

[0103] In one embodiment, the method further includes: denoising the EEG signal according to a preset denoising method; wherein the denoising method includes at least one of the following: filtering, re-referencing, interpolation to remove artifacts, and ICA to remove eye points; converting the EEG signal into a preset source imaging model includes: converting the denoised EEG signal into a preset source imaging model.

[0104] In this embodiment, the EEG signal is denoised before generating the source imaging model, and the signal sequence of the noise is also adaptively calculated in the source imaging model to achieve secondary denoising, thereby eliminating the interference of noise on the positioning of the stimulation area and improving the accuracy of positioning.

[0105] See also Figure 3 , Figure 3 A block diagram of a positioning device based on EEG signals provided in an embodiment of this specification. The device includes:

[0106] The first conversion unit 302 is used to convert the EEG signal into a linear equation of a preset source imaging model in response to the EEG signal obtained after the nerve stimulation; wherein the linear equation of the source imaging model includes: a relationship matrix of mapping the EEG source activity from the cerebral cortex to the scalp surface acquisition electrode, a time domain basis function of the EEG signal, and a weighting coefficient of the time domain basis function of each source dipole;

[0107] An applying unit 304 is used to express the linear equation of the source imaging model in a probability distribution form, and apply a priori probability to the source imaging model in the probability distribution form according to a Bayesian method;

[0108] An updating unit 306 is used to perform a posteriori estimation on the source imaging model after applying the prior probability, and iteratively update the time domain basis function and weighting coefficient in the source imaging model, as well as the hyperparameters of the time domain basis function and weighting coefficient, until the source imaging model converges, so as to obtain a source activity signal corresponding to the EEG signal; wherein the source activity signal is the product of the time domain basis function and the weighting coefficient;

[0109] The determination unit 308 is configured to determine a stimulation area corresponding to the neural stimulation according to the source activity signal.

[0110] Optionally, the determining unit 308 is specifically configured to:

[0111] Determine the source activity intensities corresponding to different regions according to the source activity signal, and determine the first region with the largest source activity intensity as the stimulation region; and / or,

[0112] A brain activity template of neural stimulation obtained by pre-analysis is obtained, and the correlation between the source activity in different regions and the brain activity template is determined according to the source activity signal; and the region where the correlation exceeds a preset threshold is determined as the stimulation region.

[0113] Optional,

[0114] The method further comprises: a denoising unit 310, for denoising the EEG signal according to a preset denoising method; wherein the denoising method comprises at least one of the following: filtering, re-referencing, interpolation to remove artifacts, ICA to remove eye points;

[0115] The conversion unit is specifically used to convert the denoised EEG signal into a preset source imaging model.

[0116] Optionally, the source imaging model further includes a hypothetical noise signal time series and an observation matrix of the noise signal.

[0117] Optionally, the method further includes:

[0118] A second conversion unit 312, configured to convert the noise signal time series in the linear equation of the source imaging model into a linear combination form with the time domain basis function;

[0119] A decomposition unit 314, configured to decompose the weighted coefficient of the source dipole time domain basis function into a first parameter and a second parameter, wherein the product of the first parameter and the relationship matrix is ​​the relationship matrix, and the second parameter is used to characterize the correlation between adjacent source activities;

[0120] The third conversion unit 316 is used to convert the linear equation into a general form so that the linear equation can be expressed in a probability distribution form.

[0121] Optionally, the method of the posterior estimation is to maximize the free energy of the source imaging model.

[0122] Optionally, the source imaging model further includes a residual term.

[0123] In this embodiment, the EEG signal is represented by a pre-set source imaging model, and the source activity signal is automatically calculated, thereby determining the stimulation area for neural stimulation. This process does not require human intervention, which not only avoids errors in manual determination of the stimulation area and improves the accuracy of stimulation positioning, but also improves positioning efficiency.

[0124] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the embodiment of the positioning device based on EEG signals, since it is basically similar to the embodiment of the positioning method based on EEG signals, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0125] See also Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of this specification is shown.

[0126] like Figure 4 As shown, the electronic device 400 may include: at least one processor 401 , at least one network interface 404 , a user interface 403 , a memory 405 , and at least one communication bus 402 .

[0127] The communication bus 402 may be used to realize the connection and communication among the above-mentioned components.

[0128] The user interface 403 may include buttons, and the optional user interface may also include a standard wired interface or a wireless interface.

[0129] The network interface 404 may include, but is not limited to, a Bluetooth module, an NFC module, a Wi-Fi module, etc.

[0130] Among them, the processor 401 may include one or more processing cores. The processor 401 uses various interfaces and lines to connect the various parts of the entire electronic device 400, and executes various functions and processes data of the electronic device 400 by running or executing instructions, programs, code sets or instruction sets stored in the memory 405, and calling data stored in the memory 405. Optionally, the processor 401 can be implemented in at least one hardware form of DSP, FPGA, and PLA. The processor 401 can integrate one or a combination of CPU, GPU, modem, etc. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 401, and it can be implemented separately through a chip.

[0131] Among them, the memory 405 may include RAM or ROM. Optionally, the memory 405 includes a non-transitory computer-readable medium. The memory 405 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 405 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 405 may also be at least one storage device located away from the aforementioned processor 401. The memory 405 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a positioning application based on EEG signals. The processor 401 can be used to call the positioning application based on EEG signals stored in the memory 405, and perform the steps of positioning based on EEG signals mentioned in the above-mentioned embodiments.

[0132] The embodiment of the present specification also provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a computer or a processor, the computer or the processor executes the above Figure 2 One or more steps in the illustrated embodiment. If the components of the electronic device described above are implemented in the form of software functional units and sold or used as independent products, they can be stored in the computer-readable storage medium.

[0133] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of this specification is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state drive (SSD)).

[0134] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes. In the absence of conflict, the technical features in this embodiment and the implementation scheme can be combined arbitrarily.

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

Claims

1. A positioning method based on EEG signals, comprising: In response to the EEG signal acquired after the nerve stimulation, the EEG signal is converted into a linear equation of a preset source imaging model; wherein the linear equation of the source imaging model includes: a relationship matrix of mapping the EEG source activity from the cerebral cortex to the scalp surface acquisition electrodes, a time domain basis function of the EEG signal, a weighting coefficient of the time domain basis function of each source dipole, an assumed noise signal time series and an observation matrix of the noise signal; Converting the noise signal time series in the linear equation of the source imaging model into a linear combination form with the time domain basis function; Decomposing the weighted coefficient of the source dipole time domain basis function into a first parameter and a second parameter, wherein the product of the first parameter and the relationship matrix is ​​the relationship matrix, and the second parameter is used to characterize the correlation between adjacent source activities; Converting the linear equation into a general form so that the linear equation can be expressed as a probability distribution form; Representing the linear equation of the source imaging model in a probability distribution form, and applying a priori probability to the source imaging model in the probability distribution form according to a Bayesian method; Performing a posteriori estimation on the source imaging model after applying the prior probability, and iteratively updating the time domain basis function and weighting coefficient in the source imaging model, as well as the hyperparameters of the time domain basis function and weighting coefficient, until the source imaging model converges, so as to obtain the source activity signal corresponding to the EEG signal; wherein the source activity signal is the product of the time domain basis function and the weighting coefficient; A stimulation area corresponding to the neural stimulation is determined according to the source activity signal.

2. According to the positioning method based on EEG signals in claim 1, the step of determining the stimulation area corresponding to the neural stimulation according to the source activity signal comprises: Determine the source activity intensities corresponding to different regions according to the source activity signal, and determine the first region with the largest source activity intensity as the stimulation region; and / or, Acquire a brain activity template of neural stimulation obtained by pre-analysis, and determine the correlation between source activities in different regions and the brain activity template according to the source activity signal; The area where the correlation exceeds a preset threshold is determined as a stimulation area.

3. The positioning method based on EEG signals according to claim 1, The method further comprises: De-noising the EEG signal according to a preset de-noising method; wherein the de-noising method includes at least one of the following: filtering, re-referencing, interpolation to remove artifacts, and ICA to remove eye points; The converting the EEG signal into a preset source imaging model includes: converting the EEG signal after denoising into a preset source imaging model.

4. According to the EEG signal-based positioning method described in claim 1, the posterior estimation method is to maximize the free energy of the source imaging model.

5. A positioning system based on EEG signals, comprising: A neurostimulation device for applying neurostimulation to a stimulation subject; A signal acquisition device, used for acquiring an electroencephalogram signal from the stimulation object after being stimulated by the neural stimulation device; A positioning device, using the method according to any one of claims 1 to 4, to locate the stimulation area of ​​the neural stimulation according to the EEG signal.

6. A positioning device based on electroencephalogram signals, comprising: A first conversion unit is used to convert the EEG signal into a linear equation of a preset source imaging model in response to the EEG signal obtained after the nerve stimulation; wherein the linear equation of the source imaging model includes: a relationship matrix of mapping the EEG source activity from the cerebral cortex to the scalp surface acquisition electrode, a time domain basis function of the EEG signal, a weighting coefficient of the time domain basis function of each source dipole, an assumed noise signal time series and an observation matrix of the noise signal; A second conversion unit, used for converting the noise signal time series in the linear equation of the source imaging model into a linear combination form with the time domain basis function; a decomposition unit, used for decomposing the weighted coefficient of the source dipole time domain basis function into a first parameter and a second parameter, wherein the product of the first parameter and the relationship matrix is ​​the relationship matrix, and the second parameter is used for characterizing the correlation between adjacent source activities; A third conversion unit, used for converting the linear equation into a general form, so that the linear equation is expressed in a probability distribution form; an applying unit, used for expressing the linear equation of the source imaging model in the form of probability distribution, and applying a priori probability to the source imaging model in the form of probability distribution according to a Bayesian method; An updating unit, configured to perform a posteriori estimation on the source imaging model after applying the prior probability, and iteratively update the time domain basis function and the weighting coefficient in the source imaging model, as well as the hyperparameters of the time domain basis function and the weighting coefficient, until the source imaging model converges, so as to obtain a source activity signal corresponding to the EEG signal; wherein the source activity signal is the product of the time domain basis function and the weighting coefficient; A determination unit is used to determine a stimulation area corresponding to the neural stimulation according to the source activity signal.

7. An electronic device comprising a processor and a memory; The processor is connected to the memory; The memory is used to store executable program code; The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the method according to any one of claims 1 to 4.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.