Emotional anomaly recognition method based on dream, communication device and electronic equipment

By analyzing sleep talking fragments and physiological parameters, it can identify the degree of emotional abnormality and provide improvement solutions, solving the problem that existing technology cannot identify the emotional health of sleep talking, and improving users' emotional management and sleep quality.

CN118737441APending Publication Date: 2024-10-01HUAWEI TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310340731.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-28
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing technology cannot effectively identify and understand the effects of sleep talking on the user's emotional health and impact on the user's sleep quality and life.

Method used

By extracting the characteristic parameters and physiological parameters in the sleep talking clips, and combining the sleep talking frequency, decibels, keywords and physiological indicators, such as heart rate, blood oxygen, etc., the user's degree of emotional abnormality is determined and targeted improvement plans are provided.

Benefits of technology

Users can understand their emotional state in a timely manner, obtain personalized improvement suggestions, improve emotional health management, and enhance sleep quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118737441A_ABST
    Figure CN118737441A_ABST
Patent Text Reader

Abstract

The invention provides an emotional anomaly recognition method based on dream, a communication device and electronic equipment, and the method comprises the steps: determining dream feature parameters according to a dream segment of a user, the dream feature parameters including the duration of the dream, the decibel of the dream, the keyword of the dream, abnormal cry, or the frequency of the dream, and the like; physiological parameters of the user are obtained, the physiological parameters comprise a first physiological parameter and a second physiological parameter, the first physiological parameter is the physiological parameter when the user has the dream, the second physiological parameter is the physiological parameter when the user does not have the dream, and the physiological parameters can comprise the heart rate, the heart rate variability, the blood oxygen, the skin resistance, the respiration rate, the blood pressure or the body temperature and the like; and according to the dream talk occurrence frequency, the dream talk feature parameters and the physiological parameters of the user in the first time period, determining the emotion abnormity degree of the user. According to the method provided by the invention, the user can know the emotional health state of the user in time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field, and more specifically, to a method for identifying abnormal emotions based on sleep talking, a communication device, and an electronic device. Background Art

[0002] Sleep talking is a sleep disorder, which is manifested by unconscious or unintentional talking while asleep. Sleep talking can occur at any stage of sleep. The occurrence of sleep talking can affect a person's sleep quality and even affect his or her normal life.

[0003] In the related art, sleep talking can be recorded by sleep detection products, but it does not allow users to understand whether their emotions are healthy through sleep talking. Therefore, how to identify the user's emotional health status based on sleep talking is an issue that sports health products need to pay attention to. Summary of the invention

[0004] The present application provides a method, a communication device and an electronic device for identifying abnormal emotions based on sleep talking, which determines the abnormal emotional state of the user through the dream talking feature parameters and physiological parameters extracted from the user's dream talking fragments, thereby solving the problem that the user cannot timely understand whether his or her emotions are healthy.

[0005] In a first aspect, the present application provides a method for identifying abnormal emotions based on sleep talking. The method provided in the first aspect can be executed by an electronic device or by a chip configured in the electronic device, and the present application does not limit this.

[0006] Specifically, the method includes: determining dream talking characteristic parameters according to the dream talking fragments of the user, the dream talking characteristic parameters include: at least one of the duration of the dream talking, the decibel of the dream talking, the dream talking keywords, abnormal crying, or the frequency of the dream talking; obtaining the user's physiological parameters, the physiological parameters include: a first physiological parameter and a second physiological parameter, the first physiological parameter is the physiological parameter when the user talks in his sleep, and the second physiological parameter is the physiological parameter when the user does not talk in his sleep, the physiological parameters include: at least one of heart rate, heart rate variability, blood oxygen, skin resistance, respiratory rate, blood pressure, or body temperature; determining the degree of abnormal emotion of the user according to the frequency of the user's sleep talking in a first time period, the dream talking characteristic parameters and the physiological parameters, the frequency of the sleep talking is determined according to the dream talking fragments.

[0007] The method provided in the first aspect is that the electronic device can extract dream talking feature parameters that can characterize the user's emotions from the user's dream talking fragments, and then determine the degree of abnormality of the user's emotions by combining the user's physiological parameters when there is no dream talking and the physiological parameters when there is dream talking and the frequency of dream talking, thereby solving the problem in related technologies that users cannot understand their own emotional state in time and improving the user experience.

[0008] In a possible implementation of the first aspect, the degree of abnormal emotion of the user is determined based on the frequency of sleep talking, characteristic parameters of sleep talking and physiological parameters of the user in a first time period, including: when at least one of the following conditions is met: the frequency of sleep talking in the first time period is greater than or equal to a preset first threshold, the abnormal proportion of the characteristic parameters of sleep talking in the first time period is greater than or equal to a preset second threshold, or the change amount of the first physiological parameter and the second physiological parameter in the first time period is greater than or equal to a preset third threshold, the degree of abnormal emotion is determined to be the second abnormal degree; or, when the frequency of sleep talking in the first time period is greater than or equal to a preset fourth threshold and less than the preset first threshold, the abnormal proportion of the characteristic parameters of sleep talking in the first time period is greater than or equal to a preset fifth threshold and less than the preset second threshold, or the change amount of the first physiological parameter and the second physiological parameter in the first time period is greater than or equal to a preset sixth threshold and less than the preset third threshold, the degree of abnormal emotion is determined to be the third abnormal degree, and the third abnormal degree is higher than the second abnormal degree.

[0009] In a possible implementation of the first aspect, when the abnormal emotion level is the second abnormal level, a second emotion improvement plan is provided to the user, and the second emotion improvement plan includes: at least one of food therapy, exercise therapy, or psychotherapy; or, when the abnormal emotion level is the third abnormal level, a third emotion improvement plan is provided to the user, and the third emotion improvement plan includes: at least one of food therapy, exercise therapy, psychotherapy, psychological counseling services, medical recommendation services, or drug recommendation services. In this implementation, based on the user being able to understand his or her own abnormal emotions in a timely manner, a targeted emotion improvement plan is provided to the user, thereby guiding the user to improve his or her own emotional health problems.

[0010] In a possible implementation of the first aspect, when the degree of abnormal emotion is the third degree of abnormal emotion, after the user's emotion is improved according to the third emotion improvement plan, the third degree of abnormal emotion becomes the second degree of abnormal emotion or the first degree of abnormal emotion, and the second degree of abnormal emotion is higher than the first degree of abnormal emotion; or when the degree of abnormal emotion is the second degree of abnormal emotion, after the user's emotion is improved according to the second emotion improvement plan, the second degree of abnormal emotion becomes the first degree of abnormal emotion. In this implementation, after providing the user with a targeted emotion improvement plan, the degree of abnormal emotion of the user is tracked, thereby guiding the user to gradually improve his or her emotional health problems.

[0011] In a possible implementation of the first aspect, the method further includes: providing a psychological questionnaire survey to the user; and updating the degree of abnormal emotion according to the result of the psychological questionnaire survey. In this implementation, a psychological questionnaire survey is provided to the user, and the degree of abnormal emotion is corrected according to the result of the psychological questionnaire survey of the user, so that the emotion detection result is more accurate.

