Data denoising method, data denoising device and electronic equipment

By manually denoising and annotating the original signal data and training the encoding and decoding module model, the problem of brainwave signal data noise in the steady-state visual evoked potential experiment was solved, efficient denoising of signal data was achieved, and the accuracy of the experiment was improved. accuracy.

CN118673307APending Publication Date: 2024-09-20NAT UNIV OF DEFENSE TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410759717.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

During the signal data acquisition process, there is noise interference, which affects the accuracy of the experiment. Especially in the steady-state visual evoked potential experiment, the brain wave signal data is difficult to effectively remove due to the influence of noise such as head movement.

Method used

Using the data denoising method, we obtain the original signal data for manual denoising processing to form standard signal data, label the data set, and use the five-fold cross-validation method to train the data denoising model composed of the encoding and decoding module to achieve denoising of the signal data. deal with.

Benefits of technology

It effectively removes the noise in the signal acquisition device, improves the cleanliness and accuracy of the signal data, and enables the data denoising model to be quickly and efficiently applied to the subsequent signal data denoising processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118673307A
    Figure CN118673307A
Patent Text Reader

Abstract

The invention relates to the field of signal processing, and discloses a data denoising method, a data denoising device and electronic equipment. The method comprises the following steps: acquiring original signal data; performing denoising processing on the original signal data according to the obtained denoising operation to obtain standard signal data; marking the original signal data by using the standard signal data to obtain a data set; inputting the data set into a to-be-trained data denoising model for training to obtain a data denoising model; and inputting the to-be-denoised signal data into the data denoising model to perform denoising processing on the to-be-denoised signal data, so that the signal data acquired by the signal acquisition device can be effectively and quickly removed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of signal processing, and in particular to a method, a data denoising device and an electronic device for data denoising. Background Art

[0002] In many fields, there is a need to collect relevant signal data as experimental data through signal acquisition devices, but because the signal data acquisition environment and the acquisition object often cannot meet ideal conditions, the collected signal data contains noise, which affects the accuracy of the experiment. For example, in the Steady-State Visual Evoked Potential Experiment (SSVEP), it is necessary to use a smart helmet to collect the subject's electroencephalogram (EEG) signal data, but because of the various experimental influences such as the subject's head movement, the collected EEG data contains certain noise.

[0003] Therefore, how to remove noise from the collected signal data is a problem that needs to be solved when collecting various types of signal data. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a method, a data denoising device and an electronic device for data denoising, so that the noise in the signal data collected by the signal acquisition device can be effectively removed.

[0005] In a first aspect, an embodiment of the present application provides a method for data denoising, the method comprising:

[0006] Get the original signal data;

[0007] Performing denoising processing on the original signal data according to the acquired denoising operation to obtain standard signal data;

[0008] Annotating the original signal data using the standard signal data to obtain a data set;

[0009] Inputting the data set into the data denoising model to be trained to obtain a data denoising model;

[0010] The signal data to be denoised is input into the data denoising model to perform denoising processing on the signal data to be denoised.

[0011] In some embodiments, the data denoising model to be trained includes an encoding module and a decoding module, and the step of inputting the data set into the data denoising model to be trained for training to obtain the data denoising model includes:

[0012] Inputting the data set into the encoding module so that the encoding module performs feature extraction, signal fitting and data size compression on the original signal data in the data set, wherein the signal fitting is used to fit the original signal data in the data set with the standard signal data;

[0013] Inputting the data output by the encoding module into the decoding module, so that the decoding module performs data size recovery and feature reconstruction on the data output by the encoding module to obtain reconstructed signal data;

[0014] Determine the loss function value of the data denoising model to be trained according to the reconstructed signal data and the standard signal data;

[0015] The model parameters of the data denoising model to be trained are iteratively updated according to the loss function value until an iteration termination condition is met to obtain the data denoising model.

[0016] In some embodiments, the encoding module includes a first feature extraction module, a first data size compression module, a second feature extraction module, a second data size compression module and a third feature extraction module connected in sequence, and the decoding module includes a first data size recovery module, a first feature reconstruction module, a second data size recovery module and a second feature reconstruction module connected in sequence, the size of the output data of the first feature extraction module and the second feature reconstruction module is the same, the size of the output data of the second feature extraction module and the first feature reconstruction module is the same, the input of the first data size recovery module is connected to the output of the third feature extraction module, the output of the second feature extraction module is jump-connected to the input of the first feature reconstruction module, and the output of the first feature extraction module is jump-connected to the input of the second feature reconstruction module.

