Percutaneous nerve regulation and control strategy generation method and device

文档序号:1278410 发布日期:2020-08-28 浏览:12次 中文

阅读说明:本技术 经皮神经调控策略生成方法及装置 (Percutaneous nerve regulation and control strategy generation method and device ) 是由 赵宏斌 王正安 于 2020-05-27 设计创作,主要内容包括:本发明实施例公开了一种经皮神经调控策略生成方法及装置,所述方法包括:获取睡眠过程对应的睡眠数据和血氧饱和度,所述睡眠数据包括睡眠效率和有效睡眠时间;根据所述睡眠效率、所述有效睡眠时间和所述血氧饱和度确定睡眠质量指数;根据所述睡眠质量指数,得到所述睡眠质量指数对应的经皮神经调控策略,以通过所述经皮神经调控策略提升睡眠质量。上述方法,能够帮助提升睡眠质量。(The embodiment of the invention discloses a method and a device for generating a percutaneous nerve regulation strategy, wherein the method comprises the following steps: acquiring sleep data and blood oxygen saturation corresponding to a sleep process, wherein the sleep data comprises sleep efficiency and effective sleep time; determining a sleep quality index from the sleep efficiency, the effective sleep time, and the blood oxygen saturation; and obtaining a transcutaneous nerve regulation and control strategy corresponding to the sleep quality index according to the sleep quality index so as to improve the sleep quality through the transcutaneous nerve regulation and control strategy. The method can help to improve the sleep quality.)

1. A method for generating a percutaneous neuromodulation strategy, comprising:

acquiring sleep data and blood oxygen saturation corresponding to a sleep process, wherein the sleep data comprises sleep efficiency and effective sleep time;

determining a sleep quality index from the sleep efficiency, the effective sleep time, and the blood oxygen saturation;

and obtaining a transcutaneous nerve regulation and control strategy corresponding to the sleep quality index according to the sleep quality index so as to improve the sleep quality through the transcutaneous nerve regulation and control strategy.

2. The method of claim 1, wherein said obtaining sleep data and oxygen saturation levels for a sleep session comprises:

acquiring effective sleep time, wake-up time and sleep latency time corresponding to a sleep process;

calculating the sum of the effective sleep time, the wake-up time and the sleep latency time to obtain the total sleep time corresponding to the sleep process;

and obtaining the sleep efficiency corresponding to the sleep process according to the effective sleep time and the total sleep time.

3. The method of claim 2, wherein obtaining the sleep efficiency corresponding to the sleep process according to the effective sleep time and the total sleep time comprises:

acquiring the number of awakenings corresponding to the awakening time;

dividing the effective sleep time by the total sleep time to obtain a preliminary sleep efficiency;

obtaining a frequency influence parameter according to the arousal frequency corresponding to the arousal time;

and dividing the preliminary sleep efficiency by the frequency influence parameter to obtain the sleep efficiency corresponding to the sleep process.

4. The method of claim 2, wherein obtaining the effective sleep time, the wake time, and the sleep latency time corresponding to the sleep process comprises:

acquiring the awakening time corresponding to the sleep process;

acquiring sleep starting time and sleep ending time corresponding to a sleep process;

obtaining preliminary effective sleep time according to the sleep ending time and the sleep starting time;

and subtracting the awakening time from the preliminary effective sleeping time to obtain the effective sleeping time corresponding to the sleeping process.

5. The method of claim 1, wherein said determining a sleep quality index from said sleep efficiency, said effective sleep time, and said oxygen saturation level comprises:

obtaining an efficiency influence coefficient corresponding to the sleep efficiency;

acquiring a time influence coefficient, reference sleep time and reference insomnia time corresponding to the effective sleep time;

acquiring a blood oxygen influence coefficient and a reference blood oxygen saturation which correspond to the blood oxygen saturation;

calculating the difference between the effective sleep time and the reference insomnia time to obtain sleep time increment;

calculating the difference between the blood oxygen saturation value and the reference blood oxygen saturation to obtain the blood oxygen saturation increment;

multiplying the sleep efficiency by the efficiency influence coefficient to obtain an efficiency quality index;

obtaining a time quality index according to the time influence coefficient, the reference sleep time and the sleep time increment;

multiplying the blood oxygen saturation increment by the blood oxygen influence coefficient to obtain a blood oxygen quality index;

and calculating the sum of the efficiency quality index, the time quality index and the blood oxygen quality index to obtain the sleep quality index.

6. The method of claim 5, wherein said obtaining the time impact coefficient, the reference sleep time and the reference wakefulness time corresponding to the effective sleep time comprises:

acquiring a plurality of effective sleep times of a user in normal sleep;

determining the reference sleep time according to a plurality of effective sleep times of a user in normal sleep;

acquiring a plurality of effective sleeping times of a user during insomnia;

and determining the reference insomnia time according to a plurality of effective sleep times of the user when the user sleeps.

7. The method of claim 1, wherein said obtaining sleep data and oxygen saturation levels for a sleep session comprises:

acquiring sleep data and blood oxygen saturation corresponding to a plurality of historical sleep processes;

and obtaining the sleep data and the blood oxygen saturation corresponding to the sleep process according to the sleep data and the blood oxygen saturation corresponding to the plurality of historical sleep processes.

8. The method of claim 7, wherein obtaining sleep data and blood oxygen saturation levels corresponding to sleep sessions from the sleep data and blood oxygen saturation levels corresponding to the plurality of historical sleep sessions comprises:

determining abnormal sleep data and abnormal blood oxygen saturation in the sleep data and the blood oxygen saturation corresponding to the plurality of historical sleep processes according to the sleep data and the blood oxygen saturation corresponding to the plurality of historical sleep processes;

removing the abnormal sleep data and the abnormal oxygen saturation level from the sleep data and the oxygen saturation levels corresponding to the plurality of historical sleep processes;

and obtaining sleep data and blood oxygen saturation corresponding to the sleep process according to the sleep data and the residual sleep data and blood oxygen saturation corresponding to the plurality of historical sleep processes.

9. A transcutaneous nerve modulation strategy generation device, comprising a memory, a processor and a computer program stored in the memory and operable on the processor, wherein the steps of the transcutaneous nerve modulation strategy generation method according to any one of claims 1 to 8 are realized when the computer program is executed by the processor.

10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the transcutaneous nerve modulation strategy generation method as defined in any one of claims 1 to 8.

Technical Field

The invention relates to the technical field of sleep management, in particular to a method and a device for generating a percutaneous nerve regulation and control strategy.

Background

Research shows that good sleep can support the immune system, consolidate memory, eliminate body fatigue and maintain brain operation, and good sleep is the first guarantee of human production, and human production activities cannot be well carried out if no good sleep support exists.

However, with the development of society and the progress of mankind, good sleep is becoming a luxury for people. How to help people improve sleep quality is a problem which needs to be solved urgently.

Disclosure of Invention

In view of the above, there is a need to provide a method and an apparatus for generating a transcutaneous neuromodulation strategy, which can effectively help to improve sleep quality.

In a first aspect, a method for generating a percutaneous neuromodulation strategy is provided, the method comprising: acquiring sleep data and blood oxygen saturation corresponding to a sleep process, wherein the sleep data comprises sleep efficiency and effective sleep time; determining a sleep quality index from the sleep efficiency, the effective sleep time, and the blood oxygen saturation; and obtaining a transcutaneous nerve regulation and control strategy corresponding to the sleep quality index according to the sleep quality index so as to improve the sleep quality through the transcutaneous nerve regulation and control strategy.

In a second aspect, a transcutaneous neuromodulation strategy generating device is provided, comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to carry out the steps of: acquiring sleep data and blood oxygen saturation corresponding to a sleep process, wherein the sleep data comprises sleep efficiency and effective sleep time; determining a sleep quality index from the sleep efficiency, the effective sleep time, and the blood oxygen saturation; and obtaining a transcutaneous nerve regulation and control strategy corresponding to the sleep quality index according to the sleep quality index so as to improve the sleep quality through the transcutaneous nerve regulation and control strategy.