[0012] In a possible implementation of the first aspect, the abnormal emotion level and / or abnormal sleep talking fragment is sent to a first electronic device, and the first electronic device is a device of a preset contact of the user. In this implementation, the user's contacts can pay attention to the user's emotional health problems in the first time.

[0013] In a possible implementation of the first aspect, the method further includes: obtaining sleep talk related parameters, the sleep talk related parameters including: at least one of the user's medication information, the user's drinking record, the user's disease information, or the user's sleeping environment information; and adjusting the length of the first time period according to the sleep talk related parameters. In this implementation, by adjusting the length of the first time period by the sleep talk related parameters, other interference factors are eliminated, making the detection result more accurate.

[0014] In a possible implementation manner of the first aspect, before determining the dream talk feature parameters according to the dream talk segment of the user, the method further includes: receiving a first instruction from the user; and acquiring the dream talk segment based on the first instruction.

[0015] In a second aspect, a communication device is provided, which includes a unit for executing each step in the above first aspect or any possible implementation of the first aspect, or a unit for executing each step in the above second aspect or any possible implementation of the second aspect.

[0016] In a third aspect, a communication device is provided, which includes at least one processor and a memory, wherein the processor and the memory are coupled, and the memory stores program instructions, and when the program instructions stored in the memory are executed by the processor, the method in the above first aspect or any possible implementation of the first aspect is executed, or the method in the above second aspect or any possible implementation of the second aspect is executed.

[0017] In a fourth aspect, a communication device is provided, which includes at least one processor and an interface circuit, and the at least one processor is used to execute the method in the above first aspect or any possible implementation of the first aspect, or to execute the above second aspect or any possible implementation of the second aspect.

[0018] In a fifth aspect, an electronic device is provided, which includes the communication device provided in the second aspect, or the electronic device includes the communication device provided in the third aspect, or the electronic device includes the communication device provided in the fourth aspect.

[0019] In a sixth aspect, a computer program product is provided, which includes a computer program. When the computer program is executed by a processor, it is used to execute the method in the above first aspect or any possible implementation of the first aspect.

[0020] In a seventh aspect, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed, it is used to execute the method in the above first aspect or any possible implementation of the first aspect.

[0021] In an eighth aspect, a chip is provided, comprising: a processor for calling and running a computer program from a memory, so that a communication device equipped with the chip executes a method for executing the above first aspect or any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 A schematic structural diagram of an electronic device 100 is shown;

[0023] Figure 2 A software structure block diagram of the electronic device 100 according to an embodiment of the present application is shown;

[0024] Figure 3 A schematic diagram of an interface for sleep monitoring of an electronic device provided in an embodiment of the present application is shown;

[0025] Figure 4 A schematic flow chart of a method for identifying abnormal emotions based on sleep talking provided in an embodiment of the present application is shown;

[0026] Figure 5 An example of an electronic device interface display diagram provided by an embodiment of the present application is shown;

[0027] Figure 6 A schematic diagram of a display interface of another electronic device provided in an embodiment of the present application is shown;

[0028] Figure 7 A schematic flow chart of another method for identifying abnormal emotions based on sleep talking provided in an embodiment of the present application is shown;

[0029] Figure 8 A schematic diagram showing a display interface of another electronic device provided in an embodiment of the present application is shown;

[0030] Fig. 9 A schematic diagram showing a display interface of another electronic device provided in an embodiment of the present application is shown;

[0031] Fig.10 A schematic diagram showing a display interface of another electronic device provided in an embodiment of the present application is shown;

[0032] Fig.11 A schematic diagram showing a display interface of another electronic device provided in an embodiment of the present application is shown;

[0033] Fig.12 A schematic diagram of the chip system is shown. DETAILED DESCRIPTION

[0034] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0035] The terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the embodiments of the present application, "one or more" refers to one or more (including two); "and / or" describes the association relationship of associated objects, indicating that three relationships may exist; for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0036] References to "one embodiment" or "some embodiments" etc. described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application. Thus, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear at different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0037] The multiple involved in the embodiments of the present application means greater than or equal to two. It should be noted that in the description of the embodiments of the present application, the words "first", "second", etc. are only used for the purpose of distinguishing the description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying an order.

[0038] An embodiment of the present application provides an electronic device, which is used to execute the abnormal emotion recognition method provided in the present application. The electronic device in the embodiment of the present application can be a smart phone, a wearable device (such as a smart bracelet, a smart watch, headphones, etc.), a tablet computer, a laptop computer (laptop), a handheld computer, a notebook computer, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a cellular phone, a personal digital assistant (personal digital assistant, PDA), an augmented reality (Augmented reality, AR)\virtual reality (virtual reality, VR) device and other devices, and can also be a television, a large screen, a speaker, a television, a refrigerator, an air conditioner, a vehicle-mounted device, a printer, a projector and other devices. The embodiment of the present application does not specifically limit the type of electronic device. Exemplary embodiments of electronic devices include but are not limited to devices equipped with Apple Android Microsoft Hongmeng Or other electronic devices with operating systems.

[0039] For example, Figure 1 1 shows a schematic diagram of the structure of the electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0040] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0041] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0042] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0043] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0044] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0045] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.

[0046] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.

[0047] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0048] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.

[0049] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.

[0050] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0051] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.

[0052] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0053] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.

[0054] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110, or in the same device.

[0055] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0056] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0057] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0058] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0059] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0060] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TDSCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0061] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0062] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0063] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0064] The ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise and brightness of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera 193.

[0065] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0066] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0067] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0068] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0069] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0070] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0071] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0072] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.

[0073] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.

[0074] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or an audio message, the voice can be heard by placing the receiver 170B close to the ear.

[0075] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending an audio message, the user can make a sound by putting his mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.

[0076] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0077] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation based on the pressure sensor 180A. The electronic device 100 can also calculate the position of the touch based on the detection signal of the pressure sensor 180A.

[0078] The gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.

[0079] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.

[0080] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.

[0081] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.

[0082] The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.

[0083] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.

[0084] The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.

[0085] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.

[0086] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.

[0087] The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.

[0088] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone. The audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.

[0089] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.

[0090] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0091] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0092] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0093] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.

[0094] Figure 2 The software structure block diagram of the electronic device 100 of the embodiment of the present application is shown. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, respectively, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer. The application layer can include a series of application packages.

[0095] like Figure 2 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.

[0096] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0097] like Figure 2 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

[0098] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0099] Content providers are used to store and retrieve data and make it accessible to applications.

[0100] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. The display interface can be composed of one or more views.

[0101] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).

[0102] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0103] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0104] Android runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0105] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0106] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0107] The system library may include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0108] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0109] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0110] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0111] A 2D graphics engine is a drawing engine for 2D drawings.

