[go: up one dir, main page]

CN114974495A - Sleep data calibration method and electronic equipment - Google Patents

Sleep data calibration method and electronic equipment Download PDF

Info

Publication number
CN114974495A
CN114974495A CN202210503553.3A CN202210503553A CN114974495A CN 114974495 A CN114974495 A CN 114974495A CN 202210503553 A CN202210503553 A CN 202210503553A CN 114974495 A CN114974495 A CN 114974495A
Authority
CN
China
Prior art keywords
sleep
time
data
period
electronic device
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
CN202210503553.3A
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202210503553.3A priority Critical patent/CN114974495A/en
Publication of CN114974495A publication Critical patent/CN114974495A/en
Priority to PCT/CN2023/092981 priority patent/WO2023217137A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H10/00ICT specially adapted for the handling or processing of patient-related medical or healthcare data
    • G16H10/60ICT specially adapted for the handling or processing of patient-related medical or healthcare data for patient-specific data, e.g. for electronic patient records
    • G16H10/65ICT specially adapted for the handling or processing of patient-related medical or healthcare data for patient-specific data, e.g. for electronic patient records stored on portable record carriers, e.g. on smartcards, RFID tags or CD
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/48Other medical applications
    • A61B5/4806Sleep evaluation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Medical Informatics (AREA)
  • Public Health (AREA)
  • General Health & Medical Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Biophysics (AREA)
  • Physics & Mathematics (AREA)
  • Primary Health Care (AREA)
  • Epidemiology (AREA)
  • Pathology (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Molecular Biology (AREA)
  • Surgery (AREA)
  • Animal Behavior & Ethology (AREA)
  • Veterinary Medicine (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

The application discloses a sleep data calibration method and electronic equipment, and belongs to the technical field of electronics. The specific scheme comprises the following steps: acquiring historical use data of the electronic equipment; under the condition that the electronic equipment and the wearable equipment are in a communication connection state, receiving first sleep data sent by the wearable equipment; calibrating the first sleep data according to the historical use data to obtain second sleep data; the first sleep data is sleep data of a user in a first historical time period, the sleep data is acquired by the wearable device, the historical use data comprises use data of the user on the electronic device in the first historical time period, the use data is acquired by the electronic device, the electronic device and the wearable device are not in a communication connection state in the first historical time period, and total sleep duration included in the second sleep data is smaller than or equal to total sleep duration included in the first sleep data.

Description

睡眠数据校准方法和电子设备Sleep data calibration method and electronic device

技术领域technical field

本申请属于电子技术领域,具体涉及一种睡眠数据校准方法和电子设备。The present application belongs to the field of electronic technology, and in particular relates to a sleep data calibration method and electronic equipment.

背景技术Background technique

随着电子科技产品的不断升级,穿戴设备的功能越来越贴近人们的生活,例如,人们可以通过佩戴穿戴设备来监测自己的睡眠状况。With the continuous upgrading of electronic technology products, the functions of wearable devices are getting closer to people's lives. For example, people can monitor their sleep status by wearing wearable devices.

在相关技术中,人们在睡前大多有使用电子设备的习惯,当用户在使用电子设备时,人的身体处于比较稳定的状态,穿戴设备可能会将用户使用电子设备的时间段也识别为睡眠时间段,因此,通过相关技术中的睡眠监测方法得到的睡眠数据准确率较低。In the related art, most people have the habit of using electronic devices before going to bed. When the user is using the electronic device, the human body is in a relatively stable state, and the wearable device may also recognize the time period when the user uses the electronic device as sleep. Therefore, the sleep data obtained by the sleep monitoring method in the related art has a low accuracy.

发明内容SUMMARY OF THE INVENTION

本申请实施例的目的是提供一种睡眠数据校准方法和电子设备,能够解决通过相关技术中的睡眠监测方法得到的睡眠数据准确率较低的问题。The purpose of the embodiments of the present application is to provide a sleep data calibration method and an electronic device, which can solve the problem of low accuracy of sleep data obtained by the sleep monitoring method in the related art.

第一方面,本申请实施例提供了一种睡眠数据校准方法,该方法包括:获取电子设备的历史使用数据;在所述电子设备与穿戴设备处于通信连接状态的情况下,接收所述穿戴设备发送的第一睡眠数据;根据所述历史使用数据对所述第一睡眠数据进行校准处理,得到第二睡眠数据;其中,所述第一睡眠数据为所述穿戴设备获取的用户在第一历史时间段的睡眠数据,所述历史使用数据包括所述电子设备获取的所述用户在所述第一历史时间段内对所述电子设备的使用数据,所述电子设备与所述穿戴设备在所述第一历史时间段内未处于通信连接状态,所述第二睡眠数据中包括的睡眠总时长小于或等于所述第一睡眠数据中包括的睡眠总时长。In a first aspect, an embodiment of the present application provides a method for calibrating sleep data. The method includes: acquiring historical usage data of an electronic device; and receiving the wearable device when the electronic device is in a communication connection state with a wearable device. The first sleep data sent; the first sleep data is calibrated according to the historical usage data, and the second sleep data is obtained; wherein, the first sleep data is obtained by the wearable device in the first history of the user Sleep data of a time period, the historical usage data includes usage data of the electronic device acquired by the electronic device by the user in the first historical time period, where the electronic device and the wearable device are located at the same location. The communication connection state is not in the first historical time period, and the total sleep duration included in the second sleep data is less than or equal to the total sleep duration included in the first sleep data.

第二方面,本申请实施例提供了一种睡眠数据校准装置,包括:获取模块、接收模块和处理模块;所述获取模块,用于获取电子设备的历史使用数据;所述接收模块,用于在所述电子设备与穿戴设备处于通信连接状态的情况下,接收所述穿戴设备发送的第一睡眠数据;所述处理模块,用于根据所述历史使用数据对所述第一睡眠数据进行校准处理,得到第二睡眠数据;其中,所述第一睡眠数据为所述穿戴设备获取的用户在第一历史时间段的睡眠数据,所述历史使用数据包括所述电子设备获取的所述用户在所述第一历史时间段内对所述电子设备的使用数据,所述电子设备与所述穿戴设备在所述第一历史时间段内未处于通信连接状态,所述第二睡眠数据中包括的睡眠总时长小于或等于所述第一睡眠数据中包括的睡眠总时长。In a second aspect, an embodiment of the present application provides a sleep data calibration device, including: an acquisition module, a receiving module, and a processing module; the acquisition module is used for acquiring historical usage data of an electronic device; the receiving module is used for When the electronic device and the wearable device are in a communication connection state, receive first sleep data sent by the wearable device; the processing module is configured to calibrate the first sleep data according to the historical usage data process to obtain second sleep data; wherein, the first sleep data is the sleep data of the user in the first historical time period obtained by the wearable device, and the historical usage data includes the user's sleep data obtained by the electronic device The usage data of the electronic device in the first historical time period, the electronic device and the wearable device are not in a communication connection state in the first historical time period, and the second sleep data includes: The total sleep duration is less than or equal to the total sleep duration included in the first sleep data.

第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, an embodiment of the present application provides an electronic device, the electronic device includes a processor and a memory, the memory stores a program or an instruction that can be executed on the processor, and the program or instruction is processed by the processor The steps of the method as described in the first aspect are implemented when the device is executed.

第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .

第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth aspect, an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect the method described.

第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的方法。In a sixth aspect, an embodiment of the present application provides a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the method according to the first aspect.

在本申请实施例中,可以获取电子设备的历史使用数据;在电子设备与穿戴设备处于通信连接状态的情况下,接收穿戴设备发送的第一睡眠数据;根据历史使用数据对第一睡眠数据进行校准处理,得到第二睡眠数据;所述第一睡眠数据为所述穿戴设备获取的用户在第一历史时间段的睡眠数据,所述历史使用数据包括所述电子设备获取的所述用户在所述第一历史时间段内对所述电子设备的使用数据,所述电子设备与所述穿戴设备在所述第一历史时间段内未处于通信连接状态,所述第二睡眠数据中包括的睡眠总时长小于或等于所述第一睡眠数据中包括的睡眠总时长。通过该方案,一方面,由于第一睡眠数据为电子设备与穿戴设备处于非通信连接状态时穿戴设备获取的数据、历史使用数据包括电子设备与穿戴设备处于非通信连接状态时电子设备获取的数据,因此,即使处于电子设备与穿戴设备的断连场景,也可以实现两种数据的记录;另一方面,由于可以根据历史使用数据对第一睡眠数据进行校准处理,从而使第二睡眠数据中包括的睡眠总时长小于或等于第一睡眠数据中包括的睡眠总时长,也就是说,可以根据电子设备的历史使用数据从第一睡眠数据中剔除用户使用电子设备的时长,因此,第二睡眠数据的准确率高于第一睡眠数据的准确率。In the embodiment of the present application, the historical usage data of the electronic device can be acquired; when the electronic device and the wearable device are in a communication connection state, the first sleep data sent by the wearable device is received; the first sleep data is processed according to the historical usage data. The calibration process is performed to obtain second sleep data; the first sleep data is the sleep data of the user in the first historical time period obtained by the wearable device, and the historical usage data includes the user's sleep data obtained by the electronic device. The usage data of the electronic device in the first historical time period, the electronic device and the wearable device are not in a communication connection state in the first historical time period, the sleep data included in the second sleep data The total duration is less than or equal to the total sleep duration included in the first sleep data. Through this solution, on the one hand, since the first sleep data is the data obtained by the wearable device when the electronic device and the wearable device are in a non-communication connection state, the historical usage data includes the data obtained by the electronic device when the electronic device and the wearable device are in a non-communication connection state , therefore, even in the disconnection scene between the electronic device and the wearable device, two kinds of data can be recorded; on the other hand, since the first sleep data can be calibrated according to the historical usage data, the second sleep data can be The total sleep duration included is less than or equal to the total sleep duration included in the first sleep data, that is, the duration of the user's use of the electronic device can be excluded from the first sleep data according to the historical usage data of the electronic device. Therefore, the second sleep time The accuracy of the data is higher than the accuracy of the first sleep data.

附图说明Description of drawings

图1是本申请实施例提供的睡眠数据校准方法的流程示意图之一;FIG. 1 is one of the schematic flowcharts of the sleep data calibration method provided by the embodiment of the present application;

图2是本申请实施例提供的睡眠数据校准方法的流程示意图之二;2 is a second schematic flowchart of a sleep data calibration method provided by an embodiment of the present application;

图3是本申请实施例提供的睡眠数据校准方法的流程示意图之三;3 is a third schematic flowchart of a sleep data calibration method provided by an embodiment of the present application;

图4(a)是本申请实施例提供的睡眠数据校准方法的校准方式示意图之一;FIG. 4(a) is one of the schematic diagrams of the calibration methods of the sleep data calibration method provided by the embodiment of the present application;

图4(b)是本申请实施例提供的睡眠数据校准方法的校准方式示意图之二;FIG. 4(b) is the second schematic diagram of the calibration mode of the sleep data calibration method provided by the embodiment of the present application;

图5是本申请实施例提供的睡眠数据校准方法的校准方式示意图之三;Fig. 5 is the third schematic diagram of the calibration mode of the sleep data calibration method provided by the embodiment of the present application;

图6是本申请实施例提供的睡眠数据校准装置的结构示意图;6 is a schematic structural diagram of a sleep data calibration device provided by an embodiment of the present application;

图7是本申请实施例提供的电子设备的结构示意图;7 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;

图8是本申请实施例提供的电子设备的硬件示意图。FIG. 8 is a schematic diagram of hardware of an electronic device provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art fall within the protection scope of this application.

本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between "first", "second", etc. The objects are usually of one type, and the number of objects is not limited. For example, the first object may be one or more than one. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the associated objects are in an "or" relationship.

下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的睡眠数据校准方法进行详细地说明。The sleep data calibration method provided by the embodiments of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.

本申请实施例提供的睡眠数据校准方法,该睡眠数据校准方法的执行主体可以为电子设备或者电子设备中能够实现该睡眠数据校准方法的功能模块或功能实体,本申请实施例提及的电子设备包括但不限于手机、平板电脑、电脑、相机、可穿戴设备等,下面以电子设备作为执行主体为例对本申请实施例提供的睡眠数据校准方法进行说明。In the sleep data calibration method provided by the embodiments of the present application, the execution subject of the sleep data calibration method may be an electronic device or a functional module or functional entity capable of implementing the sleep data calibration method in the electronic device. The electronic device mentioned in the embodiments of the present application Including but not limited to mobile phones, tablet computers, computers, cameras, wearable devices, etc. The following describes the sleep data calibration method provided by the embodiment of the present application by taking an electronic device as an execution subject as an example.

如图1所示,本申请实施例提供了一种睡眠数据校准方法,该方法可以包括步骤101-步骤103:As shown in FIG. 1 , an embodiment of the present application provides a sleep data calibration method, and the method may include steps 101 to 103:

步骤101、电子设备获取电子设备的历史使用数据。Step 101: The electronic device acquires historical usage data of the electronic device.

其中,上述历史使用数据包括所述电子设备获取的所述用户在第一历史时间段内对所述电子设备的使用数据,所述电子设备与所述穿戴设备在所述第一历史时间段内未处于通信连接状态。Wherein, the above-mentioned historical usage data includes usage data of the electronic device acquired by the electronic device by the user within a first historical time period, and the electronic device and the wearable device are within the first historical time period Not in a communication connection state.

可选地,电子设备与穿戴设备处于非通信连接状态是指电子设备与穿戴设备之间无法实现双向的信息通信,即断联状态。Optionally, the fact that the electronic device and the wearable device are in a non-communication connection state means that two-way information communication cannot be realized between the electronic device and the wearable device, that is, a disconnected state.

可选地,上述第一历史时间段可以为穿戴设备可以记录的最长历史时间段;也可以为一个预设的睡眠记录周期,例如,可以为12小时或24小时;还可以为用户通过输入确定的时间段。Optionally, the above-mentioned first historical time period can be the longest historical time period that can be recorded by the wearable device; it can also be a preset sleep recording period, for example, can be 12 hours or 24 hours; a certain period of time.

可选地,电子设备获取电子设备的历史使用数据,具体可以包括:获取电子设备在所述第一历史时间段的运行信息,所述运行信息包括以下至少一项:亮屏时间、接收用户输入时间以及前台应用的运行状态;根据所述运行信息确定所述历史使用数据。Optionally, acquiring the historical usage data of the electronic device by the electronic device may specifically include: acquiring operation information of the electronic device in the first historical time period, where the operation information includes at least one of the following: screen-on time, receiving user input The time and the running state of the foreground application; the historical usage data is determined according to the running information.

可选地,上述历史使用数据至少可以包括用户使用电子设备的时间信息。Optionally, the above-mentioned historical usage data may at least include time information when the user uses the electronic device.

示例性地,若电子设备在第一时间段(t1,t2)处于亮屏状态,在第二时间段(t3,t4)接收到用户的触控输入,电子设备的前台应用在第三时间段(t5,t6)处于持续运行状态,则电子设备可以将第一时间段(t1,t2)、第二时间段(t3,t4)和第三时间段(t5,t6)确定为用户使用电子设备的时间段,即历史使用数据。Exemplarily, if the electronic device is in the bright-screen state during the first time period (t 1 , t 2 ), and the user's touch input is received during the second time period (t 3 , t 4 ), the foreground application of the electronic device is in the The third time period (t 5 , t 6 ) is in the continuous running state, then the electronic device can use the first time period (t 1 , t 2 ), the second time period (t 3 , t 4 ) and the third time period ( t 5 , t 6 ) are determined as the time period during which the user uses the electronic device, that is, historical usage data.

基于上述方案,由于电子设备可以根据电子设备在第一历史时间段的运行信息确定历史使用数据,因此,可以为电子设备根据历史使用数据对第一睡眠数据进行校准处理提供基础。Based on the above solution, since the electronic device can determine historical usage data according to the operation information of the electronic device in the first historical time period, it can provide a basis for the electronic device to perform calibration processing on the first sleep data according to the historical usage data.

步骤102、在所述电子设备与穿戴设备处于通信连接状态的情况下,电子设备接收所述穿戴设备发送的第一睡眠数据。Step 102: When the electronic device and the wearable device are in a communication connection state, the electronic device receives the first sleep data sent by the wearable device.

其中,上述第一睡眠数据为所述穿戴设备获取的用户在第一历史时间段的睡眠数据。The above-mentioned first sleep data is the user's sleep data in a first historical time period acquired by the wearable device.

可选地,上述穿戴设备是指可以直接穿戴在用户身上或者整合到用户的衣服或配件上的一种便携式设备。例如,该穿戴设备可以为智能手表、手环、电子袜、眼镜等。Optionally, the above-mentioned wearable device refers to a portable device that can be directly worn on the user or integrated into the user's clothes or accessories. For example, the wearable device may be a smart watch, a bracelet, electronic socks, glasses, and the like.

可选地,电子设备与穿戴设备处于通信连接状态是指电子设备与穿戴设备之间可以实现双向的信息通信,例如,电子设备与穿戴设备可以处于蓝牙连接状态,也可以同时处于同一个局域网内。Optionally, the fact that the electronic device and the wearable device are in a communication connection state means that two-way information communication can be achieved between the electronic device and the wearable device. For example, the electronic device and the wearable device can be in a Bluetooth connection state, or can be in the same local area network at the same time. .

可选地,在接收第一睡眠数据之前,在穿戴设备处于穿戴状态的情况下,穿戴设备可以记录睡眠数据。也就是说,当穿戴设备检测到当前处于被用户佩戴的状态时,就可以开始记录该用户的睡眠数据。Optionally, before receiving the first sleep data, when the wearable device is in a wearing state, the wearable device may record the sleep data. That is, when the wearable device detects that it is currently being worn by the user, it can start recording the sleep data of the user.

可选地,当用户想要查看自己的睡眠数据时,可以先触发电子设备与穿戴设备进行通信连接,之后,在与穿戴设备处于通信连接状态的情况下,电子设备可以按照预设方式接收第一睡眠数据,该预设方式可以为用户触发方式或自动获取方式。Optionally, when the user wants to view his sleep data, he can first trigger the electronic device to communicate with the wearable device, and then, when the user is in a communication connection with the wearable device, the electronic device can receive the first A sleep data, the preset mode can be a user-triggered mode or an automatic acquisition mode.

例如,当预设方式为用户触发方式时,用户可以在电子设备与穿戴设备处于通信连接状态的情况下,对电子设备进行第一输入,电子设备可以响应于该第一输入,向穿戴设备发送数据请求信息,穿戴设备可以响应于该数据请求信息,向电子设备发送第一睡眠数据,相应地,电子设备可以从穿戴设备接收第一睡眠数据;当预设方式为自动获取方式时,电子设备可以在成功与穿戴设备进行通信连接后,自动向穿戴设备发送数据请求信息,或者,也可以在成功与穿戴设备进行通信连接的预设时间后,自动向穿戴设备发送数据请求信息,从而使穿戴设备响应于该数据请求信息,向电子设备发送第一睡眠数据。For example, when the preset mode is the user-triggered mode, the user can perform a first input on the electronic device when the electronic device and the wearable device are in a communication connection state, and the electronic device can respond to the first input and send a message to the wearable device. data request information, the wearable device can send the first sleep data to the electronic device in response to the data request information, and accordingly, the electronic device can receive the first sleep data from the wearable device; when the preset mode is the automatic acquisition mode, the electronic device After successfully communicating with the wearable device, the data request information can be automatically sent to the wearable device, or, after a preset time of successful communication connection with the wearable device, the data request information can be automatically sent to the wearable device, so that the wearable device can be automatically sent to the wearable device. The device sends first sleep data to the electronic device in response to the data request information.

步骤103、电子设备根据所述历史使用数据对所述第一睡眠数据进行校准处理,得到第二睡眠数据。Step 103: The electronic device performs calibration processing on the first sleep data according to the historical usage data to obtain second sleep data.

其中,上述第二睡眠数据中包括的睡眠总时长小于或等于所述第一睡眠数据中包括的睡眠总时长。Wherein, the total sleep duration included in the second sleep data is less than or equal to the total sleep duration included in the first sleep data.

可选地,上述第一睡眠数据可以包括第一睡眠时间段的起始时间和终止时间;电子设备根据所述历史使用数据对所述第一睡眠数据进行校准处理,具体可以包括:电子设备根据第一睡眠时间段从所述历史使用数据中确定第一使用时间段集合,所述第一使用时间段集合包括至少一个使用时间段,且每个所述使用时间段均与所述第一睡眠时间段在时间上存在至少部分重合;之后,电子设备可以分别根据每个使用时间段对所述第一睡眠时间段的起始时间、终止时间、以及所述起始时间和所述终止时间之间的睡眠时间进行校准处理。Optionally, the above-mentioned first sleep data may include a start time and an end time of the first sleep period; the electronic device performs calibration processing on the first sleep data according to the historical usage data, which may specifically include: the electronic device according to The first sleep period determines a first set of use periods from the historical usage data, the first set of use periods includes at least one use period, and each of the use periods is associated with the first sleep period The time periods are at least partially overlapped in time; after that, the electronic device can adjust the start time, end time, and the difference between the start time and the end time of the first sleep time period according to each use time period respectively. The sleep time in between is calibrated.

具体地,如图2所示,电子设备根据历史使用数据对第一睡眠数据进行校准处理,得到第二睡眠数据,可以包括步骤201-步骤203:Specifically, as shown in FIG. 2 , the electronic device performs calibration processing on the first sleep data according to the historical usage data to obtain the second sleep data, which may include steps 201 to 203:

步骤201、电子设备可以根据第一睡眠数据确定用户的第一睡眠时间段(s1,s2)。Step 201: The electronic device may determine the first sleep time period (s 1 , s 2 ) of the user according to the first sleep data.

其中,s1为起始时间,s2为终止时间。Among them, s 1 is the start time, and s 2 is the end time.

步骤202、电子设备可以根据第一睡眠时间段从历史使用数据中确定第一使用时间段集合[(t1,t2),(t3,t4),……(tn-1,tn)]。Step 202: The electronic device may determine the first set of use time periods from the historical usage data according to the first sleep time period [(t 1 , t 2 ), (t 3 , t 4 ), ... (t n-1 , t n )].

其中,第一使用时间段集合中的每个使用时间段均与第一睡眠时间段(s1,s2)在时间上存在至少部分重合。例如,若第一睡眠时间段为22:00-7:00,则第一使用时间段集合中的一个使用时间段可以为21:30-22:30。Wherein, each use time period in the first use time period set at least partially overlaps with the first sleep time period (s 1 , s 2 ). For example, if the first sleep time period is 22:00-7:00, one use time period in the first use time period set may be 21:30-22:30.

步骤203、电子设备可以根据每个使用时间段对第一睡眠时间段(s1,s2)的起始时间s1、终止时间s2、以及所述起始时间和所述终止时间之间的睡眠时间进行校准处理。Step 203: The electronic device can set the start time s 1 , the end time s 2 , and the interval between the start time and the end time of the first sleep time period (s 1 , s 2 ) according to each use time period The sleep time is calibrated.

基于上述方案,由于可以根据第一使用时间段集合中的每个使用时间段对第一睡眠时间段的起始时间、终止时间以及中间睡眠时间段进行校正,因此可以结合电子设备的历史使用数据对穿戴设备获取的睡眠时间进行校正,从而使第二睡眠数据中的睡眠时间段更接近用户的真实睡眠时间段。Based on the above solution, since the start time, end time and intermediate sleep time period of the first sleep time period can be corrected according to each use time period in the first use time period set, historical usage data of the electronic device can be combined. The sleep time acquired by the wearable device is corrected, so that the sleep time period in the second sleep data is closer to the user's real sleep time period.

可选地,电子设备分别根据所述每个使用时间段对所述第一睡眠时间段的起始时间、终止时间、以及所述起始时间和所述终止时间之间的睡眠时间进行校准处理,具体可以包括:在第一使用时间段满足入睡校正规则的情况下,将所述第一睡眠时间段的起始时间更新为所述第一使用时间段的时间终点;在所述第一使用时间段满足出睡校正规则的情况下,将所述第一睡眠时间段的终止时间更新为所述第一使用时间段的时间起点;在所述第一使用时间段不满足所述入睡校正规则和所述出睡校正规则的情况下,从所述第一睡眠时间段中删除所述第一使用时间段对应的睡眠时间段;其中,所述第一使用时间段为所述第一使用时间段集合中的任一个使用时间段。Optionally, the electronic device performs calibration processing on the start time, the end time, and the sleep time between the start time and the end time of the first sleep time period according to each use time period respectively. , which may specifically include: updating the start time of the first sleep time period to the time end point of the first use time period under the condition that the first use time period satisfies the sleep-onset correction rule; If the time period satisfies the falling asleep correction rule, update the end time of the first sleeping period to the time starting point of the first use period; if the first use period does not satisfy the falling asleep correction rule and the fall-out correction rule, delete the sleep time period corresponding to the first use time period from the first sleep time period; wherein, the first use time period is the first use time Any one of the segment set uses a time segment.

具体地,如图3所示,以根据第一使用时间段(ti,ti+1)对第一睡眠时间段(s1,s2)的起始时间s1、终止时间s2、以及所述起始时间和所述终止时间之间的睡眠时间进行校准处理为例,i为(1,n-1)中的任一个整数,上述步骤203可以包括步骤203a-步骤203e:Specifically, as shown in FIG. 3 , according to the first usage time period (t i , t i+1 ), the start time s 1 , the end time s 2 , the end time s 2 , Taking the calibration process for the sleep time between the start time and the end time as an example, i is any integer in (1, n-1), and the above step 203 may include steps 203a-203e:

步骤203a、电子设备可以先判断第一使用时间段(ti,ti+1)是否满足入睡校正规则;Step 203a, the electronic device may first determine whether the first use time period (t i , t i+1 ) satisfies the sleep-onset correction rule;

步骤203b、若满足入睡校正规则,则电子设备可以将起始时间s1更新为第一使用时间段(ti,ti+1)的时间终点ti+1Step 203b: If the sleep-onset correction rule is satisfied, the electronic device can update the start time s 1 to the time end point t i+1 of the first use time period (t i , t i+1 );

步骤203c、若不满足入睡校正规则,则电子设备可以继续判断第一使用时间段(ti,ti+1)是否满足出睡校正规则;Step 203c, if the falling asleep correction rule is not satisfied, the electronic device can continue to judge whether the first use time period (t i , t i+1 ) satisfies the falling asleep correction rule;

步骤203d、若满足出睡校正规则,则电子设备可以将终止时间s2更新为第一使用时间段(ti,ti+1)的时间起点tiStep 203d: If the fall-to-sleep correction rule is satisfied, the electronic device can update the termination time s 2 to the time starting point t i of the first use time period (t i , t i+1 ),

步骤203e、若不满足出睡校正规则,则电子设备可以从第一睡眠时间段(s1,s2)中删除第一使用时间段(ti,ti+1)对应的睡眠时间段,从而得到第二睡眠数据。Step 203e: If the fall-to-sleep correction rule is not satisfied, the electronic device may delete the sleep time period corresponding to the first use time period (t i , t i+1 ) from the first sleep time period (s 1 , s 2 ), Thus, the second sleep data is obtained.

可选地,上述第二睡眠数据中的睡眠时间段可以为连续的睡眠时间段,也可以为不连续的睡眠时间段,例如,当电子设备从第一睡眠时间段(s1,s2)中删除第一使用时间段(ti,ti+1)对应的睡眠时间段后,第二睡眠数据中的睡眠时间段可以包括(s1,ti)和(ti+1,s2)。Optionally, the sleep period in the second sleep data may be a continuous sleep period or a discontinuous sleep period, for example, when the electronic device changes from the first sleep period (s 1 , s 2 ) After deleting the sleep time period corresponding to the first use time period (t i , t i+1 ) in the data, the sleep time period in the second sleep data may include (s 1 , t i ) and (t i+1 , s 2 ) ).

基于上述方案,由于可以根据入睡校正规则和出睡校正规则对第一睡眠时间段的起始时间、终止时间以及中间睡眠时间段进行校正,因此可以使第二睡眠数据中的睡眠时间段更接近用户的真实睡眠时间段。Based on the above solution, since the start time, end time and intermediate sleep time period of the first sleep period can be corrected according to the sleep-onset correction rule and the sleep-off correction rule, the sleep periods in the second sleep data can be made closer to each other. The user's real sleep period.

可选地,上述入睡校正规则可以包括以下至少一项:所述起始时间位于所述第一使用时间段之间,所述第一使用时间段的时间起点与所述起始时间之间的时间差小于第一阈值。Optionally, the above-mentioned sleep-onset correction rule may include at least one of the following: the start time is between the first use time periods, and the time between the time start point of the first use time period and the start time. The time difference is less than the first threshold.

示例性的,在入睡校正规则包括起始时间位于第一使用时间段之间的情况下,参考图4中的(a),以第一使用时间段集合包括的第一使用时间段为(t1,t2)为例,若电子设备确定t1<s1<t2,即起始时间s1位于第一使用时间段(t1,t2)之间,则电子设备可以将起始时间s1更新为t2。在入睡校正规则包括第一使用时间段的时间起点与起始时间之间的时间差小于第一阈值的情况下,参考图4中的(b),以第一使用时间段集合包括的第一使用时间段为(t3,t4)为例,若电子设备确定第一使用时间段的时间起点t3与起始时间s1之间的时间差(t3-s1)小于第一阈值,则电子设备可以将起始时间s1更新为t4Exemplarily, in the case where the sleep-onset correction rule includes that the start time is between the first use time periods, with reference to (a) in FIG. 4 , the first use time period included in the first use time period set is (t 1 , t 2 ) as an example, if the electronic device determines that t 1 <s 1 <t 2 , that is, the start time s 1 is between the first use time period (t 1 , t 2 ), the electronic device can Time s 1 is updated to t 2 . In the case that the time difference between the start time and the start time of the first use time period included in the sleep-onset correction rule is smaller than the first threshold, referring to (b) in FIG. 4 , the first use period included in the first use time period set The time period is (t 3 , t 4 ) as an example, if the electronic device determines that the time difference (t 3 -s 1 ) between the time starting point t 3 of the first use period and the starting time s 1 is smaller than the first threshold, then The electronic device may update the start time s 1 to t 4 .

可选地,在入睡校正规则包括:所述起始时间位于所述第一使用时间段之间、所述第一使用时间段的时间起点与所述起始时间之间的时间差小于第一阈值的情况下,电子设备可以先判断起始时间是否位于所述第一使用时间段之间,再判断第一使用时间段的时间起点与所述起始时间之间的时间差是否小于第一阈值。Optionally, the sleep-onset correction rule includes: the start time is between the first use time periods, and the time difference between the time start point of the first use time period and the start time is less than a first threshold In the case of , the electronic device may first determine whether the start time is between the first use time periods, and then determine whether the time difference between the time start point of the first use time period and the start time is less than a first threshold.

可选地,上述出睡校正规则包括以下至少一项:所述终止时间位于所述第一使用时间段之间,所述第一使用时间段的时间终点与所述终止时间之间的时间差小于第二阈值。Optionally, the above-mentioned fall asleep correction rule includes at least one of the following: the termination time is located between the first use time periods, and the time difference between the time end point of the first use time period and the termination time is less than second threshold.

示例性的,在出睡校正规则包括终止时间位于第一使用时间段之间的情况下,继续参考图4中的(a),以第一使用时间段集合包括的第一使用时间段为(t5,t6)为例,若电子设备确定t5<s2<t6,即终止时间s2位于第一使用时间段(t5,t6)之间,则电子设备可以将终止时间s2更新为t5。在出睡校正规则包括第一使用时间段的时间终点与终止时间之间的时间差小于第二阈值的情况下,继续参考图4中的(b),以第一使用时间段集合包括的第一使用时间段为(t7,t8)为例,若电子设备确定第一使用时间段的时间终点t8与终止时间s2之间的时间差(s2-t8)小于第二阈值,则电子设备可以将终止时间s2更新为t7Exemplarily, in the case where the falling asleep correction rule includes that the termination time is between the first use time periods, continue to refer to (a) in FIG. 4 , the first use time period included in the first use time period set is ( Take t 5 , t 6 ) as an example, if the electronic device determines that t 5 <s 2 <t 6 , that is, the termination time s 2 is between the first use time period (t 5 , t 6 ), the electronic device can set the termination time s 2 is updated to t 5 . In the case that the time difference between the time end point and the termination time of the first use time period is included in the sleep-absence correction rule is less than the second threshold, continue referring to (b) in FIG. The use time period is (t 7 , t 8 ) as an example, if the electronic device determines that the time difference (s 2 -t 8 ) between the time end point t 8 of the first use time period and the termination time s 2 is less than the second threshold, then The electronic device may update the termination time s 2 to t 7 .

可选地,在出睡校正规则包括:所述终止时间位于所述第一使用时间段之间、所述第一使用时间段的时间终点与所述终止时间之间的时间差小于第二阈值的情况下,电子设备可以先判断终止时间是否位于所述第一使用时间段之间,再判断第一使用时间段的时间终点与所述终止时间之间的时间差是否小于第二阈值。Optionally, the correction rule for falling asleep includes: the termination time is located between the first use time periods, and the time difference between the time end point of the first use time period and the termination time is less than a second threshold. In this case, the electronic device may first determine whether the termination time is between the first use time periods, and then determine whether the time difference between the time end point of the first use time period and the termination time is less than a second threshold.

下面通过一个总示例对电子设备根据第一使用时间段集合对第一睡眠时间段进行校正进行详细说明。The correction of the first sleep time period by the electronic device according to the first set of use time periods will be described in detail below through a general example.

示例性地,如图5所示,以第一睡眠时间段为(s1,s2)、第一使用时间段集合包括使用时间段(t1,t2)、使用时间段(t3,t4)、使用时间段(t5,t6)为例。由于使用时间段(t1,t2)满足入睡校正规则,因此,电子设备可以将起始时间s1更新为t2。由于使用时间段(t5,t6)满足出睡校正规则,因此,电子设备可以将终止时间s2更新为t5。由于使用时间段(t3,t4)既不满足入睡校正规则,也不满足出睡校正规则,因此,电子设备可以从第一睡眠时间段(s1,s2)中删除使用时间段(t3,t4)对应的睡眠时间段,最终得到的第二睡眠数据中的睡眠时间段可以为(t2,t3)和(t4,t5)。Exemplarily, as shown in FIG. 5 , taking the first sleep time period as (s 1 , s 2 ), the first set of use time periods includes the use time period (t 1 , t 2 ), the use time period (t 3 , t 4 ), using the time period (t 5 , t 6 ) as an example. Since the use time period (t 1 , t 2 ) satisfies the sleep-onset correction rule, the electronic device can update the start time s 1 to t 2 . Since the use time period (t 5 , t 6 ) satisfies the sleep-out correction rule, the electronic device can update the termination time s 2 to t 5 . Since the use time period ( t 3 , t 4 ) neither satisfies the sleep - onset correction rule nor the sleep-out correction rule, the electronic device may delete the use time period ( t 3 , t 4 ) corresponding sleep time periods, the sleep time periods in the finally obtained second sleep data may be (t 2 , t 3 ) and (t 4 , t 5 ).

在本申请实施例中,一方面,由于第一睡眠数据为电子设备与穿戴设备处于非通信连接状态时穿戴设备获取的数据、历史使用数据包括电子设备与穿戴设备处于非通信连接状态时电子设备获取的数据,因此,即使处于电子设备与穿戴设备的断连场景,也可以实现两种数据的记录;另一方面,由于可以根据历史使用数据对第一睡眠数据进行校准处理,从而使第二睡眠数据中包括的睡眠总时长小于或等于第一睡眠数据中包括的睡眠总时长,也就是说,可以根据电子设备的历史使用数据从第一睡眠数据中剔除用户使用电子设备的时长,因此,第二睡眠数据的准确率高于第一睡眠数据的准确率。In the embodiments of the present application, on the one hand, since the first sleep data is data obtained by the wearable device when the electronic device and the wearable device are in a non-communication connection state, the historical usage data includes the electronic device when the electronic device and the wearable device are in a non-communication connection state Therefore, even in the disconnected scene between the electronic device and the wearable device, two kinds of data can be recorded; on the other hand, since the first sleep data can be calibrated according to the historical usage data, the second The total sleep duration included in the sleep data is less than or equal to the total sleep duration included in the first sleep data, that is, the duration of the user's use of the electronic device can be excluded from the first sleep data according to the historical usage data of the electronic device. Therefore, The accuracy rate of the second sleep data is higher than that of the first sleep data.

本申请实施例提供的睡眠数据校准方法,执行主体可以为睡眠数据校准装置。本申请实施例中以睡眠数据校准装置执行睡眠数据校准方法为例,说明本申请实施例提供的睡眠数据校准装置。In the sleep data calibration method provided by the embodiment of the present application, the execution subject may be a sleep data calibration device. In the embodiment of the present application, the sleep data calibration method provided by the embodiment of the present application is described by taking the sleep data calibration method performed by the sleep data calibration device as an example.

如图6所示,本申请实施例还提供一种睡眠数据校准装置600,包括:获取模块601、接收模块602和处理模块603;所述获取模块601,用于获取电子设备的历史使用数据;所述接收模块602,用于在所述电子设备与穿戴设备处于通信连接状态的情况下,接收所述穿戴设备发送的第一睡眠数据;所述处理模块603,用于根据所述历史使用数据对所述第一睡眠数据进行校准处理,得到第二睡眠数据;其中,所述第一睡眠数据为所述穿戴设备获取的用户在第一历史时间段的睡眠数据,所述历史使用数据包括所述电子设备获取的所述用户在所述第一历史时间段内对所述电子设备的使用数据,所述电子设备与所述穿戴设备在所述第一历史时间段内未处于通信连接状态,所述第二睡眠数据中包括的睡眠总时长小于或等于所述第一睡眠数据中包括的睡眠总时长。As shown in FIG. 6 , an embodiment of the present application further provides a sleep data calibration apparatus 600, including: an acquisition module 601, a receiving module 602, and a processing module 603; the acquisition module 601 is used to acquire historical usage data of an electronic device; The receiving module 602 is configured to receive the first sleep data sent by the wearable device when the electronic device and the wearable device are in a communication connection state; the processing module 603 is configured to use the historical usage data according to the Perform calibration processing on the first sleep data to obtain second sleep data; wherein, the first sleep data is the user's sleep data obtained by the wearable device in a first historical time period, and the historical usage data includes all the usage data of the user on the electronic device in the first historical time period obtained by the electronic device, and the electronic device and the wearable device are not in a communication connection state in the first historical time period, The total sleep duration included in the second sleep data is less than or equal to the total sleep duration included in the first sleep data.

可选地,所述第一睡眠数据包括第一睡眠时间段的起始时间和终止时间;所述处理模块603,具体用于:根据第一睡眠时间段从所述历史使用数据中确定第一使用时间段集合,所述第一使用时间段集合包括至少一个使用时间段,且每个所述使用时间段均与所述第一睡眠时间段在时间上存在至少部分重合;分别根据每个使用时间段对所述第一睡眠时间段的起始时间、终止时间、以及所述起始时间和所述终止时间之间的睡眠时间进行校准处理。Optionally, the first sleep data includes a start time and an end time of the first sleep period; the processing module 603 is specifically configured to: determine the first sleep period from the historical usage data according to the first sleep period a set of use time periods, the first set of use time periods includes at least one use time period, and each of the use time periods at least partially overlaps with the first sleep time period; The time period performs calibration processing on the start time, the end time, and the sleep time between the start time and the end time of the first sleep time period.

可选地,所述处理模块603,具体用于:在第一使用时间段满足入睡校正规则的情况下,将所述第一睡眠时间段的起始时间更新为所述第一使用时间段的时间终点;在所述第一使用时间段满足出睡校正规则的情况下,将所述第一睡眠时间段的终止时间更新为所述第一使用时间段的时间起点;在所述第一使用时间段不满足所述入睡校正规则和所述出睡校正规则的情况下,从所述第一睡眠时间段中删除所述第一使用时间段对应的睡眠时间段;其中,所述第一使用时间段为所述第一使用时间段集合中的任一个使用时间段。Optionally, the processing module 603 is specifically configured to: update the start time of the first sleep time period to the first use time period when the first use time period satisfies the sleep-onset correction rule Time end point; in the case that the first use time period satisfies the falling asleep correction rule, update the end time of the first sleep time period to the time start point of the first use time period; in the first use time period In the case that the time period does not satisfy the falling asleep correction rule and the falling asleep correction rule, delete the sleep time period corresponding to the first use time period from the first sleep time period; wherein the first use time period The time period is any one use time period in the first set of use time periods.

可选地,所述入睡校正规则包括以下至少一项:所述起始时间位于所述第一使用时间段之间,所述第一使用时间段的时间起点与所述起始时间之间的时间差小于第一阈值;所述出睡校正规则包括以下至少一项:所述终止时间位于所述第一使用时间段之间,所述第一使用时间段的时间终点与所述终止时间之间的时间差小于第二阈值。Optionally, the sleep onset correction rule includes at least one of the following: the start time is between the first use time periods, and the time start point of the first use time period is between the start time. The time difference is less than a first threshold; the falling asleep correction rule includes at least one of the following: the termination time is located between the first use time periods, and the time end point of the first use time period is between the termination time The time difference is less than the second threshold.

可选地,所述获取模块601,还用于获取所述电子设备在所述第一历史时间段的运行信息,所述运行信息包括以下至少一项:亮屏时间、接收用户输入时间以及前台应用的运行状态;所述处理模块603,还用于根据所述运行信息确定所述历史使用数据。Optionally, the obtaining module 601 is further configured to obtain operation information of the electronic device in the first historical time period, where the operation information includes at least one of the following: screen-on time, user input time, and foreground the running state of the application; the processing module 603 is further configured to determine the historical usage data according to the running information.

在本申请实施例中,一方面,由于第一睡眠数据为电子设备与穿戴设备处于非通信连接状态时穿戴设备获取的数据、历史使用数据包括电子设备与穿戴设备处于非通信连接状态时电子设备获取的数据,因此,即使处于电子设备与穿戴设备的断连场景,也可以实现两种数据的记录;另一方面,由于可以根据历史使用数据对第一睡眠数据进行校准处理,从而使第二睡眠数据中包括的睡眠总时长小于或等于第一睡眠数据中包括的睡眠总时长,也就是说,可以根据电子设备的历史使用数据从第一睡眠数据中剔除用户使用电子设备的时长,因此,第二睡眠数据的准确率高于第一睡眠数据的准确率。In the embodiments of the present application, on the one hand, since the first sleep data is data obtained by the wearable device when the electronic device and the wearable device are in a non-communication connection state, the historical usage data includes the electronic device when the electronic device and the wearable device are in a non-communication connection state Therefore, even in the disconnected scene between the electronic device and the wearable device, two kinds of data can be recorded; on the other hand, since the first sleep data can be calibrated according to the historical usage data, the second The total sleep duration included in the sleep data is less than or equal to the total sleep duration included in the first sleep data, that is, the duration of the user's use of the electronic device can be excluded from the first sleep data according to the historical usage data of the electronic device. Therefore, The accuracy rate of the second sleep data is higher than that of the first sleep data.

本申请实施例中的睡眠数据校准装置可以是电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobilepersonal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The sleep data calibration apparatus in this embodiment of the present application may be an electronic device, or may be a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices other than the terminal. Exemplarily, the electronic device may be a mobile phone, a tablet computer, a notebook computer, a PDA, a vehicle electronic device, a Mobile Internet Device (MID), an augmented reality (AR)/virtual reality (VR) ) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook or personal digital assistant (PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS) ), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., which are not specifically limited in the embodiments of the present application.

