Sleep-talking-based emotion abnormality recognition method, communication apparatus, and electronic device

By extracting the characteristic parameters and physiological parameters in the sleep talking fragments, combined with the frequency of sleep talking and changes in physiological parameters, the user's emotional abnormality is identified and improvement solutions are provided, which solves the problem of identifying and managing the impact of sleep talking on emotional health, and realizes the user's emotional health. Understand and improve in a timely manner.

WO2024198603A1PCT designated stage expired Publication Date: 2024-10-03HUAWEI TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/070653
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-28
Filing Date
2024-01-04
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Existing technology cannot effectively identify and respond to the impact of sleep talking on users' emotional health, and it is difficult for users to understand their own emotional states in a timely manner.

Method used

By extracting the characteristic parameters and physiological parameters in the sleep talking fragments, combined with the frequency of sleep talking and changes in physiological parameters, the user's degree of emotional abnormality is determined and a targeted mood improvement plan is provided.

Benefits of technology

Users can understand their emotional state in a timely manner, obtain targeted mood improvement suggestions, and improve the effect of emotional health management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024070653_03102024_PF_FP_ABST
    Figure CN2024070653_03102024_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides a sleep-talking-based emotion abnormality recognition method, a communication apparatus, and an electronic device. The method comprises: determining a sleep-talking feature parameter according to a sleep-talking segment of a user, wherein the sleep-talking feature parameter may comprise: the time length of sleep-talking, the decibel of sleep-talking, a keyword of sleep-talking, abnormal crying, the frequency of sleep-talking or the like; acquiring a physiological parameter of the user, wherein the physiological parameter comprises: a first physiological parameter and a second physiological parameter, the first physiological parameter is a physiological parameter when the user has sleep-talking, the second physiological parameter is a physiological parameter when the user has no sleep-talking, and the physiological parameter may comprise: heart rate, heart rate variability, blood oxygen, skin resistance, respiration rate, blood pressure, body temperature or the like; and determining an emotion abnormality degree of the user according to the sleep-talking occurrence frequency, the sleep-talking feature parameter, and the physiological parameter of the user within a first time period. According to the method provided by the present application, users can know their own emotion health states in time.
Need to check novelty before this filing date? Find Prior Art

Description

A method for identifying abnormal emotions based on sleep talking, a communication device, and an electronic device

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on March 28, 2023, with application number 202310340731X and application name “A method for identifying abnormal emotions based on sleep talking, a communication device and an electronic device”, the entire contents of which are incorporated by reference into this application. Technical Field

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

[0003] 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.

[0004] In the related art, sleep monitoring products can record sleep talking snippets, but they do not allow users to understand their emotional health through sleep talking. Therefore, how to identify the user's emotional health status based on sleep talking is an issue that needs to be addressed in current sports and health products.

[0005] Summary of the Invention

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

[0007] In the 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.

[0008] Specifically, the method includes: determining dream talking characteristic parameters based on the user's dream talking fragments, the dream talking characteristic parameters include: at least one of: the duration of the dream talking, the decibel level 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 emotions of the user based on the frequency of the user's dream talking in a first time period, the dream talking characteristic parameters and the physiological parameters, the frequency of the sleep talking is determined based on the dream talking fragments.

[0009] The method provided in the first aspect is that the electronic device can extract dream talking characteristic parameters that can represent 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. This solves the problem in related technologies that users cannot understand their own emotional state in a timely manner, and improves the user experience.

[0010] 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 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 degree of abnormal emotion is determined to be the second abnormal degree; or, when at least one of 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 in 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.

[0011] In one possible implementation of the first aspect, when the level of abnormal mood reaches a second level, a second mood improvement plan is provided to the user, the second mood improvement plan including at least one of diet therapy, exercise therapy, or psychotherapy; or, when the level of abnormal mood reaches a third level, a third mood improvement plan is provided to the user, the third mood improvement plan including at least one of diet therapy, exercise therapy, psychotherapy, psychological counseling services, medical recommendation services, or medication recommendation services. In this implementation, based on the user's ability to promptly understand their own abnormal mood, a targeted mood improvement plan is provided to the user, thereby guiding the user to improve their emotional health issues.

[0012] In one possible implementation of the first aspect, when the degree of emotional abnormality is the third degree, after improving the user's mood according to the third emotion improvement plan, the third degree becomes the second degree or the first degree, with the second degree being higher than the first degree; or when the degree of emotional abnormality is the second degree, after improving the user's mood according to the second emotion improvement plan, the second degree becomes the first degree. In this implementation, after providing the user with a targeted emotion improvement plan, the user's emotional abnormality is tracked, thereby guiding the user to gradually improve their emotional health issues.

