Emotion monitoring system and method based on deep learning and brain wave morphological characteristics

Through the deep learning-based brainwave morphological feature method, the emotion and behavior prediction model is trained, which solves the problem of the inability to predict user behavior in the existing technology, realizes real-time monitoring of the user's emotional state and behavior prediction, and ensures safety.

CN118845009AActive Publication Date: 2024-10-29济南瑞特安防设备有限公司

Patent Information

Application Number
CN202410844063.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-10-29
Estimated Expiration
2044-06-26

AI Technical Summary

Technical Problem

Existing emotion monitoring systems can only identify the user's emotional state, but cannot predict their behavior, making it impossible to prevent and stop users before they engage in excessive behavior, which affects safety.

Method used

Using methods based on deep learning and brainwave morphological characteristics, by collecting brainwave training data, emotion label data, and behavior type label data, we train emotion classification models, emotion recognition models, and behavior prediction models to monitor users' emotional states in real time and predict them. behavior and take preventive measures before excessive behavior occurs.

Benefits of technology

It realizes real-time monitoring of users' emotional states and behavior prediction, and can prevent and block the excessive behavior of the person to be monitored before it is judged that the person to be monitored has acted, and protect the safety of the person to be monitored and the surrounding environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118845009A_ABST
    Figure CN118845009A_ABST
Patent Text Reader

Abstract

The invention discloses an emotion monitoring system and method based on deep learning and brain wave morphological characteristics, and relates to the technical field of emotion state monitoring. Brain wave training data, emotion label data and behavior type label data of each tester are collected in advance, and an emotion classification model, an emotion recognition model and a behavior prediction model are trained; in a real monitoring environment, brain wave monitoring data and behavior monitoring data of the to-be-monitored person are collected, a predicted emotion category and a predicted emotion state of the to-be-monitored person are obtained, predicted behaviors of the to-be-monitored person are output, and each behavior prediction model is finely adjusted; performing fine adjustment on each behavior prediction model repeatedly until a proper behavior prediction model is screened out; prevention and prevention can be carried out before the to-be-monitored person is judged to have an over-motivated behavior, so that the safety of the to-be-monitored person and the surrounding environment is protected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of emotional state monitoring, and in particular to an emotional state monitoring system and method based on deep learning and brain wave morphological characteristics. Background Art

[0002] Today, intelligent systems and human-computer interaction technologies are becoming increasingly popular. However, existing behavior prediction solutions often overlook a key factor: the user's emotional state. Emotional state is a reflection of a person's inner psychological state, which directly affects their decision-making, behavior, and experience. Therefore, in order to more accurately understand and predict user behavior, it is necessary to monitor the user's emotional state in real time.

[0003] The Chinese patent with publication number CN108073284A discloses a shopping system based on brainwave emotion recognition, including a brainwave acquisition module and a shopping recommendation system. The brainwave sensor is worn on the user's head, and the shopping recommendation system is deployed in the background of the e-commerce website. The brainwave sensor is used to detect the user's brainwaves, analyze and process, and recognize emotions. When a specific emotion is recognized, the shopping recommendation system obtains relevant data and accurately recommends products to the user. However, this aspect only recognizes the user's emotions, but fails to predict the user's behavior;

[0004] To this end, the present invention proposes an emotion monitoring system and method based on deep learning and brain wave morphology characteristics. Summary of the invention

[0005] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes an emotion monitoring system and method based on deep learning and brain wave morphological characteristics, which can prevent and stop the monitored person from engaging in excessive behavior before it is determined that the monitored person has excessive behavior, thereby protecting the safety of the monitored person and the surrounding environment.

[0006] To achieve the above purpose, an emotion monitoring method based on deep learning and brain wave morphology characteristics is proposed, which includes the following steps:

[0007] Step 1: Collect brain wave training data, emotion label data and behavior type label data of each tester in advance in the experimental environment;

[0008] Step 2: Using the EEG training data as input and the emotion label data as output, train an emotion classification model that outputs predicted emotion categories; and based on the EEG training data, train an emotion recognition model that outputs predicted emotion states; for each tester, use the emotion label data and emotion state as input and the behavior type label data as output to train a behavior prediction model;

[0009] Step 3: In a real monitoring environment, collect brain wave monitoring data and behavior monitoring data of the person to be monitored;

[0010] Step 4: Based on the EEG monitoring data and the emotion classification model, obtain the predicted emotion category of the person to be monitored; based on the EEG monitoring data and the emotion recognition model, obtain the predicted emotional state of the person to be monitored;

[0011] Step 5: Based on the predicted emotion category and predicted emotional state of the person to be monitored and the behavior prediction model of the test person, the predicted behavior of the person to be monitored is output, and each behavior prediction model is fine-tuned;

[0012] Step 6: Repeat steps 3 to 5 until a suitable behavior prediction model is selected from all behavior prediction models;

[0013] The method of pre-collecting brain wave training data, emotion label data and behavior type label data of each tester in the experimental environment is as follows:

[0014] During each test on a tester, real-time brain wave signals of each band of the tester are collected in real time, and the brain wave signals of each band are combined into a brain wave signal sequence of the corresponding band in chronological order, and the brain wave signal sequence of each band constitutes a brain wave training feature set; all brain wave training feature sets of each tester constitute the brain wave training data of the tester;

[0015] After using the test method on the tester, the emotion category labels of the tester are collected by return visits; all emotion category labels of each tester constitute the emotion label data of the tester;

[0016] After using the test method on the tester, the behavior type label of each tester is recorded manually, and all the behavior type labels of each tester constitute the behavior type label data of the tester;

[0017] The method of training the emotion classification model to output the predicted emotion category is:

[0018] The brain wave training feature set in the brain wave training data is used as the input of the emotion classification model, the emotion classification model uses the predicted value of the emotion category corresponding to the brain wave training feature set as the output, uses the emotion category label of the test person corresponding to the brain wave training feature set as the prediction target, uses the difference between the predicted value of the emotion category and the emotion category label as the first prediction error, and uses minimizing the sum of squares of the first prediction errors as the training target; the emotion classification model is trained until the sum of squares of the first prediction errors reaches convergence and the training is stopped;

[0019] The output of the emotion recognition model predicting the emotional state comprises the following steps:

[0020] Step 11: preprocess each brain wave training feature set in the brain wave training data to obtain a corresponding brain wave training preprocessing set;

[0021] Step 12: input each brain wave training preprocessing set into the emotion recognition model to obtain the emotion feature expression set corresponding to each brain wave training preprocessing set, and output each of the emotion feature expression sets; the emotion recognition model is an unsupervised learning model;

[0022] The unsupervised learning model is an autoencoder;

[0023] The method of training the behavior prediction model is:

[0024] For each tester:

[0025] Collect the emotion feature expression set corresponding to each brain wave training feature set of the tester;

[0026] The emotion label data and emotion feature expression set of the tester after using the test means are combined into a set of behavior prediction feature sets;

[0027] Each group of behavior prediction feature sets is used as an input of a behavior prediction model, wherein the behavior prediction model uses a predicted value of a behavior type corresponding to the behavior prediction feature set as an output, uses a behavior type label of the tester corresponding to the behavior prediction feature set as a prediction target, uses a difference between the predicted value of the behavior type and the behavior type label as a second prediction error, and uses minimizing the sum of squares of the second prediction errors as a training target; the behavior prediction model is trained until the sum of squares of the second prediction errors reaches convergence and the training is stopped;

[0028] The method of collecting the brain wave monitoring data and behavior monitoring data of the monitored person in the real monitoring environment is:

[0029] The real monitoring environment is an environment in which the person to be monitored wears a brain wave signal acquisition device and the brain wave signal of the person to be monitored is collected in real time by the brain wave signal acquisition device;

[0030] When the person to be monitored wears the brain wave signal collection device, the brain wave signals of each band of the person to be monitored are collected in real time, and the brain wave signals of each band are combined into a corresponding brain wave monitoring signal sequence in chronological order; the length of the brain wave monitoring signal sequence is consistent with the length of the brain wave signal sequence of the test person; the brain wave monitoring signal sequence constitutes the brain wave monitoring data of the person to be monitored;

[0031] Collect the behavior type of the monitored person after collecting the brain wave monitoring signal sequence in real time as behavior monitoring data;

[0032] The method of outputting the predicted behavior of the person to be monitored is:

[0033] The predicted emotion category and predicted emotion state of the person to be monitored are combined into a set of monitoring behavior prediction feature sets;

[0034] Inputting the monitoring behavior prediction feature set into each behavior prediction model to obtain the prediction value of the behavior type of the monitored person output by each behavior prediction model;

[0035] Use voting method to select the predicted value of the behavior type with the most occurrences from all the predicted values ​​of the behavior types of the monitored personnel as the predicted behavior of the monitored personnel;

[0036] The method of fine-tuning each behavior prediction model is as follows:

[0037] For each behavior prediction model:

[0038] The monitoring behavior prediction feature set of the monitored person is used as the input of the behavior prediction model, and the difference between the predicted value of the behavior type output by the behavior prediction model and the behavior monitoring data corresponding to the behavior prediction feature set is used as the third prediction error, and the sum of the squares of the third prediction error is used as the loss function to retrain the behavior prediction model to obtain a fine-tuned behavior prediction model;

[0039] The method to determine whether a suitable behavior prediction model has been screened out is:

[0040] The behavior prediction model with the highest prediction accuracy is screened out from all behavior prediction models as a quasi-suitable behavior prediction model. If the prediction accuracy of the quasi-suitable behavior prediction model reaches a preset accuracy threshold, the quasi-suitable behavior prediction model is used as a suitable behavior prediction model; otherwise, it is considered that a suitable behavior prediction model has not been screened out.

[0041] An emotion monitoring system based on deep learning and brain wave morphological features is proposed, including a training data collection module, a model training module, and a behavior prediction module; wherein each module is electrically connected;

[0042] A training data collection module is used to collect brain wave training data, emotion label data and behavior type label data of each tester in advance in the experimental environment, and send the brain wave training data, emotion label data and behavior type label data to the model training module;