[0017] In some embodiments, inputting the data set into the encoding module so that the encoding module performs feature extraction, signal fitting, and data size compression on the original signal data in the data set includes:

[0018] Inputting the original signal data into the encoding module;

[0019] The feature extraction and the signal fitting are performed on the respectively received data through the first feature extraction module, the second feature extraction module and the third feature extraction module respectively, and the data size compression is performed on the respectively received data through the first data size compression module and the second data size compression module respectively.

[0020] In some embodiments, the step of inputting the data output by the encoding module into the decoding module so that the decoding module performs data size recovery and feature reconstruction on the data output by the encoding module to obtain reconstructed signal data includes:

[0021] Inputting the data output by the third feature extraction module into the first data size recovery module, so that the first data size recovery module performs the data size recovery on the received data;

[0022] Inputting the output data of the second feature extraction module and the output data of the first data size recovery module into the first feature reconstruction module, so that the first feature reconstruction module performs feature reconstruction on the received data;

[0023] Inputting the output data of the first feature reconstruction module into the second data size recovery module, so that the second data size recovery module performs the data size recovery on the received data;

[0024] The output data of the first feature extraction module and the output data of the second data size recovery module are input to the second feature reconstruction module, so that the second feature reconstruction module performs feature reconstruction on the received data to obtain the reconstructed signal data.

[0025] In some embodiments, the decoding module further includes a fusion module. After the output data of the first feature extraction module and the output data of the second data size recovery module are inputted into the second feature reconstruction module so that the second feature reconstruction module performs feature reconstruction on the received data to obtain the reconstructed signal data, the method further includes:

[0026] Inputting the reconstructed signal data into the fusion module;

[0027] The reconstructed signal data is subjected to channel fusion by the fusion module, so that the number of data channels of the reconstructed signal data is the same as the number of data channels of the original signal data.

[0028] In some embodiments, the second data size recovery module includes a first size recovery sub-module and a second size recovery sub-module, the first size recovery sub-module is used to perform the data size recovery on the data received by the second data size recovery module, and the second size recovery sub-module is used to further perform data size recovery on the output data of the first size recovery sub-module, so that the size of the output data of the second data size recovery module is the same as the size of the output data of the first feature extraction module.

[0029] In some embodiments, inputting the data set into a data denoising model to be trained for training to obtain a data denoising model includes:

[0030] Based on a five-fold cross validation method, the data set is used to train the data denoising model to be trained to obtain the data denoising model.

[0031] In a second aspect, an embodiment of the present application provides a data denoising device, the device comprising:

[0032] An original signal data acquisition module, used for acquiring original signal data;

[0033] A standard signal data acquisition module, used for performing denoising processing on the original signal data according to the acquired denoising operation to acquire standard signal data;

[0034] A data set acquisition module, used to annotate the original signal data using the standard signal data to obtain a data set;

[0035] A model training module, used for inputting the data set into a data denoising model to be trained to obtain a data denoising model;

[0036] The denoising module is used to input the signal data to be denoised into the data denoising model to perform denoising processing on the signal data to be denoised.

[0037] In a third aspect, an embodiment of the present application provides an electronic device, including:

[0038] a memory configured to store instructions; and

[0039] The processor is configured to call the instruction from the memory and implement the method for data denoising provided in the first aspect of the embodiment of the present application when executing the instruction.

[0040] In an embodiment of the present application, the original signal data collected by the signal acquisition device is first manually denoised to obtain clean and noise-free standard signal data, and the original signal data is annotated using the standard signal data to obtain a data set for model training, and then the data set is used to train a denoising model for the training data to obtain a data denoising model. In subsequent applications, the data denoising model can directly denoise the signal to be denoised that is input therein, so that the signal data collected by the signal acquisition device can be effectively and quickly removed. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 is a flow chart of a method for data denoising provided in an embodiment of the present application;

[0042] Figure 2 Schematic diagram of the model structure of the data denoising model to be trained provided in an embodiment of the present application;

[0043] Figure 3 is a structural schematic diagram of a data denoising device provided in an embodiment of the present application;

[0044] Figure 4 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0046] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0047] In the following, in conjunction with the accompanying drawings, the method for data denoising, the data denoising device and the electronic device provided in the embodiments of the present application are described in detail through specific embodiments and their application scenarios.

[0048] See also Figure 1 , is a flow chart of a method for data denoising provided in an embodiment of the present application. In a first aspect, an embodiment of the present application provides a method for data denoising, including the following steps S100 to S500:

[0049] Step S100: Acquire original signal data.