[0112] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0113] For ease of understanding, the following embodiments of the present application will be described in detail with Figure 1 and Figure 2Taking the electronic device with the structure shown as an example, the method for identifying abnormal emotions based on sleep talking provided in the embodiment of the present application is specifically explained in combination with the accompanying drawings and application scenarios.

[0114] Sleep talking mainly refers to talking unconsciously during sleep. Sleep talking can occur occasionally or frequently. It usually lasts less than 30 seconds but occasionally can last for several minutes. What is said in a dream can range from gibberish to complete sentences, and loud shouting may also be involved.

[0115] Sleep is generally divided into non-rapid eye movement sleep (NREM) and rapid eye movement sleep (REM), and sleep talking can occur in any of these two stages.

[0116] Studies have shown that up to 66% of adults have experienced sleep talking, making it one of the most common parasomnias, 17% have experienced sleep talking in the past three months, and 6.3% currently have sleep talking at least once a week, with no significant difference in frequency between men and women. Other studies have shown that sleep talking is also very common in children.

[0117] Sleep talking can be divided into mild, moderate and severe based on the frequency of occurrence. Among them, less than or equal to once a week is mild, more than once a week is moderate, and every night or even several times a night is severe. Sleep talking can be divided into acute, subacute and chronic based on the duration. Among them, continuous occurrence for one month or less is acute, occurrence for more than one month but less than one year is subacute, and occurrence for one year or more is chronic.

[0118] Based on how sleep talking appears, it can be classified as simple, which usually involves short, meaningless speech such as grunts, groans, or single words; complex, which is a less common type of sleep talking and involves longer, more coherent speech that may seem like the person is having a conversation; or it may be gibberish. Sleep talking can also be classified as polyglotia, a very rare form of sleep talking that involves an abnormal flow of speech. The person may talk rapidly and incoherently for minutes at a time. This type of sleep talking can be a symptom of a mental illness such as bipolar disorder or schizophrenia.

[0119] The causes of sleep talking are generally divided into emotional and mental health problems, such as stress, anxiety, frustration, depression and other mental health conditions. People with post-traumatic stress disorder or other mental illnesses have sleep talking twice as often as those without such problems; genetics, drug intake, illness, high fever and sleeping environment may also be the cause of sleep talking. The occurrence of sleep talking can affect the quality of sleep and the mental state during the day. Therefore, appropriate measures should be taken to resolve the occurrence of sleep talking. For example, occasional sleep talking is normal behavior and there is no need to worry. It can be alleviated by maintaining healthy sleep habits. Frequent sleep talking at night seriously affects the quality of sleep and requires medical help: Reduce emotional health abnormalities such as stress or anxiety: Identify and avoid stressors in life, practice relaxation techniques, such as deep meditation; sleep talking after experiencing major trauma / stress indicates that there are underlying emotional and mental health problems and need to be referred for mental health treatment. Drug treatment: If an underlying sleep disorder causes sleep talking, treating the disease may reduce or eliminate sleep talking. For example, if sleep apnea is the cause, positive pressure ventilation therapy is required to help keep the airway open during sleep.

[0120] In the related art, electronic devices can monitor the user's sleep status, for example, the user's bed time, sleep time, bedtime, sleep time, and wake-up time are recorded. And the user's sleep status, such as awake, light sleep, or deep sleep, can be recorded in real time. The electronic device scores the user's sleep quality based on the user's sleep status, as well as interprets the sleep results and provides behavioral suggestions, and the electronic device can also collect and interpret the intensity of ambient noise. In the related art, electronic devices can also monitor and record snoring throughout the night, and can also monitor and record sleep talking throughout the night. Users can understand their own sleep conditions by consulting the above sleep records.

[0121] For example, Figure 3 FIG. 1 shows a schematic diagram of an interface of a sleep monitoring electronic device provided in an embodiment of the present application. Figure 3 As shown, the electronic device records the user's sleep monitoring situation on August 22. Figure 3It can be seen that the user went to bed at 00:24, fell asleep at 00:32, and woke up at 06:44. The total sleep time was 6 hours and 12 minutes, during which there were three deep sleeps and four light sleeps. Based on the user's sleep state, the electronic device scores the user's sleep quality: good sleep quality, and it is recommended that the user take a 30-minute nap to restore learning and work motivation. In addition, the electronic device can collect the user's waking feeling, and the user can record it according to the current feeling. For example, the user records that the feeling of waking up is still a little sleepy. The electronic device can also record the user's dream talk fragments. For example, the user has a dream talk with a duration of 52s. The user can click to play and listen to the dream talk fragment. The electronic device also collects the decibel graph of the user's living environment noise. It can be seen from the figure that the user's average environmental noise is 20dB, and the sleeping environment is perfect, which is equivalent to silence.

[0122] It can be seen that users can understand their own sleeping status based on the sleep monitoring records of electronic devices, but electronic devices cannot determine whether the user's emotions are abnormal and how to improve the user's abnormal emotions based on the sleep monitoring records. Therefore, how to determine whether the user's emotions are abnormal based on sleep monitoring records, and how to propose improvement plans based on the user's abnormal emotions are issues that current sleep monitoring products urgently need to pay attention to.

[0123] In view of this, the present application provides a method for identifying abnormal emotions based on sleep talking, the method comprising: determining the characteristic parameters of sleep talking according to the sleep talking fragments of the user; obtaining the physiological parameters of the user, the physiological parameters comprising: a first physiological parameter and a second physiological parameter, the first physiological parameter being the physiological parameter when the user has sleep talking, and the second physiological parameter being the physiological parameter when the user has no sleep talking; determining the degree of abnormal emotions of the user according to the frequency of sleep talking of the user in a first time period, the characteristic parameters of sleep talking and the physiological parameters of the user. The method provided by the present application determines whether the user's emotions are abnormal by extracting the characteristic parameters of sleep talking and the physiological parameters related to the abnormal emotions of the user during the sleep talking process, thereby helping the user identify the emotional health state, so that the user can understand his or her own emotional state.

[0124] In a possible application scenario, when a user wants to understand his or her emotional state based on his or her sleep state during a certain period of time, the method for identifying emotional abnormalities based on sleep talking provided in the present application can be used. The method collects dream talking fragments during the period of time, determines dream talking characteristic parameters based on the dream talking fragments, and obtains physiological parameters during the period of time to determine the degree of emotional abnormality of the user, so that the user can understand his or her emotional health state in a timely manner.

[0125] Combine the following Figure 4The method for identifying abnormal emotions based on sleep talking provided by the present application is specifically described. The method can be executed by an electronic device or by a chip configured in the electronic device, and the embodiments of the present application do not limit this.

[0126] Figure 4 FIG. 2 shows a schematic flow chart of a method for identifying abnormal emotions based on sleep talking provided by an embodiment of the present application. Figure 4 As shown, the method 400 includes S410 - S440 .

[0127] S410: Based on the user's first instruction, obtain the user's dream talk fragment.