In a third aspect, a computer readable storage medium is provided, storing a computer program which, when executed by a processor, causes the processor to perform the steps of: acquiring sleep data and blood oxygen saturation corresponding to a sleep process, wherein the sleep data comprises sleep efficiency and effective sleep time; determining a sleep quality index from the sleep efficiency, the effective sleep time, and the blood oxygen saturation; and obtaining a transcutaneous nerve regulation and control strategy corresponding to the sleep quality index according to the sleep quality index so as to improve the sleep quality through the transcutaneous nerve regulation and control strategy.

The embodiment of the invention has the following beneficial effects:

the invention provides a method and a device for generating a percutaneous nerve regulation and control strategy, which comprises the following steps of firstly, acquiring sleep data and blood oxygen saturation corresponding to a sleep process, wherein the sleep data comprises sleep efficiency and effective sleep time; then determining a sleep quality index according to the sleep efficiency, the effective sleep time and the blood oxygen saturation; and finally, obtaining a transcutaneous nerve regulation and control strategy corresponding to the sleep quality index according to the sleep quality index so as to improve the sleep quality through the transcutaneous nerve regulation and control strategy. Therefore, the sleep quality index is determined according to the three parameters of the sleep efficiency, the effective sleep time and the blood oxygen saturation, so that the accurate evaluation of the sleep quality is realized, and the transcutaneous nerve regulation and control strategy is determined according to the sleep quality index, so that a user can electrically stimulate acupuncture points through the transcutaneous nerve regulation and control strategy, thereby effectively improving the sleep quality and solving the sleep problem.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.

Wherein:

FIG. 1 is a schematic flow chart illustrating an implementation of a transcutaneous neuromodulation strategy generation method in an embodiment;

FIG. 2 is a schematic diagram of a sleep data input interface in one embodiment;

FIG. 3 is a schematic diagram of the components of the transcutaneous nerve stimulation system in one embodiment;

FIG. 4 is a schematic representation of a transcutaneous neuromodulation strategy interface in one embodiment;

FIG. 5 is a flow diagram illustrating an implementation of step 102 in one embodiment;

FIG. 6 is a flowchart illustrating an implementation of step 102C in one embodiment;

FIG. 7 is a flow diagram illustrating an implementation of step 104 in one embodiment;

FIG. 8 is a flowchart illustrating an implementation of step 104B in one embodiment;

FIG. 9 is a block diagram of a virtual device generated by a transcutaneous neuromodulation strategy in an embodiment;

fig. 10 is a block diagram of a percutaneous neuromodulation strategy generation apparatus in an embodiment.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

In one embodiment, a method for generating a transcutaneous neuromodulation strategy is provided, wherein transcutaneous neuromodulation refers to modulation of a transcutaneous nerve of a human body, for example, acupuncture technology, i.e., modulation of a transcutaneous nerve of a human body by acupuncture. The acupuncture and moxibustion refers to that a needle is inserted into a specific part of a patient body to stimulate the specific part of the patient body so as to achieve the purposes of health preservation, rehabilitation, disease treatment and the like. The puncture point of the needle is the acupuncture point of the human body. The method for generating the percutaneous nerve regulation and control strategy can generate the percutaneous nerve regulation and control strategy, and after the percutaneous nerve regulation and control strategy is generated, a user can use the needle to pierce the corresponding acupuncture point according to the generated percutaneous nerve regulation and control strategy, so that the sleep quality is improved through the stimulation of the needle to the acupuncture point; of course, the user may also use an acupuncture device with which corresponding acupuncture points of the body are electrically stimulated, thereby improving sleep quality through the electrical stimulation of the acupuncture points. The main execution body of the transcutaneous nerve regulation and control strategy generation method according to the embodiment of the present invention is a device capable of implementing the transcutaneous nerve regulation and control strategy generation method according to the embodiment of the present invention, and the device may include, but is not limited to, a wearable device, such as a smart band, a smart watch, and a smart collar, and the device may also be a device integrating functions of a wearable device and an acupuncture device, that is, the device is capable of generating a transcutaneous nerve regulation and control strategy and electrically stimulating acupuncture points of a human body according to the generated transcutaneous nerve regulation and control strategy, wherein the acupuncture device is a device capable of electrically stimulating acupuncture points of the human body.

As shown in fig. 1, the method for generating a percutaneous neuromodulation strategy according to the embodiment of the present invention specifically includes:

step 102, acquiring sleep data and blood oxygen saturation corresponding to a sleep process, wherein the sleep data comprises sleep efficiency and effective sleep time, and the sleep efficiency is calculated according to the effective sleep time.

Wherein, the sleeping process refers to the process from beginning to fall asleep to the end of sleeping; sleep data, which is data directly related to sleep and reflects sleep quality from the perspective of sleep time, including sleep efficiency and effective sleep time; the sleep efficiency reflects the quality of the whole sleep process from the perspective of sleep time; effective sleep time, which refers to the time of effective sleep during the sleep process; the blood oxygen saturation, which is data indirectly related to sleep, reflects the quality of sleep from the perspective of body reaction, and may be detected by a blood oxygen saturation detection sensor in the wearable device, for example.

The sleep data and the blood oxygen saturation corresponding to the sleep process can be obtained in two ways. And in the first mode, the user can input the information by self, so that the percutaneous nerve regulation and control strategy can be acquired at any time. As shown in fig. 2, a user may input sleep data and blood oxygen saturation corresponding to a sleep process through a sleep data input interface on the wearable device, and the wearable device feeds back the generated transcutaneous nerve modulation and control strategy to the user through user input. And the method II is obtained by automatic measurement, and a percutaneous nerve regulation and control strategy can be generated according to an actual detection result. Before falling asleep, the user wears the wearable device and then falls asleep. Therefore, in the sleeping process of the user, the wearable device automatically detects the sleep data and the blood oxygen saturation degree corresponding to the sleeping process, and the generated transcutaneous nerve regulation and control strategy is fed back to the user after the user wakes up.

And 104, determining a sleep quality index according to the sleep efficiency, the effective sleep time and the blood oxygen saturation.

The sleep quality index is a numerical value which reflects sleep quality, so that whether the user has insomnia or not is determined according to the numerical value, and then the percutaneous nerve regulation and control strategy is determined to help the user improve the sleep quality.

And 106, obtaining a transcutaneous nerve regulation and control strategy corresponding to the sleep quality index according to the sleep quality index so as to improve the sleep quality through the transcutaneous nerve regulation and control strategy.

The corresponding relation between the sleep quality index and the sleep quality is established, and meanwhile, the corresponding relation between the sleep quality and the transcutaneous nerve regulation and control strategy is established, so that the transcutaneous nerve regulation and control strategy can be directly obtained according to the sleep quality index after the sleep quality index is determined, as shown in table 1.

TABLE 1

TABLE 2

The intensity corresponds to the magnitude of the current output by the emitting electrode, the greater the intensity is, the greater the current output by the emitting electrode is, and the stronger the stimulation given to the acupuncture points is; conversely, the smaller the intensity, the smaller the current output by the emitter electrode and the smaller the stimulation given to the acupuncture points. Illustratively, the intensity ranges from 0 to 30.

A method of creating table 1 is provided, comprising: acquiring sleep quality indexes of a plurality of test users; according to the sleep quality index of each test user, obtaining the sleep quality of the test user from the table 1; according to the sleep quality of each test user, acquiring an original transcutaneous nerve regulation and control strategy corresponding to each test user from the table 1 so as to perform acupuncture point stimulation on the test user by using the original transcutaneous nerve regulation and control strategy; acquiring stimulation effect data of each test user after stimulation for a preset time; and updating each original transcutaneous nerve regulation and control strategy in the table 1 according to the stimulation effect data of each test user after the stimulation for the preset time to obtain the updated table 1, thereby completing the establishment of the table 1.