[0050] The processor first needs to obtain the original signal data collected by the signal acquisition device as sample data for model training. The original signal data can contain as many kinds of noise as possible to enhance the generalization ability of the data denoising model obtained through training.

[0051] Specifically, in the steady-state visual evoked potential experiment, the smart helmet is used to collect the brain wave signal data of the subjects. In order to make the sample data for model training more representative, when the smart helmet collects the brain wave signal data of multiple subjects, the subjects can perform as many interfering actions as possible, so that the brain wave signal data collected by the smart helmet can include various noises such as electrooculography, electromyography, and head movement generated during the movement of the subjects in general experimental scenarios.

[0052] Step S200: performing denoising processing on the original signal data according to the acquired denoising operation to obtain standard signal data.

[0053] The technician needs to manually perform denoising on the acquired raw signal data, and the processor performs denoising on the raw signal data according to the denoising operation input by the technician to obtain clean, noise-free standard signal data for labeling the data set in the subsequent model training process. In some embodiments, the technician can also perform pre-processing similar to segmentation and screening on the raw signal data according to the type, length or other characteristics of the acquired raw signal data.

[0054] Specifically, in the steady-state visual evoked potential experiment, the technicians can first segment the original signal data collected by the smart helmet, if the original signal data is continuous time signal data, so that the original signal data is divided into multiple samples of unit time length, and then use the independent component analysis algorithm (ICA) to manually denoise the original signal data to obtain noise-free standard signal data.

[0055] Step S300: using standard signal data to annotate original signal data to obtain a data set.

[0056] The standard signal data obtained by manual denoising is used to annotate the original signal data to form a data set for model training.

[0057] Step S400: inputting the data set into the data denoising model to be trained to obtain a data denoising model.

[0058] The data set is used to train the data denoising model to be trained to obtain a data denoising model, and the data denoising model is used to perform denoising processing on the signal to be denoised collected by the subsequent signal collection device.

[0059] Step S500: inputting the signal data to be denoised into a data denoising model to perform denoising processing on the signal data to be denoised.

[0060] During the application process, the data denoising model can directly perform denoising on the signal to be denoised that is input therein, so that the signal data collected by the signal acquisition device can be effectively and quickly denoised.

[0061] The method for data denoising provided in the embodiment of the present application first performs manual denoising on the original signal data collected by the signal acquisition device to obtain clean and noise-free standard signal data, then uses the standard signal data to annotate the original signal data to obtain a data set for model training, and then uses the data set to train a denoising model for the training data to obtain a data denoising model. In the subsequent application process, the data denoising model can directly denoise the signal to be denoised that is input therein, so that the signal data collected by the signal acquisition device can be effectively and quickly removed.

[0062] In some embodiments, inputting a data set into a data denoising model to be trained for training to obtain a data denoising model includes:

[0063] Based on the five-fold cross validation method, the data set is used to train the training data denoising model to obtain the data denoising model.

[0064] 5-fold cross-validation is a model training and evaluation method that maximizes data utilization and reduces evaluation errors by dividing the dataset into five parts and training and evaluating the model multiple times under different training set-test set divisions. When using the dataset to train the training data denoising model, the entire dataset can be randomly shuffled and then evenly divided into five parts for five training and evaluations. Each time, a different part is selected as the test set for evaluation, and the remaining four parts are used as the training set for training. After the five training and evaluations are completed, the results of the five evaluations are summarized and averaged to obtain the final model evaluation indicators. These evaluation indicators may include accuracy, precision, recall, F1 score, etc., depending on the task of model training and the application scenario of the model.

[0065] Specifically, in the steady-state visual evoked potential experiment, the entire data set can be randomly shuffled first, and then the entire data set is divided into a training set and a test set at a ratio of 8:2, and a five-fold cross validation is performed directly on the training set. That is, the training set is divided into five parts, four of which are used for training each time, and the remaining part is used for evaluation. The test set obtained from the data set divided at a ratio of 8:2 is used for the final model evaluation after all training and evaluation are completed. The evaluation indicators of the model include the recognition accuracy of the model, that is, the similarity between the original signal data after model denoising and the standard signal data.

[0066] In some embodiments, the data denoising model to be trained includes an encoding module and a decoding module, and the data set is input into the data denoising model to be trained to obtain the data denoising model, including:

[0067] Inputting the data set into the encoding module so that the encoding module performs feature extraction, signal fitting and data size compression on the original signal data in the data set, wherein the signal fitting is used to fit the original signal data in the data set with the standard signal data;