本申请实施例中的睡眠数据校准装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The sleep data calibration device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.

本申请实施例提供的睡眠数据校准装置能够实现图1至图5的方法实施例实现的各个过程,为避免重复,这里不再赘述。The sleep data calibration apparatus provided in this embodiment of the present application can implement each process implemented by the method embodiments in FIG. 1 to FIG. 5 , and to avoid repetition, details are not repeated here.

可选地,如图7所示,本申请实施例还提供一种电子设备700,包括处理器701和存储器702,存储器702上存储有可在所述处理器701上运行的程序或指令,该程序或指令被处理器701执行时实现上述睡眠数据校准方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 7 , an embodiment of the present application further provides an electronic device 700, including a processor 701 and a memory 702. The memory 702 stores programs or instructions that can run on the processor 701. When the program or instruction is executed by the processor 701, each step of the above embodiment of the sleep data calibration method is implemented, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.

需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.

图8为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.

该电子设备1000包括但不限于:射频单元1001、网络模块1002、音频输出单元1003、输入单元1004、传感器1005、显示单元1006、用户输入单元1007、接口单元1008、存储器1009、以及处理器1010等部件。The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010, etc. part.

本领域技术人员可以理解,电子设备1000还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1010逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图8中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 1000 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so that the power management system can manage charging, discharging, and power functions. consumption management and other functions. The structure of the electronic device shown in FIG. 8 does not constitute a limitation on the electronic device. The electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .

其中,传感器1005,用于获取电子设备的历史使用数据。The sensor 1005 is used to acquire historical usage data of the electronic device.

射频单元1001,用于在所述电子设备与穿戴设备处于通信连接状态的情况下,接收所述穿戴设备发送的第一睡眠数据;A radio frequency unit 1001, configured to receive first sleep data sent by the wearable device when the electronic device and the wearable device are in a communication connection state;

处理器1010,用于根据所述历史使用数据对所述第一睡眠数据进行校准处理,得到第二睡眠数据;其中,所述第一睡眠数据为所述穿戴设备获取的用户在第一历史时间段的睡眠数据,所述历史使用数据包括所述电子设备获取的所述用户在所述第一历史时间段内对所述电子设备的使用数据,所述电子设备与所述穿戴设备在所述第一历史时间段内未处于通信连接状态,所述第二睡眠数据中包括的睡眠总时长小于或等于所述第一睡眠数据中包括的睡眠总时长。The processor 1010 is configured to perform calibration processing on the first sleep data according to the historical usage data to obtain second sleep data; wherein the first sleep data is obtained by the wearable device at the first historical time of the user sleep data of a period of time, the historical usage data includes usage data of the electronic device acquired by the electronic device by the user in the first historical time period, and the electronic device and the wearable device are in the The communication connection state is not in the first historical time period, and the total sleep duration included in the second sleep data is less than or equal to the total sleep duration included in the first sleep data.

