[论文解读] Medformer: A Multi-Granularity Patching Transformer for Medical Time-Series Classification
Medformer 引入跨通道多粒度打补丁和两阶段多粒度自注意力,以提升医疗时间序列分类,在 EEG 和 ECG 数据集上实现顶级性能。
Medical time series (MedTS) data, such as Electroencephalography (EEG) and Electrocardiography (ECG), play a crucial role in healthcare, such as diagnosing brain and heart diseases. Existing methods for MedTS classification primarily rely on handcrafted biomarkers extraction and CNN-based models, with limited exploration of transformer-based models. In this paper, we introduce Medformer, a multi-granularity patching transformer tailored specifically for MedTS classification. Our method incorporates three novel mechanisms to leverage the unique characteristics of MedTS: cross-channel patching to leverage inter-channel correlations, multi-granularity embedding for capturing features at different scales, and two-stage (intra- and inter-granularity) multi-granularity self-attention for learning features and correlations within and among granularities. We conduct extensive experiments on five public datasets under both subject-dependent and challenging subject-independent setups. Results demonstrate Medformer's superiority over 10 baselines, achieving top averaged ranking across five datasets on all six evaluation metrics. These findings underscore the significant impact of our method on healthcare applications, such as diagnosing Myocardial Infarction, Alzheimer's, and Parkinson's disease. We release the source code at https://github.com/DL4mHealth/Medformer.
研究动机与目标
- 通过捕捉通道内和通道间相关性,激发对医疗时间序列的改进学习。
- 利用多粒度时序特征,在无需手工滤波器的情况下模拟多频带。
- 引入跨通道打补丁以建模通道间依赖。
- 开发一个两阶段自注意力机制(内部粒度和跨粒度)以学习粒度内外的关系。
提出的方法
- 提出跨通道多粒度打补丁,基于所有通道的多种补丁长度创建补丁嵌入。
- 使用线性投影为每个粒度获取嵌入,并应用数据增强以生成增强嵌入。
- 融入粒度嵌入和每个粒度的路由向量,以实现差异化处理。
- 使用跨所有粒度的共享注意力块执行粒度内自注意力,更新补丁嵌入和路由嵌入。
- 在粒度路由之间执行粒度间自注意力,以捕捉跨尺度相关性,将计算复杂度降低到 O(sum Ni^2 + n^2)。
- 在经过 M 个自注意力层后,将所有粒度的输出拼接,形成用于分类的最终表示。
![Figure 1 : Token embedding methods. Vanilla transformer, Autoformer, and Informer [ 28 , 26 , 27 ] employ a single cross-channel timestamp as a token; iTransformer [ 29 ] utilizes an entire channel as a token; and PatchTST and Crossformer [ 30 , 34 ] adopt a patch of timestamps from one channel as a](https://ar5iv.labs.arxiv.org/html/2405.19363/assets/x1.png)
实验结果
研究问题
- RQ1跨通道、多粒度打补丁是否能改善医疗时间序列中通道间相关性的学习?
- RQ2两阶段(粒度内和粒度间)自注意力机制是否通过捕捉粒度内和粒度间关系来提升性能?
- RQ3多粒度打补丁是否能在无需手工滤波的情况下模拟多频带特征?
- RQ4Medformer 在受试者依赖与受试者独立的医疗时间序列分类任务中的表现如何?
主要发现
- 在报道的实验中,Medformer 在五个数据集的六个评估指标上实现了最佳平均排名。
- 在各数据集上,Medformer 在受试者依赖和受试者独立设置中始终优于 10 个基线方法。
- 在受试者依赖的结果中,Medformer 在准确率、精确度、召回率、F1、AUROC 和 AUPRC 方面显示出相当或领先的表现(具体数字在研究中给出)。
- 在受试者独立的结果中,Medformer 在各数据集上保持强劲的表现,常常优于竞争的 Transformer 模型。
- 该模型强调多通道(跨通道)打补丁和多粒度分析,以捕捉时间动态和通道间关系(如 EEG/ECG 设置)。
![Figure 2 : Subject-dependent/independent setups (adopted from [ 13 ] ). In the subject-dependent setup, samples from the same subject can appear in both the training and test sets, causing information leakage. In a subject-independent setup, samples from the same subject are exclusively in either th](https://ar5iv.labs.arxiv.org/html/2405.19363/assets/x2.png)
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。