[go: up one dir, main page]

CN110362184A - A kind of method and wearable device of controlling electronic devices - Google Patents

A kind of method and wearable device of controlling electronic devices Download PDF

Info

Publication number
CN110362184A
CN110362184A CN201910606419.4A CN201910606419A CN110362184A CN 110362184 A CN110362184 A CN 110362184A CN 201910606419 A CN201910606419 A CN 201910606419A CN 110362184 A CN110362184 A CN 110362184A
Authority
CN
China
Prior art keywords
state
user
electronic device
falling asleep
physiological characteristic
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.)
Pending
Application number
CN201910606419.4A
Other languages
Chinese (zh)
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.)
WeBank Co Ltd
Original Assignee
WeBank Co 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 WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN201910606419.4A priority Critical patent/CN110362184A/en
Publication of CN110362184A publication Critical patent/CN110362184A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/001Monitoring arrangements; Testing arrangements for loudspeakers

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a kind of method of controlling electronic devices and wearable devices, it is related to field of artificial intelligence, this method comprises: using time gathered in advance and physiological characteristic parameter as training sample, acquisition sleep judgment models are trained by the way of supervised learning, therefore after wearable device acquisition current time and the current physiological characteristic parameter of user, the current hypnagogic state of user can be determined using sleep judgment models.When the hypnagogic state of user is hypnagogic state, and the current operating status of electronic equipment is open state, shutdown signal is sent to electronic equipment and so that making electronic equipment not influences user's sleep, while saving electric energy so that electronic equipment switches to closed state.

Description

一种控制电子设备的方法及可穿戴设备A method for controlling an electronic device and a wearable device

技术领域technical field

本发明实施例涉及人工智能技术领域,尤其涉及一种控制电子设备的方法及可穿戴设备。The embodiments of the present invention relate to the technical field of artificial intelligence, and in particular to a method for controlling an electronic device and a wearable device.

背景技术Background technique

随着计算机技术的发展,各类电子设备已经成为人们日常生活不可或缺的一部分。在生活中,有很多人喜欢戴着耳机听音乐睡觉,或用音箱播放轻柔的音乐睡觉,睡着后音乐一直没关。有些人看电视过程中睡着,但电视一直没有关闭,还有些人忘记关灯就睡着,这些电子设备在用户睡着后一直处于启动状态不仅影响用户的睡眠质量,同时浪费电能。With the development of computer technology, various electronic devices have become an indispensable part of people's daily life. In life, many people like to sleep while listening to music with headphones, or play soft music with speakers to sleep, and the music remains on after falling asleep. Some people fall asleep while watching TV, but the TV has not been turned off, and some people forget to turn off the lights and fall asleep. These electronic devices are always on after the user falls asleep, which not only affects the user's sleep quality, but also wastes electricity.

发明内容Contents of the invention

由于一些电子设备在用户睡着后一直处于启动状态不仅影响用户的睡眠质量,同时浪费电能的问题,本发明实施例提供了一种控制电子设备的方法及可穿戴设备。Since some electronic devices are always on after the user falls asleep, which not only affects the sleep quality of the user, but also wastes electric energy, the embodiments of the present invention provide a method for controlling an electronic device and a wearable device.

一方面,本发明实施例提供了一种控制电子设备的方法,包括:In one aspect, an embodiment of the present invention provides a method for controlling an electronic device, including:

获取当前时间和用户当前的生理特征参数;Obtain the current time and the user's current physiological characteristic parameters;

将所述当前时间和所述生理特征参数输入睡眠判断模型,确定所述用户的入睡状态,所述睡眠判断模型是以预先采集的时间和生理特征参数为训练样本,采用监督学习的方式进行训练获得的模型;Inputting the current time and the physiological characteristic parameters into a sleep judgment model to determine the user's falling asleep state, the sleep judgment model uses pre-collected time and physiological characteristic parameters as training samples, and uses supervised learning to train the obtained model;

根据所述用户的入睡状态控制电子设备的运行状态。The operating state of the electronic device is controlled according to the sleeping state of the user.

可选地,所述将所述当前时间和所述生理特征参数输入睡眠判断模型,确定所述用户的入睡状态,包括:Optionally, the inputting the current time and the physiological characteristic parameters into a sleep judgment model to determine the user's falling asleep state includes:

在所述当前时间位于时间区间内,且所述生理特征参数位于数值范围内时,确定所述用户的入睡状态为已入睡状态,所述时间区间和所述数值区间是所述睡眠判断模型生成的;When the current time is within a time interval and the physiological characteristic parameter is within a numerical range, it is determined that the user's falling asleep state is a falling asleep state, and the time interval and the numerical interval are generated by the sleep judgment model of;

在所述当前时间没有位于所述时间区间内,或所述生理特征参数没有位于所述数值范围内时,确定所述用户的入睡状态为未入睡状态。When the current time is not within the time interval, or the physiological characteristic parameter is not within the value range, it is determined that the falling asleep state of the user is not falling asleep.

可选地,所述根据所述用户的入睡状态控制电子设备的运行状态,包括:Optionally, the controlling the operating state of the electronic device according to the sleeping state of the user includes:

在所述用户的入睡状态为已入睡状态,所述电子设备当前的运行状态为开启状态时,发送关闭信号至所述电子设备,以使所述电子设备切换至关闭状态;When the falling asleep state of the user is the falling asleep state and the current operating state of the electronic device is the on state, sending a shutdown signal to the electronic device so that the electronic device is switched to the off state;

在所述用户的入睡状态为未入睡状态,所述电子设备当前的运行状态为开启状态时,不发送关闭信号至所述电子设备,以使所述电子设备保持开启状态。When the sleeping state of the user is not falling asleep and the current operating state of the electronic device is in the on state, no shutdown signal is sent to the electronic device so that the electronic device remains in the on state.

可选地,采用以下方式更新所述睡眠判断模型:Optionally, the sleep judgment model is updated in the following manner:

采集用户反馈的判断结果更新训练样本;Collect the judgment results of user feedback to update the training samples;

基于更新后的训练样本重新训练,获得更新后的睡眠判断模型。The updated sleep judgment model is obtained by retraining based on the updated training samples.

可选地,所述电子设备包括多媒体设备。Optionally, the electronic device includes a multimedia device.

一方面,本发明实施例提供了一种可穿戴设备,包括:On the one hand, an embodiment of the present invention provides a wearable device, including:

获取模块,用于获取当前时间和用户当前的生理特征参数;An acquisition module, configured to acquire the current time and the current physiological characteristic parameters of the user;

