WO2020168444A1 - Procédé et appareil de prédiction de sommeil, support de stockage et dispositif électronique - Google Patents

Procédé et appareil de prédiction de sommeil, support de stockage et dispositif électronique Download PDF

Info

Publication number
WO2020168444A1
WO2020168444A1 PCT/CN2019/075342 CN2019075342W WO2020168444A1 WO 2020168444 A1 WO2020168444 A1 WO 2020168444A1 CN 2019075342 W CN2019075342 W CN 2019075342W WO 2020168444 A1 WO2020168444 A1 WO 2020168444A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
sleep
day
sleep prediction
electronic device
Prior art date
Application number
PCT/CN2019/075342
Other languages
English (en)
Chinese (zh)
Inventor
戴堃
吴建文
陆天洋
帅朝春
张寅祥
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
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 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to CN201980074323.6A priority Critical patent/CN112997148A/zh
Priority to PCT/CN2019/075342 priority patent/WO2020168444A1/fr
Publication of WO2020168444A1 publication Critical patent/WO2020168444A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Definitions

  • This application belongs to the field of computer technology, and in particular relates to a sleep prediction method, device, storage medium, and electronic equipment.
  • electronic devices such as tablet computers and mobile phones are configured to perform system updates while the user is sleeping, and other operations that affect the user's use or take a long time to avoid affecting the user's use.
  • the related technology achieves the foregoing purpose by predicting the user's sleep, such as predicting the user's sleep interval, etc.
  • the accuracy of the related technology for predicting the user's sleep is low.
  • the embodiments of the present application provide a sleep prediction method, device, storage medium, and electronic device, which can enable the electronic device to accurately predict the user's sleep.
  • an embodiment of the present application provides a sleep prediction method applied to an electronic device, including:
  • an embodiment of the present application provides a sleep prediction device applied to an electronic device, including:
  • the date identification module is used to identify whether the current day is a non-working day of the user when the preset sleep prediction conditions are currently met;
  • the model acquisition module is used to acquire the pre-trained sleep prediction model corresponding to the non-working day when the recognition result of the recognition module is yes;
  • a data acquisition module for acquiring behavioral data of the user on the current day and historical non-working days, where the historical non-working days are the same type of non-working days before the current day;
  • the sleep prediction module is configured to perform sleep prediction on the user according to the behavior data and the sleep prediction model to obtain a prediction result.
  • an embodiment of the present application provides a storage medium on which a computer program is stored.
  • the computer program is executed on a computer, the computer is caused to execute the sleep prediction method provided in the embodiment of the present application. step.
  • an embodiment of the present application provides an electronic device, including a memory and a processor, and the processor is configured to execute the following by calling a computer program stored in the memory:
  • the electronic device can identify whether the current day is a non-working day of the user when the preset sleep prediction conditions are currently met, and if it is, it further obtains the pre-trained corresponding non-working day sleep prediction model, and obtains the user’s current
  • the behavior data of the current day and historical non-working days are finally used to predict the user's sleep using the acquired behavior data and the sleep prediction model corresponding to the non-working day, which can improve the accuracy of sleep prediction for the user.
  • FIG. 1 is a schematic flowchart of a sleep prediction method provided by an embodiment of the present application.
  • Fig. 2 is a schematic diagram of obtaining a sleep prediction model used for sleep prediction of a user in an embodiment of the present application.
  • FIG. 3 is another schematic flow chart of the sleep prediction method provided by an embodiment of the present application.
  • Fig. 4 is a schematic diagram of a preset operation configuration interface provided in an embodiment of the present application.
  • Fig. 5 is a schematic structural diagram of a sleep prediction device provided by an embodiment of the present application.
  • Fig. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 7 is another schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 1 is a schematic flowchart of a sleep prediction method provided by an embodiment of the present application.
  • the sleep prediction method can be applied to electronic devices.
  • the process of the sleep prediction method may include:
  • the preset sleep prediction condition is currently met, it is identified whether the current day is a non-working day of the user.
  • the sleep prediction condition there is no specific limitation on the setting of the sleep prediction conditions in the embodiments of the present application, and can be set by those of ordinary skill in the art according to actual needs. For example, you can set the sleep prediction condition that the ambient light brightness of the current environment of the electronic device is lower than the preset brightness, so that the electronic device can detect the ambient light brightness of its environment in real time (for example, through the set ambient light sensor The ambient light brightness of the environment is detected), and when the ambient light brightness of the environment is lower than the preset brightness, it is determined that the sleep prediction condition is currently met. For another example, the sleep prediction condition can be set as the system time of the electronic device reaches the preset time, and so on.
  • the electronic device triggers the sleep prediction of the user when it determines that the preset sleep prediction condition is currently met.
  • the electronic device recognizes whether the current day is a non-working day of the user. For example, the electronic device can determine whether the current day is a weekend or a holiday, and if yes, determine that the current day is a non-working day of the user, otherwise, determine that the current day is a working day of the user.
  • the embodiment of the present application stores a plurality of pre-trained sleep prediction model sets in the electronic device, which includes at least a sleep prediction model corresponding to non-working days (or in other words, the remaining sleep prediction models for users on non-working days)
  • the sleep prediction model of) and the sleep prediction model corresponding to the working day or a sleep prediction model suitable for predicting the user’s sleep on the working day.
  • the electronic device recognizes that the current day is a non-working day of the user, it obtains the pre-trained sleep prediction model corresponding to the non-working day.
  • the electronic device stores two sleep prediction models, namely the sleep prediction model A corresponding to non-working days and the sleep prediction model B corresponding to working days. In this way, the electronic device is determined to be the user’s non-working day
  • the A sleep prediction model is used for subsequent sleep prediction of the user, and when it is determined that the current day is the user's working day, the B sleep prediction model is obtained for the subsequent sleep prediction of the user.
  • the sleep prediction model is obtained through machine learning algorithm training in advance, and the machine learning algorithm can realize various functions through continuous feature learning, for example, it can predict the user's sleep.
  • machine learning algorithms may include: decision tree models, logistic regression models, Bayes models, neural network models, clustering models, and so on.
  • machine learning algorithms can be divided according to various situations. For example, machine learning algorithms can be divided into supervised learning algorithms, non-supervised learning algorithms, semi-supervised learning algorithms, reinforcement learning algorithms, etc. based on learning methods.
  • supervised learning Under supervised learning, the input data is called “training data”, and each set of training data has a clear identification or result, such as “spam” and “non-spam” in the anti-spam system, and recognition of handwritten digits. "1, 2, 3, 4" etc.
  • training data When building a model, supervised learning establishes a learning process that compares the scene type information with the actual results of the "training data", and continuously adjusts the model until the model's scene type information reaches an expected accuracy rate.
  • Common application scenarios for supervised learning are classification problems and regression problems.
  • Common algorithms include Logistic Regression and Back Propagation Neural Network.
  • the data is not specifically identified, the model is to infer some internal structure of the data.
  • Common application scenarios include the learning of association rules and clustering.
  • Common algorithms include Apriori algorithm and k-Means algorithm.
  • Semi-supervised learning algorithm In this learning mode, the input data is partially identified.
  • This learning model can be used for type recognition, but the model first needs to learn the internal structure of the data in order to organize the data reasonably for prediction.
  • Application scenarios include classification and regression.
  • Algorithms include some extensions to commonly used supervised learning algorithms. These algorithms first try to model unidentified data, and then predict the identified data on this basis.
  • Graph inference algorithm Graph Inference
  • Laplacian SVM Laplacian SVM
  • Reinforcement learning algorithm In this learning mode, the input data is used as feedback to the model. Unlike the supervised model, the input data is only used as a way to check whether the model is right or wrong. Under reinforcement learning, the input data is directly fed back to the model. The model must be adjusted for this immediately.
  • Common application scenarios include dynamic systems and robot control.
  • Common algorithms include Q-Learning and Temporal difference learning.
  • machine learning algorithms can also be divided into:
  • Regression algorithm common regression algorithms include: Ordinary Least Square, Logistic Regression, Stepwise Regression, Multivariate Adaptive Regression Splines and Local Scatter Smoothing Estimate (Locally Estimated Scatterplot Smoothing).
  • Example-based algorithms include k-Nearest Neighbor (KNN), Learning Vector Quantization (LVQ), and Self-Organizing Map (SOM).
  • KNN k-Nearest Neighbor
  • LVQ Learning Vector Quantization
  • SOM Self-Organizing Map
  • Regularization methods common algorithms include: Ridge Regression, Least Absolute Shrinkage and Selection Operator (LASSO), and Elastic Net (Elastic Net).
  • LASSO Least Absolute Shrinkage and Selection Operator
  • Elastic Net Elastic Net
  • Decision tree algorithm common algorithms include: Classification and Regression Tree (CART), ID3 (Iterative Dichotomiser 3), C4.5, Chi-squared Automatic Interaction Detection (CHAID), Decision Stump, Random Forest (Random Forest), Multiple Adaptive Regression Spline (MARS) and Gradient Boosting Machine (GBM).
  • CART Classification and Regression Tree
  • ID3 Iterative Dichotomiser 3
  • C4.5 Chi-squared Automatic Interaction Detection
  • CHAI Chi-squared Automatic Interaction Detection
  • Decision Stump Random Forest
  • Random Forest Random Forest
  • MERS Multiple Adaptive Regression Spline
  • GBM Gradient Boosting Machine
  • Bayesian method algorithms include: Naive Bayes algorithm, Averaged One-Dependence Estimators (AODE), and Bayesian Belief Network (BBN).
  • AODE Averaged One-Dependence Estimators
  • BBN Bayesian Belief Network
  • the user's behavior data on the current day and historical non-working days are acquired, and the historical non-working days are the same type of non-working days before the current day.
  • the sleep prediction model corresponding to non-working days performs sleep prediction based on the user’s behavior data on multiple non-working days of the same type. Therefore, the electronic device obtains the pre-trained corresponding non-working days. After the sleep prediction model of the working day, the user's behavior data on that day and at least one historical non-working day is further obtained.
  • the historical non-working day is the same type of non-working day before the current day, and the behavior data includes but not limited to the user's exercise behavior data (such as calories burned, number of steps taken, etc.), rest behavior data, entertainment behavior data, and so on.
  • the electronic device obtains the user's behavior data on that day and the user's behavior data on multiple weekends before the current day.
  • a sleep prediction is performed on the user according to the acquired behavior data and the sleep prediction model, and the prediction result is obtained.
  • the electronic device After the electronic device obtains the pre-trained sleep prediction model corresponding to the non-working day, and obtains the user's behavior data on the current day and historical non-working days, it can perform the sleep prediction model and behavior data on the user according to the obtained sleep prediction model and behavior data. Sleep prediction, get the prediction result.
  • the sleep prediction of the user includes but is not limited to the time when the user enters sleep, the time when the user ends sleep, and the sleep interval composed of the time when the user enters sleep and the time when sleep ends.
  • the user's sleep prediction is performed, and the user's sleep interval is obtained from 23:30 on the same day to 06:60 the next day, or the user's sleep interval is obtained from 23:30 on the previous day to 06:60 on the same day. 30.
  • the electronic device can recognize whether the current day is a non-working day of the user when the preset sleep prediction conditions are currently met, and if so, further obtain the pre-trained corresponding non-working day sleep prediction model , And obtain the user's behavior data on the current day and historical non-working days, and finally use the acquired behavior data and the sleep prediction model corresponding to the non-working day to predict the user's sleep, which can improve the accuracy of the user's sleep prediction.
  • FIG. 3 is a schematic diagram of another flow of the sleep prediction method provided by an embodiment of the application.
  • the sleep prediction method can be applied to electronic devices.
  • the process of the sleep prediction method may include:
  • the electronic device obtains the first use information of the user using the electronic device on the day.
  • the electronic device recognizes whether the current day is a non-working day of the user according to the first usage information.
  • the sleep prediction condition is configured as:
  • the duration of the screen off state reaches the first preset duration.
  • the electronic device can start a timer for timing when entering the screen-off state, and use the timing duration of the timer to characterize the duration of the electronic device in the screen-off state, where the electronic device’s timer duration reaches the first preset Stop the timer when the duration or exit the screen-off state, and reset the timer. In this way, the electronic device determines that the sleep prediction condition is currently met when the timer duration reaches the first preset duration, that is, when the duration of the off-screen state reaches the first preset duration.
  • the sleep prediction condition is configured as:
  • the duration of the static state reaches the second preset duration.
  • an electronic device can start a timer to count when it enters a stationary state (for example, the electronic device can detect whether there is acceleration in any direction according to the built-in three-axis acceleration sensor, and if it does not exist, it is determined to be in a stationary state).
  • the timing duration of the timer represents the duration of the electronic device being in a static state, where the electronic device stops counting the timer and resets the timer when the timing duration of the timer reaches the second preset duration or exits the static state. In this way, when the timing duration of the timer reaches the second preset duration, that is, when the duration of the stationary state reaches the second preset duration, the electronic device determines that the sleep prediction condition is currently met.
  • the sleep prediction condition is configured as:
  • the electronic device can start a timer for timing when entering the screen-off state, and use the timer duration to characterize the duration of the electronic device in the screen-off state, where the electronic device's timer duration reaches the third preset Stop the timer when the duration or exit the screen-off state, and reset the timer. In this way, when the timer duration reaches the third preset duration, the electronic device judges whether it is currently in a static state through the three-axis acceleration sensor, and if yes, it determines that the sleep prediction condition is currently met.
  • the sleep prediction condition is configured as:
  • the screen is turned off.
  • the electronic device can start a timer for timing when entering a static state, and the duration of the timer is used to characterize the duration of the electronic device in the static state, where the timer duration of the electronic device reaches the fourth preset duration or Stop the timer counting when exiting the static state and reset the timer. In this way, when the time duration of the timer reaches the fourth preset duration, the electronic device determines whether the screen is currently in the off state, and if yes, determines that the sleep prediction condition is currently met.
  • the values of the first preset duration, the second preset duration, the third preset duration, and the fourth preset duration above may be the same or different. Specifically, a person of ordinary skill in the art can select appropriate values based on experience. .
  • the first preset duration, the second preset duration, the third preset duration, and the fourth preset duration may all be set to 30 minutes.
  • the electronic device triggers the sleep prediction of the user when it determines that the preset sleep prediction condition is currently met.
  • the electronic device recognizes whether the current day is a non-working day of the user.
  • the electronic device obtains the use information of the user using the electronic device on the current day, records it as the first use information, and identifies whether the current day is a non-working day of the user based on the first use information.
  • the first use information includes, but is not limited to, information used to describe when the user uses the electronic device, where to use the electronic device, and how to use the electronic device, such as how to use the electronic device. It can provide information about which applications the user has run using the electronic device, which phone calls have been made using the electronic device, and the power consumption rate of the electronic device.
  • the electronic device obtains a pre-trained sleep prediction model corresponding to a non-working day.
  • the embodiment of the present application stores a plurality of pre-trained sleep prediction model sets in the electronic device, which includes at least a sleep prediction model corresponding to non-working days (or in other words, the remaining sleep prediction models for users on non-working days)
  • the electronic device stores two sleep prediction models, namely the sleep prediction model A corresponding to non-working days and the sleep prediction model B corresponding to working days. In this way, the electronic device is determined to be the user’s non-working day
  • the A sleep prediction model is used for subsequent sleep prediction of the user, and when it is determined that the current day is the user's working day, the B sleep prediction model is obtained for the subsequent sleep prediction of the user.
  • the electronic device obtains the user's behavior data on the current day and historical non-working days, and the historical non-working days are the same type of non-working days before the current day.
  • the sleep prediction model corresponding to non-working days performs sleep prediction based on the user’s behavior data on multiple non-working days of the same type. Therefore, the electronic device obtains the pre-trained corresponding non-working days. After the sleep prediction model of the working day, the user's behavior data on that day and at least one historical non-working day is further obtained.
  • the historical non-working day is the same type of non-working day before the current day, and the behavior data includes but not limited to the user's exercise behavior data (such as calories burned, number of steps taken, etc.), rest behavior data, entertainment behavior data, and so on.
  • the electronic device obtains the user's behavior data on that day and the user's behavior data on multiple weekends before the current day.
  • the electronic device performs sleep prediction on the user according to the acquired behavior data and the sleep prediction model to obtain the predicted sleep interval.
  • the electronic device After the electronic device obtains the pre-trained sleep prediction model corresponding to the non-working day, and obtains the user's behavior data on the current day and historical non-working days, it can perform the sleep prediction model and behavior data on the user according to the obtained sleep prediction model and behavior data. Sleep prediction, get the predicted sleep interval. For example, according to the obtained sleep prediction model and behavior data to predict the user's sleep, the predicted sleep interval is from 23:30 on the same day to 06:30 the next day, or the predicted sleep interval is from 23:30 on the previous day to 06:30 on the next day: 30.
  • the electronic device determines whether the user is currently in a sleep state according to the predicted sleep interval.
  • the predicted sleep interval indicates that the user's sleep interval is from 23:30 on the current day to 06:30 on the next day. If the current time of the electronic device is 23:25 on the current day, it is determined that the user is not currently in a sleep state. If the current time of the electronic device is If it is 23:45 of the day, it is determined that the user is currently asleep.
  • the electronic device performs a preset operation, where the preset operation includes at least one of a system update operation, an application update operation, and a power consumption control operation.
  • the electronic device when the electronic device determines that the user is currently in the sleep state, it performs a pre-configured preset operation that is executed when the user is in the sleep state.
  • the preset operation includes but is not limited to at least one of a system update operation, an application update operation, and a power consumption control operation, which may be manually configured by the user or may be configured by the electronic device by default.
  • the electronic device can configure the system update operation as a preset operation, so as to perform the system update operation when the user is in sleep state, and update the system to the latest version; the electronic device can also configure the application update operation as a preset operation, The user performs application update operations when the user is asleep, updates the installed applications to the latest version, etc.; electronic devices can configure the power consumption control operation as a preset operation, thereby applying the preset for reduction when the user is asleep Power consumption control strategy for power consumption, reducing the power consumption of electronic devices and so on.
  • the electronic device provides a preset operation configuration interface.
  • the preset operation configuration interface includes the prompt message "Please select the operation performed during sleep", operation selection box, drop-down button, drop-down Menu, OK button, and Cancel button.
  • the drop-down menu is called out according to the user's click operation on the drop-down button.
  • the drop-down menu provides various operations that the electronic device can perform during the user's sleep interval, as shown in the system update in Figure 4 Operation, application update operations, etc., the user can select the operation performed by the electronic device during sleep according to actual needs, and after selecting the operation that needs to be performed by the electronic device during sleep, click the OK button to instruct the electronic device to select the user The operation as the aforementioned preset operation. Or, if the user finds that there is no need for the operation performed by the electronic device during sleep, he can click the cancel button to instruct the electronic device to perform the preset operation of the default configuration.
  • the following when identifying whether the current day is a non-working day of the user according to the first usage information, the following can be performed:
  • the electronic device obtains the pre-stored second use information of the user using the electronic device on his workday;
  • the electronic device judges whether the first usage information matches the second usage information, if yes, it is judged that the current day is the user's working day, otherwise it is judged that the current day is the user's non-working day.
  • the usage information of the electronic device used on weekdays is recorded as the second usage information.
  • whether the usage information is the usage information of the electronic device used by the user during the working day can be calibrated by the user according to the actual situation.
  • the electronic device when the electronic device recognizes whether the current day is a non-working day of the user according to the first usage information, it can obtain the pre-stored second usage information of the user using the electronic device on its working day, and determine whether the first usage information matches the second usage information. Use information matching, where if the first use information matches the second use information, the electronic device determines that the current day is the user's working day, otherwise it determines that the current day is the user's non-working day.
  • the following when determining whether the first usage information matches the second usage information, the following can be performed:
  • the electronic device judges whether the acquired similarity reaches the preset similarity, and if yes, it judges that the first usage information matches the second usage information, otherwise it does not match.
  • the electronic device can determine whether the first usage information and the second usage information match according to the similarity between the two. In this way, when the electronic device determines whether the first usage information matches the second usage information, The similarity between the first use information and the second use information can be obtained, and it is determined whether the obtained similarity reaches the preset similarity. If yes, it is determined that the first use information and the second use information match, otherwise the first use information is determined The information does not match the second usage information. It should be noted that there is no specific limitation on the value of the preset similarity in the embodiments of the present application, and a person of ordinary skill in the art can select an appropriate value according to experience needs.
  • the electronic device when it obtains the similarity between the first usage information and the second usage information, it uses the encoder neural network to respectively encode the first usage information and the second usage information to obtain the first word vector corresponding to the first usage information Set, and obtain a second word vector set corresponding to the second usage information.
  • the embodiment of the application does not limit the specific model and topology of the encoder neural network.
  • a single-layer recurrent neural network can be used for training to obtain an encoder neural network, or a multi-layer recurrent neural network can be used for training.
  • the encoder neural network can also be trained using a convolutional neural network, or its variants, or neural networks of other network structures to obtain an encoder neural network.
  • the electronic device After acquiring the first word vector set corresponding to the first use information and the second word vector set corresponding to the second use information, the electronic device calculates the characteristic distance between the first word vector set and the second word vector set, The calculated feature distance is used as the similarity between the first use information and the second use information.
  • the following when identifying whether the current day is a non-working day of the user according to the first usage information, the following can be performed:
  • the electronic device recognizes whether the current day is a non-working day of the user according to the first usage information and the pre-trained working day recognition model.
  • a workday recognition model for workday recognition can be trained in advance, and the workday recognition model can be configured locally in the electronic device. In this way, when the electronic device recognizes whether the current day is a non-working day of the user according to the first usage information, it can recognize whether the current day is a non-working day of the user according to the first usage information and the pre-trained working day recognition model.
  • an unsupervised learning method can be used to train the user's usage information of electronic devices on all natural days within a year to obtain a usage information classifier that can classify the input usage information, and use the usage information classifier as the work Day recognition model.
  • the first use information is input to the use information classifier to classify the use information, it can be determined whether the day is a non-working day of the user according to the classification result output by the use information classifier, and if the output of the information classifier is used If the first usage information indicates that the first usage information is the usage information of a working day, it can be determined that the current day is the user's working day. If the output of the usage information classifier indicates that the first usage information is the usage information of a non-working day, it can be determined that the current day is the user's non-working day. Working day.
  • the electronic device obtains the user-configured schedule
  • the electronic device obtains the sleep interval planned by the user according to the obtained schedule and determines whether it is currently within the planned sleep interval;
  • the electronic device when the electronic device determines that the user is in a sleep state, obtains the schedule configured by the user, and further obtains the sleep interval planned by the user according to the obtained schedule, and determines whether it is currently within the planned sleep interval. If it is, it means that the predicted result is consistent with the schedule configured by the user, and the preset operation is performed at this time.
  • the electronic device can obtain the user's scheduled sleep interval as 10:30 -6:30.
  • the method further includes:
  • the electronic device obtains the pre-trained sleep prediction model corresponding to the working day;
  • the electronic device obtains the user's behavior data on the current day and the historical working day, and the historical working day is the working day before the current day;
  • the electronic device predicts the user's sleep based on the acquired behavior data and the sleep prediction model, and obtains the prediction result;
  • the electronic device judges whether the user is currently asleep according to the obtained prediction result
  • the pre-trained sleep prediction model corresponding to the working day is acquired for subsequent sleep prediction of the user.
  • the sleep prediction model corresponding to the working day performs sleep prediction based on the user's behavior data on multiple working days. Therefore, the electronic device obtains the pre-trained sleep prediction model corresponding to the working day Then, further obtain the user's behavior data on the current day and at least one historical working day. Among them, the historical working day is the working day before the current day.
  • the electronic device After the electronic device obtains the pre-trained sleep prediction model corresponding to the working day, and obtains the user's behavior data on the current day and the historical working day, it can perform sleep prediction on the user according to the obtained sleep prediction model and behavior data to obtain forecast result.
  • the sleep prediction of the user includes but is not limited to the time when the user enters sleep, the time when the user ends sleep, and the sleep interval composed of the time when the user enters sleep and the time when sleep ends.
  • the user's sleep prediction is performed, and the user's sleep interval is obtained from 23:30 on the same day to 06:60 the next day, or the user's sleep interval is obtained from 23:30 on the previous day to 06:60 on the same day. 30.
  • the electronic device executes a pre-configured preset operation that is executed when the user is in the sleep state.
  • the preset operation includes at least one of a system update operation, an application update operation, and a power consumption control operation, which may be manually configured by the user or may be configured by the electronic device by default.
  • FIG. 5 is a schematic structural diagram of a sleep prediction device provided by an embodiment of the application.
  • the sleep prediction device can be applied to electronic equipment.
  • the sleep prediction device may include: a date recognition module 401, a model acquisition module 402, a data acquisition module 403, and a sleep prediction module 404.
  • the date identification module 401 is used to identify whether the current day is a non-working day of the user when the preset sleep prediction conditions are currently met;
  • the model obtaining module 402 is configured to obtain a pre-trained sleep prediction model corresponding to a non-working day when the recognition result of the date recognition module 401 is yes;
  • the data acquisition module 403 is used to acquire user behavior data on the current day and historical non-working days.
  • the historical non-working days are the same type of non-working days before the current day;
  • the sleep prediction module 404 is configured to perform sleep prediction on the user according to the acquired behavior data and the sleep prediction model to obtain the prediction result.
  • the behavior data includes sports behavior data, rest behavior data, and entertainment behavior data.
  • the date identification module 401 may be used to:
  • the first usage information identify whether the day is a non-working day of the user.
  • the date identification module 401 may be used to:
  • the date identification module 401 when determining whether the first usage information matches the second usage information, the date identification module 401 may be used to:
  • the date identification module 401 may be used to:
  • the current day is a non-working day of the user.
  • the sleep prediction conditions include:
  • the duration of the screen off state reaches the first preset duration
  • the duration of the static state reaches the second preset duration
  • the screen is turned off when the duration of the static state reaches the fourth preset duration.
  • the prediction result includes the predicted sleep interval
  • the sleep prediction device further includes an operation execution module for:
  • the preset operation includes at least one of a system update operation, an application update operation, and a power consumption control operation.
  • the operation execution module may be used to:
  • the preset operation includes at least one of a system update operation, an application update operation, and a power consumption control operation.
  • the model acquisition module 402 is also used to obtain the pre-trained sleep prediction corresponding to the working day model;
  • the data acquisition module 403 is also used to acquire user behavior data on the current day and historical working days, and the historical working day is the working day before the current day;
  • the sleep prediction module 404 is also used to predict the user's sleep according to the acquired behavior data and the sleep prediction model, and obtain the prediction result.
  • the embodiment of the present application provides a computer-readable storage medium with a computer program stored thereon, and when the stored computer program is executed on a computer, the computer executes the steps in the sleep prediction method provided in the embodiment of the present application.
  • An embodiment of the present application further provides an electronic device including a memory and a processor, and the processor executes the steps in the sleep prediction method provided in the embodiment of the present application by calling a computer program stored in the memory.
  • FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the application.
  • the electronic device may include a memory 601 and a processor 602.
  • a person of ordinary skill in the art can understand that the structure of the electronic device shown in FIG. 6 does not constitute a limitation on the electronic device, and may include more or less components than those shown in the figure, or a combination of certain components, or different component arrangements. .
  • the memory 601 can be used to store application programs and data.
  • the application program stored in the memory 601 contains executable code.
  • Application programs can be composed of various functional modules.
  • the processor 602 executes various functional applications and data processing by running application programs stored in the memory 601.
  • the processor 602 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device, and executes the electronic device by running or executing the application program stored in the memory 601 and calling the data stored in the memory 601
  • the various functions and processing data of the electronic device can be used to monitor the electronic equipment as a whole.
  • the processor 602 in the electronic device will load the executable code corresponding to the process of one or more audio processing programs into the memory 601 according to the following instructions, and the processor 602 will run and store the executable code
  • the application program in the memory 601 thus executes:
  • the historical non-working days are the same types of non-working days before the current day;
  • FIG. 7 is another schematic structural diagram of the electronic device provided by an embodiment of the application. The difference from the electronic device shown in FIG. 6 is that the electronic device further includes components such as an input unit 603 and an output unit 604.
  • the input unit 603 can be used to receive input numbers, character information or user characteristic information (such as fingerprints), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
  • user characteristic information such as fingerprints
  • the output unit 604 may be used to output information input by the user or information provided to the user, such as a speaker.
  • the processor 602 in the electronic device will load the executable code corresponding to the process of one or more audio processing programs into the memory 601 according to the following instructions, and the processor 602 will run and store the executable code
  • the application program in the memory 601 thus executes:
  • the historical non-working days are the same types of non-working days before the current day;
  • the behavior data includes sports behavior data, rest behavior data, and entertainment behavior data.
  • the processor 602 may execute:
  • the first usage information identify whether the day is a non-working day of the user.
  • the processor 602 may execute:
  • the processor 602 may execute:
  • the processor 602 may execute:
  • the current day is a non-working day of the user.
  • the sleep prediction conditions include:
  • the duration of the screen off state reaches the first preset duration
  • the duration of the static state reaches the second preset duration
  • the screen is turned off when the duration of the static state reaches the fourth preset duration.
  • the prediction result includes the predicted sleep interval.
  • the preset operation includes at least one of a system update operation, an application update operation, and a power consumption control operation.
  • the processor 602 may perform:
  • the preset operation includes at least one of a system update operation, an application update operation, and a power consumption control operation.
  • the processor 602 may execute:
  • the historical working day is the working day before the current day;
  • the sleep prediction device/electronic device provided by the embodiment of the application belongs to the same concept as the sleep prediction method in the above embodiment. Any method provided in the sleep prediction method embodiment can be run on the sleep prediction device/electronic device. For the implementation process, refer to the embodiment of the sleep prediction method, which will not be repeated here.
  • the program may be stored in a computer readable storage medium, such as stored in a memory, and executed by at least one processor, and the execution process may include a process such as an embodiment of the sleep prediction method.
  • the storage medium may be a magnetic disk, an optical disc, a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), etc.
  • the sleep prediction device of the embodiment of the present application its functional modules may be integrated in one processing chip, or each module may exist alone physically, or two or more modules may be integrated in one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer readable storage medium, such as a read-only memory, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
  • Medical Treatment And Welfare Office Work (AREA)