The test user is a user selected for updating the table 1; the original percutaneous nerve regulation and control strategy is the percutaneous nerve regulation and control strategy recorded at the beginning in the table 1, and the percutaneous nerve regulation and control strategy recorded at the beginning is not updated, so the percutaneous nerve regulation and control strategy at the moment can not help a user to well recover to normal and healthy sleep; the stimulation effect data is data reflecting the stimulation effect of the original transcutaneous nerve modulation strategy obtained after the acupuncture points are stimulated by the original transcutaneous nerve modulation strategy, and for example, a sleep quality index is used as the stimulation effect data.

The updating of each original transcutaneous nerve regulation and control strategy in the table 1 according to the stimulation effect data of each test user after a predetermined time of stimulation includes: if the stimulation effect data reflects that the test user recovers to normal and healthy sleep, keeping the original transcutaneous nerve modulation strategy unchanged in the table 1; otherwise, in table 1, the original transcutaneous neuromodulation strategy is replaced with the modified transcutaneous neuromodulation strategy until the test user returns to normal, healthy sleep.

The improved percutaneous nerve regulation strategy is obtained by improving the percutaneous nerve regulation strategy.

It should be noted that, when the device implementing the transcutaneous nerve modulation strategy generation method according to the embodiment of the present invention is a device integrating functions of the wearable device and the acupuncture device, after obtaining the transcutaneous nerve modulation strategy corresponding to the sleep quality index, the user may directly stimulate the acupuncture points through the device implementing the transcutaneous nerve modulation strategy generation method according to the embodiment of the present invention, so as to improve the sleep quality through stimulation of the acupuncture points.

Firstly, acquiring sleep data and blood oxygen saturation corresponding to a sleep process, wherein the sleep data comprises sleep efficiency and effective sleep time; then determining a sleep quality index according to the sleep efficiency, the effective sleep time and the blood oxygen saturation; and finally, obtaining a transcutaneous nerve regulation and control strategy corresponding to the sleep quality index according to the sleep quality index so as to improve the sleep quality through the transcutaneous nerve regulation and control strategy. Therefore, the sleep quality index is determined according to the three parameters of the sleep efficiency, the effective sleep time and the blood oxygen saturation, so that the accurate evaluation of the sleep quality is realized, and the transcutaneous nerve regulation and control strategy is determined according to the sleep quality index, so that a user can electrically stimulate acupuncture points through the transcutaneous nerve regulation and control strategy, thereby effectively improving the sleep quality and solving the sleep problem.

In one embodiment, as shown in fig. 3, there is provided a transcutaneous nerve stimulation system comprising: the acupuncture device is provided with a transmitting electrode, when acupuncture points are stimulated, the acupuncture device is connected with a user through the transmitting electrode, and the transmitting electrode controls output current, so that stimulation with different strengths is given to the acupuncture points of the body of the user. Specifically, the wearable device and the user terminal establish a communication connection in advance, for example, a bluetooth connection or a WIFI connection, after the connection is established, the wearable device sends detected sleep data and blood oxygen saturation level to the user terminal, the user terminal sends the sleep data and the blood oxygen saturation level sent by the wearable device to the server, the server determines a sleep quality index according to the sleep data and the blood oxygen saturation level, and obtains a transcutaneous nerve modulation strategy corresponding to the sleep quality index according to the sleep quality index, generates a stimulation instruction according to the transcutaneous nerve modulation strategy, feeds the stimulation instruction back to the user terminal, the user terminal sends the received stimulation instruction to the acupuncture device, the acupuncture device sends the stimulation instruction to the emitter electrode after receiving the stimulation instruction sent by the user terminal, the emitter electrode controls output current according to the stimulation instruction, thereby realizing the function of stimulating the acupuncture points. By establishing the percutaneous nerve stimulation system, the sleep quality can be effectively improved by the electrical stimulation of acupuncture equipment after a percutaneous nerve regulation strategy is obtained.

In one embodiment, as shown in fig. 4, the user may also implement the control of stimulation through a transcutaneous nerve regulation and control strategy interface on the acupuncture device, for example, after receiving a stimulation instruction sent by the user terminal, the acupuncture device acquires a transcutaneous nerve regulation and control strategy therein, and displays the acquired transcutaneous nerve regulation and control strategy to the user through the transcutaneous nerve regulation and control strategy interface, if the user clicks a circular button of the transcutaneous nerve regulation and control strategy interface, the user is considered to select to stimulate an acupuncture point directly according to the stimulation instruction, but the user may not accept a transcutaneous nerve regulation and control strategy generated by the server, at this time, the user may click the long button, and by clicking the long button, the modification of the stimulation parameter may be implemented, for example, the user clicks the long button at the top of the transcutaneous nerve regulation and control strategy interface, so that "annao acupoint, and" can, Modification of stimulation parameters of sleep-aid points.

Further, the user can input specific stimulation parameters through the leisure mode as shown in fig. 4 at leisure time, so that the acupuncture equipment is controlled to realize the hypnotic stimulation at leisure time.

It should be noted that, the wearable device and the acupuncture device in the transcutaneous neurostimulation system may be the same device or apparatus, that is, the function of the wearable device and the function of the acupuncture device are integrated into a whole, and the device or apparatus integrating the function of the wearable device and the function of the acupuncture device may also integrate the function of the server at the same time, that is, the device or apparatus integrating the function of the wearable device and the function of the acupuncture device is also capable of determining the sleep quality index according to the sleep data and the blood oxygen saturation level, and obtaining the transcutaneous neuromodulation strategy corresponding to the sleep quality index according to the sleep quality index.

In one embodiment, a specific method for determining sleep efficiency is provided, as shown in fig. 5, the acquiring 102 sleep data and blood oxygen saturation corresponding to a sleep process includes:

step 102A, obtaining effective sleep time, wake-up time and sleep latency time corresponding to the sleep process.

Wherein, the wake time corresponding to the sleep process refers to the total wake time of the user after entering the sleep. For example, the user falls asleep at 10:00 pm, wakes up from one hour to 11:00 pm and starts to rise to the bathroom, exits the bathroom back to bed at 11:03, re-enters sleep at 11:05, and then the calculated wake-up time is 5 minutes.

Since the user may wake many times during the sleep process, the wake time corresponding to the sleep process is: for example, the sum of the wake times of a plurality of times in a sleep process is 5 minutes for the first wake time, 3 minutes for the second wake time and 20 minutes for the third wake time of a user in a certain sleep process, and thus the wake time corresponding to the sleep process is 28 minutes.

The sleep latency is the time that the user passes from beginning to fall asleep to successfully entering the sleep state. For example, the user falls asleep at 10:00 pm, and after experiencing a light sleep of 15 minutes, successfully enters the sleep state at 10:15 pm, and thus the calculated sleep latency is 15 minutes.

Illustratively, a method for acquiring an effective sleep time corresponding to a sleep process is provided, which includes: acquiring the awakening time corresponding to the sleep process; acquiring sleep starting time and sleep ending time corresponding to a sleep process; obtaining preliminary effective sleep time according to the sleep ending time and the sleep starting time; and subtracting the awakening time from the preliminary effective sleeping time to obtain the effective sleeping time corresponding to the sleeping process.

Wherein, the sleep starting time refers to the starting time of the sleep process; the sleep end time refers to the end time of the sleep process.

For example, the sleep start time T1 is 22:00:00 and the sleep end time T2 is 06:00:00, so the preliminary effective sleep time is: for 8 hours, it is assumed that the wake time WASO corresponding to the sleep process is 0.5 hour, and then the effective sleep time TST corresponding to the sleep process is 7.5 hours, i.e. the effective sleep time TST corresponding to the sleep process is (T2-T1) -WASO.

And step 102B, calculating the sum of the effective sleep time, the awakening time and the sleep latency time to obtain the total sleep time corresponding to the sleep process.

The total sleep time is the time from the beginning of falling asleep to the end of sleep (i.e., waking). For example, if the effective sleep time TST is 6 hours, the wake time WASO is 0.5 hours, and the sleep latency SOL is 0.2 hours, the total sleep time T corresponding to the sleep process is 6.7 hours.

And 102C, obtaining the sleep efficiency corresponding to the sleep process according to the effective sleep time and the total sleep time.