[0068] Inputting the data output by the encoding module into the decoding module, so that the decoding module performs data size recovery and feature reconstruction on the data output by the encoding module to obtain reconstructed signal data;

[0069] Determine the loss function value of the denoising model of the data to be trained according to the reconstructed signal data and the standard signal data;

[0070] The model parameters of the training data denoising model are iteratively updated according to the loss function value until the iteration termination condition is met to obtain the data denoising model.

[0071] The specific structure of the data denoising model to be trained may include a coding module and a decoding module. Since the original signal data input into the denoising model to be trained is multi-channel signal data in many experimental scenarios, a coding module can be used in the model to extract features and compress the data size of the original signal data in the data set, and at the same time, the original signal data in the data set is used in the coding module to fit the standard signal data (those skilled in the art can understand that fitting the original signal data with the standard signal data is the work performed by the coding module in the training process of the data denoising model to be trained. After the model training is completed, the work performed by the coding module of the data denoising model, and the work corresponding to the above-mentioned signal fitting is the denoising process). That is, the coding module performs downsampling and compresses the size of the data, so that the features of the effective signal data are more concentrated, so as to accelerate the model training process.

[0072] Correspondingly, a decoding module is used in the data denoising model to be trained to restore the size of the signal data, and to reconstruct the features of the signal data to obtain the reconstructed signal data.

[0073] Specifically, in the case where the data denoising model needs to be used for denoising of the brain wave signal data collected in the steady-state visual evoked potential experiment, the basic architecture of the data denoising model to be trained can select the U-NET model widely used in the field of image data processing. The U-NET model is mainly composed of a coding layer, a decoding layer, and a bottleneck layer (segmentation layer). Since it is only necessary to remove noise from multi-channel signal data and reconstruct noise-free signal data, the data denoising model to be trained only needs to use the coding layer of the U-NET model as the above-mentioned coding module and the decoding layer as the above-mentioned decoding module, without the need for a bottleneck layer. It can be understood by those skilled in the art that since the resolution of image data is usually higher than the resolution of signal data, the U-NET model is used as a data denoising model for removing brain wave signal data. In the case of, it is necessary to reduce the depth of the model, and modify the parameters according to the characteristics of the brain wave signal to adapt to the needs of feature extraction in the signal data.

[0074] The reconstructed signal data output by the decoding module needs to be evaluated for fitting effect (denoising effect). The processor determines the loss function value of the data denoising model to be trained during a model iteration based on the reconstructed signal data and the standard signal data annotated as the data set. According to the loss function value, the parameters of the denoising model to be trained are iteratively updated until the iteration termination condition is met (such as the number of iterations reaches a preset threshold or the loss function value is less than the preset loss function value threshold), and the data denoising model to be trained is obtained.

[0075] In some embodiments, the loss function value of the data denoising model to be trained is determined by calculating the root mean square error between the reconstructed signal data and the standard signal data.

[0076] See also Figure 2 , is a schematic diagram of the model structure of the data denoising model to be trained provided in an embodiment of the present application.

[0077] In some embodiments, the encoding module includes a first feature extraction module 10, a first data size compression module 20, a second feature extraction module 30, a second data size compression module 40 and a third feature extraction module 50 connected in sequence, and the decoding module includes a first data size recovery module 60, a first feature reconstruction module 70, a second data size recovery module 80 and a second feature reconstruction module 90 connected in sequence, the size of the output data of the first feature extraction module 10 and the second feature reconstruction module 90 is the same, the size of the output data of the second feature extraction module 30 and the first feature reconstruction module 70 is the same, the input of the first data size recovery module 60 is connected to the output of the third feature extraction module 50, the output of the second feature extraction module 30 is jump-connected to the input of the first feature reconstruction module 70, and the output of the first feature extraction module 10 is jump-connected to the input of the second feature reconstruction module 90.

[0078] In the data denoising model to be trained, the encoding module can be specifically composed of three feature extraction modules and two data size compression modules, and each of the three feature extraction modules is connected by a data size compression module. According to the transmission order of data in the model, the last feature extraction module in the encoding module, that is, the third feature extraction module 50, is connected to the first data size recovery module 60 in the decoding module, and the decoding module also includes a first feature reconstruction module 70, a second data size recovery module 80 and a second feature reconstruction module 90.