在本申请实施例中,一方面,由于第一睡眠数据为电子设备与穿戴设备处于非通信连接状态时穿戴设备获取的数据、历史使用数据包括电子设备与穿戴设备处于非通信连接状态时电子设备获取的数据,因此,即使处于电子设备与穿戴设备的断连场景,也可以实现两种数据的记录;另一方面,由于可以根据历史使用数据对第一睡眠数据进行校准处理,从而使第二睡眠数据中包括的睡眠总时长小于或等于第一睡眠数据中包括的睡眠总时长,也就是说,可以根据电子设备的历史使用数据从第一睡眠数据中剔除用户使用电子设备的时长,因此,第二睡眠数据的准确率高于第一睡眠数据的准确率。In the embodiments of the present application, on the one hand, since the first sleep data is data obtained by the wearable device when the electronic device and the wearable device are in a non-communication connection state, the historical usage data includes the electronic device when the electronic device and the wearable device are in a non-communication connection state Therefore, even in the disconnected scene between the electronic device and the wearable device, two kinds of data can be recorded; on the other hand, since the first sleep data can be calibrated according to the historical usage data, the second The total sleep duration included in the sleep data is less than or equal to the total sleep duration included in the first sleep data, that is, the duration of the user's use of the electronic device can be excluded from the first sleep data according to the historical usage data of the electronic device. Therefore, The accuracy rate of the second sleep data is higher than that of the first sleep data.

