Emotion recognition method, device, wearable device and storage medium

By obtaining the user's vital sign data and motion status, using classification models and filtering models to identify emotional states, it solves the problem that existing technology cannot accurately reflect user emotions, improves the accuracy of emotion recognition, and helps users respond to negative emotions in a timely manner. Reduce the risk of mental illness.

CN115120236BActive Publication Date: 2024-08-23GUANGDONG XIAOTIANCAI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210463142.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-28
Publication Date
2024-08-23
Estimated Expiration
2042-04-28

AI Technical Summary

Technical Problem

Existing emotion prediction models cannot comprehensively and accurately reflect the user's emotional state, especially when life pressure increases. As a result, negative emotions cannot be processed and adjusted in time, which may cause mental illness.

Method used

By obtaining the user's vital sign data and motion status, extracting variability features and motion status, using classification models and filtering models to identify emotional states and improve the accuracy of emotion recognition.

Benefits of technology

It improves the accuracy of emotional state recognition, can reflect users' emotional changes in a timely manner, and helps users take countermeasures to reduce the risk of mental illness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115120236B
    Figure CN115120236B
Patent Text Reader

Abstract

The embodiment of the present application discloses an emotion recognition method, apparatus, wearable device and storage medium, the method comprising: obtaining vital sign data corresponding to a user at a first moment, and obtaining a first motion state corresponding to the user at a second moment; the second moment is earlier than the first moment; the first motion state is determined according to the user motion information corresponding to the user at the second moment; extracting a first variability feature from the vital sign data; obtaining a first emotional state corresponding to one or more time points within a detection time period according to the first variability feature and the first motion state. Implementing the embodiment of the present application can improve the accuracy of emotional state recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of wearable devices, and specifically to an emotion recognition method, apparatus, wearable device and storage medium. Background Art

[0002] Emotions are an important indicator of physical and mental health. Positive emotions can improve the physiological functions of the human body, motivate people to work hard, and form a positive attitude towards life; negative emotions can weaken people's physical strength and energy and inhibit people's ability to move. At present, the increase in life pressure has led to negative emotions in many people. If negative emotions are not handled and adjusted in time, they may cause mental illness. Therefore, it is necessary to propose a method that can identify emotional states so that people can take timely measures to deal with negative emotions. Existing technologies are mainly based on emotional prediction models based on stress index, but this method cannot fully and accurately reflect the user's emotional state. Summary of the invention

[0003] The embodiments of the present application disclose an emotion recognition method, apparatus, wearable device and storage medium, which can improve the accuracy of emotion state recognition.

[0004] The embodiment of the present application discloses an emotion recognition method, characterized in that it is applied to a wearable device, and the method includes:

[0005] Acquire vital sign data of a user corresponding to a first moment, and acquire a first motion state of the user corresponding to a second moment; the second moment is earlier than the first moment; the first motion state is determined according to user motion information corresponding to the user at the second moment;

[0006] extracting a first variability feature from the vital sign data;

[0007] A first emotional state corresponding to one or more time points within a detection time period is obtained according to the first variability feature and the first motion state.

[0008] As an optional implementation, the vital sign data includes a heart rate signal and a respiratory signal; and extracting the first variability feature from the vital sign data includes:

[0009] Extracting a first respiratory variability feature group from the respiratory signal by analyzing the respiratory signal; the first respiratory variability feature group includes one or more respiratory statistical features;

[0010] A first heart rate variability feature group is extracted from the heart rate signal by analyzing the heart rate signal; the first heart rate variability feature group includes at least one of the following features: heart rate statistical features in the time domain, frequency domain features in the frequency domain, and nonlinear features in the nonlinear domain.

[0011] As an optional implementation manner, obtaining the first emotional state corresponding to one or more time points within a detection time period according to the first variability feature and the first motion state includes:

[0012] The first variability feature and the first motion state are processed by a classification model to obtain a first emotional state corresponding to one or more time points within the detection time period output by the classification model.

[0013] As an optional implementation manner, before processing the first variability feature and the first motion state by using a classification model, the method further includes:

[0014] Converting the first motion state into a numerical feature to obtain a second motion state represented by the numerical feature;

[0015] The processing of the first variability feature and the first motion state by a classification model to obtain a first emotional state corresponding to one or more time points within the detection time period output by the classification model includes:

[0016] The first variability feature and the second motion state represented by the numerical feature are processed by a classification model to obtain a first emotional state corresponding to one or more time points within the detection time period output by the classification model.