Abstract

La présente invention concerne un procédé de prédiction de sommeil : lorsqu'une condition de prédiction de sommeil prédéfinie est actuellement satisfaite et que le jour actuel est un jour férié d'un utilisateur, un dispositif électronique peut acquérir un modèle de prédiction de sommeil de jour férié correspondant pré-appris et acquérir des données de comportement de l'utilisateur pour le jour actuel et des jours fériés historiques et utiliser enfin les données de comportement acquises et le modèle de prédiction de sommeil pour effectuer une prédiction de sommeil pour l'utilisateur, ce qui permet d'augmenter la précision de prédiction de sommeil pour l'utilisateur.
PCT/CN2019/075342 2019-02-18 2019-02-18 Procédé et appareil de prédiction de sommeil, support de stockage et dispositif électronique WO2020168444A1 (fr)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201980074323.6A CN112997148A (zh) 2019-02-18 2019-02-18 睡眠预测方法、装置、存储介质及电子设备
PCT/CN2019/075342 WO2020168444A1 (fr) 2019-02-18 2019-02-18 Procédé et appareil de prédiction de sommeil, support de stockage et dispositif électronique

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/075342 WO2020168444A1 (fr) 2019-02-18 2019-02-18 Procédé et appareil de prédiction de sommeil, support de stockage et dispositif électronique

