The invention relates to a data analysis technique, and in particular relates to an evaluation method of sleep quality and a computing apparatus related to sleep quality.
Sleep apnea refers to the symptoms of involuntary weakening or even cessation of breathing during sleep. The cessation of breathing is often unnoticed until the body is severely deprived of oxygen and wakes up due to discomfort. However, lack of oxygen may harm the body, and the patient may even die suddenly from cardiovascular disease. People with sleep apnea are often unaware of symptoms. Symptoms may only be discovered when the patient goes to the hospital for detection and diagnosis with special equipment.
Accordingly, an embodiment of the invention provides an evaluation method of sleep quality and a computing apparatus related to sleep quality that may readily detect sleep quality.
An evaluation method of sleep quality of an embodiment of the invention includes (but not limited to) the following steps. Sensing data is obtained. The sensing data is generated based on a radar echo. The sensing data is transformed into feature data. The feature data includes a statistic of a plurality of feature points on a waveform of the radar echo. Sleep quality information is determined according to the feature data. The sleep quality information is related to whether the sleep quality is good or bad.
A computing apparatus related to sleep quality of an embodiment of the invention includes (but not limited to) a memory and a processor. The memory is configured to store a program code. The processor is coupled to the memory. The processor loads the program code to execute: obtaining sensing data, transforming the sensing data into feature data, and determining sleep quality information according to the feature data. The sensing data is generated based on a radar echo. The feature data includes a statistic of a plurality of feature points on a waveform of the radar echo. The sleep quality information is related to whether the sleep quality is good or bad.
Based on the above, according to the evaluation method of sleep quality and the computing apparatus related sleep quality of the embodiments of the invention, the sleep quality information is predicted by using radar-based sensing data. The feature data obtained from the sensing data corresponds to polysomnography (PSG). PSG may be reflected in respiratory events, and the respiratory events are related to the degree of sleep quality. Accordingly, sleep quality may be evaluated through non-touch sensing.
In order to make the aforementioned features and advantages of the disclosure more comprehensible, embodiments accompanied with figures are described in detail below.
The memory 11 may be any form of a fixed or movable random-access memory (RAM), read-only memory (ROM), flash memory, traditional hard disk drive (HDD), solid-state drive (SSD), or similar devices. In an embodiment, the memory 11 is configured to store a program code, a software module, a configuration, data, or a file (for example, data, an event, information, a model, or a feature), and is described in detail in subsequent embodiments. The processor 12 is coupled to the memory 11. The processor 12 may be a
central processing unit (CPU), a graphics processing unit (GPU), or other programmable general-purpose or special-purpose microprocessors, digital signal processors (DSPs), programmable controllers, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), neural network accelerators, or other similar devices or a combination of the above devices. In an embodiment, the processor 12 is configured to perform all or part of the operations of the computing apparatus 10, and may load and execute each of the program codes, software modules, files, and data stored in the memory 11. In some embodiments, some operations in a method of an embodiment of the invention may be implemented by different or the same processor 12. In an embodiment, the processor 12 is connected to the radar 50. For example,
the radar 50 is connected to the processor 12 via USB, Thunderbolt, Wi-Fi, Bluetooth, or other wired or wireless communication techniques. For another example, the computing apparatus 10 has a built-in radar 50, and the processor 12 is connected to the radar 50 through an internal circuit. The radar 50 may be a frequency-modulated continuous wave (FMCW) radar or an impulse radio (IR)-ultra-wideband (UWB) radar. In an embodiment, the radar 50 is configured to generate sensing data. The sensing data is generated based on a radar echo. The radar echo refers to an echo signal reflected by the transmitted signal of the radar 50 by an object (e.g., human body or clothes). The sensing data is the sensing result of the radar 50. Examples include in-phase and/or quadrature signals.
In an embodiment, the frequency of the transmitted signal of the radar 50 may be 24 GHz or other frequencies that may reflect the human body (e.g., chest or abdomen).
In an application scenario, the radar 50 may be placed at the head of the bed, beside the bed, or at the end of the bed, and the radar 50 transmits a signal towards the chest or abdomen of the human body, and accordingly detects the rise and fall of the chest or abdomen. However, the location and orientation of the radar 50 may still be changed according to actual needs, and are not limited by the embodiments of the invention.
Hereinafter, the method described in an embodiment of the invention is described with various apparatuses, devices, and modules in the computing apparatus 10 and the radar 50. Each of the processes of the present method may be adjusted according to embodiment conditions and is not limited thereto.
In an embodiment, the processor 12 may accumulate the sensing data for a period of time. This period of time is, for example, 1, 5, or 8 hours.
The processor 12 transforms the sensing data into feature data (step S220). In an embodiment, the feature data includes the variance between two channels or within a single channel in the sensing data. These two channels may be in-phase and quadrature signals. The mathematical expression of the variance is:
Cov(X,Y)=E((X−μX)(Y−μY)) (1)
Cov is the variance, X and Y are either in-phase or quadrature signals, μX is the average value of X, and μY is the average value of Y. Taking the above in-phase signal I1 and quadrature signal Q1 as examples, the variance thereof is −0.21645484961728612.
In an embodiment, the feature data includes entropy of the sensing data. In information theory, entropy refers to the average amount of information contained in each received message, which is a measure of uncertainty, and the entropy is increased as the source of information becomes more random. The entropy-based feature is, for example, relative entropy, conditional entropy, mutual information, information entropy, Shannon entropy, or block entropy.
Taking Shannon entropy as an example, the entropy H of a random variable X (with a range of x={ x1, . . . , xn}) is defined as:
−ΣxPX(x)logbPX(x) (2),
PX is the probability mass function of the random variable X, and b is the base used for the logarithm. Taking the above in-phase signal I1 and quadrature signal Q1 as examples, the conditional entropy thereof is 1.4112874013149717.
In an embodiment, the feature data includes a statistic of a plurality of feature points on a waveform of the radar echo. The feature points may be peak values and/or valley values in the waveform. For example,
In addition, the statistic may be the interval between two feature points, the variation of the interval, and/or the total number of those feature points. Taking
In an embodiment, the processor 12 may separately determine the statistics of the waveforms of the in-phase and quadrature signals, and may also take the average value of the statistics of two signals as the feature data.
In an embodiment, the feature data includes the trend of the waveform, and the trend is the intensity variation of the waveform without pattern characteristic. A pattern characteristic may be a periodic variation of a waveform. For example, the sine wave signal is increased from zero to the maximum value, decreased from the maximum value to the minimum value, and then increased from the minimum value to zero repeatedly. After the pattern characteristic is removed, the trend of the waveform is left, i.e., intensity variation. The processor 12 abstracts the trend (that is, eliminates the interference of the absolute signal intensity), which may be used as feature data describing sleep quality (for example, a respiratory event or a sleep event).
For example,
In an embodiment, the processor 12 may separately determine the trend of the waveforms of the in-phase and quadrature signals, and may also take the average value of the trend of the two signals as the feature data.
In an embodiment, the processor 12 may select one or more of the above statistics, variance, entropy, and trend of the sensing data as the feature data.
Referring to
The processor 12 may predict the respiratory event according to the feature data. The feature data of an embodiment of the invention includes features obtained by comparing multiple polysomnography (PSG) tests (for example, respiratory airflow, chest movement, abdominal muscle behavior, or EEG) that may better distinguish respiratory events. However, different from recognizing the respiratory event based on
PSG, an embodiment of the invention recognizes the respiratory event based on the feature data of the radar.
In an embodiment, the processor 12 may predict the respiratory event through a machine learning model. A machine learning model is trained to understand the correlation between the feature data and the respiratory event. The machine learning model is, for example, based on deep neural decision tree (DNDT), deep learning neural network, decision tree, random forest, or other machine learning algorithms. The deep learning neural network is, for example, a temporal convolutional network (TCN) and a convolutional neural network (CNN). DNDT is a hybrid deep learning and decision tree strategy. The machine learning algorithm may analyze training samples to obtain patterns therefrom, so as to predict unknown data via the patterns. For example, the machine learning model establishes the correlation between the nodes in a hidden layer between the feature data (i.e., the input of the model) and the respiratory event (i.e., the output of the model) according to labeled samples (e.g., feature data of known hypopnea events, or feature data of known normal breathing events). The machine learning model is a model constructed after learning, and may accordingly infer data to be evaluated (for example, the feature data).
For example, CNN may learn image-related features, and TCN may learn temporal features. DNDT combines the concepts of decision trees and deep learning from the field of machine learning. Traditional decision trees may not optimize each tree node, thus causing limitations in judgment. However, DNDT allows each node of the decision tree to be weighted by a learning machine undergoing deep learning.
For example,
Taking the above in-phase signal I1 as an example, the processor 12 may directly transform the in-phase signal I1 into a two-dimensional matrix (for example, the matrix size is 40×50 or 30×50) (as the input of the model) to learn the machine learning model. Alternatively, the form of the feature data may be varied according to different time scales (for example, 100, 1500, 2000, or 2500 sampling points, but not limited thereto). In some application scenarios, the longer the time or the more sampling points, the higher the accuracy, but not limited thereto. Alternatively, the processor 12 may use table-type feature data (as the input of the model) to learn the machine learning model. For example, the feature data of these time series is transformed into values and then organized into the following table:
The processor 12 may count the number and/or duration of specific respiratory events within a period of time (e.g., 2, 5, or 8 hours) as sleep quality information. The higher the statistic of the normal sleep event, the better the sleep quality (for example, the degree of quality is higher, and high represents excellent); the higher the statistic such as hypopnea and/or apnea, the worse the sleep quality (the degree of quality is lower, and low means bad).
In an embodiment, the sleep quality information includes a sleep statistical indicator. The sleep statistical indicator is a respiratory disturbance index (RDI) or an apnea-hypopnea index (AHI). RDI is the number of interrupted breathing during sleep, and some people use AHI directly. Under the same measurement, the RDI index is slightly larger than the AHI index. According to the standards of the American Sleep Association, an AHI of less than 5 is normal, an AHI of 5 to 14 is mild, an AHI of 15 to 29 is moderate, and an AHI of 30 or more is severe respiratory disturbance. That is to say, the lower the sleep statistical indicator, the higher the degree of sleep quality, and high represents good; the higher the sleep statistical indicator, the lower the degree of sleep quality, and low represents poor.
In an embodiment, the processor 12 may determine the sleep statistical indicator according to a predicted respiratory event. The processor 12 may count the prediction results (e.g., the output of the machine learning model) of previous respiratory events within a period of time (e.g., 3 hours, 5 hours, or 8 hours), and generate a predicted sleep statistical indicator, i.e., a value obtained by dividing the number of specific respiratory events by the statistical time.
For example, Table (2) is the corresponding relationship between time points (for example, every minute, every 30 minutes, or every hour) and predicted results:
wherein “0” means no event and “1” means event. The AHI may be obtained by dividing the number of hypopnea events by the statistical time. That is, how often 1 occurs per unit time. In addition, the prediction results of each “1” may be compared and verified with PSG to improve accuracy.
In order to verify whether an RDI type value (that is, the sleep statistical indicator) produced by an embodiment of the invention may be close to the real RDI value, the data of 103 people in a clinical research case were actually collected for sleep testing in a sleep center, and these data were used for verification.
In addition, clinically, RDI greater than or equal to 15/hours (h) and greater than or equal to 30/h are defined as having moderate and severe symptoms of apnea, and the comparison results may be obtained in Table (3):
True positive is the proportion determined to be positive by an embodiment of the invention and is actually positive, and true negative is the proportion determined to be negative by an embodiment of the invention and is actually negative. It may be known that the proportion of correct positives (e.g., RDI greater than 15 per hour or 30 per hour) is greater than 75% and the proportion of correct negatives (e.g., RDI of less than 15 per hour or 30 per hour) is greater than 80%.
In an embodiment, the processor 12 may predict the sleep statistical indicator according to the feature data. For example, the processor 12 additionally trains another machine learning model to accordingly understand the correlation between the feature data and the predicted sleep statistical indicator. For the introduction of the machine learning model, reference may be made to the above description, and details are not repeated herein. For example, the machine learning model establishes the correlation between the nodes in a hidden layer between the feature data (i.e., the input of the model) and the sleep statistical indicator (i.e., the output of the model) according to labeled samples (e.g., known feature data for RDI, or known feature data of AHI). Since the feature data of an embodiment of the invention may be configured to distinguish a respiratory event and the sleep statistical indicator is obtained based on the respiratory event (for example, the number of specific one or more respiratory events divided by the statistical time), it may thus be demonstrated that the feature data may be configured to predict the sleep statistical indicator.
Based on the above, in the evaluation method of sleep quality and the computing apparatus related to sleep quality of the embodiments of the invention, the sleep quality is determined according to the feature data transformed from the radar sensing data (for example, related to variance, entropy, waveform, and/or trend). In this way, the sleep quality may be evaluated in a non-contact sensing manner.
Although the invention has been described with reference to the above embodiments, it will be apparent to one of ordinary skill in the art that modifications to the described embodiments may be made without departing from the spirit of the disclosure. Accordingly, the scope of the disclosure is defined by the attached claims not by the above detailed descriptions.
Number | Date | Country | Kind |
---|---|---|---|
111137595 | Oct 2022 | TW | national |
112101793 | Jan 2023 | TW | national |
This application claims the priority benefits of U.S. provisional application Ser. No. 63/352,644, filed on Jun. 16, 2022, Taiwan application serial no. 111137595, filed on Oct. 3, 2022, and Taiwan application serial no. 112101793, filed on Jan. 16, 2023. The entirety of each of the above-mentioned patent applications is hereby incorporated by reference herein and made a part of this specification.
Number | Date | Country | |
---|---|---|---|
63352644 | Jun 2022 | US |