[0017] As an optional implementation, the second motion state represented by the numerical feature is represented by a plurality of first values ​​in Gaussian distribution; and the processing of the first variability feature and the second motion state represented by the numerical feature by the classification model includes:

[0018] Standardizing the plurality of first values ​​and / or the first variability feature included in the second motion state to obtain a third motion state and a second variability feature having a consistent value range; the third motion state is represented by a plurality of second values ​​in a Gaussian distribution;

[0019] The third motion state and the second variability feature with consistent value ranges are processed through a classification model.

[0020] As an optional implementation manner, after obtaining the first emotional state corresponding to multiple time points within the detection time period, the method further includes:

[0021] Calculating the transition probabilities corresponding to the first emotional states corresponding to the multiple time points respectively through the filtering model; the transition probabilities are used to indicate the similarity between the first emotional states;

[0022] Determine, by using the filtering model, among the first emotional states corresponding to the multiple time points, the first emotional state whose corresponding transition probability is lower than the first threshold as a sudden emotional state;

[0023] The sudden emotional state within the detection time period is filtered by the filtering model to output a second emotional state corresponding to other time points within the detection time period except the time point corresponding to the sudden emotional state.

[0024] As an optional implementation manner, the acquiring the vital sign data collected by the wearable device at the first moment includes:

[0025] Detect user activity status;

[0026] When the activity state is a resting state, vital sign data collected by the wearable device at a first moment is obtained.

[0027] As an optional implementation manner, after determining the activity state according to the activity intensity, the method further includes:

[0028] When the activity state is a motion state, the activity state of the user is re-detected until the activity state is a resting state.

[0029] The present application embodiment discloses an emotion recognition device, the device comprising:

[0030] an acquisition module, used to acquire the vital sign data of the user corresponding to a first moment, and to acquire a first motion state of the user corresponding to a second moment; the second moment is earlier than the first moment; the first motion state is determined according to the user motion information corresponding to the user at the second moment;

[0031] A feature module, configured to extract a first variability feature from the vital sign data;

[0032] A state module is used to obtain a first emotional state corresponding to one or more time points within a detection time period according to the first variability feature and the first motion state.

[0033] An embodiment of the present application discloses a wearable device, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements any one of the emotion recognition methods disclosed in the embodiment of the present application.

[0034] An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute any one of the emotion recognition methods disclosed in the embodiment of the present application.

[0035] Compared with the related art, the embodiments of the present application have the following beneficial effects:

[0036] The user's vital sign data is obtained at a first moment, and the user's first motion state is obtained at a second moment earlier than the first moment; a first variability feature is extracted from the vital sign data; and a first emotional state corresponding to one or more time points within a detection time period is obtained according to the first variability feature and the first motion state. The embodiment of the present application uses a variety of time-asynchronous physiological data such as vital sign data and motion state to perform emotion recognition on the user, which can improve the accuracy of emotional state recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0038] Figure 1 It is a flowchart of an emotion recognition method disclosed in an embodiment of the present application;

[0039] Figure 2 is a flow chart of another emotion recognition method disclosed in an embodiment of the present application;

[0040] Figure 3 is a flow chart of another emotion recognition method disclosed in an embodiment of the present application;

[0041] Figure 4 is a flow chart of another emotion recognition method disclosed in an embodiment of the present application;

[0042] Figure 5 is a flow chart of another emotion recognition method disclosed in an embodiment of the present application;

[0043] Figure 6 is a structural schematic diagram of an emotion recognition device disclosed in an embodiment of the present application;

[0044] Figure 7 It is a structural schematic diagram of a wearable device disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0045] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0046] It should be noted that the terms "including" and "having" and any variations thereof in the embodiments of the present application and the accompanying drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.

[0047] The embodiments of the present application disclose an emotion recognition method, apparatus, wearable device and storage medium, which can improve the accuracy of emotion state recognition. Detailed descriptions are given below.

[0048] The method shown in the embodiment of the present application is applicable to wearable devices. Among them, the wearable device is a portable electronic device that can be directly worn on the user, or integrated into the user's clothes or accessories. Wearable devices are not only a hardware device, but also can realize powerful intelligent functions, such as computing functions, through software support, data interaction, and cloud interaction. Wearable devices can also be connected to various terminals and exchange information with various terminals. The terminal can be a mobile phone, tablet computer, or wearable device connected or bound to the wearable device. For example, the user of the wearable device can be a child, and the terminal user connected or bound to the wearable device can be the parent or guardian of the child. The above method can enable parents or guardians to monitor the child's physical fitness level in a timely manner and understand the child's health status.

