WO2023103512A1 - Emotion monitoring method and emotion monitoring apparatus - Google Patents

Emotion monitoring method and emotion monitoring apparatus Download PDF

Info

Publication number
WO2023103512A1
WO2023103512A1 PCT/CN2022/119258 CN2022119258W WO2023103512A1 WO 2023103512 A1 WO2023103512 A1 WO 2023103512A1 CN 2022119258 W CN2022119258 W CN 2022119258W WO 2023103512 A1 WO2023103512 A1 WO 2023103512A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
time period
emotion
signal
emotional
Prior art date
Application number
PCT/CN2022/119258
Other languages
French (fr)
Chinese (zh)
Inventor
邸皓轩
李丹洪
张晓武
Original Assignee
荣耀终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Publication of WO2023103512A1 publication Critical patent/WO2023103512A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/16Devices for psychotechnics; Testing reaction times ; Devices for evaluating the psychological state
    • A61B5/165Evaluating the state of mind, e.g. depression, anxiety
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/02Detecting, measuring or recording pulse, heart rate, blood pressure or blood flow; Combined pulse/heart-rate/blood pressure determination; Evaluating a cardiovascular condition not otherwise provided for, e.g. using combinations of techniques provided for in this group with electrocardiography or electroauscultation; Heart catheters for measuring blood pressure
    • A61B5/0205Simultaneously evaluating both cardiovascular conditions and different types of body conditions, e.g. heart and respiratory condition

