Multi-task self-supervised emotion recognition method based on ballistocardiogram signal
Through a multi-task self-supervised emotion recognition method based on cardiac shock signals, the problems of difficult data collection and poor robustness in emotion recognition are solved, more accurate emotion recognition and higher comfort are achieved, and the adaptability and adaptability of the model are enhanced. robustness.
Patent Information
- Application Number
- CN202410654627.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-09-10
AI Technical Summary
The existing technology has problems in emotion recognition, such as difficulty in data collection, psychological burden caused by the test environment, lack of annotated data and feature extraction challenges caused by the complexity of BCG signals, and poor robustness of fully supervised learning methods.
A multi-task self-supervised emotion recognition method based on cardiac shock signals is adopted, BCG signals are obtained through non-contact signal acquisition technology, signal preprocessing and data amplification are performed, a self-supervised multi-channel BCG representation learning network is constructed, and methods such as noise addition are used Generate training signals to achieve emotion recognition.
It improves the accuracy and comfort of emotion recognition, enhances the generalization ability of the network model, enables feature learning without explicit labels, and uses unlabeled signal data to improve the robustness and adaptability of emotion recognition. sex.
Smart Images

Figure CN118614923A
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of biotechnology and medical technology, and in particular to a multi-task self-supervised emotion recognition method based on cardiac impact signals. Background Art
[0002] With the rise of the human-computer interaction research boom, emotion recognition has attracted more and more researchers to join. Emotion recognition based on different physiological signals, different emotion induction methods, different feature extraction methods, and different classification methods has emerged in an endless stream, laying a solid foundation for the further development of emotion analysis and human-computer interaction. At present, common physiological signals used for emotion recognition research include electroencephalogram (EEG), electrocardiogram (ECG), pulse wave (PPG), electromyogram (EMG), galvanic skin response (GSR), respiration (RESP), skin temperature (SKT), electrooculogram (EOG), skin-electrodeimpedance (SEI) and blood pressure (BP).
[0003] The concept of ballistocardiogram (BCG) detection was proposed by Starr as early as 1950. The signal is a body vibration synchronized with the heartbeat caused by the heart beat and the blood circulation in the aorta. It is a non-contact real-time detection method of cardiac function. BCG has achieved remarkable research results in heart rate extraction and heart rate variability. Cao et al. used Hilbert-Huang transform to enhance and detect artifacts caused by human motion in BCG signals to assist in extracting heart rate. Liu et al. proposed a method to detect single heartbeat intervals from BCG of healthy subjects, laying the foundation for the exploration of emotion recognition based on BCG signals. Li et al. combined the unique characteristics of BCG signals, introduced them into the lie detection system and combined them with other non-sensing acquisition equipment to build a multi-channel lie detection system based on BCG signals. However, human emotional expression itself is a diversified process, and the information of a single modality may be defective due to the influence of subjective or external factors. The use of multiple modal BCG signals can achieve the effect of mutual complementation and promotion, which is more conducive to emotion recognition and classification. In addition, non-contact video monitoring methods can provide a more natural and comfortable way for BCG monitoring.
[0004] When emotion recognition is traditionally performed based on electrocardiogram, electroencephalogram, electrooculogram, and skin electrical response, data collection is difficult and the test environment can easily cause psychological burden to the subjects. Moreover, the complexity and diversity of BCG signals lead to a lack of a large amount of labeled data, and feature extraction and model training face considerable challenges. In addition, the fully supervised learning methods used by most machine learning or deep learning solutions based on emotion recognition have poor robustness. Summary of the invention
[0005] In view of the above-mentioned deficiencies of the prior art, the present invention introduces ballistocardiogram (BCG) signals into the field of emotion computing to replace traditional ECG signals, and proposes a multi-task self-supervised emotion recognition method based on ballistocardiogram signals, aiming to achieve more accurate emotion recognition.
[0006] The present invention proposes a multi-task self-supervised emotion recognition method based on cardiac impulse signal, which comprises the following steps:
[0007] Step 1: Use non-contact signal acquisition technology to collect the original BCG signal, perform signal preprocessing on the original BCG signal to obtain the basic BCG signal, and manually calibrate the original BCG signal to obtain the label BCG signal;
[0008] Step 2: Perform data amplification on the basic BCG signal to obtain several groups of BCG signals as training signals;
[0009] Step 3: Construct a self-supervised multi-channel BCG representation learning network;
[0010] Step 4: Use the training signal to pre-train the self-supervised multi-channel BCG representation learning network to obtain a trained self-supervised multi-channel BCG representation learning network;
[0011] Step 5: Construct a BCG emotion recognition network based on the trained self-supervised multi-channel BCG representation learning network, and use the label BCG signal to optimize the network parameters of the BCG emotion recognition network to obtain the optimized BCG emotion classification network;
[0012] Step 6: Collect the BCG signals of the subjects and perform data amplification, and input the obtained signals into the optimized BCG emotion classification network to obtain the emotion recognition and classification results of the BCG signals;
[0013] The method of collecting the original BCG signal by using the non-contact signal collection technology described in step 1 is: using a foil load weighing sensor as a sensor of the heart ballistic signal BCG, and implicitly deploying the foil load weighing sensor on the seat where the subject is located, so as to collect the original BCG signal in a way that the subject does not directly contact the sensor;
[0014] The labeled BCG signals in step 1 include: BCG signals labeled as mood, BCG signals labeled as passion, and BCG signals labeled as stress;
[0015] The signal preprocessing process in step 1 includes: using a high-pass IIR filter to remove the baseline drift in the original BCG signal to obtain a filtered BCG signal, using z-score standardization to standardize each filtered BCG signal to zero mean and unit variance, and dividing the standardized BCG signal according to a preset window size to obtain a basic BCG signal;
[0016] The method for data amplification of the basic BCG signal in step 2 is: performing signal transformation on the basic BCG signal by respectively adopting the methods of noise addition, scale transformation, negative transformation, time reversal, time distortion and disorder transformation, and then performing oversampling transformation on the transformed signal to obtain several groups of BCG signals;
[0017] The noise addition is as follows: generating random noise that obeys Gaussian distribution and adding it to the original BCG signal to obtain a group of BCG signals; the noise level of the random noise is controlled by setting the signal-to-noise ratio;
[0018] The scale transformation is: changing the amplitude of the basic BCG signal by setting a scaling factor to obtain a set of BCG signals;
[0019] The negative transformation is: taking a negative value for each sampling point in the basic BCG signal to obtain a set of BCG signals;
[0020] The time reversal is: reversing the time axis of the basic BCG signal to obtain a group of BCG signals;
[0021] The time warping is as follows: randomly selecting a number of segments from the basic BCG signal, and stretching or compressing the selected segments along the time axis to obtain a group of BCG signals;
[0022] The random transformation is as follows: dividing the basic BCG signal into a number of segments of uneven lengths, and randomly disrupting the time series of each segment and then rejoining them to obtain a group of BCG signals;
[0023] The oversampling transformation is as follows: defining an oversampling factor for indicating the oversampling multiple of the signal, sorting the sampling points in the transformed signal in order of density from low to high, selecting the first 20% of the sampling points in the sorting result as minority class samples, randomly selecting a sample from the minority class samples as the oversampling sample, using Euclidean distance to calculate the distance between the oversampling sample and other minority class samples except the oversampling sample, and sorting the other minority class samples except the oversampling sample in order of distance from small to large, selecting the first K minority class samples in the sorting result as K nearest neighbor samples of the oversampling sample, and respectively calculating the difference vectors between the oversampling sample and the K nearest neighbor samples; generating a random number r in the range of [0,1] as a random scale factor, respectively calculating the product of the random scale factor and the difference vector corresponding to each nearest neighbor sample, and generating a synthetic sample for the nearest neighbor sample by adding the product to the oversampling sample, and finally obtaining a set of BCG signals;
[0024] The self-supervised multi-channel BCG representation learning network described in step 3 adopts a multi-scale convolutional neural network MSCNN as a basic structure, including: a first convolution module, a first maximum pooling layer, a second convolution module, a second maximum pooling layer, a third convolution module, a global maximum pooling layer, a fully connected layer and n parallel classification branches connected in sequence;
[0025] The first convolution module, the second convolution module and the third convolution module all include: a first convolution layer, a first Relu layer, a second convolution layer, and a second Relu layer connected in series in sequence;
[0026] The classification branch includes a dense layer and a Sigmoid layer connected in series; each classification branch corresponds to a group of BCG signals in the training signal;
[0027] The pre-training process described in step 4 is as follows: for any group of BCG signals in the training signal, the BCG signal is input into the self-supervised multi-channel BCG representation learning network, the first convolution module is used to perform initial feature extraction and activation on the input BCG signal, and the first maximum pooling layer is used to perform maximum pooling on the obtained initial features to reduce the size of the initial features, and then the second convolution module is used to perform a second feature extraction and activation on the reduced initial features, and the second maximum pooling layer is used to perform maximum pooling on the obtained features, and then the third convolution module is used to perform a third feature extraction and activation on the obtained features, and the obtained features are globally pooled to obtain the features of the BCG signal, and then the features of the BCG signal are input into the fully connected layer, and the initial weights of all classification branches are made equal by initialization, and a classification branch is allocated to the BCG signal for feature learning, and the allocated classification branch is used to generate a signal transformation form label for the BCG signal as the target label for self-supervised learning, and a new weight is generated for the classification branch to complete one training; when all BCG signals in the training signal are trained, a trained self-supervised multi-channel BCG representation learning network is obtained;
[0028] The BCG emotion recognition network in step 5 adopts the same network structure as the self-supervised multi-channel BCG representation learning network, and replaces the n-way parallel classification branches in the self-supervised multi-channel BCG representation learning network with an output layer, which is composed of a dense layer and a Sigmoid layer connected in series, and is used to perform emotion recognition on the input BCG signal and generate labels to achieve three-classification of emotions;
[0029] The method for optimizing the network parameters of the BCG emotion recognition network using the labeled BCG signal described in step 5 is as follows: freeze the network parameters in the trained self-supervised multi-channel BCG representation learning network and use them as the initial network parameters in the BCG emotion recognition network, initialize the weights of the fully connected layer, set the learning rate, regularization parameter and dropout ratio; input the labeled BCG signal into the BCG emotion recognition network to predict emotion classification, use the cross entropy loss of the emotion classification task to calculate the error between the label and the predicted value of the labeled BCG signal, use the back propagation algorithm to update the weights of the fully connected layer to minimize the error, and obtain the optimized BCG emotion classification network;
[0030] The cross entropy loss for the sentiment classification task is:
[0031] Loss_CE(y,T)=-[(T*log(y)+(1-T)*log(1-y))]
[0032] Where Loss_CE(y,T) represents the error between the label and the predicted value of the label BCG signal, that is, the cross entropy loss of the emotion classification task; y represents the predicted value; T represents the label of the label BCG signal; and Loss_CE(y,T) is a non-positive value. The closer Loss_CE(y,T) is to 0, the more accurate the prediction of the BCG emotion recognition network.
[0033] The beneficial effects of adopting the above technical solution are:
[0034] The method of the present invention adopts a non-contact signal acquisition technology, abandons traditional electrode patches and contact vests, and uses foil load weighing sensors as sensors for BCG signals, which can capture biological signals without direct skin contact, eliminating the nervousness of the subjects, thereby improving the comfort of the subjects and the reliability of signal acquisition. In addition, the method of the present invention also focuses on the portability of the equipment, and designs a cushion with an integrated weighing sensor, which is lightweight and easy to carry, so that researchers and medical staff can more flexibly collect signals in different environments without sacrificing data quality, which has significant advantages for long-term monitoring, data collection in mobile scenarios, and telemedicine applications.
[0035] In terms of data processing, the method of the present invention introduces a self-supervised network to realize the three-classification of emotions. Self-supervised learning is a form of unsupervised learning. Its core idea is to train by automatically generating labels from the data itself through the model without manually labeling a large amount of data. Therefore, the self-supervised multi-channel BCG representation learning network and BCG emotion recognition network proposed in the method of the present invention can not only accurately extract meaningful information from the collected BCG signals, but also perform feature learning without the need for explicit labels, thereby enhancing the generalization ability and adaptability of the network model, helping to solve the problem of emotion data labeling, and effectively utilizing a large amount of unlabeled signal data.
[0036] The method of the present invention uses ballistocardiogram (BCG) signals to replace traditional ECG signals as input signals for emotion recognition. As an emerging physiological signal, BCG has the advantages of convenient collection and long-term non-destructive monitoring, and can provide a more portable solution for emotion recognition. The method of the present invention uses the BCG signal after signal transformation as the input signal for self-supervised representation learning, obtains the transformed BCG signal by adding noise and other methods, provides important supervision information for the self-supervised multi-channel BCG representation learning network, enriches the training signal of the network, makes the learned BCG feature representation more robust and effective, improves the network performance, and verifies the effectiveness of the self-supervised learning method based on BCG signals in emotion recognition through comparative experiments, and the self-supervised multi-channel BCG representation learning network can learn more effective feature representations, thereby achieving more accurate emotion recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 is a flow chart of a multi-task self-supervised emotion recognition method based on cardiac impulse signals in this embodiment;
[0038] Figure 2 Schematic diagram of a multi-task self-supervised emotion recognition method based on cardiac impulse signal in this embodiment;
[0039] Figure 3 This is a schematic diagram of constructing a BCG emotion recognition network based on a trained self-supervised multi-channel BCG representation learning network in this embodiment. DETAILED DESCRIPTION
[0040] In order to facilitate the understanding of the present application, the specific embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings and embodiments. The following embodiments are used to illustrate the present invention, but are not intended to limit the scope of the present invention. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present application more thoroughly understood.
[0041] A multi-task self-supervised emotion recognition method based on cardiac impulse signal in this embodiment is as follows: Figure 1 and Figure 2 As shown, the method comprises the following steps:
[0042] Step 1: Use non-contact signal acquisition technology to collect the original BCG signal, perform signal preprocessing on the original BCG signal to obtain the basic BCG signal, and manually calibrate the original BCG signal to obtain the label BCG signal.
[0043] The method for collecting raw BCG signals using non-contact signal acquisition technology is as follows: using a foil load weighing sensor as a ballistocardiogram (BCG) sensor, and implicitly deploying the foil load weighing sensor on the seat where the subject is located, so as to collect the raw BCG signal in a way that the subject does not directly contact the sensor.
[0044] Since traditional biosignal acquisition technology usually uses electrode patches or contact tight vests to collect the BCG signals of subjects, this method may cause nervousness in subjects in some cases, thereby interfering with the accurate acquisition of signals. In addition, traditional methods also have problems with difficult equipment maintenance and management and lack of portability. In order to overcome the above challenges, this embodiment proposes an innovative non-contact signal acquisition method based on advanced sensors and signal processing technology to improve the portability and recognition accuracy of the acquisition equipment. Using a seat cushion with an integrated weighing sensor to implicitly deploy the foil load weighing sensor on the seat can be inconspicuous to a certain extent, keep the signal sampling original, and prevent the acquisition method from affecting the subject's physiological indicators.
[0045] The labeled BCG signals include: a BCG signal labeled as mood, a BCG signal labeled as passion, and a BCG signal labeled as stress.
[0046] In this embodiment, the original BCG signal is manually calibrated according to the three categories of emotions. The three categories of emotions usually refer to the classification of emotions according to the speed, intensity and duration of the occurrence of emotions, including: mood, passion and stress; among them, mood is a weak, diffuse and persistent emotional state, that is, mood in the usual sense. Mood has no specific directionality, not only refers to a specific object, but is an emotional state that affects the entire mental activity of a person. Mood has the characteristics of diffusion and long-term nature. For example, when a student is praised by a teacher at school, the state of good mood may last for a period of time and affect the student's attitude experience towards the surrounding things. Passion is a fierce, rapid and short-lived emotional state, similar to excitement in the usual sense. Passion is an on-the-spot attack caused by an event or reason, and the emotional expression is fierce, but it does not last long and does not involve a wide range of people. Stress is a systemic nonspecific adaptive reaction that occurs when the body is stimulated by various internal and external environmental factors and social and psychological factors. It is also called a stress response. The most direct manifestation is mental tension, and the stimulus factor of stress is called a stressor. Stress is a high-speed, highly tense emotional state caused by unexpected, urgent and dangerous situations.
[0047] The signal preprocessing process includes: using a high-pass IIR filter to remove the baseline drift in the original BCG signal to obtain a filtered BCG signal, using z-score standardization to standardize each filtered BCG signal to zero mean and unit variance, and dividing the standardized BCG signal according to a preset window size to obtain a basic BCG signal.
[0048] In this embodiment, the original BCG signal is input into a high-pass infinite impulse response (IIR) filter with a passband frequency of 0.8 Hz to remove the baseline drift, and the filtered BCG signal is normalized to a user-specific z-score, that is, the BCG signal of each user is normalized to zero mean and unit variance, and the normalized BCG signal is divided into fixed window sizes according to the selected window size of 10 seconds. The purpose is to restore the basic signal
[0049] Step 2: Perform data amplification on the basic BCG signal to obtain several groups of BCG signals as training signals.
[0050] The method for data amplification of the basic BCG signal is: the basic BCG signal is transformed by noise addition, scale transformation, negative transformation, time reversal, time distortion and disorder transformation, and then the transformed signal is oversampled to obtain a plurality of groups of BCG signals.
[0051] The noise addition is as follows: generating random noise that obeys Gaussian distribution and adding it to the original BCG signal to obtain a group of BCG signals; the noise level of the random noise is controlled by setting the signal-to-noise ratio;
[0052] In this embodiment, Gaussian distributed random noise is used to add randomness to the basic BCG signal, and the noise level of the random noise is controlled by setting the signal-to-noise ratio to achieve the effect of amplifying the data.
[0053] The scale transformation is: changing the amplitude of the basic BCG signal by setting a scaling factor to obtain a group of BCG signals.
[0054] In this embodiment, the amplitude of the basic BCG signal is adjusted by a manually set scaling factor to increase the robustness of the subsequent model to changes in signal amplitude.
[0055] The negative transformation is: taking a negative value for each sampling point in the basic BCG signal to obtain a group of BCG signals.
[0056] In this embodiment, each sampling point in the basic BCG signal is negatively valued to achieve spatial inversion of the signal, thereby introducing spatial differences into the basic BCG signal.
[0057] The time reversal is: reversing the time axis of the basic BCG signal to obtain a group of BCG signals.
[0058] In this embodiment, the time axis of the basic BCG signal is reversed to change the time relationship of the signal, thereby increasing the learning of the timing features in the basic BCG signal.
[0059] The time warping is as follows: a number of segments are randomly selected from the basic BCG signal, and the selected segments are stretched or compressed along the time axis to obtain a group of BCG signals.
[0060] In this embodiment, a portion of the basic BCG signal is randomly selected and stretched or compressed along the time axis, thereby destroying the original rhythm of the signal to improve the subsequent model's understanding of the time dynamics.
[0061] The random transformation is as follows: dividing the basic BCG signal into a number of segments of uneven lengths, and randomly disrupting the time series of each segment and then rejoining them to obtain a group of BCG signals.
[0062] In this embodiment, the basic BCG signal is divided into a number of segments of uneven lengths, and the time series of each segment is randomly disrupted to destroy the original time relationship and introduce more time series changes into the basic BCG signal.
[0063] The oversampling transformation is as follows: defining an oversampling factor for indicating the oversampling multiple of a signal, sorting the sampling points in the transformed signal in order of density from low to high, selecting the first 20% of the sampling points in the sorting result as minority class samples, randomly selecting a sample from the minority class samples as an oversampling sample, using Euclidean distance to calculate the distance between the oversampling sample and other minority class samples except the oversampling sample, and sorting the other minority class samples except the oversampling sample in order of distance from small to large, selecting the first K minority class samples in the sorting result as K nearest neighbor samples of the oversampling sample, and respectively calculating the difference vectors between the oversampling sample and the K nearest neighbor samples; generating a random number r in the range of [0,1] as a random scale factor, respectively calculating the product of the random scale factor and the difference vector corresponding to each nearest neighbor sample, and generating a synthetic sample for the nearest neighbor sample by adding the product to the oversampling sample, and finally obtaining a group of BCG signals.
[0064] In this embodiment, if the sampling points in the current BCG signal are too discrete, the signal becomes relatively inaccurate compared to the real world. The significance of oversampling is to calculate the possible value of the vacancy between two sampling points through mathematical methods, and make the data dense by adding new sampling points. Therefore, when the window time is the same, the fewer the number of samples, the longer the distance between each sampling point will be. At this time, the signal needs to be oversampled. The synthetic minority oversampling technique (SMOTE) is used to perform oversampling transformation on the changed signal. First, the Euclidean distance between a specific minority sample point and all other minority sample points is calculated. Then, the obtained distance is sorted to find the K neighbors closest to the specific minority sample point as the K nearest neighbor samples of the point. The purpose of selecting the nearest neighbor sample is to ensure that the generated new sample can maintain the intrinsic characteristic distribution of the data and avoid introducing too much noise or deviation. The above method can make the synthetic samples reasonably distributed in the original data feature space, which helps to improve the effect of the classifier in processing unbalanced data. Assuming that the sample points on both sides of any sample point are a and b, and the random number is r, then the weights assigned to the sample points on both sides of the sample point are r and 1-r, and the generated sampling point value is a*r+b*(1-r), completing one oversampling.
[0065] Step 3: Build a self-supervised multi-channel BCG representation learning network.
[0066] The self-supervised multi-channel BCG representation learning network adopts a multi-scale convolutional neural network (MSCNN) as the basic structure, including: a first convolution module, a first maximum pooling layer, a second convolution module, a second maximum pooling layer, a third convolution module, a global maximum pooling layer, a fully connected layer and n parallel classification branches connected in sequence.
[0067] The first convolution module, the second convolution module and the third convolution module all include: a first convolution layer, a first Relu layer, a second convolution layer, and a second Relu layer connected in series in sequence.
[0068] The classification branch includes a dense layer and a Sigmoid layer connected in series; each classification branch corresponds to a group of BCG signals in the training signal.
[0069] In this embodiment, if Figure 3As shown in the figure, a variant of convolutional neural network, namely MSCNN, is used to process BCG signals. Different aspects of the signal are captured by feature extraction at different levels. MSCNN extracts features from multiple scales simultaneously by using convolution kernels of different sizes in parallel within the same layer, that is, extracts time and frequency features through multiple layers of convolution and pooling layers to capture information at different time scales from subtle to macroscopic, thereby capturing the characteristics of ECG signals more comprehensively. Then, a fully connected layer is used to generate high-level representations. MSCNN helps to effectively identify and analyze different waveform components in BCG signals.
[0070] Step 4: Use the training signal to pre-train the self-supervised multi-channel BCG representation learning network to obtain a trained self-supervised multi-channel BCG representation learning network;
[0071] The pre-training process is as follows: for any group of BCG signals in the training signal, the BCG signal is input into the self-supervised multi-channel BCG representation learning network, the first convolution module is used to perform initial feature extraction and activation on the input BCG signal, and the first maximum pooling layer is used to perform maximum pooling on the obtained initial features to reduce the size of the initial features, and then the second convolution module is used to perform a second feature extraction and activation on the reduced initial features, and the second maximum pooling layer is used to perform maximum pooling on the obtained features, and then the third convolution module is used to perform a third feature extraction and activation on the obtained features, and the obtained features are globally pooled to obtain the features of the BCG signal, and then the features of the BCG signal are input into the fully connected layer, and the initial weights of all classification branches are made equal by initialization, and a classification branch is allocated to the BCG signal for feature learning, and the allocated classification branch is used to generate a signal transformation form label for the BCG signal as a target label for self-supervised learning, and a new weight is generated for the classification branch to complete one training; when all BCG signals in the training signal are trained, a trained self-supervised multi-channel BCG representation learning network is obtained.
[0072] In this embodiment, the training signal is input into the self-supervised multi-channel BCG representation learning network, and the primary feature extraction is first performed through a one-dimensional convolution layer and a ReLU activation function; then, the extracted features are processed by another two layers of convolution layers and ReLU activation to further enhance the feature expression. After each convolution and activation operation, the obtained features will pass through a pooling layer to reduce its spatial dimension, which is used to help the network model capture a wider range of features and reduce computational complexity. After multi-level feature extraction and pooling, the obtained features are directly passed to the fully connected layer and a multi-task learning architecture is adopted, aiming to achieve emotion classification and recognition of BCG signals under multiple different signal conversion forms at the same time in the future. Each classification branch corresponds to a specific signal conversion form, such as noise addition, scale transformation, and time reversal, so that the network specializes in processing the signal feature learning of a certain conversion form in each branch, thereby more effectively identifying different signal conversion forms.
[0073] Step 5: Build a BCG emotion recognition network based on the trained self-supervised multi-channel BCG representation learning network, and use the label BCG signal to optimize the network parameters of the BCG emotion recognition network to obtain the optimized BCG emotion classification network;
[0074] The BCG emotion recognition network adopts the same network structure as the self-supervised multi-channel BCG representation learning network, and replaces the n-way parallel classification branches in the self-supervised multi-channel BCG representation learning network with an output layer. The output layer consists of a dense layer and a Sigmoid layer connected in series, which is used to perform emotion recognition on the input BCG signal and generate labels to achieve three-category classification of emotions.
[0075] In this embodiment, the BCG emotion recognition network first receives the BCG representation learned in the self-supervised multi-channel BCG representation learning network in the previous stage. Specifically, the weights learned by the convolution layer are frozen, and then the new dense layer is trained using the labeled BCG signal for emotion classification. The convolution layer is similar to the convolution layer in the self-supervised multi-channel BCG representation learning network. The number of nodes in the fully connected layer is set according to the task requirements. The fully connected layer in this embodiment has 512 hidden nodes. The network parameters of the fully connected layer of the BCG emotion recognition network are not inherited from the fully connected layer of the supervised multi-channel BCG representation learning network, but are retrained using the labeled BCG signal. In the output layer, the sigmoid activation function is used to perform three-classification of emotions on the input BCG signal.
[0076] The method for optimizing the network parameters of the BCG emotion recognition network using the labeled BCG signal is as follows: freezing the network parameters in the trained self-supervised multi-channel BCG representation learning network and using them as the initial network parameters in the BCG emotion recognition network, initializing the weights of the fully connected layer, setting the learning rate, regularization parameter and dropout ratio; inputting the labeled BCG signal into the BCG emotion recognition network for emotion classification prediction, using the cross entropy loss of the emotion classification task to calculate the error between the label and the predicted value of the labeled BCG signal, using the back propagation algorithm to update the weights of the fully connected layer to minimize the error, and obtaining an optimized BCG emotion classification network.
[0077] The cross entropy loss for the sentiment classification task is:
[0078] Loss_CE(y,T)=-[(T*log(y)+(1-T)*log(1-y))]
[0079] Where Loss_CE(y,T) represents the error between the label and the predicted value of the label BCG signal; y represents the predicted value; T represents the label of the label BCG signal; and Loss_CE(y,T) is a non-positive value. The closer Loss_CE(y,T) is to 0, the more accurate the prediction of the BCG emotion recognition network.
[0080] In this embodiment, by freezing the network parameters in the trained self-supervised multi-channel BCG representation learning network, the pre-trained features can be kept intact to ensure the generalization ability of the network model and improve the training speed. Only the unfrozen part of the network needs to be trained to complete the network parameter optimization, reducing the risk of overfitting. In the early training stage of the emotion recognition network, a self-supervised learning method is used to learn universal and robust feature representations from unlabeled electrocardiogram data, that is, different signal transformation tasks such as noise addition, scaling, time distortion, etc. are used to train the self-supervised model. The labels generated by the above signal transformation tasks are automatically generated instead of manually labeled, so that the self-supervised model can learn powerful feature representations by predicting these transformations without manual labeling.
[0081] In this embodiment, fine-tuning of the fully connected layer is achieved by updating the weights of the fully connected layer. In deep learning, fine-tuning usually refers to the process of performing additional training for a specific task on the basis of a pre-trained model to adjust the model parameters. The adjustment is automatically completed through training data rather than manually set. For the BCG emotion recognition network, although the weights of the convolutional layer are frozen to retain the learned feature extraction capabilities, the weights of the fully connected layer are adjusted according to the task objectives of emotion classification, that is, by loading the label BCG signal and then running the back propagation algorithm to update the weights to minimize the loss function, namely the cross entropy loss. In the above update process, hyperparameters such as the learning rate, regularization parameter, and dropout ratio may be adjusted according to different input signals to optimize the performance of the model. In this embodiment, the learning rate is set to 0.001 to prevent over-adjustment of the learned features. After fine-tuning, the BCG emotion recognition network can more accurately recognize new BCG signals while maintaining the common features learned from the pre-trained self-supervised model.
[0082] In this embodiment, the early stopping method is used to control the iteration process, which prevents overfitting while maintaining the performance of the BCG emotion recognition network on unseen data as much as possible. If the accuracy or cross entropy loss of the network prediction does not improve significantly in multiple consecutive training rounds, the training process will stop. In addition, the performance target method can also be used to control the iteration process, that is, a maximum accuracy value is preset, and if it is not reached, the iteration continues until the maximum value is reached, but the performance target method is prone to overfitting.
[0083] Step 6: Collect the BCG signals of the subjects and perform data amplification, and input the obtained signals into the optimized BCG emotion classification network to obtain the emotion recognition and classification results of the BCG signals.
[0084] In this embodiment, a comparative experiment of emotion recognition was conducted using data sets of original BCG signals, oversampled BCG signals, and a combination of original BCG signals and oversampled BCG signals. The experimental results show that the emotion recognition accuracy of the original BCG signal is 78.15%. Through oversampling processing, the accuracy rate is increased to 79.65%, an increase of 1.5 percentage points. What is particularly significant is that, by combining the original BCG signal and the oversampled BCG signal, the emotion recognition accuracy rate is further increased to 81.26%, an increase of 3.11 percentage points relative to the original BCG signal. This result highlights the significant effect of the oversampling method in the field of emotion recognition.
[0085] Data analysis shows that oversampling contributes to the success in two key aspects. First, by increasing the number of minority class samples, the model can learn the characteristics of minority class samples more comprehensively, thereby improving the accurate recognition of these samples. Second, oversampling balances the category distribution of the dataset, allowing the model to focus more on minority class samples and effectively avoid over-reliance on majority class samples, thereby comprehensively enhancing emotion recognition performance.
[0086] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some or all of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope defined by the claims of the present invention.
Claims
1. A multi-task self-supervised emotion recognition method based on cardiac impulse signals, It is characterized in that The method comprises the following steps: Step 1: Use non-contact signal acquisition technology to collect the original BCG signal, perform signal preprocessing on the original BCG signal to obtain the basic BCG signal, and manually calibrate the original BCG signal to obtain the label BCG signal; Step 2: Perform data amplification on the basic BCG signal to obtain several groups of BCG signals as training signals; Step 3: Construct a self-supervised multi-channel BCG representation learning network; Step 4: Use the training signal to pre-train the self-supervised multi-channel BCG representation learning network to obtain a trained self-supervised multi-channel BCG representation learning network; Step 5: Construct a BCG emotion recognition network based on the trained self-supervised multi-channel BCG representation learning network, and use the label BCG signal to optimize the network parameters of the BCG emotion recognition network to obtain the optimized BCG emotion classification network; Step 6: Collect the BCG signals of the subjects and perform data amplification, and input the obtained signals into the optimized BCG emotion classification network to obtain the emotion recognition and classification results of the BCG signals.
2. According to claim 1, a multi-task self-supervised emotion recognition method based on heartbeat signal, It is characterized in that The method for collecting the original BCG signal using non-contact signal acquisition technology described in step 1 is: use a foil load weighing sensor as a sensor of the cardiac impact signal BCG, and implicitly deploy the foil load weighing sensor on the seat where the subject is located, so as to collect the original BCG signal in a way that the subject does not directly contact the sensor.
3. According to claim 1, a multi-task self-supervised emotion recognition method based on cardiac impulse signal, It is characterized in that The labeled BCG signals in step 1 include: a BCG signal labeled as mood, a BCG signal labeled as passion, and a BCG signal labeled as stress.
4. According to claim 1, a multi-task self-supervised emotion recognition method based on cardiac impulse signal, It is characterized in that The signal preprocessing process described in step 1 includes: using a high-pass IIR filter to remove the baseline drift in the original BCG signal to obtain a filtered BCG signal, using z-score standardization to standardize each filtered BCG signal to zero mean and unit variance, and dividing the standardized BCG signal according to a preset window size to obtain a basic BCG signal.
5. According to claim 1, a multi-task self-supervised emotion recognition method based on cardiac impulse signal, It is characterized in that The method for data amplification of the basic BCG signal in step 2 is: performing signal transformation on the basic BCG signal by respectively adopting the methods of noise addition, scale transformation, negative transformation, time reversal, time distortion and disorder transformation, and then performing oversampling transformation on the transformed signal to obtain several groups of BCG signals; The noise addition is as follows: generating random noise that obeys Gaussian distribution and adding it to the original BCG signal to obtain a group of BCG signals; the noise level of the random noise is controlled by setting the signal-to-noise ratio; The scale transformation is: changing the amplitude of the basic BCG signal by setting a scaling factor to obtain a set of BCG signals; The negative transformation is: taking a negative value for each sampling point in the basic BCG signal to obtain a set of BCG signals; The time reversal is: reversing the time axis of the basic BCG signal to obtain a group of BCG signals; The time warping is as follows: randomly selecting a number of segments from the basic BCG signal, and stretching or compressing the selected segments along the time axis to obtain a group of BCG signals; The random transformation is as follows: dividing the basic BCG signal into a number of segments of uneven lengths, and randomly disrupting the time series of each segment and then rejoining them to obtain a group of BCG signals; The oversampling transformation is as follows: defining an oversampling factor for indicating the oversampling multiple of a signal, sorting the sampling points in the transformed signal in order of density from low to high, selecting the first 20% of the sampling points in the sorting result as minority class samples, randomly selecting a sample from the minority class samples as an oversampling sample, using Euclidean distance to calculate the distance between the oversampling sample and other minority class samples except the oversampling sample, and sorting the other minority class samples except the oversampling sample in order of distance from small to large, selecting the first K minority class samples in the sorting result as K nearest neighbor samples of the oversampling sample, and respectively calculating the difference vectors between the oversampling sample and the K nearest neighbor samples; generating a random number r in the range of [0,1] as a random scale factor, respectively calculating the product of the random scale factor and the difference vector corresponding to each nearest neighbor sample, and generating a synthetic sample for the nearest neighbor sample by adding the product to the oversampling sample, and finally obtaining a group of BCG signals.
6. According to claim 1, a multi-task self-supervised emotion recognition method based on cardiac impulse signal, It is characterized in that The self-supervised multi-channel BCG representation learning network described in step 3 adopts a multi-scale convolutional neural network MSCNN as a basic structure, including: a first convolution module, a first maximum pooling layer, a second convolution module, a second maximum pooling layer, a third convolution module, a global maximum pooling layer, a fully connected layer and n parallel classification branches connected in sequence; The first convolution module, the second convolution module and the third convolution module all include: a first convolution layer, a first Relu layer, a second convolution layer, and a second Relu layer connected in series in sequence; The classification branch includes a dense layer and a Sigmoid layer connected in series; each classification branch corresponds to a group of BCG signals in the training signal.
7. According to claim 6, a multi-task self-supervised emotion recognition method based on heartbeat signal, It is characterized in that The pre-training process described in step 4 is as follows: for any group of BCG signals in the training signal, the BCG signal is input into the self-supervised multi-channel BCG representation learning network, the first convolution module is used to perform initial feature extraction and activation on the input BCG signal, and the first maximum pooling layer is used to perform maximum pooling on the obtained initial features to reduce the size of the initial features, and then the second convolution module is used to perform a second feature extraction and activation on the reduced initial features, and the second maximum pooling layer is used to perform maximum pooling on the obtained features, and then the third convolution module is used to perform a third feature extraction and activation on the obtained features, and the obtained features are globally pooled to obtain the features of the BCG signal, and then the features of the BCG signal are input into the fully connected layer, and the initial weights of all classification branches are made equal by initialization, and a classification branch is assigned to the BCG signal for feature learning, and the assigned classification branch is used to generate a signal transformation form label for the BCG signal as the target label for self-supervised learning, and a new weight is generated for the classification branch to complete one training; when all BCG signals in the training signal are trained, a trained self-supervised multi-channel BCG representation learning network is obtained.
8. According to claim 7, a multi-task self-supervised emotion recognition method based on cardiac impulse signal, It is characterized in that The BCG emotion recognition network described in step 5 adopts the same network structure as the self-supervised multi-channel BCG representation learning network, and replaces the n-way parallel classification branches in the self-supervised multi-channel BCG representation learning network with an output layer. The output layer is composed of a dense layer and a Sigmoid layer connected in series, which is used to perform emotion recognition on the input BCG signal and generate labels to achieve three-category classification of emotions.
9. According to claim 8, a multi-task self-supervised emotion recognition method based on cardiac impulse signal, It is characterized in that The method described in step 5 for optimizing the network parameters of the BCG emotion recognition network using the labeled BCG signal is as follows: freeze the network parameters in the trained self-supervised multi-channel BCG representation learning network and use them as the initial network parameters in the BCG emotion recognition network, initialize the weights of the fully connected layer, set the learning rate, regularization parameter and dropout ratio; input the labeled BCG signal into the BCG emotion recognition network for emotion classification prediction, use the cross entropy loss of the emotion classification task to calculate the error between the label and the predicted value of the labeled BCG signal, use the back propagation algorithm to update the weights of the fully connected layer to minimize the error, and obtain the optimized BCG emotion classification network.
10. A multi-task self-supervised emotion recognition method based on cardiopulmonary signal according to claim 9, It is characterized in that The cross entropy loss for the sentiment classification task is: Loss_CE(y,T)=-[(T*log(y)+(1-T)*log(1-y))] Where Loss_CE(y,T) represents the error between the label and the predicted value of the label BCG signal; y represents the predicted value; T represents the label of the label BCG signal; and Loss_CE(y,T) is a non-positive value. The closer Loss_CE(y,T) is to 0, the more accurate the prediction of the BCG emotion recognition network.
Citation Information
Cited By
Driver physiological and psychological state monitoring and evaluating system based on multi-modal fusion and incremental learning
CN122376109A
Driver physiological and psychological state continuous monitoring and intelligent evaluation method based on artificial intelligence
CN122398312A