[0049] Wearable devices may include, but are not limited to, smart watches or smart bracelets supported by the wrist, smart rings supported by the fingers, smart shoes or smart socks supported by the feet, smart glasses, smart helmets or smart headbands supported by the head, as well as various non-mainstream products such as smart clothing, school bags, crutches, accessories, etc., which are not limited in the embodiments of the present application.

[0050] See also Figure 1 , Figure 1 is a flow chart of an emotion recognition method disclosed in an embodiment of the present application. Figure 1 As shown, the emotion recognition method may include the following steps:

[0051] 101. Obtain vital sign data of a user corresponding to a first moment, and obtain a first motion state of the user corresponding to a second moment.

[0052] The first motion state is determined according to user motion information corresponding to the user at the second moment.

[0053] The user motion information may include acceleration data of the user collected by an acceleration sensor in the wearable device, or angular velocity data of the user collected by a gyroscope sensor in the wearable device. It may also include a variety of user motion data collected by a variety of sensors such as acceleration sensors and gyroscope sensors.

[0054] The wearable device can determine the first motion state according to the user motion information. Optionally, the user motion information can be input into a classifier, and the classifier can be any one of a support vector machine (SVM), a Bayesian network, a softmax classifier, etc., without limitation. After the user motion information is input into the classifier, the first motion state can be output by the classifier. The first motion state can include motion states such as jogging, sprinting, walking, swimming, cycling, and standing.

[0055] Vital sign data may include respiratory signals, heart rate signals, body temperature information, blood pressure information, etc., without specific limitation. Among them, the wearable device can collect the user's respiratory signals and heart rate signals through photoelectric sensors. Exemplarily, the wearable device separates the user's photoelectric volume pulse wave (PPG) signal collected by the photoelectric sensor through signal separation technology to obtain a respiratory signal and a heart rate signal. The respiratory signal can be a real-time respiratory rate or a respiratory rate in a resting state; the heart rate signal can be the user's real-time heart rate or the user's heart rate in a resting state. The resting state can refer to a physiological state in which the user is not exercising.

[0056] The second moment is earlier than the first moment. The user's breathing signal and heart rate signal collected at the first moment are real-time information, and the user's motion information collected at the second moment is historical information. Exemplarily, the first moment can be consistent with the current Beijing time. For example, the current time is 2 pm Beijing time, and the first moment is also 2 pm, then the second moment is 1 pm.

[0057] The user motion information collected at the second moment may refer to the user motion information at the second moment, or may refer to the user motion information accumulated in the time period before the first moment, such as the user motion information within 6 hours before the first moment, without specific limitation.

[0058] The first motion state is introduced because a person's motion state can affect emotions. Moderate exercise can cause the body to secrete endorphins, increase a person's sense of pleasure, and relieve negative and depressive emotions; while excessive exercise can overdraw a person's mental and physical strength, which can aggravate low and depressed emotions and cause recurring emotions. Therefore, the introduction of the first motion state can fully consider the impact of the motion state on emotions when identifying emotions, making emotion recognition more accurate.

[0059] 102. Extract a first variability feature from the vital sign data.

[0060] The first variability feature may be one or more features extracted from the vital sign data to describe the differential changes of the vital sign data within a sampling period. The vital sign data may include a heart rate signal and a respiratory signal; the first variability feature may include a first respiratory variability feature group and a first heart rate variability feature, but is not limited thereto.

[0061] In some embodiments, a first respiratory variability feature group is extracted from the respiratory signal by analyzing the respiratory signal; the first respiratory variability feature group includes one or more respiratory statistical features; a first heart rate variability feature group is extracted from the heart rate signal by analyzing the heart rate signal; the first heart rate variability feature group includes at least one of the following features: heart rate statistical features in the time domain, frequency domain features in the frequency domain, and nonlinear features in the nonlinear domain.

[0062] The first respiratory variability feature group includes one or more respiratory statistical features. The first respiratory variability feature group may include respiratory statistical features calculated based on changes in the frequency, rhythm, and waveform of the respiratory signal. The respiratory statistical features may include the skewness, kurtosis, median, average energy, etc. of the respiratory signal. Since a person's respiratory movement can be controlled at will or performed autonomously without consciousness, a lot of information indicating health status can be mined from the respiratory signal. When a person's emotions are in an anxious state, breathing becomes rapid; when a person's emotions are in a peaceful state, breathing becomes stable. Therefore, by calculating one or more respiratory statistical features through the respiratory signal, the first respiratory variability feature group is obtained, which can accurately convert the respiratory signal into a numerical feature, and can better reflect the physiological and psychological state of the person, so as to identify emotions.

