Sleep assisting method and system

The thin film piezoelectric sensor collects sleep signals and uses BP neural network to perform sleep staging analysis to achieve non-sensory sleep monitoring and targeted intervention. It solves the discomfort and monitoring interference problems caused by wearing the device for a long time in the existing technology, and improves sleep monitoring. convenience and accuracy.

CN118743541AActive Publication Date: 2024-10-08BEIJING SLIP TECHNOLOGY CO LTD

Patent Information

Application Number
CN202410913570.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-10-08
Estimated Expiration
2044-07-09

AI Technical Summary

Technical Problem

Existing sleep monitoring technology has problems such as wearing the device for a long time, causing physical discomfort and interfering with sleep, and cannot achieve sensory-free sleep monitoring and targeted sleep intervention.

Method used

A sleeping pillow embedded with a thin-film piezoelectric sensor is used to collect piezoelectric signals, and the sleep stage time sequence is determined through the BP neural network. Sleep intervention measures are implemented based on the non-sensory monitoring results, including playing white noise, pink noise, light music, vibration, smell and room temperature. Adjustment etc.

Benefits of technology

It achieves sensory-free sleep monitoring and targeted sleep intervention, avoids the discomfort caused by wearing the device for a long time, improves the convenience and accuracy of sleep monitoring, and can timely evaluate the effect of sleep intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118743541A_ABST
    Figure CN118743541A_ABST
Patent Text Reader

Abstract

The invention provides a sleep assisting method and system. The method comprises the steps that 1, piezoelectric signals are collected through a sleeping pillow embedded into a film piezoelectric sensor; 2, the collected piezoelectric signals are processed, and human body physiological signals are obtained; 3, according to the obtained human body physiological signals, a sleep staging time sequence is obtained; 4, determining sleep intervention measures through a BP neural network according to the sleep staging time sequence; step 5, implementing sleep intervention measures; and 6, evaluating the effect of the sleep intervention measure. According to the technical scheme, the method is a closed loop and comprises the whole process of sleep monitoring, sleep intervention and intervention evaluation. Non-inductive monitoring is achieved in the sleep monitoring stage, and the conditions of body discomfort and sleep interference caused by long-time wearing of equipment do not exist; the sleep intervention measures are determined on the basis of non-inductive monitoring staging data, so that the sleep intervention measures are more targeted to real sleep conditions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of sleep assistance, and in particular to a sleep assistance method and system. Background Art

[0002] In today's society, sleep quality has become one of the important indicators of people's health and quality of life. People are also paying more and more attention to the state of their own bodies during sleep. With the continuous advancement of science and technology, sleep monitoring technology is constantly developing, from traditional sleep monitoring equipment to more intelligent and convenient monitoring methods, all aiming to improve the accuracy and comfort of sleep monitoring. At present, polysomnography is the most effective monitoring method for sleep disorders, but the subjects need to be observed and recorded continuously for 8 hours, and long-term monitoring causes limitations to the examination.

[0003] In order to improve the convenience of monitoring, people have done a lot of research and successfully solved a series of problems existing in traditional medical testing instruments, such as complex operation, high professional requirements, the need for patients to go to the hospital for on-site monitoring, untimely monitoring, bulky instruments, poor portability, and inability to meet telemedicine services, etc. However, there are still some problems to be solved. For example, wearing the device for a long time will cause physical discomfort, wearing the device will cause a certain degree of interference with sleep, and it is impossible to meet the requirements of no load, convenience, and accuracy at the same time.

[0004] In addition, one of the main purposes of monitoring sleep is to intervene in sleep in time to improve sleep quality when poor sleep quality is found. Real-time intervention mainly uses real-time data from non-sensing monitoring, slow waves, sounds, vibrations and other means to intervene in sleep. According to sleep characteristics, there are mainly two stages of intervention, one is intervention in the falling asleep stage, and the other is intervention in the sleeping stage.

[0005] Intervention during the sleep stage is mainly to solve the problem of difficulty falling asleep. Different methods are used for different groups of people, and these methods mainly include white noise, pink noise, light music, vibration and other means. Intervention during the sleep stage is based on different sleep stages and different groups of people, and different methods are used. These methods mainly include slow waves, vibration to stop snoring, smell, room temperature adjustment and so on.

[0006] At present, various technologies for staging sleep and intervening in sleep according to sleep staging have sprung up, but such technologies either intervene in sleep after staging based on EEG signals, and cannot achieve non-sensitive sleep monitoring, or only intervene in sleep based on the existing sleep staging data, and are separated from sleep monitoring. In view of this, a technology that can achieve non-sensitive sleep monitoring and implement sleep intervention based on the results of non-sensitive sleep monitoring is urgently needed. Summary of the invention

[0007] To solve at least one of the above technical problems, the present invention provides a sleep assistance method and system.

[0008] A first aspect of the present invention provides a sleep aid method, comprising:

[0009] Step 1: Collect piezoelectric signals through a pillow embedded with a thin film piezoelectric sensor;

[0010] Step 2: Process the collected piezoelectric signal to obtain human physiological signals;

[0011] Step 3: Obtain the sleep stage time series according to the obtained human physiological signals;

[0012] Step 4: Determine sleep intervention measures through BP neural network according to the sleep stage time series;

[0013] Step 5: Implement sleep interventions;