可选地,所述第一睡眠数据包括第一睡眠时间段的起始时间和终止时间;处理器1010,具体用于:根据第一睡眠时间段从所述历史使用数据中确定第一使用时间段集合,所述第一使用时间段集合包括至少一个使用时间段,且每个所述使用时间段均与所述第一睡眠时间段在时间上存在至少部分重合;分别根据每个使用时间段对所述第一睡眠时间段的起始时间、终止时间、以及所述起始时间和所述终止时间之间的睡眠时间进行校准处理。Optionally, the first sleep data includes a start time and an end time of the first sleep time period; the processor 1010 is specifically configured to: determine the first use time from the historical use data according to the first sleep time period a set of segments, the first set of use time segments includes at least one use time segment, and each of the use time segments at least partially overlaps with the first sleep time segment; A calibration process is performed on a start time, an end time, and a sleep time between the start time and the end time of the first sleep period.

在本申请实施例中,由于可以根据第一使用时间段集合中的每个使用时间段对第一睡眠时间段的起始时间、终止时间以及中间睡眠时间段进行校正,因此可以结合电子设备的历史使用数据对穿戴设备获取的睡眠时间进行校正,从而使第二睡眠数据中的睡眠时间段更接近用户的真实睡眠时间段。In this embodiment of the present application, since the start time, end time, and intermediate sleep time period of the first sleep time period can be corrected according to each use time period in the first use time period set, the The historical usage data is used to correct the sleep time acquired by the wearable device, so that the sleep time period in the second sleep data is closer to the user's real sleep time period.

