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
historical
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)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Public Health (AREA)
  • Engineering & Computer Science (AREA)
  • Molecular Biology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Surgery (AREA)
  • Animal Behavior & Ethology (AREA)
  • Physics & Mathematics (AREA)
  • Pathology (AREA)
  • Veterinary Medicine (AREA)
  • Epidemiology (AREA)
  • Primary Health Care (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 equipment
Technical Field
The application belongs to the technical field of electronics, and particularly relates to a sleep data calibration method and electronic equipment.
Background
Along with the continuous upgrading of electronic technology product, the function of wearing equipment is more and more close to people's life, for example, people can monitor own sleep condition through wearing equipment.
In the related art, people mostly have a habit of using electronic equipment before sleeping, when a user uses the electronic equipment, the body of the user is in a relatively stable state, and the wearable device may identify a time period when the user uses the electronic equipment as a sleep time period, so that the accuracy of sleep data obtained by a sleep monitoring method in the related art is low.
Disclosure of Invention
An object 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 a sleep monitoring method in the related art.
In a first aspect, an embodiment of the present application provides a sleep data calibration method, including: 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.
In a second aspect, an embodiment of the present application provides a sleep data calibration apparatus, including: 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.
In a third aspect, embodiments of the present application provide an electronic device, which includes a processor and a memory, where the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product, stored on a storage medium, for execution by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, historical use data of the electronic equipment can be acquired; 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. According to the scheme, on one hand, the first sleep data are data acquired by the wearable device when the electronic device and the wearable device are in a non-communication connection state, and the historical use data comprise data acquired by the electronic device when the electronic device and the wearable device are in the non-communication connection state, so that the two data can be recorded even in a disconnection scene of the electronic device and the wearable device; on the other hand, since the first sleep data can be calibrated according to the historical usage data, so that 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, that is, the duration of the electronic device used by the user can be eliminated from the first sleep data according to the historical usage data of the electronic device, the accuracy of the second sleep data is higher than that of the first sleep data.
Drawings
Fig. 1 is a schematic flowchart of a sleep data calibration method according to an embodiment of the present application;
fig. 2 is a second flowchart illustrating a sleep data calibration method according to an embodiment of the present application;
fig. 3 is a third schematic flowchart of a sleep data calibration method according to an embodiment of the present application;
fig. 4(a) is a schematic diagram illustrating a calibration method of a sleep data calibration method according to an embodiment of the present application;
fig. 4(b) is a second schematic diagram illustrating a calibration method of the sleep data calibration method according to the embodiment of the present application;
fig. 5 is a third schematic view illustrating a calibration method of a sleep data calibration method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a sleep data calibration apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 8 is a hardware schematic diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The sleep data calibration method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
According to the sleep data calibration method provided by the embodiment of the present application, an execution subject of the sleep data calibration method may be an electronic device or a functional module or a functional entity capable of implementing the sleep data calibration method in the electronic device, the electronic device mentioned in the embodiment of the present application includes, but is not limited to, a mobile phone, a tablet computer, a camera, a wearable device, and the like, and the sleep data calibration method provided by the embodiment of the present application is described below with the electronic device as the execution subject.
As shown in fig. 1, an embodiment of the present application provides a sleep data calibration method, which may include steps 101 to 103:
step 101, the electronic device obtains historical use data of the electronic device.
The historical use data comprises use data of the electronic equipment acquired by the electronic equipment and used by the user in a first historical time period, and the electronic equipment and the wearable equipment are not in a communication connection state in the first historical time period.
Optionally, the electronic device and the wearable device are in a non-communication connection state, which means that bidirectional information communication cannot be achieved between the electronic device and the wearable device, that is, an off-connection state.
Optionally, the first historical time period may be the longest historical time period that the wearable device can record; it may also be a preset sleep recording period, for example, it may be 12 hours or 24 hours; it may also be a time period determined by the user through input.
Optionally, the acquiring, by the electronic device, historical usage data of the electronic device may specifically include: obtaining 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 brightening the screen, receiving user input time and the running state of foreground application; and determining the historical use data according to the operation information.
Optionally, the historical usage data may include at least time information of the user using the electronic device.
Illustratively, if the electronic device is in a first time period (t) 1 ,t 2 ) In a bright screen state for a second period of time (t) 3 ,t 4 ) Receiving the touch input of the user, the foreground of the electronic equipment is applied in a third time period (t) 5 ,t 6 ) In a continuous operation state, the electronic device may keep the first time period (t) 1 ,t 2 ) A second time period (t) 3 ,t 4 ) And a third period of time (t) 5 ,t 6 ) The time period for the user to use the electronic device, i.e., the historical usage data, is determined.
Based on the scheme, since the electronic device can determine the historical use data according to the operation information of the electronic device in the first historical time period, a basis can be provided for the electronic device to perform calibration processing on the first sleep data according to the historical use data.
102, receiving first sleep data sent by the wearable device by the electronic device under the condition that the electronic device and the wearable device are in a communication connection state.
The first sleep data is sleep data of the user in a first historical time period, which is acquired by the wearable device.
Alternatively, the wearable device refers to a portable device that can be worn directly on the user or integrated into the clothing or accessories of the user. For example, the wearable device may be a smart watch, a bracelet, an electronic sock, glasses, or the like.
Optionally, the electronic device and the wearable device being 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 may be in a bluetooth connection state, and may also be in the same local area network at the same time.
Optionally, before receiving the first sleep data, the wearable device may record the sleep data with the wearable device in a worn state. That is, when the wearable device detects that it is currently worn by the user, it may start recording sleep data of the user.
Optionally, when the user wants to check the sleep data of the user, the electronic device may be triggered to perform communication connection with the wearable device, and then, the electronic device may receive the first sleep data in a preset manner under the condition that the electronic device is in a communication connection state with the wearable device, where the preset manner may be a user triggering manner or an automatic acquisition manner.
For example, when the preset mode is a user triggering mode, a user may perform a first input on the electronic device under the condition that the electronic device and the wearable device are in a communication connection state, the electronic device may send data request information to the wearable device in response to the first input, the wearable device may send first sleep data to the electronic device in response to the data request information, and accordingly, the electronic device may receive the first sleep data from the wearable device; when the preset mode is an automatic acquisition mode, the electronic device may automatically send the data request information to the wearable device after the communication connection with the wearable device is successfully performed, or may automatically send the data request information to the wearable device after the communication connection with the wearable device is successfully performed for a preset time, so that the wearable device responds to the data request information and sends the first sleep data to the electronic device.
Step 103, the electronic device performs calibration processing on the first sleep data according to the historical use 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 first sleep data may include a start time and an end time of the first sleep time period; the electronic device performs calibration processing on the first sleep data according to the historical usage data, and specifically may include: determining, by the electronic device, a first set of usage periods from the historical usage data according to a 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; after that, the electronic device may perform calibration processing on the start time and the end time of the first sleep period and the sleep time between the start time and the end time according to each usage period, respectively.
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:
step 201, the electronic device may determine a first sleep period(s) of the user according to the first sleep data 1 ,s 2 )。
Wherein s is 1 As starting time, s 2 Is the end time.
In step 202, the electronic device can determine a first set of usage periods [ (t) from historical usage data based on a first sleep period 1 ,t 2 ),(t 3 ,t 4 ),……(t n-1 ,t n )]。
Wherein each time period of use in the first set of time periods of use is associated with a first sleep period(s) 1 ,s 2 ) In thatThere is at least partial overlap in time. For example, if the first sleep period is 22:00-7:00, one of the first set of usage periods may be 21:30-22: 30.
Step 203, the electronic device may couple a first sleep period(s) according to each usage period 1 ,s 2 ) Start time s of 1 End time s 2 And performing calibration processing on the sleep time between the starting time and the ending time.
Based on the scheme, since the starting time, the ending time and the 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 sleep time acquired by the wearable device can be corrected by combining the historical use data of the electronic device, so that the sleep time period in the second sleep data is closer to the real sleep time period of the user.
Optionally, the electronic device performs calibration processing on the start time and the end time of the first sleep time period and the sleep time between the start time and the end time according to each usage time period, which may specifically include: 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.
In particular, as shown in fig. 3, according to a first period of use (t) i ,t i+1 ) For the first sleep period(s) 1 ,s 2 ) Start time s of 1 End time s 2 And the starting time andfor example, the sleep time between the end times is calibrated, i is any integer of (1, n-1), and the step 203 may include steps 203a to 203 e:
in step 203a, the electronic device may first determine a first usage period (t) i ,t i+1 ) Whether the sleep onset correction rule is satisfied;
step 203b, if the sleep-in correction rule is satisfied, the electronic device may start the time s 1 Updating to the first usage period (t) i ,t i+1 ) Time end point t of i+1
Step 203c, if the sleep correction rule is not satisfied, the electronic device may continue to determine the first usage period (t) i ,t i+1 ) Whether the out-of-sleep correction rules are satisfied;
step 203d, if the out-of-sleep correction rule is satisfied, the electronic device may terminate the time s 2 Updating to the first usage period (t) i ,t i+1 ) At the time of starting t i
Step 203e, if the out-of-sleep correction rule is not satisfied, the electronic device may go from the first sleep period(s) 1 ,s 2 ) In deleting the first period of use (t) i ,t i+1 ) Corresponding sleep time periods, thereby obtaining second sleep data.
Optionally, the sleep time periods in the second sleep data may be continuous sleep time periods or discontinuous sleep time periods, for example, when the electronic device starts from the first sleep time period(s) 1 ,s 2 ) In deleting the first period of use (t) i ,t i+1 ) The sleep period in the second sleep data may include(s) after the corresponding sleep period 1 ,t i ) And (t) i+1 ,s 2 )。
Based on the above-described scheme, since the start time, the end time, and the intermediate sleep period of the first sleep period can be corrected according to the sleep-in correction rule and the sleep-out correction rule, the sleep period in the second sleep data can be made closer to the real sleep period of the user.
Optionally, the sleep-onset correction rule may include at least one of: the starting time is located between the first usage periods, and the time difference between the starting time and the time of the first usage periods is smaller than a first threshold.
Illustratively, in the case where the fall asleep correction rule includes that the start time is between the first usage periods, referring to (a) in fig. 4, the first usage period included in the first usage period set is (t) 1 ,t 2 ) For example, if the electronic device determines t 1 <s 1 <t 2 I.e. starting time s 1 In a first period of use (t) 1 ,t 2 ) Then the electronic device may start the time s 1 Is updated to t 2 . In the case where the sleep onset correction rule includes that the time difference between the time start point and the start time of the first usage period is less than the first threshold value, referring to (b) in fig. 4, the first usage period included in the first usage period set is (t) t 3 ,t 4 ) For example, if the electronic device determines the time start t of the first usage period 3 And starting time s 1 Time difference (t) between 3 -s 1 ) Less than the first threshold, the electronic device may start time s 1 Is updated to t 4
Optionally, the fall-asleep correction rules include: when the starting time is between the first usage periods, and the time difference between the starting time of the first usage periods and the starting time is smaller than a first threshold, the electronic device may determine whether the starting time is between the first usage periods, and then determine whether the time difference between the starting time of the first usage periods and the starting time is smaller than the first threshold.
Optionally, the going-to-sleep correction rule includes 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.
Illustratively, the out-of-sleep correction rule includes a termination time at a first useIn the case between time periods, with continued reference to (a) in fig. 4, the first usage time period included in the first usage time period set is (t) 5 ,t 6 ) For example, if the electronic device determines t 5 <s 2 <t 6 I.e. the end time s 2 In a first period of use (t) 5 ,t 6 ) Then the electronic device may terminate the time s 2 Is updated to t 5 . In the case where the out-of-sleep correction rule includes that the time difference between the time end point and the termination time of the first usage period is less than the second threshold value, continuing to refer to (b) in fig. 4, the first usage period included in the first usage period set is (t) t 7 ,t 8 ) For example, if the electronic device determines the time end t of the first usage period 8 And a termination time s 2 Time difference(s) between 2 -t 8 ) Less than the second threshold, the electronic device may terminate the time s 2 Is updated to t 7
Optionally, the out-of-sleep correction rules include: when the ending time is between the first usage periods and the time difference between the time end of the first usage period and the ending time is less than the second threshold, the electronic device may determine whether the ending time is between the first usage periods, and then determine whether the time difference between the time end of the first usage period and the ending time is less than the second threshold.
The electronic device correcting the first sleep period according to the first set of usage periods is described in detail below by way of a general example.
Illustratively, as shown in fig. 5, the first sleep time period is(s) 1 ,s 2 ) The first set of usage periods comprises a usage period (t) 1 ,t 2 ) Time period of use (t) 3 ,t 4 ) Time period of use (t) 5 ,t 6 ) For example. Due to the period of use (t) 1 ,t 2 ) Satisfies the sleep-in correction rule, so that the electronic device can start the time s 1 Is updated to t 2 . Due to the period of use (t) 5 ,t 6 ) Satisfy the requirement ofGo out of sleep to correct the rules, so the electronic device can end the time s 2 Is updated to t 5 . Due to the period of use (t) 3 ,t 4 ) Neither the fall asleep nor the fall asleep correction rules are satisfied, and thus the electronic device can fall from the first sleep period(s) 1 ,s 2 ) Delete the use period (t) 3 ,t 4 ) The sleep time period in the finally obtained second sleep data may be (t) corresponding to the sleep time period 2 ,t 3 ) And (t) 4 ,t 5 )。
In the embodiment of the application, on one hand, the first sleep data is data acquired by the wearable device when the electronic device and the wearable device are in a non-communication connection state, and the historical use data includes data acquired by the electronic device when the electronic device and the wearable device are in the non-communication connection state, so that even in a disconnection scene of the electronic device and the wearable device, the recording of the two data can be realized; on the other hand, since the first sleep data can be calibrated according to the historical use data, so that the total sleep time length included in the second sleep data is less than or equal to the total sleep time length included in the first sleep data, that is, the time length of the user using the electronic equipment can be removed from the first sleep data according to the historical use data of the electronic equipment, the accuracy of the second sleep data is higher than that of the first sleep data.
According to the sleep data calibration method provided by the embodiment of the application, the execution main body can be a sleep data calibration device. In the embodiment of the present application, a method for performing sleep data calibration by using a sleep data calibration apparatus is taken as an example, and the sleep data calibration apparatus provided in the embodiment of the present application is described.
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 obtaining module 601 is configured to obtain historical usage data of the electronic device; the receiving module 602 is 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; the processing module 603 is configured to perform calibration processing on the first sleep data according to the historical usage 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.
Optionally, the first sleep data comprises a start time and an end time of a first sleep period; the processing module 603 is specifically configured to: determining a first set of usage periods from the historical usage data as a function of a 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.
Optionally, the processing module 603 is specifically configured to: 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.
Optionally, 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 usage periods, and the time difference between the time end of the first usage period and the termination time is less than a second threshold.
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 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 603 is further configured to determine the historical usage data according to the operation information.
In the embodiment of the application, on one hand, the first sleep data is data acquired by the wearable device when the electronic device and the wearable device are in a non-communication connection state, and the historical use data includes data acquired by the electronic device when the electronic device and the wearable device are in the non-communication connection state, so that even in a disconnection scene of the electronic device and the wearable device, the recording of the two data can be realized; on the other hand, since the first sleep data can be calibrated according to the historical usage data, so that 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, that is, the duration of the electronic device used by the user can be eliminated from the first sleep data according to the historical usage data of the electronic device, the accuracy of the second sleep data is higher than that of the first sleep data.
The sleep data calibration apparatus in the 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 a device other than a terminal. The electronic Device may be, for example, a Mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic Device, a Mobile Internet Device (MID), an Augmented Reality (AR)/Virtual Reality (VR) Device, a robot, a wearable Device, an ultra-Mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and may also be a server, a Network Attached Storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), an assistant, or a self-service machine, and the embodiments of the present application are not limited in particular.
The sleep data calibration apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The sleep data calibration device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to 5, and is not described here again to avoid repetition.
Optionally, as shown in fig. 7, an electronic device 700 is further provided in this embodiment of the present application, and includes a processor 701 and a memory 702, where the memory 702 stores a program or an instruction that can be executed on the processor 701, and when the program or the instruction is executed by the processor 701, the steps of the embodiment of the sleep data calibration method are implemented, and the same technical effects can be achieved, and are not described again to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 8 is a schematic diagram of a hardware structure of an electronic device implementing the embodiment of the present application.
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.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., 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 as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 8 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The sensor 1005 is used for acquiring historical usage data of the electronic device.
The radio frequency unit 1001 is 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;
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; 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.
In the embodiment of the application, on one hand, the first sleep data is data acquired by the wearable device when the electronic device and the wearable device are in a non-communication connection state, and the historical use data includes data acquired by the electronic device when the electronic device and the wearable device are in the non-communication connection state, so that even in a disconnection scene of the electronic device and the wearable device, the recording of the two data can be realized; on the other hand, since the first sleep data can be calibrated according to the historical usage data, so that 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, that is, the duration of the electronic device used by the user can be eliminated from the first sleep data according to the historical usage data of the electronic device, the accuracy of the second sleep data is higher than that of the first sleep data.
Optionally, the first sleep data comprises a start time and an end time of a first sleep period; the processor 1010 is specifically configured to: determining a first set of usage periods from the historical usage data as a function of a 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.
In the embodiment of the application, since the start time, the end time and the 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 sleep time acquired by the wearable device can be corrected by combining the historical use data of the electronic device, so that the sleep time period in the second sleep data is closer to the real sleep time period of the user.
Optionally, the processor 1010 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.
In the embodiment of the present application, since the start time, the end time, and the intermediate sleep period of the first sleep period can be corrected according to the sleep-in correction rule and the sleep-out correction rule, the sleep period in the second sleep data can be made closer to the real sleep period of the user.
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 method comprises the steps of displaying on the screen for a time, receiving user input time and the running state of foreground application; a processor 1010 further configured to determine the historical usage data based on the operational information.
In the embodiment of the application, since the electronic device can determine the historical use data according to the operation information of the electronic device in the first historical time period, a basis can be provided for the electronic device to perform calibration processing on the first sleep data according to the historical use data.
It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 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 referred to as 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, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
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 storing a program or an instruction and a second storage area storing data, wherein the first storage area may store an operating system, an application program or an instruction (such as a sound playing function, an image playing function, and the like) required for at least one function, and the like. Further, the memory 1009 may include volatile memory or nonvolatile memory, or the memory 1009 may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. The volatile Memory may be a Random Access Memory (RAM), a Static Random Access Memory (Static RAM, SRAM), a Dynamic Random Access Memory (Dynamic RAM, DRAM), a Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), a Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, ddr SDRAM), an Enhanced Synchronous SDRAM (ESDRAM), a Synchronous Link DRAM (SLDRAM), and a Direct Memory bus RAM (DRRAM). The memory 1009 in the embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor, which primarily handles operations related to the operating system, user interface, and applications, and a modem processor, which primarily handles wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The 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 the instruction is executed by a processor, the program or the instruction implements each process of the foregoing sleep data calibration method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read only memory ROM, a random access memory RAM, a magnetic or optical disk, and the like.
The 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 each process of the foregoing sleep data calibration method embodiment, and can achieve the same technical effect, and for avoiding repetition, details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
Embodiments of the present application provide 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 processes of the foregoing embodiments of the sleep data calibration method, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

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

