The present invention relates to a method for OSA (Obstructive Sleep Apnea) severity classification, and more particularly of using a recording-based Peripheral Oxygen Saturation Signal (SpO2 signal) as an input to detect directly four severity classifications of OSA for output.
Referring to
Using an example to describe the OSA severity evaluation in
Suppose that a person's sleeping time is 8 hours, OSA severity evaluation can conduct throughout the 8 hours, However, 8 hours are not a fixed time, no limitation to the sleeping time, 8 hours is just an example.
Suppose: A recording-based Peripheral Oxygen Saturation Signal (SpO2 signal) 1 has a time length of 8 hours;
A segmented SpO2 signal 2 has a time length T of 60 seconds;
Total cut K=480 segmented SpO2 signals 2 (K*T=28800 seconds=8 hours);
Suppose OSA severity evaluation 5 shows that L=100 segmented SpO2 signal 2 are apnea;
Therefore apnea-hypopnea index (AHI) is calculated, AHI=L/ (K*T/3600), which means apnea times per hour:
Normal: AHI<5
Mild: 5≤AHI<15
Moderate: 15≤AHI <30
Severe: AHI ≥30
In the above example, AHI=12.5, which means the result is a mild case.
The above method has three disadvantages: the first is that the recognition is very complicated; the second is that the accuracy of the recognition model is influenced by the different time length of the segment-based signals; the third is that the recognition model uses datasets of segment-based signals during training procedures, which has a very complicated labeling work, the cost of manpower and time is considerable.
The object of the present invention is to provide a method for OSA (Obstructive Sleep Apnea) severity- classification by using recording-based Peripheral Oxygen Saturation Signal (SpO2 signal), the contents of the present invention are decribed as below.
Firstly a recognition model of four-category OSA severity is built up.
Acquire SpO2 signals from public datasets as the training materials to input into the recognition model of four-category OSA severity for training, and achieve a model.
A recording-based whole SpO2 signal is inputted into the model for directly showing a recognition result of four-category OSA severity (i.e. normal, mild, moderate or severe).
The recording-based whole SpO2 signal is inputted into the model, after a processing of an input layer, a feature maps extraction layer based on convolutional neural network, a global average pooling layer, a deuce layer and an output layer to obtain the recognition result of four-category OSA severity.
The present invention provides recognition model of four-category OSA severity 21, i.e. normal, mild, moderate or severe, feeds the whole Spa, signal 1 (for example 8 hours, but the time length is not limited) into the model for recognition and shows oucome 22 directly.
The input layer 310 : for inputting a whole SpO2 signal 1. The time length of the input signal according to the present invention is not limited, any time length of the input signal can be used, while the prior art of OSA recognition model (two-category) uses fixed time length for the input signal.
The feature maps extraction layer based on convolutional neural network 321˜342: The feature maps extraction layer uses convolutional neural network (CNN) to conduct feature maps extraction fbr the input signal. The convolutional neural network is used very often in deep learnig. The biggest feature in CNN is to extract automatically feature information of the input signal through model training, which is called feature maps, and then the feature maps is used for conducting recognition. This method can promote the accuracy of recognitionefficiently. The CNN is composed of convolution layers, activation functions and pooling layers. By using these layers to conduct multiple layers of parallel or series connection repeatedly, various CNNs can be built up. In the present embodiment, convolutional layer 321, pooling layer 322 and convolutional layer 323 are the first level for ature aps extraction; convolutional layer 331, convolutional layer 332, add 333, convolutional layer 334 and concatenate 335 are the second level for feature maps extraction, while convolutional layer 341 and. convolutional layer 342 derived from the second level are the third level for feature maps extraction.
The global average pooling 350 A global average pooling method is used for calculate an average value for each feature map as the ouput of the pooling layer. This method can convert input signal of different length into an output signal of the same length. In other word, this method can make the model of the present invention accept input signal of any length.
The deuce 360: to integrate the features of high abstraction obtained above, and then transfer to the output layer 370.
The output layer 370 use softniax activation activation fuction to output a probability value for each category of OSA severity, the sum of the probability value of all categories is 1.
In the present embodiment, all convolutional layers use kernel of 1-dimension, Convolutional layer 321 uses 32 kernels of size 30, expressed as (32, 30), Convolutional layer 323 uses kernels of (64, 3); Convolutional layer 331 uses kernels of (32, 1); Convolutional layer 332 uses kernels of (32, 1); Convolutional layer 334 uses kernels of (32, 1); Convolutional layer 341 uses kernels of (32, 3); Convolutional layer 342 uses kernels of (32, 3).
In the present embodiment, if the input SpO2 signal 1 to the input layer 310 samples out 28800 sampling points within 8 hours by 1 Hz sampling rate, then after an operation of the convolutional layer 321 to convert into 32 feature maps of size 960. This feature maps is a 2-dimension array, expressed as 960×32. Then the pooling layer 322 uses a sliding window of size 2 to adopt max pooling for the 960×32. feature maps outputted from the convolutional layer 321, so as to obtain a 480×32 feature maps. Thereafter the convolutional layer 323 conducts a convolutional operation to the feature maps outputted from the pooling layer 322, so as to generate a 480×64 feature maps.
Thereafter the convolutional layer 331 and the convolutional layer 332 conduct a convolutional operation respectively to the feature maps outputted from the convolutional layer 323 so as to generate 480×32 feature maps respectively. The convolutional layer 341 conducts a convolutional operation to the feature maps outputted from the convolutional layer 332 so as to generate 480×32 feature maps. The convolutional layer 342 conducts a convolution operation to the feature maps outputted from the convolutional layer 341 so as to generate 480×32 feature caps. Then the feature maps outputted from the convolutional layer 332 and the feature maps outputted from the convolutional layer 342 will conduct addition operation at the add 333 to obtain a merged 480×32 feature maps. The convolutional layer 334 conducts a convolutional operation to the feature maps outputted from the add 333 to obtain 480×32 feature maps. Finally the feature maps outputted from the convolutional layer 331 and the feature maps outputted from the convolutional layer 334 will conduct concatenation process at concatenate 335 to obtain 480×64 feature maps.
The global average pooling 350 in the present embodiment then uses global average pooling method to treat feature maps outputted from the concatenate 335 and obtains 64 feature maps average value. It's worth mentioningthat the global average pooling method can make input of different length to be converted into output of the same length, therefore the input signal of the present invention model can be any length by this method. Therafter the features outputted from the global average pooling 350 will be inputted to the dence 360 having 4 neurons. The output layer 370 then uses soilmax activation function to compute the 4 probability values outputted from the dence 360 to each category of OSA severity. Finally, the show outcome 22 will display an OSA severity category which having the maximal probability value.
Nowadays wearable devices which can measure Spa, are very popular, it is very convenient to conduct OSA diagnosis through SpO2 analysis, a user can do self-test at home. Referring to
The scope of the present invention depends upon the thllowing claims, and is not limited by the above embodiments.