[0128] In an embodiment of the present application, the electronic device receives a first instruction from a user. Exemplarily, the first instruction may be an instruction for the user to click on an emotional health check. In response to the user's emotional health check instruction, the electronic device may extract the user's dream talk fragments from the audio information collected during the user's sleep.

[0129] Optionally, the first instruction may also be the user turning on a sleep talk collection switch, and when the sleep talk collection switch is on, the electronic device may extract the user's sleep talk segments from the collected audio information. Of course, the first instruction may also be in other forms, and the embodiment of the present application does not limit the form of the first instruction.

[0130] Before the electronic device extracts the user's dream talk fragments, the audio information of the user during sleep is first collected through the sound pickup device.

[0131] It should be understood that the sound pickup device can be an electronic device for extracting dream talk fragments, or other electronic devices. When other electronic devices are used to collect audio information, the collected audio information can be sent to the electronic device. For example, the sound pickup device can be a smart phone, wearable device, audio, and smart home, such as a smart mattress, etc. to collect audio information. Of course, the sound pickup device can be other devices with a microphone (Microphone, MIC), and the embodiments of the present application are not limited to this.

[0132] In some embodiments, after the electronic device acquires the audio information, it first performs preprocessing, removes the silent part from the audio information, and identifies the audio information at the frame level, which includes dream talking segments and non-dream talking segments, such as snoring and the like. Then, the electronic device extracts the characteristic Mel-frequency cepstral coefficients of the audio information, and draws a characteristic Mel-frequency spectrum graph with time and frequency as axes according to the characteristic Mel-frequency cepstral coefficients. The drawn characteristic Mel-frequency spectrum graph is input into the frame-level model, and the frame-level probability distribution of dream talking segments and non-dream talking segments is derived from the trained frame-level model. Based on the frame-level probability distribution, the dream talking segments can be determined.

[0133] Of course, the user's dream talk segments may also be extracted from the collected audio information in other ways, and the embodiment of the present application does not limit the method for extracting the user's dream talk segments.

[0134] For example, Figure 5 An example of an electronic device interface display diagram provided by an embodiment of the present application is shown. Figure 5 As shown in Figure (a) in the figure, the user can click on the emotional health monitoring of the sleep monitoring interface, and the display interface of the electronic device changes from Figure 5 The interface shown in Figure (a) is switched to Figure 5 The interface shown in Figure (b) is as follows: Figure 5 As shown in Figure (b), the electronic device extracts the user's dream talk fragments during the period of time.

[0135] S420. Determine a sleep talk feature parameter according to the sleep talk segment of the user, where the sleep talk feature parameter includes at least one of: a duration of the sleep talk, a decibel of the sleep talk, a keyword of the sleep talk, abnormal crying, or a frequency of the sleep talk.

[0136] Since the dream talk characteristic parameters can reflect whether the user has abnormal emotions, in an embodiment of the present application, the electronic device can extract the dream talk characteristic parameters based on the user's dream talk fragments.

[0137] Exemplarily, the sleep talking characteristic parameter may be at least one of the duration of the sleep talking, the decibel of the sleep talking, the key words of the sleep talking, abnormal crying, or the frequency of the sleep talking. Of course, the sleep talking characteristic parameter may also include other characteristic parameters related to the sleep talking, which is not limited in the embodiment of the present application.

[0138] In a possible implementation, the electronic device may also determine the abnormal proportion of the sleep talk characteristic parameters according to the sleep talk characteristic parameters of the user. For example, the electronic device may determine whether the sleep talk characteristic parameters are abnormal according to whether the sleep talk characteristic parameters meet preset conditions, and then determine the abnormal proportion of the sleep talk characteristic parameters according to the proportion of the abnormal parameters.

[0139] For example, when the duration of sleep talking is greater than or equal to the preset duration, it means that the sleep talking duration parameter is abnormal; when the decibel of sleep talking is greater than or equal to the preset decibel, it means that the sleep talking decibel parameter is abnormal; when the sleep talking keywords include keywords such as "fight" and "run", it means that the sleep talking keyword parameters are abnormal; when there is abnormal crying, it means that the sleep talking is abnormal.

[0140] The abnormal proportion of sleep talking characteristic parameters can be understood as: if abnormalities occur in the duration of sleep talking, the decibel level of sleep talking, the keywords of sleep talking, abnormal crying, or the frequency of sleep talking, then the abnormal proportion of the sleep talking parameters is high; if only the duration of sleep talking is abnormal, then the abnormal proportion of the sleep talking parameters is low.

[0141] S430. Acquire physiological parameters of the user, where the physiological parameters include: a first physiological parameter and a second physiological parameter. The first physiological parameter is the physiological parameter when the user talks in his sleep, and the second physiological parameter is the physiological parameter when the user does not talk in his sleep. The physiological parameters include: at least one of heart rate, heart rate variability, blood oxygen, skin resistance, respiratory rate, blood pressure, or body temperature.

[0142] In the embodiment of the present application, the abnormal degree of the user's emotion can be judged according to the degree of change of the user's physiological parameters. Therefore, the electronic device can obtain the physiological parameters of the user during sleep talking and the physiological parameters of the user when sleep talking does not occur.

[0143] In a possible implementation, the electronic device can collect physiological parameters throughout the sleep process, and then determine the physiological parameters of the user during the sleep talking process and the physiological parameters of the user when no sleep talking occurs based on the time of the sleep talking segment.

[0144] In another possible implementation, when the electronic device detects abnormal characteristics of sleep talking in real time, the electronic device can be simultaneously activated to record physiological parameters during the sleep talking process.

[0145] For example, when abnormal keywords appear in sleep talking, the electronic device can synchronously record the physiological parameters during the sleep talking; or, when the decibel of the user's sleep talking is greater than the preset decibel, the electronic device can synchronously record the physiological parameters during the sleep talking; or, when the user cries abnormally, the electronic device can synchronize the physiological parameters during the sleep talking.

[0146] Similarly, the electronic device can record the physiological parameters of the user when there is no sleep talking at any time when no abnormal features appear, or the electronic device can also record the physiological parameters of the user when there is no sleep talking between two sleep talking segments. The embodiment of the present application does not specifically limit the time when the electronic device records the physiological parameters of the user.

[0147] Exemplarily, in an embodiment of the present application, the physiological parameters may include: at least one of heart rate, heart rate variability, blood oxygen, skin resistance, respiratory rate, blood pressure, or body temperature. Of course, the physiological parameters may also include other parameters, which are not limited in the embodiment of the present application.

[0148] S440: Determine the degree of abnormal emotion of the user according to the frequency of sleep talking, characteristic parameters of sleep talking and physiological parameters of the user in the first time period.

[0149] In an embodiment of the present application, the electronic device can determine the user's emotional abnormality according to the dream talk segments recorded in the first time period, the dream talk feature parameters extracted from the dream talk segments, and the degree of change of the physiological parameters recorded by the electronic device. The degree of emotional abnormality includes: no obvious emotional abnormality, medium emotional abnormality, and high emotional abnormality.

[0150] Continue to see Figure 5 ,like Figure 5 In the interface shown in FIG. (c), after the electronic device determines the degree of abnormal emotion of the user according to the frequency of sleep talking, characteristic parameters of sleep talking and physiological parameters of the user in the first time period, the emotional health status of the user can be displayed on the interface. The user can directly and quickly understand the abnormal emotional health status. For example, from Figure 5 As can be seen from Figure (c), the user's emotional health status is moderately abnormal.

[0151] It should be understood that no obvious emotional abnormality can also be called the first abnormality level, a moderate emotional abnormality level can also be called the second abnormality level, and a high emotional abnormality level can also be called the third abnormality level.

[0152] In an embodiment of the present application, the electronic device can collect audio information of the user within a first time period, and extract the user's sleep talking fragments from the audio information, and determine whether the user's emotions are abnormal based on the frequency of the sleep talking.

[0153] It should be noted that the first time period can be set according to specific circumstances, and the present application embodiment does not limit this. Exemplarily, the first time period can be a week (seven days).

[0154] In some embodiments, the electronic device may obtain sleep talking related parameters, and then adjust the length of the first time period according to the sleep talking related parameters.

[0155] Exemplarily, the sleep talking related parameter may be the user's medication record, the user's drinking record, the user's disease record, tea / coffee drinking record, sleeping environment, etc. Of course, the sleep talking related parameter may also include other information, which is not limited in the present embodiment.

[0156] For example, when a user wants to know the emotional state between August 22 and August 29, but the user is sick and takes medicine on August 22, August 22 may not be calculated in the first time period, and the first time period is adjusted to August 23 or August 30. This implementation method can eliminate the interference of other factors, making the result of user emotion detection more accurate.

[0157] In a possible implementation, the electronic device may collect sleep talking related parameters on a sleep application program interface. For example, Figure 6 A schematic diagram of a display interface of another electronic device provided in an embodiment of the present application is shown. Figure 6 As shown, the user can input his or her own situation before going to bed on the day according to his or her own situation. For example, the user can enter on the electronic device whether he or she drank alcohol, was sick, took medicine, had a midnight snack, drank tea / coffee, or slept in an unfamiliar bed on August 22. Because these factors may affect the occurrence of the user's sleep talking, when the electronic device collects at least one sleep talking-related parameter of the user, the sleep talking fragments of the day are not considered when the final analysis is made as to whether the emotions are abnormal.

[0158] In other embodiments, the electronic device may obtain sleep talking related parameters recorded on other applications. For example, the electronic device may obtain the user's disease consultation record, or the electronic device may obtain the user's disease diagnosis record. Of course, the electronic device may also obtain sleep talking related parameters in other ways, which is not limited in the embodiments of the present application.

[0159] In some embodiments, the degree of emotional abnormality is determined to be the second abnormal degree when at least one of the following conditions is met: the frequency of sleep talking in a first time period is greater than or equal to a preset first threshold, the abnormal proportion of the sleep talking characteristic parameters in the first time period is greater than or equal to a preset second threshold, or the change in the first physiological parameter and the second physiological parameter in the first time period is greater than or equal to a preset third threshold.

[0160] It should be noted that the preset first threshold, the preset second threshold, and the preset third threshold can be set according to specific circumstances, and the embodiments of the present application do not limit this.

[0161] In other embodiments, when at least one of the following conditions is met: the frequency of sleep talking in the first time period is greater than or equal to the preset fourth threshold and less than the preset first threshold, the abnormal proportion of the sleep talking characteristic parameters in the first time period is greater than or equal to the preset fifth threshold and less than the preset second threshold, or the change in the first physiological parameter and the second physiological parameter in the first time period is greater than or equal to the preset sixth threshold and less than the preset third threshold, the degree of emotional abnormality is determined to be the third abnormality degree, and the third abnormality degree is higher than the second abnormality degree.

[0162] It should be noted that the preset fourth threshold, the preset fifth threshold, and the preset sixth threshold can be set according to specific circumstances, and the embodiments of the present application do not limit them.

[0163] For example, when the frequency of sleep talking of the user in the first time period is greater than or equal to the preset first threshold, it indicates that the user's emotional abnormality is high; when the frequency of sleep talking is greater than or equal to the preset second threshold and less than the first threshold, it indicates that the user's emotional abnormality is moderate. When the frequency of sleep talking is less than the preset third threshold, it indicates that no obvious emotional abnormality is observed.

[0164] For example, when the preset period is one week (seven days), when the frequency of sleep talking is less than or equal to once, it means that the user has no obvious emotional abnormality, and when the frequency of sleep talking is greater than once and less than 7 times, it means that the degree of emotional abnormality of the user is medium. When the frequency of sleep talking is equal to 7 times, it means that the degree of emotional abnormality of the user is high.

[0165] For another example, when the frequency of the user's sleep talking in the first time period is greater than or equal to the preset first threshold, and the abnormal proportion of the sleep talking parameters is greater than or equal to the preset second threshold, it indicates that the user's emotional abnormality is relatively high; when the frequency of the user's sleep talking in the first time period is less than the preset first threshold, and greater than or equal to the preset third threshold, and the abnormal proportion of the sleep talking parameters is less than the preset second threshold, and greater than or equal to the preset fourth threshold, it indicates that the user's emotional abnormality is moderate; when the frequency of the user's sleep talking in the first time period is less than the preset second threshold, and the abnormal proportion of the sleep talking parameters is less than the preset fourth threshold, which does not meet the preset conditions, it indicates that the user's emotions are not abnormal.

[0166] For example, when the preset period is one week (seven days), when the frequency of sleep talking is equal to 7 times, and the abnormal proportion of sleep talking parameters is greater than or equal to 4 / 5, it means that the user's emotional abnormality is high; when the frequency of sleep talking is greater than once and less than 7 times, and the abnormal proportion of sleep talking parameters is less than 4 / 5 and greater than or equal to 2 / 5, it means that the user's emotional abnormality is moderate. When the frequency of sleep talking is less than or equal to once, and the abnormal proportion of sleep talking parameters is less than 2 / 5, it means that the user has no obvious emotional abnormality.

[0167] For another example, when the frequency of the user's sleep talking in the first time period is greater than or equal to the preset first threshold, and the abnormal proportion of the sleep talking parameter is greater than or equal to the preset second threshold, and the change in the first physiological parameter and the second physiological parameter of the user in the first time period is greater than or equal to the preset third threshold, it indicates that the user's emotional abnormality is relatively high; when the frequency of the user's sleep talking in the first time period is less than the preset first threshold, and is greater than or equal to the preset third threshold, and the abnormal proportion of the sleep talking parameter is less than the preset second threshold, and is greater than or equal to the preset fourth threshold, and the change in the first physiological parameter and the second physiological parameter of the user in the first time period is less than the preset third threshold, and is greater than or equal to the preset sixth threshold, it indicates that the user's emotional abnormality is moderate; when the frequency of the user's sleep talking in the first time period is less than the preset second threshold, and the abnormal proportion of the sleep talking parameter is less than the preset fourth threshold, the preset conditions are not met, and when the change in the first physiological parameter and the second physiological parameter of the user in the first time period is less than the preset sixth threshold, it indicates that the user's emotions are not abnormal.