[0043] The model training module is used to train an emotion classification model that outputs predicted emotion categories with brain wave training data as input and emotion label data as output; and train an emotion recognition model that outputs predicted emotion states based on the brain wave training data; for each tester, the emotion label data and emotion state are used as input and the behavior type label data is used as output to train the behavior prediction model, and the emotion classification model, emotion recognition model and behavior prediction model are sent to the behavior prediction module;

[0044] The behavior prediction module is used to perform the following steps:

[0045] Step 21: In a real monitoring environment, collect brain wave monitoring data and behavior monitoring data of the person to be monitored;

[0046] Step 22: Based on the EEG monitoring data and the emotion classification model, obtain the predicted emotion category of the person to be monitored; based on the EEG monitoring data and the emotion recognition model, obtain the predicted emotional state of the person to be monitored;

[0047] Step 23: Based on the predicted emotion category and predicted emotional state of the person to be monitored and the behavior prediction model of the test person, the predicted behavior of the person to be monitored is output, and each behavior prediction model is fine-tuned;

[0048] Step 24: Repeat steps 21 to 23 until a suitable behavior prediction model is selected from all behavior prediction models.

[0049] An electronic device is proposed, comprising: a processor and a memory, wherein the memory stores a computer program that can be called by the processor;

[0050] The processor executes the above-mentioned emotion monitoring method based on deep learning and brain wave morphological characteristics by calling the computer program stored in the memory.

[0051] A computer-readable storage medium is provided, on which a rewritable computer program is stored;

[0052] When the computer program runs on a computer device, the computer device executes the above-mentioned emotion monitoring method based on deep learning and brain wave morphology characteristics.

[0053] Compared with the prior art, the present invention has the following beneficial effects:

[0054] The present invention collects brain wave training data, emotion label data and behavior type label data of each test person in advance in an experimental environment, takes the brain wave training data as input and the emotion label data as output, and trains an emotion classification model that outputs predicted emotion categories; and trains an emotion recognition model that outputs predicted emotion states based on the brain wave training data; for each test person, takes the emotion label data and emotion states as input and the behavior type label data as output, trains the behavior prediction model, collects brain wave monitoring data and behavior monitoring data of the person to be monitored in a real monitoring environment, obtains the predicted emotion category of the person to be monitored based on the brain wave monitoring data and the emotion classification model; obtains the predicted emotion category of the person to be monitored based on the brain wave monitoring data and the emotion recognition model Emotional state, based on the predicted emotion category, predicted emotional state and behavior prediction model of the monitored person, outputs the predicted behavior of the monitored person, and fine-tunes each behavior prediction model, and repeats the fine-tuning of each behavior prediction model until a suitable behavior prediction model is screened out from all behavior prediction models; by training the emotion classification model and the emotion recognition model, the emotion type of the monitored person and the emotion characteristic expression of the emotion type are predicted, and then the behavior prediction model is trained according to the emotion type and emotion characteristic expression, so as to realize real-time monitoring of the emotional state of the monitored person and predict future behavior, and prevent and stop it before it is judged that the monitored person has excessive behavior, thereby protecting the safety of the monitored person and the surrounding environment. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 This is a flow chart of the emotion monitoring method based on deep learning and brain wave morphology features in Example 1 of the present invention;

[0056] Figure 2 This is a module connection relationship diagram of an emotion monitoring system based on deep learning and brain wave morphology characteristics in Example 2 of the present invention;

[0057] Figure 3 This is a schematic diagram of the structure of an electronic device in Embodiment 3 of the present invention;

[0058] Figure 4 This is a schematic diagram of the computer-readable storage medium structure in Example 4 of the present invention. DETAILED DESCRIPTION

[0059] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0060] Example 1

[0061] like Figure 1 As shown, the emotion monitoring method based on deep learning and brain wave morphological features includes the following steps:

[0062] Step 1: Collect brain wave training data, emotion label data and behavior type label data of each tester in advance in the experimental environment;

[0063] Step 2: Using the EEG training data as input and the emotion label data as output, train an emotion classification model that outputs predicted emotion categories; and based on the EEG training data, train an emotion recognition model that outputs predicted emotion states; for each tester, use the emotion label data and emotion state as input and the behavior type label data as output to train a behavior prediction model;

[0064] Step 3: In a real monitoring environment, collect brain wave monitoring data and behavior monitoring data of the person to be monitored;

[0065] Step 4: Based on the EEG monitoring data and the emotion classification model, obtain the predicted emotion category of the person to be monitored; based on the EEG monitoring data and the emotion recognition model, obtain the predicted emotional state of the person to be monitored;

[0066] Step 5: Based on the predicted emotion category and predicted emotional state of the person to be monitored and the behavior prediction model of the test person, the predicted behavior of the person to be monitored is output, and each behavior prediction model is fine-tuned;

[0067] Step 6: Repeat steps 3 to 5 until a suitable behavior prediction model is selected from all behavior prediction models;

[0068] Wherein, in the experimental environment, N testers are recruited in advance, several different test methods are adopted for the testers, and the electroencephalogram (EEG) signals of the testers are collected by using a brain wave signal collection device; N is the number of pre-selected testers; the test methods include but are not limited to watching different types of videos, listening to different types of music, reading different types of books, etc.; the brain wave signal collection device includes but is not limited to an EEG amplifier, etc.;

