EEG data user identity privacy information protection method based on data perturbation
By superimposing optimized perturbation δ on EEG data, the problem of reduced information content in existing EEG data privacy protection methods is solved, and user identity privacy is effectively protected without affecting task classification, thus improving the privacy and security of brain-computer interface systems.
Patent Information
- Application Number
- CN202310641473.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-29
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-05-29
AI Technical Summary
Existing technologies, in the process of protecting EEG data privacy, often reduce the amount of information in the data, affecting further analysis and research, and existing privacy protection methods are difficult to effectively protect user identity information.
By randomly initializing perturbation δ and superimposing it onto EEG data, an optimization iterative algorithm is used to minimize the differences in EEG task classification and user identity classification before and after the perturbation, generating an optimized perturbation δ. This ensures that the perturbation data does not affect task-related information while protecting user identity privacy.
It effectively protects user identity and privacy without reducing the amount of EEG data information, ensures the accuracy of EEG task classification, simplifies the perturbation generation process, and improves the privacy and security of the brain-computer interface system.
Smart Images

Figure CN116663055B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of brain-computer interface privacy protection technology, and more specifically, relates to a method for protecting user identity privacy information of EEG data based on data perturbation. Background Technology
[0002] Brain-computer interfaces (BCIs) establish a direct communication path between the brain and external devices (computers, wheelchairs, robots, etc.). They have been used in neurorehabilitation, active tactile exploration, robotic device control, consciousness assessment, speech synthesis, and cortical activity to text conversion. Electroencephalography (EEG), which measures brain signals from the scalp, is one of the primary input methods for BCIs due to its ease of use and low cost.
[0003] Machine learning has been widely used to identify complex EEG patterns in various brain-computer interface paradigms, such as motor imagery, event-related potentials, and emotion recognition. Sufficient EEG data is typically required to train accurate machine learning models. However, EEG data contains not only task-specific information but also a wealth of personal information. Existing literature has disclosed the ability to infer personal information such as credit card details, PIN codes, acquaintances, and residential addresses from EEG signals; other literature has pointed out potential privacy issues with consumer-facing neurotechnologies, including neural monitoring headsets and neuromodulation tools, and that resting-state EEG signals can infer user identity with 88.4% accuracy.
[0004] Beyond simple anonymization and data cleaning, existing technologies for EEG-based brain-computer interfaces employ various sophisticated privacy-preserving methods, primarily including cryptography and privacy-preserving machine learning. Cryptography typically includes homomorphic encryption, secure multi-party computation, and secure processors. Privacy-preserving machine learning involves performing machine learning without accessing the EEG data or model parameters. Typical methods include federated learning and passive domain transfer learning; for example, protecting user data privacy by passing model weights instead of EEG data; or performing privacy-preserving transfer learning in motion imagery classification without accessing the source domain EEG data or source domain model parameters.
[0005] While these methods can protect the privacy of EEG data, they also limit the further use of EEG data. For example, existing privacy-preserving machine learning methods typically do not provide the original EEG data that needs protection. Instead, they provide features or models based on the original EEG data, which greatly reduces the information content of the data and affects further analysis and research of EEG data. Summary of the Invention
[0006] In view of the shortcomings of existing technologies and the need for improvement, this invention provides a method for protecting user identity privacy information in EEG data based on data perturbation. Its purpose is to protect the privacy information contained in the data without reducing the amount of information in the original EEG data.
[0007] To achieve the above objectives, according to a first aspect of the present invention, a method for protecting user identity privacy information in EEG data based on data perturbation is provided, comprising a perturbation generation step:
[0008] EEG data is input into a trained feature classification model, which outputs a first EEG task classification and a first user identity classification. The feature classification model includes a feature extractor and an EEG task classifier and a user identity classifier, which are respectively connected to the output of the feature extractor.
[0009] A perturbation δ is randomly initialized and superimposed on the EEG data. The perturbation δ is then input into the feature classification model again to output the corresponding second EEG task classification and second user identity classification. The data dimension of the perturbation δ is consistent with the data dimension of the EEG data.
[0010] The objective functions are: minimizing the feature differences between the first EEG task classification and the second EEG task classification, and minimizing the cross-entropy loss between the second user identity classification and the user identity label u in the EEG data. An optimization iterative algorithm is used to solve the objective functions to obtain the optimized perturbation δ.
[0011] Furthermore, each EEG data point corresponds to a perturbation δ, and the objective function is:
[0012]
[0013] In the formula, l MSE (A,B) represents the root mean square error between A and B, l CE (A,B) represents the cross-entropy loss between A and B, H′ c (x) represents the first EEG task classification, H′ c (x+δ) represents the second EEG task classification, H′ d (x+δ) represents the second user identity classification, β is the hyperparameter of the balance loss, and ∈ represents the set maximum perturbation value.
[0014] Furthermore, the objective function is solved using projective gradient descent;
[0015] The optimized perturbation δ corresponding to each of the EEG data points h for:
[0016]
[0017] Where h = 1, ..., h iter h iter Let η be the number of iterations, and η be the gradient step size. The objective function is Proj. 0,∈ (·) indicates that the input is projected onto a plane centered at 0 with radius ∈. ∞ on the sphere.
[0018] Furthermore, each user in the EEG data corresponds to a perturbation δ, and the objective function is:
[0019]
[0020] Where δ=[δ1,…,δ U ], where U is the total number of users in the EEG data, δ u H′ is the general perturbation of the EEG data corresponding to user u. c (x) represents the first EEG task classification, H′ c (x+δ u H' represents the second EEG task classification. d (x+δ u ) represents the second user identity classification, β is the loss balance parameter, and γ is the regularization parameter.
[0021] Furthermore, the objective function is solved using the gradient descent method.
[0022] Furthermore, it also includes a perturbation update step:
[0023] S11. After superimposing the optimized perturbation δ onto the EEG data, it is input into the feature classification model again to train the feature classification model and obtain a new trained feature classification model.
[0024] S12. Repeat the perturbation generation step to obtain the updated optimized perturbation δ;
[0025] S13. Repeat S11-S12 until the set number of updates is reached, and use the resulting perturbation as the final optimized perturbation δ.
[0026] Furthermore, it also includes steps to protect user identity and privacy information:
[0027] After the optimized perturbation δ is superimposed on the EEG data, it is input into the feature classification model, and the EEG task classifier performs EEG task classification pattern prediction.
[0028] Furthermore, the feature classification model is trained using the EEG data as training samples, with labels for EEG task and user identity, respectively.
[0029] During training, the feature classification model is trained with the goal of minimizing the cross-entropy loss between the predicted output value of the EEG task classifier and the EEG task label, and minimizing the cross-entropy loss between the predicted output value of the user identity classifier and the user identity label. The parameters of the feature classification model are then adjusted in reverse to bring the loss to convergence.
[0030] According to another aspect of the present invention, an EEG data user identity privacy information protection system based on data perturbation is provided, including a computer-readable storage medium and a processor;
[0031] The computer-readable storage medium is used to store executable instructions;
[0032] The processor is configured to read executable instructions stored in the computer-readable storage medium and execute the method described in any of the first aspects.
[0033] According to another aspect of the invention, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the method as described in any of the first aspects.
[0034] In summary, the above-described technical solutions conceived in this invention can achieve the following beneficial effects:
[0035] (1) The EEG data user identity privacy information protection method based on data perturbation of the present invention randomly initializes a perturbation, and inputs the datasets before and after the perturbation into the trained feature classification model. The objective function is to minimize the difference loss between EEG task features before and after the perturbation and to minimize the irrelevance loss between the user identity information corresponding to the EEG data before and after the perturbation. The objective function is optimized and solved to obtain the optimized perturbation. By adding the optimized perturbation to the EEG data, the user identity privacy information inside the data is difficult to be mined, but the task-related information of the perturbation data is not affected. Therefore, it does not affect its normal use and research, and achieves the purpose of protecting the privacy information contained in the data without reducing the information content of the original EEG data.
[0036] (2) Furthermore, the perturbation generation method designed in this invention, based on each original EEG data to be protected, adds an optimized perturbation to each EEG data individually. This perturbation is highly correlated with the user identity, so that machine learning learns the perturbation pattern from the data rather than the actual user identity pattern. At the same time, by minimizing the impact of the perturbation on task-related information, its normal use in the main task is ensured, resulting in better identity privacy protection.
[0037] (3) Furthermore, the user-generated perturbation method designed in this invention designs a universal perturbation template for each user. Compared with sample-level perturbations, user-based perturbations are more convenient in practice. Only U perturbations need to be generated to make it difficult to mine the identity information of all EEG data. This method generates perturbations faster and is simpler and more convenient to apply in practice.
[0038] (4) Further, the obtained optimized perturbation is superimposed on the original EEG data to be protected as a new dataset to train the feature classification model, and the perturbation generation step is repeated to realize perturbation update. During the iteration process, the perturbed data will help the model learn the perturbation information, thus requiring the generation of more effective perturbations in the new round of iterations to meet the optimization goal. Therefore, as the number of iterations increases, the effectiveness of the perturbation can be improved.
[0039] In summary, this invention can protect the privacy information contained in EEG data without affecting the analysis and research of the data, thereby improving the privacy and security of brain-computer interface systems. Furthermore, it designs two perturbation generation methods from different levels. The first method generates a perturbation individually for each sample, which can hide the user's identity information in the corresponding data. The second method generates a perturbation for each user, which can be applied to all EEG data of that user, making it difficult to extract the user's identity information from all of their EEG data. Attached Figure Description
[0040] Figure 1 This is a flowchart of the EEG data user identity privacy information protection method based on data perturbation according to the present invention.
[0041] Figure 2 This is a comparative experimental diagram from an embodiment of the present invention. Detailed Implementation
[0042] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention. Furthermore, the technical features involved in the various embodiments of this invention described below can be combined with each other as long as they do not conflict with each other.
[0043] In this invention, the terms "first," "second," etc., used in the invention and accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0044] like Figure 1 As shown, the EEG data user identity privacy information protection method based on data perturbation of the present invention includes a perturbation generation step:
[0045] The original EEG data to be protected is input into the trained feature classification model, which outputs the corresponding first EEG task classification H. c ′(x) and the first user identity classification H′ d (x); where the feature classification model includes a feature extractor F′, and an EEG task classifier C′ and a user identity classifier D′ connected to the output of the feature extractor respectively; the feature extractor F′ is used to extract features of the original EEG data to be protected, the EEG task classifier C′ is used to classify the EEG task in the EEG data features, and the user identity classifier D′ is used to classify the user identity in the EEG data features;
[0046] The perturbation δ is randomly initialized and superimposed on the original EEG data to be protected. Then, it is input into the trained feature classification model to output the corresponding second EEG task classification and second user identity classification. The data dimension of the perturbation δ is consistent with the data dimension of the original EEG data to be protected.
[0047] With the goal of minimizing the feature differences between the first EEG task classification and the second EEG task classification, and minimizing the cross-entropy loss between the second user identity classification and the user identity labels in the original EEG data to be protected, an optimization iterative algorithm is used to solve for the optimized perturbation δ.
[0048] Specifically, the impact of perturbations on task-related and user identity-related information in the data is first evaluated by training a feature classification model. This model includes a feature extractor F′, an EEG task classifier C′, and a user identity classifier D′. This feature classification model is represented as... and These are used to map the input space to the label space, respectively.
[0049] During training, the original EEG data to be protected is used as the dataset. in, This indicates the i-th EEG data point with c sampling channels and t sampling points. Indicates EEG task tags, This represents the user identity label of the EEG data; N represents the total number of EEG data, K represents the total number of labels for the EEG task, and U represents the total number of users of the EEG data.
[0050] Dataset The input is fed into a feature classification model, which is then trained. During training, the objectives are to minimize the cross-entropy loss between the predicted output value of the EEG task classifier C′ and the EEG task label y, and to minimize the cross-entropy loss between the predicted output value of the user identity classifier D′ and the user identity label u. The model is trained and its parameters are then adjusted in reverse to bring the loss to convergence. Specifically, the loss function during training is:
[0051]
[0052] In formula (1), l CE (A,B) represents the cross-entropy loss between A and B, where α is a hyperparameter that balances the two losses and is chosen empirically. H′ c (x) represents the predicted output value of the EEG task classifier C′, which is also the first EEG task classification, H′. d (x) is the predicted output value of the user identity classifier D′, which is also the first user identity classification.
[0053] Specifically, the aforementioned applied disturbance δ can be a disturbance δ generated for each original EEG data to be protected, or a disturbance δ generated for each user, with all data of that user corresponding to the same disturbance δ.
[0054] The first type of perturbation: Based on each original EEG data to be protected, a perturbation is generated. A corresponding perturbation δ is generated for each original EEG data to be protected. The objective function shown in the following formula (2) is constructed, and the optimized perturbation δ is obtained by solving the objective function:
[0055]
[0056] In the formula, l MSE (A,B) represents the root mean square error between A and B, β is the hyperparameter of the balancing loss, and H′ c (x+δ) represents the expression for each EEG data x i After applying the corresponding initial perturbation δ, the data is input into the trained feature classification model. The EEG task classifier C′ predicts and outputs the second EEG task classification, H′. d (x+δ) represents the expression for each EEG data x i After applying the corresponding initial perturbation δ, the data is input into the trained feature classification model, and the user identity classifier D′ predicts the second user identity classification.
[0057] ‖δ‖ ∞ ≤∈ represents the corresponding constraint condition, and ∈ represents the maximum amplitude of the disturbance, which is determined based on experience.
[0058] The first term in formula (2) represents the impact of the perturbation δ on task-related information, while the second term enhances the correlation between the perturbation δ and the user identity u. In this embodiment of the invention, the objective function is solved iteratively using the projection gradient descent method in the first-order optimization approach. In other embodiments, other corresponding optimization methods can also be used to solve the problem.
[0059] In this embodiment of the invention, the objective function is solved iteratively to obtain each EEG data x. i The disturbance to be applied δ h for:
[0060]
[0061] Where h = 1, ..., h iter h iter Let ξ∈Uniform(-∈,∈) be the randomly initialized perturbation, and η be the gradient step size. It is the objective function in formula (2); Proj 0,∈ (·) indicates that the input is projected onto a plane centered at 0 with radius ∈. ∞ on the sphere.
[0062] The second type of perturbation: Based on user-generated perturbation, a perturbation δ is generated for each user, and all data of that user corresponds to the same perturbation δ. The optimized perturbation δ is obtained by constructing the objective function shown in the following formula (4) and solving the objective function, where δ=[δ1,…,δ U ]:
[0063]
[0064] Where, δ u It is a general perturbation for the EEG data corresponding to user u, β is the loss balance parameter, γ is the regularization parameter, and U is the total number of users in the EEG data.
[0065] Among them, H′ c (x+δ u ),H′ d (x+δ u ) represent the second EEG task classification and the second user identity classification corresponding to each user in the EEG data when each user corresponds to a perturbation δ.
[0066] The first two terms in formula (4) have the same physical meaning as those in formula (2). The third term is used to constrain the amplitude of the disturbance. The second norm constraint on the amplitude of the disturbance will prevent the disturbance from being too large and interfering with the characteristics of the EEG data itself.
[0067] In this embodiment of the invention, gradient descent is used to solve the above objective function to optimize δ=[δ1,…,δ U In other embodiments, other optimization algorithms, such as projective gradient descent, can also be used to solve the problem.
[0068] As a further design of the present invention, in order to improve the effectiveness of the perturbation δ, the method of the present invention further includes a perturbation update step:
[0069] S11. The obtained optimized perturbation δ is superimposed on the original EEG data to be protected as a new dataset. The input is fed into the feature classification model for further training, and the trained model serves as the new feature classification model; where δ is the perturbation designed for each EEG data point. i Or a perturbation δ designed for each user u ;
[0070] S12. Repeat the above perturbation generation steps to obtain the updated optimized perturbation δ;
[0071] S13. Repeat steps S11-S12 until the perturbation update is repeated a set number of times. The final generated perturbation δ is used as the final optimized perturbation δ.
[0072] Specifically, in this embodiment of the invention, for the first perturbation generation method, the feature classification model is first trained for L cycles using formula (1), and then the optimized perturbation δ is obtained using formula (3). This perturbation is then superimposed on the dataset. On all EEG data, again in the dataset The feature classification model is trained, and the perturbation is optimized and updated again. This process is repeated M times until the final dataset is obtained. This refers to the EEG dataset, which protects users' identity and privacy information.
[0073] The method of this invention also includes a user identity privacy information protection step: the obtained optimized perturbation δ is superimposed on the original EEG data to be protected, as the final dataset. Where x′ i =x i +δ, input into the trained feature classification model, the EEG task classifier C′ can accurately predict the corresponding EEG task classification pattern, while the user identity classifier D′ has difficulty learning user identity information from it, thus achieving the protection of user identity privacy information.
[0074] Specifically, such as Figure 2As shown in the embodiment of the present invention, a brain-computer interface system based on motor imagery is used as an example (using EEG data to partition the motor imagery of the left hand, right hand, feet and tongue in the brain). Under the same experimental conditions, experiments are conducted in a feature classification model using datasets before and after perturbation.
[0075] It can be seen that the dataset before the perturbation was applied... Train and test the feature classification model; apply perturbation to the dataset. Where x′ i =x i +δ, where δ is the perturbation of the optimized design, is input into the feature classification model for training and testing. During the testing phase, the classifiers for both EEG tasks achieved similar accuracy rates in classifying motor imagery (55% and 54%). However, the dataset without the perturbation... The corresponding user identity classifier can accurately associate the test data with the original training data of the same user (88%), even with the perturbed dataset. The corresponding user identity classifier performed poorly (19%). That is, the dataset... Like datasets While training an EEG task classifier normally is possible, the user identity classifier struggles to learn user identity information from it. Therefore, the perturbed EEG data used in this invention protects user privacy while maintaining its original performance in the motor imagery task.
[0076] According to another aspect of the present invention, an EEG data user identity privacy information protection system based on data perturbation is provided, including a computer-readable storage medium and a processor;
[0077] Computer-readable storage media are used to store executable instructions;
[0078] The processor is used to read executable instructions stored in a computer-readable storage medium and execute the steps corresponding to the EEG data user identity privacy information protection method based on data perturbation in the above embodiments.
[0079] According to another aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the steps corresponding to the EEG data user identity privacy information protection method based on data perturbation in the above embodiments.
[0080] The present invention provides a method for protecting user identity privacy information in EEG data based on data perturbation. A perturbation is randomly initialized, and the datasets before and after the perturbation are input into a trained feature classification model. The objective is to minimize the difference loss between EEG task features before and after the perturbation, and to minimize the loss due to the lack of correlation between user identity information corresponding to EEG data before and after the perturbation. This objective function is optimized to obtain the optimized perturbation. By adding the optimized perturbation to the EEG data, the user identity privacy information within the data becomes difficult to extract, but the task-related information of the perturbated data is not affected. Therefore, it does not affect the normal use and research of the data, achieving the goal of protecting the privacy information contained in the data without reducing the information content of the original EEG data.
[0081] This invention designs two perturbations at different levels. The perturbation generation method, based on each original EEG data point to be protected, adds an optimized perturbation to each EEG data point individually. This perturbation is highly correlated with user identity, thus enabling machine learning to learn perturbation patterns rather than actual user identity patterns from the data. Simultaneously, by minimizing the impact of the perturbation on task-related information, its normal use in the main task is ensured. This approach achieves better identity privacy protection.
[0082] This invention designs a user-generated perturbation method, creating a universal perturbation template for each user. Compared to sample-level perturbations, user-based perturbations are more convenient in practice, requiring only U perturbations to make it difficult to mine the identity information of all EEG data. This method generates perturbations faster and is simpler and more convenient to apply in practice.
[0083] This invention presents a practical perturbation-based method for protecting EEG data privacy in brain-computer interfaces. The generated perturbations make it difficult to extract user identity and privacy information from the EEG data without compromising the EEG task information. This effectively protects user information in the EEG data, thereby improving the privacy and security of the brain-computer interface system. Simulation tests have verified the significant and stable effectiveness of this privacy protection method, demonstrating its suitability as a privacy protection approach for EEG data in practical brain-computer interface systems.
[0084] Those skilled in the art will readily understand that the above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for protecting user identity and privacy information in EEG data based on data perturbation, characterized in that, Including the disturbance generation step: EEG data is input into a trained feature classification model, which outputs a first EEG task classification and a first user identity classification. The feature classification model includes a feature extractor and an EEG task classifier and a user identity classifier, which are respectively connected to the output of the feature extractor. Random initialization perturbation and the disturbance After being superimposed on the EEG data, it is input again into the feature classification model, which outputs the corresponding second EEG task classification and second user identity classification; the perturbation The data dimensions are consistent with the EEG data dimensions; To minimize the feature differences between the first EEG task classification and the second EEG task classification, and to minimize the difference between the second user identity classification and the user identity labels in the EEG data. The cross-entropy loss is taken as the objective function. An optimization iterative algorithm is used to solve the objective function to obtain the optimized perturbation. ; Each EEG data point corresponds to a perturbation. The objective function is: In the formula, This represents the root mean square error between A and B. This represents the cross-entropy loss between A and B. This indicates the first EEG task classification. This indicates the second EEG task classification. This indicates the second user identity category. It is a hyperparameter for balancing the loss. This indicates the maximum set disturbance value.
2. The method according to claim 1, characterized in that, The objective function is solved using projective gradient descent. Optimized perturbation for each of the EEG data points for: in, , For the number of iterations, It is the gradient step size. The objective function is... This indicates projecting the input onto a surface centered at 0 with a radius of [missing information]. of on the sphere.
3. The method according to claim 1, characterized in that, Each user in the EEG data corresponds to a perturbation. The objective function is: in, , This represents the total number of users in the EEG data. User The general perturbation of the corresponding EEG data, This indicates the first EEG task classification. This indicates the second EEG task classification. This indicates the second user identity category. It is the loss balance parameter. It is the regularization parameter.
4. The method according to claim 3, characterized in that, The objective function is solved using the gradient descent method.
5. The method according to claim 1, characterized in that, It also includes a perturbation update step: S11, the optimized perturbation After being superimposed on the EEG data, it is input again into the feature classification model to train the feature classification model and obtain a new trained feature classification model. S12. Repeat the perturbation generation step to obtain an updated optimized perturbation. ; S13. Repeat S11-S12 until the set number of updates is reached, and use the resulting perturbation as the final optimized perturbation. .
6. The method according to claim 1 or 5, characterized in that, It also includes steps to protect user identity and privacy information: The optimized perturbation After being superimposed on the EEG data, the data is input into the feature classification model, and the EEG task classifier performs EEG task classification pattern prediction.
7. The method according to claim 1, characterized in that, The feature classification model is trained using the EEG data as training samples, with labels for EEG task and user identity, respectively. During training, the feature classification model is trained with the goal of minimizing the cross-entropy loss between the predicted output value of the EEG task classifier and the EEG task label, and minimizing the cross-entropy loss between the predicted output value of the user identity classifier and the user identity label. The parameters of the feature classification model are then adjusted in reverse to bring the loss to convergence.
8. A system for protecting the privacy of EEG data users based on data perturbation, characterized in that, Includes computer-readable storage media and processors; The computer-readable storage medium is used to store executable instructions; The processor is configured to read executable instructions stored in the computer-readable storage medium and execute the method according to any one of claims 1-7.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-7.
Citation Information
Patent Citations
User authentication device suitable for brain-computer interface and authentication method thereof
CN110321691A
Privacy protection transfer learning method for motor imagery brain-computer interface
CN114358066A