[0014] Step 6: Evaluate the effectiveness of sleep interventions.

[0015] Preferably, the thin film piezoelectric sensor is embedded in the upper side of the pillow, and a flexible thin film piezoelectric sensor is used.

[0016] Preferably, in any of the above schemes, step 2 comprises:

[0017] Step 21: Process the collected piezoelectric signal to obtain the respiratory rate;

[0018] Step 22: Process the collected piezoelectric signal to obtain the heart rate;

[0019] Step 23: Process the collected piezoelectric signal to obtain body movement.

[0020] Preferably, in any of the above solutions, step 21 comprises:

[0021] Step 211: Separating the breathing signal from the piezoelectric signal;

[0022] Step 212: Find the peak value of each cycle of the respiratory signal, and when it is determined that the peak value is greater than the set respiratory threshold, mark it as a respiratory peak value, and record the index of the respiratory peak value;

[0023] Step 213: According to the formula

[0024]

[0025] Calculate the respiratory rate, where Y represents the respiratory rate in times / minute, d i Represents the distance interval between adjacent respiratory peak indices, f srepresents the sampling frequency in Hz, and n represents the total number of respiratory peak indexes.

[0026] Preferably, in any of the above solutions, step 22 comprises:

[0027] Step 221: Separating the heartbeat signal from the piezoelectric signal;

[0028] Step 222: performing peak detection on the heartbeat signal, and marking the detected peak as a default J peak;

[0029] Step 223: for each default J peak, use it as a reference, index the data points within T time before and after, and use the indexed data points and the default J peak to form an initial heartbeat signal template;

[0030] Step 224: clustering two types of heartbeat signal templates from all initial heartbeat signal templates through a clustering algorithm;

[0031] Step 225: taking the average of the two types of heartbeat signal templates to obtain the optimal heartbeat signal template;

[0032] Step 226: using a rectangular window to intercept a heartbeat signal having the same length as the optimal heartbeat signal template, and calculating a correlation coefficient between the optimal heartbeat signal template and the intercepted heartbeat signal;

[0033] Step 227: when the correlation coefficient is greater than the set correlation coefficient threshold, mark the intercepted heartbeat signal as a heartbeat signal including a true J ​​peak, and record its index;

[0034] Step 228: Move the rectangular window and repeat steps 226 to 228 until the heartbeat signal ends;

[0035] Step 229: According to the formula

[0036]

[0037] Calculate the heart rate, where H represents the heart rate, i represents the total number of indexes of the heartbeat signal including the true J ​​peak, l represents the heartbeat signal data length, and f s Indicates the sampling frequency in Hz.

[0038] Preferably, in any of the above solutions, step 23 comprises:

[0039] Step 231: reducing noise on the piezoelectric signal and dividing it into multiple segments;

[0040] Step 232: for a piezoelectric signal, determine whether the amplitude of the signal exceeds the set body motion threshold, if so, mark it as a body motion signal and record it, if not, execute step 233;

[0041] Step 233: Calculate the energy of the signal and determine whether the signal energy changes suddenly. If so, mark it as a body motion signal and record it. If not, execute step 234.

[0042] Step 234: read the next piezoelectric signal, and repeat steps 232 to 234 until the piezoelectric signal ends.

[0043] Preferably, in any of the above schemes, step 3 comprises:

[0044] Step 31: collecting sound data, and identifying snoring signals according to the collected sound data;

[0045] Step 32: Input the respiratory rate, heart rate and body movement signals obtained in step 2 and the snoring signal identified in step 31 into the trained neural network to obtain a sleep stage time series.

[0046] Preferably, in any of the above schemes, the sleep stages include four types: awake, light sleep, deep sleep and rapid eye movement.

[0047] Preferably, in any of the above schemes, step 4 comprises:

[0048] Step 41: Divide the sleep stage time series according to sleep cycles;

[0049] Step 42: Processing the sub-sleep stage time series of each divided sleep cycle to obtain sub-sleep stage time series of equal length;

[0050] Step 43: Input the sub-sleep stage time series of equal length into the BP neural network to determine the sleep intervention measures.

[0051] Preferably, in any of the above schemes, in step 41, sleep cycles are divided based on REM sleep stages, that is, the sleep stage time series starts, the first REM sleep stage and other sleep stages before it are divided into the first sleep cycle, the second REM sleep stage and other sleep cycles after the first REM sleep stage are divided into the second sleep cycle, the third REM sleep stage and other sleep cycles after the second REM sleep stage are divided into the third sleep cycle, and so on.

[0052] Preferably, in any of the above schemes, in step 42, the sleep stage sub-time series of each sleep cycle are shortened in equal proportion according to the proportion of each sleep stage therein, so as to obtain sleep stage sub-time series of equal length.

[0053] Preferably, in any of the above schemes, the sleep intervention measure includes at least one of playing white noise, playing pink noise, playing light music, playing low-frequency slow waves, vibration, adjusting smell, and adjusting room temperature.

[0054] Preferably, in any of the above schemes, in step 6, a sleep quality score is calculated according to the proportion of each sleep stage in the sleep stage time series, and the implementation effect of the sleep intervention measure is evaluated according to the sleep quality score.

[0055] A second aspect of the present invention provides a sleep assistance system for implementing the sleep assistance method, the sleep assistance system comprising:

[0056] The data acquisition module includes a sleeping pillow embedded with a thin film piezoelectric sensor, which is configured to acquire piezoelectric signals, and a sound sensor, which is configured to acquire sound signals.

[0057] The data processing module is configured to process the collected piezoelectric signals and sound signals, determine the sleep intervention measures, and evaluate the implementation effect of the sleep intervention measures.

[0058] An intervention implementation module is configured to implement sleep intervention measures.

[0059] Preferably, the data processing module includes:

[0060] a human physiological signal processing submodule, which is configured to obtain a respiratory rate, a heart rate and a body movement signal according to the piezoelectric signal, and to identify a snoring signal according to the sound signal;

[0061] A sleep stage time series determination submodule, which is configured to obtain a sleep stage time series based on a respiratory rate, a heart rate, and a body movement signal, as well as a snoring signal;

[0062] a sleep intervention measure determination submodule, configured to determine a sleep intervention measure according to the sleep stage time series;

[0063] The evaluation submodule is configured to calculate a sleep quality score according to the sleep stage time series, and then evaluate the implementation effect of the sleep intervention measures according to the sleep quality score.

[0064] The sleep assistance method and system of the present invention have the following beneficial effects:

[0065] 1. It is a closed loop, including the whole process of sleep monitoring, sleep intervention and intervention evaluation;

[0066] 2. The sleep monitoring stage realizes non-sensing monitoring, and there is no physical discomfort or sleep interference caused by wearing the device for a long time. It has the advantages of no load, convenience and accuracy;

[0067] 3. Determine sleep intervention measures based on the non-sensing monitoring stage data, so that the sleep intervention measures are more targeted to the actual sleep situation;

[0068] 4. Evaluate the effectiveness of sleep intervention measures to identify problems and make improvements in a timely manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] Figure 1 FIG. 4 is a flow chart of a preferred embodiment of the sleep assistance method according to the present invention.

[0070] Figure 2 FIG. 2 is a flow chart of step 21 of the sleep assistance method according to the present invention.

[0071] Figure 3 FIG. 2 is a flow chart of step 22 of the sleep assistance method according to the present invention.

[0072] Figure 4 FIG. 2 is a flow chart of step 23 of the sleep assistance method according to the present invention.

[0073] Figure 5 According to the sleep aid method of the present invention, Figure 1 A schematic flow chart of step 3 of the illustrated embodiment.

[0074] Figure 6 According to the sleep aid method of the present invention, Figure 1 A schematic flow chart of step 4 of the illustrated embodiment.

[0075] Figure 7 FIG. 1 is a schematic structural diagram of a preferred embodiment of a sleep assistance system according to the present invention.

[0076] Figure 8 For example, the sleep aid system according to the present invention Figure 7 A schematic diagram of the pillow structure of the illustrated embodiment.

[0077] Fig. 9A This is a comparison chart of the breathing signal and heartbeat signal of subject No. 1 on a certain night.

[0078] Fig. 9B This is a comparison chart of the breathing signal and heartbeat signal of subject No. 2 on a certain night. DETAILED DESCRIPTION

[0079] In order to better understand the present invention, the present invention is described in detail below in conjunction with specific embodiments.

[0080] Example 1

[0081] like Figure 1 A sleep aid method, comprising:

[0082] Step 1: Collect piezoelectric signals through a pillow embedded with a thin film piezoelectric sensor;

[0083] Step 2: Process the collected piezoelectric signal to obtain human physiological signals;

[0084] Step 3: Obtain the sleep stage time series according to the obtained human physiological signals;

[0085] Step 4: Determine sleep intervention measures through BP neural network according to the sleep stage time series;

[0086] Step 5: Implement sleep interventions;

[0087] Step 6: Evaluate the effectiveness of sleep interventions.

[0088] Preferably, in step 1, the thin film piezoelectric sensor is embedded in the upper side of the pillow, and a flexible thin film piezoelectric sensor is used.

[0089] Step 2 includes:

[0090] Step 21: Process the collected piezoelectric signal to obtain the respiratory rate;

[0091] Step 22: Process the collected piezoelectric signal to obtain the heart rate;

[0092] Step 23: Process the collected piezoelectric signal to obtain body movement.

[0093] Specifically, the original piezoelectric signal collected by the sleeping pillow embedded with a thin film piezoelectric sensor is a mixed signal, which contains physiological signals such as cardiac impact, breathing, body movement, etc., and is accompanied by electromagnetic interference and power frequency noise. In addition to the body movement signal, the cardiac impact signal and the respiratory signal are both low-frequency signals, and the highest frequency will not exceed 10Hz, while the power frequency noise and electromagnetic interference frequency are relatively high, generally above 50Hz. Therefore, in order to obtain the respiratory rate and heart rate, the original piezoelectric signal is first processed (such as using Fourier transform, fast Fourier transform, etc.) to obtain the frequency domain signal, and the frequency range outside 0-20Hz is set to zero, and then an inverse transform is performed to obtain the piezoelectric signal after noise reduction. The piezoelectric signal after noise reduction is still a mixed signal containing physiological signals such as cardiac impact, breathing, body movement, etc.

[0094] like Figure 2 As shown, step 21 includes:

[0095] Step 211: Separating the breathing signal from the piezoelectric signal;