[0069] The method of pre-collecting brain wave training data, emotion label data and behavior type label data of each tester in the experimental environment is as follows:

[0070] During each test on a tester, real-time brain wave signals of each band of the tester are collected in real time, and the brain wave signals of each band are combined into a brain wave signal sequence of the corresponding band in chronological order, and the brain wave signal sequence of each band constitutes a brain wave training feature set; all brain wave training feature sets of each tester constitute the brain wave training data of the tester;

[0071] It should be noted that an example of an EEG training feature set is as follows:

[0072] The real-time collected brain wave data is shown in Table 1:

[0073] Table 1 Brain wave data table

[0074] Time (seconds) Delta wave (μ V) Theta wave (μ V) α wave (μ V) Beta wave (μ V) Gamma wave (μ V) 1 9.8 8.3 11.9 8.2 5.5 2 9.6 8.5 11.7 8.0 5.7 3 9.4 8.8 11.5 7.8 5.9 4 9.2 9.0 11.3 7.6 6.1 5 9.0 9.2 11.1 7.4 6.3

[0075] Then the EEG training feature set is

[0076] [[9.8, 9.6, 9.4, 9.2, 9.0], [8.3, 8.5, 8.8, 9.0, 9.2], [11.9, 11.7, 11.5, 11.3, 11.1], [8.2, 8.0, 7.8, 7.6, 7.4], [5.5, 5.7, 5.9, 6.1, 6.3]], where each sequence corresponds to the EEG signal frequency values ​​of delta wave (0.5-4Hz), theta wave (4-8Hz), alpha wave (8-13Hz), beta wave (13-30Hz) and gamma wave (30-100Hz);

[0077] After the tester is tested, the emotion category labels of the tester are collected by return visits; all emotion category labels of each tester constitute the emotion label data of the tester; the emotion category labels include but are not limited to positive, negative, neutral, excited, depressed, anxious, angry, and fearful, etc.;

[0078] After the tester is subjected to the test method, the behavior type label of each tester is recorded manually, and all the behavior type labels of each tester constitute the behavior type label data of the tester; the behavior types include but are not limited to relaxation behaviors: such as resting, closing eyes, deep breathing, etc.; positive behaviors: such as smiling, laughing, active communication, etc.; negative behaviors: such as retreating, closing, thinking alone, etc.; impulsive behaviors: such as excitement, dancing, exciting activities, etc.; angry behaviors: such as throwing things, roaring, violent behaviors, etc.;

[0079] Furthermore, the method of training an emotion classification model that outputs predicted emotion categories using brain wave training data as input and emotion label data as output is:

[0080] The EEG training feature set in the EEG training data is used as the input of the emotion classification model, the emotion classification model uses the predicted value of the emotion category corresponding to the EEG training feature set as the output, uses the emotion category label of the test person corresponding to the EEG training feature set as the prediction target, uses the difference between the predicted value of the emotion category and the emotion category label as the first prediction error, and uses minimizing the sum of squares of the first prediction errors as the training target; the emotion classification model is trained until the sum of squares of the first prediction error reaches convergence, and the training is stopped to train an emotion classification model that outputs the predicted value of the emotion category according to the EEG training data; the emotion classification model is any one of the time series prediction models, such as the RNN model or the LSTM model; the sum of squares of the prediction errors is the mean square error;

[0081] Furthermore, the emotion recognition model for outputting predicted emotional states based on brain wave training data includes the following steps:

[0082] Step 11: preprocess each EEG training feature set in the EEG training data to obtain a corresponding EEG training preprocessing set; specifically, the preprocessing process includes but is not limited to operations such as denoising, filtering, and dimensionality reduction to ensure the quality of the data;

[0083] Step 12: input each brain wave training preprocessing set into the emotion recognition model to obtain the emotion feature expression set corresponding to each brain wave training preprocessing set, and output each of the emotion feature expression sets; the emotion recognition model is an unsupervised learning model;

[0084] In a preferred embodiment, the unsupervised learning model is an autoencoder; it should be noted that the autoencoder is an unsupervised learning model, which includes an encoder and a decoder. The encoder maps the input data to a latent space (usually a low-dimensional representation), and the decoder maps the representation of the latent space back to the original data space; in the emotion recognition model training task of this embodiment, the autoencoder can learn a compact representation of each EEG training feature set, and the EEG training feature set contains information related to the emotional state;

[0085] An example of generating a brain wave training feature set is as follows:

[0086] enter:

[0087] EEG training preprocessing set: Each sample is a time series, representing the EEG records under different emotional states. For example, each sample contains EEG signals over a period of time, which may include dozens to hundreds of data points.

[0088] Sample 1: [0.2, 0.5, 0.3, …, 0.8] (time series data)

[0089] Sample 2: [0.1, 0.3, 0.4, …, 0.6]

[0090] Output:

[0091] Representation of emotional state: the representation of emotional state learned by the unsupervised learning model, which is a low-dimensional representation of the EEG training preprocessing set or an encoding of the latent space; the representation of emotional state captures emotion-related features in the EEG data, such as the intensity and pleasure of the emotion;

[0092] Emotional representation of sample 1: [0.1, -0.3, 0.2] (low-dimensional representation);

[0093] The sentiment representation of sample 2: [0.3, -0.1, -0.5];

[0094] Furthermore, for each tester, the behavior prediction model is trained by taking the emotion label data and the emotion state as input and the behavior type label data as output:

[0095] For each tester:

[0096] Collect the emotion feature expression set corresponding to each brain wave training feature set of the tester;

[0097] The emotion label data and emotion feature expression set of the tester after using the test means are combined into a set of behavior prediction feature sets;

[0098] Each group of behavior prediction feature sets is used as the input of the behavior prediction model, the behavior prediction model uses the predicted value of the behavior type corresponding to the behavior prediction feature set as the output, uses the behavior type label of the test person corresponding to the behavior prediction feature set as the prediction target, uses the difference between the predicted value of the behavior type and the behavior type label as the second prediction error, and uses minimizing the sum of squares of the second prediction errors as the training target; the behavior prediction model is trained until the sum of squares of the second prediction errors reaches convergence, and the training is stopped to train a behavior prediction model that outputs the behavior type that the monitored person may perform due to the emotional state based on the behavior prediction feature set; the behavior prediction model is any one of the classification models, and the classification model includes but is not limited to a DNN model, a SVM model, etc.; the sum of squares of the prediction errors is a mean square error;

[0099] Furthermore, the method of collecting the brain wave monitoring data and behavior monitoring data of the monitored person in the real monitoring environment is:

[0100] The real monitoring environment is an environment in which the person to be monitored wears a brain wave signal acquisition device and the brain wave signal of the person to be monitored is collected in real time by the brain wave signal acquisition device;

[0101] When the person to be monitored wears the brain wave signal collection device, the brain wave signals of each band of the person to be monitored are collected in real time, and the brain wave signals of each band are combined into a corresponding brain wave monitoring signal sequence in chronological order; the length of the brain wave monitoring signal sequence is consistent with the length of the brain wave signal sequence of the test person; the brain wave monitoring signal sequence constitutes the brain wave monitoring data of the person to be monitored;

[0102] Collecting in real time the behavior type of the monitored person after collecting the brain wave monitoring signal sequence as behavior monitoring data; specifically, the behavior monitoring data can be automatically identified by using an action recognition model, and the action recognition model may include but is not limited to a dual-stream CNN model, a TSN model, etc.;

[0103] Furthermore, the method of obtaining the predicted emotion category of the person to be monitored based on the brain wave monitoring data and the emotion classification model is:

[0104] Input the EEG monitoring data into the emotion classification model, and obtain the predicted value of the emotion category output by the emotion classification model as the predicted emotion category;

[0105] The method of obtaining the predicted emotional state of the person to be monitored based on the brain wave monitoring data and the emotion recognition model is:

[0106] The EEG monitoring data is pre-processed and then input into the emotion recognition model to obtain the emotion feature expression set of the person to be monitored output by the emotion recognition model, and the emotion feature expression set of the person to be monitored is used as the predicted emotional state;

[0107] Furthermore, the method of outputting the predicted behavior of the person to be monitored based on the predicted emotion category, predicted emotional state and behavior prediction model of the person to be monitored is:

[0108] The predicted emotion category and predicted emotion state of the person to be monitored are combined into a set of monitoring behavior prediction feature sets;

[0109] Inputting the monitoring behavior prediction feature set into each behavior prediction model to obtain the prediction value of the behavior type of the monitored person output by each behavior prediction model;

[0110] Use voting method to select the predicted value of the behavior type with the most occurrences from all the predicted values ​​of the behavior types of the monitored personnel as the predicted behavior of the monitored personnel;

[0111] It is understandable that the predicted behavior of the monitored person is the behavior that the monitored person may perform in the future, and prevention and blocking can be carried out before it is determined that the monitored person has excessive behavior, thereby protecting the safety of the monitored person and the surrounding environment;

[0112] Furthermore, since each person's emotional state is different, when the person to be monitored first uses the behavior prediction model, different behavior prediction models may output different results. Therefore, it is necessary to fine-tune the behavior prediction model according to the actual behavior of the person to be monitored.

[0113] Furthermore, the method of fine-tuning each behavior prediction model is as follows:

[0114] For each behavior prediction model:

[0115] The monitoring behavior prediction feature set of the monitored person is used as the input of the behavior prediction model, and the difference between the predicted value of the behavior type output by the behavior prediction model and the behavior monitoring data corresponding to the behavior prediction feature set is used as the third prediction error, and the sum of the squares of the third prediction error is used as the loss function to retrain the behavior prediction model to obtain a fine-tuned behavior prediction model;

[0116] Furthermore, the method for determining whether a suitable behavior prediction model has been screened out is as follows:

[0117] Screening out the behavior prediction model with the highest prediction accuracy from all behavior prediction models as a quasi-appropriate behavior prediction model; if the prediction accuracy of the quasi-appropriate behavior prediction model reaches a preset accuracy threshold, the quasi-appropriate behavior prediction model is used as a suitable behavior prediction model; otherwise, it is considered that a suitable behavior prediction model has not been screened out;

[0118] It can be understood that the appropriate behavior prediction model is the behavior prediction model that is closest to the person to be monitored. After obtaining the appropriate behavior prediction model, the appropriate behavior prediction model can be directly used to predict the behavior of the person to be monitored, without having to use all behavior prediction models to predict the person to be monitored.

[0119] Example 2

[0120] like Figure 2 As shown, the emotion monitoring system based on deep learning and brain wave morphological characteristics includes a training data collection module, a model training module and a behavior prediction module; wherein each module is electrically connected;

[0121] The training data collection module is mainly used to collect the brain wave training data, emotion label data and behavior type label data of each tester in advance in the experimental environment, and send the brain wave training data, emotion label data and behavior type label data to the model training module;

[0122] The model training module is mainly used to train an emotion classification model that outputs predicted emotion categories with brain wave training data as input and emotion label data as output; and to train an emotion recognition model that outputs predicted emotion states based on brain wave training data; for each tester, the emotion label data and emotion state are used as input and the behavior type label data is used as output to train the behavior prediction model, and the emotion classification model, emotion recognition model and behavior prediction model are sent to the behavior prediction module;

[0123] Wherein, the behavior prediction module is mainly used to perform the following steps:

[0124] Step 21: In a real monitoring environment, collect brain wave monitoring data and behavior monitoring data of the person to be monitored;

[0125] Step 22: Based on the EEG monitoring data and the emotion classification model, obtain the predicted emotion category of the person to be monitored; based on the EEG monitoring data and the emotion recognition model, obtain the predicted emotional state of the person to be monitored;

[0126] Step 23: Based on the predicted emotion category and predicted emotional state of the person to be monitored and the behavior prediction model of the test person, the predicted behavior of the person to be monitored is output, and each behavior prediction model is fine-tuned;

[0127] Step 24: Repeat steps 21 to 23 until a suitable behavior prediction model is selected from all behavior prediction models.

[0128] Example 3

[0129] Figure 3 1 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 3 As shown, according to another aspect of the present application, an electronic device 100 is also provided. The electronic device 100 may include one or more processors and one or more memories. The memories store computer readable codes, and when the computer readable codes are executed by one or more processors, the emotion monitoring method based on deep learning and brain wave morphology features as described above can be implemented.

[0130] The method or device according to the embodiment of the present application can also be used by Figure 3 The electronic device architecture shown in FIG. Figure 3As shown, the electronic device 100 may include a bus 101, one or more CPUs 102, a ROM 103, a RAM 104, a communication port 105 connected to a network, an input / output component 106, a hard disk 107, and the like. The storage device in the electronic device 100, such as the ROM 103 or the hard disk 107, may store the implementation of the emotion monitoring method based on deep learning and brain wave morphological features provided in the present application. The implementation of the emotion monitoring method based on deep learning and brain wave morphological features may include the following steps: Step 1: Pre-collect brain wave training data, emotion label data, and behavior type label data of each tester in an experimental environment; Step 2: Take the brain wave training data as input and the emotion label data as output to train an emotion classification model that outputs predicted emotion categories; and train an emotion recognition model that outputs predicted emotional states based on the brain wave training data; for each tester, take the emotion label data and emotional state as input and the behavior type label data as output to train a behavior prediction model; Step 3: In In a real monitoring environment, collect the brain wave monitoring data and behavior monitoring data of the monitored person; Step 4: Based on the brain wave monitoring data and the emotion classification model, obtain the predicted emotion category of the monitored person; Based on the brain wave monitoring data and the emotion recognition model, obtain the predicted emotional state of the monitored person; Step 5: Based on the predicted emotion category, predicted emotional state and behavior prediction model of the monitored person, output the predicted behavior of the monitored person, and fine-tune each behavior prediction model; Step 6: Repeat steps 3 to 5 until a suitable behavior prediction model is selected from all behavior prediction models

[0131] Furthermore, the electronic device 100 may further include a user interface 108. Figure 3 The architecture shown is only exemplary and can be omitted according to actual needs when implementing different devices. Figure 3 One or more components of an electronic device are shown.

[0132] Example 4

[0133] Figure 4 Schematic diagram of the computer-readable storage medium structure provided by an embodiment of the present application. Figure 4 As shown, it is a computer-readable storage medium 200 according to an embodiment of the present application. Computer-readable instructions are stored on the computer-readable storage medium 200. When the computer-readable instructions are executed by the processor, the emotion monitoring method based on deep learning and brain wave morphological features according to the embodiment of the present application described with reference to the above figures can be implemented. The computer-readable storage medium 200 includes but is not limited to volatile memory and / or non-volatile memory. Volatile memory may include random access memory (RAM) and cache memory (cache), etc. Non-volatile memory may include read-only memory (ROM), hard disk, flash memory, etc.