处理模块,用于将所述当前时间和所述生理特征参数输入睡眠判断模型,确定所述用户的入睡状态,所述睡眠判断模型是以预先采集的时间和生理特征参数为训练样本,采用监督学习的方式进行训练获得的模型;A processing module, configured to input the current time and the physiological characteristic parameters into a sleep judgment model to determine the state of falling asleep of the user. The sleep judgment model uses pre-collected time and physiological characteristic parameters as training samples and adopts supervision The model obtained by training in the way of learning;

控制模块,用于根据所述用户的入睡状态控制电子设备的运行状态。A control module, configured to control the operating state of the electronic device according to the sleeping state of the user.

可选地,所述处理模块具体用于:Optionally, the processing module is specifically configured to:

在所述当前时间位于时间区间内,且所述生理特征参数位于数值范围内时,确定所述用户的入睡状态为已入睡状态,所述时间区间和所述数值区间是所述睡眠判断模型生成的;When the current time is within a time interval and the physiological characteristic parameter is within a numerical range, it is determined that the user's falling asleep state is a falling asleep state, and the time interval and the numerical interval are generated by the sleep judgment model of;

在所述当前时间没有位于所述时间区间内,或所述生理特征参数没有位于所述数值范围内时,确定所述用户的入睡状态为未入睡状态。When the current time is not within the time interval, or the physiological characteristic parameter is not within the value range, it is determined that the falling asleep state of the user is not falling asleep.

可选地,所述控制模块具体用于:Optionally, the control module is specifically used for:

在所述用户的入睡状态为已入睡状态,所述电子设备当前的运行状态为开启状态时,发送关闭信号至所述电子设备,以使所述电子设备切换至关闭状态;When the falling asleep state of the user is the falling asleep state and the current operating state of the electronic device is the on state, sending a shutdown signal to the electronic device so that the electronic device is switched to the off state;

在所述用户的入睡状态为未入睡状态,所述电子设备当前的运行状态为开启状态时,不发送关闭信号至所述电子设备,以使所述电子设备保持开启状态。When the sleeping state of the user is not falling asleep and the current operating state of the electronic device is in the on state, no shutdown signal is sent to the electronic device so that the electronic device remains in the on state.

可选地,还包括更新模块;Optionally, an update module is also included;

所述更新模块具体用于:The update module is specifically used for:

采集用户反馈的判断结果更新训练样本;Collect the judgment results of user feedback to update the training samples;

基于更新后的训练样本重新训练,获得更新后的睡眠判断模型。The updated sleep judgment model is obtained by retraining based on the updated training samples.

可选地,所述电子设备包括多媒体设备。Optionally, the electronic device includes a multimedia device.

一方面,本发明实施例提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现控制电子设备的方法的步骤。On the one hand, an embodiment of the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and operable on the processor, and the method for controlling an electronic device is implemented when the processor executes the program A step of.

一方面,本发明实施例提供了一种计算机可读存储介质,其存储有可由计算机设备执行的计算机程序,当所述程序在计算机设备上运行时,使得所述计算机设备执行控制电子设备的方法的步骤。On the one hand, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program executable by a computer device, and when the program is run on the computer device, the computer device executes a method for controlling an electronic device A step of.

本发明实施例中,以预先采集的时间和生理特征参数为训练样本,采用监督学习的方式进行训练获得睡眠判断模型,故可穿戴设备采集当前时间和用户当前的生理特征参数后,采用睡眠判断模型可以确定用户当前的入睡状态,然后根据用户的入睡状态控制电子设备的运行状态,使电子设备的运行状态与用户的入睡状态匹配,从而使电子设备不影响用户睡眠,同时节约电能。In the embodiment of the present invention, the pre-collected time and physiological characteristic parameters are used as training samples, and the supervised learning method is used to train to obtain the sleep judgment model. Therefore, after the wearable device collects the current time and the user's current physiological characteristic parameters, it uses sleep judgment The model can determine the user's current sleep state, and then control the operation state of the electronic device according to the user's sleep state, so that the operation state of the electronic device matches the user's sleep state, so that the electronic device does not affect the user's sleep and saves power.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. 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 diagram of an application scenario provided by an embodiment of the present invention;

图2为本发明实施例提供的一种控制电子设备的方法的流程示意图;FIG. 2 is a schematic flowchart of a method for controlling an electronic device provided by an embodiment of the present invention;

图3为本发明实施例提供的一种控制电子设备的方法的流程示意图;FIG. 3 is a schematic flowchart of a method for controlling an electronic device provided by an embodiment of the present invention;

图4为本发明实施例提供的一种可穿戴设备的结构示意图;FIG. 4 is a schematic structural diagram of a wearable device provided by an embodiment of the present invention;

图5为本发明实施例提供的一种计算机设备的结构示意图。FIG. 5 is a schematic structural diagram of a computer device provided by an embodiment of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及有益效果更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and beneficial effects of the present invention more clear, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

本发明实施例中的控制电子设备的方法可以应用于图1所示的应用场景中,该场景包括可穿戴设备器101、电子设备102,其中,可穿戴设备101是直接穿在身上或整合到用户的衣服或配件的一种便携式设备,比如智能手表、智能眼镜、智能头带、智能服装、智能配饰等。电子设备102可以是多媒体设备、移动终端设备、智能家居设备等,比如音箱、智能手机、电视、电灯等。可穿戴设备器101通过无线网络与电子设备102连接。用户佩戴可穿戴设备101后,可穿戴设备101采集用户当前的生理特征参数,比如心率、呼吸频率、血压等,可穿戴设备101同时获取当前时间。可穿戴设备101将当前时间和用户当前的生理特征参数输入睡眠判断模型,确定用户当前的入睡状态。在具体实施中,预先可以将训练好的睡眠判断模型导入可穿戴设备101中,也可以将睡眠判断模型保存在云端服务器。可穿戴设备101在需要判断用户的入睡状态时,将采集的当前时间和用户当前的生理特征参数发送至云端服务器,由云端服务器中的睡眠判断模型根据当前时间和用户当前的生理特征参数判断用户的入睡状态,然后将用户的入睡状态发送至可穿戴设备101。可穿戴设备101根据用户的入睡状态控制电子设备的运行状态,比如,设定电子设备为多媒体设备,若用户的入睡状态为未入睡状态,多媒体设备为开启状态时,则不发关闭信号至多媒体设备,使多媒体设备保持开启状态。若用户的入睡状态为已入睡状态,多媒体设备为开启状态时,则发送关闭信号至多媒体设备,以使多媒体设备切换至关闭状态。The method for controlling an electronic device in the embodiment of the present invention can be applied to the application scenario shown in FIG. A portable device for the user's clothing or accessories, such as smart watches, smart glasses, smart headbands, smart clothing, smart accessories, etc. The electronic device 102 may be a multimedia device, a mobile terminal device, a smart home device, etc., such as a sound box, a smart phone, a TV, a lamp, and the like. The wearable device 101 is connected to the electronic device 102 through a wireless network. After the user wears the wearable device 101, the wearable device 101 collects the user's current physiological characteristic parameters, such as heart rate, respiratory rate, blood pressure, etc., and the wearable device 101 simultaneously obtains the current time. The wearable device 101 inputs the current time and the user's current physiological characteristic parameters into the sleep judgment model to determine the user's current falling asleep state. In a specific implementation, the trained sleep judgment model may be imported into the wearable device 101 in advance, or the sleep judgment model may be saved in a cloud server. When the wearable device 101 needs to judge the user's falling asleep state, it sends the collected current time and the user's current physiological characteristic parameters to the cloud server, and the sleep judgment model in the cloud server judges the user's sleep status according to the current time and the user's current physiological characteristic parameters. The user's falling asleep state, and then send the user's falling asleep state to the wearable device 101. The wearable device 101 controls the operating state of the electronic device according to the user's falling asleep state. For example, if the electronic device is set as a multimedia device, if the user's falling asleep state is not falling asleep and the multimedia device is in the open state, then no shutdown signal is sent to the multimedia device. device to keep the multimedia device turned on. If the sleeping state of the user is the falling asleep state and the multimedia device is in the on state, then send an off signal to the multimedia device so that the multimedia device switches to the off state.

