以深度學習進行生理訊號處理及臨床預測: 心臟醫學、重症醫療、以及急診醫學之應用
Deep Learning in Physiological Signal Processing and Clinical Prediction: Applications in Cardiology, Critical Care, and Emergency Medicine
摘要
背景:臨床醫師以心電圖協助疾病的診治,已有百餘年的歷史。至今,實務上仍以辨識特定疾病可能產生的心電圖特徵作為判斷的依據。即使進入數位化的時代,電腦輔助心電圖判讀仍以自動辨識並提示這些特徵給醫師參考為主。以心電圖的特徵進行診斷極度仰賴醫師的經驗及敏銳度;因此,此類臨床診治指引的進步相對緩慢。因為硬體運算速度及儲存量的快速進步,人工智慧演算法在近年成為資訊工程最熱門的研究領域之一。我們使用卷積神經網路,以大量臨床病例的心電圖進行深度學習,建立可以預測致死性心室顫動心律不整的發生,以及ST節段上升型急性心肌梗塞(STEMI)的關鍵冠狀動脈阻塞位置的深度學習模型。
研究方法:第一階段使用MIT-BIH公開資料庫中的心室心律不整病例心電圖,將其進行短時距傅立葉變換及連續小波轉換前處理,再將處理及組合後的頻域訊號送入卷積神經網路進行深度學習,以預測在不同的臨床場域下,是否會在一定時間範圍內發生心室顫動猝死。同時也比較使用不同前處理方式、以及頻域和時域訊號所建立的深度學習模型之預測性能差異。第二階段則測試是否能以心電圖預測患者冠狀動脈阻塞之關鍵病灶所在位置。研究使用接受心導管手術的STEMI患者的病歷資料,經逐一重新檢視心電圖訊號品質及心導管報告正確性後進行比對,以評估卷積神經網路對各冠狀動脈阻塞的預測性能。
結果:心電圖經過短時距傅立葉變換處理產生二維的時頻圖訊號,使用卷積神經網路預測數分鐘內發生心室顫動,可達到99%的敏感度(亦稱為召回率)以及97%的準確度。連續小波轉換前處理得到的預測性能敏感度可達97%,準確度則為91%;雖然稍差,仍符合臨床需求。相較之下,以原始一維心電圖訊號以及二維合成時域訊號進行深度學習,僅能達到60.5%以及56%的準確度。至於在心肌梗塞關鍵病灶的預測方面,使用短時距傅立葉變換前處理可得到79.3%的整體準確度;其中,對於左前降支是關鍵阻塞病灶的預測敏感度為85.7%、特異性為88.4%,左迴旋支分別為37%及99%,而右冠狀動脈則分別為88.4%及82.4%。使用連續小波(Morlet小波)轉換前處理可達到較佳的整體準確度(83.7%);其中,對於左前降支是關鍵阻塞病灶的預測敏感度為93.5%、特異性為80.4,左迴旋支分別為56%及99.7%,而右冠狀動脈則分別為85.9%及92.9%。
結論:使用經過適當的前處理並轉換為頻域訊號的心電圖,深度學習之卷積神經網路可以有效地預測心室顫動事件的發生,以及STEMI之關鍵病灶位置。
研究方法:第一階段使用MIT-BIH公開資料庫中的心室心律不整病例心電圖,將其進行短時距傅立葉變換及連續小波轉換前處理,再將處理及組合後的頻域訊號送入卷積神經網路進行深度學習,以預測在不同的臨床場域下,是否會在一定時間範圍內發生心室顫動猝死。同時也比較使用不同前處理方式、以及頻域和時域訊號所建立的深度學習模型之預測性能差異。第二階段則測試是否能以心電圖預測患者冠狀動脈阻塞之關鍵病灶所在位置。研究使用接受心導管手術的STEMI患者的病歷資料,經逐一重新檢視心電圖訊號品質及心導管報告正確性後進行比對,以評估卷積神經網路對各冠狀動脈阻塞的預測性能。
結果:心電圖經過短時距傅立葉變換處理產生二維的時頻圖訊號,使用卷積神經網路預測數分鐘內發生心室顫動,可達到99%的敏感度(亦稱為召回率)以及97%的準確度。連續小波轉換前處理得到的預測性能敏感度可達97%,準確度則為91%;雖然稍差,仍符合臨床需求。相較之下,以原始一維心電圖訊號以及二維合成時域訊號進行深度學習,僅能達到60.5%以及56%的準確度。至於在心肌梗塞關鍵病灶的預測方面,使用短時距傅立葉變換前處理可得到79.3%的整體準確度;其中,對於左前降支是關鍵阻塞病灶的預測敏感度為85.7%、特異性為88.4%,左迴旋支分別為37%及99%,而右冠狀動脈則分別為88.4%及82.4%。使用連續小波(Morlet小波)轉換前處理可達到較佳的整體準確度(83.7%);其中,對於左前降支是關鍵阻塞病灶的預測敏感度為93.5%、特異性為80.4,左迴旋支分別為56%及99.7%,而右冠狀動脈則分別為85.9%及92.9%。
結論:使用經過適當的前處理並轉換為頻域訊號的心電圖,深度學習之卷積神經網路可以有效地預測心室顫動事件的發生,以及STEMI之關鍵病灶位置。
Background: Clinicians have used electrocardiograms (ECG) to assist in the diagnosis and treatment of cardiac diseases for more than a hundred years. So far, in clinical practice, the identification of electrocardiographic features that may be characteristic for a particular disease is still the basic way to establish the diagnosis. Even in the era of digitalization, computer-assisted ECG interpretation still focuses on automatically identifying and presenting these features to physicians. Establishing diagnosis according to the characteristics of the ECG extremely depends on the experience and sensitivity of the physician; thus, the progress of developing this kind of clinical guidelines have always been slow. Due to the rapid progress in computing speed of processors and capacity of storage devices, artificial intelligence has become one of the most popular topics in computer science in recent years. We use the convolutional neural network (CNN) to conduct deep learning with a large number of ECGs from clinical cases, and establish a prediction model that can predict the occurrence of fatal ventricular fibrillation and the culprit coronary artery lesion in ST segment elevation myocardial infarction (STEMI).
Methods: In the first stage of the study, the ECGs of ventricular arrhythmia cases in the MIT-BIH public database are used. Short-time Fourier transform (STFT) and continuous wavelet transform (CWT) are used for preprocessing, and then the processed frequency domain signals are sent to the CNN deep learning model, to predict the occurrence of ventricular fibrillation within a designated period of time, according to specific clinical settings. The performance of deep learning models established using different preprocessing methods, frequency domain, and time domain signals are also compared. The second stage is to verify whether the ECG can predict the infarction-related coronary artery (culprit lesion) in STEMI patients. The study uses the medical records of STEMI patients who underwent cardiac catheterization in a medical center. We examine all the medical records, including the quality of original ECGs and the correctness of cardiac catheterization reports. The performance of the CNN model are evaluated.
Results: The ECG is processed by STFT into a two-dimensional spectrogram signal. Using CNN to predict the occurrence of ventricular fibrillation within a few minutes, it can achieve 99% sensitivity (also known as recall) and 97% accuracy. The sensitivity of prediction obtained by CWT preprocessing can reach 97%, and the accuracy is 91%. Although slightly inferior, it still meets the clinical needs. In contrast, deep learning with original 1D ECG signals and 2D synthetic time domain signals can only achieve 60.5% and 56% accuracy. As for the prediction of culprit lesions in STEMI, the overall accuracy of 79.3% can be obtained by using short-term Fourier transform preprocessing; among them, the prediction sensitivity for the left anterior descending artery (LAD) is 85.7%, and the specificity is 88.4%. They are 37% and 99% for the left circumflex branch (LCX), and 88.4% and 82.4% for the right coronary artery (RCA). Using CWT (Morlet wavelet) preprocessing, a better overall accuracy rate (83.7%) can be achieved; among them, the prediction sensitivity for the LAD is 93.5%, and the specificity is 80.4%. They are 56% and 99.7% for LCX, and 85.9% and 92.9% for RCA.
Conclusions: Using the frequency-domain signals converted from ECGs after proper preprocessing, deep learning with CNN can effectively predict the ventricular fibrillation events and the culprit coronary lesions in STEMI.
Methods: In the first stage of the study, the ECGs of ventricular arrhythmia cases in the MIT-BIH public database are used. Short-time Fourier transform (STFT) and continuous wavelet transform (CWT) are used for preprocessing, and then the processed frequency domain signals are sent to the CNN deep learning model, to predict the occurrence of ventricular fibrillation within a designated period of time, according to specific clinical settings. The performance of deep learning models established using different preprocessing methods, frequency domain, and time domain signals are also compared. The second stage is to verify whether the ECG can predict the infarction-related coronary artery (culprit lesion) in STEMI patients. The study uses the medical records of STEMI patients who underwent cardiac catheterization in a medical center. We examine all the medical records, including the quality of original ECGs and the correctness of cardiac catheterization reports. The performance of the CNN model are evaluated.
Results: The ECG is processed by STFT into a two-dimensional spectrogram signal. Using CNN to predict the occurrence of ventricular fibrillation within a few minutes, it can achieve 99% sensitivity (also known as recall) and 97% accuracy. The sensitivity of prediction obtained by CWT preprocessing can reach 97%, and the accuracy is 91%. Although slightly inferior, it still meets the clinical needs. In contrast, deep learning with original 1D ECG signals and 2D synthetic time domain signals can only achieve 60.5% and 56% accuracy. As for the prediction of culprit lesions in STEMI, the overall accuracy of 79.3% can be obtained by using short-term Fourier transform preprocessing; among them, the prediction sensitivity for the left anterior descending artery (LAD) is 85.7%, and the specificity is 88.4%. They are 37% and 99% for the left circumflex branch (LCX), and 88.4% and 82.4% for the right coronary artery (RCA). Using CWT (Morlet wavelet) preprocessing, a better overall accuracy rate (83.7%) can be achieved; among them, the prediction sensitivity for the LAD is 93.5%, and the specificity is 80.4%. They are 56% and 99.7% for LCX, and 85.9% and 92.9% for RCA.
Conclusions: Using the frequency-domain signals converted from ECGs after proper preprocessing, deep learning with CNN can effectively predict the ventricular fibrillation events and the culprit coronary lesions in STEMI.