可选地,处理器1010,具体用于:在第一使用时间段满足入睡校正规则的情况下,将所述第一睡眠时间段的起始时间更新为所述第一使用时间段的时间终点;在所述第一使用时间段满足出睡校正规则的情况下,将所述第一睡眠时间段的终止时间更新为所述第一使用时间段的时间起点;在所述第一使用时间段不满足所述入睡校正规则和所述出睡校正规则的情况下,从所述第一睡眠时间段中删除所述第一使用时间段对应的睡眠时间段;其中,所述第一使用时间段为所述第一使用时间段集合中的任一个使用时间段。Optionally, the processor 1010 is specifically configured to: update the start time of the first sleep time period to the time end point of the first use time period under the condition that the first use time period satisfies the sleep-onset correction rule ; Under the condition that the first use time period satisfies the falling asleep correction rule, update the termination time of the first sleep time period to the time starting point of the first use time period; in the first use time period In the case where the falling asleep correction rule and the falling asleep correction rule are not satisfied, delete the sleep time period corresponding to the first use time period from the first sleep time period; wherein, the first use time period It is any one use time period in the first set of use time periods.

在本申请实施例中,由于可以根据入睡校正规则和出睡校正规则对第一睡眠时间段的起始时间、终止时间以及中间睡眠时间段进行校正,因此可以使第二睡眠数据中的睡眠时间段更接近用户的真实睡眠时间段。In this embodiment of the present application, since the start time, end time, and intermediate sleep time period of the first sleep period can be corrected according to the sleep-onset correction rule and the sleep-off correction rule, the sleep time period in the second sleep data can be adjusted accordingly. The period is closer to the user's real sleep period.