[0134] In addition, according to the implementation of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the present application provides a non-transitory machine-readable storage medium, the non-transitory machine-readable storage medium stores machine-readable instructions, the machine-readable instructions can be run by a processor to execute instructions corresponding to the method steps provided by the present application, and when the computer program is executed by a central processing unit (CPU), the above functions defined in the method of the present application are executed.

[0135] The methods, apparatuses, and devices of the present application may be implemented in many ways. For example, the methods, apparatuses, and devices of the present application may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present application are not limited to the order specifically described above unless otherwise specified. In addition, in some embodiments, the present application may also be implemented as programs recorded in a recording medium, which include machine-readable instructions for implementing the method according to the present application. Therefore, the present application also covers recording media storing programs for executing the method according to the present application.

[0136] In addition, the parts of the above-mentioned technical solutions provided in the embodiments of the present application that are consistent with the implementation principles of the corresponding technical solutions in the prior art are not described in detail to avoid excessive redundancy.

[0137] The specific implementation modes described above further describe the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific implementation mode of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present embodiment should be included in the protection scope of the present embodiment.

[0138] The above preset parameters or preset thresholds are all set by technicians in this field according to actual conditions or obtained through large-scale data simulation.

[0139] The above embodiments are only used to illustrate the technical method of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical method of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical method of the present invention.

Claims

1. An emotion monitoring method based on deep learning and brain wave morphological features, characterized in that: The following steps are involved: Step 1: Collect brain wave training data, emotion label data and behavior type label data of each tester in advance in the experimental environment; Step 2: Using EEG training data as input and emotion label data as output, train an emotion classification model that outputs predicted emotion categories; Based on the EEG training data, an emotion recognition model is trained to output predicted emotional states. For each tester, the emotion label data and emotional state are used as input, and the behavior type label data is used as output to train the behavior prediction model. Step 3: In a real monitoring environment, collect brain wave monitoring data and behavior monitoring data of the person to be monitored; Step 4: Based on the EEG monitoring data and the emotion classification model, obtain the predicted emotion category of the person to be monitored; based on the EEG monitoring data and the emotion recognition model, obtain the predicted emotional state of the person to be monitored; Step 5: Based on the predicted emotion category and predicted emotional state of the person to be monitored and the behavior prediction model of the test person, the predicted behavior of the person to be monitored is output, and each behavior prediction model is fine-tuned; Step 6: Repeat steps 3 to 5 until a suitable behavior prediction model is selected from all behavior prediction models.

2. The emotion monitoring method based on deep learning and brain wave morphological features according to claim 1 is characterized in that: The method of pre-collecting brain wave training data, emotion label data and behavior type label data of each tester in the experimental environment is as follows: During each test on a tester, real-time brain wave signals of each band of the tester are collected in real time, and the brain wave signals of each band are combined into a brain wave signal sequence of the corresponding band in chronological order, and the brain wave signal sequence of each band constitutes a brain wave training feature set; all brain wave training feature sets of each tester constitute the brain wave training data of the tester; After using the test method on the tester, the emotion category labels of the tester are collected by return visits; all emotion category labels of each tester constitute the emotion label data of the tester; After using the test method on the tester, the behavior type label of each tester is recorded manually, and all the behavior type labels of each tester constitute the behavior type label data of the tester.

3. The emotion monitoring method based on deep learning and brain wave morphological features according to claim 2 is characterized in that: The method of training the emotion classification model to output the predicted emotion category is: The brain wave training feature set in the brain wave training data is used as the input of the emotion classification model, the emotion classification model uses the predicted value of the emotion category corresponding to the brain wave training feature set as the output, uses the emotion category label of the test person corresponding to the brain wave training feature set as the prediction target, uses the difference between the predicted value of the emotion category and the emotion category label as the first prediction error, and uses minimizing the sum of squares of the first prediction error as the training target; The emotion classification model is trained until the sum of squares of the first prediction error reaches convergence.

4. The emotion monitoring method based on deep learning and brain wave morphological features according to claim 3 is characterized in that: The output of the emotion recognition model predicting the emotional state comprises the following steps: Step 11: preprocess each brain wave training feature set in the brain wave training data to obtain a corresponding brain wave training preprocessing set; Step 12: Input each EEG training preprocessing set into the emotion recognition model to obtain the emotion feature expression set corresponding to each EEG training preprocessing set, and output each of the emotion feature expression sets; the emotion recognition model is an unsupervised learning model.

5. The emotion monitoring method based on deep learning and brain wave morphological features according to claim 4 is characterized in that: The method of training the behavior prediction model is: For each tester: Collect the emotion feature expression set corresponding to each brain wave training feature set of the tester; The emotion label data and emotion feature expression set of the tester after using the test means are combined into a set of behavior prediction feature sets; Each group of behavior prediction feature sets is used as the input of the behavior prediction model, the behavior prediction model takes the predicted value of the behavior type corresponding to the behavior prediction feature set as the output, takes the behavior type label of the test person corresponding to the behavior prediction feature set as the prediction target, takes the difference between the predicted value of the behavior type and the behavior type label as the second prediction error, and takes minimizing the sum of squares of the second prediction errors as the training goal; the behavior prediction model is trained until the sum of squares of the second prediction errors converges and the training is stopped.

