Video sleep aiding method, storage medium and electronic equipment
By displaying sleep-aid guidance information and playing sleep-aid videos on the video client, automatically detecting the user's sleep status and turning off video playback, the problem of low sleep-aid efficiency in the existing technology is solved, and a more efficient sleep assistant function is realized.
Patent Information
- Application Number
- CN202311545661.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-17
- Publication Date
- 2025-05-20
AI Technical Summary
The existing video sleep aid methods are inefficient and cannot intelligently respond to users' unconscious sleep or fatigue, causing the user's equipment to standby for a long time and affect the use of the equipment.
Display sleep aid guidance information on the video client, guide the user to turn on the video sleep aid mode, and play the sleep aid video to guide the user into the sleep target posture. When the user is in the sleep target posture, the playback of the sleep aid video is automatically turned off.
It improves the efficiency of video sleep aid, reduces the user's need to take the initiative to ensure that the device is turned off in time after the user falls asleep, and avoids the impact of battery exhaustion and equipment use.
Smart Images

Figure CN120021259A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computers. Specifically, it relates to a video sleep aid method, a storage medium, and an electronic device. Background Art
[0002] Currently, many users have developed the habit of watching videos before going to bed or after waking up, and are prone to addiction, neglecting sleep time, which has a negative impact on personal health and the device itself. For example, lying in the dark and watching short videos is likely to affect eyesight and the quality of falling asleep. In addition, some users have reported that they often fall asleep while watching short videos, resulting in the terminal device staying on standby all night and running out of all power in the morning, affecting the use of the device the next day.
[0003] However, related technologies usually use passive sleep aids, such as inserting pre-recorded late-night reminders into the video stream to passively remind users of the time. However, this sleep aid method still strongly depends on the user's next operation of exiting the application or turning off the screen by themselves, and cannot intelligently respond to scenarios such as the user falling asleep unconsciously or being exhausted, which leads to the problem of low video sleep aid efficiency. Therefore, there is a problem of low video sleep aid efficiency.
[0004] For the above problems, no effective solutions have been proposed yet. Summary of the Invention
[0005] Embodiments of this application provide a video sleep aid method, device, storage medium, and electronic device to at least solve the technical problem of low video sleep aid efficiency.
[0006] According to one aspect of the embodiments of this application, a video sleep aid method is provided, including: displaying sleep aid guidance information on a video client, where the sleep aid guidance information is used to prompt the user of the video client that they are in the initial sleep state, and guide the user to enable the video sleep aid mode of the video client, and the initial sleep state is used to indicate that the user is in a suitable sleep environment, or the user is in the initial sleep posture;; when the video sleep aid mode is enabled, playing at least one sleep aid video on the video client, where the sleep aid video is used to guide the user to the sleep target posture; displaying sleep reminder information on the video client, where the sleep reminder information is used to prompt the user that they are in the sleep target posture, and the video client will close after a preset time of displaying the sleep reminder information.
[0007] According to another aspect of the embodiments of the present application, there is also provided a video sleep aid device, including: a first display unit, configured to display sleep aid guidance information on the video client, wherein the sleep aid guidance information is used to prompt the user of the video client that they are in the initial sleep state, and guide the user to turn on the video sleep aid mode of the video client, and the initial sleep state is used to indicate that the user is in a suitable sleep environment, or the user has assumed an initial sleep posture;; a first playback unit, configured to play the at least one sleep aid video on the video client when the video sleep aid mode is turned on, wherein the sleep aid video is used to guide the user to assume the sleep target posture; a second display unit, configured to display sleep reminder information on the video client, wherein the sleep reminder information is used to prompt the user that they are in the sleep target posture, and the video client will be turned off after a preset time of displaying the sleep reminder information.
[0008] As an optional solution, the first playback unit includes at least one of the following: a first playback module, configured to play the sleep aid video on the video client until the playback time of the sleep aid video is greater than or equal to the sleep time, wherein the at least one sleep aid video includes the sleep aid video played during the sleep time; a second playback module, configured to play the sleep aid video on the video client until the number of sleep aid videos played is greater than or equal to the sleep number, wherein the at least one sleep aid video includes the sleep aid videos of the sleep number.
[0009] As an optional solution, the device further includes: a first display module, configured to, after playing the at least one sleep aid video on the video client, when the playback time of the sleep aid video is greater than or equal to the sleep time, determine that the user is in the sleep target posture, and display the sleep reminder information on the video client; or, a second display module, configured to, after playing the at least one sleep aid video on the video client, when the number of sleep aid videos played is greater than or equal to the sleep number, determine that the user is in the sleep target posture, and display the sleep reminder information on the video client.
[0010] As an optional solution, the device further includes: a third display unit, configured to display eye assessment start information during the process of displaying the sleep aid guidance information on the video client, wherein the eye assessment start information is used to prompt the user to turn on the eye posture assessment function of the video client, and after turning on the eye posture assessment function, the video client is set to continuously detect the eye posture of the user.
[0011] As an alternative solution, the above device further includes: a first acquisition unit, configured to, after the above display of the eye evaluation start information, and when the above eye posture evaluation function is enabled, acquire eye evaluation information, where the above eye evaluation information is used to evaluate the eye posture of the above user; a fourth display unit, configured to, after the above display of the eye evaluation start information, and when the above eye evaluation information indicates that the eye posture of the above user is in an eye sleep posture, determine that the above user is in the above sleep target posture, and display the above sleep prompt information on the above video client, where the continuous closing duration of the eye in the above eye sleep posture is greater than or equal to the sleep duration, or the blinking frequency of the eye in the above eye sleep posture is less than or equal to the sleep frequency.
[0012] As an alternative solution, the above device further includes: a fifth display unit, configured to, during the process of displaying the sleep prompt information on the above video client, display video alarm information on the above video client, where the above video alarm information is used to prompt the video alarm operation that has been set or is to be set on the above video client, and the above video alarm operation is an operation performed by the above video client to wake up from sleep in the form of playing a wake-up video; the above device further includes: a second playback unit, configured to, after the above video client displays the video alarm information, and when the video alarm operation with a set wake-up time point is in place, play the above wake-up video on the above video client when the above wake-up time point is reached.
[0013] As an alternative solution, the above device further includes: a stop unit, configured to, during the process of playing the above wake-up video on the above video client, when an interaction operation performed on the above wake-up video on the above video client is acquired and the above interaction operation meets the user wake-up condition, stop the playback of the above wake-up video on the above video client.
[0014] As an alternative solution, the above device further includes: a second acquisition unit, configured to, after the above video client displays the sleep prompt information, acquire the end sleep aid video played when the above video client is closed after a preset time; a recording unit, configured to, after the above video client displays the sleep prompt information, and when the above end sleep aid video has not been played to completion, record the playback progress of the above end sleep aid video; a third playback unit, configured to, after the above video client displays the sleep prompt information, and when the above video client is restarted, play the above end sleep aid video on the above video client starting from the above playback progress.
[0015] As an alternative, the above device further includes: a third acquisition unit, configured to acquire gyroscope data and sliding operation data before the sleep aid guidance information is displayed on the video client, where the gyroscope data is the terminal rotation data collected by a gyroscope configured on the terminal device running the video client, and the sliding operation data is used to indicate the sliding direction corresponding to the sliding operation collected on the terminal device; a first determination unit, configured to determine the current posture of the user in use by using the gyroscope data and the sliding operation data before the sleep aid guidance information is displayed on the video client.
[0016] As an alternative, the above device further includes: a fourth acquisition unit, configured to acquire the first sleep time corresponding to the shutdown of the terminal device running the video client and the second sleep time corresponding to the shutdown of the video client when the time acquisition authorization of the user in use for the video client is obtained before the sleep aid guidance information is displayed on the video client; a first default unit, configured to default that the user in use is in the initial sleep state in the case of a first buffer time before the first sleep time or a second buffer time before the second sleep time before the sleep aid guidance information is displayed on the video client; or, a fifth acquisition unit, configured to acquire the third sleep time corresponding to the shutdown of the terminal device that has obtained the time acquisition authorization and the fourth sleep time corresponding to the shutdown of the video client that has obtained the time acquisition authorization when the time acquisition authorization is not obtained before the sleep aid guidance information is displayed on the video client; a second default unit, configured to default that the user in use is in the initial sleep state in the case of a third buffer time before the third sleep time or a fourth buffer time before the fourth sleep time before the sleep aid guidance information is displayed on the video client.
[0017] As an alternative, the above device further includes: a sixth acquisition unit, configured to acquire the dynamic information corresponding to the terminal device running the video client before the sleep aid guidance information is displayed on the video client, where the dynamic information is used to represent the information when the position of the terminal device changes; an adjustment unit, configured to adjust the running brightness of the video client to a target brightness adapted to the ambient brightness before the sleep aid guidance information is displayed on the video client when the dynamic information indicates that the terminal device is in a stationary state and the ambient brightness where the terminal device is located is less than or equal to the sleep brightness, where the speed at which the position of the terminal device in the stationary state changes is less than or equal to the stationary speed.
[0018] As an alternative solution, the above device further includes: a weight unit, configured to determine a first candidate video that has a sleep aid interaction operation with the user from a candidate video set before playing the at least one sleep aid video on the video client, and increase the sleep aid weight of the first candidate video; and determine a second candidate video that has a daily interaction operation with the user from the candidate video set, and decrease the sleep aid weight of the second candidate video; a second determination unit, configured to determine the sleep aid video from the candidate video set according to the sleep aid weight before playing the at least one sleep aid video on the video client, wherein the probability of being determined as the sleep aid video is positively correlated with the sleep aid weight.
[0019] According to another aspect of the embodiments of the present application, there is provided a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above video sleep aid method.
[0020] According to another aspect of the embodiments of the present application, there is also provided an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the above video sleep aid method through the computer program.
[0021] In an embodiment of the present application, sleep assistance guidance information is displayed on a video client. The sleep assistance guidance information is used to prompt the user of the video client that they are in the initial sleep state, and to guide the user to activate the video sleep assistance mode of the video client. The initial sleep state is used to indicate that the user is in an environment suitable for sleep, or that the user has assumed an initial sleep posture. When the video sleep assistance mode is activated, at least one sleep assistance video is played on the video client. The sleep assistance video is used to guide the user to assume a target sleep posture. Sleep reminder information is displayed on the video client. The sleep reminder information is used to prompt the user that they have assumed the target sleep posture, and the video client will be closed after a preset time of displaying the sleep reminder information. Through the sleep assistance guidance information, the user who has assumed the initial sleep posture is guided to actively activate the video sleep assistance mode, and further, a sleep assistance video is provided to the user to guide the user to enter the target sleep posture. During the playback stage of the sleep assistance video, when the user has assumed the target sleep posture, there is no need for the user's active operation, but the playback of the sleep assistance video is automatically closed, achieving the purpose of providing a sleep assistance method adapted to different sleep assistance stages for the user, thereby realizing the technical effect of improving the video sleep assistance efficiency, and further solving the technical problem of low video sleep assistance efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The drawings described herein are used to provide a further understanding of the present application, and constitute a part of the present application. The illustrative embodiments and descriptions thereof of the present application are used to explain the present application, and do not constitute an improper limitation of the present application. In the drawings:
[0023] Figure 1 is a schematic diagram of an application environment of an optional video sleep assistance method according to an embodiment of the present application;
[0024] Figure 2 is a schematic diagram of a process of an optional video sleep assistance method according to an embodiment of the present application;
[0025] Figure 3 is a schematic diagram of an optional video sleep assistance method according to an embodiment of the present application;
[0026] Figure 4 is a schematic diagram of another optional video sleep assistance method according to an embodiment of the present application;
[0027] Figure 5 is a schematic diagram of another optional video sleep assistance method according to an embodiment of the present application;
[0028] Figure 6 is a schematic diagram of another optional video sleep assistance method according to an embodiment of the present application;
[0029] Figure 7 It is a schematic diagram of another optional video sleep aid method according to an embodiment of the present application;
[0030] Figure 8 It is a schematic diagram of another optional video sleep aid method according to an embodiment of the present application;
[0031] Figure 9 It is a schematic diagram of another optional video sleep aid method according to an embodiment of the present application;
[0032] Figure 10 It is a schematic diagram of another optional video sleep aid method according to an embodiment of the present application;
[0033] Figure 11 It is a schematic diagram of another optional video sleep aid method according to an embodiment of the present application;
[0034] Figure 12 It is a schematic diagram of another optional video sleep aid method according to an embodiment of the present application;
[0035] Figure 13 It is a schematic diagram of another optional video sleep aid method according to an embodiment of the present application;
[0036] Figure 14 It is a schematic diagram of another optional video sleep aid method according to an embodiment of the present application;
[0037] Figure 15 It is a schematic diagram of another optional video sleep aid method according to an embodiment of the present application;
[0038] Figure 16 It is a schematic diagram of another optional video sleep aid method according to an embodiment of the present application;
[0039] Figure 17 It is a schematic diagram of another optional video sleep aid method according to an embodiment of the present application;
[0040] Figure 18 It is a schematic diagram of an optional video sleep aid device according to an embodiment of the present application;
[0041] Figure 19 It is a schematic structural diagram of an optional electronic device according to an embodiment of the present application. Detailed implementation manners
[0042] To enable those skilled in the art to better understand the solution of this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in this application without creative efforts shall fall within the scope of protection of this application.
[0043] It should be noted that the terms "first", "second", etc. in the specification, claims and above-mentioned drawings of this application are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of this application described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0044] Artificial Intelligence (AI for short) is a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science. It attempts to understand the essence of intelligence and produce a new intelligent machine that can react in a way similar to human intelligence. Artificial intelligence also studies the design principles and implementation methods of various intelligent machines, enabling the machines to have the functions of perception, reasoning and decision-making.
[0045] Artificial intelligence technology is an interdisciplinary subject with a wide range of fields, including both hardware-level technologies and software-level technologies. The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, pre-trained model technology, operation / interaction systems, mechatronics, etc. Among them, pre-trained models, also known as large models or foundation models, can be widely applied to downstream tasks in various directions of artificial intelligence after fine-tuning. The software technologies of artificial intelligence mainly include several major directions such as computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0046] Computer Vision Technology (CV) Computer vision is a science that studies how to enable machines to "see". More specifically, it refers to machine vision that uses cameras and computers to replace human eyes for tasks such as object recognition, detection, and measurement, and further performs graphics processing to make the computer-processed images more suitable for human eyes to observe or be transmitted to instruments for detection. As a scientific discipline, computer vision studies related theories and technologies and attempts to build artificial intelligence systems that can obtain information from images or multi-dimensional data. Large model technology has brought important changes to the development of computer vision technology. Pretrained models in the field of vision such as swin-transformer, ViT, V-MOE, and MAE can be quickly and widely applied to downstream specific tasks after fine-tuning. Computer vision technology usually includes technologies such as image processing, image recognition, image semantic understanding, image retrieval, OCR, video processing, video semantic understanding, video content / behavior recognition, 3D object reconstruction, 3D technology, virtual reality, augmented reality, simultaneous localization and mapping, and also includes common biometric recognition technologies such as face recognition and fingerprint recognition.
[0047] With the research and progress of artificial intelligence technology, artificial intelligence technology has been studied and applied in multiple fields, such as common smart homes, smart wearable devices, virtual assistants, smart speakers, smart marketing, driverless, autonomous driving, drones, digital twins, virtual humans, robots, artificial intelligence-generated content (AIGC), conversational interaction, intelligent healthcare, intelligent customer service, game AI, etc. It is believed that with the development of technology, artificial intelligence technology will be applied in more fields and play an increasingly important role.
[0048] The solution provided in the embodiments of this application relates to technologies such as computer vision technology of artificial intelligence, and is specifically described through the following embodiments:
[0049] According to one aspect of the embodiments of this application, a video sleep aid method is provided. Optionally, as an alternative implementation, the above video sleep aid method can be but is not limited to being applied to an environment such as Figure 1 shown. Among them, it can but is not limited to include a user device 102 and a server 112. The user device 102 can be but is not limited to a terminal device running a video client, and the user device can but is not limited to include a display 104, a processor 106, and a memory 108. The server 112 includes a database 114 and a processing engine 116.
[0050] The specific process can be as follows:
[0051] Step S102, the user device 102 displays the sleep aid guidance information on the video client through the display 104 and obtains an opening request for the video sleep aid mode;
[0052] Step S104: Send the activation request to the server 112 via the network 110;
[0053] Step S106: The server 112 responds to the activation request through the processing engine 116 and obtains multiple sleep aid videos from the memory 108;
[0054] Step S108: Send the multiple sleep aid videos to the user device 102 via the network 110. The user device 102 displays the multiple sleep aid videos on the display 104 through the processor 106 and stores the multiple sleep aid videos in the memory 108.
[0055] Except Figure 1 for the examples shown, the above steps can be independently completed by the user device or the server, or jointly completed by the user device and the server. For example, the user device 102 executes the above steps such as S106, thereby reducing the processing pressure on the server 112. The user device 102 includes but is not limited to handheld devices (such as terminal devices), laptop computers, tablet computers, desktop computers, in-vehicle devices, smart TVs, etc. The present application does not limit the specific implementation manner of the user device 102. The server 112 can be a single server or a server cluster composed of multiple servers, or a cloud server.
[0056] Optionally, as an alternative implementation, as Figure 2 shown, the video sleep aid method can be executed by an electronic device, such as Figure 1 the user device or the server shown, and the specific steps include:
[0057] S202: Display sleep aid guidance information on the video client. The sleep aid guidance information is used to prompt the user of the video client that they are in the initial sleep state and guide the user to activate the video sleep aid mode of the video client. The initial sleep state is used to indicate that the user is in a suitable sleep environment or has adopted an initial sleep posture;
[0058] S204: Play at least one sleep aid video on the video client when the video sleep aid mode is activated. The sleep aid video is used to guide the user to adopt a sleep target posture, and the sleep target posture is the posture in which the user is asleep or a posture close to the user's pre-sleep state;
[0059] S206: Display sleep reminder information on the video client. The sleep reminder information is used to prompt the user that they have adopted the sleep target posture, and the video client will close after a preset time of displaying the sleep reminder information.
[0060] Optionally, in this embodiment, the above video-assisted sleep method can be but is not limited to being applied in the scenario of playing short videos. Currently, many users have the habit of swiping through short videos before going to bed or after waking up, and are prone to addiction and neglect of sleep time, which has a negative impact on personal health and the device itself. For example, swiping through short videos while lying down in a dark environment is likely to affect eyesight and sleep quality. In addition, some users have also reported that they often fall asleep while swiping through short videos, resulting in the terminal device staying in standby all night and running out of power in the morning, affecting the use of the device the next day. The video-assisted sleep method provided in this embodiment can timely remind users of their sleep time (such as the sleep assistance guidance information is used to prompt the users of the video client that they are already in the initial sleep state), and users need to actively or passively turn on the video-assisted sleep mode, which can also enhance the users' awareness of taking the initiative to fall asleep.
[0061] In addition, this embodiment can also adopt a progressive approach to guide users to sleep (such as the sleep assistance guidance information guides the users to actively turn on the video-assisted sleep mode of the video client, and the sleep assistance video guides the users to enter the sleep target posture). After the users fall asleep, there is no need for the users to perform any active operations, but the device or client will be automatically turned off (such as the video client will be turned off after a preset time of displaying the sleep reminder information). First, the users actively turning on the video-assisted sleep mode can accurately clarify that the users want to fall asleep but may have difficulty falling asleep, and thus have a need for sleep guidance, reducing the probability of misguidance. Second, this progressive sleep assistance method from active to passive is more in line with the users' sleep pattern. For example, the mental state of users during sleep is also from active (with greater emotional fluctuations, corresponding to active operations) to passive (with smaller emotional fluctuations, corresponding to passive operations). Moreover, for the case after the video-assisted sleep mode is turned on, if the users still need to perform active operations when they are about to fall asleep, it may cause the users to wake up from the state of almost falling asleep. Therefore, this embodiment adopts a passive method after the video-assisted sleep mode is turned on, which can effectively prevent the device from continuing to run after the users fall asleep, thereby having a negative impact on the device itself.
[0062] Optionally, in this embodiment, the video client can be but is not limited to a software application program running on a terminal device for playing various media videos, which can provide an interface and functions for users to facilitate the search, selection, playback, and management of video content. Among them, the types of media videos can be divided into short videos and long videos according to the video length, or can be divided into movies, TV dramas, variety shows, documentaries, etc. according to the type of video content.
[0063] Optionally, in this embodiment, the sleep initial state is used to indicate that the user is in an environment suitable for sleeping, or the user is in an initial sleeping posture, wherein the environment suitable for sleeping can be understood as, but not limited to, an environment suitable for the user to fall asleep, and can be determined by, but not limited to, suitable environmental parameters set by the user, or can be determined based on the daily sleeping environment collected with the user's authorization. Whether the user is in an environment suitable for sleeping can be determined based on, but not limited to, collected environmental parameters, such as environmental parameters including ambient temperature, ambient brightness, ambient volume, ambient oxygen concentration, etc.
[0064] For further example, optionally, when it is detected that the brightness of the environment in which the user is located is continuously lower than the preset brightness threshold, a sleep-aiding guidance message is displayed on the video client, firstly to guide the user to turn on the video sleep-aiding mode, and secondly to remind the user that using the video client in a low-brightness environment will damage the eyes. If the user does not choose to turn on the video sleep-aiding mode, the user can be further prompted to increase the brightness of the environment.
[0065] Optionally, in this embodiment, the initial sleeping posture may refer to, but is not limited to, the initial posture of the user before falling asleep, such as lying down, side-lying, prone, curled up, etc. Considering that different users may have different sleeping postures, the initial sleeping posture of the user may be determined based on the user's daily sleeping posture to improve the display accuracy of the sleep-aiding guidance information.
[0066] Optionally, in this embodiment, if Figure 3 As shown in the figure, when it is detected that the user is in the initial sleeping posture, the sleep aid guidance information 304 is displayed on the video client 302, such as "It is very late, you seem to have assumed the posture of going to sleep (initial sleeping posture)", "Turn on the video sleep aid mode (guide the user to turn on the video sleep aid mode of the video client)", "Do not turn on the video sleep aid mode".
[0067] Optionally, in this embodiment, the video sleep-aiding mode can be, but is not limited to, a method of combining sleep-aiding videos to help users fall asleep. In addition to certain requirements on the content of the sleep-aiding videos, this video sleep-aiding mode will also adjust the way the videos are played to further improve the sleep-aiding effect;
[0068] For further illustration, optionally, for example, the playback speed of a video can be adjusted to slow playback or fast forward playback. Slow playback can help users relax and fall asleep better, while fast forward playback can reduce the duration of the video and improve efficiency; the volume of the video can be adjusted to mute or adjusted to a specific volume. Muting can help users fall asleep better, while a specific volume can be adjusted according to personal preferences and needs; the playback effect of the video can be adjusted to silent playback or sound playback. Silent playback can help users relax and fall asleep better, while sound playback can allow users to better enjoy the video content; the playback mode of the video can be adjusted to loop playback or single playback. Loop playback can help users better maintain a relaxed state, while single playback can allow users to better control the viewing time; the picture quality of the video can be adjusted to blurred or clear. Blurred pictures can help users relax and fall asleep better, while clear pictures can allow users to better appreciate the video content.
[0069] Optionally, in this embodiment, based on Figure 3 the scenario shown, continue for example Figure 4 as shown, during the playback of the sleep aid video 402, if it is detected that the user has already assumed the sleep target posture, a sleep prompt message 404 is displayed on the video client 302, such as "You seem to be almost asleep (the user has already assumed the sleep target posture), go to bed earlier~".
[0070] Optionally, in this embodiment, the sleep target posture can but is not limited to be understood as the posture of the user when asleep, or the posture close to sleep before going to bed, usually a relatively relaxed and comfortable posture, the posture when the user is about to or has already entered the sleep state. For the detection of the sleep target posture, if it is detected that the user has no obvious body movements within a period of time and the breathing becomes slow and deep, then it can be considered that the user has fallen asleep or is about to fall asleep; or, by monitoring physiological parameters such as the user's breathing and heart rate, it can be determined whether the user has fallen asleep or is about to fall asleep; or, by monitoring the user's brain waves, it can be determined whether the user has entered or is about to enter the sleep state; or, by monitoring the user's eye movement situation, it can be determined whether the user has entered or is about to enter the sleep state; or, by monitoring the user's voice, it can be determined whether the user has entered or is about to enter the sleep state.
[0071] Optionally, in this embodiment, the sleep aid video is used to guide the user to assume the sleep target posture. The video content of the sleep aid video is usually mainly characterized by relaxation, soothing and quietness, and relieves tension and anxiety through visual and auditory stimuli, so as to help the user fall asleep faster;
[0072] For further illustration, optionally, for example, using a video of natural scenery to help the user relax; or, playing soothing music to help the user relax; or, playing soothing music to help the user relax; or, telling bedtime stories to help the user fall asleep; or, using meditation videos to help the user relax.
[0073] In addition, this embodiment can also provide more suitable sleep aid videos for different users. For example, according to the sleep needs and preferences of the user, personalized sleep aid video content is provided; or, the sleep aid video is combined with a smart device to achieve more intelligent sleep management. Further, this embodiment can also combine the sleep aid video with social interaction, enabling the user to share their sleep experiences and insights on a social platform. For example, through the live broadcast function on the social platform, the user can share their sleep process and feelings with other users, promoting the exchange and sharing of sleep health.
[0074] Optionally, in this embodiment, the method of playing at least one sleep aid video on the video client can, but is not limited to, simultaneously displaying the video identifiers corresponding to each sleep aid video on the video client, and then performing a selection operation on the video identifier to determine the currently played sleep aid video; or, it can, but is not limited to, sequentially playing each sleep aid video on the video client. For example, first obtain video data from multiple video sources. After obtaining multiple video data, the video client needs to arrange these videos in a certain order and play them sequentially. This order can be random, cyclic, or customized according to the user's preferences and needs. During the playback of multiple sleep aid videos, the video client needs to control the playback time and interval of each video. This time can be adjusted according to the user's sleep needs and preferences. For example, each video is played for 10 - 15 minutes, and the interval is 5 - 10 minutes. Or, during the playback of multiple sleep aid videos, the user can switch the currently played sleep aid video to play another sleep aid video by performing a playback switching operation on the video client.
[0075] Optionally, in this embodiment, the video client can preset a time to close the video according to the user's sleep needs and preferences. For example, if the user hopes to automatically close the video 30 minutes after watching the last sleep aid video, this time can be set in the settings, and the video client will close after displaying the sleep reminder message and after the preset time after playing the last sleep aid video. Or, based on the display time of the sleep reminder message, the video client is closed after the preset time from the display time of this reminder.
[0076] It should be noted that through the sleep aid guidance information, the user who has already assumed the initial sleep posture is guided to actively turn on the video sleep aid mode, and further provided with sleep aid videos to guide the user to enter the target sleep posture. During the playback stage of the sleep aid video, when the user has already assumed the target sleep posture, there is no longer a need for the user's active operation, but the playback of the sleep aid video is automatically turned off, providing the user with sleep aid methods adapted to different sleep aid stages, thereby achieving the technical effect of improving the efficiency of video sleep aid.
[0077] For further illustration by way of example, optionally, for instance Figure 5 As shown, sleep aid guidance information 504 is displayed on the video client 502. Among them, the sleep aid guidance information 504 is used to prompt the user of the video client 502 that they have already assumed the initial sleep posture (illustrated here by taking the initial sleep posture as an example, or it can also prompt that the user is in a suitable environment for sleeping, or that the user has already entered the initial sleep state), and guide the user to turn on the video sleep aid mode of the video client 502; in the case of turning on the video sleep aid mode, at least one sleep aid video 506 is played on the video client 502, where the sleep aid video 506 is used to guide the user to assume the target sleep posture; sleep reminder information 508 is displayed on the video client 502, where the sleep reminder information 508 is used to prompt the user that they have already assumed the target sleep posture, and the video client 502 will turn off after a preset time of displaying the sleep reminder information 508.
[0078] Through the embodiments provided in this application, sleep aid guidance information is displayed on the video client. Among them, the sleep aid guidance information is used to prompt the user of the video client that they have already entered the initial sleep state, and guide the user to turn on the video sleep aid mode of the video client. The initial sleep state is used to indicate that the user is in a suitable environment for sleeping, or that the user has already assumed the initial sleep posture; in the case of turning on the video sleep aid mode, at least one sleep aid video is played on the video client, where the sleep aid video is used to guide the user to assume the target sleep posture. The target sleep posture is the posture in which the user has fallen asleep, or the posture close to before the user falls asleep; sleep reminder information is displayed on the video client, where the sleep reminder information is used to prompt the user that they have already assumed the target sleep posture, and the video client will turn off after a preset time of displaying the sleep reminder information. Through the sleep aid guidance information, the user who has already assumed the initial sleep posture is guided to actively turn on the video sleep aid mode, and further provided with sleep aid videos to guide the user to enter the target sleep posture. During the playback stage of the sleep aid video, when the user has already assumed the target sleep posture, there is no longer a need for the user's active operation, but the playback of the sleep aid video is automatically turned off, achieving the purpose of providing the user with sleep aid methods adapted to different sleep aid stages, thereby achieving the technical effect of improving the efficiency of video sleep aid.
[0079] As an alternative solution, play at least one sleep aid video on the video client, including at least one of the following:
[0080] S1-1, play the sleep aid video on the video client until the playing time of the sleep aid video is greater than or equal to the sleep time, where at least one sleep aid video includes the sleep aid video played during the sleep time;
[0081] S1-2, play the sleep aid video on the video client until the number of played sleep aid videos is greater than or equal to the sleep number, where at least one sleep aid video includes the sleep aid video of the sleep number.
[0082] It should be noted that, to improve the sleep aid quality of the sleep aid video for users, the playing of the sleep aid video is restricted in terms of time and quantity dimensions, preventing the problem that users ignore sleep due to being addicted to the sleep aid video.
[0083] Through the embodiments provided by this application, play the sleep aid video on the video client until the playing time of the sleep aid video is greater than or equal to the sleep time, where at least one sleep aid video includes the sleep aid video played during the sleep time; play the sleep aid video on the video client until the number of played sleep aid videos is greater than or equal to the sleep number, where at least one sleep aid video includes the sleep aid video of the sleep number, thereby achieving the purpose of restricting the playing of the sleep aid video in terms of time and quantity dimensions, and thus realizing the technical effect of improving the sleep aid quality of the sleep aid video for users.
[0084] As an alternative solution, after playing at least one sleep aid video on the video client, the method further includes:
[0085] S2-1, when the playing time of the sleep aid video is greater than or equal to the sleep time, determine that the user is in the sleep target posture, and display a sleep prompt message on the video client; or,
[0086] S2-2, when the number of played sleep aid videos is greater than or equal to the sleep number, determine that the user is in the sleep target posture, and display a sleep prompt message on the video client.
[0087] It should be noted that, to improve the display timeliness of the sleep prompt message, the playing of the sleep aid video is restricted in terms of time and quantity dimensions, and when the playing limit is reached, the sleep prompt message is displayed in a timely manner to prompt that the user is in the sleep target posture.
[0088] In addition, in this embodiment, after the sleep prompt message is displayed on the video client, the user can independently choose to continue playing the sleep aid video to indicate a negative sleep target posture.
[0089] Through the embodiments provided by this application, when the playing time of the sleep-aid video is greater than or equal to the sleep time, it is determined that the user is in the sleep target posture, and a sleep prompt message is displayed on the video client; or, when the number of played sleep-aid videos is greater than or equal to the sleep number, it is determined that the user is in the sleep target posture, and a sleep prompt message is displayed on the video client. Thus, the purpose of timely displaying the sleep prompt message when the playing limit is reached is achieved, and the technical effect of improving the display timeliness of the sleep prompt message is realized.
[0090] As an optional solution, during the process of displaying the sleep-aid guidance information on the video client, the method further includes:
[0091] Displaying an eye evaluation activation message, where the eye evaluation activation message is used to prompt the user to activate the eye posture evaluation function of the video client, and the video client after activating the eye posture evaluation function is set to continuously detect the user's eye posture.
[0092] Optionally, in this embodiment, the user can activate the eye posture evaluation function by clicking a button or link in the eye evaluation activation message. Once activated, the video client will continuously detect the user's eye posture and generate relevant data and analysis results. After activating the eye posture evaluation function, the video client will capture and process the user's eye posture data in real time. These data can be analyzed through algorithms to provide relevant information about the user's state.
[0093] Optionally, in this embodiment, after activating the eye posture evaluation function, the video client will capture and process the user's eye posture data in real time. These data can be analyzed through algorithms to provide relevant information about the user's state.
[0094] It should be noted that to improve the detection accuracy of whether the user is in the sleep target posture, the eye posture evaluation function of the video client is activated, and the user's eye posture is continuously detected.
[0095] Through the embodiments provided by this application, an eye evaluation activation message is displayed, where the eye evaluation activation message is used to prompt the user to activate the eye posture evaluation function of the video client, and the video client after activating the eye posture evaluation function is set to continuously detect the user's eye posture. Thus, the purpose of activating the eye posture evaluation function of the video client and continuously detecting the user's eye posture is achieved, and the technical effect of improving the detection accuracy of whether the user is in the sleep target posture is realized.
[0096] As an optional solution, after displaying the eye evaluation activation message, the method further includes:
[0097] S3-1. When the eye gesture evaluation function is enabled, obtain eye evaluation information, where the eye evaluation information is used to evaluate the eye gesture of the user.
[0098] S3-2. When the eye evaluation information indicates that the eye gesture of the user is in the eye sleep gesture, determine that the user is in the sleep target gesture, and display a sleep prompt message on the video client. Here, the continuous closing duration of the eye in the eye sleep gesture is greater than or equal to the sleep duration, or the blink frequency of the eye in the eye sleep gesture is less than or equal to the sleep frequency.
[0099] Optionally, in this embodiment, the eye gesture of the user mainly refers to obtaining relevant data and information by analyzing the eye movement and expression of the user. For example, by capturing the eye image of the user and analyzing the changes in its movement and expression.
[0100] It should be noted that to improve the recognition accuracy of the sleep gesture, when the continuous closing duration of the eye is greater than or equal to the sleep duration, or the blink frequency of the eye is less than or equal to the sleep frequency, it is determined that the user is in the sleep target gesture.
[0101] Through the embodiment provided by this application, when the eye gesture evaluation function is enabled, obtain eye evaluation information, where the eye evaluation information is used to evaluate the eye gesture of the user; when the eye evaluation information indicates that the eye gesture of the user is in the eye sleep gesture, determine that the user is in the sleep target gesture, and display a sleep prompt message on the video client. Here, the continuous closing duration of the eye in the eye sleep gesture is greater than or equal to the sleep duration, or the blink frequency of the eye in the eye sleep gesture is less than or equal to the sleep frequency, thereby achieving the technical effect of improving the recognition accuracy of the sleep gesture.
[0102] As an optional solution, during the process of displaying the sleep prompt message on the video client, the method further includes: displaying video alarm information on the video client, where the video alarm information is used to prompt the video alarm operation that has been set or to be set on the video client. The video alarm operation is an operation performed by the video client to wake up from sleep in the form of playing a wake-up video.
[0103] As an optional solution, after displaying the video alarm information on the video client, the method further includes: in the case of a video alarm operation with a set wake-up time point, when the wake-up time point is reached, play a wake-up video on the video client.
[0104] Optionally, in this embodiment, the video alarm information is used to prompt the video alarm operation that has been set or to be set on the video client. The video alarm operation is an operation performed by the video client to wake up from sleep in the form of playing a wake-up video.
[0105] It should be noted that considering that high-quality sleep aid videos can help users fall asleep quickly, but at the same time of falling asleep quickly, they may forget to set the alarm clock. Therefore, the video client synchronously provides a video alarm function. Thus, users who fall asleep due to sleep aid videos can complete the setting of the video alarm on the video client, so that the video client will play the corresponding wake-up video at the set wake-up time point. The use of the wake-up video complements the sleep aid video, further improving the user experience of the sleep aid video.
[0106] Through the embodiments provided by the present application, video alarm information is displayed on the video client, where the video alarm information is used to prompt the video alarm operation that has been set or to be set on the video client, and the video alarm operation is an operation executed by the video client to perform sleep wake-up in the form of playing a wake-up video; in the case of a video alarm operation with a set wake-up time point, when the wake-up time point is reached, a wake-up video is played on the video client, thereby achieving the technical effect of improving the user experience of the sleep aid video.
[0107] As an optional solution, during the process of playing the wake-up video on the video client, the method further includes:
[0108] When an interaction operation performed on the wake-up video on the video client is obtained and the interaction operation meets the user's waking condition, stop playing the wake-up video on the video client.
[0109] It should be noted that to improve the wake-up fault tolerance rate of the wake-up video, during the process of playing the wake-up video, only when the user performs an interaction operation on the wake-up video and the interaction operation meets the user's waking condition, stop playing the wake-up video on the video client, so as to avoid the problem that the user is not woken up in time due to temporarily ignoring the wake-up video.
[0110] Through the embodiments provided by the present application, when an interaction operation performed on the wake-up video on the video client is obtained and the interaction operation meets the user's waking condition, stop playing the wake-up video on the video client, thereby achieving the purpose of avoiding the problem that the user is not woken up in time due to temporarily ignoring the wake-up video, and thus realizing the technical effect of improving the wake-up fault tolerance rate of the wake-up video.
[0111] As an optional solution, after the sleep reminder information is displayed on the video client, the method further includes:
[0112] S4-1, obtain an end sleep aid video played when the video client is closed after a preset time;
[0113] S4-2, when the ending sleep aid video has not been played to completion, record the playback progress of the ending sleep aid video;
[0114] S4-3, when the video client is restarted again, start playing the ending sleep aid video on the video client from the playback progress.
[0115] It should be noted that considering that a high-quality sleep aid video can help users fall asleep quickly, but at the same time of falling asleep quickly, it may also cause the high-quality sleep aid video not to be watched by the user, resulting in the user missing the high-quality sleep aid video. When the video client is restarted again, start playing again on the video client from the playback progress when the sleep aid video was closed when the user fell asleep, so as to ensure that the sleep aid video missed due to the user falling asleep is played completely, and improve the user experience of playing the sleep aid video.
[0116] Through the embodiments provided in this application, obtain the ending sleep aid video played when the video client is closed after a preset time; when the ending sleep aid video has not been played to completion, record the playback progress of the ending sleep aid video; when the video client is restarted again, start playing the ending sleep aid video on the video client from the playback progress, thus achieving the purpose of ensuring that the sleep aid video missed due to the user falling asleep is played completely, and thus realizing the technical effect of improving the user experience of playing the sleep aid video.
[0117] As an optional solution, before displaying the sleep aid guidance information on the video client, the method further includes:
[0118] S5-1, obtain gyroscope data and swipe operation data, where the gyroscope data is the terminal rotation data collected by the gyroscope configured on the terminal device running the video client, and the swipe operation data is used to indicate the swipe direction corresponding to the swipe operation collected on the terminal device;
[0119] S5-2, use the gyroscope data and the swipe operation data to determine the posture that the user is currently in.
[0120] Optionally, in this embodiment, the gyroscope data usually includes information such as the rotation speed and angle of the device, and can reflect the posture change of the device. The swipe operation data can indicate the operation behavior of the user on the device, such as swiping left or right, or swiping up or down, etc.
[0121] It should be noted that to improve the recognition accuracy of the user's posture, based on the dimensions of the device and the user's operations, combine the gyroscope data and the swipe operation data to jointly determine the posture that the user is currently in.
[0122] Through the embodiments provided in this application, gyroscope data and swipe operation data are obtained. The gyroscope data is the terminal rotation data collected by a gyroscope configured on a terminal device running a video client, and the swipe operation data is used to indicate the swipe direction corresponding to a swipe operation collected on the terminal device. By using the gyroscope data and the swipe operation data to determine the current posture of the user, the purpose of jointly determining the current posture of the user is achieved based on the device dimension and the user operation dimension, thereby realizing the technical effect of improving the recognition accuracy of the user posture.
[0123] As an alternative solution, before displaying the sleep assistance guidance information on the video client, the method further includes:
[0124] S6-1, when obtaining the time collection authorization of the user for the video client, obtaining the first sleep time corresponding to the shutdown of the terminal device running the video client, and the second sleep time corresponding to the shutdown of the video client;
[0125] S6-2, in the case of the first buffer time before the first sleep time or the second buffer time before the second sleep time, it is defaulted that the user is in the initial sleep state; or,
[0126] S6-3, when not obtaining the time collection authorization, obtaining the third sleep time corresponding to the shutdown of a terminal device that has obtained the time collection authorization, and the fourth sleep time corresponding to the shutdown of a video client that has obtained the time collection authorization;
[0127] S6-4, in the case of the third buffer time before the third sleep time or the fourth buffer time before the fourth sleep time, it is defaulted that the user is in the initial sleep state.
[0128] It should be noted that, to improve the comprehensiveness of identifying the initial sleep state, two methods for identifying the initial sleep state are provided for the user according to whether the user authorizes time collection. If the user authorizes time collection, the user's daily sleep time is collected, and a buffer time is set. Then, when the buffer time before the user's daily sleep time arrives, it is defaulted that the user is in the initial sleep state. For the case where the user does not authorize time collection, the daily sleep time of other users (the relationship with the user can be a friend relationship or users with similar account attributes) can be obtained (it can be the average of multiple other users), and a buffer time is also set. Then, when the buffer time before the daily sleep time of other users arrives, it is defaulted that the user is in the initial sleep state.
[0129] In addition, in this embodiment, to further improve the recognition accuracy of the initial sleep state, considering both the device dimension and the client dimension, the shutdown time of the terminal device and the shutdown time of the video client are used to jointly confirm the time when the user is in the initial sleep state.
[0130] Through the embodiment provided by the present application, when the time collection authorization of the video client by the user is obtained, the first sleep time corresponding to the shutdown of the terminal device running the video client and the second sleep time corresponding to the shutdown of the video client are obtained; in the case of the first buffer time before the first sleep time or the second buffer time before the second sleep time, it is defaulted that the user is in the initial sleep state; or, when the time collection authorization is not obtained, the third sleep time corresponding to the shutdown of the terminal device that has obtained the time collection authorization and the fourth sleep time corresponding to the shutdown of the video client that has obtained the time collection authorization are obtained; in the case of the third buffer time before the third sleep time or the fourth buffer time before the fourth sleep time, it is defaulted that the user is in the initial sleep state, thereby achieving the purpose of providing two recognition methods for the initial sleep state for the user according to whether the user authorizes time collection, and thus realizing the technical effect of improving the comprehensiveness of recognizing the initial sleep state.
[0131] As an optional solution, before displaying the sleep assistance guidance information on the video client, the method further includes:
[0132] S7-1, obtaining the dynamic information corresponding to the terminal device running the video client, where the dynamic information is used to represent the information when the position of the terminal device changes;
[0133] S7-2, when the dynamic information indicates that the terminal device is in a stationary state and the ambient brightness where the terminal device is located is less than or equal to the sleep brightness, adjusting the running brightness of the video client to the target brightness adapted to the ambient brightness, where the speed of the position change of the stationary terminal device is less than or equal to the stationary speed.
[0134] Optionally, in this embodiment, the dynamic information is used to represent the information when the key coordinate points on the terminal device change in position. For example, the orientation angle of the terminal device changes, and the key coordinate points are located on the path where the orientation angle changes, so that the dynamic information indicates that the terminal device is in an active state.
[0135] It should be noted that, to improve the user experience of using the video client, the playback brightness of the video client is automatically adjusted for the user. At the same time, to improve the accuracy of the timing for automatically adjusting the playback brightness, the dynamic information indicating the position change of the terminal device is first obtained, and then the playback brightness is adjusted only when the dynamic information indicates that the terminal device is in a stationary state and the ambient brightness of the terminal device is less than or equal to the sleep brightness.
[0136] Through the embodiments provided in this application, the dynamic information corresponding to the terminal device running the video client is obtained, where the dynamic information is used to represent the information when the position of the terminal device changes; when the dynamic information indicates that the terminal device is in a stationary state and the ambient brightness of the terminal device is less than or equal to the sleep brightness, the running brightness of the video client is adjusted to the target brightness adapted to the ambient brightness, where the speed of the position change of the stationary terminal device is less than or equal to the stationary speed, thereby achieving the purpose of automatically adjusting the playback brightness of the video client for the user at an accurate timing, and thus realizing the technical effect of improving the user experience of using the video client.
[0137] As an optional solution, before playing at least one sleep aid video on the video client, the method further includes:
[0138] S8-1, determining a first candidate video that has a sleep aid interaction operation with the user from the candidate video set and increasing the sleep aid weight of the first candidate video; and, determining a second candidate video that has a daily interaction operation with the user from the candidate video set and decreasing the sleep aid weight of the second candidate video;
[0139] S8-2, determining a sleep aid video from the candidate video set according to the sleep aid weight, where the probability of being determined as a sleep aid video is positively correlated with the sleep aid weight.
[0140] Optionally, in this embodiment, the sleep aid interaction operation can be, but is not limited to, understood as an interaction operation that helps with sleep. For example, if the user comments "so healing" in the comment area of the candidate video and hits the sleep aid keyword "healing", then the comment operation of the above comment "so healing" is regarded as a sleep aid interaction operation. And the daily interaction operation can be, but is not limited to, understood as an interaction operation that does not help with sleep. For example, if the user comments "so wonderful" in the comment area of the candidate video and does not hit the sleep aid keyword, then the comment operation of the above comment "so wonderful" is regarded as a daily interaction operation.
[0141] It should be noted that, to improve the sleep aid quality of the sleep aid video, the method of using the sleep aid weight is adopted to determine a high-quality sleep aid video from the candidate video set, and the sleep aid weight is dynamically adjustable, and the adjustment method depends on the sleep aid interaction operation or daily interaction operation performed by the user.
[0142] Through the embodiments provided in this application, the first candidate video that has a sleep aid interaction operation with the user is determined from the candidate video set, and the sleep aid weight of the first candidate video is increased; and, the second candidate video that has a daily interaction operation with the user is determined from the candidate video set, and the sleep aid weight of the second candidate video is decreased; according to the sleep aid weight, the sleep aid video is determined from the candidate video set, where the probability of being determined as the sleep aid video is positively correlated with the sleep aid weight. Thus, the purpose of determining high-quality sleep aid videos from the candidate video set by using the sleep aid weight is achieved, and the technical effect of improving the sleep aid quality of the sleep aid video is realized.
[0143] As an optional solution, for easy understanding, the above video sleep aid method is applied to the short video playback scenario, providing a method for the user to intelligently control the short video playback according to the body posture and sleep state. For example, considering factors such as user operations and user privacy, combining the capabilities of multiple device sensors (such as light sensors, gyroscopes, infrared depth cameras, etc.) and the user authorization situation, the current usage, mental state, and browsing body posture of the user are judged in a combined manner, and the screen brightness is adjusted, the content is adjusted, and the playback reminder is carried out progressively. When the user does not respond to the reminder, the short video application can be actively closed to avoid the device consuming power all night or affecting sleep midway.
[0144] Optionally, in this embodiment, in combination with the user's daily usage habits, the creators or content that the user focuses on can be aggregated into a short video alarm clock, and the wake-up playback is carried out in combination with the user's wake-up time; at the same time, if the user left or missed the corresponding content the previous night, the content pool can be re-booked for subsequent reminder and secondary viewing, without affecting the current life rhythm after waking up and avoiding the user being addicted after waking up.
[0145] Optionally, in this embodiment, the user can enter the short video stream provided by the video client through the terminal device. When the system detects that the ambient light of the user becomes extremely dark and the time hits the regular sleep period, the video automatically dims the brightness, and the content pool is adjusted to more quiet and sleep-aid videos.
[0146] Optionally, in this embodiment, as Figure 6As shown, when the system detects that the user is in a lying position, a reminder feed will be inserted into the video stream to prompt the user's posture and guide the activation of the sleep aid mode, such as "It's 11:59. You seem to be lying down", "Remember to pay attention to your video-watching posture", "Or turn on the sleep aid mode and fall asleep easily", "Turn on the sleep aid mode", "Anyway, I'm in charge of my posture", and prompt the user to swipe up to enter the sleep mode. After the user activates the sleep aid mode, a pop-up window can be displayed, and the pop-up window will inform the user that activating the sleep aid mode includes content recommendation and the ability to close and exit at a scheduled time. At the same time, it will ask the user whether to turn on the eye state assessment function. For example, if you need more accurate intelligent functions, please authorize the activation of the front camera. The system will evaluate your eye state and can only close the current process.
[0147] Furthermore, in this embodiment, as Figure 7 shown, when the user activates the sleep aid mode and the eye state assessment function, the system will detect the user's eye state. When the user's eye state is in a closed state or the blinking frequency is extremely low, a countdown operation for closing will appear at the bottom of the text. After 10 seconds, the screen will automatically turn off to protect the device from being lit and will not disturb the user's subsequent rest. If the user notices the prompt and clicks "Turn off the screen", they can directly skip the countdown. Close the terminal device process and lock the screen; if the user wants to continue watching the video, they can click "I can still watch for a while" to continue watching until the next trigger;
[0148] In addition, when the user activates the sleep aid mode and remains awake, the FEED content pool will push relaxing videos that are helpful for sleep. When the user swipes to the last N minutes (configurable in the background), a countdown prompt will appear at the bottom of the text, and the user will be reminded that they can set a video alarm. When the user swipes to the last video, a prompt will appear again at the bottom of the text, say good night to the user, and prompt the current video alarm activation status.
[0149] Optionally, in this embodiment, as Figure 8 shown, for the setting of the video alarm, when the user selects to turn on the video alarm, the system will automatically aggregate the user's most interested creators, content categories, or custom content and play them automatically at the time set for the alarm the next day, with the volume gradually increasing. When the user selects the wake-up time for setting the video alarm, a system time selector will be displayed, and the user can customize the video alarm time and frequency;
[0150] Optionally, in this embodiment, when the next day arrives at the alarm set time, the video will play automatically, and the volume will gradually sound. The user can see the latest or hottest pushes of their favorite creators or content categories. As Figure 9 shown, if the user clicks "Sleep for another 5 minutes", the short video will pause, the system screen will turn off, and the alarm will be reactivated after 5 minutes. If the user clicks "Turn off the alarm", the short video will stop playing, and the system screen will turn off.
[0151] In addition, in this embodiment, in addition to the conventional usage of the video alarm clock, an enhanced advanced gameplay for users who stay in bed can also be added. Later, the logic of shutting down the alarm clock by posting comments can be added (users can set it on the settings page), such as Figure 10 As shown in the figure, after the video alarm rings, the user must comment on N videos before the video alarm can be turned off. The user can regain consciousness during the interaction with the video, which prevents the user from staying in bed.
[0152] Optionally, in this embodiment, when a user misses content (including live playback or short video) due to falling asleep the previous night, the system will reserve content for him, such as Figure 11 As shown in the figure, when you open the video client the next day, the first content you missed, such as content A, content B, content C, etc., is inserted. Users can click to view immediately or schedule a reminder to watch, without disturbing the user's current life rhythm.
[0153] It should be noted that this embodiment combines the capabilities of multiple device sensors (photosensitive, gyroscope, infrared distance camera, etc.) and user authorization to determine the user's current usage, mental state, browsing posture, and perform screen brightness adjustment, content adjustment, playback reminders, and automatic operations in stages and progressively. If the user does not respond to the reminder, the short video application is actively closed to avoid the device consuming power all night or affecting sleep in the middle of the night. Personalized matching of each user's bedtime viewing videos and sleep habits solves the problem of weak hits; in addition, in the aggregation method of the sleep-aid content pool, a wider range of user tagging methods are adopted to make the content more diverse and the update rate faster, solving the problems of high duplication of reminder content and high production costs.
[0154] Further examples, optional examples such as Figure 12 As shown, this embodiment can be divided into sleep-aiding mode L1 (photosensitive and customized data linkage recommended content pool device), sleep-aiding mode L2 (lying posture determination device), and sleep-aiding mode L3 (human eye sleep state determination device). Specifically, in sleep-aiding mode L1, in combination with user usage habits, the photosensitive and speed determination devices are used to intelligently adjust the screen brightness, and the user interactive content is used to mark the content pool to provide corresponding sleep-aiding content; in sleep-aiding mode L2, a spirit level and fingertip direction are used to determine the lying posture, and sleep-aiding mode L2 is turned off at a scheduled time; in sleep-aiding mode L3, a 3D structured light human eye state determination device is used, and sleep-aiding mode L3 is turned off at a scheduled time.
[0155] Optionally, this embodiment combines the user's daily usage habits and personalized recommendation logic to aggregate the creators or content that the user focuses on into a short video alarm to wake up the user; in addition, this technical solution will combine the unlocking method of video interaction (such as comments, etc.) to prevent users from staying in bed while increasing the daily interaction between users and creators.
[0156] Optionally, in this embodiment, the content pool is recommended and adjusted according to light sensitivity, speed, and user usage habits, involving the user front end, the back-end judgment device, and the content pool recommendation device. The specific steps are as follows Figure 13 As shown, when the user uses the short video application, confirm whether to authorize the platform to retrieve the video viewing data and the terminal device usage duration information in the authorization pop-up window. If the user authorizes, the user's personalized terminal device and short video application time mode information are transmitted back, with the sleep time being S1 and the waking time being A1; if the user does not authorize, the global user average sleep time is obtained, with the sleep time being S2 and the waking time being A2. The sleep aid mode will be activated when the user is about to close the collection or about to fall asleep at night, and a buffer time needs to be added. A sleep aid buffer duration T is reserved before S1 and S2, and T can be configured by the background. When the current time reaches S + T, use the light sensor built into the terminal device to determine whether the current ambient brightness exceeds the dark threshold L; if so, enter the next speed and location judgment link, if not, keep the judgment and the current settings until the brightness exceeds the dark threshold. Even if the user's environment is too dark, the situation of walking at night or being in a dark vehicle still needs to be excluded. At this time, use the accelerometer sensor built into the terminal device to obtain the acceleration data of the device in three axes (x, y, and z) to determine the user's current position and moving speed; if there is geographical location information, it can be used for auxiliary judgment.
[0157] It should be noted that to protect user privacy, the speed and location information are only used for real-time judgment and are not stored asynchronously. When the device still has a moving speed or the geographical location is outdoors, the subsequent operations are not triggered, and regular detection is maintained. When the device speed approaches 0 and the geographical information is indoors, the sleep aid mode is activated (if the user does not authorize the positioning and speed information, the brightness judgment can be directly used for control).
[0158] Optionally, in this embodiment, for the content pool, the natural, relaxing, and leisure video content can be weighted through the video key frame pull analysis to expand the conventional sleep-aiding video content pool. In addition, considering that the conventional content pool may have a high degree of repetition, the system will also extract the user's daily interaction in the comment area, and weight the short videos with keywords such as "good night", "healing", "calmness", and "meditation" in the comment content that meet the definition of sleep-aiding to increase their probability of entering the pool. If the user authorizes to obtain video viewing information, the weight will be reduced according to the user's daily high-browsing and high-retention content to avoid the user from continuously browsing in the sleep-aiding mode; if the user often browses the panda content for a long time, the recommended panda content will be reduced in the sleep-aiding mode. In addition, the system actively avoids recommending short videos of irritating, high-brightness, thriller, suspense, sadness, etc. After further starting the sleep-aiding mode, the sleep-aiding video starts the content transmission, and the user's front-end interface and video content are intelligently identified according to the current dark environment (can be adjusted to the darkest setting of the system); at the same time, the stored and adjusted sleep-aiding video content is inserted into the video stream, and the user can enter it by swiping down.
[0159] Optionally, in this embodiment, the user operation status is comprehensively determined based on two composite factors, gyroscope data and user gesture operation direction, such as obtaining the angles of the X-axis, Y-axis and Z-axis provided by the gyroscope of the terminal device, and determining the rotation angles of the X-axis, Y-axis and Z-axis, and the combination of the finger sliding direction for posture determination, wherein the gyroscope Z-axis is used to determine the current lying angle, the XY-axis angle is used to determine the current side lying angle, and the finger sliding direction is used to determine the composition of the currently browsed video, to avoid misjudging the user's horizontal and vertical screen usage scenario by a single dimension.
[0160] Further examples, optionally such as Figure 14 As shown, first determine the Z-axis flip angle: when lying flat, the Z-axis will have a larger flip angle (that is, the screen is facing the ground). When the user's screen is horizontal to the ground, the Z-axis angle of the gyroscope should be close to 0 degrees. This is because the Z-axis usually represents the rotation of the device, and when the user places the terminal device or tablet device horizontally on the ground, the Z-axis of the device should be parallel to the ground, that is, the angle is close to 0 degrees. However, because the user is in a lying position, the terminal device will have a certain inclination, so we set the Z-axis angle threshold to ±ZR (which can be customized and adjusted more finely based on user habits in the background). When the Z-axis angle of the user's terminal device hits ±ZR, it can be determined that the user is lying flat; at this time, there is no need to use gestures to assist in judgment.
[0161] Optionally, when the user is lying on his side or his torso is upright, the Z-axis changes are similar to when he is standing upright, so it is necessary to add the XY axis for auxiliary judgment. When the user's body is perpendicular to the ground (standing or sitting), such as Figure 15As shown in the figure, when browsing in portrait mode, the Y-axis is basically perpendicular to the ground, and the direction of the finger sliding up and down is the Y-axis direction; when viewing in landscape mode, the X-axis is basically perpendicular to the ground, and the direction of the finger sliding up and down is the X-axis direction. However, because there will be a certain inclination angle of the terminal device when the user holds it, the system sets the vertical inclination angle range of the X-axis for upright holding to ±XR1 and the vertical inclination angle range of the Y-axis to ±YR1 according to the holding habits of most users. When the determination mechanism is activated, it first determines whether the user's finger slides along the X-axis or the Y-axis. When the gyroscope transmits data back, it determines whether the angle data of the axis (X or Y-axis) where the user slides is within the range of ±XR1 and ±YR1. If the condition is met, it is determined that the user's torso is in an upright state.
[0162] Similarly, when the user's torso is parallel to the ground (lying on the side): when browsing in portrait mode, the Y-axis is basically horizontal to the ground, and the direction of the finger sliding up and down is the Y-axis direction; when viewing in landscape mode, the X-axis is basically horizontal to the ground, and the direction of the finger sliding up and down is the X-axis direction. However, because there will be a certain inclination angle of the terminal device when the user holds it, the system sets the horizontal inclination angle range of the X-axis for lying holding to ±XR2 and the horizontal inclination angle range of the Y-axis to ±YR2 according to the holding habits of most users. When the determination mechanism is activated, it first determines whether the user's finger slides along the X-axis or the Y-axis. When the gyroscope transmits data back, it determines whether the angle data of the axis (X or Y-axis) where the user slides is within the range of ±XR2 and ±YR2. If the condition is met, it is determined that the user's torso is in a lying state; when the user is in a lying state, a front-end posture prompt is triggered, and the front-end is guided to enable the sleep aid mode.
[0163] Optionally, in this embodiment, the face and eye state recognition is performed based on the structured light sensor and depth camera in the terminal device. To protect the user's privacy, the face data collected in this embodiment is only used for real-time analysis and is not stored additionally. The specific steps are as Figure 16 shown. When the user uses the short video application, it is confirmed in the authorization pop-up window whether the user authorizes to turn on the front camera and allows the collection of face information. If not authorized, the front-end will not give sleep prompts to the user for the eye state subsequently. If authorized, the front depth camera of the device is turned on for detection and data collection. In the back-end judge, the structured light sensor or depth camera is used to collect the eye point data and 3D structured light face data (only used for real-time analysis and not stored additionally). The collected data should include the three-dimensional coordinate point cloud and color information of the face.
[0164] Furthermore, for each collected face data in this embodiment, a feature extraction algorithm (such as SIFT, SURF, etc.) or a deep learning method is used to extract features from the point cloud data of the face. An eye state classification model is constructed: the collected comprehensive face data and corresponding label information (such as the number of blinks, closed eyes or awake state) are used to train the state classification model. From the model, it can be obtained that the normal blink frequency of this user when awake is Z1 (the normal blink frequency of ordinary people when awake is 18 - 20 times per minute. When the system cannot obtain the user value, this value can be used as a fallback). The blink frequency of the user is judged per minute and compared with Z1. When suffering from eye fatigue, the blink frequency will increase. When the real-time blink frequency of the user ≥ Z1 + N (the fatigue parameter N can be adjusted in the background, preset to 10), it is judged that the user may be in a state of eye fatigue; the information is sent back to the front end to prompt the user that the eyes are currently fatigued and it is recommended to take a rest.
[0165] Considering that when a person is about to enter the sleep state, the blink frequency will decrease. Furthermore, when the real-time blink frequency of the user ≤ Z1 - S (the sleep parameter S can be adjusted in the background or personalized according to user data, preset to 15), it is judged that the user may be on the verge of falling asleep; when the real-time blink frequency of the user approaches or equals 0, it is judged that the user has entered the sleep state. The information is sent back to the front end, and the front end starts an automatic screen-off countdown. The front end displays the automatic screen-off countdown and judges the user's click operation; if the user has no operation within the countdown or directly clicks to turn off the screen, the front-end device will turn off the screen, and the back end will synchronously start the mechanism for pre-storing unread content for the next day's push. If the user clicks "I can still watch for a while", the front end will continue to push sleep-aid content and start a new judgment loop.
[0166] Optionally, in this embodiment, the short video alarm based on personalized recommendation and the interactive unlocking logic for closing the alarm are as Figure 17 shown. After the user turns on the video alarm on the front end and sends it back to the back end, the back end will judge whether the user has authorized the personalized recommendation function. If the user has enabled it, the back end will start aggregating the unread latest content under the categories and creator tags that the user is interested in and aggregating them into a content stream of no less than one hour for playback the next day; if the user has not enabled the personalized recommendation function, the back end will aggregate the unread videos with high overall play or view volume and aggregate them into a video stream of no less than one hour for playback the next day.
[0167] Furthermore, the alarm function is started the day before, and the video is automatically played and woken up according to the time set by the user. After the alarm is started, it is judged whether the user has enabled the anti-lazy-bed setting. If not, the "Sleep for another 5 minutes" button is displayed outside the interface. After clicking, the screen can be muted and turned off, and this cycle continues until the user turns off the alarm. If so, the backend interaction counting unlocking logic is enabled. The interaction counting unlocking logic sets the number of comment interactions that the user needs to complete as C (which can be globally adjusted in the background, or intelligently adapted according to the user's lazy-bed situation, increasing the comment count condition or the word count condition). After the front-end alarm rings, a guiding comment operation box is displayed, and the user performs a comment operation and uploads the comment content to the background for verification. The background analyzes the word count and text expression of the comment content, uses natural language processing technology to perform sentiment analysis, semantic analysis, and grammar analysis on the text comment to determine the sentiment tendency, relevance, and grammar correctness in the comment, and verifies the following two conditions: whether the word count reaches the condition, and whether the content is normal comment content, to prevent users from padding words or talking nonsense when they are not fully awake, which affects the atmosphere of the comment area.
[0168] If the comment content meets the conditions, the comment is included in the count, and it is judged whether the interaction count threshold C has been reached. If the comment content does not meet the conditions, it is returned to the front end to prompt the user to make modifications. When the qualified comment count reaches the threshold C, it is returned to the front end, the alarm is turned off, and the video content pool resumes the normal recommendation logic. If the threshold C is not reached, the loop judgment is maintained, and the front-end alarm is not shut down.
[0169] Through the embodiments provided by this application, in the bedtime and waking-up scenarios of short video browsing, for the user's mental and rest states, the ability to actively and intelligently control short video playback is provided. This embodiment uses a variety of device sensors and user authorization situations to comprehensively judge the user's usage situation, mental state, and browsing posture, gradually turn off the screen brightness, adjust the content, and remind the playback, which can prevent the user from falling asleep unconsciously or continuing to browse videos when feeling tired. At the same time, according to the user's personalized recommendations and wake-up time, a short video alarm wake-up function is provided. Also, if the user missed the content watched the previous night, this embodiment will pre-store the unfinished content and provide a secondary reservation service for the user to watch again later. This can prevent the user from being addicted to short videos after waking up, while maintaining a normal life rhythm. At the same time, through the interesting unlocking alarm method, it can not only prevent the user from being lazy in bed, but also increase their interaction with the creator. By intelligently controlling short video playback according to the user's mental and rest states, this embodiment can improve the overall user experience. The user no longer needs to manually exit the application or adjust the screen brightness, but can enjoy intelligent playback control, making the user feel more convenient and comfortable. It not only considers the user's mental state and browsing posture, but also combines the user authorization situation to protect the user's privacy. By reasonably using device sensor and user authorization information, the invention can make intelligent judgments and operations without infringing on the user's privacy rights.
[0170] Generally speaking, in this embodiment, by providing active intelligent control for the user's mental and rest states, it protects the user from the impact of overusing short-video applications, and at the same time provides personalized wake-up and reservation services, which has a positive regulatory effect on the health and daily life of users who deeply use short videos, especially teenagers.
[0171] It can be understood that in the specific implementation of this application, it involves data related to user information, etc. When the above embodiments of this application are applied to specific products or technologies, user permission or consent needs to be obtained, and the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of relevant countries and regions.
[0172] It should be noted that for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that this application is not limited by the described action sequence, because according to this application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0173] According to another aspect of the embodiments of this application, there is also provided a video sleep aid device for implementing the above video sleep aid method. As Figure 18 shown, the device includes:
[0174] A first display unit 1802, configured to display sleep aid guiding information on the video client, where the sleep aid guiding information is used to prompt the user of the video client that they are in the initial sleep state, and guide the user to turn on the video sleep aid mode of the video client. The initial sleep state is used to indicate that the user is in an environment suitable for sleeping, or the user has assumed an initial sleep posture;
[0175] A first playback unit 1804, configured to play at least one sleep aid video on the video client when the video sleep aid mode is turned on, where the sleep aid video is used to guide the user to assume a sleep target posture, and the sleep target posture is the posture of the user when they are asleep, or the posture close to when the user is about to fall asleep;
[0176] A second display unit 1806, configured to display sleep reminder information on the video client, where the sleep reminder information is used to prompt the user that they have assumed the sleep target posture, and the video client will close after a preset time of displaying the sleep reminder information.
[0177] For specific embodiments, reference can be made to the examples shown in the above video sleep aid device, and details are not described herein again.
[0178] As an alternative, the first playback unit 1804 includes at least one of the following:
[0179] The first playback module is configured to play a sleep aid video on the video client until the playing time of the sleep aid video is greater than or equal to the sleep time, where at least one sleep aid video includes the sleep aid video played during the sleep time;
[0180] The second playback module is configured to play a sleep aid video on the video client until the number of played sleep aid videos is greater than or equal to the sleep number, where at least one sleep aid video includes the sleep aid videos of the sleep number.
[0181] For specific embodiments, reference may be made to the examples shown in the above video sleep aid method, and details are not described herein again.
[0182] As an alternative, the device further includes:
[0183] The first display module is configured to, after playing at least one sleep aid video on the video client, when the playing time of the sleep aid video is greater than or equal to the sleep time, determine that the user is in the sleep target posture and display a sleep prompt message on the video client; or,
[0184] The second display module is configured to, after playing at least one sleep aid video on the video client, when the number of played sleep aid videos is greater than or equal to the sleep number, determine that the user is in the sleep target posture and display a sleep prompt message on the video client.
[0185] For specific embodiments, reference may be made to the examples shown in the above video sleep aid method, and details are not described herein again.
[0186] As an alternative, the device further includes:
[0187] The third display unit is configured to display eye evaluation activation information during the process of displaying the sleep aid guidance information, where the eye evaluation activation information is used to prompt the user to activate the eye posture evaluation function of the video client, and the video client after activating the eye posture evaluation function is set to continuously detect the eye posture of the user.
[0188] For specific embodiments, reference may be made to the examples shown in the above video sleep aid method, and details are not described herein again.
[0189] As an alternative, the device further includes:
[0190] The first acquisition unit is configured to, after displaying the eye evaluation activation information and when the eye posture evaluation function is activated, acquire eye evaluation information, where the eye evaluation information is used to evaluate the eye posture of the user;
[0191] A fourth display unit, configured to, after displaying the eye assessment start information, when the eye assessment information indicates that the user's eye posture is in an eye sleep posture, determine that the user is in a sleep target posture, and display a sleep prompt message on the video client, where the continuous closing duration of the eyes in the eye sleep posture is greater than or equal to the sleep duration, or the blink frequency of the eyes in the eye sleep posture is less than or equal to the sleep frequency.
[0192] For specific embodiments, reference may be made to the examples shown in the above video sleep assistance method, and details are not described herein again.
[0193] As an optional solution, the apparatus further includes: a fifth display unit, configured to display video alarm information on the video client during the process of displaying the sleep prompt message on the video client, where the video alarm information is used to prompt a video alarm operation that has been set or to be set on the video client, and the video alarm operation is an operation performed by the video client to wake up from sleep in the form of playing a wake-up video;
[0194] The apparatus further includes: a second playback unit, configured to, after displaying the video alarm information on the video client, when the video alarm operation with a set wake-up time point arrives at the wake-up time point, play a wake-up video on the video client.
[0195] For specific embodiments, reference may be made to the examples shown in the above video sleep assistance method, and details are not described herein again.
[0196] As an optional solution, the apparatus further includes:
[0197] A stop unit, configured to stop playing the wake-up video on the video client during the process of playing the wake-up video on the video client when an interaction operation performed on the wake-up video on the video client is obtained and the interaction operation meets the user's wakefulness condition.
[0198] For specific embodiments, reference may be made to the examples shown in the above video sleep assistance method, and details are not described herein again.
[0199] As an optional solution, the apparatus further includes:
[0200] A second acquisition unit, configured to acquire an end sleep assistance video played when the video client is closed after a preset time after displaying the sleep prompt message on the video client;
[0201] A recording unit, configured to record the playback progress of the end sleep assistance video when the end sleep assistance video has not been played completely after displaying the sleep prompt message on the video client.
[0202] A third playback unit, configured to, after displaying sleep prompt information on the video client, in the case of restarting the video client again, start playing the end-of-sleep aid video from the playback progress on the video client.
[0203] For specific embodiments, reference may be made to the examples shown in the above video sleep aid method, and details are not described herein again in this example.
[0204] As an alternative solution, the apparatus further includes:
[0205] A third acquisition unit, configured to acquire gyroscope data and sliding operation data before displaying sleep aid guidance information on the video client, where the gyroscope data is the terminal rotation data collected by a gyroscope configured on the terminal device running the video client, and the sliding operation data is used to indicate the sliding direction corresponding to the sliding operation collected on the terminal device;
[0206] A first determination unit, configured to determine the current posture of the user using the gyroscope data and the sliding operation data before displaying sleep aid guidance information on the video client.
[0207] For specific embodiments, reference may be made to the examples shown in the above video sleep aid method, and details are not described herein again in this example.
[0208] As an alternative solution, the apparatus further includes:
[0209] A fourth acquisition unit, configured to acquire a first sleep time corresponding to the shutdown of the terminal device running the video client and a second sleep time corresponding to the shutdown of the video client before displaying sleep aid guidance information on the video client when the time acquisition authorization of the user using the video client is obtained;
[0210] A first default unit, configured to default that the user using the video client is in the initial sleep state in the case of a first buffer time before the first sleep time or a second buffer time before the second sleep time before displaying sleep aid guidance information on the video client; or
[0211] A fifth acquisition unit, configured to acquire a third sleep time corresponding to the shutdown of the terminal device that has obtained time acquisition authorization and a fourth sleep time corresponding to the shutdown of the video client that has obtained time acquisition authorization before displaying sleep aid guidance information on the video client when the time acquisition authorization is not obtained;
[0212] A second default unit, configured to default that the user using the video client is in the initial sleep state in the case of a third buffer time before the third sleep time or a fourth buffer time before the fourth sleep time before displaying sleep aid guidance information on the video client.
[0213] For specific embodiments, reference may be made to the examples shown in the above video sleep aid method, and details thereof will not be elaborated herein.
[0214] As an alternative solution, the apparatus further includes:
[0215] A sixth acquisition unit, configured to acquire dynamic information corresponding to a terminal device running the video client before displaying sleep aid guidance information on the video client, where the dynamic information is used to represent information when the position of the terminal device changes;
[0216] An adjustment unit, configured to, before displaying sleep aid guidance information on the video client, when the dynamic information indicates that the terminal device is in a stationary state and the ambient brightness where the terminal device is located is less than or equal to the sleep brightness, adjust the running brightness of the video client to a target brightness adapted to the ambient brightness, where the speed at which the position of the stationary terminal device changes is less than or equal to the stationary speed.
[0217] For specific embodiments, reference may be made to the examples shown in the above video sleep aid method, and details thereof will not be elaborated herein.
[0218] As an alternative solution, the apparatus further includes:
[0219] A weight unit, configured to, before playing at least one sleep aid video on the video client, determine a first candidate video that has a sleep aid interaction operation with the user from a candidate video set, and increase the sleep aid weight of the first candidate video; and determine a second candidate video that has a daily interaction operation with the user from the candidate video set, and decrease the sleep aid weight of the second candidate video;
[0220] A second determination unit, configured to, before playing at least one sleep aid video on the video client, determine a sleep aid video from the candidate video set according to the sleep aid weight, where the probability of being determined as a sleep aid video is positively correlated with the sleep aid weight.
[0221] For specific embodiments, reference may be made to the examples shown in the above video sleep aid method, and details thereof will not be elaborated herein.
[0222] According to another aspect of the embodiments of the present application, there is also provided an electronic device for implementing the above video sleep aid method. The electronic device may be, but is not limited to, Figure 1 the user device 102 or the server 112 shown in Figure 19 . Taking the electronic device as the user device 102 as an example, further as shown in
[0223] Optionally, in this embodiment, the above electronic device may be at least one network device among multiple network devices of a computer network.
[0224] Optionally, in this embodiment, the above processor may be configured to execute the following steps through a computer program:
[0225] S1, display sleep assistance guidance information on the video client, where the sleep assistance guidance information is used to prompt the user of the video client that they are in the initial sleep state and guide the user to turn on the video sleep assistance mode of the video client. The initial sleep state is used to indicate that the user is in an environment suitable for sleep or the user has assumed an initial sleep posture;
[0226] S2, when the video sleep assistance mode is turned on, play at least one sleep assistance video on the video client, where the sleep assistance video is used to guide the user to assume a sleep target posture, and the sleep target posture is the posture in which the user has fallen asleep or a posture close to the user's pre-sleep state;
[0227] S3, display sleep reminder information on the video client, where the sleep reminder information is used to prompt the user that they have assumed the sleep target posture, and the video client will close after a preset time of displaying the sleep reminder information.
[0228] Optionally, those of ordinary skill in the art can understand that Figure 19 the structure shown is only schematic Figure 19 and does not limit the structure of the above electronic device. For example, the electronic device may further include more or fewer components (such as a network interface, etc.) than those shown Figure 19 or have a different configuration from that shown Figure 19 .
[0229] Among them, the memory 1902 can be used to store software programs and modules, such as the program instructions / modules corresponding to the video sleep assistance method and device in this application embodiment. The processor 1904 executes various functional applications and data processing by running the software programs and modules stored in the memory 1902, that is, to implement the above video sleep assistance method. The memory 1902 may include a high-speed random access memory and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memories. In some instances, the memory 1902 may further include a memory remotely set relative to the processor 1904, and these remote memories can be connected to the electronic device through a network. Examples of the above network include but are not limited to the Internet, enterprise intranet, local area network, mobile communication network, and their combinations. Among them, the memory 1902 can specifically but not limitedly be used to store information such as sleep assistance guidance information, sleep assistance videos, and sleep reminder information. As an example, such as Figure 19As shown, the memory 1902 described above may but is not limited to include the first display unit 1802, the first playback unit 1804, and the second display unit 1806 in the above video sleep aid device. In addition, it may also include but is not limited to other module units in the above video sleep aid device, which will not be elaborated in this example.
[0230] Optionally, the above transmission device 1906 is used to receive or send data via a network. Specific examples of the above network may include a wired network and a wireless network. In one example, the transmission device 1906 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers through a network cable, so as to communicate with the Internet or a local area network. In one example, the transmission device 1906 is a Radio Frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0231] In addition, the above electronic device further includes: a display 1908, which is used to display the above sleep aid guidance information, sleep aid videos, sleep reminder information, and other information; and a connection bus 1910, which is used to connect each module component in the above electronic device.
[0232] In other embodiments, the above user device or server may be a node in a distributed system. Among them, the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes through network communication. Among them, the nodes can form a peer-to-peer network, and any form of computing device, such as an electronic device such as a server or a user device, can become a node in the blockchain system by joining the peer-to-peer network.
[0233] According to one aspect of the present application, there is provided a computer program product, which includes computer programs / instructions, and the computer programs / instructions include program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit, it executes various functions provided by the embodiments of the present application.
[0234] The serial numbers of the above embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.
[0235] It should be noted that the computer system of the electronic device is only an example and should not bring any limitations to the functions and usage scopes of the embodiments of the present application.
[0236] The computer system includes a Central Processing Unit (CPU), which can perform various appropriate actions and processes according to a program stored in a Read-Only Memory (ROM) or a program loaded from a storage section into a Random Access Memory (RAM). In the random access memory, various programs and data required for system operation are also stored. The central processing unit, the read-only memory, and the random access memory are connected to each other via a bus. An Input / Output interface (I / O interface) is also connected to the bus.
[0237] The following components are connected to the input / output interface: an input section including a keyboard, a mouse, etc.; an output section including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), etc. and a speaker, etc.; a storage section including a hard disk, etc.; and a communication section including a network interface card such as a local area network card, a modem, etc. The communication section performs communication processing via a network such as the Internet. A drive is also connected to the input / output interface as needed. A removable medium, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive as needed so that a computer program read from it can be installed into the storage section as needed.
[0238] In particular, according to an embodiment of the present application, the processes described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program codes for performing the methods shown in the flow charts. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section, and / or installed from a removable medium. When the computer program is executed by the central processing unit, various functions defined in the system of the present application are executed.
[0239] According to one aspect of the present application, there is provided a computer-readable storage medium, and a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the above various optional implementation manners.
[0240] Optionally, in this embodiment, the above computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0241] S1. Display sleep induction information on the video client. The sleep induction information is used to prompt the user of the video client that they are in the initial sleep state and guide the user to turn on the video sleep mode of the video client. The initial sleep state is used to indicate that the user is in a suitable sleep environment or has assumed an initial sleep posture.
[0242] S2. When the video sleep mode is turned on, play at least one sleep aid video on the video client. The sleep aid video is used to guide the user to assume a sleep target posture, where the sleep target posture is the posture of the user when they are asleep or a posture close to when they are about to fall asleep.
[0243] S3. Display sleep reminder information on the video client. The sleep reminder information is used to prompt the user that they have assumed the sleep target posture, and the video client will close after a preset time of displaying the sleep reminder information.
[0244] Optionally, in this embodiment, those of ordinary skill in the art can understand that all or part of the steps in the above various methods of the embodiment can be completed by a program instructing the relevant hardware of the electronic device. The program can be stored in a computer-readable storage medium, and the storage medium can include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc, etc.
[0245] The serial numbers of the above embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.
[0246] If the integrated unit in the above embodiments is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. The computer software product is stored in the storage medium and includes several instructions to enable one or more computer devices (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
[0247] In the above embodiments of the present application, the descriptions of the various embodiments have their own emphases. For the parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0248] In several embodiments provided in the present application, it should be understood that the disclosed user equipment can be implemented in other ways. Among them, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some interfaces. The indirect coupling or communication connection of units or modules can be in an electrical or other form.
[0249] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0250] In addition, each functional unit in various embodiments of the present application can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
[0251] The above is only the preferred embodiment of the present application. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present application, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present application.
Claims
1. A video sleep aid method, characterized in that: include: Displaying sleep-aiding guidance information on the video client, wherein the sleep-aiding guidance information is used to prompt the user of the video client that the user is in an initial sleep state and guide the user to turn on the video sleep-aiding mode of the video client, and the initial sleep state is used to indicate that the user is in an environment suitable for sleeping, or that the user is in an initial sleep posture; When the video sleep-aiding mode is turned on, the at least one sleep-aiding video is played on the video client, wherein the sleep-aiding video is used to guide the user to be in a target sleep posture, and the target sleep posture is the posture of the user who has been sleeping, or the posture of the user before sleeping; The sleep prompt information is displayed on the video client, wherein the sleep prompt information is used to prompt the user that the user is in the target sleep posture, and the video client will be closed after displaying the sleep prompt information for a preset time.
2. The method according to claim 1, characterized in that: Playing the at least one sleep-aiding video on the video client includes at least one of the following: Playing the sleep-aiding video on the video client until the time for playing the sleep-aiding video is greater than or equal to the sleep time, wherein the at least one sleep-aiding video includes the sleep-aiding video played during the sleep time; The sleep-aiding video is played on the video client until the number of the sleep-aiding videos played is greater than or equal to the number of sleeps, wherein the at least one sleep-aiding video includes the sleep-aiding videos for the number of sleeps.
3. The method according to claim 2, characterized in that After playing the at least one sleep-aiding video on the video client, the method further includes: In the case where the time for playing the sleep-aiding video is greater than or equal to the sleep time, determining that the user is in the target sleep posture, and displaying the sleep prompt information on the video client; or When the number of the sleep-aiding videos played is greater than or equal to the number of sleeps, it is determined that the user is in the target sleep posture, and the sleep prompt information is displayed on the video client.
4. The method according to claim 1, characterized in that: In the process of displaying the sleep-aiding guidance information on the video client, the method further includes: The eye assessment activation information is displayed, wherein the eye assessment activation information is used to prompt the user to activate the eye posture assessment function of the video client, and after activating the eye posture assessment function, the video client is configured to continuously detect the eye posture of the user.
5. The method according to claim 4, characterized in that After displaying the eye assessment start information, the method further includes: When the eye posture assessment function is enabled, obtaining eye assessment information, wherein the eye assessment information is used to assess the eye posture of the user; In a case where the eye assessment information indicates that the eye posture of the user is in the eye sleep posture, it is determined that the user is in the sleep target posture, and the sleep prompt information is displayed on the video client, wherein the continuous closure time of the eyes in the eye sleep posture is greater than or equal to the sleep time, or the blinking frequency of the eyes in the eye sleep posture is less than or equal to the sleep frequency.
6. The method according to claim 1, characterized in that In the process of displaying sleep prompt information on the video client, the method further includes: displaying video alarm information on the video client, wherein the video alarm information is used to prompt the video client of a video alarm operation that has been set or is to be set, and the video alarm operation is an operation performed by the video client to wake up from sleep in the form of playing a wake-up video; After displaying the video alarm information on the video client, the method further includes: in the case of a video alarm operation with a set wake-up time point, when the wake-up time point is reached, playing the wake-up video on the video client.
7. The method according to claim 6, characterized in that During the process of playing the wake-up video on the video client, the method further includes: When an interactive operation performed on the wake-up video on the video client is obtained and the interactive operation meets the user wake-up condition, the playing of the wake-up video on the video client is stopped.
8. The method according to any one of claims 1 to 7, characterized in that After displaying the sleep prompt information on the video client, the method further includes: Obtaining the ending sleep-aiding video played when the video client is closed after the preset time; If the ending sleep-aiding video has not been played to completion, recording the playing progress of the ending sleep-aiding video; When the video client is started again, the ending sleep-aiding video is played starting from the playing progress on the video client.
9. The method according to any one of claims 1 to 7, characterized in that Before displaying the sleep-aiding guidance information on the video client, the method further includes: Acquire gyroscope data and sliding operation data, wherein the gyroscope data is terminal rotation data collected by a gyroscope configured on a terminal device running the video client, and the sliding operation data is used to indicate a sliding direction corresponding to a sliding operation collected on the terminal device; The current posture of the user is determined using the gyroscope data and the sliding operation data.
10. The method according to any one of claims 1 to 7, characterized in that Before displaying the sleep-aiding guidance information on the video client, the method further includes: In the case of obtaining the user's authorization for time collection of the video client, obtaining a first sleep time corresponding to when a terminal device running the video client is turned off, and a second sleep time corresponding to when the video client is turned off; In the case of a first buffer time before the first sleep time, or a second buffer time before the second sleep time, it is assumed that the user is in the sleep initial state; or, In the case where the time collection authorization is not obtained, obtaining a third sleep time corresponding to when the terminal device that has obtained the time collection authorization is turned off, and a fourth sleep time corresponding to when the video client that has obtained the time collection authorization is turned off; In the case of the third buffer time before the third sleep time, or the fourth buffer time before the fourth sleep time, it is assumed that the user is in the sleep initial state.
11. The method according to any one of claims 1 to 7, characterized in that Before displaying the sleep-aiding guidance information on the video client, the method further includes: Acquire dynamic information corresponding to the terminal device running the video client, wherein the dynamic information is used to indicate information when the position of the terminal device changes; When the dynamic information indicates that the terminal device is in a stationary state and the ambient brightness of the terminal device is less than or equal to the sleep brightness, the operating brightness of the video client is adjusted to a target brightness that matches the ambient brightness, wherein the speed at which the position of the terminal device in the stationary state changes is less than or equal to the stationary speed.
12. The method according to any one of claims 1 to 7, characterized in that Before playing the at least one sleep-aiding video on the video client, the method further includes: Determine a first candidate video from the candidate video set that has a sleep-aiding interactive operation with the user, and increase the sleep-aiding weight of the first candidate video; and, determine a second candidate video from the candidate video set that has a daily interactive operation with the user, and reduce the sleep-aiding weight of the second candidate video; The sleep-aiding video is determined from the candidate video set according to the sleep-aiding weight, wherein the probability of determining the sleep-aiding video is positively correlated with the sleep-aiding weight.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 12 when executed by an electronic device.
14. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method described in any one of claims 1 to 12 are implemented.
15. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 12 through the computer program.