[0079] In order to achieve the expected effect of feature reconstruction and size restoration of signal data, when designing the basic parameters of the model, the size of the output data of the first feature extraction module 10 and the second feature reconstruction module 90 needs to be the same, and the size of the output data of the second feature extraction module 30 and the first feature reconstruction module 70 also needs to be the same. At the same time, the output of the second feature extraction module 30 is jump-connected to the input of the first feature reconstruction module 70, and the output of the first feature extraction module 10 is jump-connected to the input of the second feature reconstruction module 90, so that the two feature reconstruction modules in the decoding module can comprehensively reconstruct the features of the signal data output by the second feature extraction module 30 and the first feature extraction module 10, thereby improving the effect of feature reconstruction.

[0080] Specifically, Figure 2 As shown, in the case where the data denoising model needs to be used for denoising processing of the EEG signal data collected in the steady-state visual evoked potential experiment, the first feature extraction module 10, the second feature extraction module 30 and the third feature extraction module 50 in the encoding module are all two-dimensional convolution modules, and the first feature reconstruction module 70 and the second feature reconstruction module 90 in the decoding module are also two-dimensional convolution modules. The three feature extraction modules in the encoding module and the two feature reconstruction modules in the decoding module all include a first convolution layer, a first regularization layer, a first activation layer, a second convolution layer, a second regularization layer and a second activation layer connected in sequence. The combination of these layers contained in the three feature extraction modules in the encoding module and the two feature reconstruction modules in the decoding module can gradually extract / reconstruct feature detail information. In the convolution process, the first convolution layer and the second convolution layer can identify and enhance important features in the signal, the first regularization layer and the second regularization layer can prevent the model from overfitting, and the first activation layer and the second activation layer can make the model have a stronger representation ability. It is worth noting that the first feature reconstruction module 70 and the second feature reconstruction module 90 can further enhance the details and quality of the signal through feature reconstruction, ensuring that noise is not reintroduced during the feature reconstruction process.

[0081] Take the first feature extraction module 10 as an example to describe the basic parameters in the module: In the first feature extraction module 10, the convolution kernel size of the first convolution layer is 3×3 (i.e. Figure 2 The corresponding parameter in is marked as: k3), the number of input channels of signal data is 1, and the number of output channels of signal data is 64 (i.e. Figure 2 The corresponding parameter annotation in is: 1×64), the padding size is 1 (i.e. Figure 2 The corresponding parameter annotation in is: padding = 1), the step size is 1 (i.e. Figure 2 Corresponding parameter annotation in: stride = 1); the number of input channels of the signal data of the first regularization layer is 64 (i.e. Figure 2 The corresponding parameter in is marked as 64); the convolution kernel size of the second convolution layer is 3×3 (i.e. Figure 2 The corresponding parameter in is marked as: k3), the number of input channels of signal data is 64, and the number of output channels of signal data is 64 (i.e. Figure 2 The corresponding parameter annotation in is: 64×64), the padding size is 1 (i.e. Figure 2 The corresponding parameter annotation in is: padding = 1), the step size is 1 (i.e. Figure 2 Corresponding parameter annotation in: stride = 1); the number of input channels of the signal data of the second regularization layer is 64 (i.e. Figure 2 The corresponding parameters in are marked as 64).

[0082] The first data size compression module 20 and the second data size compression module 40 in the encoding module are both a two-dimensional maximum pooling layer. The basic parameters in the module are described by taking the first data size compression module 20 as an example: the pooling kernel size of the first data size compression module 20 is 2×2 (i.e. Figure 2 The corresponding parameter in is marked as: k2), the step size is 1 (i.e. Figure 2 The corresponding parameter annotation in is: stride=1).

[0083] The first data size recovery module 60 and the second data size recovery module 80 in the decoding module are both two-dimensional deconvolution modules. The first data size recovery module 60 and the second data size recovery module 80 both include two-dimensional deconvolution layers and regularization layers connected in sequence.

[0084] The first data size recovery module 60 is used as an example to describe the basic parameters in the module: In the first data size recovery module 60, the convolution kernel size of the two-dimensional deconvolution layer is 2×2 (i.e. Figure 2 The corresponding parameter in is marked as: k2), the number of input channels of signal data is 256, and the number of output channels of signal data is 128 (i.e. Figure 2 The corresponding parameter annotation in is: 256×128), the step size is 1 (i.e. Figure 2Corresponding parameter annotation in: stride = 1); the number of input channels of the signal data of the regularization layer is 128 (i.e. Figure 2 The corresponding parameters in are marked 128).

[0085] In some embodiments, the data set is input into the encoding module so that the encoding module performs feature extraction, signal fitting, and data size compression on the raw signal data in the data set, including:

[0086] Inputting the original signal data into the encoding module;