[0063] The first heart rate variability feature group includes at least one of the following features: heart rate statistical features in the time domain, frequency domain features in the frequency domain, and nonlinear features in the nonlinear domain.

[0064] In some optional implementations, a pulse signal recognition algorithm may be used to obtain a peak-to-peak interval (PPI) from a photoplethysmogram (PPG) signal as a heart rate signal. The pulse signal recognition algorithm may include a principal component analysis method, a neural network method, a template matching method, and the like.

[0065] The heart rate statistical features in the time domain may include the standard deviation, zero-crossing rate, root mean square, average energy, arithmetic mean, etc. of the heart rate signal.

[0066] The frequency domain features in the frequency domain may include a low frequency band (LF) reflecting the sympathetic nerve activity index, a high frequency band (HF) reflecting the vagus nerve activity index, an index reflecting the dynamic balance of the sympathetic and vagus nerves (LF / HF), and the like.

[0067] The nonlinear features in the nonlinear domain include the maximum Lyapunov exponent, permutation entropy, sample entropy, and complexity of the heart rate signal.

[0068] When a person is angry or sad, his heartbeat will speed up; when a person is calm, his heartbeat will be stable. Therefore, by obtaining the first heart rate variability feature group through the heart rate signal, the heart rate signal can be accurately converted into a numerical feature, which can better reflect the physiological and psychological state of a person, so as to identify emotions.

[0069] 103. Obtain a first emotional state corresponding to one or more time points within a detection time period according to the first variability feature and the first motion state.

[0070] The first emotional state may include happiness, sadness, anger, depression, calmness, fear, etc., but is not limited thereto. The first emotional state may also be divided into two categories, one is positive emotion and the other is negative emotion. For example, happiness and calmness belong to positive emotions, while depression and sadness belong to negative emotions.

[0071] In some embodiments, the wearable device may output the user's real-time emotions, that is, the user may view the first emotional state corresponding to a time point within the detection time period;

[0072] Optionally, the wearable device may output the first emotional states corresponding to multiple time points within the detection time period through a classification model, so as to filter the sudden emotional states in the first emotional states corresponding to each time point.

[0073] The detection time period may be a time period between the first time and the second time.

[0074] In some optional implementations, physiological data of users in different emotional states can be collected, and mapping curves or data tables can be made using the emotional states and the physiological data corresponding to the emotional states. When identifying the emotional state of the user, the physiological data of the user can be measured, and the physiological data can be substituted into the mapping curve or data table to obtain the emotional state corresponding to the physiological data. In other optional implementations, emotions can also be identified by detecting physiological data such as the user's body temperature and sweat gland secretion, and combining physiological data such as heart rate and respiratory rate.

[0075] The embodiment of the present application introduces the first motion state, so that the influence of the motion state on the emotion is fully considered when performing emotion recognition. Moreover, the acquisition time of the first motion state is earlier than the acquisition time of the vital sign data, and the data at different time points or different time periods can be used to identify the emotion. It can be seen that the embodiment of the present application uses a variety of time-asynchronous physiological data such as vital sign data and motion state data to identify the user's emotions, which can improve the accuracy of emotional state recognition.

[0076] See also Figure 2 , Figure 2 FIG. 1 is a flow chart of another emotion recognition method disclosed in an embodiment of the present application. Figure 2 As shown, the method comprises the following steps:

[0077] 201. Obtain vital sign data of a user corresponding to a first moment, and obtain a first motion state of the user corresponding to a second moment.

[0078] 202. Extract a first variability feature from the vital sign data.

[0079] 203. Convert the first motion state into a numerical feature to obtain a second motion state represented by the numerical feature.

[0080] The first motion state may include non-numeric data such as jogging, sprinting, walking, swimming, cycling, standing, etc. Non-numeric data include letters, Boolean data, etc.

[0081] Since the first variability feature includes numerical data and the first motion state is non-numerical data, numerical data and non-numerical data are heterogeneous data. If the numerical data and non-numerical data are simultaneously input into the classifier, information loss in the non-numerical data will be caused.

