CN110764826A - Method and device for controlling task operation - Google Patents
Method and device for controlling task operation Download PDFInfo
- Publication number
- CN110764826A CN110764826A CN201810845504.1A CN201810845504A CN110764826A CN 110764826 A CN110764826 A CN 110764826A CN 201810845504 A CN201810845504 A CN 201810845504A CN 110764826 A CN110764826 A CN 110764826A
- Authority
- CN
- China
- Prior art keywords
- user
- task
- sleep state
- determined
- sleep
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 238000012544 monitoring process Methods 0.000 claims abstract description 45
- 210000004556 brain Anatomy 0.000 claims description 11
- 238000002567 electromyography Methods 0.000 claims description 11
- QVGXLLKOCUKJST-UHFFFAOYSA-N atomic oxygen Chemical compound [O] QVGXLLKOCUKJST-UHFFFAOYSA-N 0.000 claims description 10
- 239000008280 blood Substances 0.000 claims description 10
- 210000004369 blood Anatomy 0.000 claims description 10
- 229910052760 oxygen Inorganic materials 0.000 claims description 10
- 239000001301 oxygen Substances 0.000 claims description 10
- 230000029058 respiratory gaseous exchange Effects 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 9
- 230000006872 improvement Effects 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 13
- 238000010408 sweeping Methods 0.000 description 11
- 238000004891 communication Methods 0.000 description 8
- 230000008569 process Effects 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 238000005259 measurement Methods 0.000 description 6
- 230000001133 acceleration Effects 0.000 description 4
- 230000037007 arousal Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000008667 sleep stage Effects 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000004424 eye movement Effects 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000004397 blinking Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000004220 muscle function Effects 0.000 description 1
- 210000005036 nerve Anatomy 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 210000002027 skeletal muscle Anatomy 0.000 description 1
- 230000003595 spectral effect Effects 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4418—Suspend and resume; Hibernate and awake
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3438—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment monitoring of user actions
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Computer Security & Cryptography (AREA)
- Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
Abstract
The invention discloses a method and a device for controlling task operation, and relates to the technical field of computers. One embodiment of the method comprises: monitoring the sleep state of a user and determining whether the user is sleeping; and suspending the running of the task under the condition that the user is determined to be in the sleep state, and continuously monitoring the sleep state of the user under the condition that the user is determined not to be in the sleep state. The implementation mode realizes that the running of the task is efficiently controlled according to the sleep state of the user, the running of the task can be intelligently controlled without user intervention, the improvement of user experience is facilitated, and the running resources of equipment are saved.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for controlling task operation.
Background
At present, the running of the task on the smart device is generally controlled according to a timer, for example, when a certain time point is reached, the task on the smart device is stopped running, or after the current music list is played, the task is stopped playing.
However, in the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art: none of these tasks detect the state of the user, for example when the user goes to sleep, it may not be desirable for music to be played all the time, and thus the user experience is affected. On the other hand, when the user is asleep, the task that is still running will not produce the desired effect, e.g., cannot interact with the user, thus resulting in wasted resources.
Disclosure of Invention
In view of the above, embodiments of the present invention provide a method and an apparatus for controlling task execution, which can efficiently control task execution according to a sleep state of a user. In the embodiment of the invention, the running of the task can be intelligently controlled without user intervention, which is beneficial to improving the user experience and saving the running resources of the equipment.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a method for controlling task execution, including: monitoring the sleep state of a user and determining whether the user is sleeping; and suspending the running of the task under the condition that the user is determined to be in the sleep state, and continuously monitoring the sleep state of the user under the condition that the user is determined not to be in the sleep state.
Optionally, the method for controlling task execution is characterized by determining whether the user is asleep based on one or more of the following: respiration, blood oxygen saturation, electromyography, anterior-posterior potential difference of eyes, and brain wave.
Optionally, the method for controlling task running is characterized in that whether the user is in sleep is determined according to the sleep state determined by the accelerometer.
Optionally, the method for controlling task operation is further characterized by comprising: in the case where it is determined that the user is asleep, control is unified to suspend the execution of one or more tasks.
Optionally, the method for controlling task operation is further characterized by comprising: and under the condition that the user is determined to be in the sleep state, suspending the running of the task and saving the progress of the task.
To achieve the above object, according to another aspect of an embodiment of the present invention, there is provided an apparatus for controlling task execution, including: the sleep monitoring module is used for monitoring the sleep state of a user and determining whether the user is in the sleep state; and the task control module is used for suspending the running of the task under the condition that the user is determined to be in the sleep state, and continuously monitoring the sleep state of the user under the condition that the user is determined not to be in the sleep state.
Optionally, the apparatus for controlling task execution, wherein the sleep monitoring module determines whether the user is asleep according to one or more of: respiration, blood oxygen saturation, electromyography, anterior-posterior potential difference of eyes, and brain wave.
Optionally, the device for controlling task operation, wherein the sleep monitoring module determines whether the user is asleep according to the sleep state determined by the accelerometer.
Optionally, the apparatus for controlling task operation is further characterized in that: and under the condition that the task control module determines that the user is in the sleep state, uniformly controlling to suspend the running of one or more tasks.
Optionally, the apparatus for controlling task operation is further characterized in that: and under the condition that the task control module determines that the user is in the sleep state, suspending the running of the task and storing the progress of the task.
To achieve the above object, according to another aspect of an embodiment of the present invention, there is provided an electronic apparatus, including: one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to carry out a method as claimed in any one of the above-mentioned methods for controlling a task.
To achieve the above object, according to another aspect of embodiments of the present invention, there is provided a computer-readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method as in any one of the above-described methods for controlling a task.
One embodiment of the above invention has the following advantages or benefits: because the technical means of intelligently controlling the task operation according to the sleep state of the user is adopted, user intervention is not needed, so that the user experience is improved, and the operation resources of the equipment are saved. In particular, when a plurality of devices are controlled in a unified manner according to the sleep state of the user, the operation of the management device can be coordinated more efficiently.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a flow diagram for controlling task execution based on a user's sleep state, according to an embodiment of the present invention;
FIG. 2 is a flow diagram for controlling task execution based on a user's sleep state according to another embodiment of the present invention;
FIG. 3 is a schematic diagram of the main modules of an apparatus for controlling the operation of tasks according to an embodiment of the present invention;
FIG. 4 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
FIG. 5 is a schematic block diagram of a computer system suitable for use with a client or server implementing an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In embodiments of the present invention, the tasks may be understood as specific applications or integration of applications, such as music playing, lighting, automated sweeping, etc., and typically the tasks are implemented on specific devices, such as, correspondingly, sound, light, sweeping robots, etc. And controlling the task to run, namely, communicating with the equipment for implementing the task to change the running state of the task.
Fig. 1 is a flowchart for controlling task execution based on a user's sleep state according to an embodiment of the present invention. In one embodiment, the method shown in the flowchart may be implemented by a device capable of monitoring a sleep state of a user.
In step S101, the device for controlling the task operation communicates with the device for executing the task, and determines that the plurality of tasks are in operation. Such as determining that a stereo is playing music, that the sweeping robot is sweeping, etc. In one embodiment, a user may send instructions through the device to a device that performs a particular task to initiate the task; that is, the start of the task can be uniformly controlled by the device that controls the task operation. In another embodiment, after a task is started, the device that implements the particular task may send a message to the device that controls the operation of the task to inform that the task is already in an operational state.
In step S102, the device that controls the task operation monitors the sleep state of the user; in step S103, the apparatus that controls the task operation determines whether the user is asleep. In particular, the sleep state of the user may be monitored periodically (e.g., every 5 minutes).
In one embodiment, Polysomnography (PSG) may be used to determine the sleep state of a user, i.e., to determine whether the user is asleep. PSG mainly monitors bioelectricity in different parts or obtains biosignals through different sensors to know the sleep stage of the user (i.e. dividing sleep from arousal to deep sleep into different stages, such as falling asleep, light asleep, deep sleep, fast eye movement), and measured indicators include but are not limited to: respiration, blood oxygen saturation, Electromyography (EMG), electro-oculogram (EOG), and electroencephalogram (EEG). Specifically, it is determined whether the user is asleep mainly by monitoring three indexes of EEG, EOG, and EMG. Wherein the content of the first and second substances,
monitoring of the EEG: for brain waves, the energy of the low frequency signal is higher than the energy of the high frequency signal. Signals of 0-50HZ in brain electrical signals are generally divided into 5 frequency bands: 1-3hz, 4_7hz, 8-13hz, 14-30hz and 31-50hz, and extracting the following characteristics from the electroencephalogram data so as to determine the sleep stage of the user: power Spectral Density (PSD), Differential Entropy (DE), Differential Asymmetry (DASM), Random Asymmetry (RASM), differential tailorability (DCAU);
monitoring EOG: the potential difference signal before and after the eye generated by blinking and eye movement is one of the main noise signals in EEG, at present, the removing algorithm of EOG in multi-channel EEG is mature, and the correlation between the EOG component which can be effectively separated and the eye electric signal collected by a reference channel is strong, so that the method can be used for determining the sleep stage of a user;
monitoring the EMG: EMG is an examination that assesses nerve and muscle function by recording bioelectrical activity produced by skeletal muscles, thus helping to determine the sleep state of the user.
However, determining the sleep state of the user based on the PSG has problems of cumbersome operation and complicated implementation. Thus, in another embodiment, the movement of a particular frequency (e.g., 0.25 Hz-3 Hz) during sleep may be collected based on an accelerometer to derive a sleep state of "sleep" or "awake (not in sleep"). Further, in order to improve the accuracy of the sleep state determined based on the accelerometer, the sleep state determined based on the accelerometer may be fitted in advance to at least one of EEG, EOG and EMG data to obtain a correction formula for determining the sleep state based on the accelerometer:
SS=1.687+0.003*[s]-0.034*[mean]-0.419*[nat]+0.007*[sd]-0.127*[ln]
formula 1 wherein SS is a parameter for judging sleep/wake; s is the number of arousals recorded by the accelerometer during the measurement period; mean is the average number of awakenings recorded by the acceleration measuring instrument in the measuring time interval and the N time intervals before and after the measuring time interval; nat is the number of time intervals in which the number of awakenings recorded by the acceleration measuring instrument is higher than 10 in the measuring time interval and X time intervals before and after the measuring time interval; sd is the standard deviation of the number of arousals recorded by the accelerometer in the measurement period and the Y periods before and after the measurement period; ln is the natural logarithm of the number of arousals recorded by the accelerometer over the measurement period.
Specifically, in the case where it is determined whether the user is sleeping according to the sleep state determined by the accelerometer, the calculated S value may be compared with a preset threshold value to determine whether the user is sleeping. In the case of determining whether the user is in sleep according to the PSG, the sleep stage of the user may be determined according to one or more values of respiration, blood oxygen saturation, electromyogram, a front-rear eye potential difference, and brain waves, thereby determining whether the user is in sleep.
In step S103, if the device for controlling task operation determines that the user is not sleeping, the process returns to S102, that is, the device continues to monitor the sleep state of the user, and the task still maintains the current operation state; if it is determined that the user is asleep, the flow advances to S104.
In step S104, the means for controlling the execution of the task sends an instruction to the device that implements the task to suspend the execution of the task. For example, music is paused even though the current music list is not played; the sweeping work of the sweeping robot is suspended; instructing the computer to enter a sleep state, etc.
In step S105, the means for controlling the operation of the task sends an instruction to the device that implements the task to save the progress and/or store data of the task. Or, when the device for implementing the task suspends the running of the task according to the instruction, whether to save the process of the task and/or store the data can be determined by self according to the task requirement.
It is to be understood that the device controlling the operation of the task may not check whether the task is in operation, i.e., step S101 is optional. Accordingly, in step S104, after the device for controlling task execution determines that the user is asleep, an instruction to suspend task execution is still sent to the apparatus for performing task, even if the task is not currently executed.
Fig. 2 is a flowchart for controlling task execution based on a user's sleep state according to another embodiment of the present invention. The flow in fig. 2 is mainly different from the flow in fig. 1 in that, in fig. 2, the apparatus for controlling task execution can uniformly control a plurality of devices according to the sleep state of the user.
In step S201, the task control device communicates with a plurality of devices that perform different tasks, and determines that a plurality of tasks (task 1, task 2, …, and task n) are in operation. Such as determining that a stereo is playing music, that the sweeping robot is sweeping, etc. In one embodiment, a user may send instructions through the device to a device that performs a particular task to initiate the task; that is, the start of the task can be uniformly controlled by the device that controls the task operation. In another embodiment, after a task is started, the device that implements the particular task may send a message to the device that controls the operation of the task to inform that the task is already in an operational state.
In step S202, the device that controls the task operation monitors the sleep state of the user; in step S203, the apparatus that controls the task operation determines whether the user is asleep. Here, steps S202, S203 are similar to steps S101, S102, and thus the description thereof is omitted here.
In step S203, if the device for controlling task operation determines that the user is not sleeping, the process returns to S202, that is, the device continues to monitor the sleeping state of the user, and each task still maintains the current operation state; if it is determined that the user is asleep, the flow advances to S204.
In step S204, the means for controlling task execution determines a task related to the sleep state. For example, the apparatus may control a plurality of devices that perform tasks, some of which are executed independently of the sleep state, and thus, in order to save communication resources, tasks (e.g., task 1, task 2, and task 3) related to the sleep state may be determined before an instruction to suspend the execution of the tasks is transmitted. In one embodiment, whether a task is related to a sleep state may be noted through manual settings. In another embodiment, at task start-up, the device controlling task execution may be reported whether its execution is related to a sleep state.
In step S205, the apparatus for controlling the task execution may transmit an instruction only to the device that implements the task related to the sleep state to suspend the execution of the task. For example, music is paused even though the current music list is not played; the sweeping work of the sweeping robot is suspended; instructing the computer to enter a sleep state, etc.
In step S206, the means for controlling the task operation sends an instruction to the device that implements the task to save the progress of the task and store data. Or, when the device for implementing the task suspends the running of the task according to the instruction, whether to save the progress of the task and store the data can be determined according to the task requirement.
It is understood that the device controlling the operation of the task may not check whether the task is in operation, i.e., step S201 is optional. Accordingly, in step S205, after the device for controlling task execution determines the tasks related to the sleep state, an instruction to suspend task execution is still sent to the apparatuses that implement these tasks, even if these tasks are not currently executed.
Fig. 3 is a schematic diagram of main blocks of an apparatus for controlling task operation according to an embodiment of the present invention. As shown in fig. 3, the device for controlling task operation includes a sleep monitoring module, a task control module, and various monitoring modules including, but not limited to, a respiration monitoring instrument, a front and back potential difference monitoring instrument, a blood oxygen saturation monitoring instrument, a brain wave monitoring instrument, an electromyogram monitoring instrument, and an accelerometer.
In order to measure the sleep state of a user, a respiration monitoring instrument, a front and rear eye potential difference monitoring instrument, a blood oxygen saturation monitoring instrument, a brain wave monitoring instrument, an electromyogram monitoring instrument, and an accelerometer are generally attached to a human body, for example, the human body wears a wristwatch type accelerometer to determine that it is in sleep or awake.
The sleep monitoring module determines whether the user is in sleep according to the measurement result of one or more of a respiration monitoring instrument, a front and back potential difference monitoring instrument, a blood oxygen saturation monitoring instrument, a brain wave monitoring instrument, an electromyography monitoring instrument and an acceleration measuring instrument. Specifically, the sleep monitoring module determines whether the user is asleep based on one or more of: respiration, blood oxygen saturation, electromyography, anterior-posterior potential difference of eyes, and brain wave. Or the sleep monitoring module determines whether the user is in sleep according to the sleep state judged by the acceleration measuring instrument.
Instructing a task control module to suspend the running of the task in case that the user is determined to be in sleep; in the event that it is determined that the user is not asleep, the measurements of the various monitoring modules are continuously monitored.
In the event that it is determined that the user is asleep, in one embodiment, the task control module notifies the module performing the task in a wired or wireless communication manner to suspend the execution of the task. In another embodiment, the task control module first determines tasks associated with the sleep state and then communicates with the devices implementing those tasks to suspend the execution of one or more tasks in a unified manner.
In another aspect, where it is determined that the user is asleep, the task control module may also instruct the device that implements the task to save the progress of the task. In another embodiment, the device for implementing the task automatically saves the task process and/or data according to the task requirement under the condition of suspending the task.
Fig. 4 is an exemplary system architecture diagram in which embodiments of the present invention may be employed.
As shown in fig. 4, system architecture 400 may include clients 401, 402, 403, network 404, and server 405. Network 404 serves as a medium for providing communication links between clients 401, 402, 403 and server 405. Network 404 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
Clients 401, 402, 403 may be used to interact with server 405 through network 404 to receive or send messages, etc. The clients 401, 402, 403 may have applications installed thereon, such as a music playing application, a sweeping application, etc. (by way of example only). In one embodiment, the client 401, 402, 403 may send the running parameters of the task running on it to the server 405 to indicate whether the running of the task is related to a sleep state.
Clients 401, 402, 403 may be a variety of electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablets, laptop and desktop computers, and the like.
The server 405 may be a server providing various services, such as a background management server (for example only) that indicates whether the client 401, 402, 403 suspends tasks according to the monitored sleep state of the user. The server 405 may monitor the sleep state of the user through various monitoring instruments and send whether to suspend tasks related to the sleep state to the client according to the sleep state of the user.
It should be noted that the information pushing method provided by the embodiment of the present invention is generally executed by the server 405, and accordingly, the information pushing apparatus is generally disposed in the server 405.
It should be understood that the number of terminal devices, networks, and servers in fig. 4 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
FIG. 5 is a schematic block diagram of a computer system suitable for use with a client or server implementing an embodiment of the invention.
Referring now to FIG. 5, a block diagram of a computer system 500 suitable for use as a server in implementing embodiments of the present invention is shown. The server shown in fig. 5 is only an example, and should not bring any limitation to the function and the scope of use of the embodiments of the present invention.
As shown in fig. 5, the computer system 500 includes a Central Processing Unit (CPU)501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the system 500 are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 501.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes a sending module, an obtaining module, a determining module, and a first processing module. The names of these modules do not form a limitation on the modules themselves in some cases, and for example, the sending module may also be described as a "module sending a picture acquisition request to a connected server".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: monitoring the sleep state of a user and determining whether the user is sleeping; and suspending the running of the task under the condition that the user is determined to be in the sleep state, and continuously monitoring the sleep state of the user under the condition that the user is determined not to be in the sleep state. .
According to the technical scheme of the embodiment of the invention, the method has the following advantages or beneficial effects: because the technical means of intelligently controlling the task operation according to the sleep state of the user is adopted, user intervention is not needed, so that the user experience is improved, and the operation resources of the equipment are saved. In particular, when a plurality of devices are controlled in a unified manner according to the sleep state of the user, the operation of the management device can be coordinated more efficiently.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (12)
1. A method for controlling task execution, comprising:
monitoring the sleep state of a user and determining whether the user is sleeping;
and suspending the running of the task under the condition that the user is determined to be in the sleep state, and continuously monitoring the sleep state of the user under the condition that the user is determined not to be in the sleep state.
2. The method of claim 1, wherein determining whether the user is asleep is based on one or more of: respiration, blood oxygen saturation, electromyography, anterior-posterior potential difference of eyes, and brain wave.
3. The method of claim 1, wherein determining whether the user is asleep is based on the sleep state determined by the accelerometer.
4. The method of claim 1, further comprising:
in the case where it is determined that the user is asleep, control is unified to suspend the execution of one or more tasks.
5. The method of any of claims 1-4, further comprising:
and under the condition that the user is determined to be in the sleep state, suspending the running of the task and saving the progress of the task.
6. An apparatus for controlling task operations, comprising:
the sleep monitoring module is used for monitoring the sleep state of a user and determining whether the user is in the sleep state;
and the task control module is used for suspending the running of the task under the condition that the user is determined to be in the sleep state, and continuously monitoring the sleep state of the user under the condition that the user is determined not to be in the sleep state.
7. The apparatus of claim 6, wherein the sleep monitoring module determines whether the user is asleep based on one or more of: respiration, blood oxygen saturation, electromyography, anterior-posterior potential difference of eyes, and brain wave.
8. The apparatus of claim 6, wherein the sleep monitoring module determines whether the user is asleep based on the sleep state determined by the accelerometer.
9. The apparatus of claim 6, further comprising:
and under the condition that the task control module determines that the user is in the sleep state, uniformly controlling to suspend the running of one or more tasks.
10. The apparatus of any of claims 6-9, further comprising:
and under the condition that the task control module determines that the user is in the sleep state, suspending the running of the task and storing the progress of the task.
11. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-5.
12. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810845504.1A CN110764826A (en) | 2018-07-27 | 2018-07-27 | Method and device for controlling task operation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810845504.1A CN110764826A (en) | 2018-07-27 | 2018-07-27 | Method and device for controlling task operation |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110764826A true CN110764826A (en) | 2020-02-07 |
Family
ID=69327107
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810845504.1A Pending CN110764826A (en) | 2018-07-27 | 2018-07-27 | Method and device for controlling task operation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110764826A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114683274A (en) * | 2020-12-25 | 2022-07-01 | 丰田自动车株式会社 | Control device, task system, control method, and non-transitory computer-readable medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120092171A1 (en) * | 2010-10-14 | 2012-04-19 | Qualcomm Incorporated | Mobile device sleep monitoring using environmental sound |
CN104318934A (en) * | 2014-09-11 | 2015-01-28 | 小米科技有限责任公司 | Method, terminal, wearable device and play device for closing multimedia file |
CN105183139A (en) * | 2015-10-23 | 2015-12-23 | 维沃移动通信有限公司 | Automatic closing method and system of application programs and mobile terminal |
CN105843107A (en) * | 2015-01-15 | 2016-08-10 | 小米科技有限责任公司 | Noise equipment control method and noise equipment control device |
CN107835307A (en) * | 2017-10-28 | 2018-03-23 | 上海爱优威软件开发有限公司 | Sleep method and system are helped for terminal |
-
2018
- 2018-07-27 CN CN201810845504.1A patent/CN110764826A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120092171A1 (en) * | 2010-10-14 | 2012-04-19 | Qualcomm Incorporated | Mobile device sleep monitoring using environmental sound |
CN104318934A (en) * | 2014-09-11 | 2015-01-28 | 小米科技有限责任公司 | Method, terminal, wearable device and play device for closing multimedia file |
CN105843107A (en) * | 2015-01-15 | 2016-08-10 | 小米科技有限责任公司 | Noise equipment control method and noise equipment control device |
CN105183139A (en) * | 2015-10-23 | 2015-12-23 | 维沃移动通信有限公司 | Automatic closing method and system of application programs and mobile terminal |
CN107835307A (en) * | 2017-10-28 | 2018-03-23 | 上海爱优威软件开发有限公司 | Sleep method and system are helped for terminal |
Non-Patent Citations (1)
Title |
---|
KIMIPIPPO: "《检测睡眠质量软件是用什么算法来计算睡眠质量的?》", pages 1 - 3, Retrieved from the Internet <URL:《https://www.zhihu.com/question/27905491/answer/97247345?utm_psn=1731286795638108160》> * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114683274A (en) * | 2020-12-25 | 2022-07-01 | 丰田自动车株式会社 | Control device, task system, control method, and non-transitory computer-readable medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10291977B2 (en) | Method and system for collecting and processing bioelectrical and audio signals | |
Milh et al. | Rapid cortical oscillations and early motor activity in premature human neonate | |
CA2814825C (en) | Method and apparatus for detecting seizures | |
US20240023892A1 (en) | Method and system for collecting and processing bioelectrical signals | |
US8648800B2 (en) | Control method and system of brain computer interface with stepping delay flickering sequence | |
JP7053509B6 (en) | Systems and methods for adjusting the volume of auditory stimuli during sleep based on sleep depth latency | |
EP3790449B1 (en) | System for enhancing sensory stimulation delivered to a user using neural networks | |
Ferster et al. | Configurable mobile system for autonomous high-quality sleep monitoring and closed-loop acoustic stimulation | |
WO2021109601A1 (en) | Method for measuring depth of anesthesia, storage medium, and electronic device | |
CN111281362B (en) | Vibration sign monitor, vital sign monitoring system and method | |
US20080071152A1 (en) | Autonomic-nervous state judging device, autonomic-nervous state judging method, and computer program product | |
JP2015529099A (en) | Neurofeedback system | |
WO2017067010A1 (en) | Sleep evaluation display method and apparatus, and evaluation device | |
Looney et al. | Ear-EEG: user-centered and wearable BCI | |
JP2013004006A (en) | Brain wave interface system | |
CN105260025A (en) | Mobile terminal based steady-state visual evoked potential brain computer interface system | |
JP2022526343A (en) | Methods and systems for giving sensory stimuli based on quantification of evoked responses | |
Tanaka et al. | Wearable health monitoring system and its applications | |
CN110764826A (en) | Method and device for controlling task operation | |
JP2022525985A (en) | Enhanced deep sleep based on information from frontal brain activity monitoring sensors | |
JP2022515418A (en) | Systems and methods for enhancing REM sleep using sensory stimuli | |
CN111372639A (en) | System for delivering sensory stimuli to a user to enhance cognitive domains in the user | |
WO2016097937A1 (en) | Device and method for influencing brain activity | |
US20130096410A1 (en) | Biosignal processing apparatus, electroencephalograph, and biosignal processing method | |
WO2024038788A1 (en) | Information processing device, information processing system, and information processing program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |