Movatterモバイル変換


[0]ホーム

URL:


CN108837271A - The output method and Related product of electronic device, prompt information - Google Patents

The output method and Related product of electronic device, prompt information
Download PDF

Info

Publication number
CN108837271A
CN108837271ACN201810257340.0ACN201810257340ACN108837271ACN 108837271 ACN108837271 ACN 108837271ACN 201810257340 ACN201810257340 ACN 201810257340ACN 108837271 ACN108837271 ACN 108837271A
Authority
CN
China
Prior art keywords
user
eeg
prompt information
nightmare
processor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810257340.0A
Other languages
Chinese (zh)
Other versions
CN108837271B (en
Inventor
张海平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810257340.0ApriorityCriticalpatent/CN108837271B/en
Publication of CN108837271ApublicationCriticalpatent/CN108837271A/en
Application grantedgrantedCritical
Publication of CN108837271BpublicationCriticalpatent/CN108837271B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本申请实施例涉及移动终端技术领域,公开了一种电子装置、提示信息的输出方法及相关产品。其中,该电子装置包括脑电波传感器、处理器以及输出装置,其中,脑电波传感器,用于在用户处于睡眠状态的情况下,获取用户的脑电波信号;处理器,用于根据脑电波信号确定用户是否处于噩梦中;输出装置,用于在用户处于噩梦中的情况下,输出目标提示信息;目标提示信息用于唤醒用户。由此可见,实施本申请实施例,可以对脑电波信号进行分析以确定用户是否处于噩梦中,若用户处于噩梦中,则输出目标提示信息将用户从噩梦中唤醒,进而提升用户的睡眠质量。

The embodiment of the present application relates to the technical field of mobile terminals, and discloses an electronic device, a method for outputting prompt information, and related products. Wherein, the electronic device includes a brain wave sensor, a processor, and an output device, wherein the brain wave sensor is used to obtain the user's brain wave signal when the user is in a sleep state; the processor is used to determine the brain wave signal according to the brain wave signal. Whether the user is in a nightmare; the output device is used to output target prompt information when the user is in a nightmare; the target prompt information is used to wake up the user. It can be seen that, implementing the embodiment of the present application, the brain wave signal can be analyzed to determine whether the user is in a nightmare, and if the user is in a nightmare, output target prompt information to wake the user up from the nightmare, thereby improving the user's sleep quality.

Description

Translated fromChinese
电子装置、提示信息的输出方法及相关产品Electronic device, method for outputting prompt information, and related products

技术领域technical field

本申请涉及移动终端技术领域,尤其涉及一种电子装置、提示信息的输出方法及相关产品。The present application relates to the technical field of mobile terminals, in particular to an electronic device, a method for outputting prompt information and related products.

背景技术Background technique

随着移动终端技术的发展,移动终端已经在人们生活中起到越来越重要的作用。在生活中,利用移动终端进行支付、办公等活动已经越来越方便。With the development of mobile terminal technologies, mobile terminals have played an increasingly important role in people's lives. In daily life, it has become more and more convenient to use mobile terminals for payment, office and other activities.

然而,用户在与移动终端进行交互时,往往需要用户通过手势、动作等操作向移动终端进行输入,方可与移动终端进行交互。这限制了用户对移动终端操作的灵活性和自由度,因而,如何提高用户操作移动终端的灵活性和自由度,成为一个亟待解决的问题。However, when the user interacts with the mobile terminal, the user often needs to input to the mobile terminal through operations such as gestures and actions before interacting with the mobile terminal. This limits the user's flexibility and freedom in operating the mobile terminal. Therefore, how to improve the user's flexibility and freedom in operating the mobile terminal has become an urgent problem to be solved.

发明内容Contents of the invention

本申请实施例提供了一种电子装置、提示信息的输出方法及相关产品,可以提升用户的睡眠质量。Embodiments of the present application provide an electronic device, a method for outputting prompt information, and related products, which can improve a user's sleep quality.

第一方面,本申请实施例公开了一种电子装置,所述电子装置包括脑电波传感器、处理器以及输出装置,其中,In the first aspect, the embodiment of the present application discloses an electronic device, the electronic device includes a brainwave sensor, a processor, and an output device, wherein,

所述脑电波传感器,用于在用户处于睡眠状态的情况下,获取所述用户的脑电波信号;The brain wave sensor is used to acquire the user's brain wave signal when the user is in a sleep state;

所述处理器,用于根据所述脑电波信号确定所述用户是否处于噩梦中;The processor is configured to determine whether the user is in a nightmare according to the brainwave signal;

所述输出装置,用于在所述用户处于噩梦中的情况下,输出目标提示信息;所述目标提示信息用于唤醒所述用户。The output device is configured to output target prompt information when the user is in a nightmare; the target prompt information is used to wake up the user.

第二方面,本申请实施例公开了一种提示信息的输出方法,应用于包括脑电波传感器、处理器以及输出装置的电子装置,所述方法包括:In the second aspect, the embodiment of the present application discloses a method for outputting prompt information, which is applied to an electronic device including a brainwave sensor, a processor, and an output device. The method includes:

在用户处于睡眠状态的情况下,控制所述脑电波传感器获取所述用户的脑电波信号;When the user is in a sleeping state, controlling the brain wave sensor to acquire the user's brain wave signal;

根据所述脑电波信号确定所述用户是否处于噩梦中;determining whether the user is in a nightmare according to the brainwave signal;

在所述用户处于噩梦中的情况下,控制所述输出装置输出目标提示信息;所述目标提示信息用于唤醒所述用户。When the user is in a nightmare, the output device is controlled to output target prompt information; the target prompt information is used to wake up the user.

第三方面,本申请实施例公开了一种提示信息的输出装置,应用于包括脑电波传感器、处理器以及输出装置的电子装置,所述提示信息的输出装置包括获取单元、确定单元以及输出单元,其中,In the third aspect, the embodiment of the present application discloses a prompt information output device, which is applied to an electronic device including a brainwave sensor, a processor, and an output device. The prompt information output device includes an acquisition unit, a determination unit, and an output unit ,in,

所述获取单元,用于在用户处于睡眠状态的情况下,控制所述脑电波传感器获取所述用户的脑电波信号;The acquiring unit is configured to control the brainwave sensor to acquire the user's brainwave signal when the user is in a sleep state;

所述确定单元,用于根据所述脑电波信号确定所述用户是否处于噩梦中;The determining unit is configured to determine whether the user is in a nightmare according to the brainwave signal;

所述输出单元,用于在所述用户处于噩梦中的情况下,控制所述输出装置输出目标提示信息;所述目标提示信息用于唤醒所述用户。The output unit is configured to control the output device to output target prompt information when the user is in a nightmare; the target prompt information is used to wake up the user.

第四方面,本申请实施例提供一种电子装置,包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,上述程序包括用于执行本申请实施例第二方面任一方法中的步骤的指令。In a fourth aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be processed by the above The above program includes instructions for executing the steps in any method of the second aspect of the embodiment of the present application.

第五方面,本申请实施例提供了一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本申请实施例第二方面任一方法中所描述的部分或全部步骤。In the fifth aspect, the embodiment of the present application provides a computer-readable storage medium, wherein the above-mentioned computer-readable storage medium stores a computer program for electronic data exchange, wherein the above-mentioned computer program enables the computer to execute Part or all of the steps described in any method of the two aspects.

第六方面,本申请实施例提供了一种计算机程序产品,其中,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本申请实施例第二方面任一方法中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。In a sixth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable the computer to execute the program as implemented in the present application. For example, some or all of the steps described in any method of the second aspect. The computer program product may be a software installation package.

本申请实施例中,电子装置包括脑电波传感器、处理器以及输出装置,其中,脑电波传感器,用于在用户处于睡眠状态的情况下,获取用户的脑电波信号;处理器,用于根据脑电波信号确定用户是否处于噩梦中;输出装置,用于在用户处于噩梦中的情况下,输出目标提示信息;目标提示信息用于唤醒用户。由此可见,实施本申请实施例,可以对脑电波信号进行分析以确定用户是否处于噩梦中,若用户处于噩梦中,则输出目标提示信息将用户从噩梦中唤醒,进而提升用户的睡眠质量。In the embodiment of the present application, the electronic device includes a brain wave sensor, a processor, and an output device, wherein the brain wave sensor is used to obtain the user's brain wave signal when the user is in a sleep state; The electric wave signal determines whether the user is in a nightmare; the output device is used to output target prompt information when the user is in a nightmare; the target prompt information is used to wake up the user. It can be seen that, implementing the embodiment of the present application, the brain wave signal can be analyzed to determine whether the user is in a nightmare, and if the user is in a nightmare, output target prompt information to wake the user up from the nightmare, thereby improving the user's sleep quality.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without any creative effort.

图1为本申请实施例公开的一种电子装置的结构示意图;FIG. 1 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application;

图2为本申请实施例公开的另一种电子装置的结构示意图;FIG. 2 is a schematic structural diagram of another electronic device disclosed in an embodiment of the present application;

图3为本申请实施例公开的另一种电子装置的结构示意图;FIG. 3 is a schematic structural diagram of another electronic device disclosed in an embodiment of the present application;

图4为本申请实施例公开的一种电子装置与心跳传感器以及血压传感器的交互示意图;Fig. 4 is a schematic diagram of interaction between an electronic device disclosed in an embodiment of the present application, a heartbeat sensor and a blood pressure sensor;

图5为本申请实施例公开的一种脑电图的示意图;Fig. 5 is a schematic diagram of an electroencephalogram disclosed in the embodiment of the present application;

图6为本申请实施例公开的一种提示信息的输出方法的流程示意图;FIG. 6 is a schematic flowchart of a method for outputting prompt information disclosed in an embodiment of the present application;

图7为本申请实施例公开的一种提示信息的输出装置的结构功能框图;FIG. 7 is a structural and functional block diagram of an output device for prompt information disclosed in an embodiment of the present application;

图8为本申请实施例公开的另一种电子装置的结构示意图;FIG. 8 is a schematic structural diagram of another electronic device disclosed in the embodiment of the present application;

图9为本申请实施例公开的另一种电子装置的结构示意图。FIG. 9 is a schematic structural diagram of another electronic device disclosed in an embodiment of the present application.

具体实施方式Detailed ways

为了使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请作进一步地详细描述,显然,所描述的实施例仅仅是本申请一部份实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions and advantages of the application clearer, the application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some of the embodiments of the application, not all of them. . Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同的对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法或设备固有的其他步骤或单元。The terms "first", "second" and the like in the description and claims of the present application and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally further includes For other steps or units inherent in these processes, methods or apparatuses.

在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.

本申请实施例所涉及到的电子装置可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(MobileStation,MS),终端设备(terminaldevice)等等。为方便描述,上面提到的设备统称为电子装置。The electronic devices involved in the embodiments of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to wireless modems, as well as various forms of user equipment (User Equipment, UE), mobile station (MobileStation, MS), terminal device (terminaldevice) and so on. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices.

本申请实施例提供了一种电子装置、提示信息的输出方法及相关产品,可以对脑电波信号进行分析以确定用户是否处于噩梦中,若用户处于噩梦中,则输出目标提示信息将用户从噩梦中唤醒,进而提升用户的睡眠质量。以下分别进行详细说明。The embodiment of the present application provides an electronic device, a prompt information output method and related products, which can analyze the brain wave signal to determine whether the user is in a nightmare, and if the user is in a nightmare, then output target prompt information to save the user from the nightmare. Wake up in the middle of the day, thereby improving the user's sleep quality. Each will be described in detail below.

请参阅图1,图1为本申请实施例公开的一种电子装置100的结构示意图,如图1所示,电子装置100包括脑电波传感器110、处理器120以及输出装置130,脑电波传感器110、处理器120以及输出装置130可以相互连接,从而可以互相通信。Please refer to FIG. 1. FIG. 1 is a schematic structural diagram of an electronic device 100 disclosed in an embodiment of the present application. As shown in FIG. , the processor 120 and the output device 130 may be connected to each other so as to communicate with each other.

本申请实施例中,脑电波传感器110,用于在用户处于睡眠状态的情况下,获取用户的脑电波信号。In the embodiment of the present application, the brain wave sensor 110 is used to acquire the user's brain wave signal when the user is in a sleeping state.

处理器120,用于根据脑电波信号确定用户是否处于噩梦中。The processor 120 is configured to determine whether the user is in a nightmare according to the brainwave signal.

输出装置130,用于在用户处于噩梦中的情况下,输出目标提示信息;目标提示信息用于唤醒用户。The output device 130 is configured to output target prompt information when the user is in a nightmare; the target prompt information is used to wake up the user.

在人体中,大脑的神经元活动通过离子传导到大脑皮层,因而会产生微弱的电压变化;因此,在本申请实施例中,脑电波传感器110具有至少一个导电电极,导电电极可以固定在用户的头皮上,从而感应到脑电波引起的微弱的电压变化。本申请实施例中,上述导电电极可为干电极、湿电极或侵入式电极等,具体采用何种导电电极,本申请实施例不做限定。In the human body, the neuron activity of the brain is conducted to the cerebral cortex through ions, thus generating weak voltage changes; therefore, in the embodiment of this application, the brainwave sensor 110 has at least one conductive electrode, which can be fixed on the user's On the scalp, the weak voltage changes caused by brain waves are sensed. In the embodiment of the present application, the above-mentioned conductive electrode may be a dry electrode, a wet electrode, or an intrusive electrode, and the specific conductive electrode used is not limited in the embodiment of the present application.

作为一种可选的实施方式,脑电波传感器110还具有信号处理电路,从而当导电电极获取到原始电压信号之后,信号处理电路对原始电压信号进行差分放大,并滤除由肌电信号引入的干扰噪音,再进行模数转换后获得数字化的脑电波信号。该脑电波信号可以传输至处理器120进行进一步地信号处理和分析,从而获知用户的疲劳程度、专注度、心理状态、是否处于噩梦中等情况。As an optional implementation, the brainwave sensor 110 also has a signal processing circuit, so that after the conductive electrode acquires the original voltage signal, the signal processing circuit differentially amplifies the original voltage signal and filters out the Interference noise, and then analog-to-digital conversion to obtain digital brain wave signals. The brain wave signal can be transmitted to the processor 120 for further signal processing and analysis, so as to know the user's fatigue degree, concentration, psychological state, whether it is in a nightmare or not.

本申请实施例中,处理器120可为中央处理器(Central Processing Unit,CPU),通用处理器,数字信号处理器(Digital Signal Processor,DSP),专用集成电路(Application-Specific Integrated Circuit,ASIC),现场可编程门阵列(FieldProgrammable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。In the embodiment of the present application, the processor 120 may be a central processing unit (Central Processing Unit, CPU), a general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application-Specific Integrated Circuit, ASIC) , Field Programmable Gate Array (Field Programmable Gate Array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof.

本申请实施例中,输出装置130可为扬声器、低电压电击装置、物理传动装置等可以向用户输出听觉信息、触觉信息等的装置。相应地,当输出装置130为扬声器时,目标提示信息为音频信息;当输出装置为低电压电击装置时,目标提示信息为低电压电流刺激信号;当输出装置为物理传动装置时,目标提示信息为轻触、推动或拍打等。In the embodiment of the present application, the output device 130 may be a device capable of outputting auditory information, tactile information, etc. to the user, such as a speaker, a low-voltage electric shock device, or a physical transmission device. Correspondingly, when the output device 130 is a loudspeaker, the target prompt information is audio information; when the output device is a low-voltage electric shock device, the target prompt information is a low-voltage current stimulation signal; when the output device is a physical transmission device, the target prompt information For light touch, push or slap, etc.

当用户在睡眠中做噩梦时,会出现心跳频率上升、肌肉紧张、血压上升等现象,因此,做噩梦时的睡眠所获得的休息效果,远不及没有做噩梦的睡眠所带来的休息效果。因此,当确定用户在睡眠中做噩梦的情况下,通过输出装置130输出上述目标提示信息,可以将用户从噩梦中唤醒,从而提高用户的睡眠质量。When the user has nightmares during sleep, there will be phenomena such as increased heart rate, muscle tension, and increased blood pressure. Therefore, the rest effect obtained by sleep during nightmares is far less than the rest effect brought by sleep without nightmares. Therefore, when it is determined that the user has a nightmare during sleep, the user can be woken up from the nightmare by outputting the above-mentioned target prompt information through the output device 130 , thereby improving the sleep quality of the user.

请参阅图2,图2为本申请实施例公开的另一种电子装置100的结构示意图。如图2所示,作为一种可选的实施方式,电子装置100还包括存储器140,存储器140可以与处理器120连接,从而处理器120可以将数据存储于存储器140,并且调用存储器140中存储的数据。Please refer to FIG. 2 . FIG. 2 is a schematic structural diagram of another electronic device 100 disclosed in an embodiment of the present application. As shown in FIG. 2 , as an optional implementation, the electronic device 100 also includes a memory 140, which can be connected to the processor 120, so that the processor 120 can store data in the memory 140, and call the data stored in the memory 140. The data.

在该实施方式中,存储器140,用于存储多于一个提示信息。处理器可以从存储器140中存储的多于一个提示信息中选择出目标提示信息。In this embodiment, the memory 140 is used to store more than one prompt information. The processor may select a target cue from more than one cue stored in the memory 140 .

具体地,处理器120可以根据脑电波传感器110获取到的脑电波信号,确定用户的睡眠深度。睡眠深度为用户陷入深睡眠的程度,用户陷入深睡眠的程度越高,唤醒用户的提示信息的强度需要相应增强。用户处于深睡眠状态的情况下,脑电图中δ波所占的比例较高,其出现的时间占总时间的50%以上,因而,可以通过用户的脑电波信号生成脑电图,对脑电图中δ波所占的比例进行分析,以确定用户是否处于深睡眠状态。除此之外,由于用户进入深睡眠状态后,血压、心率、呼吸、体温和代谢率均会逐渐下降,直至稳定在一个略低于清醒状态的水平,而在用户被唤醒时,上述生命体征会逐渐恢复到清醒状态的水平;因而,可以结合用户是否处于深睡眠状态,以及用户处于深睡眠状态的时间确定用户的睡眠深度,其中,用户处于深睡眠状态的时间越长,则睡眠深度越高。Specifically, the processor 120 may determine the sleep depth of the user according to the brain wave signal acquired by the brain wave sensor 110 . The sleep depth is the degree to which the user falls into a deep sleep, and the higher the degree of the user falls into a deep sleep, the intensity of the prompt information for waking up the user needs to be increased accordingly. When the user is in a state of deep sleep, the proportion of delta waves in the EEG is relatively high, and its appearance time accounts for more than 50% of the total time. Therefore, the EEG can be generated through the user's brain wave signal, and the brain wave is affected. The proportion of delta waves in the electrogram is analyzed to determine whether the user is in a deep sleep state. In addition, after the user enters the deep sleep state, the blood pressure, heart rate, respiration, body temperature and metabolic rate will gradually decrease until they are stabilized at a level slightly lower than the waking state. When the user is awakened, the above vital signs will gradually return to the level of the awake state; therefore, the user's sleep depth can be determined by combining whether the user is in a deep sleep state and the time the user is in the deep sleep state, wherein the longer the user is in the deep sleep state, the deeper the sleep depth high.

在该实施方式中,存储器140中存储的多个提示信息的强度各不相同。举例来说,若提示信息为音频提示信息,则各个提示信息的音量各不相同;若提示信息为对用户进行晃动,则各个提示信息对用户晃动的强度各部相同。处理器120根据用户的睡眠深度,从多个提示信息中选择出目标提示信息,其中,睡眠深度越高,目标提示信息的强度越强。由于用户的睡眠深度越高,唤醒的难度越大,因而通过选择符合用户的睡眠深度的目标提示信息,可以提高唤醒用户的成功率。In this embodiment, the strengths of the plurality of reminder messages stored in the memory 140 are different. For example, if the prompt information is audio prompt information, the volume of each prompt information is different; if the prompt information is to shake the user, the intensity of each prompt message to the user is the same. The processor 120 selects target prompt information from multiple prompt messages according to the user's sleep depth, wherein the higher the sleep depth, the stronger the intensity of the target prompt information. Because the higher the sleep depth of the user is, the more difficult it is to wake up. Therefore, the success rate of waking up the user can be improved by selecting the target prompt information conforming to the sleep depth of the user.

作为另一种可选的实施方式,存储器140中还存储有上述多于一个提示信息对应的平均唤醒时长。其中,平均唤醒时长可以在每次通过输出装置130唤醒用户时,统计此次唤醒用户所需的时间,并根据一段时间内采集到的数据进行均值计算而获得。As another optional implementation manner, the memory 140 also stores an average wake-up duration corresponding to the above-mentioned more than one prompt information. Wherein, the average wake-up duration can be obtained by counting the time required for waking up the user each time the user is woken up through the output device 130 , and performing mean calculation based on data collected within a period of time.

在该实施方式中,处理器120可以查询用户的健康记录,并根据健康记录确定用户的健康等级,之后根据用户的健康等级从存储器140存储的多于一个提示信息中选择出目标提示信息;其中,用户的健康等级越高,目标提示信息对应的平均唤醒时长越短。In this embodiment, the processor 120 may query the user's health record, and determine the user's health level according to the health record, and then select the target prompt information from more than one prompt information stored in the memory 140 according to the user's health level; wherein , the higher the health level of the user, the shorter the average wake-up time corresponding to the target prompt information.

其中,用户的健康记录可包括用户的体检结果、就诊病例等,其可以存储于存储器140之中,也可以存储于云服务器上,在电子装置100需要使用时,向云服务器发起请求信息来进行调用。处理器120可以根据健康记录反映的信息,对用户的健康程度进行分级,从而得到用户的健康等级。举例来说,用户的健康等级可分为:优、良、中、差四个等级,用户的健康等级越高,反映用户的健康程度越好,可以通过提示信息快速唤醒用户;而另一方面,若用户的健康程度较差,则采用平均唤醒时长较长的提示信息唤醒用户,平均唤醒时长较长的提示信息往往较为舒缓和轻微,可以避免用户的心跳和血压变化过快而对用户的身体健康造成威胁。Among them, the user's health record may include the user's physical examination results, medical records, etc., which may be stored in the memory 140, or stored on the cloud server. transfer. The processor 120 may grade the user's health level according to the information reflected in the health record, so as to obtain the user's health level. For example, the user's health level can be divided into four levels: excellent, good, medium, and poor. The higher the user's health level, the better the user's health level, and the user can be quickly awakened by prompt information; on the other hand, , if the user's health level is poor, the prompt information with a longer average wake-up time is used to wake the user up. Threat to health.

请参阅图3,图3为本申请实施例公开的另一种电子装置100的结构示意图。如图3所示,电子装置100还可以包括心跳传感器150和血压传感器160,其中,心跳传感器150和血压传感器160也可与处理器120连接,从而处理器120可以调用心跳传感器150和血压传感器160,从而采集用户的心跳信息和血压信息。Please refer to FIG. 3 . FIG. 3 is a schematic structural diagram of another electronic device 100 disclosed in an embodiment of the present application. As shown in FIG. 3 , the electronic device 100 can also include a heartbeat sensor 150 and a blood pressure sensor 160, wherein the heartbeat sensor 150 and the blood pressure sensor 160 can also be connected to the processor 120, so that the processor 120 can call the heartbeat sensor 150 and the blood pressure sensor 160 , so as to collect the user's heartbeat information and blood pressure information.

本申请实施例中,心跳传感器150,用于获取用户的心跳信息。In the embodiment of the present application, the heartbeat sensor 150 is used to obtain the user's heartbeat information.

血压传感器160,用于获取用户的血压信息。The blood pressure sensor 160 is used to acquire the user's blood pressure information.

处理器120,还用于根据脑电波信号生成用户的脑电图。The processor 120 is further configured to generate the user's EEG according to the brain wave signal.

在该实施方式中,在根据脑电波信号确定用户是否处于噩梦中方面,处理器120,具体用于:根据心跳信息、血压信息以及脑电图确定用户的心跳变快、血压升高,且脑电图的波形发生突变的情况下,确定用户处于噩梦中。In this embodiment, in terms of determining whether the user is in a nightmare according to the brainwave signal, the processor 120 is specifically configured to: determine the user's heartbeat becomes faster, blood pressure increases, and brain If the waveform of the electrogram changes suddenly, it is determined that the user is in a nightmare.

在该实施方式中,通过对用户的心跳、血压以及脑电图进行分析,从而确定用户是否处于噩梦中。其中,当用户的脑电图的波形的变化率超过阈值,即为用户的脑电图的波形发生突变。In this embodiment, it is determined whether the user is in a nightmare by analyzing the user's heartbeat, blood pressure, and EEG. Wherein, when the rate of change of the waveform of the EEG of the user exceeds a threshold, it means that the waveform of the EEG of the user undergoes a sudden change.

其中,需要说明的是,心跳传感器150以及血压传感器160,既可为电子装置100中包含的组件,也可为独立设置的设备或装置。在心跳传感器150以及血压传感器160与电子装置100分离设置的情况下,请参阅图4,图4为本申请实施例公开的一种电子装置与心跳传感器以及血压传感器的交互示意图。如图4所示,心跳传感器150获取用户的心跳信息,将心跳信息通过无线通信连接发送至电子装置100;血压传感器160获取用户的血压信息,将血压信息通过无线通信连接发送至电子装置100;电子装置100根据用户的心跳信息、血压信息以及脑电波信号确定用户是否处于噩梦中。Wherein, it should be noted that the heartbeat sensor 150 and the blood pressure sensor 160 can be components included in the electronic device 100 or can be independent devices or devices. In the case that the heartbeat sensor 150 and the blood pressure sensor 160 are arranged separately from the electronic device 100 , please refer to FIG. 4 . FIG. 4 is a schematic diagram of interaction between an electronic device, a heartbeat sensor and a blood pressure sensor disclosed in an embodiment of the present application. As shown in Figure 4, the heartbeat sensor 150 acquires the user's heartbeat information, and sends the heartbeat information to the electronic device 100 through a wireless communication connection; the blood pressure sensor 160 acquires the user's blood pressure information, and sends the blood pressure information to the electronic device 100 through a wireless communication connection; The electronic device 100 determines whether the user is in a nightmare according to the user's heartbeat information, blood pressure information, and brain wave signals.

作为一种可选的实施方式,存储器140还可以存储脑电图模板库;其中,脑电图模板库包括多于一个脑电图模板,所述多于一个脑电图模板均为用户处于噩梦中的情况下获得的脑电图。而处理器120,可以通过如下方式根据脑电波信号确定用户是否处于噩梦中:根据脑电波信号生成用户的脑电图;确定用户的脑电图中的波形特征周期;按照波形特征周期将用户的脑电图划分为多个分段脑电图;将多个分段脑电图中的每个分段脑电图与脑电图模板库中的脑电图模板进行比对,以确定分段脑电图与脑电图模板库中的任意一个脑电图模板是否匹配;确定与任意一个脑电图模板匹配的分段脑电图的数量占所有分段脑电图数量的比例;在该比例高于阈值的情况下,确定当前用户处于噩梦中。As an optional implementation manner, the memory 140 can also store an EEG template library; wherein, the EEG template library includes more than one EEG template, and the more than one EEG templates are the user's nightmare EEG obtained in the case of . The processor 120 can determine whether the user is in a nightmare according to the brain wave signal in the following manner: generate the user's EEG according to the brain wave signal; determine the waveform characteristic period in the user's EEG; The EEG is divided into multiple segmented EEGs; each segmented EEG in the multiple segmented EEGs is compared with the EEG template in the EEG template library to determine the segment Whether the EEG matches any EEG template in the EEG template library; determine the ratio of the number of segmented EEGs matching any EEG template to the number of all segmented EEGs; If the ratio is higher than the threshold, it is determined that the current user is in a nightmare.

举例来说,请参阅图5,图5为本申请实施例公开的一种脑电图的示意图;如图5所示,假设电子装置当前采集的脑电图包括100个波形特征周期,则可以将该当前的脑电图按照波形特征周期进行拆分,拆分为至少5个分段脑电图,分别为分段脑电图1、分段脑电图2、分段脑电图3、分段脑电图4、分段脑电图5,其中每个分段脑电图占据20个特征周期,具体的,分段脑电图1对应波形特征周期1-20,分段脑电图2对应波形特征周期21-40,分段脑电图3对应波形特征周期41-60,分段脑电图4对应波形特征周期61-80,分段脑电图5对应波形特征周期81-100,分别将每个分段脑电图与脑电图模板库进行比较,以确定每个分段脑电图是否与脑电图模板库中的任意一个脑电图模板匹配,具体的,分段脑电图1与脑电图模板a匹配,分段脑电图2与脑电图模板a匹配,分段脑电图3没有匹配的脑电图模板,分段脑电图4与脑电图模板a匹配、分段脑电图5与脑电图模板b匹配,则与任意一个脑电图模板匹配的分段脑电图的数量为4个,占比80%,超过预设阈值60%,因而确定当前用户处于噩梦中。For example, please refer to FIG. 5, which is a schematic diagram of an EEG disclosed in the embodiment of the present application; as shown in FIG. 5, assuming that the EEG currently collected by the electronic device includes 100 waveform characteristic periods, then Split the current EEG according to the waveform characteristic cycle, and split it into at least 5 segmented EEGs, namely segmented EEG 1, segmented EEG 2, segmented EEG 3, Segmented EEG 4, Segmented EEG 5, wherein each segmented EEG occupies 20 characteristic periods, specifically, segmented EEG 1 corresponds to waveform characteristic periods 1-20, segmented EEG 2 corresponds to the characteristic period of the waveform 21-40, the segmented EEG 3 corresponds to the characteristic period of the waveform 41-60, the segmented EEG 4 corresponds to the characteristic period of the waveform 61-80, and the segmented EEG 5 corresponds to the characteristic period of the waveform 81-100 , respectively compare each segmented EEG with the EEG template library to determine whether each segmented EEG matches any EEG template in the EEG template library, specifically, segment EEG 1 matches EEG template a, Segment EEG 2 matches EEG template a, Segment EEG 3 has no matching EEG template, Segment EEG 4 matches EEG Template a matches, segmented EEG 5 matches EEG template b, then the number of segmented EEGs matching any EEG template is 4, accounting for 80%, exceeding the preset threshold of 60% , thus determining that the current user is in a nightmare.

可见,本示例中,考虑到人脑波动性,电子装置基于用户当前的脑电图的波形特征周期,将该脑电图划分为多个分段脑电图,并针对每个分段脑电图进行模板比对,根据与脑电图模板匹配的比例来确定用户是否处于噩梦中,如此可以对因人脑的波动性而产生的异常脑电波信号对应的部分脑电图具有容错性,避免异常波动的部分脑电图影响匹配结果,有利于提高脑电图模板的匹配准确度,提高检测的精确度。It can be seen that in this example, considering the fluctuation of the human brain, the electronic device divides the EEG into multiple segmental EEGs based on the waveform characteristic period of the user's current EEG, and for each segmental EEG According to the template comparison of the image, it is determined whether the user is in a nightmare according to the matching ratio with the EEG template, so that the part of the EEG corresponding to the abnormal brain wave signal caused by the fluctuation of the human brain can be fault-tolerant and avoid Part of the EEG with abnormal fluctuations affects the matching result, which is beneficial to improve the matching accuracy of the EEG template and the detection accuracy.

请参阅图6,图6为本申请实施例公开的一种提示信息的输出方法的流程示意图。如图6所示,该方法可以应用于包括脑电波传感器、处理器以及输出装置的电子装置,该提示信息的输出方法可以包括如下步骤:Please refer to FIG. 6 . FIG. 6 is a schematic flowchart of a method for outputting prompt information disclosed in an embodiment of the present application. As shown in FIG. 6, the method can be applied to an electronic device including a brainwave sensor, a processor, and an output device, and the method for outputting prompt information may include the following steps:

601、在用户处于睡眠状态的情况下,控制脑电波传感器获取用户的脑电波信号。601. When the user is in a sleeping state, control the brain wave sensor to acquire the user's brain wave signal.

在人体中,大脑的神经元活动通过离子传导到大脑皮层,因而会产生微弱的电压变化;因此,在本申请实施例中,脑电波传感器具有至少一个导电电极,导电电极可以固定在用户的头皮上,从而感应到脑电波引起的微弱的电压变化。本申请实施例中,上述导电电极可为干电极、湿电极或侵入式电极等,具体采用何种导电电极,本申请实施例不做限定。In the human body, the neuron activity of the brain is conducted to the cerebral cortex through ions, thus generating weak voltage changes; therefore, in the embodiment of this application, the brain wave sensor has at least one conductive electrode, which can be fixed on the user's scalp , so as to sense the weak voltage changes caused by brain waves. In the embodiment of the present application, the above-mentioned conductive electrode may be a dry electrode, a wet electrode, or an intrusive electrode, and the specific conductive electrode used is not limited in the embodiment of the present application.

作为一种可选的实施方式,脑电波传感器还具有信号处理电路,从而当导电电极获取到原始电压信号之后,信号处理电路对原始电压信号进行差分放大,并滤除由肌电信号引入的干扰噪音,再进行模数转换后获得数字化的脑电波信号。该脑电波信号可以传输至处理器进行进一步地信号处理和分析,从而获知用户的疲劳程度、专注度、心理状态、是否处于噩梦中等情况。As an optional implementation, the brain wave sensor also has a signal processing circuit, so that after the conductive electrode acquires the original voltage signal, the signal processing circuit differentially amplifies the original voltage signal and filters out the interference introduced by the myoelectric signal Noise, after analog-to-digital conversion, the digitized brain wave signal is obtained. The brain wave signal can be transmitted to the processor for further signal processing and analysis, so as to know the user's fatigue degree, concentration, psychological state, whether it is in a nightmare, etc.

602、根据脑电波信号确定用户是否处于噩梦中。602. Determine whether the user is in a nightmare according to the brain wave signal.

当用户在睡眠中做噩梦时,会出现心跳频率上升、肌肉紧张、血压上升等现象,因此,做噩梦时的睡眠所获得的休息效果,远不及没有做噩梦的睡眠所带来的休息效果。因此,当确定用户在睡眠中做噩梦的情况下,通过电子装置输出目标提示信息,可以将用户从噩梦中唤醒,从而提高用户的睡眠质量。When the user has nightmares during sleep, there will be phenomena such as increased heart rate, muscle tension, and increased blood pressure. Therefore, the rest effect obtained by sleep during nightmares is far less than the rest effect brought by sleep without nightmares. Therefore, when it is determined that the user has a nightmare during sleep, the electronic device outputs target prompt information to wake the user from the nightmare, thereby improving the sleep quality of the user.

603、在用户处于噩梦中的情况下,控制输出装置输出目标提示信息;目标提示信息用于唤醒用户。603. When the user is in a nightmare, control the output device to output target prompt information; the target prompt information is used to wake up the user.

本申请实施例中,输出装置可为扬声器、低电压电击装置、物理传动装置等可以向用户输出听觉信息、触觉信息等的装置。相应地,当输出装置为扬声器时,目标提示信息为音频信息;当输出装置为低电压电击装置时,目标提示信息为低电压电流刺激信号;当输出装置为物理传动装置时,目标提示信息为轻触、推动或拍打等。In the embodiment of the present application, the output device may be a speaker, a low-voltage electric shock device, a physical transmission device, etc., which can output auditory information, tactile information, etc. to the user. Correspondingly, when the output device is a loudspeaker, the target prompt information is audio information; when the output device is a low-voltage electric shock device, the target prompt information is a low-voltage current stimulation signal; when the output device is a physical transmission device, the target prompt information is Touch, push or tap, etc.

由此可见,利用图6所描述的方法,可以对脑电波信号进行分析以确定用户是否处于噩梦中,若用户处于噩梦中,则输出目标提示信息将用户从噩梦中唤醒,进而提升用户的睡眠质量。It can be seen that using the method described in Figure 6, the brain wave signal can be analyzed to determine whether the user is in a nightmare, and if the user is in a nightmare, then output target prompt information to wake the user from the nightmare, thereby improving the user's sleep quality.

请参阅图7,图7为本申请实施例公开的一种提示信息的输出装置的结构功能框图,该提示信息的输出装置可以应用于具有脑电波传感器、处理器以及输出装置的电子装置,该提示信息的输出装置包括获取单元701、确定单元702以及输出单元703,其中,Please refer to FIG. 7. FIG. 7 is a structural and functional block diagram of an output device for prompt information disclosed in an embodiment of the present application. The output device for prompt information can be applied to an electronic device with a brainwave sensor, a processor, and an output device. The output device of prompt information includes an acquisition unit 701, a determination unit 702, and an output unit 703, wherein,

获取单元701,用于在用户处于睡眠状态的情况下,控制脑电波传感器获取用户的脑电波信号。The acquiring unit 701 is configured to control the brain wave sensor to acquire the user's brain wave signal when the user is in a sleeping state.

确定单元702,用于根据脑电波信号确定用户是否处于噩梦中。The determining unit 702 is configured to determine whether the user is in a nightmare according to the brain wave signal.

输出单元703,用于在用户处于噩梦中的情况下,控制输出装置输出目标提示信息;目标提示信息用于唤醒用户。The output unit 703 is configured to control the output device to output target prompt information when the user is in a nightmare; the target prompt information is used to wake up the user.

可以理解的是,提示信息的输出装置为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。It can be understood that, in order to realize the above-mentioned functions, the prompt information output device includes corresponding hardware structures and/or software modules for performing various functions. Those skilled in the art should easily realize that the present application can be implemented in the form of hardware or a combination of hardware and computer software in combination with the units and algorithm steps of each example described in the embodiments disclosed herein. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.

本申请实施例可以根据上述方法示例对提示信息的输出装置进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiment of the present application may divide the prompt information output device into functional units according to the above method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic, and is only a logical function division, and there may be another division manner in actual implementation.

作为一种可选的实施方式,获取单元701以及确定单元702可为中央处理器(Central Processing Unit,CPU),通用处理器,数字信号处理器(DigitalSignalProcessor,DSP),专用集成电路(Application-Specific Integrated Circuit,ASIC),现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。而输出单元703可为扬声器、低电压电击装置、物理传动装置等。As an optional implementation manner, the acquiring unit 701 and the determining unit 702 may be a central processing unit (Central Processing Unit, CPU), a general processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application-Specific Integrated Circuit, ASIC), Field Programmable Gate Array (Field Programmable Gate Array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The output unit 703 can be a speaker, a low-voltage electric shock device, a physical transmission device, and the like.

由此可见,利用图7所描述的提示信息的输出装置,可以对脑电波信号进行分析以确定用户是否处于噩梦中,若用户处于噩梦中,则输出目标提示信息将用户从噩梦中唤醒,进而提升用户的睡眠质量。It can be seen that, using the prompt information output device described in FIG. 7 , the brain wave signal can be analyzed to determine whether the user is in a nightmare, and if the user is in a nightmare, the target prompt information is output to wake the user from the nightmare, and then Improve the user's sleep quality.

请参阅图8,图8为本申请实施例公开的另一种电子装置800的结构示意图。电子装置800包括处理器801、存储器802、通信接口803以及一个或多个程序;该电子装置800还包括脑电波传感器804、输出装置805、心跳传感器806以及血压传感器807。其中,上述一个或多个程序被存储在存储器802中,并且被配置由处理器801执行,上述程序包括用于执行以下步骤的指令:Please refer to FIG. 8 . FIG. 8 is a schematic structural diagram of another electronic device 800 disclosed in an embodiment of the present application. The electronic device 800 includes a processor 801 , a memory 802 , a communication interface 803 and one or more programs; the electronic device 800 also includes a brainwave sensor 804 , an output device 805 , a heartbeat sensor 806 and a blood pressure sensor 807 . Wherein, the above-mentioned one or more programs are stored in the memory 802 and configured to be executed by the processor 801, the above-mentioned programs include instructions for performing the following steps:

在用户处于睡眠状态的情况下,控制所述脑电波传感器获取所述用户的脑电波信号;When the user is in a sleeping state, controlling the brain wave sensor to acquire the user's brain wave signal;

根据所述脑电波信号确定所述用户是否处于噩梦中;determining whether the user is in a nightmare according to the brainwave signal;

在所述用户处于噩梦中的情况下,控制所述输出装置输出目标提示信息;所述目标提示信息用于唤醒所述用户。When the user is in a nightmare, the output device is controlled to output target prompt information; the target prompt information is used to wake up the user.

作为一种可选的实施方式,上述程序还包括用于执行以下步骤的指令:As an optional implementation manner, the above program also includes instructions for performing the following steps:

根据所述脑电波信号确定所述用户的睡眠深度;其中,所述睡眠深度根据所述用户是否处于深睡眠状态,以及所述用户处于所述深睡眠状态的时间长度确定;若所述用户处于所述深睡眠状态,且处于所述深睡眠状态的时间越长,则所述睡眠深度越高;Determine the sleep depth of the user according to the brain wave signal; wherein, the sleep depth is determined according to whether the user is in a deep sleep state, and the length of time the user is in the deep sleep state; if the user is in The deep sleep state, and the longer the time in the deep sleep state, the higher the sleep depth;

根据所述睡眠深度从所述存储器中存储的多于一个提示信息中选择出所述目标提示信息;其中,所述睡眠深度越高,所述目标提示信息的强度越强。The target prompt information is selected from more than one prompt information stored in the memory according to the sleep depth; wherein, the higher the sleep depth, the stronger the intensity of the target prompt information.

作为一种可选的实施方式,上述程序还包括用于执行以下步骤的指令:As an optional implementation manner, the above program also includes instructions for performing the following steps:

查询所述用户的健康记录,根据所述健康记录确定所述用户的健康等级;Query the health record of the user, and determine the health level of the user according to the health record;

根据所述健康等级从多于一个提示信息中选择出所述目标提示信息;其中,所述健康等级越高,所述目标提示信息对应的平均唤醒时长越短;所述多于一个提示信息以及所述多于一个提示信息对应的平均唤醒时长存储于所述存储器。Select the target prompt information from more than one prompt information according to the health level; wherein, the higher the health level, the shorter the average wake-up time corresponding to the target prompt information; the more than one prompt information and The average wake-up duration corresponding to the more than one reminder information is stored in the memory.

作为一种可选的实施方式,上述程序还包括用于执行以下步骤的指令:As an optional implementation manner, the above program also includes instructions for performing the following steps:

控制所述心跳传感器获取所述用户的心跳信息;controlling the heartbeat sensor to obtain the user's heartbeat information;

控制所述血压传感器获取所述用户的血压信息;controlling the blood pressure sensor to obtain blood pressure information of the user;

根据所述脑电波信号生成所述用户的脑电图;generating an electroencephalogram of the user according to the electroencephalogram signal;

在根据所述脑电波信号确定所述用户是否处于噩梦方面,上述程序包括具体用于执行以下步骤的指令:In terms of determining whether the user is having a nightmare according to the brain wave signal, the above program includes instructions specifically for performing the following steps:

根据所述心跳信息、所述血压信息以及所述脑电图确定所述用户的心跳变快、血压升高,且所述脑电图的波形发生突变的情况下,确定所述用户处于噩梦中。According to the heartbeat information, the blood pressure information, and the EEG, it is determined that the user's heartbeat becomes faster and blood pressure rises, and the waveform of the EEG changes suddenly, it is determined that the user is in a nightmare .

作为一种可选的实施方式,在根据所述脑电波信号确定所述用户是否处于噩梦方面,上述程序包括具体用于执行以下步骤的指令:As an optional implementation manner, in terms of determining whether the user is having a nightmare according to the brain wave signal, the above program includes instructions specifically for performing the following steps:

根据所述脑电波信号生成所述用户的脑电图;generating an electroencephalogram of the user according to the electroencephalogram signal;

确定所述用户的脑电图中的波形特征周期;determining a characteristic period of a waveform in the EEG of the user;

按照所述波形特征周期将所述用户的脑电图划分为多个分段脑电图;dividing the user's EEG into a plurality of segmented EEGs according to the waveform characteristic period;

将所述多个分段脑电图中的每个分段脑电图与所述存储器中存储的脑电图模板库中的脑电图模板进行比对,以确定所述分段脑电图与所述脑电图模板库中的任意一个脑电图模板是否匹配;其中,所述脑电图模板库包括多于一个脑电图模板;所述多于一个脑电图模板均为所述用户处于噩梦中的情况下获得的脑电图;Comparing each segmented EEG in the plurality of segmented EEGs with the EEG template in the EEG template library stored in the memory to determine the segmented EEG Whether it matches any EEG template in the EEG template library; wherein, the EEG template library includes more than one EEG template; the more than one EEG template is the An EEG obtained while the user was in a nightmare situation;

确定与任意一个脑电图模板匹配的分段脑电图的数量占所有分段脑电图数量的比例;determining the ratio of the number of segmented EEGs matching any one of the EEG templates to the number of all segmented EEGs;

在所述比例高于阈值的情况下,确定当前所述用户处于噩梦中。If the ratio is higher than the threshold, it is determined that the user is currently in a nightmare.

由此可见,利用图8所描述的电子装置,可以对脑电波信号进行分析以确定用户是否处于噩梦中,若用户处于噩梦中,则输出目标提示信息将用户从噩梦中唤醒,进而提升用户的睡眠质量。It can be seen that, using the electronic device described in FIG. 8 , the brain wave signal can be analyzed to determine whether the user is in a nightmare. If the user is in a nightmare, the target prompt information will be output to wake the user up from the nightmare, thereby improving the user's sleep quality. Sleep quality.

请参阅图9,图9为本申请实施例公开的另一种电子装置900的结构示意图。如图9所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该电子装置可以为包括手机、平板电脑、PDA(Personal DigitalAssistant,个人数字助理)、POS(Pointof Sales,销售终端)、车载电脑等任意终端设备,以电子装置为手机为例:Please refer to FIG. 9 . FIG. 9 is a schematic structural diagram of another electronic device 900 disclosed in an embodiment of the present application. As shown in FIG. 9 , for ease of description, only the parts related to the embodiment of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present application. The electronic device can be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales, sales terminal), a vehicle-mounted computer, and the like, taking the electronic device as a mobile phone as an example:

图9示出的是与本申请实施例提供的电子装置相关的手机的部分结构的框图。参考图9,手机包括:存储器902、输入单元903、显示单元904、传感器905以及处理器908等部件。本领域技术人员可以理解,图9中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 9 is a block diagram showing a partial structure of a mobile phone related to the electronic device provided by the embodiment of the present application. Referring to FIG. 9 , the mobile phone includes: a memory 902 , an input unit 903 , a display unit 904 , a sensor 905 , a processor 908 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 9 does not constitute a limitation to the mobile phone, and may include more or less components than shown in the figure, or combine some components, or arrange different components.

下面结合图9对手机的各个构成部件进行具体的介绍:The following is a specific introduction to each component of the mobile phone in conjunction with Figure 9:

存储器902可用于存储软件程序以及模块,处理器908通过运行存储在存储器902的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器902可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器902可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。本申请实施例中,存储器902可以用于存储脑电图模板库;其中,所述脑电图模板库包括多于一个脑电图模板。The memory 902 can be used to store software programs and modules, and the processor 908 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 902 . The memory 902 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 902 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices. In this embodiment of the present application, the memory 902 may be used to store an EEG template library; wherein, the EEG template library includes more than one EEG template.

输入单元903可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元903可包括触控面板9031。触控面板9031,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板9031上或在触控面板9031附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板9031可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器908,并能接收处理器集合908发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板9031。The input unit 903 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile phone. Specifically, the input unit 903 may include a touch panel 9031 . The touch panel 9031, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 9031 or near the touch panel 9031). operation), and drive the corresponding connection device according to the preset program. Optionally, the touch panel 9031 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 908, and can receive and execute commands from the processor set 908. In addition, the touch panel 9031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave.