[0013] In one possible implementation of the first aspect, the method further includes: providing a psychological questionnaire to the user; and updating the degree of emotional abnormality based on the results of the psychological questionnaire. In this implementation, the psychological questionnaire is provided to the user, and the degree of emotional abnormality is updated based on the results of the psychological questionnaire. This makes the emotion detection results more accurate.

[0014] In one possible implementation of the first aspect, the level of abnormal emotions and / or abnormal sleep talking fragments are sent to a first electronic device, where the first electronic device is a device of a preset contact of the user. In this implementation, the user's contacts can be immediately aware of the user's emotional health issues.

[0015] In one possible implementation of the first aspect, the method further includes: obtaining sleep talking-related parameters, the sleep talking-related parameters including at least one of the user's medication information, the user's drinking history, the user's disease information, or the user's sleeping environment information; and adjusting the length of the first time period based on the sleep talking-related parameters. In this implementation, adjusting the length of the first time period based on the sleep talking-related parameters eliminates other interfering factors, thereby making the detection result more accurate.

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

[0017] 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.

[0018] In a third aspect, a communication device is provided, which includes at least one processor and a memory, the processor and the memory are coupled, and the memory stores program instructions. 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.

[0019] 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 method in the above second aspect or any possible implementation of the second aspect.

[0020] 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.

[0021] 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.

[0022] In the seventh aspect, a computer-readable storage medium is provided, which stores a computer program. 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.

[0023] 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

[0024] FIG1 shows a schematic structural diagram of an electronic device 100;

[0025] FIG2 shows a software structure block diagram of the electronic device 100 according to an embodiment of the present application;

[0026] FIG3 shows a schematic diagram of an interface for sleep monitoring of an electronic device provided in an embodiment of the present application;

[0027] FIG4 shows a schematic flow chart of a method for identifying abnormal emotions based on sleep talking provided in an embodiment of the present application;

[0028] FIG5 shows an interface display diagram of an electronic device provided in an embodiment of the present application;

[0029] FIG6 shows a schematic diagram of a display interface of another electronic device provided in an embodiment of the present application;

[0030] FIG7 shows a schematic flow chart of another method for identifying abnormal emotions based on sleep talking provided in an embodiment of the present application;

[0031] FIG8 is a schematic diagram showing a display interface of another electronic device provided in an embodiment of the present application;

[0032] FIG9 is a schematic diagram showing a display interface of another electronic device provided in an embodiment of the present application;

[0033] FIG10 is a schematic diagram showing a display interface of another electronic device provided in an embodiment of the present application;

[0034] FIG11 is a schematic diagram showing a display interface of another electronic device provided in an embodiment of the present application;

[0035] FIG12 shows a schematic diagram of a chip system. DETAILED DESCRIPTION

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

[0037] The terms used in the following embodiments are only for the purpose of describing specific embodiments and are not intended to be limiting of the present application. As used in the specification and appended claims of this application, the singular expressions "one", "a kind of", "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: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the related objects before and after are in an "or" relationship.

[0038] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in yet other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0039] 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" and "second" are only used for the purpose of distinguishing the description and cannot be understood as indicating or implying relative importance or order.

[0040] An embodiment of the present application provides an electronic device for executing the abnormal emotion recognition method provided in the present application. The electronic device in the embodiment of the present application may be a smart phone, a wearable device (such as a smart bracelet, a smart watch, a headset, etc.), a tablet computer, a laptop computer (laptop), a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a cellular phone, a personal digital assistant (PDA), an augmented reality (AR)\virtual reality (VR) device and other devices, and may 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.

[0041] 1 shows a schematic structural diagram of an 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 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.

[0042] It should be understood that the structures illustrated in the embodiments of the present application do 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, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0043] 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 processing unit (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). The different processing units may be independent devices or integrated into one or more processors.

[0044] 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.

[0045] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0046] In some embodiments, the processor 110 may include one or more interfaces. The interfaces 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.

[0047] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C bus lines. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, and the like via different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K via the I2C interface, enabling communication between the processor 110 and the touch sensor 180K via the I2C bus interface, thereby implementing the touch function of the electronic device 100.

[0048] 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 enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface, enabling the function of answering calls through a Bluetooth headset.