可选地,传感器1005,还用于获取所述电子设备在所述第一历史时间段的运行信息,所述运行信息包括以下至少一项:亮屏时间、接收用户输入时间以及前台应用的运行状态;处理器1010,还用于根据所述运行信息确定所述历史使用数据。Optionally, the sensor 1005 is further configured to acquire operation information of the electronic device in the first historical time period, where the operation information includes at least one of the following: screen-on time, time of receiving user input, and operation of foreground applications The processor 1010 is further configured to determine the historical usage data according to the running information.

在本申请实施例中,由于电子设备可以根据电子设备在第一历史时间段的运行信息确定历史使用数据,因此,可以为电子设备根据历史使用数据对第一睡眠数据进行校准处理提供基础。In this embodiment of the present application, since the electronic device can determine the historical usage data according to the operation information of the electronic device in the first historical time period, it can provide a basis for the electronic device to perform calibration processing on the first sleep data according to the historical usage data.

应理解的是,本申请实施例中,输入单元1004可以包括图形处理器(GraphicsProcessing Unit,GPU)10041和麦克风10042,图形处理器10041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1006可包括显示面板10061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板10061。用户输入单元1007包括触控面板10071以及其他输入设备10072中的至少一种。触控面板10071,也称为触摸屏。触控面板10071可包括触摸检测装置和触摸控制器两个部分。其他输入设备10072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。It should be understood that, in this embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042. camera) to process the image data of still pictures or videos. The display unit 1006 may include a display panel 10061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072 . The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.

存储器1009可用于存储软件程序以及各种数据。存储器1009可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器1009可以包括易失性存储器或非易失性存储器,或者,存储器1009可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器1009包括但不限于这些和任意其它适合类型的存储器。The memory 1009 may be used to store software programs as well as various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, image playback function, etc.), etc. Further, memory 1009 may include volatile memory or non-volatile memory, or memory 1009 may include both volatile and non-volatile memory. Wherein, the non-volatile memory may be Read-Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (Erasable PROM, EPROM), Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous random access memory) DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synch link DRAM) , SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM). The memory 1009 in this embodiment of the present application includes, but is not limited to, these and any other suitable types of memory.

处理器1010可包括一个或多个处理单元;可选的,处理器1010集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器1010中。The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations involving an operating system, a user interface, and an application program, etc. Modem processors mainly deal with wireless communication signals, such as baseband processors. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 1010.

本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述睡眠数据校准方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the above-mentioned embodiment of the sleep data calibration method is implemented, and can achieve The same technical effect, in order to avoid repetition, will not be repeated here.

其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device described in the foregoing embodiments. The readable storage medium includes a computer-readable storage medium, such as computer read-only memory ROM, random access memory RAM, magnetic disk or optical disk, and the like.

本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述睡眠数据校准方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement the above embodiment of the sleep data calibration method and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.

应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.

本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述睡眠数据校准方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiments of the present application provide a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the various processes in the above-mentioned embodiments of the sleep data calibration method, and can achieve the same technology The effect, in order to avoid repetition, is not repeated here.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in the reverse order depending on the functions involved. To perform functions, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to some examples may be combined in other examples.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present application can be embodied in the form of computer software products that are essentially or contribute to related technologies, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) execute the methods described in the various embodiments of this application.

上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.

Claims (11)