[0087] The first feature extraction module 10, the second feature extraction module 30 and the third feature extraction module 50 are used to perform feature extraction and signal fitting on the respectively received data, and the first data size compression module 20 and the second data size compression module 40 are used to perform data size compression on the respectively received data.

[0088] When the encoding module performs feature extraction, signal fitting and data size compression on the original signal data in the data set, the first feature extraction module 10, the second feature extraction module 30 and the third feature extraction module 50 respectively perform feature extraction and signal fitting on the respectively received data, and the first data size compression module 20 and the second data size compression module 40 respectively perform data size compression on the respectively received data.

[0089] Specifically, the raw signal data with a data dimension of 1×17×200 (the number of data channels is 1 and the data size is 17×200) EEG) is subjected to feature extraction and signal fitting by the first feature extraction module 10. The data dimension of the signal data output by the first feature extraction module 10 is 64×17×200. The signal data output by the first feature extraction module 10 is input into the first data size compression module 20 for data size compression. The data dimension of the signal data output by the first data size compression module 20 is 64×8×100. The signal data output by the first data size compression module 20 is input into the second feature extraction module 30 for feature extraction and signal fitting. The data dimension of the signal data output by the second feature extraction module 30 is 128×8×100. The signal data output by the second feature extraction module 30 is input into the second data size compression module 40 for data size compression. The data dimension of the signal data output by the second data size compression module 40 is 128×4×50. The signal data output by the second data size compression module 40 is input into the third feature extraction module 50 for feature extraction and signal fitting. The data dimension of the signal data output by the third feature extraction module 50 is 256×4×50.

[0090] In some embodiments, the data output by the encoding module is input into the decoding module, so that the decoding module performs data size recovery and feature reconstruction on the data output by the encoding module to obtain reconstructed signal data, including:

[0091] Input the data output by the third feature extraction module 50 to the first data size recovery module 60, so that the first data size recovery module 60 recovers the data size of the received data;

[0092] The output data of the second feature extraction module 30 and the output data of the first data size recovery module 60 are input to the first feature reconstruction module 70, so that the first feature reconstruction module 70 performs feature reconstruction on the received data;

[0093] Input the output data of the first feature reconstruction module 70 to the second data size recovery module 80, so that the second data size recovery module 80 recovers the data size of the received data;

[0094] The output data of the first feature extraction module 10 and the output data of the second data size recovery module 80 are input to the second feature reconstruction module 90, so that the second feature reconstruction module 90 performs feature reconstruction on the received data to obtain reconstructed signal data.

[0095] When the decoding module performs data size recovery and feature reconstruction on the original signal data in the data set, the first data size recovery module 60 and the second data size recovery module 80 are used to recover the data sizes of the respective received data, and the first feature reconstruction module 70 and the second feature reconstruction module 90 are used to reconstruct the features of the respective received data.

[0096] Specifically, the signal data output by the third feature extraction module 50 with a data dimension of 256×4×50 is input into the first data size recovery module 60 for data size recovery. The data dimension of the signal data output by the first data size recovery module 60 is 128×8×100. The output data of the second feature extraction module 30 and the output data of the first data size recovery module 60 are input into the first feature reconstruction module 70 together, so that the first feature reconstruction module 70 performs feature reconstruction on the received data. The data dimension of the signal data output by the first feature reconstruction module 70 is 128×8×100. The output data of the first feature reconstruction module 70 is input into the second data size recovery module 80, so that the second data size recovery module 80 performs data size recovery on the received data. The data dimension of the signal data output by the second data size recovery module 80 is 64×17×200. The output data of the first feature extraction module 10 and the output data of the second data size recovery module 80 are input into the second feature reconstruction module 90 together, so that the second feature reconstruction module 90 performs feature reconstruction on the received data to obtain reconstructed signal data (Denoised EEG).

[0097] In some embodiments, the second data size recovery module 80 includes a first size recovery sub-module and a second size recovery sub-module. The first size recovery sub-module is used to perform data size recovery on the data received by the second data size recovery module 80, and the second size recovery sub-module is used to further perform data size recovery on the output data of the first size recovery sub-module, so that the size of the output data of the second data size recovery module 80 is the same as the size of the output data of the first feature extraction module 10.

[0098] In some cases, due to the design of the basic parameters of the model, the size of the data output by the second data size recovery module 80 is inconsistent with the size of the data output by the first feature extraction module 10. Exemplarily, the data dimension of the signal data output by the second data size recovery module 80 is 64×16×200, that is, the size of the output data is 16×200, which is inconsistent with the size of the data output by the first feature extraction module 10, 17×200.