[0049] 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, enabling the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0050] The UART interface is a universal serial data bus used for asynchronous communication. This 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 typically 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 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface, enabling the function of playing music through Bluetooth headphones.

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

[0052] The GPIO interface can be configured via software. The GPIO interface can be configured as either a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the camera 193, display 194, wireless communication module 160, audio module 170, 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.

[0053] The USB interface 130 is an interface that complies with USB standards and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, or to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as augmented reality devices.

[0054] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is merely an illustrative 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 from the above embodiments, or a combination of multiple interface connection methods.

[0055] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device via the power management module 141.

[0056] 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 provides power to the processor 110, the internal memory 121, the external memory, the display 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 count, and battery health status (leakage, impedance). In other embodiments, the power management module 141 can also be provided in the processor 110 or in the same device.

[0057] 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.

[0058] 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 antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0059] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G 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.

[0060] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted 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 being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the 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.

[0061] 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 that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0062] 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 global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS) and / or satellite based augmentation system (SBAS).

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

[0064] Display screen 194 is used to display images, videos, and the like. 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 (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.

[0065] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.

[0066] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and converted into a visible image. The ISP can also perform algorithmic optimization on image noise and brightness. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193.

[0067] 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 light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion 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.

[0068] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0069] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. This allows electronic device 100 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.

[0070] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in electronic device 100, such as image recognition, face recognition, speech recognition, and text comprehension.

[0071] 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 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.

[0072] 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 can 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 can 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.

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

[0074] 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 provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.

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

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

[0077] Microphone 170C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending an audio message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the 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 source of sound, realize directional recording function, etc.

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

[0079] The pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, the pressure sensor 180A can be provided 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 device comprising at least two parallel plates having a conductive material. 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 is applied to 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.

[0080] The gyroscope 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 gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope 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 gyroscope sensor 180B can also be used for navigation and somatosensory game scenes.

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

[0082] 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 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 based on the magnetic sensor 180D. Based on the detected opening and closing status of the case or flip cover, features such as automatic unlocking of the flip cover can be configured.

[0083] Accelerometer 180E can detect the magnitude of acceleration of electronic device 100 in all directions (generally three axes). It can also detect the magnitude and direction of gravity when electronic device 100 is stationary. It can also be used to identify the electronic device's posture, enabling applications such as switching between landscape and portrait modes and pedometers.

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

[0085] 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 is holding 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.

[0086] Ambient light sensor 180L is used to sense ambient light brightness. Electronic device 100 can adaptively adjust the brightness of display screen 194 based on the perceived ambient light. Ambient light sensor 180L can also be used to automatically adjust white balance when taking photos. Ambient light sensor 180L can also work with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent accidental touches.

[0087] 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.

[0088] 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 the 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 prevent the electronic device 100 from shutting down abnormally due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to prevent abnormal shutdown due to low temperature.

[0089] The touch sensor 180K is also called a "touch panel." The touch sensor 180K can be disposed on the display screen 194. 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 applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, in a location different from that of the display screen 194.

[0090] The bone conduction sensor 180M can obtain vibration signals. In some embodiments, the bone conduction sensor 180M can obtain vibration signals from the vibrating bones of the human body. The bone conduction sensor 180M can also contact the human pulse to receive blood pressure pulse signals. In some embodiments, the bone conduction sensor 180M can also be set in headphones to form bone conduction headphones. The audio module 170 can parse out voice signals based on the vibration signals of the vibrating bones of the human body obtained by the bone conduction sensor 180M to implement voice functions. The application processor can parse heart rate information based on the blood pressure pulse signals obtained by the bone conduction sensor 180M to implement heart rate detection functions.

[0091] The buttons 190 include a power button, a volume button, and the like. The buttons 190 may be mechanical buttons or touch buttons. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.

[0092] 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.

[0093] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, etc.

[0094] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or disconnected from the electronic device 100 by inserting it into or removing it 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.

[0095] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present application, the Android system with a layered architecture is used as an example to illustrate the software structure of the electronic device 100.

[0096] Figure 2 shows a software structure diagram of the electronic device 100 of an embodiment of the present application. The layered architecture divides the software into several layers, each with clear roles 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: 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.

[0097] As shown in FIG2 , the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.

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

[0099] As shown in FIG2 , the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.

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

[0101] Content providers are used to store and retrieve data and make this data accessible to applications.

[0102] The view system includes visual controls, such as controls for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views.

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

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