显示单元904可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元904可包括显示面板9041,可选的,可以采用液晶显示器(Liquid CrystalDisplay,LCD)、有机发光二极管(Organic Light-EmittingDiode,OLED)等形式来配置显示面板9041。进一步的,触控面板9031可覆盖显示面板9041,当触控面板9031检测到在其上或附近的触摸操作后,传送给处理器集合908以确定触摸事件的类型,随后处理器集合908根据触摸事件的类型在显示面板9041上提供相应的视觉输出。虽然在图9中,触控面板9031与显示面板9041是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板9031与显示面板9041集成而实现手机的输入和输出功能。The display unit 904 can be used to display information input by the user or provided to the user and various menus of the mobile phone. The display unit 904 may include a display panel 9041. Optionally, the display panel 9041 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like. Furthermore, the touch panel 9031 can cover the display panel 9041. When the touch panel 9031 detects a touch operation on or near it, it sends it to the processor set 908 to determine the type of the touch event, and then the processor set 908 according to the touch The type of event provides a corresponding visual output on the display panel 9041. Although in FIG. 9, the touch panel 9031 and the display panel 9041 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 9031 and the display panel 9041 can be integrated to form a mobile phone. Realize the input and output functions of the mobile phone.

手机还可包括至少一种传感器905,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板9041的亮度,接近传感器可在手机移动到耳边时,关闭显示面板9041和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。本申请实施例中,传感器905包括脑电波传感器9051,脑电波传感器9051用于获取用户的脑电波信号。The handset may also include at least one sensor 905, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 9041 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 9041 and/or or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the application of mobile phone posture (such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. repeat. In the embodiment of the present application, the sensor 905 includes a brain wave sensor 9051, and the brain wave sensor 9051 is used to acquire the user's brain wave signal.

处理器908是手机的控制中心,处理器908利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器902内的软件程序和/或模块,以及调用存储在存储器902内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器908可包括一个或多个处理单元;优选的,处理器908可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器908中。本申请实施例中,处理器908可以根据脑电波信号确定用户是否处于噩梦中。The processor 908 is the control center of the mobile phone. The processor 908 uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and/or modules stored in the memory 902, and calling the Data, perform various functions of the mobile phone and process data, so as to monitor the mobile phone as a whole. Optionally, the processor 908 may include one or more processing units; preferably, the processor 908 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 908 . In the embodiment of the present application, the processor 908 may determine whether the user is in a nightmare according to the brain wave signal.

尽管未示出,手机还可以包括射频电路、无线高保真(Wireless Fidelity,WiFi)模块、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may also include a radio frequency circuit, a wireless high-fidelity (Wireless Fidelity, WiFi) module, a bluetooth module, etc., which will not be repeated here.

前述图6所示的实施例中,各步骤方法流程可以基于该手机的结构实现。In the aforementioned embodiment shown in FIG. 6 , the method flow of each step can be realized based on the structure of the mobile phone.

前述图7所示的实施例中,各单元功能可以基于该手机的结构实现。In the aforementioned embodiment shown in FIG. 7 , the functions of each unit can be realized based on the structure of the mobile phone.

由此可见,利用图8所描述的电子装置,可以对脑电波信号进行分析以确定用户是否处于噩梦中,若用户处于噩梦中,则输出目标提示信息将用户从噩梦中唤醒,进而提升用户的睡眠质量。It can be seen that, using the electronic device described in FIG. 8 , the brain wave signal can be analyzed to determine whether the user is in a nightmare. If the user is in a nightmare, the target prompt information will be output to wake the user up from the nightmare, thereby improving the user's sleep quality. Sleep quality.

本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤,上述计算机包括移动终端。An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables the computer to execute some or all of the steps of any method described in the above method embodiments , the above computer includes a mobile terminal.

本申请实施例还提供一种计算机程序产品,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,上述计算机包括移动终端。An embodiment of the present application also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable the computer to execute any one of the methods described in the above method embodiments. Some or all steps of the method. The computer program product may be a software installation package, and the above-mentioned computer includes a mobile terminal.

需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Depending on the application, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by this application.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the above units is only a logical function division. In actual implementation, there may be other division methods, for example, multiple units or components can be combined or integrated. to another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical or other forms.

上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例上述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the above-mentioned integrated units are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or part of the contribution 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 memory. Several instructions are included to make a computer device (which may be a personal computer, server or network device, etc.) execute all or part of the steps of the above-mentioned methods in various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash disk , Read-only memory (English: Read-Only Memory, abbreviated: ROM), random access device (English: Random Access Memory, abbreviated: RAM), magnetic disk or optical disk, etc.

以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application have been introduced in detail above, and specific examples have been used in this paper to illustrate the principles and implementation methods of the present application. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application; meanwhile, for Those skilled in the art will have changes in specific implementation methods and application scopes based on the ideas of the present application. In summary, the contents of this specification should not be construed as limiting the present application.

Claims (13)

Translated fromChinese
1.一种电子装置,其特征在于,所述电子装置包括脑电波传感器、处理器以及输出装置,其中,1. An electronic device, characterized in that the electronic device comprises a brain wave sensor, a processor and an output device, wherein,所述脑电波传感器,用于在用户处于睡眠状态的情况下,获取所述用户的脑电波信号;The brain wave sensor is used to acquire the user's brain wave signal when the user is in a sleep state;所述处理器,用于根据所述脑电波信号确定所述用户是否处于噩梦中;The processor is configured to determine whether the user is in a nightmare according to the brainwave signal;所述输出装置,用于在所述用户处于噩梦中的情况下,输出目标提示信息;所述目标提示信息用于唤醒所述用户。The output device is configured to output target prompt information when the user is in a nightmare; the target prompt information is used to wake up the user.2.根据权利要求1所述的电子装置,其特征在于,所述电子装置还包括存储器;2. The electronic device according to claim 1, further comprising a memory;所述存储器,用于存储多于一个提示信息;The memory is used to store more than one prompt information;所述处理器,还用于根据所述脑电波信号确定所述用户的睡眠深度;其中,所述睡眠深度根据所述用户是否处于深睡眠状态,以及所述用户处于所述深睡眠状态的时间长度确定;若所述用户处于所述深睡眠状态,且处于所述深睡眠状态的时间越长,则所述睡眠深度越高;The processor is further configured to determine the user's sleep depth according to the brainwave signal; wherein, the sleep depth is based on whether the user is in a deep sleep state and the time the user is in the deep sleep state The length is determined; if the user is in the deep sleep state, and the longer the time in the deep sleep state, the higher the sleep depth;所述处理器,还用于根据所述睡眠深度从所述多于一个提示信息中选择出所述目标提示信息;其中,所述睡眠深度越高,所述目标提示信息的强度越强。The processor is further configured to select the target prompt information from the more than one prompt information according to the sleep depth; wherein, the higher the sleep depth, the stronger the intensity of the target prompt information.3.根据权利要求1所述的电子装置,其特征在于,所述电子装置还包括存储器;3. The electronic device according to claim 1, further comprising a memory;所述存储器,用于存储多于一个提示信息以及所述多于一个提示信息对应的平均唤醒时长;The memory is used to store more than one reminder information and the average wake-up time corresponding to the more than one reminder information;所述处理器,还用于查询所述用户的健康记录,根据所述健康记录确定所述用户的健康等级;The processor is further configured to query the user's health record, and determine the user's health level according to the health record;所述处理器,还用于根据所述健康等级从所述多于一个提示信息中选择出所述目标提示信息;其中,所述健康等级越高,所述目标提示信息对应的所述平均唤醒时长越短。The processor is further configured to select the target prompt information from the more than one prompt information according to the health level; wherein, the higher the health level, the higher the average wake-up time corresponding to the target prompt information The shorter the duration.4.根据权利要求1~3中任意一项所述的电子装置,其特征在于,所述电子装置还包括心跳传感器以及血压传感器;4. The electronic device according to any one of claims 1-3, wherein the electronic device further comprises a heartbeat sensor and a blood pressure sensor;所述心跳传感器,用于获取所述用户的心跳信息;The heartbeat sensor is used to obtain the user's heartbeat information;所述血压传感器,用于获取所述用户的血压信息;The blood pressure sensor is used to acquire blood pressure information of the user;所述处理器,还用于根据所述脑电波信号生成所述用户的脑电图;The processor is further configured to generate the user's EEG according to the brain wave signal;在所述根据所述脑电波信号确定所述用户是否处于噩梦中方面,所述处理器,具体用于:In terms of determining whether the user is in a nightmare according to the brain wave signal, the processor is specifically configured to:根据所述心跳信息、所述血压信息以及所述脑电图确定所述用户的心跳变快、血压升高,且所述脑电图的波形发生突变的情况下,确定所述用户处于噩梦中。According to the heartbeat information, the blood pressure information, and the EEG, it is determined that the user's heartbeat becomes faster and blood pressure rises, and the waveform of the EEG changes suddenly, it is determined that the user is in a nightmare .5.根据权利要求2或3所述的电子装置,其特征在于,5. The electronic device according to claim 2 or 3, characterized in that,所述存储器,还用于存储脑电图模板库;其中,所述脑电图模板库包括多于一个脑电图模板;所述多于一个脑电图模板均为所述用户处于噩梦中的情况下获得的脑电图;The memory is also used to store an EEG template library; wherein, the EEG template library includes more than one EEG template; and the more than one EEG template is the user's nightmare EEG obtained under the circumstances;在所述根据所述脑电波信号确定所述用户是否处于噩梦中方面,所述处理器,具体用于:In terms of determining whether the user is in a nightmare according to the brain wave signal, the processor is specifically configured to:根据所述脑电波信号生成所述用户的脑电图;generating an electroencephalogram of the user according to the electroencephalogram signal;确定所述用户的脑电图中的波形特征周期;determining a characteristic period of a waveform in the EEG of the user;按照所述波形特征周期将所述用户的脑电图划分为多个分段脑电图;dividing the user's EEG into a plurality of segmented EEGs according to the waveform characteristic period;将所述多个分段脑电图中的每个分段脑电图与所述脑电图模板库中的脑电图模板进行比对,以确定所述分段脑电图与所述脑电图模板库中的任意一个脑电图模板是否匹配;Comparing each segmented EEG in the plurality of segmented EEGs with the EEG template in the EEG template library, to determine the relationship between the segmented EEG and the brain Whether any EEG template in the EEG template library matches;确定与任意一个脑电图模板匹配的分段脑电图的数量占所有分段脑电图数量的比例;determining the ratio of the number of segmented EEGs matching any one of the EEG templates to the number of all segmented EEGs;在所述比例高于阈值的情况下,确定当前所述用户处于噩梦中。If the ratio is higher than the threshold, it is determined that the user is currently in a nightmare.6.一种提示信息的输出方法,其特征在于,应用于包括脑电波传感器、处理器以及输出装置的电子装置,所述方法包括:6. A method for outputting prompt information, characterized in that it is applied to an electronic device comprising an electroencephalogram sensor, a processor and an output device, the method comprising:在用户处于睡眠状态的情况下,控制所述脑电波传感器获取所述用户的脑电波信号;When the user is in a sleeping state, controlling the brain wave sensor to acquire the user's brain wave signal;根据所述脑电波信号确定所述用户是否处于噩梦中;determining whether the user is in a nightmare according to the brainwave signal;在所述用户处于噩梦中的情况下,控制所述输出装置输出目标提示信息;所述目标提示信息用于唤醒所述用户。When the user is in a nightmare, the output device is controlled to output target prompt information; the target prompt information is used to wake up the user.7.根据权利要求6所述的方法,其特征在于,所述电子装置还包括存储器;7. The method according to claim 6, wherein the electronic device further comprises a memory;在控制所述输出装置输出所述目标提示信息之前,所述方法还包括:Before controlling the output device to output the target prompt information, the method further includes:根据所述脑电波信号确定所述用户的睡眠深度;其中,所述睡眠深度根据所述用户是否处于深睡眠状态,以及所述用户处于所述深睡眠状态的时间长度确定;若所述用户处于所述深睡眠状态,且处于所述深睡眠状态的时间越长,则所述睡眠深度越高;Determine the sleep depth of the user according to the brain wave signal; wherein, the sleep depth is determined according to whether the user is in a deep sleep state, and the length of time the user is in the deep sleep state; if the user is in The deep sleep state, and the longer the time in the deep sleep state, the higher the sleep depth;根据所述睡眠深度从所述存储器中存储的多于一个提示信息中选择出所述目标提示信息;其中,所述睡眠深度越高,所述目标提示信息的强度越强。The target prompt information is selected from more than one prompt information stored in the memory according to the sleep depth; wherein, the higher the sleep depth, the stronger the intensity of the target prompt information.8.根据权利要求6所述的方法,其特征在于,所述电子装置还包括存储器;8. The method according to claim 6, wherein the electronic device further comprises a memory;所述方法还包括:The method also includes:查询所述用户的健康记录,根据所述健康记录确定所述用户的健康等级;Query the health record of the user, and determine the health level of the user according to the health record;根据所述健康等级从多于一个提示信息中选择出所述目标提示信息;其中,所述健康等级越高,所述目标提示信息对应的平均唤醒时长越短;所述多于一个提示信息以及所述多于一个提示信息对应的平均唤醒时长存储于所述存储器。Select the target prompt information from more than one prompt information according to the health level; wherein, the higher the health level, the shorter the average wake-up time corresponding to the target prompt information; the more than one prompt information and The average wake-up duration corresponding to the more than one reminder information is stored in the memory.9.根据权利要求6~8中任意一项所述的方法,其特征在于,所述电子装置还包括心跳传感器以及血压传感器;9. The method according to any one of claims 6-8, wherein the electronic device further includes a heartbeat sensor and a blood pressure sensor;所述方法还包括:The method also includes:控制所述心跳传感器获取所述用户的心跳信息;controlling the heartbeat sensor to obtain the user's heartbeat information;控制所述血压传感器获取所述用户的血压信息;controlling the blood pressure sensor to obtain blood pressure information of the user;根据所述脑电波信号生成所述用户的脑电图;generating an electroencephalogram of the user according to the electroencephalogram signal;所述根据所述脑电波信号确定所述用户是否处于噩梦中,包括:The determining whether the user is in a nightmare according to the brain wave signal includes:根据所述心跳信息、所述血压信息以及所述脑电图确定所述用户的心跳变快、血压升高,且所述脑电图的波形发生突变的情况下,确定所述用户处于噩梦中。According to the heartbeat information, the blood pressure information, and the EEG, it is determined that the user's heartbeat becomes faster and blood pressure rises, and the waveform of the EEG changes suddenly, it is determined that the user is in a nightmare .10.根据权利要求7或8所述的方法,其特征在于,所述根据所述脑电波信号确定所述用户是否处于噩梦中,包括:10. The method according to claim 7 or 8, wherein the determining whether the user is in a nightmare according to the brain wave signal comprises:根据所述脑电波信号生成所述用户的脑电图;generating an electroencephalogram of the user according to the electroencephalogram signal;确定所述用户的脑电图中的波形特征周期;determining a characteristic period of a waveform in the EEG of the user;按照所述波形特征周期将所述用户的脑电图划分为多个分段脑电图;dividing the user's EEG into a plurality of segmented EEGs according to the waveform characteristic period;将所述多个分段脑电图中的每个分段脑电图与所述存储器中存储的脑电图模板库中的脑电图模板进行比对,以确定所述分段脑电图与所述脑电图模板库中的任意一个脑电图模板是否匹配;其中,所述脑电图模板库包括多于一个脑电图模板;所述多于一个脑电图模板均为所述用户处于噩梦中的情况下获得的脑电图;Comparing each segmented EEG in the plurality of segmented EEGs with the EEG template in the EEG template library stored in the memory to determine the segmented EEG Whether it matches any EEG template in the EEG template library; wherein, the EEG template library includes more than one EEG template; the more than one EEG template is the An EEG obtained while the user was in a nightmare situation;确定与任意一个脑电图模板匹配的分段脑电图的数量占所有分段脑电图数量的比例;determining the ratio of the number of segmented EEGs matching any one of the EEG templates to the number of all segmented EEGs;在所述比例高于阈值的情况下,确定当前所述用户处于噩梦中。If the ratio is higher than the threshold, it is determined that the user is currently in a nightmare.11.一种提示信息的输出装置,其特征在于,应用于包括脑电波传感器、处理器以及输出装置的电子装置,所述提示信息的输出装置包括获取单元、确定单元以及输出单元,其中,11. An output device for prompt information, characterized in that it is applied to an electronic device including an electroencephalogram sensor, a processor, and an output device, and the output device for the prompt information includes an acquisition unit, a determination unit, and an output unit, wherein,所述获取单元,用于在用户处于睡眠状态的情况下,控制所述脑电波传感器获取所述用户的脑电波信号;The acquiring unit is configured to control the brainwave sensor to acquire the user's brainwave signal when the user is in a sleep state;所述确定单元,用于根据所述脑电波信号确定所述用户是否处于噩梦中;The determining unit is configured to determine whether the user is in a nightmare according to the brainwave signal;所述输出单元,用于在所述用户处于噩梦中的情况下,控制所述输出装置输出目标提示信息;所述目标提示信息用于唤醒所述用户。The output unit is configured to control the output device to output target prompt information when the user is in a nightmare; the target prompt information is used to wake up the user.12.一种电子装置,其特征在于,包括处理器、存储器、通信接口,以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行如权利要求6-10任一项所述的方法中的步骤的指令。12. An electronic device, comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured by the processor Execution, the program includes instructions for executing the steps in the method according to any one of claims 6-10.13.一种计算机可读存储介质,其特征在于,存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求6-10任一项所述的方法。13. A computer-readable storage medium, characterized by storing a computer program for electronic data exchange, wherein the computer program causes a computer to execute the method according to any one of claims 6-10.
CN201810257340.0A2018-03-262018-03-26 Electronic device, method for outputting prompt information, and related productsExpired - Fee RelatedCN108837271B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201810257340.0ACN108837271B (en)2018-03-262018-03-26 Electronic device, method for outputting prompt information, and related products

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201810257340.0ACN108837271B (en)2018-03-262018-03-26 Electronic device, method for outputting prompt information, and related products

Publications (2)

Publication NumberPublication Date
CN108837271Atrue CN108837271A (en)2018-11-20
CN108837271B CN108837271B (en)2021-04-16

Family

ID=64211852

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201810257340.0AExpired - Fee RelatedCN108837271B (en)2018-03-262018-03-26 Electronic device, method for outputting prompt information, and related products

Country Status (1)

CountryLink
CN (1)CN108837271B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111671396A (en)*2020-06-112020-09-18北京脑陆科技有限公司Sleep dream feedback method based on EEG signal
TWI740320B (en)*2019-12-232021-09-21聚眾聯合科技股份有限公司Low voltage control system, low voltage protection method for an electronic device and a computer program product thereof

Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
DE19647019C2 (en)*1996-11-141999-07-08Heinz Dr Hornung Method and device for achieving a lucid dream state
CN105078436A (en)*2015-09-112015-11-25上海卓易科技股份有限公司Sleep monitoring system and method capable of preventing nightmare
WO2016165075A1 (en)*2015-04-142016-10-20华为技术有限公司Method, device and terminal equipment for reminding users
CN106214129A (en)*2016-08-032016-12-14北京京东尚科信息技术有限公司Terminate the method for poor quality sleep, equipment, sleep server and intelligence and dress terminal
CN106730232A (en)*2016-12-092017-05-31山东瀚岳智能科技股份有限公司A kind of intelligent awakening method and system
CN107773831A (en)*2017-11-272018-03-09吴伟峰A kind of nightmare wakes up system
CN107812297A (en)*2017-10-102018-03-20中山大学A kind of Intelligent pillow with bad dream detection, guiding and arousal function

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
DE19647019C2 (en)*1996-11-141999-07-08Heinz Dr Hornung Method and device for achieving a lucid dream state
WO2016165075A1 (en)*2015-04-142016-10-20华为技术有限公司Method, device and terminal equipment for reminding users
CN105078436A (en)*2015-09-112015-11-25上海卓易科技股份有限公司Sleep monitoring system and method capable of preventing nightmare
CN106214129A (en)*2016-08-032016-12-14北京京东尚科信息技术有限公司Terminate the method for poor quality sleep, equipment, sleep server and intelligence and dress terminal
CN106730232A (en)*2016-12-092017-05-31山东瀚岳智能科技股份有限公司A kind of intelligent awakening method and system
CN107812297A (en)*2017-10-102018-03-20中山大学A kind of Intelligent pillow with bad dream detection, guiding and arousal function
CN107773831A (en)*2017-11-272018-03-09吴伟峰A kind of nightmare wakes up system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
何成: "《医学神经生物学》", 28 February 2014*
许彦来: "《现代家庭疾病防治手册 失眠自助防治方案》", 30 June 2015*

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
TWI740320B (en)*2019-12-232021-09-21聚眾聯合科技股份有限公司Low voltage control system, low voltage protection method for an electronic device and a computer program product thereof
CN111671396A (en)*2020-06-112020-09-18北京脑陆科技有限公司Sleep dream feedback method based on EEG signal

Also Published As

Publication numberPublication date
CN108837271B (en)2021-04-16

Similar Documents

PublicationPublication DateTitle
US10366778B2 (en)Method and device for processing content based on bio-signals
CN105393193B (en)Wearable device multi-mode system
US10123735B2 (en)Electronic device for determining sleep state and method of controlling same
CN108334202B (en)Wallpaper updating method and related product
CN108683968A (en) Display control method and related products
CN108874130A (en)Control method for playing back and Related product
CN110221684A (en)Apparatus control method, system, electronic device and computer readable storage medium
CN108769850A (en) Device control method and related products
WO2015081558A1 (en)Method for controlling terminal device, and wearable electronic device
CN104102348A (en)Control system and method of electronic device
CN108348157A (en)Utilize the heart rate detection of multipurpose capacitive touch sensors
CN108418962B (en)Information response method based on brain wave and related product
CN117355353A (en)Electronic device providing user interface according to sleep state and operating method thereof
CN115581466A (en) ECG detection method, device, wearable device and storage medium
CN108304076B (en)Electronic device, video playing application management method and related product
CN108670275A (en)Signal processing method and related product
CN108837271A (en)The output method and Related product of electronic device, prompt information
CN108418959A (en)Electronic device, method for outputting prompt information and related product
CN108334200B (en) Electronic equipment control method and related products
CN108594993B (en) Electronic device, audio playback method and related products
CN108491074A (en)Electronic device, exercising support method and Related product
CN108399085B (en)Electronic device, application management method and related product
CN108680181A (en)Wireless headset, step-recording method and Related product based on headset detection
CN108594992B (en) Electronic equipment, application control method and related products
US20170277327A1 (en)Method and terminal for detecting grip strength

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
CB02Change of applicant information

Address after:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02Change of applicant information
GR01Patent grant
GR01Patent grant
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20210416

CF01Termination of patent right due to non-payment of annual fee

[8]ページ先頭

©2009-2025 Movatter.jp