6. The emotion monitoring method based on deep learning and brain wave morphological features according to claim 5, characterized in that: The method of collecting the brain wave monitoring data and behavior monitoring data of the monitored person in the real monitoring environment is: The real monitoring environment is an environment in which the person to be monitored wears a brain wave signal acquisition device and the brain wave signal of the person to be monitored is collected in real time by the brain wave signal acquisition device; When the person to be monitored wears the brain wave signal collection device, the brain wave signals of each band of the person to be monitored are collected in real time, and the brain wave signals of each band are combined into a corresponding brain wave monitoring signal sequence in chronological order; the length of the brain wave monitoring signal sequence is consistent with the length of the brain wave signal sequence of the test person; the brain wave monitoring signal sequence constitutes the brain wave monitoring data of the person to be monitored; The behavior types of the monitored persons after collecting the brain wave monitoring signal sequence are collected in real time as behavior monitoring data.

7. The emotion monitoring method based on deep learning and brain wave morphological features according to claim 6, characterized in that: The method of outputting the predicted behavior of the person to be monitored is: The predicted emotion category and predicted emotion state of the person to be monitored are combined into a set of monitoring behavior prediction feature sets; Inputting the monitoring behavior prediction feature set into each behavior prediction model to obtain the prediction value of the behavior type of the monitored person output by each behavior prediction model; Use voting method to select the predicted value of the behavior type with the most occurrences from all the predicted values ​​of the behavior types of the monitored personnel as the predicted behavior of the monitored personnel; The method of fine-tuning each behavior prediction model is as follows: For each behavior prediction model: The monitoring behavior prediction feature set of the monitored person is used as the input of the behavior prediction model, and the difference between the predicted value of the behavior type output by the behavior prediction model and the behavior monitoring data corresponding to the behavior prediction feature set is used as the third prediction error, and the sum of the squares of the third prediction error is used as the loss function to retrain the behavior prediction model to obtain a fine-tuned behavior prediction model; The method to determine whether a suitable behavior prediction model has been screened out is: The behavior prediction model with the highest prediction accuracy is screened out from all behavior prediction models as a quasi-suitable behavior prediction model. If the prediction accuracy of the quasi-suitable behavior prediction model reaches a preset accuracy threshold, the quasi-suitable behavior prediction model is used as a suitable behavior prediction model; otherwise, it is considered that a suitable behavior prediction model has not been screened out.

8. An emotion monitoring system based on deep learning and brain wave morphology features, which is used to implement the emotion monitoring method based on deep learning and brain wave morphology features described in any one of claims 1 to 7, characterized in that: It includes a training data collection module, a model training module and a behavior prediction module; wherein each module is electrically connected to each other; A training data collection module is used to collect brain wave training data, emotion label data and behavior type label data of each tester in advance in the experimental environment, and send the brain wave training data, emotion label data and behavior type label data to the model training module; The model training module is used to train an emotion classification model that outputs predicted emotion categories with brain wave training data as input and emotion label data as output; and train an emotion recognition model that outputs predicted emotion states based on the brain wave training data; for each tester, the emotion label data and emotion state are used as input and the behavior type label data is used as output to train the behavior prediction model, and the emotion classification model, emotion recognition model and behavior prediction model are sent to the behavior prediction module; The behavior prediction module is used to perform the following steps: Step 21: In a real monitoring environment, collect brain wave monitoring data and behavior monitoring data of the person to be monitored; Step 22: Based on the EEG monitoring data and the emotion classification model, obtain the predicted emotion category of the person to be monitored; based on the EEG monitoring data and the emotion recognition model, obtain the predicted emotional state of the person to be monitored; Step 23: Based on the predicted emotion category and predicted emotional state of the person to be monitored and the behavior prediction model of the test person, the predicted behavior of the person to be monitored is output, and each behavior prediction model is fine-tuned; Step 24: Repeat steps 21 to 23 until a suitable behavior prediction model is selected from all behavior prediction models.

9. An electronic device, characterized in that: include: processor and memory, wherein The memory stores a computer program that can be called by the processor; The processor executes the emotion monitoring method based on deep learning and brain wave morphology features described in any one of claims 1 to 7 in the background by calling the computer program stored in the memory.

10. A computer-readable storage medium, characterized in that: A rewritable computer program is stored thereon; When the computer program runs on a computer device, the computer device executes the emotion monitoring method based on deep learning and brain wave morphology features as described in any one of claims 1 to 7 in the background.

Citation Information

Patent Citations

  • Shopping system for identifying emotions based on brain waves

    CN108073284A

  • Emotion-based content recommendation method, apparatus, head-mounted device, and storage medium

    CN110753922A

  • Electroencephalogram negative emotion recognition method and system based on aggressive behavior prediction

    CN110826527A

  • Hypoglycemia early warning method and hypoglycemia early warning device

    CN111128327A

  • Recommendation model training method and selection probability prediction method and device

    CN112487278A

Cited By

  • Model generation method and device, emotion recognition method and device, equipment and storage medium

    CN120032670A

  • Employee attendance emotion monitoring method and system based on computer vision

    CN121884411A