[0105] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include displaying text messages in the status bar, emitting alert sounds, vibrating electronic devices, or flashing indicator lights.

[0106] The Android runtime includes the core library and the virtual machine. The Android runtime is responsible for scheduling and management of the Android system.

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

[0108] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.

[0109] The system library can 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.

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

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

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

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

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

[0115] For ease of understanding, the following embodiments of the present application will take an electronic device having the structure shown in Figures 1 and 2 as an example, and combine the accompanying drawings and application scenarios to specifically explain the method for identifying abnormal emotions based on sleep talking provided in the embodiments of the present application.

[0116] Sleep talking mainly refers to talking unconsciously during sleep. It can occur occasionally or frequently. It usually lasts less than 30 seconds and occasionally lasts for several minutes. The words spoken in dreams can range from nonsense to complete sentences, and may even include shouting.

[0117] 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.

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

[0119] Sleep talking can be categorized as mild, moderate, or severe based on frequency. Mild refers to less than or equal to once a week, moderate refers to more than once a week, and severe refers to every night or even several times a night. Sleep talking can be categorized as acute, subacute, or chronic based on duration. Acute refers to continuous sleep talking for a month or less, subacute refers to sleep talking for more than a month but less than a year, and chronic refers to sleep talking for a year or longer.

[0120] Based on the nature of sleep talking, it can be categorized as simple sleep talking, which typically involves short, meaningless utterances such as grunts, groans, or single words; or complex sleep talking, which is less common and involves longer, more coherent speech that may appear to be a conversation or may be gibberish. Sleep talking can also be categorized as hyperspeech, a very rare form of sleep talking that involves an abnormal flow of speech. The person may speak rapidly and incoherently for minutes at a time. This type of sleep talking may be a symptom of a mental illness such as bipolar disorder or schizophrenia.

[0121] The causes of sleep talking are generally categorized as emotional and mental health issues, such as stress, anxiety, frustration, and depression. People with post-traumatic stress disorder or other mental illnesses experience sleep talking twice as often as those without these conditions. Genetics, medications, illness, high fever, and the sleeping environment may also contribute to sleep talking. Sleep talking can affect sleep quality and daytime mental well-being. Therefore, appropriate measures should be taken to address sleep talking. For example, occasional sleep talking is normal behavior and not cause for concern. Maintaining healthy sleep habits can alleviate this. Frequent sleep talking that significantly impacts sleep quality requires medical attention. Emotional health issues such as stress or anxiety can be alleviated by identifying and avoiding stressors in your life and practicing relaxation techniques, such as deep meditation. Sleep talking that begins after a significant traumatic or stressful experience can indicate underlying emotional and mental health issues and warrant referral for mental health treatment. Medication: If an underlying sleep disorder is causing sleep talking, treating it may reduce or eliminate it. For example, if sleep apnea is the cause, positive airway pressure therapy may be necessary to help maintain an open airway during sleep.

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

[0123] For example, Figure 3 shows a schematic diagram of the sleep monitoring interface of an electronic device provided in an embodiment of the present application. As shown in Figure 3, the electronic device records the user's sleep monitoring status on August 22. As can be seen from Figure 3, the user went to bed at 12:24 AM, fell asleep at 12:32 AM, and woke up at 6:44 AM, for a total sleep duration of 6 hours and 12 minutes, with three deep sleep periods and four light sleep periods during this period. Based on the user's sleep status, the electronic device scores the user's sleep quality as good and recommends a 30-minute nap to restore motivation for study and work. The electronic device can also capture the user's waking experience, allowing the user to record their current feelings. For example, the user may record waking up feeling as still a little sleepy. The electronic device can also record the user's sleep talk snippets. For example, the user may record a 52-second sleep talk snippet, which the user can click to play to listen to. The electronic device also collects a decibel graph of the user's living environment noise level. As can be seen from the graph, the user's average ambient noise level is 20 dB, indicating a perfect sleeping environment, equivalent to a completely silent environment.

[0124] It can be seen that users can understand their own sleep status based on the sleep monitoring records of electronic devices, but electronic devices cannot judge whether the user's emotions are abnormal and how to improve the user's abnormal emotions based on 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 currently need to be paid attention to by sleep monitoring products.