Publications (1)

Publication Number Publication Date
WO2020168444A1 true WO2020168444A1 (fr) 2020-08-27

Family

ID=72143985

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/075342 WO2020168444A1 (fr) 2019-02-18 2019-02-18 Procédé et appareil de prédiction de sommeil, support de stockage et dispositif électronique

Country Status (2)

Country Link
CN (1) CN112997148A (fr)
WO (1) WO2020168444A1 (fr)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112704365A (zh) * 2021-01-25 2021-04-27 深圳联达技术实业有限公司 一种智能枕头及睡眠监测方法
CN115590477A (zh) * 2022-11-16 2023-01-13 中国医学科学院药用植物研究所(Cn) 基于自监督的睡眠分期方法、装置、电子设备及存储介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117061658B (zh) * 2023-07-11 2024-06-21 荣耀终端有限公司 睡眠时间识别方法、电子设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105929927A (zh) * 2016-04-19 2016-09-07 乐视控股(北京)有限公司 一种降低智能设备功耗的方法和装置
CN106125883A (zh) * 2016-06-15 2016-11-16 乐视控股(北京)有限公司 智能终端及其控制方法
CN107329778A (zh) * 2017-06-08 2017-11-07 广东欧珀移动通信有限公司 ***更新的方法及相关产品
CN107430716A (zh) * 2015-03-31 2017-12-01 微软技术许可有限责任公司 推断用户睡眠模式

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140157026A1 (en) * 2012-12-05 2014-06-05 Advanced Micro Devices, Inc. Methods and apparatus for dynamically adjusting a power level of an electronic device
US9566031B2 (en) * 2013-01-30 2017-02-14 Kingsdown, Inc. Apparatuses and methods for measured sleep alarm signaling
WO2016067448A1 (fr) * 2014-10-31 2016-05-06 富士通株式会社 Procédé d'affichage d'état, programme et dispositif d'affichage d'état
CN107567083B (zh) * 2017-10-16 2021-07-30 北京小米移动软件有限公司 进行省电优化处理的方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107430716A (zh) * 2015-03-31 2017-12-01 微软技术许可有限责任公司 推断用户睡眠模式
CN105929927A (zh) * 2016-04-19 2016-09-07 乐视控股(北京)有限公司 一种降低智能设备功耗的方法和装置
CN106125883A (zh) * 2016-06-15 2016-11-16 乐视控股(北京)有限公司 智能终端及其控制方法
CN107329778A (zh) * 2017-06-08 2017-11-07 广东欧珀移动通信有限公司 ***更新的方法及相关产品

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112704365A (zh) * 2021-01-25 2021-04-27 深圳联达技术实业有限公司 一种智能枕头及睡眠监测方法
CN115590477A (zh) * 2022-11-16 2023-01-13 中国医学科学院药用植物研究所(Cn) 基于自监督的睡眠分期方法、装置、电子设备及存储介质
CN115590477B (zh) * 2022-11-16 2023-03-28 中国医学科学院药用植物研究所 基于自监督的睡眠分期方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN112997148A (zh) 2021-06-18

Similar Documents

Publication Publication Date Title
CN110619423B (zh) 多任务预测方法、装置、电子设备及存储介质
CN108764304B (zh) 场景识别方法、装置、存储介质及电子设备
US11551103B2 (en) Data-driven activity prediction
WO2020168448A1 (fr) Procédé et appareil de prédiction de sommeil, support de stockage et dispositif électronique
US20190342182A1 (en) Systems and methods for managing lifecycle and reducing power consumption by learning an iot device
WO2020168444A1 (fr) Procédé et appareil de prédiction de sommeil, support de stockage et dispositif électronique
EP3080754A1 (fr) Modèles personnalisés d'apprentissage automatique
US20240029075A1 (en) Behavioral analysis for smart agents
KR102585230B1 (ko) 통화 요청에 대한 알림 메시지를 제공하는 디바이스 및 방법
US20200218456A1 (en) Application Management Method, Storage Medium, and Electronic Apparatus
CN107943582B (zh) 特征处理方法、装置、存储介质及电子设备
US11468886B2 (en) Artificial intelligence apparatus for performing voice control using voice extraction filter and method for the same
US20170286979A1 (en) Architecture for predicting network access probability of data files accessible over a computer network
US20210349433A1 (en) System and method for modifying an initial policy of an input/output device
US20190262990A1 (en) Robot skill management
US20240129567A1 (en) Hub device, multi-device system including the hub device and plurality of devices, and operating method of the hub device and multi-device system
CN108806699B (zh) 语音反馈方法、装置、存储介质及电子设备
WO2020168451A1 (fr) Procédé et appareil de prédiction de sommeil, support de stockage et dispositif électronique
KR102423754B1 (ko) 디바이스 사용 문의에 대한 응답을 제공하는 디바이스 및 방법
CN109242089B (zh) 递进监督深度学习神经网络训练方法、***、介质和设备
US11727085B2 (en) Device, method, and computer program for performing actions on IoT devices
JP2023544475A (ja) スマートホームのバブル形成
KR20210089782A (ko) 수면 유도 장치
CN116431458B (zh) 一种平板电脑智能管理***与方法
US20210152640A1 (en) Updating communication for a situation

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19915819

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 18.10.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19915819

Country of ref document: EP

Kind code of ref document: A1