For example, let the effective sleep time be TST and the total sleep time be T, the sleep efficiency SE ═ TST/T ═ TST/(TST + WASO + SOL) corresponding to the sleep process.

In one embodiment, the number of awakenings has an influence on the sleep efficiency, for example, although the sleep efficiency is high, the number of awakenings is large, the time of each awakening may be short, but the sleep efficiency is also reduced, and therefore, in order to improve the calculation accuracy of the sleep efficiency, the influence of the number of awakenings should be considered when calculating the sleep efficiency. As shown in fig. 6, the obtaining of the sleep efficiency corresponding to the sleep process according to the effective sleep time and the total sleep time in step 102C includes:

and step 102C1, acquiring the number of awakenings corresponding to the awakening time.

The number of awakenings is the total number of awakenings during sleep.

And step 102C2, dividing the effective sleep time by the total sleep time to obtain the preliminary sleep efficiency.

Wherein the preliminary sleep efficiency is calculated without considering the number of awakenings. For example, when the effective sleep time is TST and the total sleep time is T, the preliminary sleep efficiency is: TST/T.

And step 102C3, obtaining a frequency influence parameter according to the arousal frequency corresponding to the arousal time.

The number influence parameter is a parameter calculated according to the number of wakefulness and is used for measuring the influence of the number of wakefulness on the sleep efficiency corresponding to the sleep process, the larger the number of wakefulness is, the larger the influence of the number influence parameter on the sleep efficiency corresponding to the sleep process is, and the smaller the number of wakefulness is, the smaller the influence of the number influence parameter on the sleep efficiency corresponding to the sleep process is.

In one embodiment, if the arousal number is c, the number-influencing parameter is:for example, n-4. Taking the number of times influence parameter asIf the number of arousals is directly used as the number-influencing parameter, then the calculated sleep efficiency corresponding to the sleep process is influenced too much by the number of arousals when the preliminary sleep efficiency is divided by the number-influencing parameter, so that the influence of the number of arousals on the finally calculated sleep efficiency corresponding to the sleep process is only selected to be balancedAs a number influencing parameter.

Wherein n can be obtained by: acquiring a first loss value; acquiring the blood oxygen saturation, the effective sleep time, the wake-up time and the sleep latency time corresponding to the sleep process; acquiring the number of awakenings corresponding to the awakening time; calculating the sum of the effective sleep time, the wake-up time and the sleep latency time to obtain the total sleep time corresponding to the sleep process; dividing the effective sleep time by the total sleep time to obtain a preliminary sleep efficiency; obtaining a frequency influence parameter according to the arousal frequency c corresponding to the arousal timeDividing the preliminary sleep efficiency by the frequency influence parameter to obtain the sleep efficiency corresponding to the sleep process; determining a sleep quality index according to the sleep efficiency, the effective sleep time and the blood oxygen saturation corresponding to the sleep process; and comparing the sleep quality index with a standard sleep quality index corresponding to the sleep process (the standard sleep quality index is set according to the specific condition of the sleep process in advance), and obtaining the n when the absolute value of the difference value between the sleep quality index and the standard sleep quality index is smaller than the first loss value.

And step 102C4, dividing the preliminary sleep efficiency by the number of times influence parameter to obtain the sleep efficiency corresponding to the sleep process.

For example, the preliminary sleep efficiency is TST/T, and the number of times influence parameter is:the sleep efficiency corresponding to the sleep process is then:

in one embodiment, as shown in fig. 7, the determining a sleep quality index according to the sleep efficiency, the effective sleep time and the blood oxygen saturation at step 104 comprises:

and 104A, acquiring an efficiency influence coefficient corresponding to the sleep efficiency.

The efficiency influence coefficient is used for measuring the influence of the sleep efficiency on the calculation of the sleep quality index, and the larger the influence of the sleep efficiency on the calculation of the sleep quality index is, the larger the efficiency influence coefficient is; the smaller the influence of sleep efficiency on the calculation of the sleep quality index, the smaller the efficiency influence coefficient.

And step 104B, acquiring a time influence coefficient, reference sleep time and reference insomnia time corresponding to the effective sleep time.

The time influence coefficient is used for measuring the influence of the effective sleep time on the calculation of the sleep quality index, and the larger the influence of the effective sleep time on the calculation of the sleep quality index is, the larger the time influence coefficient is; the smaller the influence of the effective sleep time on the calculation of the sleep quality index is, the smaller the time influence coefficient is; the reference sleep time is scientific effective sleep time, and the normal and healthy body can be obtained when the user sleeps in the reference sleep time; the reference insomnia time is a critical value of the sleep time corresponding to insomnia, namely when the effective sleep time is less than the reference insomnia time, the insomnia is considered to be certain.

And 104C, acquiring the blood oxygen influence coefficient and the reference blood oxygen saturation corresponding to the blood oxygen saturation.

The blood oxygen influence coefficient is used for measuring the influence of the blood oxygen saturation on the calculation of the sleep quality index, and the larger the influence of the blood oxygen saturation on the calculation of the sleep quality index is, the larger the blood oxygen influence coefficient is; the smaller the influence of the blood oxygen saturation on the calculation of the sleep quality index is, the smaller the blood oxygen influence coefficient is; the reference blood oxygen saturation is the blood oxygen saturation when it is not affected by insomnia.

And step 104D, calculating the difference between the effective sleep time and the reference insomnia time to obtain the sleep time increment.

The sleep time increment is used for measuring the effective sleep time corresponding to the sleep process and the reference insomnia time, so that whether insomnia exists or not is determined through the comparison of the effective sleep time and the reference insomnia time.

For example, the effective sleep time is TST, the reference wakefulness time is TSM, and the sleep time increment is TST-TSM. It can be seen that if the effective sleep time is less than the reference insomnia time, it is considered that the user has insomnia, at this time, the sleep time increment is negative, and since the sleep time increment is negative, it means that the calculated sleep quality index will be smaller, that is, the user is more inclined to severe insomnia; if the effective sleep time is longer than the reference insomnia time, the user is considered to have no insomnia yet temporarily, at this time, the sleep time increment is positive, and the positive sleep time increment means that the calculated sleep quality index is relatively larger, namely the user is more inclined to mild insomnia or no insomnia.

And 104E, calculating the difference between the blood oxygen saturation value and the reference blood oxygen saturation to obtain the blood oxygen saturation increment.

The blood oxygen saturation increment is used for measuring the blood oxygen saturation corresponding to the sleep process and the reference blood oxygen saturation, so that whether insomnia exists or not is determined through size comparison. Considering that the blood oxygen saturation level of a person in the case of insomnia or severe insomnia will be significantly lower than the reference blood oxygen saturation level, it can be determined whether the user has insomnia by comparing the blood oxygen saturation level corresponding to the sleep process with the reference blood oxygen saturation level in magnitude.

For example, the blood oxygen saturation is SaO2, the reference blood oxygen saturation is, MSaO2, and thus the blood oxygen saturation increment is: SaO2-MSaO 2. It can be seen that if the blood oxygen saturation is less than the reference blood oxygen saturation, the user is considered to have insomnia, at this time, the increment of the blood oxygen saturation is negative, and since the increment of the blood oxygen saturation is negative, the calculated sleep quality index will be smaller, that is, the user is more inclined to severe insomnia; if the blood oxygen saturation is greater than the reference blood oxygen saturation, the user is considered to have no insomnia yet for the moment, and at this moment, the increment of the blood oxygen saturation is positive, which means that the calculated sleep quality index will be relatively large, i.e. the user is more inclined to mild insomnia or no insomnia.

And step 104F, multiplying the sleep efficiency by the efficiency influence coefficient to obtain an efficiency quality index.

For example, if the sleep efficiency is SE and the efficiency influence coefficient is h1, the efficiency quality index is: SE × h 1.

And step 104G, obtaining a time quality index according to the time influence coefficient, the reference sleep time and the sleep time increment.