[0125] In view of this, the present application provides a method for identifying abnormal emotions based on sleep talking, the method comprising: determining dream talking characteristic parameters based on a user's dream talking segments; obtaining the user's physiological parameters, the physiological parameters comprising: a first physiological parameter and a second physiological parameter, the first physiological parameter being the physiological parameter when the user is having sleep talking, and the second physiological parameter being the physiological parameter when the user is not having sleep talking; and determining the degree of abnormal emotions of the user based on the frequency of the user's sleep talking within a first time period, the dream talking characteristic parameters, and the user's physiological parameters. The method provided in the present application determines whether the user's emotions are abnormal by extracting dream talking characteristic parameters and physiological parameters related to the user's abnormal emotions during the sleep talking process, thereby helping the user identify their emotional health status and enabling the user to understand their own emotional state.

[0126] 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, he or she can use the sleep talking-based emotional abnormality identification method provided by this application. This method collects dream talking fragments during this period of time, determines dream talking characteristic parameters based on the dream talking fragments, and obtains physiological parameters during this period of time to determine the degree of emotional abnormality of the user, so that the user can understand his or her emotional health status in a timely manner.

[0127] The method for identifying abnormal emotions based on sleep talking provided by the present application is described in detail below with reference to Figure 4. 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.

[0128] Fig. 4 shows a schematic flow chart of a method for identifying abnormal emotions based on sleep talking according to an embodiment of the present application. As shown in Fig. 4 , the method 400 includes steps S410 to S440.

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

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

[0131] Optionally, the first instruction may be the user turning on a dream talk collection switch. When the dream talk collection switch is on, the electronic device may extract the user's dream 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.

[0132] Before the electronic device extracts the user's dream talking fragments, it first collects the user's audio information during sleep through a sound pickup device.

[0133] It should be understood that the sound pickup device can be an electronic device for extracting dream talk fragments, or it can be 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 device such as a smart mattress to collect audio information. Of course, the sound pickup device can also be other devices with a microphone (MIC), and this embodiment of the application is not limited to this.

[0134] In some embodiments, after the electronic device obtains the audio information, it first performs preprocessing to remove the silent part from the audio information and identify the audio information at the frame level. The audio information at the frame level includes dream talking segments and non-dream talking segments. For example, the non-dream talking segments may be snoring, etc. 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 the axes based on 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.

[0135] Of course, the user's dream talk segments may 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.

[0136] Exemplarily, Figure 5 shows an interface display diagram of an electronic device provided in an embodiment of the present application. As shown in Figure 5 (a), the user can click on the emotional health monitoring of the sleep monitoring interface, and the display interface of the electronic device switches from the interface shown in Figure 5 (a) to the interface shown in Figure 5 (b). As shown in Figure 5 (b), the electronic device displays the user's dream talking fragments extracted by the electronic device during that period of time.

[0137] S420. Determine dream talking characteristic parameters based on the user's dream talking segments, where the dream talking characteristic parameters include at least one of: duration of the dream talking, decibel level of the dream talking, keywords in the dream talking, abnormal crying, or frequency of the dream talking.

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

[0139] For example, the sleep talking characteristic parameter may be at least one of the duration of the sleep talking, the decibel level of the sleep talking, keywords in 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 sleep talking, which is not limited in this embodiment of the present application.

[0140] In one possible implementation, the electronic device may further determine the abnormal proportion of the sleep talk characteristic parameters based on the user's sleep talk characteristic parameters. For example, the electronic device may determine whether the sleep talk characteristic parameters are abnormal based on whether the sleep talk characteristic parameters meet preset conditions, and then determine the abnormal proportion of the sleep talk characteristic parameters based on the proportion of the abnormal parameters.

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

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

[0143] 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 is talking in sleep, and the second physiological parameter is the physiological parameter when the user is not talking in 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.

[0144] In the embodiment of the present application, the abnormality of the user's emotions can be determined based on the degree of change in the user's physiological parameters. Therefore, the electronic device can obtain the user's physiological parameters during sleep talking and the user's physiological parameters when sleep talking does not occur.

[0145] In one possible implementation, the electronic device may collect physiological parameters throughout the sleep process, and then determine the physiological parameters of the user during sleep talking and the physiological parameters of the user when no sleep talking occurs based on the time of the sleep talking segments.

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

[0147] For example, when abnormal keywords appear in sleep talking, the electronic device can synchronously record the physiological parameters during the sleep talking process; 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 process; or, when the user cries abnormally, the electronic device can synchronize the physiological parameters during the sleep talking process.

[0148] Similarly, the electronic device can record the user's physiological parameters when they are not talking in their sleep at any time when no abnormal characteristics appear, or the electronic device can record the user's physiological parameters when they are not talking in their sleep between two sleep talking segments. The embodiments of the present application do not impose any specific restrictions on the time when the electronic device records the user's physiological parameters.