[0096] Step 212: Find the peak value of each cycle of the respiratory signal, and when it is determined that the peak value is greater than the set respiratory threshold, mark it as a respiratory peak value, and record the index of the respiratory peak value;

[0097] Step 213: According to the formula

[0098]

[0099] Calculate the respiratory rate, where Y represents the respiratory rate in times / minute, d i Represents the distance interval between adjacent respiratory peak indices, f s represents the sampling frequency in Hz, and n represents the total number of respiratory peak indexes.

[0100] Specifically, the range of the number of breaths of a person is generally 10-25 times / minute, and the corresponding respiratory frequency is 0.1-0.4Hz. Therefore, in step 211, a respiratory signal can be separated from the piezoelectric signal after noise reduction by a bandpass filter (such as a Butterworth bandpass filter, a Chebyshev filter, etc.). The energy contained in the breathing action of a person is relatively large, so the amplitude and period of the separated respiratory signal are relatively obvious, and the location of the respiratory peak can be more easily achieved in the time domain; at the same time, in order to eliminate the interference of small body movements (such as muscle twitching during sleep) to the respiratory signal, therefore, in step 212, for the peak value of each cycle of the respiratory signal found, all are compared with the set respiratory threshold value, when the respiratory threshold value of the setting is exceeded, the peak value of the cycle is marked as the respiratory peak value, and the index of the respiratory peak value is recorded. Then the respiratory rate is calculated according to the formula in step 213.

[0101] like Figure 3 As shown, step 22 includes:

[0102] Step 221: Separating the heartbeat signal from the piezoelectric signal;

[0103] Step 222: performing peak detection on the heartbeat signal, and marking the detected peak as a default J peak;

[0104] Step 223: for each default J peak, use it as a reference, index the data points within T time before and after, and use the indexed data points and the default J peak to form an initial heartbeat signal template;

[0105] Step 224: clustering two types of heartbeat signal templates from all initial heartbeat signal templates through a clustering algorithm;

[0106] Step 225: taking the average of the two types of heartbeat signal templates to obtain the optimal heartbeat signal template;

[0107] Step 226: using a rectangular window to intercept a heartbeat signal having the same length as the optimal heartbeat signal template, and calculating a correlation coefficient between the optimal heartbeat signal template and the intercepted heartbeat signal;

[0108] Step 227: when the correlation coefficient is greater than the set correlation coefficient threshold, mark the intercepted heartbeat signal as a heartbeat signal including a true J ​​peak, and record its index;

[0109] Step 228: Move the rectangular window and repeat steps 226 to 228 until the heartbeat signal ends;

[0110] Step 229: According to the formula

[0111]

[0112] Calculate the heart rate, where H represents the heart rate, i represents the total number of indexes of the heartbeat signal including the true J ​​peak, l represents the heartbeat signal data length, and f s Indicates the sampling frequency in Hz.

[0113] Specifically, the heartbeat signal reflects the mechanical pressure changes on the body surface during the beating of the heart. The frequency of the heartbeat signal is generally between 1-10Hz, and the frequency of the breathing signal is 0.1-0.4Hz, which is close to the frequency of the heartbeat signal, so the breathing signal will cause greater interference to the heartbeat signal. In order to separate a better quality heartbeat signal from the piezoelectric signal after noise reduction, the interference signal needs to be filtered. In this embodiment, it is preferred that, considering that the wavelet transform can perform multi-scale analysis on the low-frequency and high-frequency components of the signal, it has localized characteristics and can effectively process non-stationary signals such as transients and mutations. Therefore, in step 221, discrete wavelet transform (dB4, Level6) is used to filter the interference signal of 0-0.5Hz, and then reconstruct a more realistic heartbeat signal.

[0114] Although the reconstructed heartbeat signal is closer to the real heartbeat signal, it is not an ideal ballistocardiogram (BCG) signal. This is because the reconstructed heartbeat signal may have a H peak value greater than the J peak value of another segment, which does not occur in an ideal heartbeat signal. The ballistocardiogram represents the time difference between two heartbeats through the JJ interval. Therefore, when calculating the heart rate, the J peak is usually found from the signal, and then the time interval between adjacent J peaks is calculated to obtain the heart rate. However, since the H peak value of a certain segment in the reconstructed ballistocardiogram may be greater than the J peak value of another segment, if the peak detection algorithm is used directly for the reconstructed ballistocardiogram signal to determine the J peak, it will lead to a large calculation error, which will lead to inaccurate heart rate detection. Therefore, the J peak in the reconstructed new ballistocardiogram signal is determined through steps 222-228. In this embodiment, preferably, in step 223, the T time can be set to 0.5s; in step 224, a variety of clustering algorithms in the prior art can be used, such as the DBSCAN clustering algorithm, the OPTICS clustering algorithm, etc.; in step 226, the correlation coefficient uses the Pearson correlation coefficient, and its calculation formula is:

[0115]

[0116] Wherein, X(t) represents the heartbeat signal intercepted by the rectangular window, Y represents the optimal heartbeat signal template, r(t) represents the correlation coefficient, cov represents the covariance, and σ represents the standard deviation.

[0117] like Figure 4 As shown, step 23 includes:

[0118] Step 231: reducing noise on the piezoelectric signal and dividing it into multiple segments;

[0119] Step 232: for a piezoelectric signal, determine whether the amplitude of the signal exceeds the set body motion threshold, if so, mark it as a body motion signal and record it, if not, execute step 233;