基于图1所示的应用场景图,本发明实施例提供了一种控制电子设备的方法的流程,该方法的流程可以由可穿戴设备执行,如图2所示,包括以下步骤:Based on the application scenario diagram shown in FIG. 1, an embodiment of the present invention provides a flow of a method for controlling an electronic device. The flow of the method can be executed by a wearable device, as shown in FIG. 2, including the following steps:

步骤S201,获取当前时间和用户当前的生理特征参数。Step S201, acquiring the current time and the current physiological characteristic parameters of the user.

具体地,用户当前的生理特征参数包括心率、呼吸频率、血压等,这些生理特征参数可以判断用户是否入睡。比如,当人入睡以后,心率和呼吸频率会变慢和变得均匀,血压也会趋于平稳。用户佩戴便携式设备后,便携式设备实时采集用户的生理特征参数并记录。另外,用户入睡的时间存在规律性,比如有些人是22:00-6:00睡觉,有些人是23:00-7:00睡觉,因此结合当前时间以及用户习惯睡觉的时间可以判断用户是否入睡。Specifically, the current physiological characteristic parameters of the user include heart rate, breathing rate, blood pressure, etc., and these physiological characteristic parameters can determine whether the user is falling asleep. For example, when a person falls asleep, the heart rate and breathing rate will slow down and become even, and the blood pressure will also stabilize. After the user wears the portable device, the portable device collects and records the user's physiological characteristic parameters in real time. In addition, there are regularities in the time when users fall asleep. For example, some people go to bed at 22:00-6:00, and some people go to bed at 23:00-7:00. Therefore, it can be judged whether the user is asleep by combining the current time and the time the user is used to sleeping. .

步骤S202,将当前时间和生理特征参数输入睡眠判断模型,确定用户的入睡状态。Step S202, inputting the current time and physiological characteristic parameters into the sleep judgment model to determine the user's falling asleep state.

具体地,睡眠判断模型是以预先采集的时间和生理特征参数为训练样本,采用监督学习的方式进行训练获得的模型。睡眠判断模型可以是线性回归模型、非线性回归模型、决策树模型、逻辑回归模型、支持向量机(Support VectorMachine,简称SVM)模型等监督学习模型。将睡眠判断模型用于判断的入睡状态后,可以采集用户反馈的判断结果更新训练样本,然后基于更新后的训练样本重新训练,获得更新后的睡眠判断模型。通过更新训练样本并重复训练,不断提高睡眠判断模型的准确性。Specifically, the sleep judgment model is a model obtained by using pre-collected time and physiological characteristic parameters as training samples and training in a supervised learning manner. The sleep judgment model may be a supervised learning model such as a linear regression model, a nonlinear regression model, a decision tree model, a logistic regression model, or a Support Vector Machine (Support Vector Machine, SVM for short) model. After the sleep judgment model is used to judge the falling asleep state, the judgment results fed back by the user can be collected to update the training samples, and then retraining based on the updated training samples to obtain the updated sleep judgment model. By updating the training samples and repeating the training, the accuracy of the sleep judgment model is continuously improved.

训练好睡眠判断模型后,可以直接将睡眠判断模型导入可穿戴设备中,也可以将睡眠判断模型保存在云端服务器,可穿戴设备在判断用户的入睡状态时,通过无线网络将当前时间和用户当前的生理特征参数发送至云端服务器,云端服务器中的睡眠判断模型基于当前时间和用户当前的生理特征参数判断用户的入睡状态。After training the sleep judgment model, you can directly import the sleep judgment model into the wearable device, or save the sleep judgment model in the cloud server. When the wearable device judges the user's falling asleep state, it will compare the current time and the user's current time through the wireless network. The physiological characteristic parameters of the user are sent to the cloud server, and the sleep judgment model in the cloud server judges the user's sleep state based on the current time and the user's current physiological characteristic parameters.

步骤S203,根据用户的入睡状态控制电子设备的运行状态。Step S203, controlling the running state of the electronic device according to the sleeping state of the user.

具体地,电子设备可以是多媒体设备、移动终端设备、智能家居设备等,比如音箱、智能手机、电视、电灯等。运行状态包括开启状态、关闭状态、睡眠状态等。Specifically, the electronic device may be a multimedia device, a mobile terminal device, a smart home device, etc., such as a sound box, a smart phone, a TV, an electric lamp, and the like. The running state includes an on state, an off state, a sleep state, and the like.

本发明实施例中,以预先采集的时间和生理特征参数为训练样本,采用监督学习的方式进行训练获得睡眠判断模型,故可穿戴设备采集当前时间和用户当前的生理特征参数后,采用睡眠判断模型可以确定当前的入睡状态,然后根据用户的入睡状态控制电子设备的运行状态,使电子设备的运行状态与用户的入睡状态匹配,从而使电子设备不影响用户睡眠,同时节约电能。In the embodiment of the present invention, the pre-collected time and physiological characteristic parameters are used as training samples, and the supervised learning method is used to train to obtain the sleep judgment model. Therefore, after the wearable device collects the current time and the user's current physiological characteristic parameters, it uses sleep judgment The model can determine the current sleep state, and then control the operation state of the electronic device according to the user's sleep state, so that the operation state of the electronic device matches the user's sleep state, so that the electronic device does not affect the user's sleep and saves power.