[0082] Therefore, unsupervised feature transformation (UFT) can be used to process the first motion state, and the first motion state can be converted into a numerical feature without information loss. Specifically, the first motion state can be converted into a second motion state represented by a numerical value. The second motion state is a continuous numerical feature. The numerical feature can be 0.75, 1, 1.2, etc., which can be used to compare sizes. There is no information loss between the first motion state and the second motion state, and the information loss can be measured by the entropy of the feature. In the unsupervised feature conversion process, the conversion can be completed without using category labels, and the deviation introduced by the category labels can be reduced.

[0083] After the first motion state is converted into the second motion state represented by numerical features through unsupervised feature conversion, the features input into the classifier are all numerical features, so that non-numerical features can be avoided from being eliminated when they are input into the classifier together with numerical features.

[0084] 204. Process the first variability feature and the second motion state represented by the numerical feature through the classification model to obtain the first emotional state corresponding to one or more time points within the detection time period output by the classification model.

[0085] The classification model may be a SVM classifier or a Bayesian classifier, etc., and is not specifically limited. The classification model may be used for emotion recognition.

[0086] In some embodiments, a second motion state represented by a numerical feature is represented by multiple first numerical values ​​with a Gaussian distribution; the multiple first numerical values ​​and / or first variability characteristics included in the second motion state are standardized to obtain a third motion state and a second variability characteristic with a consistent value range; the third motion state is represented by multiple second numerical values ​​with a Gaussian distribution; and the third motion state and the second variability characteristic with a consistent value range are processed by a classification model.

[0087] The third motion state is the standardized second motion state; the second numerical value is the standardized numerical value corresponding to the first numerical value. The second variability feature is the standardized first variability feature. Standardizing the numerical data input to the classification model can scale the numerical data input to the classification model to fall into a unified specific interval, which is conducive to improving the speed of the classification model in the learning stage. Optionally, in addition to standardization, the data input to the classification model can also be normalized and regularized, without specific limitation.

[0088] In some optional embodiments, only the second motion state may be standardized, in which case the second variability feature is the same as the first variability feature.

[0089] In other optional embodiments, only the first variability feature may be standardized, in which case the second motion state and the third motion state are the same; when the first variability feature includes a first respiratory variability feature group and a first heart rate variability feature group, at least one of the first respiratory variability feature group and the first heart rate variability feature group may be standardized.

[0090] 205. Process the third motion state and the second variability feature with consistent value ranges through the classification model to obtain the first emotional state corresponding to one or more time points within the detection time period output by the classification model.

[0091] Traditional machine learning algorithms all collect time-synchronized physiological data, and do not collect time-asynchronous data. In the embodiment of the present application, the moment of acquiring the first motion state is earlier than the moment of acquiring the vital sign data. By inputting the time-asynchronous data into the classification model, the recognition performance of the classification model is improved. In addition, in order to avoid the information loss of non-numerical data caused by simultaneously inputting numerical data and non-numerical data into the classification model, the non-numerical data is processed by unsupervised feature conversion, that is, the first motion state is converted into a second motion state represented by a numerical feature, which can make full use of the user's motion state information to identify emotions and improve the accuracy of emotion recognition.

[0092] See also Figure 3 , Figure 3 It is a flowchart of another emotion recognition method disclosed in an embodiment of the present application.

[0093] 301. Obtain vital sign data of a user corresponding to a first moment, and obtain a first motion state of the user corresponding to a second moment.

[0094] 302. Extract a first variability feature from the vital sign data.

[0095] 303. Obtain first emotional states corresponding to multiple time points within a detection time period according to the first variability feature and the first motion state.

[0096] 304. Calculate transition probabilities corresponding to the first emotional states at multiple time points respectively through a filtering model.

[0097] The first emotional states corresponding to each time point in the detection time period can be used to generate a state sequence in chronological order and input into the filtering model. The filtering model can filter the sudden emotional states in the state sequence.

[0098] The filtering model may be a statistical model, through which the transition probabilities corresponding to the various first emotional states may be calculated. The transition probabilities are used to indicate the similarities between the various first emotional states. The higher the transition probability of the first emotional state, the higher the similarity between the first emotional state and the various first emotional states. Optionally, the filtering model may be a hidden Markov chain.

[0099] 305. Determine, through a filtering model, a first emotional state corresponding to a plurality of time points, whose corresponding transition probability is lower than a first threshold, as a sudden emotional state.