[0149] For example, in an embodiment of the present application, 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, physiological parameters may also include other parameters, which are not limited in the embodiment of the present application.

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

[0151] In an embodiment of the present application, the electronic device can determine whether the user has abnormal emotions based on dream talking segments recorded during a first time period, dream talking feature parameters extracted from the dream talking segments, and the degree of change in physiological parameters recorded by the electronic device. The degree of abnormal emotions includes: no obvious abnormal emotions, moderate abnormal emotions, and high abnormal emotions.

[0152] Continuing with FIG. 5 , as shown in FIG. 5 (c), after the electronic device determines the user's emotional abnormality based on the frequency of sleep talking, sleep talking characteristic parameters, and physiological parameters during a first time period, the user's emotional health status can be displayed on the interface. The user can directly and quickly understand the abnormal emotional health status. For example, FIG. 5 (c) shows that the user's emotional health status is moderately abnormal.

[0153] 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.

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

[0155] It should be noted that the first time period can be set according to specific circumstances and is not limited in the present embodiment. For example, the first time period can be a week (seven days).

[0156] 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.

[0157] For example, 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.

[0158] For example, if a user wants to know their emotional state between August 22nd and August 29th, but they were sick and took medication on August 22nd, August 22nd can be excluded from the first time period, and the first time period can be adjusted to August 23rd or August 30th. This implementation eliminates interference from other factors and makes the user emotion detection result more accurate.

[0159] In one possible implementation, the electronic device can collect dream talking-related parameters on the sleep application interface. For example, Figure 6 shows a schematic diagram of the display interface of another electronic device provided in an embodiment of the present application. As shown in Figure 6, the user can input his or her own situation before going to bed on that day according to his or her own situation. For example, the user can input 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 dream talking, when the electronic device collects at least one dream talking-related parameter of the user, the dream talking fragments of that day are not taken into consideration when finally analyzing whether the emotions are abnormal.

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

[0161] In some embodiments, the degree of emotional abnormality is determined to be the second degree of abnormality 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 characteristic parameters of sleep talking 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.

[0162] 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 them.

[0163] 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 value and less than the preset first threshold value; the abnormal proportion of the sleep talking characteristic parameters in the first time period is greater than or equal to the preset fifth threshold value and less than the preset second threshold value; 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 value and less than the preset third threshold value, 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.

[0164] 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 are not limited in the embodiments of the present application.

[0165] For example, if the frequency of sleep talking during a first time period is greater than or equal to a preset first threshold, it indicates that the user's emotional abnormality is high. If the frequency of sleep talking is greater than or equal to a preset second threshold but less than the first threshold, it indicates that the user's emotional abnormality is moderate. If the frequency of sleep talking is less than a preset third threshold, it indicates that there is no obvious emotional abnormality.

[0166] For example, when the preset period is one week (seven days), if the frequency of sleep talking is less than or equal to once, it means that the user has no obvious emotional abnormality. If the frequency of sleep talking is greater than once but less than 7 times, it means that the user's emotional abnormality is moderate. If the frequency of sleep talking is equal to 7 times, it means that the user's emotional abnormality is high.

[0167] For another example, when the frequency of a user's sleep talking in the first time period is greater than or equal to a preset first threshold, and the abnormal proportion of the sleep talking parameters is greater than or equal to a preset second threshold, it indicates that the user's emotional abnormality is relatively high; when the frequency of a user's sleep talking in the first time period is less than the preset first threshold, and greater than or equal to a 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 a preset fourth threshold, it indicates that the user's emotional abnormality is moderate; when the frequency of a 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.

[0168] For example, when the preset period is one week (seven days), if 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 indicates 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 indicates 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 indicates that the user has no obvious emotional abnormality.

[0169] 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 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 parameter is less than the preset second threshold, and 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 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 emotion is not abnormal.

[0170] The method for identifying abnormal emotions provided in an embodiment of the present application determines dream talking characteristic parameters based on a user's dream talking segments; obtains the user's physiological parameters, which include: a first physiological parameter and a second physiological parameter, where the first physiological parameter is the user's physiological parameter during sleep talking, and the second physiological parameter is the user's physiological parameter when not dream talking; and determines the degree of abnormal emotions of the user based on the frequency of sleep talking within a first time period, the dream talking characteristic parameters, and the user's physiological parameters. The method provided in this application determines whether the user's emotions are abnormal by extracting dream talking characteristic parameters and physiological parameters related to the user's abnormal emotions during sleep talking, thereby helping the user identify their emotional health status and enabling the user to understand their own emotional state.

