arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.20775cs.LGcs.AIeess.SP
收藏

面向心脏时间序列数据的可解释预训练Transformer

Interpretable Pre-Trained Transformers for Heart Time-Series Data

Imperial College London(帝国理工学院)

Harry J. Davies, James Monsen, Danilo P. Mandic

AI总结:

本研究将仅解码器Transformer架构应用于心脏时间序列数据,构建了可解释的通用预训练心脏模型PPG-PT与ECG-PT,验证了其在房颤分类、心跳检测任务上的优异性能与可解释性。

摘要:

仅解码器Transformer是广受欢迎的生成式预训练Transformer(GPT)系列大语言模型的核心架构。在本研究中,我们将该框架应用于临床心脏时间序列数据分析,构建了两个通用预训练心脏模型,分别命名为PPG-PT和ECG-PT,我们特别强调让这两个预训练模型具备完全可解释性。\n这一目标的实现首先通过聚合注意力图实现:聚合注意力图显示,模型为生成预测,会关注先前心动周期中的相似位点,且在更深层网络中注意力范围会逐渐扩大。其次,我们发现,在心电图(ECG)和光电容积脉搏波(PPG)周期的不同离散位点出现的同值token,在高维空间中会形成独立的聚类簇;随着token在Transformer模块中传播,这些聚类簇会按相位形成。最后,我们发现单个注意力头会响应特定的生理相关特征,例如PPG中的重搏切迹和ECG中的P波。\n研究还证明,这些预训练模型可轻松微调以适配多种任务,例如心房颤动(AF)分类、光电容积脉搏波的心跳检测。以AF分类任务为例,微调仅耗时11分钟计算机时长,在MIMIC Perform AF数据集上的留一受试者AUC,ECG模型达0.99,PPG模型达0.93。此外,微调后的心跳检测器取得了98%的当前最优F1分数,还独有地提供了心跳置信度,可作为信号质量估计指标。重要的是,用于AF筛查的微调模型同样具备完全可解释性,其注意力会转移到上下文中心房颤动的强指示区域。

英文摘要:

Decoder-only transformers are the backbone of the popular generative pre-trained transformer (GPT) series of large language models. In this work, we employ this framework to the analysis of clinical heart time-series data, to create two pre-trained general purpose cardiac models, termed PPG-PT and ECG-PT. We place a special emphasis on making both such pre-trained models fully interpretable. This is achieved firstly through aggregate attention maps which show that, in order to make predictions, the model focuses on similar points in previous cardiac cycles and gradually broadens its attention in deeper layers. Next, we show that tokens with the same value, which occur at different distinct points in the electrocardiography (ECG) and photoplethysmography (PPG) cycle, form separate clusters in high dimensional space. The clusters form according to phase, as the tokens propagate through the transformer blocks. Finally, we highlight that individual attention heads respond to specific physiologically relevent features, such as the dicrotic notch in PPG and the P-wave in ECG. It is also demonstrated that these pre-trained models are straightforward to fine-tune for tasks such as classification of atrial fibrillation (AF), and beat detection in photoplethysmography. For the example of AF, the fine-tuning took 11 minutes of computer time, and achieved the respective leave-one-subject-out AUCs of 0.99 and 0.93 for ECG and PPG within the MIMIC Perform AF dataset. In addition, the fine-tuned beat detector achieved a state-of-the-art F1 score of 98%, as well as uniquely providing a beat confidence level which acts as a signal quality estimator. Importantly, the fine-tuned models for AF screening are also fully explainable, with attention shifting to regions in the context that are strongly indicative of atrial fibrillation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