[0100] The first threshold is a boundary for defining whether the first emotional state is a sudden emotional state. The transition probability corresponding to the first emotional state is lower than the first threshold, indicating that the similarity between the first emotional state and each first emotional state is very low. Exemplarily, the first emotional state at time point A is A1, the first emotional state at time point B is B1, and the first emotional state at time point C is C1. Time point A is before time point B, and time point C is after time point B. If the transition probability corresponding to B1 is lower than the first threshold, it means that B1 is different from A1 and C1, but A1 is the same as C1. It means that B1 is a sudden emotional state. The sudden emotional state is different from each first emotional state before and after the time point of the sudden emotional state. For example, the emotional state of a person in a time period is "happy", but the emotional state corresponding to a time point in the middle of this time period is "angry", which means that the emotional state of "anger" is a wrong judgment, because according to common sense, it is almost impossible for a person to have such a sudden emotional state.

[0101] 306. Filter the sudden emotional states within the detection time period through the filtering model to output second emotional states corresponding to other time points within the detection time period except the time point corresponding to the sudden emotional state.

[0102] The second emotional state is the emotional state after filtering the sudden emotional state existing in the first emotional state. Filtering the sudden emotional state means deleting the time point corresponding to the sudden emotional state, so the second emotional state corresponds to other time points in the detection time period except the time point corresponding to the sudden emotional state.

[0103] The embodiment of the present application filters the sudden emotional states present in the first emotional state output by the classification model through a filtering model, thereby reducing the probability of misjudgment of emotions and improving the accuracy of emotion recognition.

[0104] See also Figure 4 , Figure 4 It is a flowchart of another emotion recognition method disclosed in an embodiment of the present application.

[0105] 401. Detect the user's activity status.

[0106] Activity states can be divided into resting states and moving states. Resting states can refer to the physiological state of a user when he / she is not exercising, such as when he / she is sitting still, sleeping, or resting; moving states can refer to the physiological state of a user when he / she is exercising, such as when he / she is walking, running, or other exercising states.

[0107] The target duration can be 5 minutes, but there is no specific limitation. The activity state can be characterized by the acceleration signal collected by the acceleration sensor. For example, the acceleration signal within 5 minutes is obtained from the wearable device, and the combined acceleration is calculated. If the combined acceleration remains above the motion threshold for 80% of the time within 5 minutes, it is determined to be a motion state; otherwise, it is a resting state.

[0108] 402. When the activity state is a motion state, re-detect the activity state of the user until the activity state is a resting state.

[0109] 403. When the activity state is a resting state, obtain vital sign data of the user corresponding to a first moment, and obtain a first motion state of the user corresponding to a second moment.

[0110] The vital signs data obtained in a resting state can more accurately reflect the user's physiological and mental health, such as breathing signals and heart rate signals. Ensuring that users obtain breathing signals and heart rate signals in a resting state can eliminate the misjudgment of the user's health status due to phenomena such as rapid breathing and increased heart rate during exercise, and in a resting state, more attention can be paid to the impact of emotions on vital signs data.

[0111] 404. Extract a first variability feature from the vital sign data.

[0112] 405. Obtain a first emotional state corresponding to one or more time points within a detection time period according to the first variability feature and the first motion state.

[0113] The embodiments of the present application can ensure that breathing signals and heart rate signals are obtained when the user is in a resting state, and focus more on the impact of emotions on breathing signals and heart rate signals, thereby improving the accuracy of emotion recognition.

[0114] See also Figure 5 , Figure 5It is a flow chart of another emotion recognition method disclosed in an embodiment of the present application. First, the acceleration signal of the user within 5 minutes (min) is detected, and the combined acceleration is calculated through the acceleration signal. The combined acceleration is used to judge the state of the user. If the user is in motion, the process goes back to re-acquire the acceleration signal within the next 5 minutes (min), and the motion state is identified using the acceleration signal to obtain the first motion state. If the user is in a resting state, the PPG signal within 5 minutes (min) is obtained, the breathing signal is separated from the PPG signal, and the peak-to-peak interval PPI is extracted from the pulse rhythm in the PPG signal by template matching. Statistical features, frequency domain features and nonlinear features are extracted from the peak-to-peak interval PPI; and a respiratory variability feature group is extracted from the respiratory signal. The first motion state, statistical features, frequency domain features, nonlinear features, and respiratory variability feature group are input into the emotion state recognition SVM classifier, and the state output by the SVM classifier is filtered through a hidden Markov chain to finally obtain the user's emotional state.