For example, the time impact coefficient is h2, the reference sleep time is TSH, and thus the time quality index is: ((TST-TSM)/TSH). times.h 2.

And step 104H, multiplying the blood oxygen saturation increment by the blood oxygen influence coefficient to obtain a blood oxygen quality index.

For example, the blood oxygen influence coefficient is h3, and thus the blood oxygen quality index is: (SaO2-MSaO 2). times.h 3.

And step 104I, calculating the sum of the efficiency quality index, the time quality index and the blood oxygen quality index to obtain the sleep quality index.

The sleep quality index is as follows: SE × h1+ ((TST-TSM)/TSH) × h2+ (SaO2-MSaO2) × h 3. Illustratively, h1 ═ 1, h2 ═ 0.6, and h3 ═ 0.7.

In one embodiment, a method for determining h1, h2, and h3 is provided, which specifically includes: acquiring a second loss value; acquiring standard sleep quality indexes corresponding to one or more target sleep processes; acquiring sleep efficiency, effective sleep time and blood oxygen saturation corresponding to each target sleep process; obtaining an efficiency influence coefficient corresponding to the sleep efficiency; acquiring a time influence coefficient, reference sleep time and reference insomnia time corresponding to the effective sleep time; acquiring a blood oxygen influence coefficient and a reference blood oxygen saturation which correspond to the blood oxygen saturation; calculating the difference between the effective sleep time and the reference insomnia time to obtain sleep time increment; calculating the difference between the blood oxygen saturation value and the reference blood oxygen saturation to obtain the blood oxygen saturation increment; multiplying the sleep efficiency by the efficiency influence coefficient to obtain an efficiency quality index; obtaining a time quality index according to the time influence coefficient, the reference sleep time and the sleep time increment; multiplying the blood oxygen saturation increment by the blood oxygen influence coefficient to obtain a blood oxygen quality index; calculating the sum of the efficiency quality index, the time quality index and the blood oxygen quality index to obtain a sleep quality index corresponding to each target sleep process; comparing the calculated sleep quality index corresponding to the target sleep process with the standard sleep quality index corresponding to the target sleep process until the absolute value of the difference between the calculated sleep quality index corresponding to the target sleep process and the standard sleep quality index corresponding to the target sleep process is smaller than the second loss value, and obtaining h1, h2 and h 3.

In one embodiment, it is considered that too many turnover numbers will also affect sleep quality, and therefore, in order to increase the accuracy of the finally calculated sleep quality index, the turnover numbers need to be considered. Specifically, the step 104I of calculating the sum of the efficiency quality index, the time quality index and the blood oxygen quality index to obtain the sleep quality index includes:

step I1, obtaining the turn-over times corresponding to the sleep process and the turn-over coefficient corresponding to the turn-over times.

The turning-over times are the sum of the turning-over times in the whole sleeping process, and it needs to be explained that the turning-over and the waking are distinguished, the turning-over is only carried out by the user simply turning over the body, and the user does not wake up. For example, in the whole sleep process, the user turns over 5 times, and the turn-over times corresponding to the sleep process are as follows: 5. the turning-over coefficient is used for measuring the influence of the turning-over times on the calculation of the sleep quality index, and the larger the influence of the turning-over times on the calculation of the sleep quality index is, the larger the turning-over coefficient is; the smaller the influence of the turn-over times on the calculation of the sleep quality index is, the smaller the turn-over coefficient is.

Step I2, calculating the turn-over influence parameters according to the turn-over times corresponding to the sleep process.

The turning-over influence parameter is a parameter obtained by calculation according to the turning-over times and is used for measuring the influence of the turning-over times on the calculation of the sleep quality index, the larger the turning-over times is, the larger the influence of the turning-over influence parameter on the calculation of the sleep quality index is, and the smaller the turning-over times is, the smaller the influence of the turning-over influence parameter on the calculation of the sleep quality index is.

In one embodiment, let the number of turns be d, if d is greater than d1, the turn-over influencing parameter is:wherein d1 is a preset positive integer, for example, d1 ═ 10; n is a preset positive integer greater than 2, for example, n is 5; if d is less than or equal to d1, the turning influence parameter is:where d0 is a preset natural number, for example, d0 is 0, or d0 is 5.

Step I3, multiplying the turning influence parameter by the turning coefficient corresponding to the turning times to obtain the turning quality index.

For example, if the turning influence parameter is Tu and the turning coefficient is h4, the turning quality index is Tu × h 4.

Step I4, obtaining the sleep quality index according to the efficiency quality index, the time quality index, the blood oxygen quality index and the turning quality index.

For example, the sleep quality index is: SE × h1+ ((TST-TSM)/TSH). times.h 2+ (SaO2-MSaO 2). times.h 3-Tu × h 4. Illustratively, h1 ═ 1, h2 ═ 0.6, h3 ═ 0.7, and h4 ═ 0.1.

In one embodiment, a method for determining a sleep start time, a sleep end time, a start wake time, an end wake time (according to the start wake time and the end wake time, the time spent on this wake can be calculated, for example, the time spent on this wake is 23:00:00, the end wake time is 23:20:00, and the time spent on this wake is 20 minutes), a sleep latency start time, a sleep latency end time (according to the sleep latency start time and the sleep latency end time, the sleep latency start time is 23:00:00, the sleep latency end time is 23:20:00, and the sleep latency end time is 20 minutes), and a turn-over time is provided.

Specifically, a triaxial acceleration sensor is arranged in the wearable device, triaxial acceleration data in eight states of sleepiness, sleep start, sleep end, arousal start, arousal end, sleep latency start, sleep latency end and turning over are detected in advance, and multiple groups of state data are obtained, wherein each group of state data comprises triaxial acceleration data corresponding to sleepiness immobility, triaxial acceleration data corresponding to sleep start, triaxial acceleration data corresponding to sleep end, triaxial acceleration data corresponding to sleep wake start, triaxial acceleration data corresponding to wake end, triaxial acceleration data corresponding to sleep latency start, triaxial acceleration data corresponding to sleep latency end and triaxial acceleration data corresponding to turning over; generating standard sleepiness data, standard sleep onset data, standard sleep end data, standard onset arousal data, standard end arousal data, standard sleep latency onset data, standard sleep latency end data, and standard turn-over data from the plurality of sets of state data to pass the generated standard sleepiness data, standard sleep onset data, standard sleep end data, standard onset arousal data, standard end arousal data, standard sleep onset data, standard sleep latency end data, and standard turn-over data as data references for eight states of sleepiness, sleep onset, sleep end, onset arousal, end arousal, sleep latency onset, sleep latency end, and turn-over; in the practical application process, triaxial acceleration data corresponding to the sleep process detected by a triaxial acceleration sensor is acquired; according to the three-axis acceleration data corresponding to the sleep process detected by the three-axis acceleration sensor, the detection time of each three-axis acceleration data, and the standard still sleep data, the standard sleep start data, the standard sleep end data, the standard start arousal data, the standard end arousal data, the standard sleep latency start data, the standard sleep latency end data and the standard turn-over data, the sleep start time, the sleep end time, the start arousal time, the end arousal time, the sleep latency start time, the sleep latency end time and the turn-over time are determined. Since the sleep starting time, the sleep ending time, the start awakening time, the end awakening time, the sleep latency starting time, the sleep latency ending time and the turn-over time are determined, the effective sleep time, the awakening time, the sleep latency time, the awakening times and the turn-over times corresponding to the sleep process can be determined.

In one embodiment, different users have different reference sleep times, for example, the reference sleep time of some users is 6 hours, the reference sleep time of some users is 8 hours, and different users have different insomnia time when they have insomnia, some users are considered to have insomnia when sleeping for less than 4 hours, and some users are considered to have insomnia when sleeping for less than 5 hours, so as to embody the individualization difference, as shown in fig. 8, the step 104B of obtaining the time influence coefficient, the reference sleep time and the reference insomnia time corresponding to the effective sleep time includes:

step 104B1, a plurality of valid sleep times of the user while sleeping normally are acquired.

Wherein, the insomnia phenomenon is not generated in the normal sleep and the sleep process.