[0168] The abnormal emotion recognition method provided in the embodiment of the present application determines the characteristic parameters of sleep talking according to the sleep talking fragments of the user; obtains the physiological parameters of the user, and the physiological parameters include: a first physiological parameter and a second physiological parameter, the first physiological parameter is the physiological parameter of the user during the sleep talking process, and the second physiological parameter is the physiological parameter of the user when no sleep talking occurs; determines the abnormal degree of the user's emotions according to the frequency of the user's sleep talking in the first time period, the characteristic parameters of sleep talking and the physiological parameters of the user. The method provided in the present application determines whether the user's emotions are abnormal by extracting the characteristic parameters of sleep talking and the physiological parameters related to the abnormal emotions of the user during the sleep talking process, thereby helping the user identify the emotional health state, so that the user can understand his or her own emotional state.

[0169] Based on this, the present application also provides another example of an abnormal emotion recognition method. In this method, after the user understands his or her own emotional state, the electronic device can provide the user with an emotion improvement service based on the user's current emotional state. When the user's emotions are abnormal, the electronic device can guide the user to improve his or her emotions step by step. Figure 7 FIG. 2 shows a schematic flow chart of another method for identifying abnormal emotions based on sleep talking provided in an embodiment of the present application, such as Figure 7 As shown, the method 700 includes S710-S750:

[0170] S710: Based on the user's first instruction, obtain the user's dream talk segment.

[0171] S720. Determine a sleep talk feature parameter according to the sleep talk segment of the user, where the sleep talk feature parameter includes at least one of: a duration of the sleep talk, a decibel of the sleep talk, a keyword of the sleep talk, abnormal crying, or a frequency of the sleep talk.

[0172] S730. Obtain physiological parameters of the user, where the physiological parameters include: a first physiological parameter and a second physiological parameter. The first physiological parameter is the physiological parameter when the user talks in his sleep, and the second physiological parameter is the physiological parameter when the user does not talk in his sleep. The physiological parameters include: at least one of heart rate, heart rate variability, blood oxygen, skin resistance, respiratory rate, blood pressure, or body temperature.

[0173] S740: Determine the degree of abnormal emotion of the user according to the frequency of sleep talking, characteristic parameters of sleep talking and physiological parameters of the user in the first time period.

[0174] In the embodiment of the present application, S710-S740 may refer to the description of S410-S440 above, which will not be repeated here.

[0175] S750: When the abnormal degree of the user's emotion is a second abnormal degree, provide the user with a second emotion improvement plan; or, when the abnormal degree of the user's emotion is a third abnormal degree, provide the user with a third emotion improvement plan.

[0176] In some embodiments, when the user's emotional abnormality is the second abnormality, that is, the emotional abnormality is medium, it means that the user's stress or anxiety is medium. The electronic device can push a second emotional improvement plan to the user, and the second improvement plan can give the user suggestions for improvement in the case of the user's emotional abnormality being medium.

[0177] In a possible implementation, the second mood improvement program may include food therapy, exercise therapy, or psychological therapy.

[0178] Exemplarily, the food therapy includes: recommending to the user stress-resistant foods such as fruits, whole grains, broad beans, nuts and other foods containing carbohydrates and protein.

[0179] Exercise therapy includes: recommending slow exercise to users, such as swimming, walking, yoga or Tai Chi.

[0180] Psychological therapy includes: recommending psychological knowledge to users so that they can relieve themselves, or reminding users that they can find someone to talk to, or reminding users that they can engage in deep meditation, etc.

[0181] Optionally, after the electronic device determines the degree of abnormal emotions of the user based on the frequency of sleep talking, characteristic parameters of sleep talking and physiological parameters of the user, the electronic device can provide the user with a psychological questionnaire and then update the degree of abnormal emotions of the user based on the results of the psychological questionnaire.

[0182] For example, Figure 8 A schematic diagram of a display interface of another electronic device provided in an embodiment of the present application is shown. Figure 8As shown in FIG. 1 (a), when the electronic device determines that the abnormal emotion level of the user is medium, the electronic device can also recommend a psychological questionnaire survey to the user, and the electronic device can correct the abnormal emotion level of the user according to the results of the questionnaire survey, such as Figure 8 As shown in Figure (b), assuming that the electronic device collects the user's psychological questionnaire and the result shows that there is no emotional abnormality, then the electronic device can correct the moderate degree of emotional abnormality to no obvious emotional abnormality.

[0183] It should be noted that the recommended time for the psychological questionnaire survey may be after the user has made improvements based on the second improvement plan, or may be before the user has made improvements based on the first improvement plan, and this embodiment of the present application does not limit this.

[0184] It should be understood that when the psychological questionnaire survey is recommended by the user after the improvement is made based on the second improvement plan, the electronic device can timely update the user's abnormal emotional level based on the psychological questionnaire survey results. When the psychological questionnaire survey is recommended by the user before the improvement is made based on the second improvement plan, the electronic device can correct the user's abnormal emotional level based on the psychological questionnaire survey results.

[0185] For example, Fig. 9 A schematic diagram of a display interface of another electronic device provided in an embodiment of the present application is shown. Fig. 9 As shown, in addition to displaying the abnormal emotion detection results, the display interface also displays result suggestions and self-adjustment methods. The user can click on the self-adjustment method to view the specific emotion improvement plan. For example, when the user's emotion is moderately abnormal, the user can click on "View self-adjustment method" on the display interface to view the specific second emotion improvement plan. When the user clicks on "View self-adjustment method" on the display interface, the display interface of the electronic device changes from Fig. 9 The interface shown in Figure (a) switches to Fig. 9 The interface shown in Figure (b) in the figure shows the second mood improvement plan, such as food therapy, exercise therapy or psychological therapy.

[0186] In other embodiments, when the user's emotional abnormality is at the third abnormality level, that is, when the emotional abnormality is high, it means that the user is under great pressure, has a high anxiety level, or has a high risk level of panic or depression. The electronic device can push a third emotional improvement plan to the user, and the third emotional improvement plan can provide the user with suggestions for improvement in the case of high emotional abnormality.

[0187] In a possible implementation, the third mood improvement program includes: food therapy, exercise therapy or psychotherapy, as well as psychological counseling services, medical recommendation services and drug recommendation services.

[0188] Exemplarily, the psychological counseling service includes: the electronic device can provide the user with an online psychological counseling portal, and the user can conduct online counseling regarding recent psychological conditions.

[0189] Medical service recommendations include: electronic devices can recommend hospitals or doctors with good reputations to users for reference when seeking medical treatment.

[0190] Drug recommendation services include: some anti-stress and mood-relieving drugs, etc.