Definitions

  • the present application relates to the field of terminal equipment, and more specifically, to an emotion monitoring method and an emotion monitoring device.
  • emotion monitoring is mainly based on the measurement of physiological signals.
  • PPG photoplethysmography
  • PRV pulse rate variability
  • the present application provides an emotion monitoring method and an emotion monitoring device, which are beneficial to improving the accuracy of emotion recognition.
  • an emotion monitoring method is provided, which is applied to a terminal device equipped with a pulse wave sensor, an electromyographic electrode sensor, and an acceleration sensor.
  • the method comprises: acquiring the user's photoplethysmography PPG signal in real time through the pulse wave sensor, acquiring the user's surface electromyography (surface electromyography, SEMG) signal in real time through the myoelectric electrode sensor, and acquiring the user's ACC signal in real time through the acceleration sensor .
  • SEMG surface electromyography
  • the classification results of the user's emotions at multiple moments in the first time period are counted, and the classification results include positive emotions, calm emotions or negative emotions.
  • an evaluation result of the user's emotional state in the first time period is determined.
  • the sleep quality evaluation result of the user in the first time period is determined. According to the emotional state evaluation results and the sleep quality evaluation results, it is determined whether to carry out emotional early warning.
  • the terminal device can combine the user's PPG signal, SEMG signal, ACC signal, age information and gender information to obtain the user's emotional state evaluation result in the first time period, and combine the PPG signal, ACC signal, user's age information and The user's gender information, determine the user's sleep quality evaluation results in the first time period, and comprehensively consider the user's emotions according to the user's emotional state evaluation results and sleep quality evaluation results in the first time period, which is conducive to improving the accuracy of emotion recognition rate to provide users with better mental health services.
  • the classification results of user emotions at multiple moments within the first time period are counted , including: performing feature extraction on the PPG signal, SEMG signal, age information of the user, and gender information of the user at the first moment among the plurality of moments, to obtain multiple sets of biometric features of the user at the first moment.
  • Feature fusion is performed on multiple sets of biometric features at the first moment to obtain the fused features of the user at the first moment. Based on the fusion features at the first moment, the classification result of the user's emotion at the first moment is obtained.
  • the terminal device can obtain multiple sets of biometric features of the user at the first moment through feature extraction, and the interpretability and representation ability of the fused features are strong. Emotion recognition based on the fused features is conducive to improving the accuracy of emotion recognition. Rate.
  • feature fusion is performed on multiple sets of biometric features at the first moment to obtain the fused features of the user at the first moment, including: calculating multiple sets of biometric features through the flexible maximum transfer function The weight of each set of biometrics in biometrics. According to each set of biometric features and the weight of each set of biometric features, the fusion features of the user at the first moment are obtained.
  • the multiple sets of biological characteristics include at least one of the following: heart rate characteristics, breathing characteristics, blood oxygen characteristics, blood sugar characteristics, blood pressure characteristics, or epidermal electromyography characteristics.
  • determining the user's emotional state evaluation results in the first time period includes: The number of negative emotions of the user in the first time period and the duration of each negative emotion are obtained from the classification results of emotions at multiple moments. Based on the number of times of negative emotions and the duration of each negative emotion, an evaluation result of the user's emotional state in the first time period is determined.
  • the terminal device can obtain the number of negative emotions of the user in the first period of time and the duration of each negative emotion. The longer the accumulated negative emotion time, the lower the emotional state evaluation score, which is conducive to accurate evaluation of the user. Emotions are assessed during the first time period.
  • combining the PPG signal, the ACC signal, the user's age information, and the user's gender information to determine the user's sleep quality evaluation result in the first time period including: based on ACC
  • the component of the signal on the coordinate axis is used to obtain the number of sleep interruptions of the user in the first time period.
  • the heart rate change information of the user in the first time period is acquired.
  • the user's total sleep duration, deep sleep duration, and light sleep duration in the first period of time are obtained.
  • the user's sleep evaluation result in the first time period is determined.
  • the terminal device obtains the user's sleep evaluation result by collecting the user's heart rate change information during the sleep period, and the sleep evaluation result is conducive to improving the accuracy of emotion recognition. .
  • determining whether to perform an emotional early warning according to the emotional state evaluation result and the sleep quality evaluation result includes: obtaining the Describe the emotion monitoring results of the first time period. When the emotion monitoring result satisfies the preset condition, it is determined to carry out an emotion early warning.
  • the terminal device can give the user an emotional warning, which is conducive to paying attention to the user's mental health in a timely manner and improving the user's usage. experience.
  • the user's emotional monitoring results in the first time period are obtained, including: quantified values of the emotional state evaluation results
  • the weighted summation is performed with the quantified value of the sleep quality evaluation result to obtain the user's emotional score in the first time period.
  • determining to perform an emotional early warning includes: determining to perform an emotional early warning when the emotional score is less than or equal to a preset threshold.
  • the user's emotional age is determined according to the user's emotion monitoring results in the first time period, the number of negative emotions, and the user's age information. At least one of emotional age, emotional monitoring results, or emotional statements is displayed.
  • the terminal device may display at least one of emotional age, emotion monitoring results, or emotional statements to the user, which is beneficial for the user to adjust emotion.
  • peaks and valleys of the ACC signal are obtained. According to the peak and trough of the ACC signal, it is determined whether the user is in a non-exercise state.
  • Combining PPG signal, SEMG signal, user's age information and user's gender information, counting the classification results of user's emotions at multiple moments in the first time period including: combining PPG signal when the user is in a non-exercising state , SEMG signal, age information of the user, and gender information of the user, and the classification results of the user's emotions at multiple moments in the first time period are counted.
  • the terminal device can judge whether the user is in a non-motion state through the ACC signal, and if the user is in a motion state, the collected PPG signal and The SEMG signal is an invalid signal and needs to be collected again, which is conducive to obtaining effective PPG signals and SEMG signals and improving the accuracy of emotion recognition.
  • an emotion monitoring device including: for performing the method in any possible implementation manner of the above first aspect.
  • the apparatus includes a module configured to execute the method in any possible implementation manner of the foregoing first aspect.
  • another emotion monitoring device including a processor, the processor is coupled to a memory, and can be used to execute instructions in the memory, so as to implement the method in any possible implementation manner of the above first aspect.
  • the device further includes a memory.
  • the device further includes a communication interface, and the processor is coupled to the communication interface.
  • the emotion monitoring apparatus is a terminal device.
  • the communication interface may be a transceiver, or an input/output interface.
  • the emotion monitoring device is a chip configured in a terminal device.
  • the communication interface may be an input/output interface.
  • a processor including: an input circuit, an output circuit, and a processing circuit.
  • the processing circuit is configured to receive a signal through the input circuit and transmit a signal through the output circuit, so that the processor executes the method in any possible implementation manner of the first aspect above.
  • the above-mentioned processor can be a chip
  • the input circuit can be an input pin
  • the output circuit can be an output pin
  • the processing circuit can be a transistor, a gate circuit, a flip-flop, and various logic circuits.
  • the input signal received by the input circuit may be received and input by, for example but not limited to, the receiver
  • the output signal of the output circuit may be, for example but not limited to, output to the transmitter and transmitted by the transmitter
  • the circuit may be the same circuit, which is used as an input circuit and an output circuit respectively at different times.
  • the present application does not limit the specific implementation manners of the processor and various circuits.
  • a processing device including a processor and a memory.
  • the processor is used to read instructions stored in the memory, and may receive signals through the receiver and transmit signals through the transmitter, so as to execute the method in any possible implementation manner of the first aspect above.
  • processors there are one or more processors, and one or more memories.
  • the memory may be integrated with the processor, or the memory may be separated from the processor.
  • the memory can be a non-transitory (non-transitory) memory, such as a read-only memory (read only memory, ROM), which can be integrated with the processor on the same chip, or can be set in different On the chip, the application does not limit the type of the memory and the arrangement of the memory and the processor.
  • a non-transitory memory such as a read-only memory (read only memory, ROM)
  • ROM read only memory
  • a related data interaction process such as sending indication information may be a process of outputting indication information from a processor
  • receiving capability information may be a process of receiving input capability information from a processor.
  • processed output data may be output to the transmitter, and input data received by the processor may be from the receiver.
  • the transmitter and the receiver may be collectively referred to as a transceiver.
  • the processing device in the fifth aspect above can be a chip, and the processor can be implemented by hardware or by software.
  • the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software
  • the processor may be a general-purpose processor, which is realized by reading the software code stored in the memory, and the memory may be integrated in the processor, or it may be located outside the processor and exist independently.
  • a computer program product includes: a computer program (also referred to as code, or instruction), which, when the computer program is run, causes the computer to perform any one of the possible implementations in the first aspect above. methods in methods.
  • a computer program also referred to as code, or instruction
  • a computer-readable storage medium stores a computer program (also referred to as code, or an instruction) which, when run on a computer, enables the computer to execute the above-mentioned first aspect.
  • a computer program also referred to as code, or an instruction
  • FIG. 1 is a schematic diagram of a terminal device applicable to an embodiment of the present application
  • FIG. 2 is a schematic diagram of a physical structure of a terminal device provided in an embodiment of the present application
  • Fig. 3 is a schematic flow chart of an emotion monitoring method provided by an embodiment of the present application.
  • Fig. 4 is a schematic diagram of an emotion classification process provided by an embodiment of the present application.
  • Fig. 5 is a curve diagram of heart rate changes during sleep according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a system architecture of a terminal device provided in an embodiment of the present application.
  • FIG. 7 is a schematic interface diagram of a terminal device provided in an embodiment of the present application.
  • FIG. 8 is a schematic waveform diagram of an ACC signal provided by an embodiment of the present application.
  • Fig. 9 is a schematic flow chart of another emotion monitoring method provided by the embodiment of the present application.
  • Fig. 10 is a schematic block diagram of an emotion monitoring device provided by an embodiment of the present application.
  • Fig. 11 is a schematic block diagram of another emotion monitoring device provided by an embodiment of the present application.
  • each term and English abbreviation such as PPG signal, ACC signal, pulse wave sensor, etc.
  • PPG signal PPG signal
  • ACC signal ACC signal
  • pulse wave sensor etc.
  • At least one means one or more, and “multiple” means two or more.
  • “And/or” describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist at the same time, and B exists alone, where A, B can be singular or plural.
  • the character “/” generally indicates that the contextual objects are an “or” relationship.
  • “At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items.
  • At least one (one) of a, b and c may represent: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c, wherein a, b, c can be single or multiple.
  • emotions can be divided into three categories: calm, positive, and negative.
  • Positive emotions can include excitement, relaxation, surprise, surprise, etc.
  • negative emotions can include anxiety, tension, anger, frustration, sadness, pain, etc.
  • Emotional age is a measure that marks the level of emotional development. Different age groups may correspond to different levels of emotional development. A person's emotions are consistent with the emotional expression at what age, that is, he has a corresponding emotional age. Generally speaking, people's emotional management ability tends to gradually increase with age, and gradually grows from childhood naughtiness, childhood honesty, youth vigor, and adult perseverance, to middle age and old age. However, although some people are gradually growing and maturing physically, their hearts have not matured. Therefore, according to the time law of the development of emotional quotient (EQ), we can try to use a standard for classifying emotional control ability according to age to measure a person's emotional age. Table 1 is an exemplary EQ comparison table.
  • the emotional age can be summarized into four periods: childish period, active period, stable period and wisdom period.
  • the active period corresponds to the second grade in Table 1. During this period, emotions are easily affected by studies, love affairs, and family relationships. Negative emotions are easily aroused and last for a long time, and they have a certain ability to self-regulate.
  • the stable period corresponds to the third and fourth grades in Table 1. During this period, students know how to restrain their emotions, are not easy to arouse negative emotions, and have strong control ability.
  • the wisdom period corresponds to the fifth, sixth and seventh grades in Table 1, and the mood changes little during this period.
  • Gender differences can also bring about emotional differences. Studies have found that women are more emotionally expressive than men, that is, women tend to exaggerate the emotions they feel, and men's heart rate changes are more obvious when they are emotional, which means that men are more sensitive to emotions. The intensity of experience is greater and more affected by emotions, but they are reluctant to express it for various reasons.
  • Emotions may lead to some physiological reactions, such as changes in autonomic nerve activity, including frequency of breathing, speed of exhalation and inhalation, quality of respiration, heart rate, blood vessel volume, blood pressure, skin electricity, endocrine glands, etc.
  • brain wave changes, for example, ⁇ wave, ⁇ wave, ⁇ wave, ⁇ wave change with emotion, and ⁇ wave changes the most.
  • emotions may also cause adverse reactions such as dizziness and pain.
  • breathing changes under different emotions: Exemplarily, breathing is 20 breaths/minute when calm. Compared with calm emotions, when happy, the breathing depth is not large, the frequency is slightly faster, and the rhythm is relatively regular. Exemplarily, the breathing is 23 breaths/minute when calm. When sad, the respiratory rate is very slow, and the interval is long, for example, the breathing rate is 9 breaths/minute when sad. When in fear, the breathing rate is very fast, there are intermittent and pauses, the amplitude is irregular, and the trembling state is present. Exemplarily, the breathing rate is 64 times/min when in fear. When angry, the breathing rate increases, and the breathing depth increases sharply. Exemplarily, the breathing rate is 40 breaths/minute when angry.
  • Heart rate changes under different emotions: the heart rate is 60-80 beats per minute when the mood is calm, and the heart rate is accelerated by the influence of adrenal hormones when the mood is happy, but the rhythm is regular.
  • the heart beats faster, the arteries constrict, and in severe cases, there is arrhythmia. Rapid heartbeat during fear, accompanied by arrhythmia.
  • the heart beats faster, and there is a feeling of palpitation and palpitation.
  • Negative emotions can cause muscles to tense and contract. Negative emotions can lead to poor sleep quality, difficulty falling asleep, and dreaminess.
  • photoplethysmography photo plethysmo graphic, PPG
  • blood glucose monitoring can be based on infrared light with a wavelength range of 1250-1333 nm, 1600-1666 nm or 2025 nm.
  • the heart rate can be calculated according to the timing peak and frequency domain characteristics obtained from the PPG signal.
  • blood oxygen saturation can be judged based on the information of infrared (600nm-800nm) and near-infrared (800nm-1000nm) light respectively detected to detect oxygenated hemoglobin HbO2 and hemoglobin Hb so as to monitor blood oxygen.
  • infrared 600nm-800nm
  • near-infrared 800nm-1000nm
  • the pulse wave transmission speed of the pulse wave is directly related to the blood pressure
  • the pulse wave transmission is fast when the blood pressure is high
  • the pulse wave transmission is slow when the blood pressure is low. Therefore, the systolic and diastolic blood pressure of the human pulse wave can be estimated by establishing the characteristic equation, so as to realize non-invasive continuous blood pressure monitoring.
  • the respiratory signal may be extracted through wavelet decomposition or empirical mode decomposition (empirical mode decomposition, EMD) of the PPG signal.
  • EMD empirical mode decomposition
  • FIG. 1 is a schematic diagram of a hardware structure of a terminal device 100 applicable to an embodiment of the present application.
  • the terminal device 100 includes a pulse wave sensor 101 , a myoelectric electrode sensor 102 , an acceleration sensor 103 and a signal processing unit 104 .
  • the pulse wave sensor 101 obtains the user's PPG signal, and sends the pulse wave signal to the signal processing unit 104 .
  • the myoelectric electrode sensor 102 is used to obtain the user's SEMG signal, and send the SEMG signal to the signal processing unit 104 .
  • the acceleration sensor 103 is used to obtain the user's ACC signal, and send the ACC signal to the signal processing unit 104 .
  • the signal processing unit 104 is used to receive PPG signals, SEMG signals, and ACC signals to monitor and identify user emotions.
  • the terminal device 100 may further include a display 105 , a storage unit 106 , interactive hardware 107 , a wireless unit 108 and a battery 109 .
  • the user may perform operations such as touch on the terminal device 100 through the interactive hardware 107 to realize the interactive operation between the user and the terminal device 100 .
  • the signal processing unit 104 obtains the user's emotion monitoring result, it can display the emotion monitoring result to the user through the display 105 , and store the emotion monitoring result in the storage unit 106 .
  • the signal processing unit 104 may also send the emotion monitoring result to other terminal devices associated with the terminal device 100 or to the cloud through the wireless unit 108 .
  • the terminal equipment in the embodiment of the present application may refer to user equipment, access terminal, subscriber unit, subscriber station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, wireless communication device, user agent or user device .
  • the terminal in the embodiment of the present application may be a mobile phone, a tablet computer (pad), a computer with a wireless transceiver function, a virtual reality (virtual reality, VR) terminal, an augmented reality (augmented reality, AR) terminal, a hybrid Reality (mixed reality, MR) terminals, extended reality (extended reality, XR) terminals, holographic display terminals, wireless terminals in industrial control, wireless terminals in self driving, or connected to wireless Other processing equipment of the modem, vehicle equipment, terminals in the 5G network or terminals in the future evolution network, etc.
  • the terminal device may also be a wearable device.
  • Wearable devices can also be called wearable smart devices, which is a general term for the application of wearable technology to intelligently design daily wear and develop wearable devices, such as glasses, gloves, watches, clothing and shoes.
  • a wearable device is a portable device that is worn directly on the body or integrated into the user's clothing or accessories. Wearable devices are not only a hardware device, but also achieve powerful functions through software support, data interaction, and cloud interaction.
  • Generalized wearable smart devices include full-featured, large-sized, complete or partial functions without relying on smart phones, such as smart watches or smart glasses, etc., and only focus on a certain type of application functions, and need to cooperate with other devices such as smart phones Use, such as various smart bracelets and smart jewelry for physical sign monitoring.
  • the terminal device may also be a terminal device in an Internet of Things (internet of things, IoT) system.
  • IoT Internet of things
  • Its main technical feature is to connect objects to the network through communication technology, so as to realize the intelligent network of human-machine interconnection and object interconnection.
  • the present application does not limit the specific form of the terminal device.
  • the terminal device may be a device for realizing the function of the terminal device, or may be a device capable of supporting the terminal device to realize the function, such as a chip system, and the device may be installed in the terminal.
  • the system-on-a-chip may be composed of chips, or may include chips and other discrete devices.
  • FIG. 2 is a schematic diagram of a physical structure of a smart watch 200 provided by an embodiment of the present application.
  • the smart watch 200 includes a dial 201 and a strap 202 .
  • the pulse wave sensor 101 and the myoelectric electrode sensor 102 shown in FIG. 1 can be located at the bottom of the dial 201 , and the acceleration sensor 103 and the signal processing unit 104 can be located inside the dial 201 .
  • the user can wear the terminal device 100 on the wrist through the wristband 202 to collect the user's PPG signal, SEMG signal and ACC signal.
  • a display screen 105 is configured on the dial 201, and the user can input age information and/or gender information through a touch operation on the display screen 105, the PPG signal, SEMG signal, ACC signal collected by the terminal device, and the input user age Information and/or gender information may be stored in storage unit 106 .
  • orientation words such as “upper” and “bottom” used by the terminal device 100 shown in the embodiment of the present application are mainly used to describe the device, and they do not form a limitation on the orientation of the terminal device 100 in actual application scenarios. .
  • Fig. 3 is a schematic flowchart of an emotion monitoring method 300 provided by an embodiment of the present application.
  • the method 300 can be applied to a terminal device equipped with a pulse wave sensor, an electromyographic electrode sensor, and an acceleration sensor.
  • the hardware structure of the terminal device in the embodiment of the present application can be the same as the hardware structure of the terminal device 100 shown in FIG. 1 above, and the physical structure It may be the smart watch 200 shown in FIG. 2 , which is not limited in this embodiment of the present application.
  • Method 300 includes the following steps:
  • S305 Determine whether to perform an emotional warning according to the emotional state evaluation result and the sleep quality evaluation result.
  • the above-mentioned pulse wave sensor may be a PPG sensor, a pressure sensor or an ultrasonic sensor.
  • the PPG signal, the SEMG signal, the ACC signal, the age information of the user, and the gender information of the user may be collectively referred to as physiological signals.
  • the terminal device 100 may obtain the user's emotion classification results at multiple measurement moments within the first time period according to the collected user's PPG signal, SEMG signal, user's age information, and user's gender information.
  • the terminal device 100 can obtain the user's sleep quality evaluation result in the first time period according to the collected user's PPG signal, ACC signal, user's age information, and user's gender information, and combine the user's emotional state evaluation result in the first time period
  • the result and the sleep quality evaluation result together obtain the user's emotion monitoring result in the first time period.
  • the above emotion monitoring result combines PPG signal, SEMG signal, ACC signal, user's age information and user's gender information, and also considers the user's Therefore, it is beneficial to obtain more accurate emotional monitoring results, timely warn users of emotions, and then provide protection for users' mental health.
  • S302 includes: the PPG signal, the SEMG signal, the age information of the user, and the gender information of the user at the first moment among the multiple moments.
  • Feature extraction is performed on the PPG signal, the SEMG signal, the user's age information, and the user's gender information to obtain multiple sets of biometric features of the user at the first moment.
  • Feature fusion is performed on multiple sets of biometric features at the first moment to obtain the fused features of the user at the first moment. Based on the fusion feature at the first moment, the classification result of the user's emotion at the first moment is obtained.
  • the first moment among the multiple moments in the first time period is taken as an example to introduce the emotion classification process at the first moment. It should be understood that the first moment may be any of the multiple moments. At different moments, the user may be affected by the surrounding things to produce changes in behavior and emotion, so each moment has its corresponding PPG signal, SEMG signal and ACC signal.
  • the first time period is 24 hours, and the terminal device 100 can classify the user's emotions in this hour according to the collected physiological signals of the user every hour.
  • the multiple moments are 24 At this moment, the terminal device 100 can obtain 24 emotion classification results within the first time period.
  • positive emotions may be represented by a value of 1
  • calm emotions may be represented by a value of 0
  • negative emotions may be represented by a value of -1.
  • FIG. 4 is a schematic diagram of an emotion classification process provided by an embodiment of the present application.
  • FIG. 4 shows the emotion classification process at the first moment above.
  • the terminal device 100 can perform feature extraction on the collected SEMG signals, PPG signals, age information, and gender information to obtain multiple sets of biological features, and then perform feature fusion on multiple sets of biological features to obtain fusion features, and The fusion features are input into the classification network for classification, and the result of emotion classification is obtained.
  • the terminal device 100 performs feature extraction on the SEMG signal, including preprocessing the SEMG signal, to obtain a preprocessed SEMG signal.
  • the preprocessing of the SEMG signal may be filtering the SEMG signal by wavelet transform.
  • the biological feature obtained from the filtered SEMG signal may be referred to as an epidermal myoelectric feature.
  • the terminal device 100 performs feature extraction on the user's age information and gender information, including that the terminal device 100 performs preprocessing on the user's age information and gender information.
  • preprocessing the age information and gender information of the user may be performing numerical processing on the age information and gender information of the user.
  • the actual age of the user can be classified and then numerically processed.
  • 0-10 years old can be represented by the value 1
  • 11-20 years old can be represented by the value 2
  • 21-30 years old can be represented by the value 3.
  • 31-40 years old can be represented by the value 4
  • 41-50 years old can be represented by the value 5
  • 51-60 years old can be represented by the value 6
  • 61-70 years old can be represented by the value 7
  • those over 70 years old can be represented by the value 8.
  • a male can be represented by a value of 0, and a female can be represented by a value of 1.
  • the terminal device 100 performs feature extraction on the PPG signal, including preprocessing the PPG signal.
  • the terminal device 100 can input the preprocessed PPG signal to the feature extraction network for feature extraction to obtain multiple sets of biological features of the user, and can obtain the feature value corresponding to each set of biological features according to the user's biological feature regression.
  • the preprocessing of the PPG signal may be to filter the PPG signal, for example, wavelet transform is used to implement the filtering of the PPG signal.
  • the feature extraction network may perform signal decomposition and frequency domain signal transformation on the preprocessed PPG signal to extract biological features.
  • the terminal device 100 may detect the time domain feature of the preprocessed PPG signal, extract the time domain feature value and the optimal band of the preprocessed PPG signal, Perform waveform segmentation on the extracted optimal band to obtain multiple single-period waveforms, and perform sparse decomposition of the single-period waveform to obtain the atomic characteristic parameters of the signal.
  • frequency-domain signal transformation when performing frequency-domain signal transformation on the preprocessed PPG signal, for example, Fourier transform may be used to obtain the frequency-domain eigenvalue of the PPG signal.
  • the terminal device 100 may perform feature fusion on the atomic feature parameter feature, time domain feature value, frequency domain feature value and the preprocessed PPG signal.
  • feature fusion may be implemented by means of feature concatenation or feature summation.
  • the feature extraction network may be a sequential network, for example, a gated recurrent unit (GRU) network.
  • GRU is a deformed network structure of recurrent neural network (RNN), which can preserve the important characteristics of the input data through the gate function.
  • RNN recurrent neural network
  • at least one of the user's heart rate feature, breathing feature, blood oxygen feature, blood sugar feature, and blood pressure feature may be extracted through the feature extraction network.
  • performing feature fusion on multiple sets of biometric features at the first moment to obtain the fused features of the user at the first moment includes: calculating each of the multiple sets of biological features through a softmax function The weight of the group biometric. According to each set of biometric features and the weight of each set of biometric features, the fused features of the user at the first moment are obtained.
  • the terminal device 100 may perform feature fusion on the multiple sets of biometric features to obtain fused features.
  • the feature fusion in the embodiment of the present application is an adaptive feature fusion, and each set of biological features has a corresponding feature weight.
  • the feature weight is related to the sample, and the feature weight can be adjusted adaptively according to different samples, which is beneficial to obtain the importance of features of different dimensions, and makes the fusion feature more expressive.
  • the dimension of P is N*M, where * represents matrix multiplication.
  • the M*N-dimensional weight matrix F(W, P) is matrix-multiplied with the N*M-dimensional biological characteristic matrix P, so that each group of biological characteristics can be assigned a corresponding
  • S303 includes: obtaining the number of negative emotions of the user in the first time period and the duration of each negative emotion from the classification results of emotions at multiple moments. Based on the number of negative emotions and the duration of each negative emotion, the evaluation result of the user's emotional state in the first time period is determined.
  • the first time period is 24 hours, and the terminal device 100 performs emotion recognition on the user every hour
  • the first time period can be divided into 24 sub-time periods, and the duration of each sub-time period is 1 hour.
  • the terminal device 100 can obtain the emotion classification result of each sub-time period based on the PPG signal, SEMG signal, user's age information and gender information collected in each sub-time period, and express the emotion recognition results of these 24 sub-time periods in the form of a set as (0,0,0,0,1,0,0,0,0,-1,0,0,0,0,1,1,0,0,0,0,-1,-1,0,0,0, 1), where 0 indicates calm emotion, 1 indicates positive emotion, and -1 indicates negative emotion.
  • the terminal device 100 may acquire the number of times of negative emotions in the first time period from the set of emotion classification results. In this example, it can be seen that the user has three negative emotions in the first time period. Further, the terminal device 100 can obtain the information of each negative emotion according to changes in respiration, heart rate, blood pressure, blood sugar, blood oxygen, and electromyographic signals reflected in the PPG signal and SEMG signal collected in the sub-time period when the user appears negative emotion. Duration.
  • the terminal device 100 continuously acquires the PPG signal and the SEMG signal, and may perform feature extraction on the PPG signal and the SEMG signal every 1s, every 5s, or every 10s, starting at the initial moment when the terminal device 100 detects negative emotions.
  • the duration of the emotion begins to accumulate until the terminal device 100 detects no negative emotion, then the accumulated duration from the beginning moment when the terminal device 100 initially detects the negative emotion to the end moment when the terminal device does not detect the negative emotion is the negative emotion. Duration.
  • the evaluation result of the emotional state of the user in the first time period may be expressed in the form of scores.
  • the emotional state evaluation score score_e can be obtained by the following formula:
  • T represents the duration of the first time period
  • n represents the number of times negative emotions appear in the first time period
  • t i represents the duration of the i-th negative emotion.
  • the terminal device 100 may display real-time emotions obtained at each moment in the first time period to the user.
  • the real-time emotion may be expressed in the form of sentences or images, which is not limited in this embodiment of the present application.
  • the terminal device 100 may display "Keep a good mood!, “Good mood! Keep going!”, “Energetic day” or “I'm in a great mood ⁇ ” and so on.
  • the terminal device 100 may also display patterns such as “sun”, “like”, “applause” or “cheer”.
  • the terminal device 100 may display sentences such as "Come on, be happy!”, “Sunshine always comes after a storm” or “Dark clouds go away”.
  • the terminal device 100 may also display patterns such as "encouragement”, “encouragement” or “hug”, for example.
  • S304 includes: obtaining the number of sleep interruptions of the user in the first time period based on the components of the ACC signal on the coordinate axis.
  • the heart rate change information of the user in the first time period is acquired based on the PPG signal, and the total sleep duration, deep sleep duration, and light sleep time of the user in the first time period are obtained according to the heart rate change information.
  • the sleep evaluation result of the user in the first time period is determined.
  • the gravitational acceleration components of the ACC signal on the x-axis, y-axis and z-axis are different between the moving state and the non-moving state.
  • the value of the x-axis direction represents the horizontal movement of the terminal device 100
  • the value of the y-axis direction represents the vertical movement of the terminal device 100
  • the value of the z-axis direction represents the spatial vertical direction of the terminal device 100 .
  • the modulus value of the gravitational acceleration component of the ACC signal on the x-axis, y-axis and z-axis should be stable at about 9.8.
  • the terminal device 100 may consider that the user's sleep is interrupted.
  • Fig. 5 is a graph of changes in heart rate during sleep according to an embodiment of the present application.
  • the heart rate gradually decreases slowly.
  • the user starts to fall asleep at time t1, and is in a light sleep state during the period of time t1-t2, and the duration is denoted by T1 .
  • the user's heart rate tends to be stable, and the user is in a deep sleep state during the period of time t2-t3, and the duration is represented by T2 .
  • the heart rate is stable at 55-60 beats/min during deep sleep.
  • the user's heart rate begins to rise slowly, and the user is in a light sleep state during the period from t3 to t4.
  • the duration is represented by T3 until the user gradually wakes up at time t4.
  • the total sleep duration T_s T 1 +T 2 +T 3
  • the deep sleep duration T_d T 2
  • the user's sleep quality evaluation results in the first time period can be obtained.
  • the sleep quality evaluation result may be expressed in the form of scores, and the user's sleep quality evaluation score is recorded as score_s.
  • Table 2 shows a possible sleep quality assessment score.
  • a logical judgment code for obtaining sleep quality evaluation scores is schematically given below:
  • S305 includes: obtaining an emotion monitoring result of the user in the first time period according to the emotional state evaluation result and the sleep quality evaluation result. In the case that the emotion monitoring result satisfies the preset condition, it is determined to carry out an emotion early warning.
  • the user's emotional state evaluation results and sleep quality evaluation results can be combined to determine the user's emotion monitoring results in the first time period.
  • Such monitoring is more accurate and comprehensive, and is conducive to improving the accuracy of emotion recognition.
  • the terminal device 100 may quantify the emotional state evaluation result and the sleep quality evaluation result to obtain the emotional state evaluation score score_e and the sleep quality evaluation score score_s.
  • the terminal device 100 may perform weighted summation of the emotional state evaluation score score_e and the sleep quality evaluation score score_s to obtain the user's emotional score score_out in the first time period, and when the emotional score score_out is less than or equal to the third preset threshold, Be sure to give an emotional warning.
  • the sentiment score score_out can be obtained by the following formula:
  • represents the correction factor.
  • the value of ⁇ is 0.5.
  • the terminal device 100 may display early warning information to the user, and the early warning information carries the user's emotion monitoring results in the first time period. For example, the terminal device 100 displays the emotional score to the user, and displays the corresponding Emotional statements to remind users to pay attention to emotional health.
  • the terminal device 110 is a terminal device connected to the terminal device 100 through a network, for example, the terminal device 100 and the terminal device 110 are connected through Bluetooth.
  • the above warning information may include the user's PPG signal, ACC signal and SEMG signal
  • the terminal device 110 may combine the age information and gender information input by the user on the terminal device 110 according to the obtained PPG signal, ACC signal and SEMG signal , to obtain the user's emotion monitoring result, and display the emotion monitoring result and/or the corresponding emotional statement to the user so as to serve as an early warning to the user.
  • the early warning information may include the emotion monitoring results obtained by the terminal device 100 according to the user's PPG signal, ACC signal and SEMG signal, and the terminal device 110 may display the emotion monitoring results and/or corresponding emotional statements to the user to play a role in the user's actions.
  • the role of early warning may include the emotion monitoring results obtained by the terminal device 100 according to the user's PPG signal, ACC signal and SEMG signal, and the terminal device 110 may display the emotion monitoring results and/or corresponding emotional statements to the user to play a role in the user's actions. The role of early warning.
  • Table 3 shows possible display contents of the terminal device 100 or the terminal device 110 under different scores.
  • the emotional state evaluation results and the sleep quality evaluation results are presented in the form of evaluation grades.
  • the emotional state evaluation results and sleep quality evaluation results are divided into five levels: A, B, C, D, and E.
  • the terminal device 100 It can be obtained that the emotion monitoring result of the user in the first time period is a high level, indicating that the user is in a good mood.
  • the evaluation result of the user's emotional state is C and the evaluation result of sleep quality is C
  • the terminal device 100 may obtain that the user's emotion monitoring result in the first time period is at a medium level, indicating that the mood is normal.
  • the user's emotional state evaluation result is D or E
  • the sleep quality evaluation result is D or E
  • the terminal device 100 may obtain that the user's emotional monitoring result in the first time period is low, indicating abnormal or negative mood.
  • the terminal device 100 may send an early warning message to the terminal device 110 .
  • the terminal device 100 may display at least one of emotional state evaluation results, sleep quality evaluation results, or emotional monitoring results to the user, which is not limited in this embodiment of the present application.
  • emotional state evaluation results sleep quality evaluation results, and emotional monitoring results are only examples, and can also be displayed to users in other forms such as data histograms, data pie charts, line graphs, and emoticons.
  • the embodiment does not limit this.
  • the terminal device 100 may store the early warning information in the cloud, and the terminal device 110 may periodically obtain the early warning information from the cloud.
  • the terminal device 100 stores the user's emotional monitoring results every 24 hours in the cloud, and the terminal device 110 can obtain early warning information from the cloud every 24 hours, every 48 hours, or every 72 hours, and The emotion monitoring results show the corresponding warning content to the user.
  • the terminal device 110 may consider using the health application program (application, APP) displays words encouraging the user to refuel, and can also display the user's emotional state evaluation results and/or sleep quality evaluation results through the health APP.
  • application application, APP
  • the terminal device 110 can also warn the user through the monitoring APP, in a tactful manner Prompt users for communication or psychological counseling.
  • the monitoring APP can be used to display sentences such as "The weather is really nice, go out and walk more", “Chat with friends and family often", or "Let's find someone to talk about bad emotions" to the user.
  • the terminal device 100 can be a smart watch worn by an underage user
  • the terminal device 110 can be a parent's mobile phone
  • the parent's mobile phone is associated with the underage user's smart watch
  • the parent can obtain the information of the underage user through the mobile phone.
  • the user's emotional state evaluation results, sleep quality evaluation results, or emotional monitoring results, timely communication and psychological counseling are provided to underage users.
  • the terminal device 110 can also use the video APP and music APP on the terminal device 110 to Or a news app can intelligently recommend positive multimedia resources to users, thereby alleviating the negative emotions of users.
  • the period (24 hours, 48 hours or 72 hours) for the terminal device 110 to obtain the early warning information from the cloud is only an example, and the embodiment of the present application does not limit the period for obtaining the early warning information.
  • the method 300 further includes: determining the user's emotional age according to the user's emotion monitoring result in the first time period, the number of negative emotions, and the user's age information. At least one of emotional age, emotional monitoring results, or emotional statements is displayed to the user.
  • the terminal device 100 can obtain the user's emotional age, so that the user can understand his own ability to control emotions based on the emotional age, which is beneficial to improving user experience.
  • Table 4 shows a corresponding relationship between emotion score, number of negative emotions and emotional age, which is for reference only.
  • FIG. 7 is a schematic interface diagram of a smart watch 200 provided in an embodiment of the present application.
  • the smart watch 200 can display the user's emotional age, emotional score and corresponding emotional statements.
  • the user's emotional score is 98 points
  • the emotional age is a stable period
  • the emotional statement is "keep a good mood!”.
  • the method 300 further includes: acquiring peaks and valleys of the ACC signal. Determine whether the user is in a non-exercise state based on the peaks and troughs of the ACC signal.
  • S302 includes: when it is determined that the user is in a non-exercise state, combining the PPG signal, SEMG signal, user's age information and user's gender information, and counting the classification results of the user's emotions at multiple moments within the first time period .
  • the terminal device 100 can determine whether the PPG signal and the SEMG signal are stable signals collected when the user is in a non-exercising state according to the peak and trough of the ACC signal.
  • FIG. 8 is a schematic diagram of a waveform of an ACC signal provided by an embodiment of the present application.
  • the duration of the ACC signal recognized by the terminal device 100 is 10s.
  • the waveform of the ACC signal within the recognition duration has 1 peak and 1 valley, wherein the peak value is W 1 , and the value of the valley is W 2. If the difference between W 1 and W 2 is less than or equal to the fourth preset threshold, and the sum of the number of peaks and valleys is less than or equal to the fifth preset threshold, then the terminal device 100 can determine that the user is in a non-exercise state, and collect
  • the PPG signal and SEMG signal are available signals and can be used for subsequent emotional monitoring.
  • FIG. 9 is a schematic flow chart of another emotion monitoring method 900 provided by an embodiment of the present application.
  • the method 900 can be executed by the terminal device 100, and the method 900 includes the following steps:
  • the PPG signal can be obtained by the pulse wave sensor
  • the SEMG signal can be obtained by the myoelectric electrode sensor
  • the ACC signal can be obtained by the acceleration sensor.
  • S902. Determine whether the user is in a non-exercise state according to the ACC signal. When the user is in a non-exercise state, execute S903. If the user is in a state of exercise, the collected PPG signal and SEMG signal are invalid signals and need to be collected again.
  • the terminal device 100 may periodically perform emotion recognition on the collected PPG signal, SEMG signal, user's age information, and user's gender information to obtain multiple emotion classification results at different times.
  • the terminal device 100 can perform feature extraction on PPG signals, SEMG signals, user age information, and user gender information, and perform feature fusion on the extracted biometric features. The specific feature extraction and feature fusion processes have been described above. description and will not be repeated here.
  • emotion classification results in this step include multiple emotion classification results at different moments.
  • the emotion classification results include the user’s emotion classification results for each hour in 24 hours, and the user’s emotional state evaluation in 24 hours can be obtained according to the number of negative emotions that have been counted within 24 hours and the duration of a single session. point.
  • S905 Monitor the sleep quality of the user according to the PPG signal, the ACC signal, the user's age information, and the user's gender information, and obtain the user's sleep quality evaluation score.
  • the terminal device 100 can obtain the number of sleep interruptions of the user according to the ACC signal, and obtain the time when the user enters sleep, the time when the user exits sleep, the duration of deep sleep, and the duration of light sleep according to the change of the user's heart rate obtained from the PPG signal, and then
  • the user's sleep quality is evaluated by combining the number of sleep interruptions, the time of entering sleep, the time of exiting sleep, the duration of deep sleep, the duration of light sleep, and the user's age and gender to obtain the user's sleep quality evaluation score.
  • the movement state lasting more than 5s can be regarded as sleep interruption.
  • S906. Perform weighted summation of the user's emotional state evaluation score and sleep quality evaluation score to obtain the user's emotional score.
  • the terminal device 100 can send early warning information to the cloud when it detects that the user's emotional score is low, and the terminal device 110 associated with the terminal device 100 can obtain the early warning information from the cloud to further determine whether the user's emotional score is low.
  • 110 provides emotional alerts to users, and uses APP to push positive energy information and display encouraging sentences to remind users to pay attention to emotional health.
  • the terminal device 100 may also send the emotional age to the terminal device 110, and the terminal device 110 displays at least one of the emotional age, the emotional score, or the emotional statement.
  • the terminal device 100 when the terminal device 100 determines that the collected PPG signal and SEMG signal are relatively stable according to the ACC signal, it can obtain the biological characteristics of the user under different emotions according to the user's PPG signal and SEMG signal, such as heart rate, Blood pressure, blood oxygen, blood sugar, muscle contraction, etc., combined with the user's age and gender to evaluate the emotional state. Since the user's sleep conditions may be different under different emotions, the terminal device 100 can also monitor the user's sleep quality according to the PPG signal, ACC signal, user's age and gender, and obtain the user's sleep quality evaluation result, and further combine the user's The emotional state evaluation results and the sleep quality evaluation results determine the user's emotional score. The emotional score obtained in this way can more accurately reflect the user's emotions in a period of time, which is conducive to improving the accuracy of emotion recognition.
  • the terminal device 100 determines that the collected PPG signal and SEMG signal are relatively stable according to the ACC signal, it can obtain the biological characteristics of the user under different emotions according to the user'
  • sequence numbers of the above processes do not mean the order of execution, and the execution order of each process should be determined by its functions and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
  • FIG. 10 shows a schematic block diagram of an emotion monitoring device 1000 provided by an embodiment of the present application, and the device 1000 includes an acquisition module 1010 and a processing module 1020 .
  • the acquiring module 1010 is configured to: acquire the user's photoplethysmography PPG signal in real time through the pulse wave sensor, acquire the user's epidermal electromyography SEMG signal in real time through the myoelectric electrode sensor, and acquire the user's ACC signal in real time through the acceleration sensor.
  • the processing module 1020 is used to: combine the PPG signal, the SEMG signal, the user's age information and the user's gender information, and count the classification results of the user's emotions at multiple moments within the first time period.
  • the classification results include positive emotions, calm emotions, or positive emotions.
  • Negative emotions based on the classification results of the user's emotions at multiple moments in the first time period, determine the user's emotional state evaluation results in the first time period; combine PPG signal, ACC signal, user's age information and user's gender information , determine the sleep quality evaluation result of the user in the first time period; and, determine whether to perform an emotional warning according to the emotional state evaluation result and the sleep quality evaluation result.
  • the processing module 1020 is configured to: perform feature extraction on the PPG signal, the SEMG signal, the user's age information, and the user's gender information at the first moment among the multiple moments, to obtain multiple sets of biological characteristics of the user at the first moment .
  • the processing module 1020 is configured to: use the flexible maximum transfer function to calculate the weight of each set of biological features in multiple sets of biological features; and, according to each set of biological features and the weight of each set of biological features, obtain the fusion features.
  • the multiple sets of biological characteristics include at least one of the following: heart rate characteristics, breathing characteristics, blood oxygen characteristics, blood glucose characteristics, blood pressure characteristics, or epidermal myoelectric characteristics.
  • the obtaining module 1010 is configured to: obtain the number of negative emotions of the user in the first time period and the duration of each negative emotion from the classification results of emotions at multiple moments.
  • the processing module 1020 is configured to: determine the evaluation result of the user's emotional state in the first time period based on the number of negative emotions and the duration of each negative emotion.
  • the processing module 1020 is configured to: obtain the number of sleep interruptions of the user in the first time period based on the components of the ACC signal on the coordinate axis.
  • the obtaining module 1010 is configured to: obtain the heart rate change information of the user in the first time period based on the PPG signal.
  • the processing module 1020 is used to: obtain the total sleep duration, deep sleep duration, and light sleep duration of the user in the first time period according to the heart rate change information; and, combining the number of sleep interruptions, total sleep duration, deep sleep duration, and light sleep duration, Determine the sleep evaluation result of the user in the first time period.
  • the processing module 1020 is configured to: obtain the emotional monitoring result of the user in the first time period according to the emotional state evaluation result and the sleep quality evaluation result; and, when the emotional monitoring result satisfies the preset condition, determine Be emotionally alert.
  • the processing module 1020 is configured to: perform a weighted summation of the quantized value of the emotional state evaluation result and the quantized value of the sleep quality evaluation result to obtain the user's emotional score in the first time period; and, when the emotional score is less than Or when it is equal to the preset threshold, it is determined to perform an emotional warning.
  • the processing module 1020 is configured to: determine the user's emotional age according to the user's emotion monitoring results in the first time period, the number of negative emotions, and the user's age information; and display the emotional age, emotion monitoring results or emotional sentences at least one of the
  • the acquiring module 1010 is configured to: acquire peaks and valleys of the ACC signal.
  • the processing module 1020 is used to: determine whether the user is in a non-exercise state according to the peak and trough of the ACC signal; and, when the user is in a non-exercise state, combine the PPG signal, the SEMG signal, the age information of the user, and the gender information of the user , to collect statistics on the classification results of the user's emotions at multiple moments in the first time period.
  • the apparatus 1000 may specifically be the terminal device in the foregoing embodiment, or the functions of the terminal device in the foregoing embodiment may be integrated in the apparatus 1000 .
  • the above functions can be implemented by hardware, or can be implemented by executing corresponding software by hardware.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • Apparatus 1000 may be configured to execute various processes and/or steps corresponding to the terminal device in the foregoing method embodiments.
  • module here may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a dedicated processor, or a group processor, etc.) and memory, incorporated logic, and/or other suitable components to support the described functionality.
  • ASIC application specific integrated circuit
  • the device 1000 in FIG. 10 may also be a chip or a chip system, for example: a system on chip (system on chip, SoC).
  • Fig. 11 shows a schematic block diagram of another emotion monitoring device 1100 provided by an embodiment of the present application.
  • the apparatus 1100 includes a processor 1110 , a transceiver 1120 and a memory 1130 .
  • the processor 1110, the transceiver 1120 and the memory 1130 communicate with each other through an internal connection path, the memory 1130 is used to store instructions, and the processor 1110 is used to execute the instructions stored in the memory 1130 to control the transceiver 1120 to send signals and /or to receive a signal.
  • the apparatus 1100 may specifically be the terminal device in the foregoing embodiments, or, the functions of the terminal device in the foregoing embodiments may be integrated into the apparatus 1100, and the apparatus 1100 may be used to perform various functions corresponding to the terminal apparatus in the foregoing method embodiments. steps and/or processes.
  • the memory 1130 may include read-only memory and random-access memory, and provides instructions and data to the processor. A portion of the memory may also include non-volatile random access memory.
  • the memory may also store device type information.
  • the processor 1110 may be configured to execute instructions stored in the memory, and when the processor executes the instructions, the processor may execute various steps and/or processes corresponding to the electronic device in the foregoing method embodiments.
  • the processor 1110 may be a central processing unit (central processing unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits ( ASIC), Field Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • DSPs digital signal processors
  • ASIC application-specific integrated circuits
  • FPGA Field Programmable Gate Array
  • a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
  • each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software.
  • the steps of the methods disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
  • the software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register.
  • the storage medium is located in the memory, and the processor executes the instructions in the memory, and completes the steps of the above method in combination with its hardware. To avoid repetition, no detailed description is given here.
  • modules and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
  • the disclosed systems, devices and methods may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the modules is only a logical function division. In actual implementation, there may be other division methods.
  • multiple modules or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or modules may be in electrical, mechanical or other forms.
  • the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or may be distributed to multiple network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional module in each embodiment of the present application may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module.
  • the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disc and other media that can store program codes. .

Abstract

Provided in the present application are an emotion monitoring method and an emotion monitoring apparatus, which are conducive to improving the accuracy of emotion recognition. The method comprises: acquiring a photoplethysmographic (PPG) signal of a user in real time, acquiring a surface electromyography (SEMG) signal of the user in real time, and acquiring an ACC signal of the user in real time; in view of the PPG signal, the SEMG signal, age information of the user and gender information of the user, compiling statistics on emotion classification results of the user at a plurality of moments within a first time period; on the basis of the emotion classification results of the user at the plurality of moments within the first time period, determining an emotion state evaluation result of the user within the first time period; in view of the PPG signal, the ACC signal, the age information of the user and the gender information of the user, determining a sleep quality evaluation result of the user within the first time period; and according to the emotion state evaluation result and the sleep quality evaluation result, determining whether to perform emotion early warning.

Description

情绪监测方法和情绪监测装置Mood monitoring method and mood monitoring device
本申请要求于2021年12月10日提交中国专利局、申请号为202111510699.2、申请名称为“情绪监测方法和情绪监测装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with application number 202111510699.2 and application title "Emotional Monitoring Method and Emotional Monitoring Device" filed with the China Patent Office on December 10, 2021, the entire contents of which are hereby incorporated by reference in this application .
技术领域technical field
本申请涉及终端设备领域,更具体地,涉及一种情绪监测方法和情绪监测装置。The present application relates to the field of terminal equipment, and more specifically, to an emotion monitoring method and an emotion monitoring device.
背景技术Background technique
在当代社会,人们越来越关注身心健康,长时间的焦虑、紧张、愤怒、沮丧、悲伤、痛苦等负面情绪的累积可能导致狂躁病、抑郁症、自闭症、焦虑症等负面心理疾病。In contemporary society, people pay more and more attention to physical and mental health. The accumulation of negative emotions such as anxiety, tension, anger, depression, sadness, and pain for a long time may lead to negative mental illnesses such as mania, depression, autism, and anxiety.
心理和生理学提供研究表明,生理反应与人的情绪状态存在很大的关联,为了关注用户的生理和心理健康,目前以智能手环为代表的可穿戴设备已经逐渐普及,可以对用户的情绪、运动、睡眠、健康指标等进行监测。Research provided by psychology and physiology shows that there is a great relationship between physiological reactions and people's emotional state. In order to pay attention to the user's physical and mental health, wearable devices represented by smart bracelets have gradually become popular, which can monitor the user's emotions, Exercise, sleep, health indicators, etc. are monitored.
目前情绪监测主要以生理信号测量为主,在一种可能的实现方式中,由于不同情绪的时域特征和频域特征不同,因此可以采集用户的光电容积脉搏波描记(photo plethysmo graphic,PPG)信号,从PPG信号中提取脉率变异性(pulse rate variability,PRV)序列,并对提取的PRV序列进行时域和频域的分析以获取时域特征和频域特征,并将时域特征和频域特征作为神经网络的输入以进行情绪识别。At present, emotion monitoring is mainly based on the measurement of physiological signals. In a possible implementation, since different emotions have different time-domain and frequency-domain characteristics, it is possible to collect the user's photoplethysmography (PPG) The pulse rate variability (PRV) sequence is extracted from the PPG signal, and the extracted PRV sequence is analyzed in time domain and frequency domain to obtain time domain features and frequency domain features, and the time domain features and The frequency domain features are used as input to the neural network for emotion recognition.
然而上述方法无法全面地体现不同情绪下的生理特征,情绪识别的准确率不高。However, the above methods cannot fully reflect the physiological characteristics of different emotions, and the accuracy of emotion recognition is not high.
发明内容Contents of the invention
本申请提供了一种情绪监测方法和情绪监测装置,有利于提高情绪识别的准确率。The present application provides an emotion monitoring method and an emotion monitoring device, which are beneficial to improving the accuracy of emotion recognition.
第一方面,提供了一种情绪监测方法,应用于部署有脉搏波传感器、肌电电极传感器以及加速度传感器的终端设备。该方法包括:通过脉搏波传感器实时获取用户的光电容积脉搏波描记PPG信号,通过肌电电极传感器实时获取用户的表皮肌电(surface electromyography,SEMG)信号,并通过加速度传感器实时获取用户的ACC信号。结合PPG信号、SEMG信号、用户的年龄信息以及用户的性别信息,统计用户在第一时间段内的多个时刻下情绪的分类结果,分类结果包括正面情绪、平静情绪或者负面情绪。基于用户在第一时间段内的多个时刻下情绪的分类结果,确定用户在第一时间段的情绪状态评价结果。结合PPG信号、ACC信号、用户的年龄信息以及用户的性别信息,确定用户在第一时间段的睡眠质量评价结果。根据情绪状态评价结果和睡眠质量评价结果,确定是否进行情绪预警。In the first aspect, an emotion monitoring method is provided, which is applied to a terminal device equipped with a pulse wave sensor, an electromyographic electrode sensor, and an acceleration sensor. The method comprises: acquiring the user's photoplethysmography PPG signal in real time through the pulse wave sensor, acquiring the user's surface electromyography (surface electromyography, SEMG) signal in real time through the myoelectric electrode sensor, and acquiring the user's ACC signal in real time through the acceleration sensor . Combining the PPG signal, SEMG signal, user's age information and user's gender information, the classification results of the user's emotions at multiple moments in the first time period are counted, and the classification results include positive emotions, calm emotions or negative emotions. Based on the classification results of the user's emotions at multiple moments in the first time period, an evaluation result of the user's emotional state in the first time period is determined. Combining the PPG signal, the ACC signal, the age information of the user, and the gender information of the user, the sleep quality evaluation result of the user in the first time period is determined. According to the emotional state evaluation results and the sleep quality evaluation results, it is determined whether to carry out emotional early warning.
在本申请中,终端设备可以结合用户的PPG信号、SEMG信号、ACC信号、年龄信息以及性别信息得到用户在第一时间段的情绪状态评价结果,结合PPG信号、ACC信号、用户的年龄信息以及用户的性别信息,确定用户在第一时间段的睡眠质量评价结果,并根据用户在第一时间段的情绪状态评价结果和睡眠质量评价结果综合考 虑用户的情绪,这样有利于提高情绪识别的准确率,为用户提供更好的心理健康服务。In this application, the terminal device can combine the user's PPG signal, SEMG signal, ACC signal, age information and gender information to obtain the user's emotional state evaluation result in the first time period, and combine the PPG signal, ACC signal, user's age information and The user's gender information, determine the user's sleep quality evaluation results in the first time period, and comprehensively consider the user's emotions according to the user's emotional state evaluation results and sleep quality evaluation results in the first time period, which is conducive to improving the accuracy of emotion recognition rate to provide users with better mental health services.
结合第一方面,在第一方面的某些实现方式中,结合PPG信号、SEMG信号、用户的年龄信息以及用户的性别信息,统计用户在第一时间段内的多个时刻下情绪的分类结果,包括:对多个时刻中的第一时刻的PPG信号、SEMG信号、用户的年龄信息以及用户的性别信息进行特征提取,得到用户在第一时刻的多组生物特征。对第一时刻的多组生物特征进行特征融合,得到用户在第一时刻的融合特征。基于第一时刻的融合特征,得到用户在第一时刻下情绪的分类结果。In combination with the first aspect, in some implementations of the first aspect, combined with PPG signals, SEMG signals, user age information, and user gender information, the classification results of user emotions at multiple moments within the first time period are counted , including: performing feature extraction on the PPG signal, SEMG signal, age information of the user, and gender information of the user at the first moment among the plurality of moments, to obtain multiple sets of biometric features of the user at the first moment. Feature fusion is performed on multiple sets of biometric features at the first moment to obtain the fused features of the user at the first moment. Based on the fusion features at the first moment, the classification result of the user's emotion at the first moment is obtained.
在本申请中,终端设备可以通过特征提取获取用户在第一时刻的多组生物特征,融合特征的可解释性以及表征能力强,基于融合后的融合特征进行情绪识别有利于提高情绪识别的准确率。In this application, the terminal device can obtain multiple sets of biometric features of the user at the first moment through feature extraction, and the interpretability and representation ability of the fused features are strong. Emotion recognition based on the fused features is conducive to improving the accuracy of emotion recognition. Rate.
结合第一方面,在第一方面的某些实现方式中,对第一时刻的多组生物特征进行特征融合,得到用户在第一时刻的融合特征,包括:通过柔性最大值传输函数计算多组生物特征中每组生物特征的权重。根据每组生物特征和每组生物特征的权重,得到用户在第一时刻的融合特征。In combination with the first aspect, in some implementations of the first aspect, feature fusion is performed on multiple sets of biometric features at the first moment to obtain the fused features of the user at the first moment, including: calculating multiple sets of biometric features through the flexible maximum transfer function The weight of each set of biometrics in biometrics. According to each set of biometric features and the weight of each set of biometric features, the fusion features of the user at the first moment are obtained.
在本申请中,不同的生理特征具有不同的权重值,这样可以获得不同生理信号的重要程度,使得情绪识别结果更加准确可靠。In this application, different physiological features have different weight values, so that the importance of different physiological signals can be obtained, making the emotion recognition result more accurate and reliable.
结合第一方面,在第一方面的某些实现方式中,多组生物特征包括以下至少一种:心率特征、呼吸特征、血氧特征、血糖特征、血压特征或者表皮肌电特征。With reference to the first aspect, in some implementations of the first aspect, the multiple sets of biological characteristics include at least one of the following: heart rate characteristics, breathing characteristics, blood oxygen characteristics, blood sugar characteristics, blood pressure characteristics, or epidermal electromyography characteristics.
结合第一方面,在第一方面的某些实现方式中,基于用户在第一时间段内的多个时刻下情绪的分类结果,确定用户在第一时间段的情绪状态评价结果,包括:从多个时刻下情绪的分类结果中获取用户在第一时间段的负面情绪的次数和每次负面情绪的持续时长。基于负面情绪的次数和每次负面情绪的持续时长,确定用户在第一时间段的情绪状态评价结果。In conjunction with the first aspect, in some implementations of the first aspect, based on the classification results of the user's emotions at multiple moments within the first time period, determining the user's emotional state evaluation results in the first time period includes: The number of negative emotions of the user in the first time period and the duration of each negative emotion are obtained from the classification results of emotions at multiple moments. Based on the number of times of negative emotions and the duration of each negative emotion, an evaluation result of the user's emotional state in the first time period is determined.
在本申请中,终端设备可以获取用户在第一时间段的负面情绪的次数和每次负面情绪的持续时长,累计的负面情绪时间越长,情绪状态评价分数越低,这样有利于准确对用户在第一时间段内的情绪进行评估。In this application, the terminal device can obtain the number of negative emotions of the user in the first period of time and the duration of each negative emotion. The longer the accumulated negative emotion time, the lower the emotional state evaluation score, which is conducive to accurate evaluation of the user. Emotions are assessed during the first time period.
结合第一方面,在第一方面的某些实现方式中,结合PPG信号、ACC信号、用户的年龄信息以及用户的性别信息,确定用户在第一时间段的睡眠质量评价结果,包括:基于ACC信号在坐标轴上的分量,得到所述用户在所述第一时间段的睡眠中断次数。基于PPG信号,获取用户在第一时间段的心率变化信息。根据心率变化信息,得到用户在第一时间段的睡眠总时长、深睡时长以及浅睡时间。结合睡眠中断次数、睡眠总时长、深睡时长以及浅睡时长,确定用户在第一时间段的睡眠评价结果。With reference to the first aspect, in some implementations of the first aspect, combining the PPG signal, the ACC signal, the user's age information, and the user's gender information to determine the user's sleep quality evaluation result in the first time period, including: based on ACC The component of the signal on the coordinate axis is used to obtain the number of sleep interruptions of the user in the first time period. Based on the PPG signal, the heart rate change information of the user in the first time period is acquired. According to the heart rate change information, the user's total sleep duration, deep sleep duration, and light sleep duration in the first period of time are obtained. Combining the number of sleep interruptions, total sleep duration, deep sleep duration, and light sleep duration, the user's sleep evaluation result in the first time period is determined.
在本申请中,由于不同情绪下用户的睡眠情况可能不同,因此终端设备通过采集用户在睡眠时间段的心率变化信息得到用户的睡眠评价结果,根据睡眠评价结果有利于提高对情绪识别的准确率。In this application, since the user's sleep conditions may be different under different emotions, the terminal device obtains the user's sleep evaluation result by collecting the user's heart rate change information during the sleep period, and the sleep evaluation result is conducive to improving the accuracy of emotion recognition. .
结合第一方面,在第一方面的某些实现方式中,根据情绪状态评价结果和睡眠质量评价结果,确定是否进行情绪预警,包括:根据情绪状态评价结果和睡眠质量评价结果,得到用户在所述第一时间段的情绪监测结果。在情绪监测结果满足预设条件的情况下,确定进行情绪预警。In combination with the first aspect, in some implementations of the first aspect, determining whether to perform an emotional early warning according to the emotional state evaluation result and the sleep quality evaluation result includes: obtaining the Describe the emotion monitoring results of the first time period. When the emotion monitoring result satisfies the preset condition, it is determined to carry out an emotion early warning.
在本申请中,如果终端设备监测到用户在所述第一时间段的情绪监测结果满足预 设条件,那么终端设备可以向用户进行情绪预警,有利于及时关注用户的心理健康,提高用户的使用体验。In this application, if the terminal device detects that the user's emotional monitoring results in the first time period meet the preset conditions, then the terminal device can give the user an emotional warning, which is conducive to paying attention to the user's mental health in a timely manner and improving the user's usage. experience.
结合第一方面,在第一方面的某些实现方式中,根据情绪状态评价结果和睡眠质量评价结果,得到用户在第一时间段的情绪监测结果,包括:对情绪状态评价结果量化后的数值和睡眠质量评价结果量化后的数值进行加权求和,得到用户在第一时间段的情绪分数。在情绪监测结果满足预设条件的情况下,确定进行情绪预警,包括:在情绪分数小于或者等于预设阈值的情况下,确定进行情绪预警。In combination with the first aspect, in some implementations of the first aspect, according to the emotional state evaluation results and the sleep quality evaluation results, the user's emotional monitoring results in the first time period are obtained, including: quantified values of the emotional state evaluation results The weighted summation is performed with the quantified value of the sleep quality evaluation result to obtain the user's emotional score in the first time period. When the emotion monitoring result satisfies the preset condition, determining to perform an emotional early warning includes: determining to perform an emotional early warning when the emotional score is less than or equal to a preset threshold.
结合第一方面,在第一方面的某些实现方式中,根据用户在第一时间段的情绪监测结果、负面情绪的次数以及用户的年龄信息,确定用户的情绪年龄。显示情绪年龄、情绪监测结果或者情绪语句中的至少一种。With reference to the first aspect, in some implementations of the first aspect, the user's emotional age is determined according to the user's emotion monitoring results in the first time period, the number of negative emotions, and the user's age information. At least one of emotional age, emotional monitoring results, or emotional statements is displayed.
在本申请中,终端设备可以向用户显示情绪年龄、情绪监测结果或者情绪语句中的至少一种,这样有利于用户进行情绪调节。In the present application, the terminal device may display at least one of emotional age, emotion monitoring results, or emotional statements to the user, which is beneficial for the user to adjust emotion.
结合第一方面,在第一方面的某些实现方式中,获取ACC信号的波峰和波谷。根据ACC信号的波峰和波谷,确定用户是否处于非运动状态。结合PPG信号、SEMG信号、用户的年龄信息以及用户的性别信息,统计用户在第一时间段内的多个时刻下情绪的分类结果,包括:在用户处于非运动状态的情况下,结合PPG信号、SEMG信号、用户的年龄信息以及用户的性别信息,统计用户在第一时间段内的多个时刻下情绪的分类结果。With reference to the first aspect, in some implementation manners of the first aspect, peaks and valleys of the ACC signal are obtained. According to the peak and trough of the ACC signal, it is determined whether the user is in a non-exercise state. Combining PPG signal, SEMG signal, user's age information and user's gender information, counting the classification results of user's emotions at multiple moments in the first time period, including: combining PPG signal when the user is in a non-exercising state , SEMG signal, age information of the user, and gender information of the user, and the classification results of the user's emotions at multiple moments in the first time period are counted.
在本申请中,由于PPG信号受运动干扰较大,情绪识别需要在非运动状态实现,因此终端设备可以通过ACC信号判断用户是否处于非运动状态,如果用户处于运动状态,则采集的PPG信号和SEMG信号为无效信号,需要重新采集,这样有利于获取到有效的PPG信号和SEMG信号,提高情绪识别的准确率。In this application, since the PPG signal is greatly disturbed by motion, emotion recognition needs to be realized in a non-motion state, so the terminal device can judge whether the user is in a non-motion state through the ACC signal, and if the user is in a motion state, the collected PPG signal and The SEMG signal is an invalid signal and needs to be collected again, which is conducive to obtaining effective PPG signals and SEMG signals and improving the accuracy of emotion recognition.
第二方面,提供了一种情绪监测装置,包括:用于执行上述第一方面中任一种可能的实现方式中的方法。具体地,该装置包括用于执行上述第一方面中任一种可能的实现方式中的方法的模块。In a second aspect, an emotion monitoring device is provided, including: for performing the method in any possible implementation manner of the above first aspect. Specifically, the apparatus includes a module configured to execute the method in any possible implementation manner of the foregoing first aspect.
第三方面,提供了另一种情绪监测装置,包括处理器,该处理器与存储器耦合,可用于执行存储器中的指令,以实现上述第一方面中任一种可能实现方式中的方法。可选地,该装置还包括存储器。可选地,该装置还包括通信接口,处理器与通信接口耦合。In a third aspect, another emotion monitoring device is provided, including a processor, the processor is coupled to a memory, and can be used to execute instructions in the memory, so as to implement the method in any possible implementation manner of the above first aspect. Optionally, the device further includes a memory. Optionally, the device further includes a communication interface, and the processor is coupled to the communication interface.
在一种实现方式中,该情绪监测装置为终端设备。当该情绪监测装置为终端设备时,通信接口可以是收发器,或,输入/输出接口。In an implementation manner, the emotion monitoring apparatus is a terminal device. When the emotion monitoring device is a terminal device, the communication interface may be a transceiver, or an input/output interface.
在另一种实现方式中,该情绪监测装置为配置于终端设备中的芯片。当该情绪监测装置为配置于终端设备中的芯片时,通信接口可以是输入/输出接口。In another implementation manner, the emotion monitoring device is a chip configured in a terminal device. When the emotion monitoring device is a chip configured in a terminal device, the communication interface may be an input/output interface.
第四方面,提供了一种处理器,包括:输入电路、输出电路和处理电路。处理电路用于通过输入电路接收信号,并通过输出电路发射信号,使得处理器执行上述第一方面中任一种可能实现方式中的方法。In a fourth aspect, a processor is provided, including: an input circuit, an output circuit, and a processing circuit. The processing circuit is configured to receive a signal through the input circuit and transmit a signal through the output circuit, so that the processor executes the method in any possible implementation manner of the first aspect above.
在具体实现过程中,上述处理器可以为芯片,输入电路可以为输入管脚,输出电路可以为输出管脚,处理电路可以为晶体管、门电路、触发器和各种逻辑电路等。输入电路所接收的输入的信号可以是由例如但不限于接收器接收并输入的,输出电路所输出的信号可以是例如但不限于输出给发射器并由发射器发射的,且输入电路和输出 电路可以是同一电路,该电路在不同的时刻分别用作输入电路和输出电路。本申请对处理器及各种电路的具体实现方式不做限定。In a specific implementation process, the above-mentioned processor can be a chip, the input circuit can be an input pin, the output circuit can be an output pin, and the processing circuit can be a transistor, a gate circuit, a flip-flop, and various logic circuits. The input signal received by the input circuit may be received and input by, for example but not limited to, the receiver, the output signal of the output circuit may be, for example but not limited to, output to the transmitter and transmitted by the transmitter, and the input circuit and the output The circuit may be the same circuit, which is used as an input circuit and an output circuit respectively at different times. The present application does not limit the specific implementation manners of the processor and various circuits.
第五方面,提供了一种处理装置,包括处理器和存储器。该处理器用于读取存储器中存储的指令,并可通过接收器接收信号,通过发射器发射信号,以执行上述第一方面中任一种可能实现方式中的方法。In a fifth aspect, a processing device is provided, including a processor and a memory. The processor is used to read instructions stored in the memory, and may receive signals through the receiver and transmit signals through the transmitter, so as to execute the method in any possible implementation manner of the first aspect above.
可选地,处理器为一个或多个,存储器为一个或多个。Optionally, there are one or more processors, and one or more memories.
可选地,存储器可以与处理器集成在一起,或者存储器与处理器分离设置。Optionally, the memory may be integrated with the processor, or the memory may be separated from the processor.
在具体实现过程中,存储器可以为非瞬时性(non-transitory)存储器,例如只读存储器(read only memory,ROM),其可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请对存储器的类型以及存储器与处理器的设置方式不做限定。In the specific implementation process, the memory can be a non-transitory (non-transitory) memory, such as a read-only memory (read only memory, ROM), which can be integrated with the processor on the same chip, or can be set in different On the chip, the application does not limit the type of the memory and the arrangement of the memory and the processor.
应理解,相关的数据交互过程例如发送指示信息可以为从处理器输出指示信息的过程,接收能力信息可以为处理器接收输入能力信息的过程。具体地,处理输出的数据可以输出给发射器,处理器接收的输入数据可以来自接收器。其中,发射器和接收器可以统称为收发器。It should be understood that a related data interaction process such as sending indication information may be a process of outputting indication information from a processor, and receiving capability information may be a process of receiving input capability information from a processor. In particular, processed output data may be output to the transmitter, and input data received by the processor may be from the receiver. Wherein, the transmitter and the receiver may be collectively referred to as a transceiver.
上述第五方面中的处理装置可以是一个芯片,该处理器可以通过硬件来实现也可以通过软件来实现,当通过硬件实现时,该处理器可以是逻辑电路、集成电路等;当通过软件来实现时,该处理器可以是一个通用处理器,通过读取存储器中存储的软件代码来实现,该存储器可以集成在处理器中,可以位于该处理器之外,独立存在。The processing device in the fifth aspect above can be a chip, and the processor can be implemented by hardware or by software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software When implemented, the processor may be a general-purpose processor, which is realized by reading the software code stored in the memory, and the memory may be integrated in the processor, or it may be located outside the processor and exist independently.
第六方面,提供了一种计算机程序产品,计算机程序产品包括:计算机程序(也可以称为代码,或指令),当计算机程序被运行时,使得计算机执行上述第一方面中任一种可能实现方式中的方法。In a sixth aspect, a computer program product is provided, and the computer program product includes: a computer program (also referred to as code, or instruction), which, when the computer program is run, causes the computer to perform any one of the possible implementations in the first aspect above. methods in methods.
第七方面,提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序(也可以称为代码,或指令)当其在计算机上运行时,使得计算机执行上述第一方面中任一种可能实现方式中的方法。In a seventh aspect, a computer-readable storage medium is provided, and the computer-readable storage medium stores a computer program (also referred to as code, or an instruction) which, when run on a computer, enables the computer to execute the above-mentioned first aspect. A method in any of the possible implementations.
附图说明Description of drawings
图1是本申请实施例适用的一种终端设备的示意图;FIG. 1 is a schematic diagram of a terminal device applicable to an embodiment of the present application;
图2是本申请实施例提供的一种终端设备的实体结构示意图;FIG. 2 is a schematic diagram of a physical structure of a terminal device provided in an embodiment of the present application;
图3是本申请实施例提供的一种情绪监测方法的示意性流程图;Fig. 3 is a schematic flow chart of an emotion monitoring method provided by an embodiment of the present application;
图4是本申请实施例提供的一种情绪分类过程的示意图;Fig. 4 is a schematic diagram of an emotion classification process provided by an embodiment of the present application;
图5是本申请实施例提供的一种睡眠时心率的变化曲线图;Fig. 5 is a curve diagram of heart rate changes during sleep according to an embodiment of the present application;
图6是本申请实施例提供的一种终端设备的系统架构示意图;FIG. 6 is a schematic diagram of a system architecture of a terminal device provided in an embodiment of the present application;
图7是本申请实施例提供的一种终端设备的界面示意图;FIG. 7 is a schematic interface diagram of a terminal device provided in an embodiment of the present application;
图8是本申请实施例提供的一种ACC信号的波形示意图;FIG. 8 is a schematic waveform diagram of an ACC signal provided by an embodiment of the present application;
图9是本申请实施例提供的另一种情绪监测方法的示意性流程图;Fig. 9 is a schematic flow chart of another emotion monitoring method provided by the embodiment of the present application;
图10是本申请实施例提供的一种情绪监测装置的示意性框图;Fig. 10 is a schematic block diagram of an emotion monitoring device provided by an embodiment of the present application;
图11是本申请实施例提供的另一种情绪监测装置的示意性框图。Fig. 11 is a schematic block diagram of another emotion monitoring device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图,对本申请中的技术方案进行描述。The technical solution in this application will be described below with reference to the accompanying drawings.
在介绍本申请实施例提供的情绪监测方法和情绪监测装置之前,先做出以下几点说明。Before introducing the emotion monitoring method and the emotion monitoring device provided in the embodiments of the present application, the following explanations are made first.
第一,在下文示出的实施例中,各术语及英文缩略语,如PPG信号、ACC信号、脉搏波传感器等,均为方便描述而给出的示例性举例,不应对本申请构成任何限定。本申请并不排除在已有或未来的协议中定义其它能够实现相同或相似功能的术语的可能。First, in the embodiments shown below, each term and English abbreviation, such as PPG signal, ACC signal, pulse wave sensor, etc., are all illustrative examples given for convenience of description, and should not constitute any limitation to this application . This application does not exclude the possibility of defining other terms that can achieve the same or similar functions in existing or future agreements.
第二,在下文示出的实施例中第一、第二以及各种数字编号仅为描述方便进行的区分,并不用来限制本申请实施例的范围。例如,区分不同的终端设备等。Second, the first, second and various numbers in the embodiments shown below are only for convenience of description, and are not used to limit the scope of the embodiments of the present application. For example, distinguishing between different terminal devices, etc.
第三,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a、b和c中的至少一项(个),可以表示:a,或b,或c,或a和b,或a和c,或b和c,或a、b和c,其中a,b,c可以是单个,也可以是多个。Third, "at least one" means one or more, and "multiple" means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist at the same time, and B exists alone, where A, B can be singular or plural. The character "/" generally indicates that the contextual objects are an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (one) of a, b and c may represent: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c, wherein a, b, c can be single or multiple.
通常,情绪可以分为平静、正面和负面这三个类别,其中,正面情绪可以包括兴奋、放松、惊奇、惊喜等,负面情绪可以包括焦虑、紧张、愤怒、沮丧、悲伤、痛苦等。Generally, emotions can be divided into three categories: calm, positive, and negative. Positive emotions can include excitement, relaxation, surprise, surprise, etc., and negative emotions can include anxiety, tension, anger, frustration, sadness, pain, etc.
情绪年龄是标志情绪发展水平的一种度量,不同年龄段可能对应不同的情绪发展水平,一个人的情绪与什么年龄应有的情绪表现相符合,即具有相应的情绪年龄。一般而言,人们的情绪管理能力往往随着年龄的增长而逐渐增强,并逐步由幼年的淘气、童年的天真、青年的朝气蓬勃、壮年的坚持不懈逐步成长,直至中年、老年的稳重。但是有些人虽然身体在逐渐成长、成熟,但是心灵却没有变得成熟。因此,可以根据情绪商数(emotional quotient,EQ)发展的时间规律,尝试采用一种按照年龄大小进行情绪控制能力等级区分的标准来衡量一个人的情绪年龄。表一为一种示例性的EQ对照表。Emotional age is a measure that marks the level of emotional development. Different age groups may correspond to different levels of emotional development. A person's emotions are consistent with the emotional expression at what age, that is, he has a corresponding emotional age. Generally speaking, people's emotional management ability tends to gradually increase with age, and gradually grows from childhood naughtiness, childhood innocence, youth vigor, and adult perseverance, to middle age and old age. However, although some people are gradually growing and maturing physically, their hearts have not matured. Therefore, according to the time law of the development of emotional quotient (EQ), we can try to use a standard for classifying emotional control ability according to age to measure a person's emotional age. Table 1 is an exemplary EQ comparison table.
表一Table I
Figure PCTCN2022119258-appb-000001
Figure PCTCN2022119258-appb-000001
Figure PCTCN2022119258-appb-000002
Figure PCTCN2022119258-appb-000002
本申请中可以将情绪年龄归纳为四个时期:稚童期、活跃期、稳重期以及智慧期。In this application, the emotional age can be summarized into four periods: childish period, active period, stable period and wisdom period.
其中,稚童期对应表一中的一年级,该时期情绪变化快、不易控制,每次情绪持续时间较短。Among them, childhood corresponds to the first grade in Table 1. During this period, emotions change quickly, are difficult to control, and each emotion lasts for a short time.
活跃期对应表一中的二年级,该时期情绪易受学业、恋情、家庭关系影响,负面情绪易激发并且持续时间较长,有一定的自我调节能力。The active period corresponds to the second grade in Table 1. During this period, emotions are easily affected by studies, love affairs, and family relationships. Negative emotions are easily aroused and last for a long time, and they have a certain ability to self-regulate.
稳重期对应表一中的三年级和四年级,该时期懂得收敛情绪,负面情绪不易激发,控制能力强。The stable period corresponds to the third and fourth grades in Table 1. During this period, students know how to restrain their emotions, are not easy to arouse negative emotions, and have strong control ability.
智慧期对应表一中的五年级、六年级和七年级,该时期情绪变化小。The wisdom period corresponds to the fifth, sixth and seventh grades in Table 1, and the mood changes little during this period.
性别差异也会带来情绪的不同。有研究发现,女性的情绪表达性相较于男性更强,也就是女性倾向于夸大自己感受到的情绪,而男性发生情绪时的心率变化相较于女性更为明显,也就是说男性对情绪的体验强度更大,受情绪影响更大,只是由于各种原因不愿意表达出来。Gender differences can also bring about emotional differences. Studies have found that women are more emotionally expressive than men, that is, women tend to exaggerate the emotions they feel, and men's heart rate changes are more obvious when they are emotional, which means that men are more sensitive to emotions. The intensity of experience is greater and more affected by emotions, but they are reluctant to express it for various reasons.
情绪可能导致一些生理反应,例如,植物性神经活动变化,包括呼吸的频次、呼气与吸气的快慢、呼吸的质量、心率、血管容积、血压、皮肤电、内外分泌腺等。又例如,脑电波变化,例如,α波、β波、δ波、θ波随情绪变化,其中α波变化最大。此外,情绪还可能导致头晕、胀痛等不良反应。Emotions may lead to some physiological reactions, such as changes in autonomic nerve activity, including frequency of breathing, speed of exhalation and inhalation, quality of respiration, heart rate, blood vessel volume, blood pressure, skin electricity, endocrine glands, etc. For another example, brain wave changes, for example, α wave, β wave, δ wave, θ wave change with emotion, and α wave changes the most. In addition, emotions may also cause adverse reactions such as dizziness and pain.
不同情绪下的呼吸变化:示例性地,平静时呼吸为20次/分钟。相对于平静情绪而言,高兴时呼吸深度不大,频率略快,节奏相对规律,示例性地,平静时呼吸为23次/分钟。悲伤时呼吸频率很慢,间歇时间较长,示例性地,悲伤时呼吸为9次/分钟。恐惧时呼吸频率非常快,有间歇、停顿的现象,振幅无规律,呈现颤栗状态,示例性地,恐惧时呼吸为64次/分钟。愤怒时呼吸频率增加,呼吸深度剧烈增大,示例性地,愤怒时呼吸为40次/分钟。Breathing changes under different emotions: Exemplarily, breathing is 20 breaths/minute when calm. Compared with calm emotions, when happy, the breathing depth is not large, the frequency is slightly faster, and the rhythm is relatively regular. Exemplarily, the breathing is 23 breaths/minute when calm. When sad, the respiratory rate is very slow, and the interval is long, for example, the breathing rate is 9 breaths/minute when sad. When in fear, the breathing rate is very fast, there are intermittent and pauses, the amplitude is irregular, and the trembling state is present. Exemplarily, the breathing rate is 64 times/min when in fear. When angry, the breathing rate increases, and the breathing depth increases sharply. Exemplarily, the breathing rate is 40 breaths/minute when angry.
不同情绪下的心率变化:平静情绪时心率为60~80次/分钟,高兴时受肾上腺激素的影响,心率加快,但是节奏规律。悲伤时心跳加速,动脉收缩,严重时会有心律失常。恐惧时心跳加速,伴随心律不齐。愤怒时心跳加速,有心悸和心慌的感觉。Heart rate changes under different emotions: the heart rate is 60-80 beats per minute when the mood is calm, and the heart rate is accelerated by the influence of adrenal hormones when the mood is happy, but the rhythm is regular. When sad, the heart beats faster, the arteries constrict, and in severe cases, there is arrhythmia. Rapid heartbeat during fear, accompanied by arrhythmia. When angry, the heart beats faster, and there is a feeling of palpitation and palpitation.
负面情绪时可能血液、肌肉、睡眠、电信号等会发生变化。其中,负面情绪可能导致皮质醇、去甲肾上腺素、肾上腺素以及儿茶酚胺等压力激素和血管活性物质分泌增加,导致全身血管收缩、心率加快、血压上升、血氧含量异变。负面情绪可能导致肌肉紧张、收缩。负面情绪可能导致睡眠质量下降、入睡困难、多梦。Changes in blood, muscles, sleep, electrical signals, etc. may occur during negative emotions. Among them, negative emotions may lead to increased secretion of stress hormones and vasoactive substances such as cortisol, norepinephrine, epinephrine, and catecholamines, resulting in systemic vasoconstriction, increased heart rate, increased blood pressure, and changes in blood oxygen levels. Negative emotions can cause muscles to tense and contract. Negative emotions can lead to poor sleep quality, difficulty falling asleep, and dreaminess.
通过对情绪变化的生理变化调研发现,不同情绪的呼吸、心率、血压、血糖、血 氧、肌电信号等有所不同,正面情绪和负面情绪引起的这些生理指标的变化存在差异。目前,光电容积脉搏波描记(photo plethysmo graphic,PPG)信号可应用于心率、血压、血氧、血糖、呼吸等生理指标的监测。Through the investigation on the physiological changes of emotional changes, it is found that the respiration, heart rate, blood pressure, blood sugar, blood oxygen, and electromyographic signals are different in different emotions, and the changes in these physiological indicators caused by positive emotions and negative emotions are different. At present, photoplethysmography (photo plethysmo graphic, PPG) signals can be applied to the monitoring of heart rate, blood pressure, blood oxygen, blood sugar, respiration and other physiological indicators.
示例性地,可以根据波长范围为1250~1333nm、1600~1666nm或者2025nm的红外光血糖监测。可以根据PPG信号获取的时序波峰、频域特性计算心率。Exemplarily, blood glucose monitoring can be based on infrared light with a wavelength range of 1250-1333 nm, 1600-1666 nm or 2025 nm. The heart rate can be calculated according to the timing peak and frequency domain characteristics obtained from the PPG signal.
示例性地,可以根据红外(600nm~800nm)和接近红外(800nm~1000nm)的光分别检测氧合血红蛋白HbO2和血红蛋白Hb的信息判断血氧饱和度从而进行血氧监测。Exemplarily, blood oxygen saturation can be judged based on the information of infrared (600nm-800nm) and near-infrared (800nm-1000nm) light respectively detected to detect oxygenated hemoglobin HbO2 and hemoglobin Hb so as to monitor blood oxygen.
示例性地,由于脉搏波传递的速度与血压是直接相关的,血压高时脉搏波传递快,血压低时脉搏波传递慢。因此可以通过建立特征方程估计人体脉搏波的收缩压和舒张压,从而实现无创连续血压监测。Exemplarily, since the transmission speed of the pulse wave is directly related to the blood pressure, the pulse wave transmission is fast when the blood pressure is high, and the pulse wave transmission is slow when the blood pressure is low. Therefore, the systolic and diastolic blood pressure of the human pulse wave can be estimated by establishing the characteristic equation, so as to realize non-invasive continuous blood pressure monitoring.
示例性地,可以通过对PPG信号的小波分解或者经验模态分解(empirical mode decomposition,EMD)提取呼吸信号。Exemplarily, the respiratory signal may be extracted through wavelet decomposition or empirical mode decomposition (empirical mode decomposition, EMD) of the PPG signal.
图1是本申请实施例适用的一种终端设备100的硬件结构示意图。如图1所示,终端设备100包括脉搏波传感器101、肌电电极传感器102、加速度传感器103以及信号处理单元104。FIG. 1 is a schematic diagram of a hardware structure of a terminal device 100 applicable to an embodiment of the present application. As shown in FIG. 1 , the terminal device 100 includes a pulse wave sensor 101 , a myoelectric electrode sensor 102 , an acceleration sensor 103 and a signal processing unit 104 .
其中,脉搏波传感器101用户获取用户的PPG信号,并将该脉搏波信号发送给信号处理单元104。肌电电极传感器102用于获取用户的SEMG信号,并将该SEMG信号发送给信号处理单元104。加速度传感器103用于获取用户的ACC信号,并将该ACC信号发送给信号处理单元104。信号处理单元104用于接收PPG信号、SEMG信号、ACC信号以实现对用户情绪的监测和识别。Wherein, the pulse wave sensor 101 obtains the user's PPG signal, and sends the pulse wave signal to the signal processing unit 104 . The myoelectric electrode sensor 102 is used to obtain the user's SEMG signal, and send the SEMG signal to the signal processing unit 104 . The acceleration sensor 103 is used to obtain the user's ACC signal, and send the ACC signal to the signal processing unit 104 . The signal processing unit 104 is used to receive PPG signals, SEMG signals, and ACC signals to monitor and identify user emotions.
可选地,终端设备100还可以包括显示器105、存储单元106、交互硬件107、无线单元108以及电池109。Optionally, the terminal device 100 may further include a display 105 , a storage unit 106 , interactive hardware 107 , a wireless unit 108 and a battery 109 .
其中,用户可以通过交互硬件107对终端设备100执行触控等操作以实现用户与终端设备100的交互操作。在信号处理单元104得到用户的情绪监测结果后,可以通过显示器105向用户显示情绪监测结果,并且将情绪监测结果保存在存储单元106中。信号处理单元104还可以通过无线单元108发送向与终端设备100关联的其他终端设备或者云端发送情绪监测结果。Wherein, the user may perform operations such as touch on the terminal device 100 through the interactive hardware 107 to realize the interactive operation between the user and the terminal device 100 . After the signal processing unit 104 obtains the user's emotion monitoring result, it can display the emotion monitoring result to the user through the display 105 , and store the emotion monitoring result in the storage unit 106 . The signal processing unit 104 may also send the emotion monitoring result to other terminal devices associated with the terminal device 100 or to the cloud through the wireless unit 108 .
本申请实施例中的终端设备可以指用户设备、接入终端、用户单元、用户站、移动站、移动台、远方站、远程终端、移动设备、用户终端、无线通信设备、用户代理或用户装置。本申请的实施例中的终端可以是手机(mobile phone)、平板电脑(pad)、带无线收发功能的电脑、虚拟现实(virtual reality,VR)终端、增强现实(augmented reality,AR)终端、混合现实(mixed reality,MR)终端、扩展现实(extended reality,XR)终端、全息显示终端、工业控制(industrial control)中的无线终端、无人驾驶(self driving)中的无线终端、或连接到无线调制解调器的其它处理设备、车载设备、5G网络中的终端或者未来演进网络中的终端等。The terminal equipment in the embodiment of the present application may refer to user equipment, access terminal, subscriber unit, subscriber station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, wireless communication device, user agent or user device . The terminal in the embodiment of the present application may be a mobile phone, a tablet computer (pad), a computer with a wireless transceiver function, a virtual reality (virtual reality, VR) terminal, an augmented reality (augmented reality, AR) terminal, a hybrid Reality (mixed reality, MR) terminals, extended reality (extended reality, XR) terminals, holographic display terminals, wireless terminals in industrial control, wireless terminals in self driving, or connected to wireless Other processing equipment of the modem, vehicle equipment, terminals in the 5G network or terminals in the future evolution network, etc.
作为示例而非限定,在本申请实施例中,该终端设备还可以是可穿戴设备。可穿戴设备也可以称为穿戴式智能设备,是应用穿戴式技术对日常穿戴进行智能化设计、开发出可以穿戴的设备的总称,如眼镜、手套、手表、服饰及鞋等。可穿戴设备即直接穿在身上,或是整合到用户的衣服或配件的一种便携式设备。可穿戴设备不仅仅是一种硬件设备,更 是通过软件支持以及数据交互、云端交互来实现强大的功能。广义穿戴式智能设备包括功能全、尺寸大、可不依赖智能手机实现完整或者部分的功能,例如:智能手表或智能眼镜等,以及只专注于某一类应用功能,需要和其它设备如智能手机配合使用,如各类进行体征监测的智能手环、智能首饰等。As an example but not a limitation, in this embodiment of the present application, the terminal device may also be a wearable device. Wearable devices can also be called wearable smart devices, which is a general term for the application of wearable technology to intelligently design daily wear and develop wearable devices, such as glasses, gloves, watches, clothing and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothing or accessories. Wearable devices are not only a hardware device, but also achieve powerful functions through software support, data interaction, and cloud interaction. Generalized wearable smart devices include full-featured, large-sized, complete or partial functions without relying on smart phones, such as smart watches or smart glasses, etc., and only focus on a certain type of application functions, and need to cooperate with other devices such as smart phones Use, such as various smart bracelets and smart jewelry for physical sign monitoring.
此外,终端设备还可以是物联网(internet of things,IoT)系统中的终端设备。IoT是未来信息技术发展的重要组成部分,其主要技术特点是将物品通过通信技术与网络连接,从而实现人机互连,物物互连的智能化网络。本申请对于终端设备的具体形式不作限定。In addition, the terminal device may also be a terminal device in an Internet of Things (internet of things, IoT) system. IoT is an important part of the future development of information technology. Its main technical feature is to connect objects to the network through communication technology, so as to realize the intelligent network of human-machine interconnection and object interconnection. The present application does not limit the specific form of the terminal device.
应理解,本申请实施例中,终端设备可以是用于实现终端设备功能的装置,也可以是能够支持终端设备实现该功能的装置,例如芯片系统,该装置可以被安装在终端中。本申请实施例中,芯片系统可以由芯片构成,也可以包括芯片和其他分立器件。It should be understood that, in this embodiment of the present application, the terminal device may be a device for realizing the function of the terminal device, or may be a device capable of supporting the terminal device to realize the function, such as a chip system, and the device may be installed in the terminal. In the embodiment of the present application, the system-on-a-chip may be composed of chips, or may include chips and other discrete devices.
下面,以终端设备100为智能手表为例进行介绍。图2是本申请实施例提供的一种智能手表200的实体结构示意图。如图2所示,智能手表200包括表盘201和表带202。图1所示的脉搏波传感器101和肌电电极传感器102可以位于表盘201的底部,加速度传感器103和信号处理单元104可以位于表盘201的内部。用户可以通过表带202将终端设备100穿戴于手腕上以采集用户的PPG信号、SEMG信号以及ACC信号。可选地,表盘201上配置有显示屏105,用户可以通过对显示屏105的触控操作输入年龄信息和/或性别信息,终端设备采集的PPG信号、SEMG信号、ACC信号以及输入的用户年龄信息和/或性别信息可以存储在存储单元106中。In the following, an introduction will be made by taking the terminal device 100 as an example of a smart watch. FIG. 2 is a schematic diagram of a physical structure of a smart watch 200 provided by an embodiment of the present application. As shown in FIG. 2 , the smart watch 200 includes a dial 201 and a strap 202 . The pulse wave sensor 101 and the myoelectric electrode sensor 102 shown in FIG. 1 can be located at the bottom of the dial 201 , and the acceleration sensor 103 and the signal processing unit 104 can be located inside the dial 201 . The user can wear the terminal device 100 on the wrist through the wristband 202 to collect the user's PPG signal, SEMG signal and ACC signal. Optionally, a display screen 105 is configured on the dial 201, and the user can input age information and/or gender information through a touch operation on the display screen 105, the PPG signal, SEMG signal, ACC signal collected by the terminal device, and the input user age Information and/or gender information may be stored in storage unit 106 .
需要说明的是,本申请实施例所示终端设备100所采用“上”“底”等方位用词,主要用于描述设备,其并不形成对终端设备100于实际应用场景中的方位的限定。It should be noted that the orientation words such as "upper" and "bottom" used by the terminal device 100 shown in the embodiment of the present application are mainly used to describe the device, and they do not form a limitation on the orientation of the terminal device 100 in actual application scenarios. .
图3是本申请实施例提供的一种情绪监测方法300的示意性流程图。方法300可以应用于部署有脉搏波传感器、肌电电极传感器以及加速度传感器的终端设备,本申请实施例中的终端设备的硬件结构可以如上述图1所示的终端设备100的硬件结构,实体结构可以是图2所示的智能手表200,本申请实施例对此不作限定。方法300包括如下步骤:Fig. 3 is a schematic flowchart of an emotion monitoring method 300 provided by an embodiment of the present application. The method 300 can be applied to a terminal device equipped with a pulse wave sensor, an electromyographic electrode sensor, and an acceleration sensor. The hardware structure of the terminal device in the embodiment of the present application can be the same as the hardware structure of the terminal device 100 shown in FIG. 1 above, and the physical structure It may be the smart watch 200 shown in FIG. 2 , which is not limited in this embodiment of the present application. Method 300 includes the following steps:
S301,通过光电容积脉搏波传感器实时获取用户的PPG信号,通过肌电电极传感器实时获取用户的表皮肌电SEMG信号,并通过加速度传感器实时获取用户的ACC信号。S301. Obtain the user's PPG signal in real time through the photoplethysmography sensor, obtain the user's epidermal myoelectricity SEMG signal in real time through the myoelectric electrode sensor, and obtain the user's ACC signal in real time through the acceleration sensor.
S302,结合PPG信号、SEMG信号、用户的年龄信息以及用户的性别信息,统计该用户在第一时间段内的多个时刻下情绪的分类结果,分类结果包括正面情绪、平静情绪或者负面情绪。S302. Combining the PPG signal, SEMG signal, age information of the user, and gender information of the user, count the classification results of the user's emotions at multiple moments in the first time period, and the classification results include positive emotions, calm emotions, or negative emotions.
S303,基于该用户在该第一时间段内的多个时刻下情绪的分类结果,确定该用户在该第一时间段的情绪状态评价结果。S303. Based on the classification results of the user's emotions at multiple moments in the first time period, determine the user's emotional state evaluation results in the first time period.
S304,结合PPG信号、ACC信号、用户的年龄信息以及用户的性别信息,确定该用户在该第一时间段的睡眠质量评价结果。S304. Combining the PPG signal, the ACC signal, the age information of the user, and the gender information of the user, determine the sleep quality evaluation result of the user in the first time period.
S305,根据情绪状态评价结果和该睡眠质量评价结果,确定是否进行情绪预警。S305. Determine whether to perform an emotional warning according to the emotional state evaluation result and the sleep quality evaluation result.
示例性地,上述脉搏波传感器可以是PPG传感器、压力传感器或者超声波传感器。Exemplarily, the above-mentioned pulse wave sensor may be a PPG sensor, a pressure sensor or an ultrasonic sensor.
示例性地,本申请实施例中可以将PPG信号、SEMG信号、ACC信号、用户的年龄信息以及用户的性别信息统称为生理信号。Exemplarily, in the embodiment of the present application, the PPG signal, the SEMG signal, the ACC signal, the age information of the user, and the gender information of the user may be collectively referred to as physiological signals.
在本申请实施例中,终端设备100可以根据采集的用户的PPG信号、SEMG信号、 用户的年龄信息以及用户的性别信息得到用户在第一时间段内的多个测量时刻下的情绪分类结果。终端设备100可以根据采集的用户的PPG信号、ACC信号、用户的年龄信息以及用户的性别信息得到用户在第一时间段内的睡眠质量评价结果,并结合用户在第一时间段的情绪状态评价结果和睡眠质量评价结果共同得到用户在第一时间段的情绪监测结果,上述情绪监测结果由于结合了PPG信号、SEMG信号、ACC信号、用户的年龄信息以及用户的性别信息,并且还考虑了用户的睡眠情况,因此有利于获取更加准确的情绪监测结果,及时向用户情绪预警,进而为用户的心理健康提供保障。In the embodiment of the present application, the terminal device 100 may obtain the user's emotion classification results at multiple measurement moments within the first time period according to the collected user's PPG signal, SEMG signal, user's age information, and user's gender information. The terminal device 100 can obtain the user's sleep quality evaluation result in the first time period according to the collected user's PPG signal, ACC signal, user's age information, and user's gender information, and combine the user's emotional state evaluation result in the first time period The result and the sleep quality evaluation result together obtain the user's emotion monitoring result in the first time period. The above emotion monitoring result combines PPG signal, SEMG signal, ACC signal, user's age information and user's gender information, and also considers the user's Therefore, it is beneficial to obtain more accurate emotional monitoring results, timely warn users of emotions, and then provide protection for users' mental health.
作为一个可选的实施例,S302包括:对多个时刻中的第一时刻的PPG信号、SEMG信号、用户的年龄信息以及用户的性别信息。对该PPG信号、该SEMG信号、该用户的年龄信息以及该用户的性别信息进行特征提取,得到该用户在该第一时刻的多组生物特征。对该第一时刻的多组生物特征进行特征融合,得到该用户在该第一时刻的融合特征。基于该第一时刻的融合特征,得到该用户在该第一时刻下情绪的分类结果。As an optional embodiment, S302 includes: the PPG signal, the SEMG signal, the age information of the user, and the gender information of the user at the first moment among the multiple moments. Feature extraction is performed on the PPG signal, the SEMG signal, the user's age information, and the user's gender information to obtain multiple sets of biometric features of the user at the first moment. Feature fusion is performed on multiple sets of biometric features at the first moment to obtain the fused features of the user at the first moment. Based on the fusion feature at the first moment, the classification result of the user's emotion at the first moment is obtained.
本申请实施例中以第一时间段内的多个时刻中的第一时刻为例介绍在第一时刻的情绪分类过程。应理解,该第一时刻可以是该多个时刻中的任意时刻,在不同的时刻,用户可能受到周围事物的影响产生行为、情绪上的变化,因此每个时刻都有其对应的PPG信号、SEMG信号以及ACC信号。In the embodiment of the present application, the first moment among the multiple moments in the first time period is taken as an example to introduce the emotion classification process at the first moment. It should be understood that the first moment may be any of the multiple moments. At different moments, the user may be affected by the surrounding things to produce changes in behavior and emotion, so each moment has its corresponding PPG signal, SEMG signal and ACC signal.
示例性地,第一时间段为24小时,终端设备100可以每隔一小时根据采集的用户的生理信号对用户在这一小时的情绪进行情绪分类,在此示例下多个时刻即为24个时刻,终端设备100在第一时间段内可以得到24个情绪分类结果。Exemplarily, the first time period is 24 hours, and the terminal device 100 can classify the user's emotions in this hour according to the collected physiological signals of the user every hour. In this example, the multiple moments are 24 At this moment, the terminal device 100 can obtain 24 emotion classification results within the first time period.
示例性地,可以将正面情绪用数值1表示,将平静情绪用数值0表示,将负面情绪用数值-1表示。Exemplarily, positive emotions may be represented by a value of 1, calm emotions may be represented by a value of 0, and negative emotions may be represented by a value of -1.
图4是本申请实施例提供的一种情绪分类过程的示意图。示例性地,图4示出了上述第一时刻的情绪分类过程。如图4所示,终端设备100可以将采集到的SEMG信号、PPG信号、年龄信息、性别信息进行特征提取,得到多组生物特征,之后将多组生物特征进行特征融合,得到融合特征,并将融合特征输入至分类网络中进行分类,得到情绪分类结果。Fig. 4 is a schematic diagram of an emotion classification process provided by an embodiment of the present application. Exemplarily, FIG. 4 shows the emotion classification process at the first moment above. As shown in FIG. 4, the terminal device 100 can perform feature extraction on the collected SEMG signals, PPG signals, age information, and gender information to obtain multiple sets of biological features, and then perform feature fusion on multiple sets of biological features to obtain fusion features, and The fusion features are input into the classification network for classification, and the result of emotion classification is obtained.
可选地,终端设备100对SEMG信号进行特征提取,包括对SEMG信号进行预处理,得到预处理后的SEMG信号。Optionally, the terminal device 100 performs feature extraction on the SEMG signal, including preprocessing the SEMG signal, to obtain a preprocessed SEMG signal.
示例性地,对SEMG信号的预处理可以是采用小波变换对SEMG信号进行滤波。本申请实施例中可以将滤波后的SEMG信号得到的生物特征称为表皮肌电特征。Exemplarily, the preprocessing of the SEMG signal may be filtering the SEMG signal by wavelet transform. In the embodiment of the present application, the biological feature obtained from the filtered SEMG signal may be referred to as an epidermal myoelectric feature.
可选地,终端设备100对用户的年龄信息以及性别信息进行特征提取,包括终端设备100对用户的年龄信息以及性别信息进行预处理。示例性地,对用户的年龄信息以及性别信息进行预处理可以是对用户的年龄信息以及性别信息进行数值化处理。Optionally, the terminal device 100 performs feature extraction on the user's age information and gender information, including that the terminal device 100 performs preprocessing on the user's age information and gender information. Exemplarily, preprocessing the age information and gender information of the user may be performing numerical processing on the age information and gender information of the user.
示例性地,可以对用户的年龄实际年龄进行分类后进行数值化处理,例如0~10岁可以用数值1表示,11~20岁可以用数值2表示,21~30岁可以用数值3表示,31~40岁可以用数值4表示,41~50岁可以用数值5表示,51~60岁可以用数值6表示,61~70岁可以用数值7表示,70岁以上的可以用数值8表示。Exemplarily, the actual age of the user can be classified and then numerically processed. For example, 0-10 years old can be represented by the value 1, 11-20 years old can be represented by the value 2, and 21-30 years old can be represented by the value 3. 31-40 years old can be represented by the value 4, 41-50 years old can be represented by the value 5, 51-60 years old can be represented by the value 6, 61-70 years old can be represented by the value 7, and those over 70 years old can be represented by the value 8.
示例性地,可以将男性用数值0表示,女性用数值1表示。Exemplarily, a male can be represented by a value of 0, and a female can be represented by a value of 1.
可选地,终端设备100对PPG信号进行特征提取,包括对PPG信号进行预处理。 终端设备100可以将预处理后的PPG信号输入至特征提取网络进行特征提取,得到用户的多组生物特征,并可以根据用户的生物特征回归得到每组生物特征对应的特征值。Optionally, the terminal device 100 performs feature extraction on the PPG signal, including preprocessing the PPG signal. The terminal device 100 can input the preprocessed PPG signal to the feature extraction network for feature extraction to obtain multiple sets of biological features of the user, and can obtain the feature value corresponding to each set of biological features according to the user's biological feature regression.
示例性地,对PPG信号的预处理可以是对PPG信号进行滤波,例如,采用小波变换实现对PPG信号的滤波。Exemplarily, the preprocessing of the PPG signal may be to filter the PPG signal, for example, wavelet transform is used to implement the filtering of the PPG signal.
在一种可能的实现方式中,特征提取网络可以对预处理后的PPG信号进行信号分解和频域信号变换以提取生物特征。In a possible implementation manner, the feature extraction network may perform signal decomposition and frequency domain signal transformation on the preprocessed PPG signal to extract biological features.
其中,在对预处理后的PPG信号进行信号分解时,示例性地,终端设备100可以检测预处理后PPG信号的时域特征,提取预处理后PPG信号的时域特征值和最优波段,对提取的最优波段进行波形分割,得到多个单周期波形,将单周期波形进行信号的稀疏分解,获取信号的原子特征参数特征。Wherein, when performing signal decomposition on the preprocessed PPG signal, for example, the terminal device 100 may detect the time domain feature of the preprocessed PPG signal, extract the time domain feature value and the optimal band of the preprocessed PPG signal, Perform waveform segmentation on the extracted optimal band to obtain multiple single-period waveforms, and perform sparse decomposition of the single-period waveform to obtain the atomic characteristic parameters of the signal.
其中,在对预处理后的PPG信号进行频域信号变换时,示例性地,可以采用傅里叶变换得到PPG信号的频域特征值。Wherein, when performing frequency-domain signal transformation on the preprocessed PPG signal, for example, Fourier transform may be used to obtain the frequency-domain eigenvalue of the PPG signal.
在对预处理后的PPG信号进行信号分解和频域信号变换之后,终端设备100可以将原子特征参数特征、时域特征值、频域特征值以及预处理后的PPG信号进行特征融合。After performing signal decomposition and frequency domain signal transformation on the preprocessed PPG signal, the terminal device 100 may perform feature fusion on the atomic feature parameter feature, time domain feature value, frequency domain feature value and the preprocessed PPG signal.
示例性地,特征融合可以采用特征拼接或者特征求和的方式实现。Exemplarily, feature fusion may be implemented by means of feature concatenation or feature summation.
在一种可能的实现方式中,特征提取网络可以是时序网络,例如,门控循环单元(gated recurrent unit,GRU)网络。其中,GRU是循环神经网络(recurrent neural network,RNN)的一种变形网络结构,可以通过门函数将输入数据的重要特征保留下来。在本申请实施例中,可以通过特征提取网络提取用户的心率特征、呼吸特征、血氧特征、血糖特征、血压特征中的至少一个。In a possible implementation manner, the feature extraction network may be a sequential network, for example, a gated recurrent unit (GRU) network. Among them, GRU is a deformed network structure of recurrent neural network (RNN), which can preserve the important characteristics of the input data through the gate function. In the embodiment of the present application, at least one of the user's heart rate feature, breathing feature, blood oxygen feature, blood sugar feature, and blood pressure feature may be extracted through the feature extraction network.
应理解,以上对PPG信号、SEMG信号、用户的年龄信息以及用户的性别信息进行特征提取的方式仅为示例,本申请实施例对此不作限定。It should be understood that the above manner of extracting features from the PPG signal, the SEMG signal, the age information of the user, and the gender information of the user is only an example, and is not limited in this embodiment of the present application.
由上文描述可知,不同情绪的呼吸、心率、血压、血糖、血氧、肌电信号等有所不同,正面情绪和负面情绪引起的这些生理指标的变化存在差异,因此本申请实施例中所获取的生物特征可以明确体现不同情绪下的生物信号的变化,可解释性以及表征能力较强。From the above description, it can be known that the breathing, heart rate, blood pressure, blood sugar, blood oxygen, electromyographic signals, etc. of different emotions are different, and the changes of these physiological indicators caused by positive emotions and negative emotions are different. The acquired biological characteristics can clearly reflect the changes of biological signals under different emotions, and the interpretability and representation ability are strong.
作为一个可选的实施例,对该第一时刻的多组生物特征进行特征融合,得到用户在该第一时刻的融合特征,包括:通过柔性最大值传输softmax函数计算该多组生物特征中每组生物特征的权重。根据每组生物特征和每组生物特征的权重,得到用户在该第一时刻的融合特征。As an optional embodiment, performing feature fusion on multiple sets of biometric features at the first moment to obtain the fused features of the user at the first moment includes: calculating each of the multiple sets of biological features through a softmax function The weight of the group biometric. According to each set of biometric features and the weight of each set of biometric features, the fused features of the user at the first moment are obtained.
如图4所示,在得到多组生物特征之后,终端设备100可以将多组生物特征进行特征融合得到融合特征。示例性地,本申请实施例中的特征融合为自适应特征融合,每组生物特征有对应的特征权重。其中,特征权重与样本相关,根据不同的样本可以自适应调整特征权重,这样有利于获取不同维度的特征的重要性,使得融合特征的表达能力更强。As shown in FIG. 4 , after obtaining multiple sets of biometric features, the terminal device 100 may perform feature fusion on the multiple sets of biometric features to obtain fused features. Exemplarily, the feature fusion in the embodiment of the present application is an adaptive feature fusion, and each set of biological features has a corresponding feature weight. Among them, the feature weight is related to the sample, and the feature weight can be adjusted adaptively according to different samples, which is beneficial to obtain the importance of features of different dimensions, and makes the fusion feature more expressive.
示例性地,共有N组生物特征,将这N组生物特征以特征矩阵的形式表示为P=[P 1;P 2;……P N],每组生物特征有M个元素,则特征矩阵P的维度为N*M,其中*表示矩阵乘法。 Exemplarily, there are N groups of biological characteristics, and these N groups of biological characteristics are expressed as P=[P 1 ; P 2 ; ... P N ] in the form of a feature matrix, and each group of biological characteristics has M elements, then the feature matrix The dimension of P is N*M, where * represents matrix multiplication.
示例性地,可以通过权重函数F(W,P)=softmax(W M*N*P*P T+B M*1,axis=0)计算 每组生物特征的权重,其中,W M*N表示M*N维的可训练权重矩阵,B M*1表示一个M*1维的可训练偏置矩阵,axis=0表示每一行单独执行softmax,最终得到一个M*N维的权重矩阵。 Exemplarily, the weight of each group of biological characteristics can be calculated by the weight function F(W, P)=softmax(W M*N *P*P T +B M*1 , axis=0), wherein, W M*N Represents an M*N-dimensional trainable weight matrix, B M*1 represents an M*1-dimensional trainable bias matrix, axis=0 represents each row performs softmax separately, and finally obtains an M*N-dimensional weight matrix.
在得到权重矩阵F(W,P)之后,将M*N维的权重矩阵F(W,P)与N*M维的生物特征矩阵P进行矩阵相乘,这样每组生物特征可以被赋予相应的权重,之后可以通过对角函数Diag(x)得到融合特征矩阵,即融合特征矩阵feature=Diag(F(W,P)*P),其中Diag(x)表示取对角线元素组成新的矩阵。After the weight matrix F(W, P) is obtained, the M*N-dimensional weight matrix F(W, P) is matrix-multiplied with the N*M-dimensional biological characteristic matrix P, so that each group of biological characteristics can be assigned a corresponding After that, the fusion feature matrix can be obtained through the diagonal function Diag(x), that is, the fusion feature matrix feature=Diag(F(W,P)*P), where Diag(x) means taking diagonal elements to form a new matrix.
作为一个可选的实施例,S303包括:从多个时刻下情绪的分类结果中获取用户在该第一时间段的负面情绪的次数和每次负面情绪的持续时长。基于该负面情绪的次数和每次负面情绪的持续时长,确定用户在该第一时间段的情绪状态评价结果。As an optional embodiment, S303 includes: obtaining the number of negative emotions of the user in the first time period and the duration of each negative emotion from the classification results of emotions at multiple moments. Based on the number of negative emotions and the duration of each negative emotion, the evaluation result of the user's emotional state in the first time period is determined.
在本申请实施例中,假设第一时间段为24小时,终端设备100每1小时对用户进行一次情绪识别,那么第一时间段又可以分为24个子时间段,每个子时间段的时长为1小时。终端设备100可以基于每个子时间段采集的PPG信号、SEMG信号、用户的年龄信息以及性别信息得到每个子时间段的情绪分类结果,将这24个子时间段的情绪识别结果以集合的形式表示为(0,0,0,0,1,0,0,0,0,-1,0,0,0,1,1,0,0,0,0,-1,-1,0,0,1),其中0表示平静情绪,1表示正面情绪,-1表示负面情绪。In the embodiment of the present application, assuming that the first time period is 24 hours, and the terminal device 100 performs emotion recognition on the user every hour, then the first time period can be divided into 24 sub-time periods, and the duration of each sub-time period is 1 hour. The terminal device 100 can obtain the emotion classification result of each sub-time period based on the PPG signal, SEMG signal, user's age information and gender information collected in each sub-time period, and express the emotion recognition results of these 24 sub-time periods in the form of a set as (0,0,0,0,1,0,0,0,0,-1,0,0,0,1,1,0,0,0,0,-1,-1,0,0, 1), where 0 indicates calm emotion, 1 indicates positive emotion, and -1 indicates negative emotion.
终端设备100可以从该情绪分类结果的集合中获取第一时间段中负面情绪的次数,在本示例中可以看出用户在第一时间段出现3次负面情绪。进一步地,终端设备100可以根据用户出现负面情绪的子时间段采集的PPG信号、SEMG信号所反映的呼吸、心率、血压、血糖、血氧、肌电信号等的变化,获取每次负面情绪的持续时长。The terminal device 100 may acquire the number of times of negative emotions in the first time period from the set of emotion classification results. In this example, it can be seen that the user has three negative emotions in the first time period. Further, the terminal device 100 can obtain the information of each negative emotion according to changes in respiration, heart rate, blood pressure, blood sugar, blood oxygen, and electromyographic signals reflected in the PPG signal and SEMG signal collected in the sub-time period when the user appears negative emotion. Duration.
示例性地,终端设备100持续获取PPG信号和SEMG信号,可以是每1s、每5s或者每10s对PPG信号和SEMG信号进行一次特征提取,在终端设备100检测到负面情绪的初始时刻开始,负面情绪的持续时长开始累积,直至终端设备100没有检测到负面情绪,那么从终端设备100最初检测到负面情绪的开始时刻直至终端设备检测不到负面情绪的结束时刻的累积的时长即为负面情绪的持续时长。Exemplarily, the terminal device 100 continuously acquires the PPG signal and the SEMG signal, and may perform feature extraction on the PPG signal and the SEMG signal every 1s, every 5s, or every 10s, starting at the initial moment when the terminal device 100 detects negative emotions. The duration of the emotion begins to accumulate until the terminal device 100 detects no negative emotion, then the accumulated duration from the beginning moment when the terminal device 100 initially detects the negative emotion to the end moment when the terminal device does not detect the negative emotion is the negative emotion. Duration.
示例性地,用户在该第一时间段的情绪状态评价结果可以以分数的形式体现。情绪状态评价分数score_e可以通过下列公式得到:Exemplarily, the evaluation result of the emotional state of the user in the first time period may be expressed in the form of scores. The emotional state evaluation score score_e can be obtained by the following formula:
Figure PCTCN2022119258-appb-000003
Figure PCTCN2022119258-appb-000003
其中,T表示第一时间段的时长,n表示在第一时间段中出现负面情绪的次数,t i表示第i次负面情绪的持续时长。由上述公式可得看出,累计的负面情绪时间越长,情绪状态评价分数越低。 Among them, T represents the duration of the first time period, n represents the number of times negative emotions appear in the first time period, and t i represents the duration of the i-th negative emotion. It can be seen from the above formula that the longer the accumulated negative emotion time, the lower the emotional state evaluation score.
可选地,终端设备100可以向用户显示第一时间段中每个时刻下得到的实时情绪。应理解,该实时情绪可以通过语句、图像的形式体现,本申请实施例对此不作限定。Optionally, the terminal device 100 may display real-time emotions obtained at each moment in the first time period to the user. It should be understood that the real-time emotion may be expressed in the form of sentences or images, which is not limited in this embodiment of the present application.
示例性地,当情绪分类结果为正面情绪时,终端设备100可以显示“保持好心情!”、“心情不错哦!继续加油!”、“元气满满的一天”或者“心情棒棒哒~”等语句。Exemplarily, when the emotion classification result is a positive emotion, the terminal device 100 may display "Keep a good mood!", "Good mood! Keep going!", "Energetic day" or "I'm in a great mood~" and so on.
示例性地,当情绪分类结果为正面情绪时,终端设备100还可以显示“太阳”、“点赞”、“鼓掌”或者“欢呼”等图案。Exemplarily, when the emotion classification result is a positive emotion, the terminal device 100 may also display patterns such as "sun", "like", "applause" or "cheer".
示例性地,当情绪分类结果为负面情绪时,示例性地,终端设备100可以显示“加油, 要开心哦!、“阳光总在风雨后”或者“乌云快走开”等语句。Exemplarily, when the emotion classification result is negative emotion, for example, the terminal device 100 may display sentences such as "Come on, be happy!", "Sunshine always comes after a storm" or "Dark clouds go away".
示例性地,当情绪分类结果为负面情绪时,示例性地,终端设备100还可以显示“打气”、“鼓励”或者“拥抱”等图案。Exemplarily, when the emotion classification result is a negative emotion, the terminal device 100 may also display patterns such as "encouragement", "encouragement" or "hug", for example.
应理解,上述体现情绪的形式仅为示例,还可以采用其他形式来体现用户的实时情绪,本申请实施例对此不作限定。It should be understood that the above-mentioned form of expressing emotion is only an example, and other forms may also be used to reflect the user's real-time emotion, which is not limited in this embodiment of the present application.
作为一个可选的实施例,S304包括:基于ACC信号在坐标轴上的分量,得到用户在该第一时间段的睡眠中断次数。基于PPG信号获取用户在该第一时间段的心率变化信息,并根据该心率变化信息得到该用户在该第一时间段的睡眠总时长、深睡时长以及浅睡时间。结合该睡眠中断次数、睡眠总时长、深睡时长以及浅睡时长,确定用户在该第一时间段的睡眠评价结果。As an optional embodiment, S304 includes: obtaining the number of sleep interruptions of the user in the first time period based on the components of the ACC signal on the coordinate axis. The heart rate change information of the user in the first time period is acquired based on the PPG signal, and the total sleep duration, deep sleep duration, and light sleep time of the user in the first time period are obtained according to the heart rate change information. Combined with the number of sleep interruptions, total sleep duration, deep sleep duration, and light sleep duration, the sleep evaluation result of the user in the first time period is determined.
在本申请实施例中,由于运动状态和非运动状态下ACC信号在x轴、y轴和z轴上的重力加速度分量有所不同。其中,x轴方向值的大小代表终端设备100水平移动,y轴方向值代表终端设备100垂直移动,z轴方向值代表终端设备100的空间垂直方向。在非运动状态下,ACC信号在x轴、y轴和z轴上的重力加速度分量的模值应该稳定在9.8左右。因此在用户睡眠过程中,如果终端设备100监测到ACC信号在x轴、y轴和z轴上的重力加速度分量的模值变化量超过了第一预设阈值,并且持续时间大于或者等于第二预设阈值,终端设备100可以认为用户的睡眠中断。In the embodiment of the present application, the gravitational acceleration components of the ACC signal on the x-axis, y-axis and z-axis are different between the moving state and the non-moving state. Wherein, the value of the x-axis direction represents the horizontal movement of the terminal device 100 , the value of the y-axis direction represents the vertical movement of the terminal device 100 , and the value of the z-axis direction represents the spatial vertical direction of the terminal device 100 . In the non-moving state, the modulus value of the gravitational acceleration component of the ACC signal on the x-axis, y-axis and z-axis should be stable at about 9.8. Therefore, during the sleep process of the user, if the terminal device 100 detects that the modulus variation of the gravitational acceleration component of the ACC signal on the x-axis, y-axis and z-axis exceeds the first preset threshold, and the duration is greater than or equal to the second With a preset threshold, the terminal device 100 may consider that the user's sleep is interrupted.
图5是本申请实施例提供的一种睡眠时心率的变化曲线图。如图5所示,用户在由入睡到浅度睡眠(简称为浅睡)再到深度睡眠(简称为深睡)的过程中,心率是逐渐缓慢下降的。示例性地,在t1时刻用户开始进入睡眠,在t1-t2这段时长内处于浅睡状态,持续时长用T 1表示。在t2时刻之后,用户的心率趋于平稳,用户在t2-t3这段时长内处于深睡状态,持续时长用T 2表示。示例性地,深睡时心率稳定在55~60次/分钟。在t3时刻之后,用户的心率开始缓慢上升,用户在t3-t4这段时间内处于浅度睡眠状态,持续时长用T 3表示,直至t4时刻用户逐渐苏醒。由此可以得到用户在第一时间段的睡眠总时长T_s=T 1+T 2+T 3,深睡时长T_d=T 2,浅睡时长T_q=T 1+T 3Fig. 5 is a graph of changes in heart rate during sleep according to an embodiment of the present application. As shown in FIG. 5 , when the user goes from falling asleep to light sleep (referred to as light sleep for short) and then to deep sleep (referred to as deep sleep for short), the heart rate gradually decreases slowly. Exemplarily, the user starts to fall asleep at time t1, and is in a light sleep state during the period of time t1-t2, and the duration is denoted by T1 . After time t2, the user's heart rate tends to be stable, and the user is in a deep sleep state during the period of time t2-t3, and the duration is represented by T2 . Exemplarily, the heart rate is stable at 55-60 beats/min during deep sleep. After time t3, the user's heart rate begins to rise slowly, and the user is in a light sleep state during the period from t3 to t4. The duration is represented by T3 until the user gradually wakes up at time t4. Thus, the total sleep duration T_s=T 1 +T 2 +T 3 , the deep sleep duration T_d=T 2 , and the light sleep duration T_q=T 1 +T 3 of the user in the first time period can be obtained.
结合用户的睡眠总时长、深睡时长、浅睡时长以及睡眠中断次数,可以得到用户在第一时间段的睡眠质量评价结果。其中,睡眠质量评价结果可以以分数的形式体现,将用户的睡眠质量评价分数记为score_s。表二示出了一种可能的睡眠质量评价分数。Combined with the user's total sleep duration, deep sleep duration, light sleep duration, and sleep interruption times, the user's sleep quality evaluation results in the first time period can be obtained. Wherein, the sleep quality evaluation result may be expressed in the form of scores, and the user's sleep quality evaluation score is recorded as score_s. Table 2 shows a possible sleep quality assessment score.
表二Table II
得分Score 90~10090~100 80~9080~90 60~8060~80 40~6040~60 <40<40
睡眠总时长total sleep time 7~8小时7~8 hours ≥9小时≥9 hours 5~6小时5~6 hours 3~4小时3 to 4 hours 1~2小时1~2 hours
深睡时长比例Proportion of deep sleep time >25%>25% 15%~25%15%~25% 10%~15%10%~15% 3%~10%3%~10% <3%<3%
浅睡时长比例Proportion of light sleep duration <50%<50% 50%~65%50%~65% 65%~75%65%~75% 75%~90%75%~90% >90%>90%
睡眠中断次数sleep interruptions ≤1≤1 2~42~4 4~64~6 6~86~8 >8>8
下面示意性给出一种得到睡眠质量评价分数的逻辑判断代码:A logical judgment code for obtaining sleep quality evaluation scores is schematically given below:
Figure PCTCN2022119258-appb-000004
Figure PCTCN2022119258-appb-000004
作为一个可选的实施例,S305包括:根据情绪状态评价结果和睡眠质量评价结果,得到用户在第一时间段的情绪监测结果。在该情绪监测结果满足预设条件的情况下,确定向进行情绪预警。As an optional embodiment, S305 includes: obtaining an emotion monitoring result of the user in the first time period according to the emotional state evaluation result and the sleep quality evaluation result. In the case that the emotion monitoring result satisfies the preset condition, it is determined to carry out an emotion early warning.
本申请实施例可以结合用户的情绪状态评价结果和睡眠质量评价结果共同判断用户在第一时间段的情绪监测结果,这样的监测更加准确全面,有利于提高情绪识别的准确性。In the embodiment of the present application, the user's emotional state evaluation results and sleep quality evaluation results can be combined to determine the user's emotion monitoring results in the first time period. Such monitoring is more accurate and comprehensive, and is conducive to improving the accuracy of emotion recognition.
示例性地,终端设备100可以对情绪状态评价结果和睡眠质量评价结果进行量化,得到情绪状态评价分数score_e和睡眠质量评价分数score_s。终端设备100可以对情绪状态评价分数score_e和睡眠质量评价分数score_s进行加权求和,得到用户在第一时间段的情绪分数score_out,并在情绪分数score_out小于或者等于第三预设阈值的情况下,确定进行情绪预警。Exemplarily, the terminal device 100 may quantify the emotional state evaluation result and the sleep quality evaluation result to obtain the emotional state evaluation score score_e and the sleep quality evaluation score score_s. The terminal device 100 may perform weighted summation of the emotional state evaluation score score_e and the sleep quality evaluation score score_s to obtain the user's emotional score score_out in the first time period, and when the emotional score score_out is less than or equal to the third preset threshold, Be sure to give an emotional warning.
情绪分数score_out可以通过如下公式得到:The sentiment score score_out can be obtained by the following formula:
score_out=α×score_s+(1-α)×score_escore_out=α×score_s+(1-α)×score_e
其中,α表示修正因子。示例性地,α取值为0.5。Among them, α represents the correction factor. Exemplarily, the value of α is 0.5.
在一种可能的实现方式中,终端设备100可以向用户显示预警信息,该预警信息携带用户在该第一时间段的情绪监测结果,例如,终端设备100将情绪分数显示给用户,并显示相应的情绪语句从而提示用户注意情绪健康。In a possible implementation, the terminal device 100 may display early warning information to the user, and the early warning information carries the user's emotion monitoring results in the first time period. For example, the terminal device 100 displays the emotional score to the user, and displays the corresponding Emotional statements to remind users to pay attention to emotional health.
在另一种可能的实现方式中,在如图6所示的终端设备的系统架构600中,终端设备100可以和终端设备110交互信息,例如,终端设备100可以向终端设备110发送预警信息。其中,终端设备110是与终端设备100通过网络连接的终端设备,例如,终端设备100与终端设备110通过蓝牙连接。In another possible implementation manner, in the terminal device system architecture 600 shown in FIG. Wherein, the terminal device 110 is a terminal device connected to the terminal device 100 through a network, for example, the terminal device 100 and the terminal device 110 are connected through Bluetooth.
示例性地,上述预警信息可以包括用户的PPG信号、ACC信号和SEMG信号,终端设备110可以根据获取的PPG信号、ACC信号以及SEMG信号,结合用户在终端设备110上输入的年龄信息以及性别信息,得到用户的情绪监测结果,并向用户显示情绪监测结果和/或相应的情绪语句以对用户起到预警的作用。Exemplarily, the above warning information may include the user's PPG signal, ACC signal and SEMG signal, and the terminal device 110 may combine the age information and gender information input by the user on the terminal device 110 according to the obtained PPG signal, ACC signal and SEMG signal , to obtain the user's emotion monitoring result, and display the emotion monitoring result and/or the corresponding emotional statement to the user so as to serve as an early warning to the user.
示例性地,预警信息可以包括终端设备100根据用户的PPG信号、ACC信号和SEMG信号得到的情绪监测结果,终端设备110可以向用户显示情绪监测结果和/或相应的情绪语句以对用户起到预警的作用。Exemplarily, the early warning information may include the emotion monitoring results obtained by the terminal device 100 according to the user's PPG signal, ACC signal and SEMG signal, and the terminal device 110 may display the emotion monitoring results and/or corresponding emotional statements to the user to play a role in the user's actions. The role of early warning.
表三示出了终端设备100或者终端设备110在不同分数下可能的显示内容。Table 3 shows possible display contents of the terminal device 100 or the terminal device 110 under different scores.
表三Table three
情绪分数sentiment score 显示语句示例Show statement example
90~10090~100 您今天心情不错,请继续保持You are in a good mood today, please keep it up
70~9070~90 阳光总在风雨后the sun is always behind the storm
<70<70 不经历风雨,怎见得彩虹How can you see a rainbow without experiencing wind and rain
示例性地,情绪状态评价结果和睡眠质量评价结果以评价等级的形式体现。例如将情绪状态评价结果和睡眠质量评价结果分为A、B、C、D、E五个等级,当用户的情绪状态评价结果为A或B,睡眠质量评价结果为A或B时,终端设备100可以得到用户在第一时间段的情绪监测结果为高等级,表示情绪良好。当用户的情绪状态评价结果为C,睡眠质量评价结果为C时,终端设备100可以得到用户在第一时间段的情绪监测结果为中等级,表示情绪正常。当用户的情绪状态评价结果为D或E,睡眠质量评价结果为D或E时,终端设备100可以得到用户在第一时间段的情绪监测结果为低等级,表示情绪异常或消极。Exemplarily, the emotional state evaluation results and the sleep quality evaluation results are presented in the form of evaluation grades. For example, the emotional state evaluation results and sleep quality evaluation results are divided into five levels: A, B, C, D, and E. When the user's emotional state evaluation results are A or B, and the sleep quality evaluation results are A or B, the terminal device 100 It can be obtained that the emotion monitoring result of the user in the first time period is a high level, indicating that the user is in a good mood. When the evaluation result of the user's emotional state is C and the evaluation result of sleep quality is C, the terminal device 100 may obtain that the user's emotion monitoring result in the first time period is at a medium level, indicating that the mood is normal. When the user's emotional state evaluation result is D or E, and the sleep quality evaluation result is D or E, the terminal device 100 may obtain that the user's emotional monitoring result in the first time period is low, indicating abnormal or negative mood.
示例性地,当终端设备100得到用户在第一时间段的情绪监测结果为低等级,终端设备100可以向终端设备110发送预警信息。Exemplarily, when the terminal device 100 obtains that the user's mood monitoring result in the first time period is low, the terminal device 100 may send an early warning message to the terminal device 110 .
应理解,终端设备100可以将情绪状态评价结果、睡眠质量评价结果或者情绪监测结果中的至少一项显示给用户,本申请实施例对此不作限定。It should be understood that the terminal device 100 may display at least one of emotional state evaluation results, sleep quality evaluation results, or emotional monitoring results to the user, which is not limited in this embodiment of the present application.
还应理解,上述情绪状态评价结果、睡眠质量评价结果以及情绪监测结果体现形式仅为示例,还可以通过数据直方图、数据圆饼图、折线图、表情包等其他形式向用户显示,本申请实施例对此不作限定。It should also be understood that the above-mentioned emotional state evaluation results, sleep quality evaluation results, and emotional monitoring results are only examples, and can also be displayed to users in other forms such as data histograms, data pie charts, line graphs, and emoticons. The embodiment does not limit this.
可选地,终端设备100可以将预警信息存储在云端,终端设备110可以周期性地从云端获取该预警信息。示例性地,终端设备100将用户每24小时的情绪监测结果存储在云端,终端设备110可以每24小时、每48小时或者每72小时从云端获取预警信息,并根据预警信息中携带的用户的情绪监测结果向用户显示相应的预警内容。Optionally, the terminal device 100 may store the early warning information in the cloud, and the terminal device 110 may periodically obtain the early warning information from the cloud. Exemplarily, the terminal device 100 stores the user's emotional monitoring results every 24 hours in the cloud, and the terminal device 110 can obtain early warning information from the cloud every 24 hours, every 48 hours, or every 72 hours, and The emotion monitoring results show the corresponding warning content to the user.
示例性地,如果情绪监测结果显示在过去的24小时、48小时或者72小时用户的情绪等分较低或者为低等级,终端设备110可以考虑通过终端设备110上的健康类应用程序(application,APP)向用户显示鼓励加油类的语句,还可以通过健康类APP显示用户的情绪状态评价结果和/或睡眠质量评价结果。Exemplarily, if the emotional monitoring results show that the user's emotional score in the past 24 hours, 48 hours or 72 hours is low or low, the terminal device 110 may consider using the health application program (application, APP) displays words encouraging the user to refuel, and can also display the user's emotional state evaluation results and/or sleep quality evaluation results through the health APP.
示例性地,如果情绪监测结果显示在过去的24小时、48小时或者72小时用户的情绪等分较低或者为低等级,终端设备110还可以通过监测类APP向用户进行示警,以委婉的方式提示用户进行沟通或者心理辅导。例如,可以通过监测类APP向用户显示“天气真好,多多出去走动吧”、“要经常和朋友家人聊天哦”或者“找个人倾诉一下坏情绪吧”等语句。For example, if the emotional monitoring results show that the user's emotional score in the past 24 hours, 48 hours, or 72 hours is low or at a low level, the terminal device 110 can also warn the user through the monitoring APP, in a tactful manner Prompt users for communication or psychological counseling. For example, the monitoring APP can be used to display sentences such as "The weather is really nice, go out and walk more", "Chat with friends and family often", or "Let's find someone to talk about bad emotions" to the user.
在一种可能的场景中,终端设备100可以为智能手表,由未成年用户佩戴,终端设备110可以为家长的手机,家长的手机与未成年用户的智能手表关联,家长可以通过手机获 取未成年用户的情绪状态评价结果、睡眠质量评价结果或情绪监测结果中的至少一个,根据情绪监测结果对未成年用户进行及时沟通和心理辅导。In a possible scenario, the terminal device 100 can be a smart watch worn by an underage user, the terminal device 110 can be a parent's mobile phone, and the parent's mobile phone is associated with the underage user's smart watch, and the parent can obtain the information of the underage user through the mobile phone. According to at least one of the user's emotional state evaluation results, sleep quality evaluation results, or emotional monitoring results, timely communication and psychological counseling are provided to underage users.
示例性地,如果情绪监测结果显示在过去的24小时、48小时或者72小时用户的情绪等分较低或者为低等级,终端设备110还可以通过终端设备110上的视频类APP、音乐类APP或者新闻类APP向用户智能推荐正面的多媒体资源,从而起到缓解用户的负面情绪的作用。For example, if the emotional monitoring results show that the user's emotional score in the past 24 hours, 48 hours or 72 hours is low or at a low level, the terminal device 110 can also use the video APP and music APP on the terminal device 110 to Or a news app can intelligently recommend positive multimedia resources to users, thereby alleviating the negative emotions of users.
应理解,上述终端设备110从云端获取预警信息的周期(24小时、48小时或者72小时)仅为示例,本申请实施例对获取预警信息的周期不作限定。It should be understood that the period (24 hours, 48 hours or 72 hours) for the terminal device 110 to obtain the early warning information from the cloud is only an example, and the embodiment of the present application does not limit the period for obtaining the early warning information.
作为一个可选的实施例,方法300还包括:根据用户在该第一时间段的情绪监测结果、负面情绪的次数以及用户的年龄信息,确定用户的情绪年龄。向用户显示情绪年龄、情绪监测结果或者情绪语句中的至少一种。As an optional embodiment, the method 300 further includes: determining the user's emotional age according to the user's emotion monitoring result in the first time period, the number of negative emotions, and the user's age information. At least one of emotional age, emotional monitoring results, or emotional statements is displayed to the user.
在本申请实施例中,终端设备100可以得到用户的情绪年龄,这样用户基于情绪年龄可以了解自身对情绪的控制能力,有利于提升用户体验。In the embodiment of the present application, the terminal device 100 can obtain the user's emotional age, so that the user can understand his own ability to control emotions based on the emotional age, which is beneficial to improving user experience.
表四示出了一种情绪分数、负面情绪次数与情绪年龄的对应关系,仅供参考。Table 4 shows a corresponding relationship between emotion score, number of negative emotions and emotional age, which is for reference only.
表四Table four
情绪分数sentiment score 负面情绪次数xNumber of Negative Emotions x 情绪年龄emotional age
80~10080~100 00 智慧期wisdom period
80~10080~100 1≤x≤31≤x≤3 稳重期stable period
80~10080~100 ≥3≥3 稚童期Childhood
<70<70 -- 活跃期active period
在上述终端设备100的实体结构为智能手表200的情况下,图7是本申请实施例提供的一种智能手表200的界面示意图。如图7所示,智能手表200可以显示用户的情绪年龄、情绪分数以及相应的情绪语句。例如,用户的情绪分数为98分,情绪年龄为稳重期,情绪语句为“保持好心情!”。In the case where the physical structure of the terminal device 100 is a smart watch 200, FIG. 7 is a schematic interface diagram of a smart watch 200 provided in an embodiment of the present application. As shown in FIG. 7 , the smart watch 200 can display the user's emotional age, emotional score and corresponding emotional statements. For example, the user's emotional score is 98 points, the emotional age is a stable period, and the emotional statement is "keep a good mood!".
作为一个可选的实施例,方法300还包括:获取ACC信号的波峰和波谷。根据ACC信号的波峰和波谷确定用户是否处于非运动状态。S302包括:在确定用户处于非运动状态的情况下,结合PPG信号、SEMG信号、用户的年龄信息以及用户的性别信息,统计所述用户在第一时间段内的多个时刻下情绪的分类结果。As an optional embodiment, the method 300 further includes: acquiring peaks and valleys of the ACC signal. Determine whether the user is in a non-exercise state based on the peaks and troughs of the ACC signal. S302 includes: when it is determined that the user is in a non-exercise state, combining the PPG signal, SEMG signal, user's age information and user's gender information, and counting the classification results of the user's emotions at multiple moments within the first time period .
在本申请实施例中,由于PPG信号受运动干扰较为明显,因此情绪监测需要在非运动状态下进行。终端设备100可以通过ACC信号的波峰和波谷判断PPG信号、SEMG信号是否是在用户处于非运动状态下采集的稳定信号。In the embodiment of the present application, since the PPG signal is significantly disturbed by motion, emotion monitoring needs to be performed in a non-exercise state. The terminal device 100 can determine whether the PPG signal and the SEMG signal are stable signals collected when the user is in a non-exercising state according to the peak and trough of the ACC signal.
图8是本申请实施例提供的一种ACC信号的波形示意图。示例性地,终端设备100识别的ACC信号的时长为10s,如图8所示,在识别时长内ACC信号的波形有1个波峰和1个波谷,其中波峰值为W 1,波谷值为W 2,如果W 1和W 2的差值小于或者等于第四预设阈值,并且波峰和波谷的数量之和小于或者等于第五预设阈值,那么终端设备100可以判断用户处于非运动状态,采集的PPG信号和SEMG信号为可用信号,可以用于后续的情绪监测。 FIG. 8 is a schematic diagram of a waveform of an ACC signal provided by an embodiment of the present application. Exemplarily, the duration of the ACC signal recognized by the terminal device 100 is 10s. As shown in FIG. 8 , the waveform of the ACC signal within the recognition duration has 1 peak and 1 valley, wherein the peak value is W 1 , and the value of the valley is W 2. If the difference between W 1 and W 2 is less than or equal to the fourth preset threshold, and the sum of the number of peaks and valleys is less than or equal to the fifth preset threshold, then the terminal device 100 can determine that the user is in a non-exercise state, and collect The PPG signal and SEMG signal are available signals and can be used for subsequent emotional monitoring.
图9是本申请实施例提供的另一种情绪监测方法900的示意性流程图。方法900可以由终端设备100执行,方法900包括如下步骤:FIG. 9 is a schematic flow chart of another emotion monitoring method 900 provided by an embodiment of the present application. The method 900 can be executed by the terminal device 100, and the method 900 includes the following steps:
S901,实时获取用户的PPG信号、SEMG信号、ACC信号、用户的年龄信息以及用户的性别信息。S901. Obtain the user's PPG signal, SEMG signal, ACC signal, age information of the user, and gender information of the user in real time.
在本步骤中,PPG信号可以通过脉搏波传感器获取,SEMG信号可以通过肌电电极传感器获取,ACC信号可以通过加速度传感器获取。In this step, the PPG signal can be obtained by the pulse wave sensor, the SEMG signal can be obtained by the myoelectric electrode sensor, and the ACC signal can be obtained by the acceleration sensor.
S902,根据ACC信号判断用户是否处于非运动状态。在用户处于非运动状态的情况下,执行S903。若用户处于运动状态,则采集的PPG信号和SEMG信号为无效信号,需要重新采集。S902. Determine whether the user is in a non-exercise state according to the ACC signal. When the user is in a non-exercise state, execute S903. If the user is in a state of exercise, the collected PPG signal and SEMG signal are invalid signals and need to be collected again.
S903,根据PPG信号、SEMG信号、用户的年龄信息以及用户的性别信息对用户的情绪进行分类,得到情绪分类结果。S903. Classify the user's emotion according to the PPG signal, the SEMG signal, the age information of the user, and the gender information of the user, and obtain an emotion classification result.
在本步骤中,终端设备100可以周期性地对采集的PPG信号、SEMG信号、用户的年龄信息以及用户的性别信息进行情绪识别得到多个不同时刻的情绪分类结果。示例性地,终端设备100可以对PPG信号、SEMG信号、用户的年龄信息以及用户的性别信息进行特征提取,并对提取的生物特征进行特征融合,具体的特征提取和特征融合过程在上文中已描述,此处不再赘述。In this step, the terminal device 100 may periodically perform emotion recognition on the collected PPG signal, SEMG signal, user's age information, and user's gender information to obtain multiple emotion classification results at different times. Exemplarily, the terminal device 100 can perform feature extraction on PPG signals, SEMG signals, user age information, and user gender information, and perform feature fusion on the extracted biometric features. The specific feature extraction and feature fusion processes have been described above. description and will not be repeated here.
应理解,本步骤中的情绪分类结果包括多个不同时刻的情绪分类结果。It should be understood that the emotion classification results in this step include multiple emotion classification results at different moments.
S904,根据情绪分类结果中统计的负面情绪出现的次数以及每次负面情绪的持续时长,得到用户的情绪状态评价分数。S904. According to the number of occurrences of negative emotions counted in the emotion classification results and the duration of each negative emotion, the user's emotional state evaluation score is obtained.
在本步骤中,假设情绪分类结果中有用户在24小时中每一小时的情绪分类结果,根据24小时内统计的负面情绪出现的次数以及单次持续时长可以得到用户在24小时的情绪状态评价分。In this step, it is assumed that the emotion classification results include the user’s emotion classification results for each hour in 24 hours, and the user’s emotional state evaluation in 24 hours can be obtained according to the number of negative emotions that have been counted within 24 hours and the duration of a single session. point.
S905,根据PPG信号、ACC信号、用户的年龄信息以及用户的性别信息,对用户进行睡眠质量监测,得到用户的睡眠质量评价分数。S905: Monitor the sleep quality of the user according to the PPG signal, the ACC signal, the user's age information, and the user's gender information, and obtain the user's sleep quality evaluation score.
在本步骤中,终端设备100可以根据ACC信号得到用户的睡眠中断次数,根据PPG信号获取的用户的心率变化情况得到用户进入睡眠的时间、退出睡眠的时间、深睡时长以及浅睡时长,之后结合睡眠中断次数、进入睡眠的时间、退出睡眠的时间、深睡时长、浅睡时长以及用户的年龄和性别评估用户的睡眠质量,得到用户的睡眠质量评价分数。其中,运动状态持续5s以上可视为睡眠中断。In this step, the terminal device 100 can obtain the number of sleep interruptions of the user according to the ACC signal, and obtain the time when the user enters sleep, the time when the user exits sleep, the duration of deep sleep, and the duration of light sleep according to the change of the user's heart rate obtained from the PPG signal, and then The user's sleep quality is evaluated by combining the number of sleep interruptions, the time of entering sleep, the time of exiting sleep, the duration of deep sleep, the duration of light sleep, and the user's age and gender to obtain the user's sleep quality evaluation score. Among them, the movement state lasting more than 5s can be regarded as sleep interruption.
S906,对用户的情绪状态评价分数和睡眠质量评价分数进行加权求和,得到用户的情绪分数。S906. Perform weighted summation of the user's emotional state evaluation score and sleep quality evaluation score to obtain the user's emotional score.
S907,在用户的情绪分数小于或等于情绪阈值的情况下,向云端发送预警信息,该预警信息携带用户的情绪状态评价分数、睡眠质量评价分数或者情绪分数中的至少一个。S907. When the user's emotional score is less than or equal to the emotional threshold, send early warning information to the cloud, where the early warning information carries at least one of the user's emotional state evaluation score, sleep quality evaluation score, or emotional score.
在本步骤中,终端设备100可以在监测到用户的情绪分数较低的情况下,向云端发送预警信息,与终端设备100关联的终端设备110可以从云端获取预警信息,进一步判断是否在终端设备110上对用户进行情绪示警,以APP推送正能量信息、显示鼓励语句等方式提示用户关注情绪健康。In this step, the terminal device 100 can send early warning information to the cloud when it detects that the user's emotional score is low, and the terminal device 110 associated with the terminal device 100 can obtain the early warning information from the cloud to further determine whether the user's emotional score is low. 110 provides emotional alerts to users, and uses APP to push positive energy information and display encouraging sentences to remind users to pay attention to emotional health.
S908,根据用户的情绪分数和负面情绪出现的次数,得到用户的情绪年龄。S908. Obtain the user's emotional age according to the user's emotional score and the number of occurrences of negative emotions.
S909,向用户显示情绪年龄、情绪分数或者情绪语句中的至少一个。S909, displaying at least one of emotional age, emotional score, or emotional sentence to the user.
可选地,终端设备100还可以将情绪年龄发送给终端设备110由终端设备110显示情绪年龄、情绪分数或者情绪语句中的至少一个。Optionally, the terminal device 100 may also send the emotional age to the terminal device 110, and the terminal device 110 displays at least one of the emotional age, the emotional score, or the emotional statement.
在本申请实施例中,终端设备100在根据ACC信号判断采集的PPG信号和SEMG信号相对稳定的情况下,可以根据用户的PPG信号和SEMG信号获取用户在不同情绪下的生物特征,例如心率、血压、血氧、血糖、肌肉的收缩等,并结合用户的年龄和性别等到情绪状态评价结果。由于不同情绪下用户的睡眠情况可能有所不同,因此终端设备100还可以根据PPG信号、ACC信号、用户的年龄和性别对用户的睡眠质量进行监测,得到用户的睡眠质量评价结果,进一步结合用户的情绪状态评价结果和睡眠质量评价结果确定用户的情绪分数,这样得到的情绪分数更能准确地反映用户在一段时间的情绪,有利于提高情绪识别的准确性。In the embodiment of the present application, when the terminal device 100 determines that the collected PPG signal and SEMG signal are relatively stable according to the ACC signal, it can obtain the biological characteristics of the user under different emotions according to the user's PPG signal and SEMG signal, such as heart rate, Blood pressure, blood oxygen, blood sugar, muscle contraction, etc., combined with the user's age and gender to evaluate the emotional state. Since the user's sleep conditions may be different under different emotions, the terminal device 100 can also monitor the user's sleep quality according to the PPG signal, ACC signal, user's age and gender, and obtain the user's sleep quality evaluation result, and further combine the user's The emotional state evaluation results and the sleep quality evaluation results determine the user's emotional score. The emotional score obtained in this way can more accurately reflect the user's emotions in a period of time, which is conducive to improving the accuracy of emotion recognition.
应理解,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the sequence numbers of the above processes do not mean the order of execution, and the execution order of each process should be determined by its functions and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
上文中结合图1至图9,详细描述了根据本申请实施例的情绪监测方法,下面将结合图10和图11详细描述根据本申请实施例的情绪监测装置。The emotion monitoring method according to the embodiment of the present application is described in detail above with reference to FIG. 1 to FIG. 9 , and the emotion monitoring device according to the embodiment of the present application will be described in detail below in conjunction with FIG. 10 and FIG. 11 .
图10示出了本申请实施例提供的一种情绪监测装置1000的示意性框图,该装置1000包括获取模块1010和处理模块1020。FIG. 10 shows a schematic block diagram of an emotion monitoring device 1000 provided by an embodiment of the present application, and the device 1000 includes an acquisition module 1010 and a processing module 1020 .
其中,获取模块1010用于:通过脉搏波传感器实时获取用户的光电容积脉搏波描记PPG信号,通过肌电电极传感器实时获取用户的表皮肌电SEMG信号,并通过加速度传感器实时获取用户的ACC信号。处理模块1020用于:结合PPG信号、SEMG信号、用户的年龄信息以及用户的性别信息,统计用户在第一时间段内的多个时刻下情绪的分类结果,分类结果包括正面情绪、平静情绪或者负面情绪;基于用户在第一时间段内的多个时刻下情绪的分类结果,确定用户在第一时间段的情绪状态评价结果;结合PPG信号、ACC信号、用户的年龄信息以及用户的性别信息,确定用户在第一时间段的睡眠质量评价结果;以及,根据情绪状态评价结果和睡眠质量评价结果,确定是否进行情绪预警。Wherein, the acquiring module 1010 is configured to: acquire the user's photoplethysmography PPG signal in real time through the pulse wave sensor, acquire the user's epidermal electromyography SEMG signal in real time through the myoelectric electrode sensor, and acquire the user's ACC signal in real time through the acceleration sensor. The processing module 1020 is used to: combine the PPG signal, the SEMG signal, the user's age information and the user's gender information, and count the classification results of the user's emotions at multiple moments within the first time period. The classification results include positive emotions, calm emotions, or positive emotions. Negative emotions; based on the classification results of the user's emotions at multiple moments in the first time period, determine the user's emotional state evaluation results in the first time period; combine PPG signal, ACC signal, user's age information and user's gender information , determine the sleep quality evaluation result of the user in the first time period; and, determine whether to perform an emotional warning according to the emotional state evaluation result and the sleep quality evaluation result.
可选地,处理模块1020用于:对多个时刻中的第一时刻的PPG信号、SEMG信号、用户的年龄信息以及用户的性别信息进行特征提取,得到用户在第一时刻的多组生物特征。对第一时刻的多组生物特征进行特征融合,得到用户在第一时刻的融合特征;以及,基于第一时刻的融合特征,得到用户在第一时刻下情绪的分类结果。Optionally, the processing module 1020 is configured to: perform feature extraction on the PPG signal, the SEMG signal, the user's age information, and the user's gender information at the first moment among the multiple moments, to obtain multiple sets of biological characteristics of the user at the first moment . Performing feature fusion on multiple sets of biometric features at the first moment to obtain the fused features of the user at the first moment; and, based on the fused features at the first moment, obtaining a classification result of the user's emotions at the first moment.
可选地,处理模块1020用于:通过柔性最大值传输函数计算多组生物特征中每组生物特征的权重;以及,根据每组生物特征和每组生物特征的权重,得到用户在第一时刻的融合特征。Optionally, the processing module 1020 is configured to: use the flexible maximum transfer function to calculate the weight of each set of biological features in multiple sets of biological features; and, according to each set of biological features and the weight of each set of biological features, obtain the fusion features.
可选地,多组生物特征包括以下至少一种:心率特征、呼吸特征、血氧特征、血糖特征、血压特征或者表皮肌电特征。Optionally, the multiple sets of biological characteristics include at least one of the following: heart rate characteristics, breathing characteristics, blood oxygen characteristics, blood glucose characteristics, blood pressure characteristics, or epidermal myoelectric characteristics.
可选地,获取模块1010用于:从多个时刻下情绪的分类结果中获取用户在第一时间段的负面情绪的次数和每次负面情绪的持续时长。处理模块1020用于:基于负面情绪的次数和每次负面情绪的持续时长,确定用户在第一时间段的情绪状态评价结果。Optionally, the obtaining module 1010 is configured to: obtain the number of negative emotions of the user in the first time period and the duration of each negative emotion from the classification results of emotions at multiple moments. The processing module 1020 is configured to: determine the evaluation result of the user's emotional state in the first time period based on the number of negative emotions and the duration of each negative emotion.
可选地,处理模块1020用于:基于ACC信号在坐标轴上的分量,得到所述用户在所述第一时间段的睡眠中断次数。获取模块1010用于:基于PPG信号,获取用户在第一时间段的心率变化信息。处理模块1020用于:根据心率变化信息,得到用户在第一时间段的睡眠总时长、深睡时长以及浅睡时间;以及,结合睡眠中断次数、睡 眠总时长、深睡时长以及浅睡时长,确定用户在第一时间段的睡眠评价结果。Optionally, the processing module 1020 is configured to: obtain the number of sleep interruptions of the user in the first time period based on the components of the ACC signal on the coordinate axis. The obtaining module 1010 is configured to: obtain the heart rate change information of the user in the first time period based on the PPG signal. The processing module 1020 is used to: obtain the total sleep duration, deep sleep duration, and light sleep duration of the user in the first time period according to the heart rate change information; and, combining the number of sleep interruptions, total sleep duration, deep sleep duration, and light sleep duration, Determine the sleep evaluation result of the user in the first time period.
可选地,处理模块1020用于:根据情绪状态评价结果和睡眠质量评价结果,得到用户在所述第一时间段的情绪监测结果;以及,在情绪监测结果满足预设条件的情况下,确定进行情绪预警。Optionally, the processing module 1020 is configured to: obtain the emotional monitoring result of the user in the first time period according to the emotional state evaluation result and the sleep quality evaluation result; and, when the emotional monitoring result satisfies the preset condition, determine Be emotionally alert.
可选地,处理模块1020用于:对情绪状态评价结果量化后的数值和睡眠质量评价结果量化后的数值进行加权求和,得到用户在第一时间段的情绪分数;以及,在情绪分数小于或者等于预设阈值的情况下,确定进行情绪预警。Optionally, the processing module 1020 is configured to: perform a weighted summation of the quantized value of the emotional state evaluation result and the quantized value of the sleep quality evaluation result to obtain the user's emotional score in the first time period; and, when the emotional score is less than Or when it is equal to the preset threshold, it is determined to perform an emotional warning.
可选地,处理模块1020用于:根据用户在第一时间段的情绪监测结果、负面情绪的次数以及用户的年龄信息,确定用户的情绪年龄;以及,显示情绪年龄、情绪监测结果或者情绪语句中的至少一种。Optionally, the processing module 1020 is configured to: determine the user's emotional age according to the user's emotion monitoring results in the first time period, the number of negative emotions, and the user's age information; and display the emotional age, emotion monitoring results or emotional sentences at least one of the
可选地,获取模块1010用于:获取ACC信号的波峰和波谷。处理模块1020用于:根据ACC信号的波峰和波谷,确定用户是否处于非运动状态;以及,在用户处于非运动状态的情况下,结合PPG信号、SEMG信号、用户的年龄信息以及用户的性别信息,统计用户在第一时间段内的多个时刻下情绪的分类结果。Optionally, the acquiring module 1010 is configured to: acquire peaks and valleys of the ACC signal. The processing module 1020 is used to: determine whether the user is in a non-exercise state according to the peak and trough of the ACC signal; and, when the user is in a non-exercise state, combine the PPG signal, the SEMG signal, the age information of the user, and the gender information of the user , to collect statistics on the classification results of the user's emotions at multiple moments in the first time period.
在一个可选的例子中,本领域技术人员可以理解,装置1000可以具体为上述实施例中的终端设备,或者,上述实施例中终端设备的功能可以集成在装置1000中。上述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。装置1000可以用于执行上述方法实施例中与终端设备对应的各个流程和/或步骤。In an optional example, those skilled in the art may understand that the apparatus 1000 may specifically be the terminal device in the foregoing embodiment, or the functions of the terminal device in the foregoing embodiment may be integrated in the apparatus 1000 . The above functions can be implemented by hardware, or can be implemented by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions. Apparatus 1000 may be configured to execute various processes and/or steps corresponding to the terminal device in the foregoing method embodiments.
应理解,这里的装置1000以功能模块的形式体现。这里的术语“模块”可以指应用特有集成电路(application specific integrated circuit,ASIC)、电子电路、用于执行一个或多个软件或固件程序的处理器(例如共享处理器、专有处理器或组处理器等)和存储器、合并逻辑电路和/或其它支持所描述的功能的合适组件。在本申请的实施例,图10中的装置1000也可以是芯片或者芯片系统,例如:片上系统(system on chip,SoC)。It should be understood that the apparatus 1000 here is embodied in the form of functional modules. The term "module" here may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a dedicated processor, or a group processor, etc.) and memory, incorporated logic, and/or other suitable components to support the described functionality. In the embodiment of the present application, the device 1000 in FIG. 10 may also be a chip or a chip system, for example: a system on chip (system on chip, SoC).
图11示出了本申请实施例提供的另一种情绪监测装置1100的示意性框图。该装置1100包括处理器1110、收发器1120和存储器1130。其中,处理器1110、收发器1120和存储器1130通过内部连接通路互相通信,该存储器1130用于存储指令,该处理器1110用于执行该存储器1130存储的指令,以控制该收发器1120发送信号和/或接收信号。Fig. 11 shows a schematic block diagram of another emotion monitoring device 1100 provided by an embodiment of the present application. The apparatus 1100 includes a processor 1110 , a transceiver 1120 and a memory 1130 . Wherein, the processor 1110, the transceiver 1120 and the memory 1130 communicate with each other through an internal connection path, the memory 1130 is used to store instructions, and the processor 1110 is used to execute the instructions stored in the memory 1130 to control the transceiver 1120 to send signals and /or to receive a signal.
应理解,装置1100可以具体为上述实施例中的终端设备,或者,上述实施例中终端设备的功能可以集成在装置1100中,装置1100可以用于执行上述方法实施例中与终端设备对应的各个步骤和/或流程。可选地,该存储器1130可以包括只读存储器和随机存取存储器,并向处理器提供指令和数据。存储器的一部分还可以包括非易失性随机存取存储器。例如,存储器还可以存储设备类型的信息。该处理器1110可以用于执行存储器中存储的指令,并且该处理器执行该指令时,该处理器可以执行上述方法实施例中与电子设备对应的各个步骤和/或流程。It should be understood that the apparatus 1100 may specifically be the terminal device in the foregoing embodiments, or, the functions of the terminal device in the foregoing embodiments may be integrated into the apparatus 1100, and the apparatus 1100 may be used to perform various functions corresponding to the terminal apparatus in the foregoing method embodiments. steps and/or processes. Optionally, the memory 1130 may include read-only memory and random-access memory, and provides instructions and data to the processor. A portion of the memory may also include non-volatile random access memory. For example, the memory may also store device type information. The processor 1110 may be configured to execute instructions stored in the memory, and when the processor executes the instructions, the processor may execute various steps and/or processes corresponding to the electronic device in the foregoing method embodiments.
应理解,在本申请实施例中,该处理器1110可以是中央处理单元(central processing unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分 立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiment of the present application, the processor 1110 may be a central processing unit (central processing unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits ( ASIC), Field Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器执行存储器中的指令,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the methods disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory, and the processor executes the instructions in the memory, and completes the steps of the above method in combination with its hardware. To avoid repetition, no detailed description is given here.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的模块及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art can appreciate that the modules and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device, and module can refer to the corresponding process in the foregoing method embodiment, and details are not repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or modules may be in electrical, mechanical or other forms.
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or may be distributed to multiple network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module.
所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disc and other media that can store program codes. .
以上所述,仅为本申请的具体实施方式,但本申请实施例的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请实施例揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请实施例的保护范围之内。因此,本申请实施例的保护范围应所述以权利要求的保护范围为准。The above is only the specific implementation of the application, but the protection scope of the embodiment of the application is not limited thereto, and any skilled person familiar with the technical field can easily think of changes within the technical scope disclosed in the embodiment of the application Or replacement, should be covered within the scope of protection of the embodiments of the present application. Therefore, the scope of protection of the embodiments of the present application should be based on the scope of protection of the claims.

Claims (23)

  1. 一种情绪监测方法,其特征在于,应用于部署有脉搏波传感器、肌电电极传感器以及加速度传感器的终端设备,所述方法包括:An emotion monitoring method, characterized in that it is applied to a terminal device deployed with a pulse wave sensor, an electromyography electrode sensor and an acceleration sensor, the method comprising:
    通过所述脉搏波传感器实时获取用户的光电容积脉搏波描记PPG信号,通过所述肌电电极传感器实时获取用户的表皮肌电SEMG信号,并通过所述加速度传感器实时获取用户的ACC信号;Obtain the user's photoplethysmography PPG signal in real time through the pulse wave sensor, obtain the user's epidermal electromyography SEMG signal in real time through the myoelectric electrode sensor, and obtain the user's ACC signal in real time through the acceleration sensor;
    结合所述PPG信号、所述SEMG信号、所述用户的年龄信息以及所述用户的性别信息,统计所述用户在第一时间段内的多个时刻下情绪的分类结果,所述分类结果包括正面情绪、平静情绪或者负面情绪;Combining the PPG signal, the SEMG signal, the age information of the user, and the gender information of the user, the classification results of the user's emotions at multiple moments within the first time period are counted, and the classification results include Positive, calming or negative emotions;
    基于所述用户在所述第一时间段内的多个时刻下情绪的分类结果,确定所述用户在所述第一时间段的情绪状态评价结果;Based on the classification results of the user's emotions at multiple moments in the first time period, determine the user's emotional state evaluation results in the first time period;
    结合所述PPG信号、所述ACC信号、所述用户的年龄信息以及所述用户的性别信息,确定所述用户在所述第一时间段的睡眠质量评价结果;Combining the PPG signal, the ACC signal, the age information of the user, and the gender information of the user, determine the sleep quality evaluation result of the user in the first time period;
    根据所述情绪状态评价结果和所述睡眠质量评价结果,确定是否进行情绪预警。According to the evaluation result of the emotional state and the evaluation result of the sleep quality, it is determined whether to carry out an emotional warning.
  2. 根据权利要求1所述的方法,其特征在于,所述结合所述PPG信号、所述SEMG信号、所述用户的年龄信息以及所述用户的性别信息,统计所述用户在第一时间段内的多个时刻下情绪的分类结果,包括:The method according to claim 1, characterized in that, combining the PPG signal, the SEMG signal, the age information of the user, and the gender information of the user to count the user's time in the first time period The classification results of emotions at multiple moments, including:
    对所述多个时刻中的第一时刻的PPG信号、所述SEMG信号、所述用户的年龄信息以及所述用户的性别信息进行特征提取,得到所述用户在所述第一时刻的多组生物特征;performing feature extraction on the PPG signal, the SEMG signal, the age information of the user, and the gender information of the user at the first moment of the plurality of moments to obtain multiple sets of information about the user at the first moment biometrics;
    对所述第一时刻的多组生物特征进行特征融合,得到所述用户在所述第一时刻的融合特征;performing feature fusion on multiple sets of biometric features at the first moment to obtain the fused features of the user at the first moment;
    基于所述第一时刻的融合特征,得到所述用户在所述第一时刻下情绪的分类结果。Based on the fusion feature at the first moment, a classification result of the user's emotion at the first moment is obtained.
  3. 根据权利要求2所述的方法,其特征在于,所述对所述第一时刻的多组生物特征进行特征融合,得到所述用户在所述第一时刻的融合特征,包括:The method according to claim 2, wherein the feature fusion of multiple sets of biological features at the first moment to obtain the fusion features of the user at the first moment includes:
    通过柔性最大值传输函数计算所述多组生物特征中每组生物特征的权重;calculating a weight for each set of biometrics in the plurality of sets of biometrics via a softmax transfer function;
    根据所述每组生物特征和所述每组生物特征的权重,得到所述用户在所述第一时刻的融合特征。According to each set of biometric features and the weight of each set of biometric features, the fused features of the user at the first moment are obtained.
  4. 根据权利要求2或3所述的方法,其特征在于,所述多组生物特征包括以下至少一种:The method according to claim 2 or 3, wherein the multiple sets of biological characteristics include at least one of the following:
    心率特征、呼吸特征、血氧特征、血糖特征、血压特征或者表皮肌电特征。Heart rate characteristics, respiratory characteristics, blood oxygen characteristics, blood glucose characteristics, blood pressure characteristics or epidermal myoelectric characteristics.
  5. 根据权利要求1-4中任一项所述的方法,其特征在于,所述基于所述用户在所述第一时间段内的多个时刻下情绪的分类结果,确定所述用户在所述第一时间段的情绪状态评价结果,包括:The method according to any one of claims 1-4, characterized in that, based on the classification results of the user's emotions at multiple moments within the first time period, it is determined that the user is in the Emotional state evaluation results in the first time period, including:
    从所述多个时刻下情绪的分类结果中获取所述用户在所述第一时间段的负面情绪的次数和每次负面情绪的持续时长;Obtain the number of negative emotions of the user in the first time period and the duration of each negative emotion from the classification results of emotions at the multiple moments;
    基于所述负面情绪的次数和所述每次负面情绪的持续时长,确定所述用户在所述第一时间段的情绪状态评价结果。Based on the number of negative emotions and the duration of each negative emotion, determine the user's emotional state evaluation result in the first time period.
  6. 根据权利要求1-5中任一项所述的方法,其特征在于,所述结合所述PPG信号、 所述ACC信号、所述用户的年龄信息以及所述用户的性别信息,确定所述用户在所述第一时间段的睡眠质量评价结果,包括:The method according to any one of claims 1-5, wherein the user is determined by combining the PPG signal, the ACC signal, the age information of the user, and the gender information of the user. The sleep quality evaluation results in the first time period include:
    基于所述ACC信号在坐标轴上的分量,得到所述用户在所述第一时间段的睡眠中断次数;Obtaining the number of sleep interruptions of the user in the first time period based on the components of the ACC signal on the coordinate axis;
    基于所述PPG信号,获取所述用户在所述第一时间段的心率变化信息;Obtaining heart rate change information of the user in the first time period based on the PPG signal;
    根据所述心率变化信息,得到所述用户在所述第一时间段的睡眠总时长、深睡时长以及浅睡时间;Obtain the total sleep duration, deep sleep duration, and light sleep duration of the user in the first time period according to the heart rate change information;
    结合所述睡眠中断次数、所述睡眠总时长、所述深睡时长以及所述浅睡时长,确定所述用户在所述第一时间段的睡眠评价结果。Combining the number of sleep interruptions, the total sleep duration, the deep sleep duration, and the light sleep duration, determine the sleep evaluation result of the user in the first time period.
  7. 根据权利要求1-6中任一项所述的方法,其特征在于,所述根据所述情绪状态评价结果和所述睡眠质量评价结果,确定是否进行情绪预警,包括:The method according to any one of claims 1-6, wherein the determining whether to carry out an emotional early warning according to the evaluation result of the emotional state and the evaluation result of the sleep quality comprises:
    根据所述情绪状态评价结果和所述睡眠质量评价结果,得到所述用户在所述第一时间段的情绪监测结果;Obtaining an emotion monitoring result of the user in the first time period according to the emotional state evaluation result and the sleep quality evaluation result;
    在所述情绪监测结果满足预设条件的情况下,确定进行情绪预警。In the case that the emotion monitoring result satisfies the preset condition, it is determined to carry out an emotion early warning.
  8. 根据权利要求7所述的方法,其特征在于,所述根据所述情绪状态评价结果和所述睡眠质量评价结果,得到所述用户在所述第一时间段的情绪监测结果,包括:The method according to claim 7, wherein the obtaining the emotional monitoring result of the user in the first time period according to the emotional state evaluation result and the sleep quality evaluation result includes:
    对所述情绪状态评价结果量化后的数值和所述睡眠质量评价结果量化后的数值进行加权求和,得到所述用户在所述第一时间段的情绪分数;performing weighted summation of the quantified value of the emotional state evaluation result and the quantized value of the sleep quality evaluation result to obtain the emotional score of the user in the first time period;
    所述在所述情绪监测结果满足预设条件的情况下,确定进行情绪预警,包括:In the case where the emotional monitoring result satisfies the preset condition, determining to carry out an emotional early warning includes:
    在所述情绪分数小于或者等于预设阈值的情况下,确定进行情绪预警。If the emotional score is less than or equal to a preset threshold, it is determined to perform an emotional early warning.
  9. 根据权利要求7或8所述的方法,其特征在于,所述方法还包括:The method according to claim 7 or 8, characterized in that the method further comprises:
    根据所述用户在所述第一时间段的情绪监测结果、负面情绪的次数以及所述用户的年龄信息,确定所述用户的情绪年龄;determining the user's emotional age according to the user's emotional monitoring results in the first time period, the number of negative emotions, and the user's age information;
    显示所述情绪年龄、所述情绪监测结果或者情绪语句中的至少一种。Displaying at least one of the emotion age, the emotion monitoring result or the emotion statement.
  10. 根据权利要求1-9中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-9, further comprising:
    获取所述ACC信号的波峰和波谷;Obtain the peak and trough of the ACC signal;
    根据所述ACC信号的波峰和波谷,确定所述用户是否处于非运动状态;determining whether the user is in a non-exercise state according to the peak and trough of the ACC signal;
    所述结合所述PPG信号、所述SEMG信号、所述用户的年龄信息以及所述用户的性别信息,统计所述用户在第一时间段内的多个时刻下情绪的分类结果,包括:The combining the PPG signal, the SEMG signal, the age information of the user, and the gender information of the user, and counting the classification results of the user's emotions at multiple moments within the first time period include:
    在所述用户处于非运动状态的情况下,结合所述PPG信号、所述SEMG信号、所述用户的年龄信息以及所述用户的性别信息,统计所述用户在第一时间段内的多个时刻下情绪的分类结果。When the user is in a non-exercise state, combine the PPG signal, the SEMG signal, the age information of the user, and the gender information of the user to count the multiple The classification results of emotions under the moment.
  11. 一种情绪监测装置,其特征在于,包括:A mood monitoring device, characterized in that it comprises:
    获取模块,用于通过脉搏波传感器实时获取用户的光电容积脉搏波描记PPG信号,通过肌电电极传感器实时获取用户的表皮肌电SEMG信号,并通过加速度传感器实时获取用户的ACC信号;The acquisition module is used to obtain the user's photoplethysmography PPG signal in real time through the pulse wave sensor, obtain the user's epidermal electromyography SEMG signal in real time through the myoelectric electrode sensor, and obtain the user's ACC signal in real time through the acceleration sensor;
    处理模块,用于结合所述PPG信号、所述SEMG信号、所述用户的年龄信息以及所述用户的性别信息,统计所述用户在第一时间段内的多个时刻下情绪的分类结果,所述分类结果包括正面情绪、平静情绪或者负面情绪;A processing module, configured to combine the PPG signal, the SEMG signal, the age information of the user, and the gender information of the user to count the classification results of the user's emotions at multiple moments within the first time period, The classification results include positive emotions, calm emotions or negative emotions;
    所述处理模块还用于:基于所述用户在所述第一时间段内的多个时刻下情绪的分类结果,确定所述用户在所述第一时间段的情绪状态评价结果;The processing module is further configured to: determine the evaluation result of the user's emotional state in the first time period based on the classification results of the user's emotions at multiple moments in the first time period;
    所述处理模块还用于:结合所述PPG信号、所述ACC信号、所述用户的年龄信息以及所述用户的性别信息,确定所述用户在所述第一时间段的睡眠质量评价结果;The processing module is further configured to: combine the PPG signal, the ACC signal, the age information of the user, and the gender information of the user to determine the sleep quality evaluation result of the user in the first time period;
    所述处理模块还用于:根据所述情绪状态评价结果和所述睡眠质量评价结果,确定是否进行情绪预警。The processing module is further configured to: determine whether to carry out an emotional warning according to the evaluation result of the emotional state and the evaluation result of the sleep quality.
  12. 根据权利要求11所述的装置,其特征在于,所述处理模块用于:The device according to claim 11, wherein the processing module is used for:
    对所述多个时刻中的第一时刻的PPG信号、所述SEMG信号、所述用户的年龄信息以及所述用户的性别信息进行特征提取,得到所述用户在所述第一时刻的多组生物特征;performing feature extraction on the PPG signal, the SEMG signal, the age information of the user, and the gender information of the user at the first moment of the plurality of moments to obtain multiple sets of information about the user at the first moment biometrics;
    对所述第一时刻的多组生物特征进行特征融合,得到所述用户在所述第一时刻的融合特征;performing feature fusion on multiple sets of biometric features at the first moment to obtain the fused features of the user at the first moment;
    基于所述第一时刻的融合特征,得到所述用户在所述第一时刻下情绪的分类结果。Based on the fusion feature at the first moment, a classification result of the user's emotion at the first moment is obtained.
  13. 根据权利要求12所述的装置,其特征在于,所述处理模块用于:The device according to claim 12, wherein the processing module is used for:
    通过柔性最大值传输函数计算所述多组生物特征中每组生物特征的权重;calculating a weight for each set of biometrics in the plurality of sets of biometrics via a softmax transfer function;
    根据所述每组生物特征和所述每组生物特征的权重,得到所述用户在所述第一时刻的融合特征。According to each set of biometric features and the weight of each set of biometric features, the fused features of the user at the first moment are obtained.
  14. 根据权利要求12或13所述的装置,其特征在于,所述多组生物特征包括以下至少一种:The device according to claim 12 or 13, wherein the multiple sets of biological characteristics include at least one of the following:
    心率特征、呼吸特征、血氧特征、血糖特征、血压特征或者表皮肌电特征。Heart rate characteristics, respiratory characteristics, blood oxygen characteristics, blood glucose characteristics, blood pressure characteristics or epidermal myoelectric characteristics.
  15. 根据权利要求11-14中任一项所述的装置,其特征在于,所述获取模块用于:The device according to any one of claims 11-14, wherein the acquisition module is used for:
    从所述多个时刻下情绪的分类结果中获取所述用户在所述第一时间段的负面情绪的次数和每次负面情绪的持续时长;Obtain the number of negative emotions of the user in the first time period and the duration of each negative emotion from the classification results of emotions at the multiple moments;
    所述处理模块用于:基于所述负面情绪的次数和所述每次负面情绪的持续时长,确定所述用户在所述第一时间段的情绪状态评价结果。The processing module is configured to: determine the user's emotional state evaluation result in the first time period based on the number of negative emotions and the duration of each negative emotion.
  16. 根据权利要求11-15中任一项所述的装置,其特征在于,所述处理模块用于:The device according to any one of claims 11-15, wherein the processing module is used for:
    基于所述ACC信号在坐标轴上的分量,得到所述用户在所述第一时间段的睡眠中断次数;Obtaining the number of sleep interruptions of the user in the first time period based on the components of the ACC signal on the coordinate axis;
    所述获取模块用于:基于所述PPG信号,获取所述用户在所述第一时间段的心率变化信息;The obtaining module is configured to: obtain the heart rate change information of the user in the first time period based on the PPG signal;
    所述处理模块还用于:根据所述心率变化信息,得到所述用户在所述第一时间段的睡眠总时长、深睡时长以及浅睡时间;The processing module is further configured to: obtain the total sleep duration, deep sleep duration, and light sleep duration of the user in the first time period according to the heart rate change information;
    所述处理模块还用于:结合所述睡眠中断次数、所述睡眠总时长、所述深睡时长以及所述浅睡时长,确定所述用户在所述第一时间段的睡眠评价结果。The processing module is further configured to: combine the sleep interruption times, the total sleep duration, the deep sleep duration, and the light sleep duration to determine the sleep evaluation result of the user in the first time period.
  17. 根据权利要求11-16中任一项所述的装置,其特征在于,所述处理模块用于:The device according to any one of claims 11-16, wherein the processing module is configured to:
    根据所述情绪状态评价结果和所述睡眠质量评价结果,得到所述用户在所述第一时间段的情绪监测结果;Obtaining an emotion monitoring result of the user in the first time period according to the emotional state evaluation result and the sleep quality evaluation result;
    在所述情绪监测结果满足预设条件的情况下,确定进行情绪预警。In the case that the emotion monitoring result satisfies the preset condition, it is determined to carry out an emotion early warning.
  18. 根据权利要求17所述的装置,其特征在于,所述处理模块用于:The device according to claim 17, wherein the processing module is used for:
    对所述情绪状态评价结果量化后的数值和所述睡眠质量评价结果量化后的数值进行加权求和,得到所述用户在所述第一时间段的情绪分数;performing weighted summation of the quantified value of the emotional state evaluation result and the quantized value of the sleep quality evaluation result to obtain the emotional score of the user in the first time period;
    在所述情绪分数小于或者等于预设阈值的情况下,确定进行情绪预警。If the emotional score is less than or equal to a preset threshold, it is determined to perform an emotional early warning.
  19. 根据权利要求17或18所述的装置,其特征在于,所述处理模块用于:The device according to claim 17 or 18, wherein the processing module is used for:
    根据所述用户在所述第一时间段的情绪监测结果、负面情绪的次数以及所述用户的年龄信息,确定所述用户的情绪年龄;determining the user's emotional age according to the user's emotional monitoring results in the first time period, the number of negative emotions, and the user's age information;
    显示所述情绪年龄、所述情绪监测结果或者情绪语句中的至少一种。Displaying at least one of the emotion age, the emotion monitoring result or the emotion statement.
  20. 根据权利要求11-19中任一项所述的装置,其特征在于,所述获取模块用于:The device according to any one of claims 11-19, wherein the acquiring module is configured to:
    获取所述ACC信号的波峰和波谷;Obtain the peak and trough of the ACC signal;
    所述处理模块用于:根据所述ACC信号的波峰和波谷,确定所述用户是否处于非运动状态;The processing module is configured to: determine whether the user is in a non-exercise state according to the peak and trough of the ACC signal;
    所述处理模块还用于:在所述用户处于非运动状态的情况下,结合所述PPG信号、所述SEMG信号、所述用户的年龄信息以及所述用户的性别信息,统计所述用户在第一时间段内的多个时刻下情绪的分类结果。The processing module is further configured to: when the user is in a non-exercise state, combine the PPG signal, the SEMG signal, the age information of the user, and the gender information of the user to make statistics on the user's Classification results of emotions at multiple moments in the first time period.
  21. 一种情绪监测装置,其特征在于,包括:处理器,所述处理器与存储器耦合,所述存储器用于存储计算机程序,当所述处理器调用所述计算机程序时,使得所述装置执行如权利要求1-10中任一项所述的方法。An emotion monitoring device, characterized in that it includes: a processor, the processor is coupled with a memory, the memory is used to store a computer program, when the processor invokes the computer program, the device executes the following steps: The method of any one of claims 1-10.
  22. 一种计算机可读存储介质,其特征在于,用于存储计算机程序,所述计算机程序包括用于实现如权利要求1-10中任一项所述的方法的指令。A computer-readable storage medium, characterized by being used for storing a computer program, the computer program comprising instructions for implementing the method according to any one of claims 1-10.
  23. 一种计算机程序产品,其特征在于,所述计算机程序产品中包括计算机程序代码,当所述计算机程序代码在计算机上运行时,使得计算机实现如权利要求1-10中任一项所述的方法。A computer program product, characterized in that the computer program product includes computer program code, and when the computer program code is run on a computer, the computer implements the method according to any one of claims 1-10 .
PCT/CN2022/119258 2021-12-10 2022-09-16 Emotion monitoring method and emotion monitoring apparatus WO2023103512A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111510699.2 2021-12-10
CN202111510699.2A CN115054248B (en) 2021-12-10 2021-12-10 Emotion monitoring method and emotion monitoring device

Publications (1)

Publication Number Publication Date
WO2023103512A1 true WO2023103512A1 (en) 2023-06-15

Family

ID=83196907

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/119258 WO2023103512A1 (en) 2021-12-10 2022-09-16 Emotion monitoring method and emotion monitoring apparatus

Country Status (2)

Country Link
CN (1) CN115054248B (en)
WO (1) WO2023103512A1 (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105231997A (en) * 2015-10-10 2016-01-13 沈阳熙康阿尔卑斯科技有限公司 Sleep quality judging method and sleep instrument
WO2016144284A1 (en) * 2015-03-06 2016-09-15 Елизавета Сергеевна ВОРОНКОВА Method for recognising the movement and psycho-emotional state of a person and device for carrying out said method
CN106419841A (en) * 2016-09-13 2017-02-22 深圳市迈迪加科技发展有限公司 Method, device and system for evaluating sleep
US20170071487A1 (en) * 2015-09-14 2017-03-16 Whoop, Inc. Probability-based usage of multiple estimators of a physiological signal
CN107874750A (en) * 2017-11-28 2018-04-06 华南理工大学 Pulse frequency variability and the psychological pressure monitoring method and device of sleep quality fusion
JP2018082730A (en) * 2016-11-15 2018-05-31 都築 北村 Biological risk acquisition device, biological risk acquisition method, biological risk acquisition program, and recording medium
CN110876613A (en) * 2019-09-27 2020-03-13 深圳先进技术研究院 Human motion state identification method and system and electronic equipment
CN112880686A (en) * 2021-01-20 2021-06-01 湖南赫兹信息技术有限公司 Object motion monitoring and positioning method, device and storage medium
CN113520340A (en) * 2020-04-15 2021-10-22 华为技术有限公司 Sleep report generation method, device, terminal and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9955902B2 (en) * 2015-01-29 2018-05-01 Affectomatics Ltd. Notifying a user about a cause of emotional imbalance
CN105147248B (en) * 2015-07-30 2019-02-05 华南理工大学 Depression assessment system and its appraisal procedure based on physiologic information
CN105827731A (en) * 2016-05-09 2016-08-03 包磊 Intelligent health management server, system and control method based on fusion model
JP2018166653A (en) * 2017-03-29 2018-11-01 アイシン精機株式会社 Mood determination device
WO2019021653A1 (en) * 2017-07-28 2019-01-31 ソニー株式会社 Information processing device, information processing method, and program
CN111145871A (en) * 2018-11-02 2020-05-12 京东方科技集团股份有限公司 Emotional intervention method, device and system, and computer-readable storage medium
CN109460752B (en) * 2019-01-10 2020-10-16 广东乐心医疗电子股份有限公司 Emotion analysis method and device, electronic equipment and storage medium
CN113535440A (en) * 2020-04-21 2021-10-22 深圳市万普拉斯科技有限公司 Functional mode triggering method and device and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016144284A1 (en) * 2015-03-06 2016-09-15 Елизавета Сергеевна ВОРОНКОВА Method for recognising the movement and psycho-emotional state of a person and device for carrying out said method
US20170071487A1 (en) * 2015-09-14 2017-03-16 Whoop, Inc. Probability-based usage of multiple estimators of a physiological signal
CN105231997A (en) * 2015-10-10 2016-01-13 沈阳熙康阿尔卑斯科技有限公司 Sleep quality judging method and sleep instrument
CN106419841A (en) * 2016-09-13 2017-02-22 深圳市迈迪加科技发展有限公司 Method, device and system for evaluating sleep
JP2018082730A (en) * 2016-11-15 2018-05-31 都築 北村 Biological risk acquisition device, biological risk acquisition method, biological risk acquisition program, and recording medium
CN107874750A (en) * 2017-11-28 2018-04-06 华南理工大学 Pulse frequency variability and the psychological pressure monitoring method and device of sleep quality fusion
CN110876613A (en) * 2019-09-27 2020-03-13 深圳先进技术研究院 Human motion state identification method and system and electronic equipment
CN113520340A (en) * 2020-04-15 2021-10-22 华为技术有限公司 Sleep report generation method, device, terminal and storage medium
CN112880686A (en) * 2021-01-20 2021-06-01 湖南赫兹信息技术有限公司 Object motion monitoring and positioning method, device and storage medium

Also Published As

Publication number Publication date
CN115054248A (en) 2022-09-16
CN115054248B (en) 2023-10-20

Similar Documents

Publication Publication Date Title
WO2020119245A1 (en) Wearable bracelet-based emotion recognition system and method
Mahmud et al. A wireless health monitoring system using mobile phone accessories
Naeini et al. A real-time PPG quality assessment approach for healthcare Internet-of-Things
US20170249445A1 (en) Portable devices and methods for measuring nutritional intake
US11510607B2 (en) Systems and methods for monitoring fetal wellbeing
US20140121540A1 (en) System and method for monitoring the health of a user
CN107427267B (en) Method and apparatus for deriving mental state of subject
CN102715902A (en) Emotion monitoring method for special people
US10966662B2 (en) Motion-dependent averaging for physiological metric estimating systems and methods
Wang et al. Photoplethysmography-based blood pressure estimation combining filter-wrapper collaborated feature selection with LASSO-LSTM model
Yan et al. Emotion classification with multichannel physiological signals using hybrid feature and adaptive decision fusion
US20240081705A1 (en) Non-contact fatigue detection system and method based on rppg
WO2021208656A1 (en) Sleep risk prediction method and apparatus, and terminal device
CN107669248B (en) Dynamic pulse continuous detection system and method for old people
WO2020133536A1 (en) Sleep state determining method and apparatus
Wang et al. Emotionsense: An adaptive emotion recognition system based on wearable smart devices
KR101912860B1 (en) Smart jewelry system for depression cognitive and care
WO2023103512A1 (en) Emotion monitoring method and emotion monitoring apparatus
CN116048250A (en) Sleep management method and device based on wearable equipment
CN115120236A (en) Emotion recognition method and device, wearable device and storage medium
CN111202516B (en) Method and system for judging sleep depth based on precordial brain waves of sternum
CN113907733A (en) Bonaxi AI
Imtiaz et al. Low-complexity algorithms for automatic detection of sleep stages and events for use in wearable EEG systems
US20240108235A1 (en) Non-contact image-based blood pressure measurement method and system based on advanced visual intelligence
WO2023286313A1 (en) Signal processing device and method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22902937

Country of ref document: EP

Kind code of ref document: A1