可选地,在上述步骤S202中,采用睡眠判断模型判断用户是否入睡时,可以采用以下判断规则:Optionally, in the above step S202, when using the sleep judgment model to judge whether the user falls asleep, the following judgment rules may be used:

在当前时间位于时间区间内,且生理特征参数位于数值范围内时,确定用户的入睡状态为已入睡状态;在当前时间没有位于时间区间内,或生理特征参数没有位于数值范围内时,确定用户的入睡状态为未入睡状态,时间区间和数值区间是睡眠判断模型生成的。When the current time is within the time interval, and the physiological characteristic parameters are within the numerical range, determine that the user's falling asleep state is the asleep state; when the current time is not within the time interval, or the physiological characteristic parameters are not within the numerical range, determine the user The falling asleep state is not falling asleep, and the time interval and value interval are generated by the sleep judgment model.

具体实施中,时间区间为用户入睡的时间段,数值范围为用户入睡时的生理特征参数的数值范围,通过大数据训练获得睡眠判断模型时,可以获得时间区间和数值区间。当采用睡眠判断模型判断用户是否入睡时,睡眠判断模型生成时间区间和数值区间,在当前时间位于时间区间内,且生理特征参数位于数值范围内时,说明当前时间为用户习惯入睡的时间,且用户的生理特征参数满足入睡时的生理特征参数,则用户很可能处于已入睡状态。在当前时间不位于时间区间内,或生理特征参数不位于数值范围内时,说明当前时间不是用户习惯入睡的时间,或用户的生理特征参数没有满足入睡时的生理特征参数,则用户很可能处于未入睡状态。通过结合时间和生理特征参数判断用户的入睡状态,从而提高判断的准确性。In a specific implementation, the time interval is the time period when the user falls asleep, and the value range is the value range of the physiological characteristic parameters when the user falls asleep. When the sleep judgment model is obtained through big data training, the time interval and the value range can be obtained. When the sleep judgment model is used to judge whether the user is falling asleep, the sleep judgment model generates a time interval and a numerical interval. If the current time is within the time interval and the physiological characteristic parameters are within the numerical range, it means that the current time is the time when the user is used to falling asleep, and If the physiological characteristic parameters of the user meet the physiological characteristic parameters when falling asleep, the user is likely to be in a state of falling asleep. If the current time is not within the time interval, or the physiological characteristic parameters are not within the value range, it means that the current time is not the time when the user is used to falling asleep, or the user's physiological characteristic parameters do not meet the physiological characteristic parameters when falling asleep, and the user is likely to be in the not asleep. The user's falling asleep state is judged by combining time and physiological characteristic parameters, thereby improving the accuracy of judgment.

可选地,在上述步骤S203中,在根据用户的入睡状态控制电子设备的运行状态时,本发明实施例至少提供以下实施方式:Optionally, in the above step S203, when controlling the operating state of the electronic device according to the sleeping state of the user, the embodiment of the present invention at least provides the following implementation manners:

在用户的入睡状态为已入睡状态,电子设备当前的运行状态为开启状态时,发送关闭信号至电子设备,以使电子设备切换至关闭状态。在用户的入睡状态为未入睡状态,电子设备当前的运行状态为开启状态时,不发送关闭信号至电子设备,以使电子设备保持开启状态。When the user's falling asleep state is the falling asleep state and the current operating state of the electronic device is the on state, a shutdown signal is sent to the electronic device so that the electronic device switches to the off state. When the sleeping state of the user is not falling asleep and the current operating state of the electronic device is in the on state, no shutdown signal is sent to the electronic device so that the electronic device remains in the on state.

具体地,电子设备在接收到关闭信号时,可以先逐步减少音量或减少亮度,之后再关闭。当电子设备被切换至关闭状态后,可穿戴设备可以停止获取当前时间以及采集用户当前的生理特征参数,从而减少可穿戴设备的用电量,提高可穿戴设备的续航能力。Specifically, when the electronic device receives the shutdown signal, it may first gradually reduce the volume or brightness, and then shut down. When the electronic device is switched to the off state, the wearable device can stop obtaining the current time and collecting the user's current physiological characteristic parameters, thereby reducing the power consumption of the wearable device and improving the battery life of the wearable device.

为了更好的解释本发明实施例,下面结合具体的实施场景描述本发明实施例提供的一种控制电子设备的方法,该方法由可穿戴设备执行,如图3所示,该方法包括以下步骤:In order to better explain the embodiment of the present invention, a method for controlling an electronic device provided by the embodiment of the present invention is described below in combination with a specific implementation scenario. The method is executed by a wearable device, as shown in FIG. 3 , the method includes the following steps :

步骤S301,可穿戴设备获取当前时间和用户当前的生理特征参数。In step S301, the wearable device obtains the current time and the current physiological characteristic parameters of the user.

生理特征参数为心率、呼吸频率、血压等。The physiological characteristic parameters are heart rate, respiratory rate, blood pressure, and the like.

步骤S302,将当前时间和生理特征参数输入睡眠判断模型。Step S302, inputting the current time and physiological characteristic parameters into the sleep judgment model.

步骤S303,判断当前时间和生理特征参数是否满足入睡条件,若是,则执行步骤S304,否则执行步骤S305。Step S303, judging whether the current time and physiological characteristic parameters satisfy the falling asleep condition, if yes, execute step S304, otherwise execute step S305.

入睡条件为当前时间位于时间区间内,且生理特征参数位于数值范围内,时间区间和数值区间是睡眠判断模型生成的。The condition for falling asleep is that the current time is within the time interval, and the physiological characteristic parameters are within the numerical range, and the time interval and numerical interval are generated by the sleep judgment model.

步骤S304,发送关闭信号至电子设备,以使电子设备切换至关闭状态。Step S304, sending a shutdown signal to the electronic device, so that the electronic device switches to the shutdown state.

步骤S305,不发送关闭信号至所述电子设备,以使电子设备保持开启状态。Step S305, not sending a shutdown signal to the electronic device, so that the electronic device remains in an on state.

步骤S306,采集用户反馈的判断结果更新训练样本,并采用更新后的训练样本重新训练,更新睡眠判断模型。In step S306, the judgment result fed back by the user is collected to update the training samples, and the updated training samples are used for retraining to update the sleep judgment model.

下面结合具体实施场景对上述流程进行说明:The above process is described below in combination with specific implementation scenarios:

示例性地,设定电子设备为智能手机,用户开启智能手机中的音乐播放器,然后使用智能耳机听音乐入睡。智能耳机采集用户的心率X1、呼吸频率X2、血压X3等生理特征参数以及当前时间T1,然后将生理特征参数以及当前时间输入睡眠判断模型,当心率X1、呼吸频率X2、血压X3等生理特征参数位于数值范围[xm,xn]内,且当前时间T1位于时间区间[tp,tq]内时,睡眠判断模型输出已入睡状态。智能耳机发送关闭信号至智能手机,智能手机接收到关闭信号之后,逐步减少播放音乐的音量直至关闭,或者直接关闭。当心率X1、呼吸频率X2、血压X3等生理特征参数不位于数值范围[xm,xn]内,或当前时间T1不位于时间区间[tp,tq]内时,睡眠判断模型输出未入睡状态,智能耳机继续采集时间和用户的生理特征参数。Exemplarily, the electronic device is set to be a smart phone, and the user turns on a music player in the smart phone, and then uses a smart earphone to listen to music to fall asleep. The smart earphone collects the user's physiological characteristic parameters such as heart rate X1, respiratory frequency X2, blood pressure X3 and the current time T1, and then inputs the physiological characteristic parameters and current time into the sleep judgment model, when the physiological characteristic parameters such as heart rate X1, respiratory frequency X2, blood pressure X3 When it is within the numerical range [xm, xn] and the current time T1 is within the time interval [tp, tq], the sleep judgment model outputs the state of falling asleep. The smart earphone sends a shutdown signal to the smart phone, and after the smart phone receives the shutdown signal, it gradually reduces the volume of the music played until it is turned off, or it is turned off directly. When the physiological characteristic parameters such as heart rate X1, respiratory rate X2, blood pressure X3 are not within the value range [xm, xn], or the current time T1 is not within the time interval [tp, tq], the sleep judgment model outputs the state of not falling asleep, and the intelligent The earphone continues to collect time and physiological characteristic parameters of the user.

示例性地,设定电子设备为音响,用户开启音响播放音乐入睡。可穿戴设备采集用户的心率X1、呼吸频率X2、血压X3等生理特征参数以及当前时间T1,然后将生理特征参数以及当前时间输入睡眠判断模型。当心率X1、呼吸频率X2、血压X3等生理特征参数位于数值范围[xm,xn]内,且当前时间T1位于时间区间[tp,tq]内时,睡眠判断模型输出已入睡状态。可穿戴设备发送关闭信号至音响,音响接收到关闭信号之后,逐步减少播放音乐的音量直至关闭,或者直接关闭。当心率X1、呼吸频率X2、血压X3等生理特征参数不位于数值范围[xm,xn]内,或当前时间T1不位于时间区间[tp,tq]内时,睡眠判断模型输出未入睡状态,可穿戴设备继续采集时间和用户的生理特征参数。Exemplarily, the electronic device is set as a stereo, and the user turns on the stereo to play music to fall asleep. The wearable device collects the user's physiological characteristic parameters such as heart rate X1, respiratory rate X2, blood pressure X3 and the current time T1, and then inputs the physiological characteristic parameters and the current time into the sleep judgment model. When the physiological characteristic parameters such as heart rate X1, respiratory rate X2, and blood pressure X3 are within the value range [xm, xn], and the current time T1 is within the time interval [tp, tq], the sleep judgment model outputs the state of falling asleep. The wearable device sends a shutdown signal to the speaker. After receiving the shutdown signal, the speaker gradually reduces the volume of the music until it is turned off, or it is turned off directly. When the physiological characteristic parameters such as heart rate X1, respiratory rate X2, blood pressure X3 are not within the value range [xm, xn], or the current time T1 is not within the time interval [tp, tq], the sleep judgment model outputs the state of not falling asleep, which can be The wearable device continues to collect time and physiological characteristic parameters of the user.

示例性地,设定电子设备为电视,用户看电视入睡。可穿戴设备采集用户的心率X1、呼吸频率X2、血压X3等生理特征参数以及当前时间T1,然后将生理特征参数以及当前时间输入睡眠判断模型。当心率X1、呼吸频率X2、血压X3等生理特征参数位于数值范围[xm,xn]内,且当前时间T1位于时间区间[tp,tq]内时,睡眠判断模型输出已入睡状态。可穿戴设备发送关闭信号至电视,电视接收到关闭信号之后直接关闭。当心率X1、呼吸频率X2、血压X3等生理特征参数不位于数值范围[xm,xn]内,或当前时间T1不位于时间区间[tp,tq]内时,睡眠判断模型输出未入睡状态,可穿戴设备继续采集时间和用户的生理特征参数。Exemplarily, the electronic device is set to be a TV, and the user falls asleep watching TV. The wearable device collects the user's physiological characteristic parameters such as heart rate X1, respiratory rate X2, blood pressure X3 and the current time T1, and then inputs the physiological characteristic parameters and the current time into the sleep judgment model. When the physiological characteristic parameters such as heart rate X1, respiratory rate X2, and blood pressure X3 are within the value range [xm, xn], and the current time T1 is within the time interval [tp, tq], the sleep judgment model outputs the state of falling asleep. The wearable device sends a shutdown signal to the TV, and the TV turns off directly after receiving the shutdown signal. When the physiological characteristic parameters such as heart rate X1, respiratory rate X2, blood pressure X3 are not within the value range [xm, xn], or the current time T1 is not within the time interval [tp, tq], the sleep judgment model outputs the state of not falling asleep, which can be The wearable device continues to collect time and physiological characteristic parameters of the user.

示例性地,设定电子设备为电灯,用户开灯入睡。可穿戴设备采集用户的心率X1、呼吸频率X2、血压X3等生理特征参数以及当前时间T1,然后将生理特征参数以及当前时间输入睡眠判断模型。当心率X1、呼吸频率X2、血压X3等生理特征参数位于数值范围[xm,xn]内,且当前时间T1位于时间区间[tp,tq]内时,睡眠判断模型输出已入睡状态。可穿戴设备发送关闭信号至电灯,电灯接收到关闭信号之后,逐步减少亮度直至关闭,或者直接关闭。当心率X1、呼吸频率X2、血压X3等生理特征参数不位于数值范围[xm,xn]内,或当前时间T1不位于时间区间[tp,tq]内时,睡眠判断模型输出未入睡状态,可穿戴设备继续采集时间和用户的生理特征参数。Exemplarily, the electronic device is set as a light, and the user turns on the light to fall asleep. The wearable device collects the user's physiological characteristic parameters such as heart rate X1, respiratory rate X2, blood pressure X3 and the current time T1, and then inputs the physiological characteristic parameters and the current time into the sleep judgment model. When the physiological characteristic parameters such as heart rate X1, respiratory rate X2, and blood pressure X3 are within the value range [xm, xn], and the current time T1 is within the time interval [tp, tq], the sleep judgment model outputs the state of falling asleep. The wearable device sends a turn-off signal to the light. After receiving the turn-off signal, the light gradually reduces the brightness until it turns off, or turns off directly. When the physiological characteristic parameters such as heart rate X1, respiratory rate X2, blood pressure X3 are not within the value range [xm, xn], or the current time T1 is not within the time interval [tp, tq], the sleep judgment model outputs the state of not falling asleep, which can be The wearable device continues to collect time and physiological characteristic parameters of the user.