Family Cites Families (6)

* 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
CN105045386B (en) * 2015-06-30 2018-05-29 广东美的制冷设备有限公司 Sleep state monitoring method and terminal, air-conditioner system
CN108030467B (en) * 2017-11-22 2021-07-02 广东思派康电子科技有限公司 Electronic bracelet and computer readable storage medium
CN114343587A (en) * 2020-09-29 2022-04-15 Oppo广东移动通信有限公司 Sleep monitoring method and device, electronic equipment and computer readable medium
CN114974495A (en) * 2022-05-09 2022-08-30 维沃移动通信有限公司 Sleep data calibration method and electronic equipment
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
US11617006B1 (en) System and method for capturing audio or video data
US10430918B2 (en) Display driver, display system, and method of operating the display driver
US20210208697A1 (en) Method for controlling play of multimedia file and terminal device
WO2021093583A1 (en) Video stream processing method and apparatus, terminal device, and computer readable storage medium
RU2628485C2 (en) Prompting method and device to remove the application
CN108135033B (en) Bluetooth connection method and mobile terminal
US10511765B2 (en) Electronic apparatus and method of extracting still images
CN111147779B (en) Video production method, electronic device, and medium
CN108984066B (en) Application icon display method and mobile terminal
US10432926B2 (en) Method for transmitting contents and electronic device thereof
CN112261218B (en) Video control method, video control device, electronic device and readable storage medium
CN111770374B (en) Video playing method and device
WO2023061358A1 (en) Cache method and apparatus, and electronic device
WO2023217137A1 (en) Sleep data calibration method and electronic device
CN114025242A (en) Video processing method, video processing device and electronic equipment
CN114740996A (en) Signal acquisition method and electronic equipment
CN111246303B (en) Video playing method and device, electronic equipment and storage medium
US20150161666A1 (en) Operation method of portable electronic apparatus
CN112509510A (en) Brightness adjusting method and device and electronic equipment
CN111176601A (en) Processing method and device
CN115514860A (en) Dynamic frame rate compensation method, image processing circuit and electronic device
CN115623557A (en) Network finding frequency determining method, network finding frequency determining device and electronic equipment
CN115718535A (en) Display content updating method, electronic device and storage medium
CN115543137A (en) Video playing method and device
CN114115793A (en) Audio adjusting method and audio adjusting device

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