[0171] 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 their emotions step by step. Figure 7 shows a schematic flow chart of another example of an abnormal emotion recognition method based on sleep talking provided by an embodiment of the present application. As shown in Figure 7, the method 700 includes S710-S750:

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

[0173] S720: Determine dream talking feature parameters based on the user's dream talking segments, where the dream talking feature parameters include at least one of: dream talking duration, dream talking decibels, dream talking keywords, abnormal crying, or dream talking frequency.

[0174] S730. Acquire the user's physiological parameters, which 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.

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

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

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

[0178] In some embodiments, when the user's emotional abnormality reaches a second abnormality level, i.e., a moderate emotional abnormality level, indicating that the user has a moderate level of stress or anxiety, the electronic device may push a second emotional improvement plan to the user, which may provide suggestions for improving the user's moderate emotional abnormality.

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

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

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

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

[0183] 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.

[0184] For example, Figure 8 shows a schematic diagram of a display interface of another electronic device provided in an embodiment of the present application. As shown in Figure 8 (a), when the electronic device determines that the user's emotional abnormality level is medium, the electronic device can also recommend a psychological questionnaire survey to the user. The electronic device can correct the user's emotional abnormality level based on the results of the questionnaire survey. As shown in Figure 8 (b), assuming that the electronic device collects the user's psychological questionnaire and the result shows no emotional abnormality, the electronic device can correct the medium emotional abnormality level to no obvious emotional abnormality.

[0185] It should be noted that the recommended time for the psychological questionnaire survey can be after the user makes improvements based on the second improvement plan, or before the user makes improvements based on the first improvement plan. This embodiment of the present application does not limit this.

[0186] It should be understood that if the psychological questionnaire survey is recommended by the user after the user has improved based on the second improvement plan, the electronic device can promptly update the user's emotional abnormality level based on the psychological questionnaire survey results. If the psychological questionnaire survey is recommended by the user before the user has improved based on the second improvement plan, the electronic device can correct the user's emotional abnormality level based on the psychological questionnaire survey results.

[0187] Exemplarily, FIG9 shows a schematic diagram of the display interface of another electronic device provided in an embodiment of the present application. As shown in FIG9 , in addition to displaying the abnormal mood 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 mood improvement plan. Exemplarily, when the user's mood is moderately abnormal, the user can click on "View Self-Adjustment Method" on the display interface to view the specific second mood improvement plan. When the user clicks on "View Self-Adjustment Method" on the display interface, the display interface of the electronic device switches from the interface shown in FIG9 (a) to the interface shown in FIG9 (b). That is, the second mood improvement plan is displayed, such as food therapy, exercise therapy, or psychotherapy.

[0188] In other embodiments, when the user's emotional abnormality reaches the third abnormality level, i.e., a high level of emotional abnormality, it indicates that the user is under great stress, has a high level of anxiety, or has a high risk of panic or depression. The electronic device can push a third emotional improvement plan to the user, which can provide suggestions for improving the user's emotional abnormality.

[0189] 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.

[0190] 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.

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

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

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

[0194] Exemplarily, FIG10 shows a schematic diagram of the display interface of another electronic device provided in an embodiment of the present application. As shown in FIG10 , in addition to displaying the abnormal mood 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 mood improvement plan. Exemplarily, when the user's mood is moderately abnormal, the user can click on "View Self-Adjustment Method" on the display interface to view the specific second mood improvement plan. When the user clicks on "View Self-Adjustment Method" on the display interface, the display interface of the electronic device switches from the interface shown in FIG10 (a) to the interface shown in FIG10 (b). That is, a third mood improvement plan is displayed, such as food therapy, exercise therapy, psychotherapy, psychological counseling services, medical recommendation services, and drug recommendation services.

[0195] In some embodiments, when the electronic device determines that the user's emotional abnormality level is high, the electronic device may further 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.

[0196] For example, FIG11 shows a schematic diagram of a display interface of another electronic device provided by an embodiment of the present application. As shown in FIG11 (a), when the electronic device determines that the user's emotional abnormality is high, the electronic device can also recommend a psychological questionnaire survey to the user. The electronic device can correct the user's emotional abnormality according to the results of the questionnaire survey. As shown in FIG11 (b), assuming that the electronic device collects the result of the user's psychological questionnaire survey and finds that the emotional abnormality is medium, then the electronic device can correct the high emotional abnormality to medium emotional abnormality. Alternatively, when 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).

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

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

