Summary of the invention
In order to be optimized to leading of P300 brain-computer interface, satisfy the demand of P300 brain-computer interface, the invention provides a kind of P300 brain-computer interface optimization method that leads, see for details hereinafter and describe:
A kind of P300 brain-computer interface optimization method that leads said method comprising the steps of:
(1) lead according to predetermined number L and obtain incident phase locking value between leading, the value of L is the positive integer more than or equal to 2; Set up distance coefficient matrix between respectively leading, the phase synchronism intensity that definition is respectively led according to described incident phase locking value;
(2) according to described distance coefficient matrix between respectively leading, obtain clustering tree by the hierarchical clustering method;
(3) set up the importance ranking table that leads according to described clustering tree and described phase synchronism intensity of respectively leading;
(4) the described importance ranking table that leads is carried out accuracy and calculate, obtain L accuracy value;
(5) described L accuracy value sorted, the combination of leading that the accuracy value is the highest is as the optimum combination of leading, and exports the combination of leading of described optimum.
Described leading according to predetermined number L in the step (1) obtained incident phase locking value between leading; Set up distance coefficient matrix between respectively leading according to described incident phase locking value, the phase synchronism intensity that definition is respectively led is specially:
If obtain the eeg data of n goal stimulus and the eeg data of m non-goal stimulus through overtesting, the incident phase locking value of then leading between x and the y is specially:
Wherein, the value of n and m is the positive integer more than or equal to 1;
<
τRepresentative is carried out time average to the formula in the bracket;
Define described distance coefficient matrix between respectively leading, for two lead x and y arbitrarily, its distance coefficient matrix is specially:
According to described distance coefficient matrix between respectively leading, define described phase synchronism intensity of respectively leading, for any one x that leads, its phase synchronism intensity is:
Described in the step (3) set up the importance ranking table that leads according to described clustering tree and described phase synchronism intensity of respectively leading and is specially:
Suppose to have the individual eeg data that leads of L, obtain the clustering tree that a L leads, the activity that is provided with L-1 features sources be reflected in L lead on, by the intercepting clustering tree, individual leading of L is divided into the L-1 class, then exists one to comprise two classes of leading, be designated as the lead x and the y that leads, when the phase synchronism intensity of the x that leads during greater than the phase synchronism intensity of the y that leads, the x that then selects to lead gets rid of the y that leads; The importance of the y that leads that gets rid of comes the L position; Lead for remaining L-1, the activity that is provided with L-2 features sources be reflected in L-1 lead on, by the intercepting clustering tree, individual leading of L-1 is divided into the L-2 class, then exist one to comprise two classes of leading, be designated as the lead x and the y that leads, when the phase synchronism intensity of the x that leads during greater than the phase synchronism intensity of the y that leads, the x that then selects to lead gets rid of the y that leads; The importance of the y that leads that gets rid of then comes the L-1 position; By that analogy, up to only surplus one lead till, remaining at last leads, and comes L-(L-1) position, obtains the L importance ranking table that leads.
Described in the step (4) carries out accuracy to the described importance ranking table that leads to be calculated, and obtains L accuracy value and is specially:
The data of leading of L-(L-1) position are carried out accuracy calculate, obtain the first accuracy value A1; The data of leading of L-(L-1) position and L-(L-2) position are carried out accuracy calculate, obtain the second accuracy value A2; The data of leading of L-(L-1) position, L-(L-2) position and L-(L-3) position are carried out accuracy calculate, obtain the 3rd accuracy value A3; By that analogy, up to obtaining L accuracy value AL.
The beneficial effect of technical scheme provided by the invention is:
The invention provides a kind of P300 brain-computer interface optimization method that leads, fusion event PLV of the present invention (Phase Locking Value, the phase locking value) and the hierarchical clustering method, the features sources number is inferred decision-making, selecting the optimum combination of leading on this basis, is a kind of brand-new P300 brain-computer interface optimisation technique of leading; This invention can effectively reduce the redundancy of BCI system and lead, reduce the instability risk of BCI system, simplify procedures, online degree and its commercialization of promotion of improving the BCI system are offered help, can obtain considerable economic and social benefit in field of human-computer interaction.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing.
In order to be optimized to leading of P300 brain-computer interface, satisfy the demand of P300 brain-computer interface, the embodiment of the invention provides a kind of P300 brain-computer interface optimization method that leads, and sees for details hereinafter to describe:
101: lead according to predetermined number L and to obtain incident phase locking value between leading; Distance coefficient matrix between foundation is respectively led according to the incident phase locking value between leading, the phase synchronism intensity that definition is respectively led;
Wherein, the predetermined number L that leads sets according to the needs in the practical application, and value is the positive integer more than or equal to 2, and during specific implementation, the embodiment of the invention does not limit this.
If a certain signal s (t), its analytical function z (t) can obtain by through type (1-1)
Signal
The Hilbert that is s (t) changes, and can write out the instantaneous phase of signal s (t):
Suppose that predetermined number is 2, promptly exists two EEG signals s that lead
x(t) and s
y(t), its phase place is respectively
With
The phase locking value of x and y of then leading can be obtained by formula (1-4):
Wherein,<
τRepresentative is carried out time average to the formula in the bracket, and the window width of its time window is τ (τ=25ms in the embodiment of the invention is that example describes).If the complete synchronism of the phase place of two lead signals,
Then be stable, PLV
X, y(t)=1; If this two phase place of leading signal does not have synchronism, then
Be stochastic distribution, PL
X, y(t)=0.
If behind overtesting, obtain the eeg data of n goal stimulus target and the eeg data of m non-goal stimulus nontarget, then lead x and the incident phase locking value of leading between the y can be obtained by formula (1-6):
Wherein, the value of n and m is the positive integer more than or equal to 1.
The distance coefficient matrix D ist of definition between respectively leading, for two lead x and y arbitrarily, its distance coefficient matrix D ist:
According to the distance coefficient matrix D ist between respectively leading, the phase synchronism intensity Wg that respectively leads of definition, for any one x that leads, its phase synchronism intensity is:
102: the distance coefficient matrix according between respectively leading, obtain clustering tree by the hierarchical clustering method;
Wherein, the hierarchical clustering method, claim the grade clustering procedure again, be to use at most, study one of clustering method the most fully at present, its basic thought is the distance coefficient matrix that also progressively upgrades between respectively leading by setting up, find out and merge immediate two classes, till whole cluster objects are merged into a class.The embodiment of the invention utilizes the method (also having bee-line method, longest distance method, gravity model appoach and the class method of average in addition) based on ward to carry out hierarchical clustering to leading, and obtains clustering tree.Fig. 4 is the structural representation of clustering tree, and wherein on behalf of difference, numeral 1,2,3,4,5 lead respectively, and ordinate is represented distance.Lines a leads 5 and is divided into 4 classes, wherein leads 1 and to lead 2 be a class, and other lead and respectively become a class; Lines b then leads 5 and is divided into 3 classes, wherein leads 1 and to lead 2 be a class, and leading 3 is a class, and leading 4 and 5 is a class; Lines c leads 5 and is divided into 3 classes, and wherein leading 1,2 and 3 is a class, and leading 4 and 5 is a class.
103: set up the importance ranking table that leads according to the clustering tree and the phase synchronism intensity of respectively leading;
For example: certain two lead x and y, record be of the reflection of same features sources at scalp, will there be a lot of similar features in the signal of lead so x and y, thereby can produce the feature redundancy.In other words, if utilized the x that leads exactly, the y that leads so with very little, that is to say that the importance of the y that leads has descended to the influence of last classification accuracy rate.Therefore, determine to reflect leading and the number of features sources of features sources, effective minimizing number that leads is had great significance.
Promptly, setting up the importance ranking table that leads according to clustering tree and the phase synchronism intensity of respectively leading is specially: suppose to have the individual eeg data that leads of L, obtain the clustering tree that a L leads, the activity that is provided with L-1 features sources be reflected in L lead on, by the intercepting clustering tree, individual leading of L is divided into the L-1 class, then exist one to comprise two classes of leading, be designated as the lead x and the y that leads, when the phase synchronism intensity of the x that leads during greater than the phase synchronism intensity of the y that leads, the x that then selects to lead gets rid of the y that leads (maybe when the phase synchronism intensity of the x that leads during smaller or equal to the phase synchronism intensity of the y that leads, the y that then selects to lead gets rid of the x that leads); The importance of the y that leads that gets rid of then comes L position (or the importance of the x that leads that gets rid of then comes the L position); Lead for remaining L-1, the activity that continues to be provided with L-2 features sources be reflected in L-1 lead on, by the intercepting clustering tree, individual leading of L-1 is divided into the L-2 class, then exist one to comprise two classes of leading, be designated as the lead x and the y that leads, when the phase synchronism intensity of the x that leads phase synchronism intensity greater than the y that leads, the x that then selects to lead gets rid of the y that leads (maybe when the phase synchronism intensity of the x that leads during smaller or equal to the phase synchronism intensity of the y that leads, the y that then selects to lead gets rid of the x that leads); The importance of the y that leads that gets rid of then comes L-1 position (or the importance of the x that leads that gets rid of then comes the L position); By that analogy, up to only surplus one lead till, remaining at last leads, and comes L-(L-1) position, obtains the importance ranking table that a L leads.
Suppose the eeg data that has 64 to lead, to have obtained one 64 clustering tree of leading through two steps in front.Because do not know brain inside have actually the activity in several characteristic source be reflected in these 64 lead on, so carry out the decision-making of inferring of features sources number.The first step, the activity that is provided with 63 features sources be reflected in 64 lead on, so, exist a redundancy to lead.In order to find this redundancy to lead, by intercepting clustering tree, 64 are led is divided into 63 classes.So, have so class, wherein contain two and lead, be designated as x and y, other classes then have only one to lead.Think that lead x and y is reflection to same features sources, therefore need make screening to it, and the foundation of selecting is exactly the phase synchronism intensity Wg that leads.Suppose to lead the phase synchronism intensity Wg of x greater than the phase synchronism intensity Wg of the y that leads, then select x to get rid of y.The importance of the y that leads that gets rid of then comes the 64th.Second step, lead for remaining 63, the activity that continues to be provided with 62 features sources be reflected in 63 lead on, so, exist a redundancy to lead.In order to find this redundancy to lead, by intercepting clustering tree, 63 are led is divided into 62 classes.So, have so class, wherein contain two and lead, be designated as x and y, other classes then have only one to lead.Think that lead x and y is reflection to same features sources, therefore need make screening to it.And the foundation of selecting is exactly the phase synchronism intensity Wg that leads.Suppose to lead the phase synchronism intensity Wg of x greater than the phase synchronism intensity Wg of the y that leads, then select x to get rid of y.The importance of the y that leads that gets rid of then comes the 63rd.By that analogy, up to only surplus one lead till, then last remaining that leads, its importance maximum is last, obtains one 64 importance ranking table that leads.
104: the importance ranking table that leads is carried out accuracy calculate, obtain L accuracy value;
Wherein, this step is specially carries out accuracy calculating to the data of leading of L-(L-1) position, obtains the first accuracy value A1; The data of leading of L-(L-1) position and L-(L-2) position are carried out accuracy calculate, obtain the second accuracy value A2; The data of leading of L-(L-1) position, L-(L-2) position and L-(L-3) position are carried out accuracy calculate, obtain the 3rd accuracy value A3; By that analogy, up to obtaining L accuracy value AL.
Wherein, accuracy is calculated as: carry out 5 folding cross validations calculating accuracy according to the eeg data of n goal stimulus target and the eeg data of m non-goal stimulus nontarget, be about to all data and be divided into 5 parts of B1, B2, B3, B4 and B5 at random, get B1 earlier as test sample book, other 4 piece of data are as training sample, the sorter of setting up with training sample goes to calculate the accuracy of test sample book B1, obtains accuracy value R1.Get B2, B3, B4 and B5 then successively as test sample book, other are training sample, obtain accuracy value R2, R3, R4 and R5 respectively.The mean value of getting these 5 accuracy values at last is the accuracy of 5 folding cross validations.Wherein, during specific implementation, also can carry out 6 folding cross validations according to the needs in the practical application and calculate accuracy, be about to all data and be divided into 6 parts of B1, B2, B3, B4, B5 and B6 at random, get B1 earlier as test sample book, other 5 piece of data are described in detail referring to above as training sample, do not repeat them here.
105: L accuracy value sorted, and the combination of leading that the accuracy value is the highest is as the optimum combination of leading, and exports the optimum combination of leading.
Wherein, can carry out from high to low or from low to high ordering L accuracy value, or adopt other sort method, during specific implementation, the embodiment of the invention does not limit this.
The feasibility of leading optimization method with an a kind of P300 brain-computer interface of simply verifying that the embodiment of the invention provides below, see hereinafter description for details:
A kind of P300 brain-computer interface that the application of the invention embodiment provides optimization method that leads, 64 of 5 experimenters are led be optimized, the result shows, keeping under the constant situation of accuracy (obtaining) by 3 stack eigenwerts, on average can reduce 46 leads, verify the feasibility of the method that the embodiment of the invention provides, satisfied the needs in the practical application.
In sum, the embodiment of the invention provides a kind of P300 brain-computer interface optimization method that leads, embodiment of the invention fusion event PLV and hierarchical clustering method, the features sources number is inferred decision-making, selecting the optimum combination of leading on this basis, is a kind of brand-new P300 brain-computer interface optimisation technique of leading; The embodiment of the invention can effectively reduce the redundancy of BCI system and lead, reduce the instability risk of BCI system, simplify procedures, online degree and its commercialization of promotion of improving the BCI system are offered help, can obtain considerable economic and social benefit in field of human-computer interaction.
It will be appreciated by those skilled in the art that accompanying drawing is the synoptic diagram of a preferred embodiment, the invention described above embodiment sequence number is not represented the quality of embodiment just to description.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.