[0120] Step 233: Calculate the energy of the signal and determine whether the signal energy changes suddenly. If so, mark it as a body motion signal and record it. If not, execute step 234.

[0121] Step 234: read the next piezoelectric signal, and repeat steps 232 to 234 until the piezoelectric signal ends.

[0122] Specifically, in different states of human sleep, the frequency and amplitude of body movement are also different. As the degree of sleep deepens, the frequency of human body movement decreases and the amplitude of body movement decreases. Usually, when the human body moves, the amplitude of the piezoelectric signal will suddenly increase. When the body movement ends, the amplitude of the piezoelectric signal will return to normal. Therefore, a certain body movement threshold can be set. When the amplitude of the piezoelectric signal is detected to be greater than the set body movement threshold, it is considered that body movement has occurred. However, whether the body movement threshold is set appropriately will affect the recognition of body movement, and the body movement amplitude will change in different sleep stages of humans. Therefore, it is difficult to identify all body movements during sleep through a universal body movement threshold. In view of this, in step 233, for signals whose signal amplitude does not exceed the set body movement threshold, their signal energy will be calculated, and the signal whose signal energy suddenly changes will be marked as a body movement signal. The large-amplitude body movement is judged by the signal amplitude, and the small-amplitude body movement is judged by the signal energy. The dual judgment of the signal amplitude and the signal energy can greatly improve the accuracy of body movement signal recognition.

[0123] It should be noted that when collecting piezoelectric signals for sleeping pillows embedded with thin-film piezoelectric sensors, the signals need to be divided when obtaining respiratory rate, heart rate and body movement signals, such as dividing them into equal-length signal segments of 30s, 40s, 60s, etc. The signal division can be performed on the initial piezoelectric signal, or on the piezoelectric signal after noise reduction, or on the separated respiratory signal and heartbeat signal. However, in order to facilitate the subsequent determination of the sleep stage time series, the length of each signal needs to be consistent when dividing the signal, and the starting time point needs to be consistent.

[0124] like Figure 5 As shown, step 3 includes:

[0125] Step 31: collecting sound data, and identifying snoring signals according to the collected sound data;

[0126] Step 32: Input the respiratory rate, heart rate and body movement signals obtained in step 2 and the snoring signal identified in step 31 into the trained neural network to obtain a sleep stage time series.

[0127] It should be noted that the sleep stages include four types: wakefulness, light sleep, deep sleep and rapid eye movement.

[0128] Specifically, in step 31, the microphone is used to collect sound data and identify the snoring signal. When identifying the snoring signal, the sound signal also needs to be divided, and the length of the divided signal is consistent with the length of the piezoelectric signal, and the starting time point should be consistent.

[0129] Since the signal is divided, and the information of respiratory rate, heart rate, body movement and snoring is obtained for each segment of the divided signal, the respiratory rate, heart rate, body movement signal obtained in step 2 and the snoring signal obtained in step 31 are all time series arranged in chronological order, with HX = [hx1, hx2, ..., hx N ] represents the time series of respiratory rate, with XT = [xt1, xt2, …, xt N ] represents the time series of heart rate, TD = [td1, td2, …, td N ] represents the time series of body movement, HS = [hs1,hs2,…,hs N ] represents the time series of snoring. It should be noted that the values ​​of each element in the time series of respiratory rate and heart rate are numerical data; the values ​​of each element in the time series of body movement and snoring are level data representing the level of body movement / snoring, and the value of each data represents a different level. In step 32, hx1, xt1, td1 and hs1 are input into the trained neural network to obtain the corresponding sleep stage fq1, hx2, xt2, td2 and hs2 are input into the trained neural network to obtain the corresponding sleep stage fq2, and so on. N , xt N 、td N and hs N Input the trained neural network to get the corresponding sleep stage fq N , then fq1, fq2, ..., fq N It forms the sleep stage time series FQ, that is, FQ = [fq1, fq2, ..., fq N]. It should be further explained that the value of each element in the sleep stage time series is the classification data representing the sleep stage, such as 1 for wakefulness, 2 for light sleep, 3 for deep sleep, and 4 for rapid eye movement; the trained neural network in step 32 can adopt the neural network in the prior art, and there is no specific limitation on it in this application.

[0130] like Figure 6 As shown, step 4 includes:

[0131] Step 41: Divide the sleep stage time series according to sleep cycles;

[0132] Step 42: Processing the sub-sleep stage time series of each divided sleep cycle to obtain sub-sleep stage time series of equal length;

[0133] Step 43: Input the sub-sleep stage time series of equal length into the BP neural network to determine the sleep intervention measures.