[0199] 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 has abnormal emotions at night, the electronic device will send the degree of abnormal emotions of the child and the user's sleep talking fragments to the first electronic device. After receiving the information, the parents can provide comfort in time.

[0200] For example, if the user is elderly, the electronic device account used by the elderly's children can be associated with the user's account. If the electronic device detects that the user is emotionally unstable at night, it will send the elderly's emotional abnormality and a snippet of the user's sleep talk to the first electronic device. After receiving this information, the children can promptly pay attention to the elderly's physical health.

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

[0202] 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.

[0203] The method for identifying abnormal emotions provided in the embodiment of the present application determines the characteristic parameters of sleep talking based on the user's sleep talking segments; obtains the user's physiological parameters, which include: a first physiological parameter and a second physiological parameter, the first physiological parameter being the physiological parameter of the user during sleep talking, and the second physiological parameter being 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 preset conditions within the first time period, determines the degree of abnormal emotions of the user, and finally provides the user with a targeted emotional improvement plan based on the degree of abnormal emotions 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 user's sleep talking segments, so that the user can understand his or her own emotional state, and provides the user with an improvement plan based on the degree of abnormal emotions of the user, so that the user can improve his or her abnormal emotions in a timely manner.

[0204] The embodiments of the present application can also divide the functional modules of the electronic device according to the above method. For example, the functional modules can be divided into functional modules corresponding to each function, or two or more functions can be integrated into a processing module. The above integrated modules 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 functional division. In actual implementation, other division methods can be used.

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

[0206] An embodiment of the present application also provides a chip system, as shown in Figure 12, which 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 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.

[0207] It should also be understood that the division of units in the above device is merely 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. Moreover, the units in the device can all be implemented in the form of software called through processing elements; or all be implemented in the form of hardware; or some units can be implemented in the form of software called 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 into a certain chip of the device. In addition, it can also be stored in a memory in the form of a program, and called by a certain processing element of the device to execute the function of the unit. Here, the processing element 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 the integrated logic circuit of the hardware in the processor element or in the form of software called through the 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 (ASICs), or one or more digital signal processors (DSPs), or one or more field programmable gate arrays (FPGAs), 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 may 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).

[0208] The present application also provides an apparatus, included in an electronic device, that implements the electronic device behavior described in any of the above embodiments. This functionality can be implemented in hardware or by hardware executing corresponding software. The hardware or software includes at least one module or unit corresponding to the above functionality.

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

[0210] The present invention also provides a computer-readable storage medium for storing computer program code, wherein the computer program includes instructions for executing the steps of the electronic device performing the display interface provided in the above-mentioned embodiments of the present invention. The readable medium can be a read-only memory (ROM) or a random access memory (RAM), which is not limited in the present invention.

[0211] 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 the interface of the electronic device in any of the above embodiments.

[0212] The present application also provides a chip comprising a processing unit and a communication unit. The processing unit may be, for example, a processor, and the communication unit may be, for example, an input / output interface, a pin, or a circuit. The processing unit may execute computer instructions to cause an electronic device to perform any of the sleep talking-based emotion recognition methods provided in the embodiments of the present application.

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

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

[0215] 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.

[0216] 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 including a graphical user interface displayed when the electronic device executes steps as performed by the electronic device in any of the above embodiments.

[0217] It is understandable that, in order to realize the above functions, the above-mentioned electronic devices and the like 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.

[0218] 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.

[0219] Through the description of the above embodiments, those skilled in the art will clearly understand that for the sake of convenience and brevity, 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 can be divided into different functional modules to complete all or part of the functions described above. The specific working processes of the above-described systems, devices, and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0220] The functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0221] 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 for enabling 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, magnetic disk or optical disk.

[0222] The above is only a specific embodiment of the present application, but the scope of protection of this application is not limited to this. Any changes or substitutions within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection 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

Patent Citations

  • Somniloquy extraction method and apparatus, and apparatus for extracting somniloquy

    CN106409317A

  • Sleep monitoring method based on internet of things

    CN106510663A

  • Sleep quality evaluation system and method based on electrocardiogram, breathing and body position signals

    CN107334460A

  • Method and device for evaluating sleep quality based on user sleep audio

    CN111166297A

  • Emotion classification method and device based on brain wave signals

    CN115422983A