Since the effective sleep time of the same user during normal sleep may be slightly different even for the same user, for example, the effective sleep time may be 6 hours in some cases, and the effective sleep time may be 6.2 hours in some cases, in order to improve the accuracy of the finally determined reference sleep time, it is necessary to acquire a plurality of effective sleep times of the user during normal sleep.

Step 104B2, determining the reference sleep time according to a plurality of effective sleep times of the user in normal sleep.

Illustratively, an average value of a plurality of effective sleep times of the user during normal sleep is calculated, and the average value is used as a reference sleep time. For example, the 3 effective sleep times of the user in normal sleep are: 6 hours, 6.2 hours and 6.1 hours, so the average value calculated was 6.1 hours, and 6.1 hours was taken as the reference sleep time.

Illustratively, in a plurality of effective sleep times of the user in normal sleep, removing the abnormal effective sleep time to obtain a plurality of remaining effective sleep times; and determining the reference sleep time according to the plurality of remaining effective sleep times. For example, the 5 effective sleep times of the user in normal sleep are: 6 hours, 6.2 hours, 6.1 hours, 8 hours and 9 hours, of which 8 hours and 9 hours are abnormal effective sleep times, which were removed to give 3 remaining effective sleep times: 6 hours, 6.2 hours and 6.1 hours, and thus an average value of 6.1 hours was calculated from the 3 remaining effective sleep times, and 6.1 hours was used as a reference sleep time.

Step 104B3, a plurality of valid sleep times of the user while wakefulness is obtained.

Even for the same user, the effective sleep time of the user in insomnia may be slightly different, for example, even if the user is in insomnia, the effective sleep time of the user may still be relatively high, reaching 5 hours, but sometimes the user may be in severe insomnia, and when the user is in severe insomnia, the effective sleep time of the user is only 3 hours, so in order to improve the accuracy of the finally determined reference insomnia time, it is necessary to acquire a plurality of effective sleep times of the user in insomnia.

Step 104B4, determining the reference wakefulness time according to a plurality of effective sleep times of the user when wakefulness occurs.

Illustratively, an average value of a plurality of effective sleeping times of the user when the user sleeps is calculated, and the average value is used as a reference sleeplessness time. For example, the 2 effective sleep times of a user while sleepless are: 5 hours and 3 hours, and thus, the average value was calculated to be 4 hours, and 4 hours was taken as the reference insomnia time.

Illustratively, in a plurality of effective sleep times when the user is in insomnia, the abnormal effective sleep time is removed to obtain a plurality of remaining effective sleep times; and determining the reference insomnia time according to the plurality of remaining effective sleep times. For example, the 5 effective sleep times of a user when they are asleep are: 2 hours, 1 hour, 5 hours, 4 hours and 3 hours, wherein 2 hours and 1 hour are serious insomnia, which belongs to abnormal effective sleep time, and is not beneficial to calculating the reference insomnia time of critical insomnia, therefore, the reference insomnia time is removed, and 3 residual effective sleep times are obtained: 5 hours, 4 hours and 3 hours, and then, an average value of 4 hours was calculated from the 3 remaining effective sleep times, and 4 hours was used as a reference insomnia time.

In one embodiment, the user may not need special acupoint stimulation for one insomnia, and the next day of sleep can be directly relieved, so that in order to determine whether the user really has insomnia habit, a plurality of historical sleep data and blood oxygen saturation levels need to be acquired. Specifically, the acquiring of sleep data and blood oxygen saturation corresponding to the sleep process in step 102 includes: acquiring sleep data and blood oxygen saturation corresponding to a plurality of historical sleep processes; and obtaining the sleep data and the blood oxygen saturation corresponding to the sleep process according to the sleep data and the blood oxygen saturation corresponding to the plurality of historical sleep processes.

The historical sleep process is, for example, a sleep process before today.

For example, assuming that the sleep efficiency, the effective sleep time and the blood oxygen saturation corresponding to 3 historical sleep processes are obtained, the sleep efficiency corresponding to the sleep process is obtained by calculation according to the sleep efficiency corresponding to 3 historical sleep processes, the effective sleep time corresponding to the sleep process is obtained by calculation according to the effective sleep time corresponding to 3 historical sleep processes, and the blood oxygen saturation corresponding to the sleep process is obtained by calculation according to the blood oxygen saturation corresponding to 3 historical sleep processes.

In one embodiment, in order to improve the accuracy of the acquired sleep data and the blood oxygen saturation corresponding to the sleep process, abnormal data needs to be eliminated from a plurality of historical data. The obtaining of the sleep data and the blood oxygen saturation corresponding to the sleep process according to the sleep data and the blood oxygen saturation corresponding to the plurality of historical sleep processes includes: determining abnormal sleep data and abnormal blood oxygen saturation in the sleep data and the blood oxygen saturation corresponding to the plurality of historical sleep processes according to the sleep data and the blood oxygen saturation corresponding to the plurality of historical sleep processes; removing the abnormal sleep data and the abnormal oxygen saturation level from the sleep data and the oxygen saturation levels corresponding to the plurality of historical sleep processes; and obtaining sleep data and blood oxygen saturation corresponding to the sleep process according to the sleep data and the residual sleep data and blood oxygen saturation corresponding to the plurality of historical sleep processes.

The abnormal sleep data is sleep data which is obviously different from other sleep data in the sleep data corresponding to the plurality of historical sleep processes; the abnormal blood oxygen saturation is the blood oxygen saturation corresponding to a plurality of historical sleep processes, and the blood oxygen saturation is obviously different from other blood oxygen saturation.

For example, the sleep efficiency for 4 historical sleep processes is: 0.5, 0.4, 0.1 and 0.2, then 0.1 and 0.2 are both abnormal sleep efficiencies, the remaining sleep efficiencies are: 0.5 and 0.4; the effective sleep time corresponding to the 4 historical sleep processes is as follows: 6 hours, 5 hours, 1 hour and 5.3 hours, then 1 hour is the abnormal effective sleep time and the remaining effective sleep time is: 6 hours, 5 hours, and 5.3 hours; the oxygen saturation for 4 historical sleep sessions is: 0.95, 0.4, 0.8, and 0.94, then 0.4 is the abnormal oxygen saturation, and the remaining oxygen saturation is: 0.95, 0.8 and 0.94; then, the sleep efficiency corresponding to the sleep process is calculated as: (0.5+0.4)/2 ═ 0.45; calculating to obtain effective sleep time corresponding to the sleep process as follows: (6+5+5.3)/3 ═ 5.43; calculating the blood oxygen saturation corresponding to the sleep process as follows: (0.95+0.8+0.94)/3 ═ 0.897.

As shown in fig. 9, there is provided a virtual device 900 for generating a transcutaneous neuromodulation strategy, which specifically includes: a data acquiring module 902, configured to acquire sleep data and blood oxygen saturation corresponding to a sleep process, where the sleep data includes sleep efficiency and effective sleep time; an index determination module 904 for determining a sleep quality index based on the sleep efficiency, the effective sleep time, and the blood oxygen saturation; a strategy obtaining module 906, configured to obtain a transcutaneous nerve modulation strategy corresponding to the sleep quality index according to the sleep quality index, so as to improve sleep quality through the transcutaneous nerve modulation strategy.

Firstly, acquiring sleep data and blood oxygen saturation corresponding to a sleep process, wherein the sleep data comprises sleep efficiency and effective sleep time; then determining a sleep quality index according to the sleep efficiency, the effective sleep time and the blood oxygen saturation; and finally, obtaining a transcutaneous nerve regulation and control strategy corresponding to the sleep quality index according to the sleep quality index so as to improve the sleep quality through the transcutaneous nerve regulation and control strategy. Therefore, the sleep quality index is determined according to the three parameters of the sleep efficiency, the effective sleep time and the blood oxygen saturation, so that the accurate evaluation of the sleep quality is realized, and the transcutaneous nerve regulation and control strategy is determined according to the sleep quality index, so that a user can electrically stimulate acupuncture points through the transcutaneous nerve regulation and control strategy, thereby effectively improving the sleep quality and solving the sleep problem.