[0191] It should be noted that food therapy, exercise therapy or psychotherapy can refer to the description of the second mood improvement plan and will not be repeated here.

[0192] For example, Fig.10 A schematic diagram of a display interface of another electronic device provided in an embodiment of the present application is shown. Fig.10 As shown, in addition to displaying the abnormal emotion detection results, the display interface also displays result suggestions and self-adjustment methods. The user can click on the self-adjustment method to view the specific emotion improvement plan. For example, when the user's emotion is moderately abnormal, the user can click on "View self-adjustment method" on the display interface to view the specific second emotion improvement plan. When the user clicks on "View self-adjustment method" on the display interface, the display interface of the electronic device changes from Fig.10 The interface shown in Figure (a) switches to Fig.10 The interface shown in Figure (b) in the figure shows the third mood improvement plan, such as food therapy, exercise therapy, psychotherapy, psychological counseling services, medical recommendation services, and drug recommendation services.

[0193] In some embodiments, when the electronic device determines that the user's emotional abnormality level is high, the electronic device may also recommend a psychological questionnaire survey to the user, and the electronic device may correct the user's emotional abnormality level according to the results of the questionnaire survey.

[0194] For example, Fig.11 A schematic diagram of a display interface of another electronic device provided in an embodiment of the present application is shown. Fig.11 As shown in FIG. 1 (a), when the electronic device determines that the abnormal emotion level of the user is high, the electronic device can also recommend a psychological questionnaire survey to the user, and the electronic device can correct the abnormal emotion level of the user according to the results of the questionnaire survey, such as Fig.11As shown in Figure (b), if the electronic device collects the result of the user's psychological questionnaire survey and finds that the emotional abnormality is moderate, then the electronic device can correct the high emotional abnormality to the moderate emotional abnormality. Alternatively, if the electronic device collects the result of the user's psychological questionnaire survey and finds that there is no abnormal emotion, then the electronic device can correct the high emotional abnormality to no obvious emotional abnormality (not shown in the figure).

[0195] In some other embodiments, when the user's emotional abnormality is high, the electronic device can also send the user's dream talk fragments or emotional abnormality results to the user's preset contacts, so that the user's emotional abnormality can be paid attention to by the contacts at the first time.

[0196] Exemplarily, in an embodiment of the present application, a first electronic device used by a contact associated with the user can be pre-bound to the electronic device. When the electronic device determines that the user's emotions are abnormal, the degree of the user's emotional abnormality and the user's dream talk fragments can be sent to the contact associated with the user.

[0197] For example, when the user is a child, the electronic device account used by the child's parents can be associated with the user's account. When it is identified that the user is in an abnormal mood at night, the electronic device will send the child's degree of emotional abnormality and the user's sleep talking fragments to the first electronic device. After receiving the information, the parents can provide comfort in time.

[0198] For another example, when the user is an elderly person, the electronic device account used by the elderly person's children can be associated with the user's account. When the user is identified to be in an abnormal mood at night, the electronic device sends the elderly person's abnormal mood and the user's sleep talk to the first electronic device. After receiving the information, the children can pay attention to the elderly person's physical health in a timely manner.

[0199] In another possible implementation, the electronic device can be bound to a smart home. When the electronic device determines that the user's emotions are abnormal, the electronic device sends an indication message to the smart home. The smart home can provide an abnormality mitigation service based on the indication message sent by the electronic device. Exemplary mitigation services include: adjusting specific sounds, adjusting lights, adjusting ambient temperature, adjusting humidity, or turning on aromatherapy, etc.

[0200] For example, when the electronic device determines that the user's mood is abnormal, the electronic device sends an indication message to the smart refrigerator, and after receiving the indication message, the smart refrigerator turns down the volume of the smart refrigerator; or, when the electronic device determines that the user's mood is abnormal, the electronic device sends an indication message to the smart desk lamp, and after receiving the indication message, the smart desk lamp dims the brightness of the light; or, when the electronic device determines that the user's mood is abnormal, the electronic device sends an indication message to the smart humidifier, and after receiving the indication message, the smart humidifier increases the humidity of the smart humidifier.

[0201] The abnormal emotion recognition method provided in the embodiment of the present application determines the characteristic parameters of sleep talking according to the sleep talking segments of the user; obtains the physiological parameters of the user, and the physiological parameters include: a first physiological parameter and a second physiological parameter, the first physiological parameter is the physiological parameter of the user during the sleep talking process, and the second physiological parameter is the physiological parameter of the user when no sleep talking occurs; when the frequency of the user's sleep talking, the characteristic parameters of sleep talking and the physiological parameters of the user meet the preset conditions in the first time period, the degree of abnormal emotion of the user is determined, and finally a targeted emotion improvement plan is provided to the user according to the degree of abnormal emotion of the user. The method provided in the present application helps the user identify the emotional health state by analyzing the characteristic parameters of sleep talking and the physiological parameters in the sleep talking segments of the user, so that the user can understand his or her own emotional state, and provides the user with an improvement plan according to the degree of abnormal emotion of the user, so that the user can improve his or her abnormal emotion in time.

[0202] This embodiment can also divide the functional modules of the above-mentioned electronic device according to the above-mentioned method. For example, it can be divided into various functional modules corresponding to various functions, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0203] It should be noted that the relevant contents of each step involved in the above method embodiment can all be referred to the functional description of the corresponding functional module, which will not be repeated here.

[0204] The present application also provides a chip system, such as Fig.12As shown, the chip system includes at least one processor 1201 and at least one interface circuit 1202. The processor 1201 and the interface circuit 1202 can be interconnected via lines. For example, the interface circuit 1202 can be used to receive signals from other devices (such as the memory of the above-mentioned electronic device). For another example, the interface circuit 1202 can be used to send signals to other devices (such as the processor 1201). Exemplarily, the interface circuit 1202 can read the instructions stored in the memory and send the instructions to the processor 1201. When the instructions are executed by the processor 1201, the electronic device can execute the various steps performed by any electronic device in the above-mentioned embodiments. Of course, the chip system can also include other discrete devices, which are not specifically limited in the embodiments of the present application.

[0205] It should also be understood that the division of units in the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And the units in the device can all be implemented in the form of software calling through processing elements; they can also be all implemented in the form of hardware; some units can also be implemented in the form of software calling through processing elements, and some units can be implemented in the form of hardware. For example, each unit can be a separately established processing element, or it can be integrated in a certain chip of the device. In addition, it can also be stored in the memory in the form of a program, and called and executed by a certain processing element of the device. The processing element here can also be called a processor, which can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each unit above can be implemented by an integrated logic circuit of hardware in the processor element or in the form of software calling through a processing element. In one example, the unit in any of the above devices may be one or more integrated circuits configured to implement the above method, such as one or more application specific integrated circuits (ASIC), or one or more digital signal processors (DSP), or one or more field programmable gate arrays (FPGA), or a combination of at least two of these integrated circuit forms. For another example, when the unit in the device can be implemented in the form of a processing element scheduler, the processing element can be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call a program. For another example, these units can be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0206] The present application also provides a device, which is included in an electronic device, and has the function of implementing the behavior of the electronic device in any of the above embodiments. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes at least one module or unit corresponding to the above function.

