This application claims the priority benefit of Taiwan application serial no. 109146891, filed on Dec. 30, 2020. The entirety of the above-mentioned patent application is hereby incorporated by reference herein and made a part of this specification.
The disclosure relates to a method and apparatus for detecting a physiological condition, and more particularly to a method and apparatus for detecting a respiratory function.
Due to serious air pollution resulting from rapid development of industry and climate change, respiratory dysfunctions have now become an urgent public health problem. Respiratory diseases can be divided into two categories: restrictive disease and obstructive disease. Interstitial lung disease (ILD) is one of the representatives of restrictive disease, and chronic obstruction pulmonary disease (COPD) is one of the representatives of obstructive disease. COPD often accompanies chronic diseases such as cardiovascular disease, metabolic syndrome, and depression.
Various clinical testing methods have been developed to identify respiratory dysfunctions. Among them, spirometry is a commonly used testing method at present, which is to place a spirometer in the patient's mouth, and ask the patient to inhale hard and then exhale, so as to measure the amount and speed of air in the lungs for evaluation. However, the existing practices all require well-trained experts and complex equipment, thus limiting the popularity to the public.
The disclosure provides a method and apparatus for detecting a respiratory function, which can detect the respiratory function in real time to determine whether there is a potential risk of respiratory diseases.
A method for detecting a respiratory function according to the disclosure includes: training a plurality of classification models; collecting a breathing sound by a sound receiver to generate a breathing signal; and respectively classifying the breathing signal by the classification models which have been trained to obtain a classification result corresponding to each of the classification models.
In an embodiment of the disclosure, a step of training the classification models includes: controlling an airflow generator to generate a variety of airflows for breath simulation based on a plurality of parameters in response to a plurality of lung physiological conditions; performing a sound reception on the airflows by the sound receiver and thereby generating a plurality of training signals; and training the classification models by using the training signals.
In an embodiment of the disclosure, a step of training the classification models includes: generating a plurality of training signals based on a plurality of patient breathing patterns, and training the classification models by using the training signals.
In an embodiment of the disclosure, the classification models include a support vector machine (SVM) model, a convolutional neural network (CNN) model, and a compounded CNN with long short term memory (ConvLSTM) model.
In an embodiment of the disclosure, the classification result is one of a mild chronic obstructive lung disease, a severe chronic obstructive lung disease, an interstitial lung disease (ILD), and a normal condition.
In an embodiment of the disclosure, the sound receiver contactlessly receives a sound.
In an embodiment of the disclosure, the sound receiver is a microphone.
An apparatus for detecting a respiratory function according to the disclosure includes: a sound receiver and a computing apparatus. The computing apparatus is coupled to the sound receiver, and configured to: train a plurality of classification models; receive a breathing sound by a sound receiver to generate a breathing signal; and respectively classify the breathing signal by the trained classification models to obtain a classification result corresponding to each of the classification models.
Based on the above, a machine learning algorithm is performed to establish the plurality of classification models, and the breathing sound is directly received to help identify whether the respiratory function is abnormal. Accordingly, the apparatus for detecting the respiratory function can not only identify obstructive diseases from restrictive diseases but also be used as a monitoring device for a patient who requires constant vigilance.
The sound receiver 130 is, for example, a handheld microphone, which can contactlessly receive a sound. In an embodiment, the sound receiver 130 and the computing apparatus 110 can be integrated onto a wearable apparatus or a portable electronic apparatus. For example, the sound receiver 130 is disposed on a smart watch or smart phone so that the user receives a breathing sound conveniently.
In an embodiment, in the process of training the classification models, an airflow generator generates a variety of airflows for breath simulation. Specifically, the airflow generator is controlled by the computing apparatus 110 to generate the airflows based on a plurality of parameters in response to a plurality of lung physiological conditions. For example, a pathological condition is simulated according to lung compliance and resistance, thereby reconstructing a variety of breathing patterns to generate the corresponding airflows (the airflows of breath simulation) based on each breathing pattern. A breath airflow depends on the balance between the elastic recoil and airway resistance of the lungs. Lung compliance indicates the change in lung capacity for the transpulmonary pressure, while airway resistance specifies the flow rate under breath pressure. Both compliance and resistance serve as essential indices for quantitatively recapitulating a respiratory system function. The pathological condition is, for example, a chronic obstruction pulmonary disease (COPD), an interstitial lung disease (ILD), and the like.
In the stage of training the models, the sound receiver 130 is moved nearby an output port of the airflow generator, so as to perform a sound reception on the airflows generated by the airflow generator to generate training signals. After that, the training signals are sent to the computing apparatus 110 to train the plurality of classification models.
In addition, in another embodiment, a pneumograph is used to measure a plurality of patients, thereby obtaining a plurality of patient breathing patterns. The pneumograph records the speed and strength of a chest movement during breathing. The computing apparatus 110 generates a plurality of training signals based on the patient breathing patterns, and trains the classification models by using the training signals.
Furthermore, it is also possible to directly receive the breathing sounds of the plurality of patients, thereby establishing a sound database for training.
In the present embodiment, the classification models include a support vector machine (SVM) model, a convolutional neural network (CNN) model, and a compounded CNN with long short term memory (ConvLSTM) model. However, the examples are only used for description, and the disclosure is not limited thereto.
Here, the SVM model is implemented by using a free software for machine learning in Python programming language (e.g. Scikit-learn library). The Keras library having a TensorFlow backend is used for a neural network.
In the embodiment, a 9-component principal component analysis (PCA) extracts a feature vector for use with the SVM model.
The CNN model includes 2 convolutional layers. The first convolutional layer contains 5 filters. The kernel size of each filter is 5×1, stride is 5, and the filter has a Rectified Linear Unit (ReLU) activation function and L2 regularization. Next, max pooling with dropout layers in sizes 2 and 0.5 is performed. The second convolutional layer contains 20 filters having the same parameters as the first layer's. In a fully connected layer, 30 hidden neurons and a ReLU activation function are used. In a final dense layer, a softmax activation function is used to generate a class-wise classification probability.
In addition, in the ConvLSTM model, an additional 64-unit LSTM layer having a ReLU activation function and L2 regularization is introduced before the dense layers. An optimizer such as Adam is used to perform weight optimization to minimize the categorical cross-entropy loss in both neural network (NN) models.
In the embodiment, the airflow generator sets the parameters according to specific physiological conditions to establish the plurality of breathing patterns, and then obtains the training signal 310 through the sound receiver 130. For example, two extreme COPD levels (hereafter referred to as mild COPD and severe COPD) are used to identify mild cases from severe cases. 75 different breathing patterns are reconstructed for each disease.
Here, sound waveforms are directly used to train the SVM model 320, the CNN model 330, and the ConvLSTM model 340 to differentiate between a mild COPD, a severe COPD, an ILD, and a normal condition. As shown in
In the supervised learning field, the SVM model 320 is a powerful classifier having a high-dimensional feature mapping function, which can separate categories by a hyperplane. However, the shallow machine learning technology is used for small datasets. As the amount of data in a dataset increases and more categories are available to be chosen, overlapping features can overwhelm the support vector, thereby resulting in performance degradation. For a sufficiently large dataset having a large amount of overlapping categories, the CNN model 330 and the ConvLSTM model 340 are superior to the SVM model 320.
After the training of the classification models is completed, in step S220, the breathing sound is received by the sound receiver 130 to generate the breathing signal. Here, the handheld sound receiver contactlessly receives the breathing sound of the target.
After that, in step S230, the breathing signal is respectively classified by the trained classification models (the SVM model 320, CNN model 330, and ConvLSTM model 340 as shown in
In summary, a machine learning algorithm is performed to establish the plurality of classification models, and the direct reception of breathing sound helps to identify whether the respiratory function is abnormal. Accordingly, the apparatus not only can identify obstructive diseases from restrictive diseases, but also serve as a monitoring device for a patient who requires constant vigilance, and greatly simplify the acquisition of input data.
In contrast to the strict requirement for professional and complex equipment of the existing testing methods, the disclosure achieves the effect of respiratory function monitoring by using a low-cost sound receiver (e.g., a microphone). The method can provide a basis for preliminary diagnosis, and further contribute to the point-of-care testing for respiratory health. Based on the disclosure, a potential respiratory disease can be diagnosed as early as possible, so that a symptom can be alleviated and disease progression can be limited by timely intervention, and a financial burden can also be reduced.
Number | Date | Country | Kind |
---|---|---|---|
109146891 | Dec 2020 | TW | national |