[0099] Therefore, the second data size recovery module 80 can be designed to be composed of a first size recovery sub-module and a second size recovery sub-module. The first size recovery sub-module is used to perform data size recovery on the data received by the second data size recovery module 80, and the second size recovery sub-module is used to further perform data size recovery on the output data of the first size recovery sub-module to ensure that the size of the output data of the second data size recovery module 80 is the same as the size of the output data of the first feature extraction module 10.

[0100] Specifically, the second size restoration submodule is an expansion function F.pad, which expands 64×16×200 data to 64×17×200.

[0101] In some embodiments, the decoding module further includes a fusion module 91. After the output data of the first feature extraction module 10 and the output data of the second data size recovery module 80 are input to the second feature reconstruction module 90 so that the second feature reconstruction module 90 performs feature reconstruction on the received data to obtain reconstructed signal data, the method further includes:

[0102] Input the reconstructed signal data to the fusion module 91;

[0103] The reconstructed signal data is subjected to channel fusion by the fusion module 91 so that the number of data channels of the reconstructed signal data is the same as the number of data channels of the original signal data.

[0104] In some cases, due to the design of the basic parameters of the model, the number of data channels of the output data of the second feature reconstruction module 90 is inconsistent with the number of data channels of the original signal data (e.g. Figure 2 In the figure, the number of data channels of the reconstructed signal data output by the second feature reconstruction module 90 is 64, and the number of data channels of the original signal data is 1). Therefore, a fusion module 91 can be set at the end of the decoding module to perform channel fusion on the reconstructed signal data output by the second feature reconstruction module 90 so that the number of data channels of the reconstructed signal data is the same as the number of data channels of the original signal data, thereby completing the reconstruction process of the signal data.

[0105] Specifically, the fusion module is a convolution layer with a convolution kernel size of 3×3 (i.e. Figure 2 The corresponding parameter in is marked as: k3), the number of input channels of signal data is 64, and the number of output channels of signal data is 1 (i.e. Figure 2 The corresponding parameter annotation in is: 64×1), the step size is 1 (i.e. Figure 2 The corresponding parameter annotation in is: stride=1), the padding size is 1 (i.e. Figure 2 The corresponding parameter in is marked as: padding=1).

[0106] See also Figure 3 , is a structural diagram of a data denoising device provided in an embodiment of the present application. In a second aspect of the present application, a data denoising device 1000 is provided. The device 1000 includes:

[0107] The original signal data acquisition module 100 is used to acquire the original signal data;

[0108] The standard signal data acquisition module 200 is used to perform denoising processing on the original signal data according to the acquired denoising operation to obtain standard signal data;

[0109] The data set acquisition module 300 is used to annotate the original signal data using the standard signal data to obtain a data set;

[0110] The model training module 400 is used to input the data set into the data denoising model to be trained to obtain the data denoising model;

[0111] The denoising module 500 is used to input the signal data to be denoised into the data denoising model to perform denoising processing on the signal data to be denoised.

[0112] The data denoising device 1000 provided in the second aspect of the embodiment of the present application can implement each process implemented by the above method embodiment and achieve the same beneficial effects. To avoid repetition, it will not be described here.

[0113] See also Figure 4 , is a structural diagram of an electronic device provided in an embodiment of the present application. In a third aspect, an embodiment of the present application provides an electronic device 2000, including a processor 2001 and a memory 2002, the memory 2002 stores machine executable instructions that can be executed by the processor 2001, and the processor 2001 can execute the machine executable instructions to implement the above-mentioned method for data denoising.

[0114] A fourth aspect of an embodiment of the present application provides a machine-readable storage medium, on which instructions are stored. When the instructions are executed by a processor, the processor implements the above-mentioned method for data denoising.

[0115] In one embodiment of the present application, a computer program product is further provided, including a computer program, and when the computer program is executed by a processor, the method for data denoising according to the above embodiment is implemented.

[0116] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0117] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0118] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0119] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0120] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0121] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0122] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

[0123] In addition, various embodiments of the present invention may be arbitrarily combined, and as long as they do not violate the concept of the present invention, they should also be regarded as the contents disclosed by the present invention.

Claims

1. A method for data denoising, characterized in that: The method comprises: Get the original signal data; Performing denoising processing on the original signal data according to the acquired denoising operation to obtain standard signal data; Annotating the original signal data using the standard signal data to obtain a data set; Inputting the data set into the data denoising model to be trained to obtain a data denoising model; The signal data to be denoised is input into the data denoising model to perform denoising processing on the signal data to be denoised.