[0134] Specifically, during sleep, under normal circumstances, the four sleep stages of wakefulness, light sleep, deep sleep, and rapid eye movement that appear in sequence constitute a sleep cycle. Multiple sleep cycles may occur during a night of sleep. The length of each sleep cycle will be different. In each sleep cycle, the time length of each sleep stage will also be different. At the same time, the awake sleep stage may be missing, but rapid eye movement is generally regarded as the end of a sleep cycle. Therefore, in step 41, the sleep cycle is divided based on the rapid eye movement sleep stage, that is, the sleep stage time series begins, the first rapid eye movement sleep stage and other sleep stages before it are divided into the first sleep cycle, the second rapid eye movement sleep stage and other sleep cycles after the first rapid eye movement sleep stage are divided into the second sleep cycle, the third rapid eye movement sleep stage and other sleep cycles after the second rapid eye movement sleep stage are divided into the third sleep cycle, and so on. For example, for a sleep stage time series FQ = [fq1, fq2,…, fq N], taking rapid eye movement as the benchmark, it is divided into three sleep cycles, and the sub-sleep stage time series corresponding to each sleep cycle are the first sub-sleep stage time series FQ1, the second sub-sleep stage time series FQ2, and the third sub-sleep stage time series FQ3. For example, the sleep stage time series FQ contains L sleep stage data, wherein the first sub-sleep stage time series FQ1 contains L1 sleep stage data, the second sub-sleep stage time series FQ2 contains L2 sleep stage data, and the third sub-sleep stage time series FQ3 contains L3 sleep stage data. It should be noted that before dividing the sleep stage time series, the sleep stage time series can be smoothed as needed. For example, if one rapid eye movement sleep stage data suddenly appears in the light sleep segment, the rapid eye movement sleep stage data can be smoothed into light sleep stage data.

[0135] Since the time span of a night's sleep is relatively long, the sleep stage time series contains a large number of data. After the sleep cycle is divided, the sleep stage time series corresponding to each sleep cycle also contains a large number of data. Since the time lengths of each sleep cycle are different, the lengths of the sleep stage time series corresponding to each sleep cycle are also different. Therefore, in step 42, the sub-sleep stage time series of each sleep cycle are shortened in equal proportion according to the proportion of each sleep stage, so as to obtain sub-sleep stage time series of equal length. Specifically, the length of each sub-sleep stage time series after shortening is set to l+1, and the last digit thereof represents the length ratio of the current sub-sleep stage time series in the entire sleep stage time series. Take the first sleep stage time series FQ1 as an example, where the first 11 data are awake sleep stages, the next 12 data are light sleep stages, the next 13 data are deep sleep stages, and the last 14 data are rapid eye movement sleep stages; according to the proportion of each sleep stage in FQ1, they are shortened in equal proportion. In the shortened first sleep stage time series, the first 11 data are awake sleep stages, the next 12 data are light sleep stages, the next 13 data are deep sleep stages, and the last 14 data are rapid eye movement sleep stages. Data is the wake-sleep stage, after The data is the light sleep stage, and then The data is the deep sleep stage, and the last The data is the rapid eye movement sleep stage; the other sub-sleep stage time series are analogous. It should be noted that when shortening each sub-sleep stage time series, the number of data for each sleep stage should be rounded; if the data in the sleep stage time series is more regular, the length of each shortened sub-sleep stage time series can be smaller. Correspondingly, if the data in the sleep stage time series is more chaotic, the length of each shortened sub-sleep stage time series should be larger to retain more information. By shortening each sub-sleep stage time series, the data dimension of the BP network input can be reduced, the calculation speed can be increased, and computing resources can be saved; the last bit of data in each sub-sleep stage time series can reflect the time length relationship of each sleep cycle, retaining more data features.

[0136] The BP neural network has strong nonlinear mapping ability, self-learning and self-adaptation ability, generalization ability and fault tolerance ability. Therefore, the sub-sleep stage time series of equal length obtained in step 42 are input into the BP neural network in step 43 to determine the sleep intervention measures. The sleep intervention measures include at least one of playing white noise, playing pink noise, playing light music, playing low-frequency slow waves, vibration, adjusting smell, and adjusting room temperature.

[0137] After the user's permission, the sleep intervention measures determined in step 4 are implemented, and the implementation effect of the sleep intervention measures is evaluated. Specifically, in step 6, the sleep quality score is calculated according to the proportion of each sleep stage in the sleep stage time series, and the implementation effect of the sleep intervention measures is evaluated according to the sleep quality score. If the sleep quality score is improved, it means that the sleep intervention measures are effective. If the sleep quality score is not improved, it means that the sleep intervention measures are ineffective, and it is necessary to adjust the parameters of the BP network, and then adjust the sleep intervention measures given by it.

[0138] Example 2

[0139] like Figure 7 As shown, a sleep assistance system is used to implement the sleep assistance method, and the sleep assistance system includes:

[0140] The data acquisition module 1 comprises a sleeping pillow embedded with a thin film piezoelectric sensor, which is configured to acquire piezoelectric signals, and a sound sensor, which is configured to acquire sound signals.

[0141] The data processing module 2 is configured to process the collected piezoelectric signals and sound signals, determine the sleep intervention measures, and evaluate the implementation effects of the sleep intervention measures.

[0142] The intervention implementation module 3 is configured to implement sleep intervention measures.

[0143] Preferably, the data processing module 2 includes:

[0144] A human physiological signal processing submodule 21, which is configured to obtain a respiratory rate, a heart rate and a body movement signal according to the piezoelectric signal, and to identify a snoring signal according to the sound signal;

[0145] a sleep stage time series determination submodule 22, which is configured to obtain a sleep stage time series based on the respiratory rate, heart rate and body movement signals, as well as the snoring signal;

[0146] A sleep intervention measure determination submodule 23, configured to determine a sleep intervention measure according to the sleep stage time series;