本发明实施例中,以预先采集的时间和生理特征参数为训练样本,采用监督学习的方式进行训练获得睡眠判断模型,故可穿戴设备采集当前时间和用户当前的生理特征参数后,采用睡眠判断模型可以确定当前的入睡状态,然后根据用户的入睡状态控制电子设备的运行状态,使电子设备的运行状态与用户的入睡状态匹配,从而使电子设备不影响用户睡眠,同时节约电能。In the embodiment of the present invention, the pre-collected time and physiological characteristic parameters are used as training samples, and the supervised learning method is used to train to obtain the sleep judgment model. Therefore, after the wearable device collects the current time and the user's current physiological characteristic parameters, it uses sleep judgment The model can determine the current sleep state, and then control the operation state of the electronic device according to the user's sleep state, so that the operation state of the electronic device matches the user's sleep state, so that the electronic device does not affect the user's sleep and saves power.

基于相同的技术构思,本发明实施例提供了一种可穿戴设备,如图4所示,该可穿戴设备400包括:Based on the same technical concept, an embodiment of the present invention provides a wearable device, as shown in FIG. 4, the wearable device 400 includes:

获取模块401,用于获取当前时间和用户当前的生理特征参数;An acquisition module 401, configured to acquire the current time and the current physiological characteristic parameters of the user;

处理模块402,用于将所述当前时间和所述生理特征参数输入睡眠判断模型,确定所述用户的入睡状态,所述睡眠判断模型是以预先采集的时间和生理特征参数为训练样本,采用监督学习的方式进行训练获得的模型;The processing module 402 is configured to input the current time and the physiological characteristic parameters into a sleep judgment model to determine the user's falling asleep state. The sleep judgment model uses pre-collected time and physiological characteristic parameters as training samples, adopts The model obtained by training in the way of supervised learning;

控制模块403,用于根据所述用户的入睡状态控制电子设备的运行状态。A control module 403, configured to control the operating state of the electronic device according to the user's falling asleep state.

可选地,所述处理模块402具体用于:Optionally, the processing module 402 is specifically configured to:

在所述当前时间位于时间区间内,且所述生理特征参数位于数值范围内时,确定所述用户的入睡状态为已入睡状态,所述时间区间和所述数值区间是所述睡眠判断模型生成的;When the current time is within a time interval and the physiological characteristic parameter is within a numerical range, it is determined that the user's falling asleep state is a falling asleep state, and the time interval and the numerical interval are generated by the sleep judgment model of;

在所述当前时间没有位于所述时间区间内,或所述生理特征参数没有位于所述数值范围内时,确定所述用户的入睡状态为未入睡状态。When the current time is not within the time interval, or the physiological characteristic parameter is not within the value range, it is determined that the falling asleep state of the user is not falling asleep.

可选地,所述控制模块403具体用于:Optionally, the control module 403 is specifically configured to:

在所述用户的入睡状态为已入睡状态,所述电子设备当前的运行状态为开启状态时,发送关闭信号至所述电子设备,以使所述电子设备切换至关闭状态;When the falling asleep state of the user is the falling asleep state and the current operating state of the electronic device is the on state, sending a shutdown signal to the electronic device so that the electronic device is switched to the off state;

在所述用户的入睡状态为未入睡状态,所述电子设备当前的运行状态为开启状态时,不发送关闭信号至所述电子设备,以使所述电子设备保持开启状态。When the sleeping state of the user is not falling asleep and the current operating state of the electronic device is in the on state, no shutdown signal is sent to the electronic device so that the electronic device remains in the on state.

可选地,还包括更新模块404;Optionally, an update module 404 is also included;

所述更新模块404具体用于:The updating module 404 is specifically used for:

采集用户反馈的判断结果更新训练样本;Collect the judgment results of user feedback to update the training samples;

基于更新后的训练样本重新训练,获得更新后的睡眠判断模型。The updated sleep judgment model is obtained by retraining based on the updated training samples.

可选地,所述电子设备包括多媒体设备。Optionally, the electronic device includes a multimedia device.

基于相同的技术构思,本发明实施例提供了一种计算机设备,如图5所示,包括至少一个处理器501,以及与至少一个处理器连接的存储器502,本发明实施例中不限定处理器501与存储器502之间的具体连接介质,图5中处理器501和存储器502之间通过总线连接为例。总线可以分为地址总线、数据总线、控制总线等。Based on the same technical concept, an embodiment of the present invention provides a computer device, as shown in FIG. 5 , including at least one processor 501, and a memory 502 connected to at least one processor. The processor is not limited in the embodiment of the present invention. As for the specific connection medium between 501 and memory 502, the bus connection between processor 501 and memory 502 in FIG. 5 is taken as an example. The bus can be divided into address bus, data bus, control bus and so on.

在本发明实施例中,存储器502存储有可被至少一个处理器501执行的指令,至少一个处理器501通过执行存储器502存储的指令,可以执行前述的控制电子设备的方法中所包括的步骤。In the embodiment of the present invention, the memory 502 stores instructions executable by at least one processor 501, and at least one processor 501 can execute the steps included in the aforementioned method for controlling an electronic device by executing the instructions stored in the memory 502.

其中,处理器501是计算机设备的控制中心,可以利用各种接口和线路连接计算机设备的各个部分,通过运行或执行存储在存储器502内的指令以及调用存储在存储器502内的数据,从而控制电子设备。可选的,处理器501可包括一个或多个处理单元,处理器501可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器501中。在一些实施例中,处理器501和存储器502可以在同一芯片上实现,在一些实施例中,它们也可以在独立的芯片上分别实现。Among them, the processor 501 is the control center of the computer equipment, which can use various interfaces and lines to connect various parts of the computer equipment, by running or executing instructions stored in the memory 502 and calling data stored in the memory 502, thereby controlling electronic equipment. Optionally, the processor 501 may include one or more processing units, and the processor 501 may integrate an application processor and a modem processor. The tuner processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 501 . In some embodiments, the processor 501 and the memory 502 can be implemented on the same chip, and in some embodiments, they can also be implemented on independent chips.