2. The method according to claim 1, characterized in that: The data denoising model to be trained includes an encoding module and a decoding module. The data set is input into the data denoising model to be trained for training to obtain a data denoising model, including: Inputting the data set into the encoding module so that the encoding module performs feature extraction, signal fitting and data size compression on the original signal data in the data set, wherein the signal fitting is used to fit the original signal data in the data set with the standard signal data; Inputting the data output by the encoding module into the decoding module, so that the decoding module performs data size recovery and feature reconstruction on the data output by the encoding module to obtain reconstructed signal data; Determine the loss function value of the data denoising model to be trained according to the reconstructed signal data and the standard signal data; The model parameters of the data denoising model to be trained are iteratively updated according to the loss function value until an iteration termination condition is met to obtain the data denoising model.

3. The method according to claim 2, characterized in that The encoding module includes a first feature extraction module, a first data size compression module, a second feature extraction module, a second data size compression module and a third feature extraction module connected in sequence; the decoding module includes a first data size recovery module, a first feature reconstruction module, a second data size recovery module and a second feature reconstruction module connected in sequence; the size of the output data of the first feature extraction module and the second feature reconstruction module are the same; the size of the output data of the second feature extraction module and the first feature reconstruction module are the same; the input of the first data size recovery module is connected to the output of the third feature extraction module; the output of the second feature extraction module is jump-connected to the input of the first feature reconstruction module; and the output of the first feature extraction module is jump-connected to the input of the second feature reconstruction module.

4. The method according to claim 3, characterized in that: The step of inputting the data set into the encoding module so that the encoding module performs feature extraction, signal fitting, and data size compression on the original signal data in the data set includes: Inputting the original signal data into the encoding module; The feature extraction and the signal fitting are performed on the respectively received data through the first feature extraction module, the second feature extraction module and the third feature extraction module respectively, and the data size compression is performed on the respectively received data through the first data size compression module and the second data size compression module respectively.

5. The method according to claim 3, characterized in that: The step of inputting the data output by the encoding module into the decoding module so that the decoding module performs data size recovery and feature reconstruction on the data output by the encoding module to obtain reconstructed signal data includes: Inputting the data output by the third feature extraction module into the first data size recovery module, so that the first data size recovery module performs the data size recovery on the received data; Inputting the output data of the second feature extraction module and the output data of the first data size recovery module into the first feature reconstruction module, so that the first feature reconstruction module performs feature reconstruction on the received data; Inputting the output data of the first feature reconstruction module into the second data size recovery module, so that the second data size recovery module performs the data size recovery on the received data; The output data of the first feature extraction module and the output data of the second data size recovery module are input to the second feature reconstruction module, so that the second feature reconstruction module performs feature reconstruction on the received data to obtain the reconstructed signal data.

6. The method according to claim 5, characterized in that The decoding module further includes a fusion module. After the output data of the first feature extraction module and the output data of the second data size recovery module are inputted into the second feature reconstruction module so that the second feature reconstruction module performs feature reconstruction on the received data to obtain the reconstructed signal data, the method further includes: Inputting the reconstructed signal data into the fusion module; The reconstructed signal data is subjected to channel fusion by the fusion module, so that the number of data channels of the reconstructed signal data is the same as the number of data channels of the original signal data.

7. The method according to claim 5, characterized in that The second data size recovery module includes a first size recovery sub-module and a second size recovery sub-module. The first size recovery sub-module is used to perform the data size recovery on the data received by the second data size recovery module, and the second size recovery sub-module is used to further perform data size recovery on the output data of the first size recovery sub-module, so that the size of the output data of the second data size recovery module is the same as the size of the output data of the first feature extraction module.

8. The method according to claim 1, characterized in that The step of inputting the data set into a data denoising model to be trained to obtain a data denoising model comprises: Based on a five-fold cross validation method, the data set is used to train the data denoising model to be trained to obtain the data denoising model.

9. A data denoising device, characterized in that: The device comprises: An original signal data acquisition module, used for acquiring original signal data; A standard signal data acquisition module, used for performing denoising processing on the original signal data according to the acquired denoising operation to acquire standard signal data; A data set acquisition module, used to annotate the original signal data using the standard signal data to obtain a data set; A model training module, used for inputting the data set into a data denoising model to be trained to obtain a data denoising model; The denoising module is used to input the signal data to be denoised into the data denoising model to perform denoising processing on the signal data to be denoised.

10. An electronic device, characterized in that: include: a memory configured to store instructions; as well as A processor is configured to call the instructions from the memory and implement the method for data denoising according to any one of claims 1 to 8 when executing the instructions.