基於輕量級深度學習模型的連續多導聯心電圖監測和模式識別
Continuous Multi-Lead ECG Monitoring and Pattern Recognition using Lightweight Deep Learning Models
摘要
連續式多導程心電圖(electrocardiogram, ECG)常用於心律監測、疾病篩檢與輔助
診斷。近年來,深度學習已廣泛應用於 ECG 疾病分類,並展現良好的分類效果。然
而,多數方法仍直接由原始 ECG 訊號預測疾病類別,使模型判斷依據較難對應到臨床
上可辨識的波形特徵。因此,本研究提出一個兩階段 ECG 疾病分類架構,希望在分類
效能、模型輕量化與可解釋性之間取得平衡。
第一階段使用 lead-wise pattern recognizer,從多導程原始 ECG 訊號中辨識預先定義
的 ECG pattern,並輸出各 pattern 的 posterior probabilities。第二階段再去將這些輸出整
理為 ECG Pattern Posteriorgram,也就是 semantic matrix,以保留導程資訊、時間位置與
波形語意。其中,temporal binning 的設計對應到標準心電圖紙上一小格的時間尺度,
使資料在壓縮後仍保有具臨床意義的時間解析度。
基於此 semantic matrix,本研究設計以 temporal convolutional network 為核心的輕量
化融合分類器,用於多標籤 ECG 疾病分類。相較於直接使用原始 ECG 的端對端模型,
本文方法能使預測結果更容易回溯至具名 ECG pattern,同時維持良好的分類效能、較
小的模型規模與推論效率。此外,本研究透過 Gradient-SHAP 進行質化分析,觀察模型
關注區域是否符合臨床判讀邏輯,進一步說明此架構在可解釋性上的潛力。
診斷。近年來,深度學習已廣泛應用於 ECG 疾病分類,並展現良好的分類效果。然
而,多數方法仍直接由原始 ECG 訊號預測疾病類別,使模型判斷依據較難對應到臨床
上可辨識的波形特徵。因此,本研究提出一個兩階段 ECG 疾病分類架構,希望在分類
效能、模型輕量化與可解釋性之間取得平衡。
第一階段使用 lead-wise pattern recognizer,從多導程原始 ECG 訊號中辨識預先定義
的 ECG pattern,並輸出各 pattern 的 posterior probabilities。第二階段再去將這些輸出整
理為 ECG Pattern Posteriorgram,也就是 semantic matrix,以保留導程資訊、時間位置與
波形語意。其中,temporal binning 的設計對應到標準心電圖紙上一小格的時間尺度,
使資料在壓縮後仍保有具臨床意義的時間解析度。
基於此 semantic matrix,本研究設計以 temporal convolutional network 為核心的輕量
化融合分類器,用於多標籤 ECG 疾病分類。相較於直接使用原始 ECG 的端對端模型,
本文方法能使預測結果更容易回溯至具名 ECG pattern,同時維持良好的分類效能、較
小的模型規模與推論效率。此外,本研究透過 Gradient-SHAP 進行質化分析,觀察模型
關注區域是否符合臨床判讀邏輯,進一步說明此架構在可解釋性上的潛力。
Continuous multi-lead electrocardiogram (ECG) analysis is widely used for rhythm moni-
toring, disease screening, and computer-aided diagnosis. Although deep learning has achieved
strong performance in ECG disease classification, many existing models still map raw ECG
signals directly to disease labels, making their decisions difficult to relate to clinically recogniz-
able waveform evidence. This thesis proposes a lightweight and interpretable two-stage ECG
disease classification framework.
In the first stage, a lead-wise pattern recognizer outputs posterior probabilities over prede-
fined ECG pattern categories from raw multi-lead ECG signals. In the second stage, these out-
puts are reorganized into an ECG Pattern Posteriorgram that preserves lead-wise structure, tem-
poral information, and waveform-level semantics. Based on this representation, a lightweight
temporal-convolution-based fusion classifier is developed for multi-label ECG disease classi-
fication. Compared with end-to-end models, the proposed framework provides more traceable
predictions in terms of named ECG waveform patterns while maintaining strong classification
performance, compact model size, and efficient inference. Gradient-SHAP-based qualitative
analysis further supports its interpretability.
toring, disease screening, and computer-aided diagnosis. Although deep learning has achieved
strong performance in ECG disease classification, many existing models still map raw ECG
signals directly to disease labels, making their decisions difficult to relate to clinically recogniz-
able waveform evidence. This thesis proposes a lightweight and interpretable two-stage ECG
disease classification framework.
In the first stage, a lead-wise pattern recognizer outputs posterior probabilities over prede-
fined ECG pattern categories from raw multi-lead ECG signals. In the second stage, these out-
puts are reorganized into an ECG Pattern Posteriorgram that preserves lead-wise structure, tem-
poral information, and waveform-level semantics. Based on this representation, a lightweight
temporal-convolution-based fusion classifier is developed for multi-label ECG disease classi-
fication. Compared with end-to-end models, the proposed framework provides more traceable
predictions in terms of named ECG waveform patterns while maintaining strong classification
performance, compact model size, and efficient inference. Gradient-SHAP-based qualitative
analysis further supports its interpretability.