处理器501可以是通用处理器,例如中央处理器(CPU)、数字信号处理器、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本发明实施例中公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。The processor 501 may be a general processor, such as a central processing unit (CPU), a digital signal processor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array or other programmable logic devices, discrete gates or transistors Logic devices and discrete hardware components can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the methods disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.

存储器502作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块。存储器502可以包括至少一种类型的存储介质,例如可以包括闪存、硬盘、多媒体卡、卡型存储器、随机访问存储器(Random AccessMemory,RAM)、静态随机访问存储器(Static Random Access Memory,SRAM)、可编程只读存储器(Programmable Read Only Memory,PROM)、只读存储器(Read Only Memory,ROM)、带电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、磁性存储器、磁盘、光盘等等。存储器502是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。本发明实施例中的存储器502还可以是电路或者其它任意能够实现存储功能的装置,用于存储程序指令和/或数据。The memory 502, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs and modules. The memory 502 may include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type memory, random access memory (Random Access Memory, RAM), static random access memory (Static Random Access Memory, SRAM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Magnetic Memory, Disk, discs and more. Memory 502 is, but is not limited to, any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory 502 in the embodiment of the present invention may also be a circuit or any other device capable of implementing a storage function, and is used for storing program instructions and/or data.

基于相同的技术构思,本发明实施例提供了一种计算机可读存储介质,其存储有可由计算机设备执行的计算机程序,当所述程序在计算机设备上运行时,使得所述计算机设备执行控制电子设备的方法的步骤。Based on the same technical concept, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program executable by a computer device, and when the program is run on the computer device, the computer device executes a control electronic The steps of the method of the device.

本领域内的技术人员应明白,本发明的实施例可提供为方法、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the invention have been described, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.

Claims (10)

1.一种控制电子设备的方法,其特征在于,包括:1. A method for controlling an electronic device, comprising: 获取当前时间和用户当前的生理特征参数;Obtain the current time and the user's current physiological characteristic parameters; 将所述当前时间和所述生理特征参数输入睡眠判断模型,确定所述用户的入睡状态,所述睡眠判断模型是以预先采集的时间和生理特征参数为训练样本,采用监督学习的方式进行训练获得的模型;Inputting the current time and the physiological characteristic parameters into a sleep judgment model to determine the user's falling asleep state, the sleep judgment model uses pre-collected time and physiological characteristic parameters as training samples, and uses supervised learning to train the obtained model; 根据所述用户的入睡状态控制电子设备的运行状态。The operating state of the electronic device is controlled according to the sleeping state of the user. 2.如权利要求1所述的方法,其特征在于,所述将所述当前时间和所述生理特征参数输入睡眠判断模型,确定所述用户的入睡状态,包括:2. The method according to claim 1, wherein the inputting the current time and the physiological characteristic parameters into a sleep judgment model to determine the falling asleep state of the user comprises: 在所述当前时间位于时间区间内,且所述生理特征参数位于数值范围内时,确定所述用户的入睡状态为已入睡状态,所述时间区间和所述数值区间是所述睡眠判断模型生成的;When the current time is within a time interval and the physiological characteristic parameter is within a numerical range, it is determined that the user's falling asleep state is a falling asleep state, and the time interval and the numerical interval are generated by the sleep judgment model of; 在所述当前时间没有位于所述时间区间内,或所述生理特征参数没有位于所述数值范围内时,确定所述用户的入睡状态为未入睡状态。When the current time is not within the time interval, or the physiological characteristic parameter is not within the value range, it is determined that the falling asleep state of the user is not falling asleep. 3.如权利要求1所述的方法,其特征在于,所述根据所述用户的入睡状态控制电子设备的运行状态,包括:3. The method according to claim 1, wherein the controlling the operating state of the electronic device according to the sleeping state of the user comprises: 在所述用户的入睡状态为已入睡状态,所述电子设备当前的运行状态为开启状态时,发送关闭信号至所述电子设备,以使所述电子设备切换至关闭状态;When the falling asleep state of the user is the falling asleep state and the current operating state of the electronic device is the on state, sending a shutdown signal to the electronic device so that the electronic device is switched to the off state; 在所述用户的入睡状态为未入睡状态,所述电子设备当前的运行状态为开启状态时,不发送关闭信号至所述电子设备,以使所述电子设备保持开启状态。When the sleeping state of the user is not falling asleep and the current operating state of the electronic device is in the on state, no shutdown signal is sent to the electronic device so that the electronic device remains in the on state. 4.如权利要求1所述的方法,其特征在于,采用以下方式更新所述睡眠判断模型:4. The method according to claim 1, wherein the sleep judgment model is updated in the following manner: 采集用户反馈的判断结果更新训练样本;Collect the judgment results of user feedback to update the training samples; 基于更新后的训练样本重新训练,获得更新后的睡眠判断模型。The updated sleep judgment model is obtained by retraining based on the updated training samples. 5.如权利要求1至4任一所述的方法,其特征在于,所述电子设备包括多媒体设备。5. The method according to any one of claims 1 to 4, wherein the electronic device comprises a multimedia device. 6.一种可穿戴设备,其特征在于,包括:6. A wearable device, characterized in that, comprising: 获取模块,用于获取当前时间和用户当前的生理特征参数;An acquisition module, configured to acquire the current time and the current physiological characteristic parameters of the user; 处理模块,用于将所述当前时间和所述生理特征参数输入睡眠判断模型,确定所述用户的入睡状态,所述睡眠判断模型是以预先采集的时间和生理特征参数为训练样本,采用监督学习的方式进行训练获得的模型;A processing module, configured to input the current time and the physiological characteristic parameters into a sleep judgment model to determine the state of falling asleep of the user. The sleep judgment model uses pre-collected time and physiological characteristic parameters as training samples and adopts supervision The model obtained by training in the way of learning; 控制模块,用于根据所述用户的入睡状态控制电子设备的运行状态。A control module, configured to control the operating state of the electronic device according to the sleeping state of the user. 7.如权利要求6所述的可穿戴设备,其特征在于,所述处理模块具体用于:7. The wearable device according to claim 6, wherein the processing module is specifically used for: 在所述当前时间位于时间区间内,且所述生理特征参数位于数值范围内时,确定所述用户的入睡状态为已入睡状态,所述时间区间和所述数值区间是所述睡眠判断模型生成的;When the current time is within a time interval and the physiological characteristic parameter is within a numerical range, it is determined that the user's falling asleep state is a falling asleep state, and the time interval and the numerical interval are generated by the sleep judgment model of; 在所述当前时间没有位于所述时间区间内,或所述生理特征参数没有位于所述数值范围内时,确定所述用户的入睡状态为未入睡状态。When the current time is not within the time interval, or the physiological characteristic parameter is not within the value range, it is determined that the falling asleep state of the user is not falling asleep. 8.如权利要求6所述的可穿戴设备,其特征在于,所述控制模块具体用于:8. The wearable device according to claim 6, wherein the control module is specifically used for: 在所述用户的入睡状态为已入睡状态,所述电子设备当前的运行状态为开启状态时,发送关闭信号至所述电子设备,以使所述电子设备切换至关闭状态;When the user's falling asleep state is the falling asleep state and the current operating state of the electronic device is the on state, sending a shutdown signal to the electronic device, so that the electronic device is switched to the off state; 在所述用户的入睡状态为未入睡状态,所述电子设备当前的运行状态为开启状态时,不发送关闭信号至所述电子设备,以使所述电子设备保持开启状态。When the sleeping state of the user is not falling asleep and the current operating state of the electronic device is in the on state, no shutdown signal is sent to the electronic device, so that the electronic device remains in the on state. 9.一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现权利要求1~5任一权利要求所述方法的步骤。9. A computer device, comprising a memory, a processor, and a computer program stored in the memory and operable on the processor, characterized in that, when the processor executes the program, any one of claims 1 to 5 is realized The steps of the method are claimed. 10.一种计算机可读存储介质,其特征在于,其存储有可由计算机设备执行的计算机程序,当所述程序在计算机设备上运行时,使得所述计算机设备执行权利要求1~5任一所述方法的步骤。10. A computer-readable storage medium, characterized in that it stores a computer program executable by a computer device, and when the program is run on the computer device, the computer device executes any one of claims 1-5. steps of the method described above.
CN201910606419.4A 2019-07-05 2019-07-05 A kind of method and wearable device of controlling electronic devices Pending CN110362184A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910606419.4A CN110362184A (en) 2019-07-05 2019-07-05 A kind of method and wearable device of controlling electronic devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910606419.4A CN110362184A (en) 2019-07-05 2019-07-05 A kind of method and wearable device of controlling electronic devices

Publications (1)

Publication Number Publication Date
CN110362184A true CN110362184A (en) 2019-10-22

Family

ID=68218495

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910606419.4A Pending CN110362184A (en) 2019-07-05 2019-07-05 A kind of method and wearable device of controlling electronic devices

Country Status (1)

Country Link
CN (1) CN110362184A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111459042A (en) * 2020-04-07 2020-07-28 深圳创维-Rgb电子有限公司 Control method and system of household appliance, television and storage medium
CN112462997A (en) * 2020-12-14 2021-03-09 北京小米移动软件有限公司 Content presentation method and device, electronic equipment and storage medium
CN113359496A (en) * 2021-06-28 2021-09-07 平安普惠企业管理有限公司 Intelligent household data control method, device, equipment and storage medium
CN114967897A (en) * 2021-02-19 2022-08-30 深圳市万普拉斯科技有限公司 Power consumption optimization method and device and mobile terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015134654A1 (en) * 2014-03-05 2015-09-11 Whoop, Inc. Continuous heart rate monitoring and interpretation
CN105407237A (en) * 2015-10-28 2016-03-16 东莞酷派软件技术有限公司 Control method, control device and wearable intelligent equipment
CN107567083A (en) * 2017-10-16 2018-01-09 北京小米移动软件有限公司 The method and apparatus for carrying out power saving optimization processing
US10255550B1 (en) * 2017-06-07 2019-04-09 States Title, Inc. Machine learning using multiple input data types

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015134654A1 (en) * 2014-03-05 2015-09-11 Whoop, Inc. Continuous heart rate monitoring and interpretation
CN105407237A (en) * 2015-10-28 2016-03-16 东莞酷派软件技术有限公司 Control method, control device and wearable intelligent equipment
US10255550B1 (en) * 2017-06-07 2019-04-09 States Title, Inc. Machine learning using multiple input data types
CN107567083A (en) * 2017-10-16 2018-01-09 北京小米移动软件有限公司 The method and apparatus for carrying out power saving optimization processing

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111459042A (en) * 2020-04-07 2020-07-28 深圳创维-Rgb电子有限公司 Control method and system of household appliance, television and storage medium
CN111459042B (en) * 2020-04-07 2023-08-22 深圳创维-Rgb电子有限公司 Control method, system, television and storage medium for home appliance
CN112462997A (en) * 2020-12-14 2021-03-09 北京小米移动软件有限公司 Content presentation method and device, electronic equipment and storage medium
CN114967897A (en) * 2021-02-19 2022-08-30 深圳市万普拉斯科技有限公司 Power consumption optimization method and device and mobile terminal
CN113359496A (en) * 2021-06-28 2021-09-07 平安普惠企业管理有限公司 Intelligent household data control method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110362184A (en) A kind of method and wearable device of controlling electronic devices
US12058499B2 (en) Audio processing method and device, terminal, and computer-readable storage medium
CN106535044A (en) Intelligent sound equipment playing control method and music playing control system
CN108847219A (en) A kind of wake-up word presets confidence threshold value adjusting method and system
JP6796212B2 (en) Application control method and application control device
CN115826418A (en) A smart home control method
CN110677774B (en) Volume self-adaptive adjusting method and device, computer equipment and storage medium
CN109413537A (en) Audio signal playback method, device and earphone
CN105704597A (en) Smart headphone provided with sound effect processing system
CN105007053A (en) Audio play method and device
CN104062922A (en) Household equipment control method, household equipment control system, control equipment and terminal equipment
CN104111729A (en) Information processing method and electronic equipment
CN204028590U (en) Housed device control system
CN113641329A (en) Sound effect configuration method and device, intelligent sound box, computer equipment and storage medium
CN103167155B (en) System and method for achieving control of music player of mobile phone based on range sensor
CN111083678A (en) Bluetooth speaker playback control method, system and smart device
CN115186127A (en) Sleep state-based audio playback method, device and computer equipment
CN105045383A (en) Device and method for controlling alarm clock and music operations according to sleeping states
CN109065050A (en) A kind of sound control method, device, equipment and storage medium
WO2017166645A1 (en) Health prompting method and apparatus
CN113763990A (en) Method and device for determining unwake audio, storage medium and electronic device
CN109767751A (en) Production method, device, computer equipment and the storage device of baby comforting music
WO2018086619A1 (en) Method and device for controlling media file
CN104715769B (en) Method and system for controlling wireless music through phototonus
CN108121529A (en) Audio playing mode switching method and device and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20191022

RJ01 Rejection of invention patent application after publication