[0115] In some optional implementations, the wearable device can exchange information with a connected or bound mobile phone, tablet computer, or wearable device terminal. For example, the wearable device user is a child, and the terminal user connected or bound to the wearable device is the child's parent or teacher. The wearable device can detect the child's emotional state in real time, so that parents or teachers can understand the child's emotional state in a timely manner and adjust school and family activities to deal with negative emotions.

[0116] Children who are in a positive and active emotional state for a long time will develop positive and sunny personality traits; conversely, children who are in a negative and depressed emotional state for a long time will develop introverted and depressed personality traits. Introverted and depressed personality traits are more likely to cause psychological illness in children, thus affecting their physical and mental health. The embodiment of the present application can accurately identify the emotional state of children, allowing parents or teachers to know the emotional development of children during their growth.

[0117] See also Figure 6 , Figure 6 Schematic diagram of the structure of an emotion recognition device disclosed in the embodiment of the present application. The device can be applied to wearable devices, without specific limitation. Figure 6 As shown, the emotion recognition device 600 may include: an acquisition module 610 , a feature module 620 , and a state module 640 .

[0118] The acquisition module 610 is used to acquire the vital sign data corresponding to the user at a first moment, and acquire the first motion state corresponding to the user at a second moment; the second moment is earlier than the first moment; the first motion state is determined according to the user motion information corresponding to the user at the second moment;

[0119] A feature module 620, for extracting a first variability feature from the vital sign data;

[0120] The state module 630 is used to obtain a first emotional state corresponding to one or more time points within a detection time period according to the first variability feature and the first motion state.

[0121] In one embodiment, the vital sign data includes a heart rate signal and a breathing signal; the feature module 620 may include: a first parsing unit, a second parsing unit;

[0122] A first analysis unit, configured to extract a first respiratory variability feature group from the respiratory signal by analyzing the respiratory signal; the first respiratory variability feature group includes one or more respiratory statistical features;

[0123] The second analysis unit is used to extract a first heart rate variability feature group from the heart rate signal by analyzing the heart rate signal; the first heart rate variability feature group includes at least one of the following features: heart rate statistical features in the time domain, frequency domain features in the frequency domain, and nonlinear features in the nonlinear domain.

[0124] In one embodiment, the state module 630 is further used to process the first variability feature and the first motion state through a classification model to obtain a first emotional state corresponding to one or more time points within the detection time period output by the classification model.

[0125] In one embodiment, the state module 630 is also used to convert the first motion state into a numerical feature to obtain a second motion state represented by the numerical feature; the first variability feature and the second motion state represented by the numerical feature are processed by a classification model to obtain a first emotional state corresponding to one or more time points within the detection time period output by the classification model.

[0126] In one embodiment, the state module 630 represents the second motion state represented by numerical features by multiple first numerical values ​​with Gaussian distribution; the state module 630 is also used to standardize the multiple first numerical values ​​and / or first variability features included in the second motion state to obtain a third motion state and a second variability feature with a consistent value range; the third motion state is represented by multiple second numerical values ​​with Gaussian distribution; the third motion state and the second variability feature with a consistent value range are processed by a classification model.

[0127] In one embodiment, the emotion recognition device 600 further includes a filtering unit;

[0128] A filtering unit, used to calculate the transition probabilities corresponding to the first emotional states corresponding to multiple time points respectively through a filtering model; the transition probabilities are used to indicate the similarities between the first emotional states;

[0129] Determine, by filtering the model, among the first emotional states corresponding to the multiple time points, the first emotional state whose corresponding transition probability is lower than the first threshold as a sudden emotional state;

[0130] The sudden emotional states within the detection time period are filtered through the filtering model to output the second emotional states corresponding to other time points within the detection time period except the time points corresponding to the sudden emotional states.

[0131] In one embodiment, the acquisition module 610 is further used to detect the activity status of the user;

[0132] When the activity state is a resting state, vital sign data corresponding to the user at a first moment is obtained.

[0133] In one embodiment, when the activity state is a motion state, the acquisition module 610 re-detects the activity state of the user until the activity state is a resting state.

[0134] See also Figure 7 , Figure 7 is a schematic diagram of the structure of a wearable device disclosed in an embodiment of the present application. Figure 7 As shown, the electronic device 700 may include:

[0135] A memory 710 storing executable program codes;

[0136] a processor 720 coupled to the memory 710;

[0137] The processor 720 calls the executable program code stored in the memory 710 to execute any emotion recognition method disclosed in the embodiments of the present application.

[0138] An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by the processor, the processor implements any one of the emotion recognition methods disclosed in the embodiment of the present application.