[0207] The present application also provides an electronic device, which includes the device provided in the above-mentioned embodiment of the present application.

[0208] The embodiment of the present application also provides a computer-readable storage medium for storing computer program code, the computer program including instructions for executing the steps of the electronic device performing the display interface provided in the embodiment of the present application. The readable medium may be a read-only memory (ROM) or a random access memory (RAM), which is not limited in the embodiment of the present application.

[0209] The present application also provides a computer program product, which includes instructions. When the instructions are executed, the electronic device executes the steps of executing or displaying an interface by the electronic device in any of the above embodiments.

[0210] The embodiment of the present application also provides a chip, which includes: a processing unit and a communication unit, the processing unit, for example, may be a processor, and the communication unit, for example, may be an input / output interface, a pin or a circuit, etc. The processing unit can execute computer instructions to enable the electronic device to execute any one of the methods for identifying abnormal emotions based on sleep talking provided in the embodiments of the present application.

[0211] Optionally, the computer instructions are stored in a storage unit.

[0212] Optionally, the storage unit is a storage unit within the chip, such as a register, a cache, etc. The storage unit may also be a storage unit within the terminal that is located outside the chip, such as a ROM or other types of static storage devices that can store static information and instructions, random RAM, etc. Among them, the processor mentioned in any of the above may be a CPU, a microprocessor, an ASIC, or one or more integrated circuits for controlling the execution of the program of the above-mentioned electronic device projection screen display method. The processing unit and the storage unit may be decoupled and respectively arranged on different physical devices, and connected by wired or wireless means to implement the respective functions of the processing unit and the storage unit, so as to support the system chip to implement the various functions in the above-mentioned embodiments. Alternatively, the processing unit and the memory may also be coupled on the same device.

[0213] Among them, the electronic device, device, computer-readable storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.

[0214] An embodiment of the present application also provides a graphical user interface on an electronic device, the electronic device having a display screen, a camera, a memory, and one or more processors, the one or more processors being used to execute one or more computer programs stored in the memory, the graphical user interface comprising a graphical user interface displayed when the electronic device executes steps as performed by the electronic device in any of the above embodiments.

[0215] It is understandable that, in order to realize the above functions, the above-mentioned electronic devices, etc. include hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments of the present application.

[0216] The embodiment of the present application can divide the functional modules of the above-mentioned electronic device etc. according to the above-mentioned method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0217] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0218] Each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units.

[0219] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as flash memory, mobile hard disk, read-only memory, random access memory, disk or optical disk.

[0220] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for identifying abnormal emotions based on sleep talking, characterized in that: The method comprises: Determine a sleep talk feature parameter according to the sleep talk segment of the user, wherein the sleep talk feature parameter includes at least one of: a duration of the sleep talk, a decibel of the sleep talk, a keyword of the sleep talk, abnormal crying, or a frequency of the sleep talk; Acquire physiological parameters of the user, the physiological parameters including: a first physiological parameter and a second physiological parameter, the first physiological parameter is a physiological parameter when the user talks in sleep, the second physiological parameter is a physiological parameter when the user does not talk in sleep, the physiological parameters including: at least one of heart rate, heart rate variability, blood oxygen, skin resistance, respiratory rate, blood pressure, or body temperature; The degree of abnormal emotion of the user is determined according to the frequency of the user's sleep talking in the first time period, the sleep talking characteristic parameters and the physiological parameters, wherein the frequency of the sleep talking is determined according to the sleep talking segments.

2. The method according to claim 1, characterized in that The determining the degree of abnormal emotion of the user according to the frequency of the sleep talking of the user in the first time period, the sleep talking characteristic parameter and the physiological parameter includes: When at least one of the following conditions is met: the frequency of the sleep talking in the first time period is greater than or equal to a preset first threshold, the abnormal proportion of the sleep talking characteristic parameter in the first time period is greater than or equal to a preset second threshold, or the change in the first physiological parameter and the second physiological parameter in the first time period is greater than or equal to a preset third threshold, the abnormal emotion degree is determined to be the second abnormal degree; or, When the frequency of sleep talking in the first time period is greater than or equal to the preset fourth threshold and less than the preset first threshold, the abnormal proportion of the sleep talking characteristic parameters in the first time period is greater than or equal to the preset fifth threshold and less than the preset second threshold, or the change in the first physiological parameter and the second physiological parameter in the first time period is greater than or equal to the preset sixth threshold and less than the preset third threshold, at least one of the following is met, the degree of emotional abnormality is determined to be the third abnormality degree, and the third abnormality degree is higher than the second abnormality degree.

3. The method according to claim 2, characterized in that The method further comprises: When the abnormal emotion level is the second abnormal level, providing the user with a second emotion improvement plan, wherein the second emotion improvement plan includes at least one of food therapy, exercise therapy, or psychological therapy; or When the abnormal emotion level is the third abnormal emotion level, a third emotion improvement plan is provided to the user, and the third emotion improvement plan includes at least one of food therapy, exercise therapy, psychotherapy, psychological counseling service, medical recommendation service, or drug recommendation service.

4. The method according to claim 3, characterized in that The method further comprises: When the abnormal emotion degree is the third abnormal degree, after improving the user's emotion according to the third emotion improvement plan, the third abnormal degree becomes the second abnormal degree or the first abnormal degree, and the second abnormal degree is higher than the first abnormal degree; or When the abnormal emotion degree is the second abnormal emotion degree, after the emotion of the user is improved according to the second emotion improvement plan, the second abnormal emotion degree becomes the first abnormal emotion degree.

5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: providing said user with a psychological questionnaire; The degree of abnormal emotion is updated according to the results of the psychological questionnaire survey.

6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: The abnormal emotion degree and / or the abnormal sleep talking fragment are sent to a first electronic device, where the first electronic device is a device of a preset contact of the user.

7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: Acquire sleep talking related parameters, wherein the sleep talking related parameters include: at least one of the user's medication information, the user's drinking record, the user's disease information, or the user's sleeping environment information; The length of the first time period is adjusted according to the sleep talking related parameters.

8. The method according to any one of claims 1 to 7, characterized in that Before determining the dream talk feature parameters according to the dream talk segments of the user, the method further includes: receiving a first instruction from a user; The dream talk segment is obtained based on the first instruction.

9. A communication device, characterized in that: The communication device comprises a processing unit for executing the steps performed by the method according to any one of claims 1 to 8.

10. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory is used to store instructions, and the processor is used to read the instructions to execute the method according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 8.

12. A chip, characterized in that: include: A processor, configured to call and run a computer program from a memory, so that a communication device equipped with the chip executes a method as claimed in any one of claims 1 to 8.

Citation Information

Cited By

  • Detection method and related apparatus

    WO2026114025A1