[0147] The evaluation submodule 24 is configured to calculate a sleep quality score according to the sleep stage time series, and then evaluate the implementation effect of the sleep intervention measure according to the sleep quality score.

[0148] like Figure 8 The structure of a pillow embedded with a thin film piezoelectric sensor is shown, and its main body is made of memory foam 101, and the thin film piezoelectric sensor 102 is embedded on the upper side of the pillow. A PCB circuit board 103 is also provided inside the pillow body. The PCB circuit board 103 may only be provided with a wireless transmission module for sending the physiological signal collected by the thin film piezoelectric sensor to a data processing module arranged outside the pillow; or the data processing module is also arranged on the PCB circuit board 103; or a part of the data processing module is arranged on the PCB circuit board 103 inside the pillow, and a wireless transmission module is arranged on the PCB circuit board 103 for transmitting the output to other modules of the data processing module arranged outside the pillow. No specific restrictions are made in this application. It should be noted that the sound sensor is preferably provided on the PCB circuit board 103 to collect sound data used during sleep, and then identify snoring signals based on the sound data.

[0149] In the present application, it is preferred that the thin film piezoelectric sensor adopts a flexible thin film piezoelectric sensor, the main component of which is a polypropylene foam material, which is formed by mixing and pressing the main raw materials such as polypropylene resin, polyethylene resin and natural stone powder. The principle of the thin film piezoelectric sensor is that the PP film has obvious piezoelectric activity and hysteresis loop of ferroelectric polymer after reasonable polarization. This material has the characteristics of both ferroelectric material and electret. The piezoelectric properties of this type of material are derived from the special cavity structure in the material and the space charges (macroscopic electric dipoles) of opposite polarity deposited on the two opposite walls of the cavity, that is, these pore structures in the PP film can be polarized under a high voltage electric field to produce a piezoelectric effect. The thin film piezoelectric sensor is extremely thin, only 254 microns, and it will not interfere with sleep when embedded in a pillow. It can realize contactless and non-sensing collection of user piezoelectric data during sleep, and then monitor breathing, heart rate, and body movement.

[0150] Example 3

[0151] In order to verify the accuracy of extracting heart rate, respiratory rate and body movement signals based on piezoelectric signals collected by thin film piezoelectric sensors in the sleep assistance method, experiments were conducted.

[0152] In the experiment, a sleeping pillow embedded with the thin film piezoelectric sensor is used to collect piezoelectric data of the subject while sleeping, and based on the collected piezoelectric data, the method in step 2 is used to obtain the subject's respiratory rate, heart rate and body movement signals; at the same time, a PSG multi-lead sleep monitor is used to collect the subject's respiratory rate, heart rate and body movement while sleeping, and the results are compared.

[0153] A total of 8 subjects participated in the experiment. Each subject understood the purpose, process and precautions of the experiment before the experiment. Each subject collected sleep data for no less than 5 nights, and the data collection time was no less than 6 hours per night.

[0154] Fig. 9A and Fig. 9B The comparison of breathing signals and heartbeat signals of subjects 1 and 2 on a certain night is shown respectively. Fig. 9A and Fig. 9B It can be seen that the respiratory signal and heartbeat signal obtained by the piezoelectric data collected by the pillow embedded with the thin film piezoelectric sensor are generally consistent with the respiratory signal and heartbeat signal collected by the PSG multi-lead sleep monitor. The data of other subjects and other times are also consistent, which will not be shown one by one in this application.

[0155] Taking the respiratory rate, heart rate and body movement times collected by the PSG multi-lead sleep monitor as the benchmark, the average errors of the respiratory rate, heart rate and body movement times collected by each subject through the sleeping pillow are shown in Table 1.

[0156] Table 1 Average error of pillow monitoring heart rate, respiratory rate and body movement times

[0157]

[0158]

[0159] It can be found from Table 1 that the maximum error of the breathing rate collected by the sleeping pillow embedded with a thin film piezoelectric sensor is 13.63%, the maximum error of the heart rate is 9.12%, and the maximum error of the body movement number is 8.26%. Therefore, in this application, the accuracy of obtaining the user's physiological parameters by collecting piezoelectric data through the sleeping pillow embedded with a thin film piezoelectric sensor can reach more than 86%, which has a high accuracy.

[0160] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the above embodiments describe the present invention in detail, those skilled in the art should understand that they may modify the technical solutions recorded in the above embodiments, or replace some or all of the technical features therein with equivalents, and these replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the present invention.

Claims

1. A sleep aid method, characterized in that: include: Step 1: Collect piezoelectric signals through a pillow embedded with a thin film piezoelectric sensor; Step 2: Process the collected piezoelectric signal to obtain human physiological signals; Step 3: Obtain the sleep stage time series according to the obtained human physiological signals; Step 4: Determine sleep intervention measures through BP neural network according to the sleep stage time series; Step 5: Implement sleep interventions; Step 6: Evaluate the effectiveness of sleep interventions.

2. The sleep aid method according to claim 1, characterized in that: The thin film piezoelectric sensor is embedded in the upper side of the pillow and adopts a flexible thin film piezoelectric sensor.

3. The sleep aid method according to claim 1, characterized in that: Step 2 includes: Step 21: Process the collected piezoelectric signal to obtain the respiratory rate; Step 22: Process the collected piezoelectric signal to obtain the heart rate; Step 23: Process the collected piezoelectric signal to obtain body movement.