1. A method of sleep data calibration, comprising:
acquiring historical use data of the electronic equipment;
under the condition that the electronic equipment and the wearable equipment are in a communication connection state, receiving first sleep data sent by the wearable equipment;
calibrating the first sleep data according to the historical use data to obtain second sleep data;
the first sleep data are sleep data of a user in a first historical time period, which are acquired by the wearable device, the historical use data comprise use data of the user on the electronic device in the first historical time period, which are acquired by the electronic device, the electronic device and the wearable device are not in a communication connection state in the first historical time period, and the total sleep duration included in the second sleep data is less than or equal to the total sleep duration included in the first sleep data.
2. The sleep data calibration method as claimed in claim 1, wherein the first sleep data includes a start time and an end time of a first sleep period; the calibrating the first sleep data according to the historical usage data includes:
determining a first set of usage periods from the historical usage data as a function of the first sleep period, the first set of usage periods including at least one usage period, and each of the usage periods being at least partially coincident in time with the first sleep period;
and respectively carrying out calibration processing on the starting time and the ending time of the first sleep time period and the sleep time between the starting time and the ending time according to each use time period.
3. The sleep data calibration method as claimed in claim 2, wherein the calibration processing of the start time, the end time, and the sleep time between the start time and the end time of the first sleep period according to the each usage period respectively comprises:
updating a start time of a first sleep period to a time end of the first use period if the first use period satisfies a sleep onset correction rule;
updating an end time of the first sleep period to a time start of the first use period if the first use period satisfies a sleep out correction rule;
deleting the sleep time period corresponding to the first usage time period from the first sleep time period when the first usage time period does not satisfy the sleep-in correction rule and the sleep-out correction rule;
wherein the first usage period is any one of the first set of usage periods.
4. The sleep data calibration method as claimed in claim 3, wherein the fall asleep correction rules comprise at least one of: the starting time is positioned between the first using time periods, and the time difference between the time starting point of the first using time period and the starting time is smaller than a first threshold value;
the out-of-sleep correction rules include at least one of: the termination time is located between the first periods of use, and the time difference between the end of time of the first periods of use and the termination time is less than a second threshold.
5. The sleep data calibration method as claimed in any one of claims 1 to 4, wherein the obtaining of historical usage data of the electronic device comprises:
acquiring operation information of the electronic equipment in the first historical time period, wherein the operation information comprises at least one of the following items: the method comprises the steps of displaying on the screen for a time, receiving user input time and the running state of foreground application;
and determining the historical use data according to the operation information.
6. A sleep data calibration apparatus, comprising: the device comprises an acquisition module, a receiving module and a processing module;
the acquisition module is used for acquiring historical use data of the electronic equipment;
the receiving module is used for receiving first sleep data sent by the wearable device under the condition that the electronic device and the wearable device are in a communication connection state;
the processing module is used for calibrating the first sleep data according to the historical use data to obtain second sleep data;
the first sleep data is sleep data of a user in a first historical time period, the sleep data is acquired by the wearable device, the historical use data comprises use data of the user on the electronic device in the first historical time period, the use data is acquired by the electronic device, the electronic device and the wearable device are not in a communication connection state in the first historical time period, and total sleep duration included in the second sleep data is smaller than or equal to total sleep duration included in the first sleep data.
7. The sleep data calibration apparatus as claimed in claim 6, wherein the first sleep data includes a start time and an end time of a first sleep period; the processing module is specifically configured to:
determining a first set of usage periods from the historical usage data as a function of the first sleep period, the first set of usage periods including at least one usage period, and each of the usage periods being at least partially coincident in time with the first sleep period;
and respectively carrying out calibration processing on the starting time and the ending time of the first sleep time period and the sleep time between the starting time and the ending time according to each use time period.
8. The sleep data calibration device according to claim 7, wherein the processing module is specifically configured to:
updating a start time of a first sleep period to a time end of the first use period in a case where the first use period satisfies a sleep onset correction rule;
updating an end time of the first sleep period to a time start of the first use period if the first use period satisfies a sleep out correction rule;
deleting the sleep time period corresponding to the first usage time period from the first sleep time period when the first usage time period does not satisfy the sleep-in correction rule and the sleep-out correction rule;
wherein the first usage period is any one of the first set of usage periods.
9. The sleep data calibration device as set forth in claim 8, wherein the fall asleep correction rules comprise at least one of: the starting time is positioned between the first using time periods, and the time difference between the time starting point of the first using time periods and the starting time is smaller than a first threshold value;
the out-of-sleep correction rules include at least one of: the termination time is located between the first periods of use, and the time difference between the end of time of the first periods of use and the termination time is less than a second threshold.
10. The sleep data calibration apparatus as set forth in any one of claims 6 to 9,
the obtaining module is further configured to obtain operation information of the electronic device in the first historical time period, where the operation information includes at least one of: the method comprises the steps of displaying on the screen for a time, receiving user input time and the running state of foreground application;
the processing module is further configured to determine the historical usage data according to the operation information.
11. An electronic device comprising a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions when executed by the processor implementing the sleep data calibration method as claimed in any one of claims 1 to 5.
CN202210503553.3A 2022-05-09 2022-05-09 Sleep data calibration method and electronic equipment Pending CN114974495A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210503553.3A CN114974495A (en) 2022-05-09 2022-05-09 Sleep data calibration method and electronic equipment
PCT/CN2023/092981 WO2023217137A1 (en) 2022-05-09 2023-05-09 Sleep data calibration method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210503553.3A CN114974495A (en) 2022-05-09 2022-05-09 Sleep data calibration method and electronic equipment

Publications (1)

Publication Number Publication Date
CN114974495A true CN114974495A (en) 2022-08-30

Family

ID=82980730

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210503553.3A Pending CN114974495A (en) 2022-05-09 2022-05-09 Sleep data calibration method and electronic equipment

Country Status (2)

Country Link
CN (1) CN114974495A (en)
WO (1) WO2023217137A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023217137A1 (en) * 2022-05-09 2023-11-16 维沃移动通信有限公司 Sleep data calibration method and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105045386A (en) * 2015-06-30 2015-11-11 广东美的制冷设备有限公司 Sleeping state monitoring method, sleeping state monitoring terminal and air conditioner system
CN110151137A (en) * 2019-05-28 2019-08-23 深圳如一探索科技有限公司 Sleep state monitoring method, device, equipment and medium based on data fusion
CN110742580A (en) * 2019-09-18 2020-02-04 华为技术有限公司 Sleep state identification method and device
CN112401838A (en) * 2020-11-16 2021-02-26 上海创功通讯技术有限公司 Method for detecting sleep state of wearable device and wearable device
CN114343587A (en) * 2020-09-29 2022-04-15 Oppo广东移动通信有限公司 Sleep monitoring method, apparatus, electronic device, and computer-readable medium
CN115137308A (en) * 2022-06-29 2022-10-04 东莞市猎声电子科技有限公司 Method for improving accuracy of in-out sleep detection in sleep algorithm of intelligent wearable device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102422115B1 (en) * 2015-02-12 2022-07-18 삼성전자주식회사 Electronic device for inputting sleeping information and method for controlling thereof
CN108030467B (en) * 2017-11-22 2021-07-02 广东思派康电子科技有限公司 Electronic wristband and computer-readable storage medium
CN114974495A (en) * 2022-05-09 2022-08-30 维沃移动通信有限公司 Sleep data calibration method and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105045386A (en) * 2015-06-30 2015-11-11 广东美的制冷设备有限公司 Sleeping state monitoring method, sleeping state monitoring terminal and air conditioner system
CN110151137A (en) * 2019-05-28 2019-08-23 深圳如一探索科技有限公司 Sleep state monitoring method, device, equipment and medium based on data fusion
CN110742580A (en) * 2019-09-18 2020-02-04 华为技术有限公司 Sleep state identification method and device
CN114343587A (en) * 2020-09-29 2022-04-15 Oppo广东移动通信有限公司 Sleep monitoring method, apparatus, electronic device, and computer-readable medium
CN112401838A (en) * 2020-11-16 2021-02-26 上海创功通讯技术有限公司 Method for detecting sleep state of wearable device and wearable device
CN115137308A (en) * 2022-06-29 2022-10-04 东莞市猎声电子科技有限公司 Method for improving accuracy of in-out sleep detection in sleep algorithm of intelligent wearable device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023217137A1 (en) * 2022-05-09 2023-11-16 维沃移动通信有限公司 Sleep data calibration method and electronic device

Also Published As

Publication number Publication date
WO2023217137A1 (en) 2023-11-16

Similar Documents

Publication Publication Date Title
CN107272872B (en) Power saving control method and related product
CN107767839B (en) Brightness adjustment method and related products
US20170302090A1 (en) Method and apparatus for protecting battery
CN108135033B (en) Bluetooth connection method and mobile terminal
KR102540111B1 (en) Electronic device and method for operating electronic device
RU2613028C2 (en) Method and device for file backup
CN105933537B (en) A kind of volume processing method and user terminal
KR20150129423A (en) Electronic Device And Method For Recognizing Gestures Of The Same
CN110147380B (en) Data update method, device, server and storage medium
CN106127152B (en) A fingerprint template update method and terminal device
CN105981365A (en) Electronic device photographing method and electronic device thereof
CN108762814A (en) Screen lightening method and related equipment
CN110837343A (en) Snapshot processing method and device and terminal
CN110767950B (en) Charging method, device, terminal device and computer-readable storage medium
KR20160001438A (en) Apparatas and method for preventing malfunction in an electronic device
CN106598704A (en) Application program recovery method and apparatus
CN114974495A (en) Sleep data calibration method and electronic equipment
CN111443803A (en) Mode switching method, device, storage medium and mobile terminal
CN111240729A (en) Software update method, electronic device and medium
KR20160026500A (en) Method for transmitting call disconnection message of electronic apparatus and electronic apparatus thereof
CN108170360B (en) Control method of gesture function and mobile terminal
CN115311974A (en) Screen brightness adjustment method and device, storage medium and electronic device
CN111556248B (en) Shooting method, shooting device, storage medium and mobile terminal
CN110706158B (en) Image processing method, image processing device and terminal equipment
CN112509510A (en) Brightness adjusting method and device and electronic equipment

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