In an embodiment, the data obtaining module 902 is specifically configured to: acquiring effective sleep time, wake-up time and sleep latency time corresponding to a sleep process; calculating the sum of the effective sleep time, the wake-up time and the sleep latency time to obtain the total sleep time corresponding to the sleep process; and obtaining the sleep efficiency corresponding to the sleep process according to the effective sleep time and the total sleep time.

In an embodiment, the data obtaining module 902 is specifically configured to: acquiring the number of awakenings corresponding to the awakening time; dividing the effective sleep time by the total sleep time to obtain a preliminary sleep efficiency; obtaining a frequency influence parameter according to the arousal frequency corresponding to the arousal time; and dividing the preliminary sleep efficiency by the frequency influence parameter to obtain the sleep efficiency corresponding to the sleep process.

In an embodiment, the index determining module 904 is specifically configured to: obtaining an efficiency influence coefficient corresponding to the sleep efficiency; acquiring a time influence coefficient, reference sleep time and reference insomnia time corresponding to the effective sleep time; acquiring a blood oxygen influence coefficient and a reference blood oxygen saturation which correspond to the blood oxygen saturation; calculating the difference between the effective sleep time and the reference insomnia time to obtain sleep time increment; calculating the difference between the blood oxygen saturation value and the reference blood oxygen saturation to obtain the blood oxygen saturation increment; multiplying the sleep efficiency by the efficiency influence coefficient to obtain an efficiency quality index; obtaining a time quality index according to the time influence coefficient, the reference sleep time and the sleep time increment; multiplying the blood oxygen saturation increment by the blood oxygen influence coefficient to obtain a blood oxygen quality index; and calculating the sum of the efficiency quality index, the time quality index and the blood oxygen quality index to obtain the sleep quality index.

In an embodiment, the index determining module 904 is specifically configured to: acquiring a plurality of effective sleep times of a user in normal sleep; determining the reference sleep time according to a plurality of effective sleep times of a user in normal sleep; acquiring a plurality of effective sleeping times of a user during insomnia; and determining the reference insomnia time according to a plurality of effective sleep times of the user when the user sleeps.

In an embodiment, the data obtaining module 902 is specifically configured to: acquiring sleep data and blood oxygen saturation corresponding to a plurality of historical sleep processes; and obtaining the sleep data and the blood oxygen saturation corresponding to the sleep process according to the sleep data and the blood oxygen saturation corresponding to the plurality of historical sleep processes.

In an embodiment, the data obtaining module 902 is specifically configured to: determining abnormal sleep data and abnormal blood oxygen saturation in the sleep data and the blood oxygen saturation corresponding to the plurality of historical sleep processes according to the sleep data and the blood oxygen saturation corresponding to the plurality of historical sleep processes; removing the abnormal sleep data and the abnormal oxygen saturation level from the sleep data and the oxygen saturation levels corresponding to the plurality of historical sleep processes; and obtaining sleep data and blood oxygen saturation corresponding to the sleep process according to the sleep data and the residual sleep data and blood oxygen saturation corresponding to the plurality of historical sleep processes.

Fig. 10 shows an internal structural diagram of a transcutaneous neuromodulation strategy generating device (entity device, i.e., apparatus) in an embodiment. The transcutaneous nerve regulation and control strategy generation device can be wearing equipment, and can also be a device integrating the functions of the wearing equipment and acupuncture and moxibustion equipment, namely after the transcutaneous nerve regulation and control strategy generation device obtains the transcutaneous nerve regulation and control strategy corresponding to the sleep quality index, the transcutaneous nerve regulation and control strategy generation device can realize the electrical stimulation of acupuncture points and help a user to improve the sleep quality. As shown in fig. 10, the transcutaneous neuromodulation strategy generation device includes a processor, a memory, and a network interface connected by a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The nonvolatile storage medium of the transcutaneous nerve modulation and control strategy generation device stores an operating system and also stores a computer program, and when the computer program is executed by a processor, the processor can realize the transcutaneous nerve modulation and control strategy generation method. The internal memory may also have stored therein a computer program that, when executed by the processor, causes the processor to perform a transcutaneous neuromodulation strategy generation method. It will be understood by those skilled in the art that the structure shown in fig. 10 is a block diagram of only a portion of the structure relevant to the present application, and does not constitute a limitation on the transcutaneous nerve modulation strategy generation device to which the present application is applied, and a particular transcutaneous nerve modulation strategy generation device may include more or less components than those shown in the drawings, or may combine some components, or have a different arrangement of components.

In one embodiment, the transcutaneous nerve modulation strategy generation method provided by the present application may be implemented in the form of a computer program, and the computer program may be run on a transcutaneous nerve modulation strategy generation device as shown in fig. 10. The memory of the percutaneous neuromodulation strategy generation device can store various program templates which form the neuromodulation strategy generation virtual device. Such as a data acquisition module 902, an index determination module 904, and a policy acquisition module 906.

A transcutaneous neuromodulation strategy generating device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to carry out the steps of: acquiring sleep data and blood oxygen saturation corresponding to a sleep process, wherein the sleep data comprises sleep efficiency and effective sleep time; determining a sleep quality index from the sleep efficiency, the effective sleep time, and the blood oxygen saturation; and obtaining a transcutaneous nerve regulation and control strategy corresponding to the sleep quality index according to the sleep quality index so as to improve the sleep quality through the transcutaneous nerve regulation and control strategy.

The percutaneous nerve regulation and control strategy generation device firstly acquires sleep data and blood oxygen saturation corresponding to a sleep process, wherein the sleep data comprises sleep efficiency and effective sleep time; then determining a sleep quality index according to the sleep efficiency, the effective sleep time and the blood oxygen saturation; and finally, obtaining a transcutaneous nerve regulation and control strategy corresponding to the sleep quality index according to the sleep quality index so as to improve the sleep quality through the transcutaneous nerve regulation and control strategy. Therefore, the sleep quality index is determined according to the three parameters of the sleep efficiency, the effective sleep time and the blood oxygen saturation, so that the accurate evaluation of the sleep quality is realized, and the transcutaneous nerve regulation and control strategy is determined according to the sleep quality index, so that a user can electrically stimulate acupuncture points through the transcutaneous nerve regulation and control strategy, thereby effectively improving the sleep quality and solving the sleep problem.

In one embodiment, the acquiring sleep data and blood oxygen saturation corresponding to a sleep process includes: acquiring effective sleep time, wake-up time and sleep latency time corresponding to a sleep process; calculating the sum of the effective sleep time, the wake-up time and the sleep latency time to obtain the total sleep time corresponding to the sleep process; and obtaining the sleep efficiency corresponding to the sleep process according to the effective sleep time and the total sleep time.

In an embodiment, the obtaining of the sleep efficiency corresponding to the sleep process according to the effective sleep time and the total sleep time includes: acquiring the number of awakenings corresponding to the awakening time; dividing the effective sleep time by the total sleep time to obtain a preliminary sleep efficiency; obtaining a frequency influence parameter according to the arousal frequency corresponding to the arousal time; and dividing the preliminary sleep efficiency by the frequency influence parameter to obtain the sleep efficiency corresponding to the sleep process.

In one embodiment, the acquiring the effective sleep time, the wake time and the sleep latency corresponding to the sleep process comprises the following steps: acquiring the awakening time corresponding to the sleep process; acquiring sleep starting time and sleep ending time corresponding to a sleep process; obtaining preliminary effective sleep time according to the sleep ending time and the sleep starting time; and subtracting the awakening time from the preliminary effective sleeping time to obtain an effective sleeping time corresponding to the sleeping process.

In one embodiment, said determining a sleep quality index from said sleep efficiency, said effective sleep time and said blood oxygen saturation comprises: obtaining an efficiency influence coefficient corresponding to the sleep efficiency; acquiring a time influence coefficient, reference sleep time and reference insomnia time corresponding to the effective sleep time; acquiring a blood oxygen influence coefficient and a reference blood oxygen saturation which correspond to the blood oxygen saturation; calculating the difference between the effective sleep time and the reference insomnia time to obtain sleep time increment; calculating the difference between the blood oxygen saturation value and the reference blood oxygen saturation to obtain the blood oxygen saturation increment; multiplying the sleep efficiency by the efficiency influence coefficient to obtain an efficiency quality index; obtaining a time quality index according to the time influence coefficient, the reference sleep time and the sleep time increment; multiplying the blood oxygen saturation increment by the blood oxygen influence coefficient to obtain a blood oxygen quality index; and calculating the sum of the efficiency quality index, the time quality index and the blood oxygen quality index to obtain the sleep quality index.

In one embodiment, the obtaining of the time influence coefficient, the reference sleep time and the reference wakefulness time corresponding to the effective sleep time includes: acquiring a plurality of effective sleep times of a user in normal sleep; determining the reference sleep time according to a plurality of effective sleep times of a user in normal sleep; acquiring a plurality of effective sleeping times of a user during insomnia; and determining the reference insomnia time according to a plurality of effective sleep times of the user when the user sleeps.

In one embodiment, the acquiring sleep data and blood oxygen saturation corresponding to a sleep process includes: acquiring sleep data and blood oxygen saturation corresponding to a plurality of historical sleep processes; and obtaining the sleep data and the blood oxygen saturation corresponding to the sleep process according to the sleep data and the blood oxygen saturation corresponding to the plurality of historical sleep processes.

In one embodiment, the obtaining sleep data and blood oxygen saturation corresponding to sleep processes according to the sleep data and blood oxygen saturation corresponding to the plurality of historical sleep processes includes: determining abnormal sleep data and abnormal blood oxygen saturation in the sleep data and the blood oxygen saturation corresponding to the plurality of historical sleep processes according to the sleep data and the blood oxygen saturation corresponding to the plurality of historical sleep processes; removing the abnormal sleep data and the abnormal oxygen saturation level from the sleep data and the oxygen saturation levels corresponding to the plurality of historical sleep processes; and obtaining sleep data and blood oxygen saturation corresponding to the sleep process according to the sleep data and the residual sleep data and blood oxygen saturation corresponding to the plurality of historical sleep processes.

In one embodiment, a computer-readable storage medium is proposed, in which a computer program is stored which, when executed by a processor, causes the processor to carry out the steps of: acquiring sleep data and blood oxygen saturation corresponding to a sleep process, wherein the sleep data comprises sleep efficiency and effective sleep time; determining a sleep quality index from the sleep efficiency, the effective sleep time, and the blood oxygen saturation; and obtaining a transcutaneous nerve regulation and control strategy corresponding to the sleep quality index according to the sleep quality index so as to improve the sleep quality through the transcutaneous nerve regulation and control strategy.

The computer readable storage medium firstly acquires sleep data and blood oxygen saturation corresponding to a sleep process, wherein the sleep data comprises sleep efficiency and effective sleep time; then determining a sleep quality index according to the sleep efficiency, the effective sleep time and the blood oxygen saturation; and finally, obtaining a transcutaneous nerve regulation and control strategy corresponding to the sleep quality index according to the sleep quality index so as to improve the sleep quality through the transcutaneous nerve regulation and control strategy. Therefore, the sleep quality index is determined according to the three parameters of the sleep efficiency, the effective sleep time and the blood oxygen saturation, so that the accurate evaluation of the sleep quality is realized, and the transcutaneous nerve regulation and control strategy is determined according to the sleep quality index, so that a user can electrically stimulate acupuncture points through the transcutaneous nerve regulation and control strategy, thereby effectively improving the sleep quality and solving the sleep problem.

In one embodiment, the acquiring sleep data and blood oxygen saturation corresponding to a sleep process includes: acquiring effective sleep time, wake-up time and sleep latency time corresponding to a sleep process; calculating the sum of the effective sleep time, the wake-up time and the sleep latency time to obtain the total sleep time corresponding to the sleep process; and obtaining the sleep efficiency corresponding to the sleep process according to the effective sleep time and the total sleep time.

In an embodiment, the obtaining of the sleep efficiency corresponding to the sleep process according to the effective sleep time and the total sleep time includes: acquiring the number of awakenings corresponding to the awakening time; dividing the effective sleep time by the total sleep time to obtain a preliminary sleep efficiency; obtaining a frequency influence parameter according to the arousal frequency corresponding to the arousal time; and dividing the preliminary sleep efficiency by the frequency influence parameter to obtain the sleep efficiency corresponding to the sleep process.

In one embodiment, the acquiring the effective sleep time, the wake time and the sleep latency corresponding to the sleep process comprises the following steps: acquiring the awakening time corresponding to the sleep process; acquiring sleep starting time and sleep ending time corresponding to a sleep process; obtaining preliminary effective sleep time according to the sleep ending time and the sleep starting time; and subtracting the awakening time from the preliminary effective sleeping time to obtain an effective sleeping time corresponding to the sleeping process.

In one embodiment, said determining a sleep quality index from said sleep efficiency, said effective sleep time and said blood oxygen saturation comprises: obtaining an efficiency influence coefficient corresponding to the sleep efficiency; acquiring a time influence coefficient, reference sleep time and reference insomnia time corresponding to the effective sleep time; acquiring a blood oxygen influence coefficient and a reference blood oxygen saturation which correspond to the blood oxygen saturation; calculating the difference between the effective sleep time and the reference insomnia time to obtain sleep time increment; calculating the difference between the blood oxygen saturation value and the reference blood oxygen saturation to obtain the blood oxygen saturation increment; multiplying the sleep efficiency by the efficiency influence coefficient to obtain an efficiency quality index; obtaining a time quality index according to the time influence coefficient, the reference sleep time and the sleep time increment; multiplying the blood oxygen saturation increment by the blood oxygen influence coefficient to obtain a blood oxygen quality index; and calculating the sum of the efficiency quality index, the time quality index and the blood oxygen quality index to obtain the sleep quality index.

In one embodiment, the obtaining of the time influence coefficient, the reference sleep time and the reference wakefulness time corresponding to the effective sleep time includes: acquiring a plurality of effective sleep times of a user in normal sleep; determining the reference sleep time according to a plurality of effective sleep times of a user in normal sleep; acquiring a plurality of effective sleeping times of a user during insomnia; and determining the reference insomnia time according to a plurality of effective sleep times of the user when the user sleeps.

In one embodiment, the acquiring sleep data and blood oxygen saturation corresponding to a sleep process includes: acquiring sleep data and blood oxygen saturation corresponding to a plurality of historical sleep processes; and obtaining the sleep data and the blood oxygen saturation corresponding to the sleep process according to the sleep data and the blood oxygen saturation corresponding to the plurality of historical sleep processes.

In one embodiment, the obtaining sleep data and blood oxygen saturation corresponding to sleep processes according to the sleep data and blood oxygen saturation corresponding to the plurality of historical sleep processes includes: determining abnormal sleep data and abnormal blood oxygen saturation in the sleep data and the blood oxygen saturation corresponding to the plurality of historical sleep processes according to the sleep data and the blood oxygen saturation corresponding to the plurality of historical sleep processes; removing the abnormal sleep data and the abnormal oxygen saturation level from the sleep data and the oxygen saturation levels corresponding to the plurality of historical sleep processes; and obtaining sleep data and blood oxygen saturation corresponding to the sleep process according to the sleep data and the residual sleep data and blood oxygen saturation corresponding to the plurality of historical sleep processes.

It should be noted that the foregoing transcutaneous neural modulation strategy generation method, transcutaneous neural modulation strategy generation virtual device, transcutaneous neural modulation strategy generation device, and computer-readable storage medium belong to a general inventive concept, and the contents in the embodiments of the transcutaneous neural modulation strategy generation method, transcutaneous neural modulation strategy generation virtual device, transcutaneous neural modulation strategy generation device, and computer-readable storage medium may be mutually applicable.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.

The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

24页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种含消毒功能的针灸用扎针装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!