4. The sleep aid method according to claim 3, characterized in that: Step 21 includes: Step 211: Separating the breathing signal from the piezoelectric signal; Step 212: Find the peak value of each cycle of the respiratory signal, and when it is determined that the peak value is greater than the set respiratory threshold, mark it as a respiratory peak value, and record the index of the respiratory peak value; Step 213: According to the formula Calculate the respiratory rate, where Y represents the respiratory rate in times / minute, d i Represents the distance interval between adjacent respiratory peak indices, f s represents the sampling frequency in Hz, and n represents the total number of respiratory peak indexes.

5. The sleep aid method according to claim 4, characterized in that: Step 22 includes: Step 221: Separating the heartbeat signal from the piezoelectric signal; Step 222: performing peak detection on the heartbeat signal, and marking the detected peak as a default J peak; Step 223: for each default J peak, use it as a reference, index the data points within T time before and after, and use the indexed data points and the default J peak to form an initial heartbeat signal template; Step 224: clustering two types of heartbeat signal templates from all initial heartbeat signal templates through a clustering algorithm; Step 225: taking the average of the two types of heartbeat signal templates to obtain the optimal heartbeat signal template; Step 226: using a rectangular window to intercept a heartbeat signal having the same length as the optimal heartbeat signal template, and calculating a correlation coefficient between the optimal heartbeat signal template and the intercepted heartbeat signal; Step 227: when the correlation coefficient is greater than the set correlation coefficient threshold, mark the intercepted heartbeat signal as a heartbeat signal including a true J ​​peak, and record its index; Step 228: Move the rectangular window and repeat steps 226 to 228 until the heartbeat signal ends; Step 229: According to the formula Calculate the heart rate, where H represents the heart rate, i represents the total number of indexes of the heartbeat signal including the true J ​​peak, l represents the heartbeat signal data length, and f s Indicates the sampling frequency in Hz.

6. The sleep aid method according to claim 3, characterized in that: Step 23 includes: Step 231: reducing noise on the piezoelectric signal and dividing it into multiple segments; Step 232: for a segment of piezoelectric signal, determine whether the amplitude of the signal exceeds the set body motion threshold, if so, mark it as a body motion signal and record it, if not, execute step 233; Step 233: Calculate the energy of the signal and determine whether the signal energy changes suddenly. If so, mark it as a body motion signal and record it. If not, execute step 234. Step 234: read the next piezoelectric signal, and repeat steps 232 to 234 until the piezoelectric signal ends.

7. The sleep aid method according to claim 3, characterized in that: Step 3 includes: Step 31: collecting sound data, and identifying snoring signals according to the collected sound data; Step 32: Input the respiratory rate, heart rate and body movement signals obtained in step 2 and the snoring signal identified in step 31 into the trained neural network to obtain a sleep stage time series.

8. The sleep aid method according to claim 7, characterized in that: Step 4 includes: Step 41: Divide the sleep stage time series according to sleep cycles; Step 42: Processing the sub-sleep stage time series of each divided sleep cycle to obtain sub-sleep stage time series of equal length; Step 43: Input the sub-sleep stage time series of equal length into the BP neural network to determine the sleep intervention measures; In step 42, the sleep stage sub-sequences of each sleep cycle are shortened in equal proportion according to the proportion of each sleep stage therein, so as to obtain sleep stage sub-sequences of equal length.

9. A sleep aid system, characterized in that: For implementing the sleep assistance method according to any one of claims 1 to 8, the sleep assistance system comprises: The data acquisition module includes a sleeping pillow embedded with a thin film piezoelectric sensor, which is configured to acquire piezoelectric signals, and a sound sensor, which is configured to acquire sound signals. The data processing module is configured to process the collected piezoelectric signals and sound signals, determine the sleep intervention measures, and evaluate the implementation effect of the sleep intervention measures. An intervention implementation module is configured to implement sleep intervention measures.

10. The sleep aid system according to claim 9, characterized in that: The data processing module comprises: a human physiological signal processing submodule, which is configured to obtain a respiratory rate, a heart rate and a body movement signal according to the piezoelectric signal, and to identify a snoring signal according to the sound signal; A sleep stage time series determination submodule, which is configured to obtain a sleep stage time series based on a respiratory rate, a heart rate, and a body movement signal, as well as a snoring signal; a sleep intervention measure determination submodule, configured to determine a sleep intervention measure according to the sleep stage time series; The evaluation submodule is configured to calculate a sleep quality score according to the sleep stage time series, and then evaluate the implementation effect of the sleep intervention measures according to the sleep quality score.

Citation Information

Patent Citations

  • Multi-sensor feature optimization algorithm-based sleep staging method

    CN108388912A

  • Human body sleep stage estimating method based on deep learning network

    CN109316166A

  • Automatic sleep staging system based on deep neural network and brain-computer interface

    CN116058800A

  • Sleep improvement method based on physiological data

    CN116603151A

  • Intelligent sleep aiding method and device and wearable equipment

    CN116726344A

Cited By

  • Multi-sensor fusion physiological signal monitoring method and device

    CN119014824A

  • Sleep-undisturbed monitoring method and related device

    CN121154102A

  • Method for monitoring undisturbed sleep and related devices

    CN121154102B

  • Sleep state real-time monitoring method and system

    CN121337270A