[0139] It should be understood that the "one embodiment" or "an embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. Those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required for the present application.

[0140] In the various embodiments of the present application, it should be understood that the size of the serial numbers of the above-mentioned processes does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0141] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0142] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0143] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several requests for a computer device (which can be a personal computer, a server or a network device, etc., specifically a processor in a computer device) to perform some or all of the steps of the above-mentioned methods of various embodiments of the present application.

[0144] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

[0145] The above is a detailed introduction to an emotion recognition method, apparatus, wearable device and storage medium disclosed in the embodiments of the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for those of ordinary skill in the art, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. An emotion recognition method, characterized in that: Applied to a wearable device, the method comprises: Acquire vital sign data of a user corresponding to a first moment, and acquire a first motion state of the user corresponding to a second moment; the second moment is earlier than the first moment; the first motion state is determined according to user motion information corresponding to the user at the second moment; extracting a first variability feature from the vital sign data; A first emotional state corresponding to one or more time points within a detection time period is obtained according to the first variability feature and the first motion state.

2. The method according to claim 1, characterized in that The vital sign data includes a heart rate signal and a respiratory signal; and extracting a first variability feature from the vital sign data includes: Extracting a first respiratory variability feature group from the respiratory signal by analyzing the respiratory signal; the first respiratory variability feature group includes one or more respiratory statistical features; A first heart rate variability feature group is extracted from the heart rate signal by analyzing the heart rate signal; the first heart rate variability feature group includes at least one of the following features: heart rate statistical features in the time domain, frequency domain features in the frequency domain, and nonlinear features in the nonlinear domain.

3. The method according to claim 1, characterized in that The obtaining, according to the first variability feature and the first motion state, a first emotional state corresponding to one or more time points within a detection time period includes: The first variability feature and the first motion state are processed by a classification model to obtain a first emotional state corresponding to one or more time points within the detection time period output by the classification model.

4. The method according to claim 3, characterized in that Before processing the first variability feature and the first motion state by the classification model, the method further includes: Converting the first motion state into a numerical feature to obtain a second motion state represented by the numerical feature; The processing of the first variability feature and the first motion state by a classification model to obtain a first emotional state corresponding to one or more time points within the detection time period output by the classification model includes: The first variability feature and the second motion state represented by the numerical feature are processed by a classification model to obtain a first emotional state corresponding to one or more time points within the detection time period output by the classification model.

5. The method according to claim 4, characterized in that The second motion state represented by the numerical feature is represented by a plurality of first numerical values ​​in Gaussian distribution; The processing of the first variability feature and the second motion state represented by the numerical feature by the classification model includes: Standardizing the plurality of first values ​​and / or the first variability feature included in the second motion state to obtain a third motion state and a second variability feature having a consistent value range; the third motion state is represented by a plurality of second values ​​in a Gaussian distribution; The third motion state and the second variability feature with consistent value ranges are processed through a classification model.

6. The method according to claim 1, characterized in that After obtaining the first emotional state corresponding to a plurality of time points within the detection time period, the method further includes: Calculating the transition probabilities corresponding to the first emotional states corresponding to the multiple time points respectively through the filtering model; the transition probabilities are used to indicate the similarity between the first emotional states; Determine, by using the filtering model, among the first emotional states corresponding to the multiple time points, the first emotional state whose corresponding transition probability is lower than the first threshold as a sudden emotional state; The sudden emotional state within the detection time period is filtered by the filtering model to output a second emotional state corresponding to other time points within the detection time period except the time point corresponding to the sudden emotional state.

7. The method according to claim 1, characterized in that The obtaining of the vital sign data of the user corresponding to the first moment includes: Detect user activity status; When the activity state is a resting state, vital sign data corresponding to the user at a first moment is obtained.

8. The method according to claim 7, characterized in that After detecting the activity state of the user, the method further includes: When the activity state is a motion state, the activity state of the user is re-detected until the activity state is a resting state.

9. An emotion recognition device, characterized in that: include: An acquisition module, used to acquire the vital sign data of the user corresponding to the first moment, and acquire the first motion state of the user corresponding to the second moment; The second moment is earlier than the first moment; the first motion state is determined according to user motion information corresponding to the user at the second moment; A feature module, configured to extract a first variability feature from the vital sign data; A state module is used to obtain a first emotional state corresponding to one or more time points within a detection time period according to the first variability feature and the first motion state.

10. A wearable device, characterized in that: The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements the method according to any one of claims 1 to 8.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.