Skip to main content
QUICK REVIEW

[논문 리뷰] Medformer: A Multi-Granularity Patching Transformer for Medical Time-Series Classification

Yihe Wang, Nan Huang|arXiv (Cornell University)|2024. 05. 24.
Time Series Analysis and ForecastingComputer Science인용 수 16
한 줄 요약

Medformer는 교차 채널 다중 해상도 패칭과 두 단계 다중 해상도 자기-주의를 도입해 의료 시계열 분류를 개선하고, EEG 및 ECG 데이터셋에서 최고의 성능을 달성합니다.

ABSTRACT

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.

연구 동기 및 목표

  • 채널 내 및 채널 간 상관관계를 포착하여 의료 시계열 학습 개선을 촉진한다.
  • 수작업 필터 없이 다중 해상도 시간 특징을 활용하여 다중 주파수 대역을 모방한다.
  • 채널 간 의존성을 모델링하기 위한 교차 채널 패칭을 도입한다.
  • 내부- 및 간격 간 관계를 학습하기 위한 두 단계의 자기-주의 메커니즘(intra- 및 inter-granularity)을 개발한다.

제안 방법

  • 모든 채널에서 여러 패치 길이로 패치 임베딩을 생성하기 위해 교차 채널 다중 해상도 패칭을 제안한다.
  • 각 해상도에 대한 임베딩을 얻기 위해 선형 투영을 사용하고, 데이터 증강을 적용하여 증강된 임베딩을 생성한다.
  • 각 해상도에 대해 해상도 임베딩과 라우터 벡터를 도입하여 차별화된 처리가 가능하도록 한다.
  • 모든 해상도에서 공유 어텐션 블록으로 내부-해상도(self-attention)를 수행하고 패치 임베딩과 라우터 임베딩을 모두 업데이트한다.
  • 해상도 라우터 간의 상호-해상도 self-attention을 수행하여 교차 척도 상관관계를 포착하고 계산 복잡도를 O(sum Ni^2 + n^2)로 감소시킨다.
  • M개의 self-attention 계층 후 모든 해상도에서의 출력을 연결하여 분류를 위한 최종 표현을 형성한다.
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
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

실험 결과

연구 질문

  • RQ1의료 시계열에서 채널 간 상관관계 학습을 개선하기 위해 교차 채널 다중-해상도 패칭이 도움이 될 수 있는가?
  • RQ2내부- 및 교차-해상도 관계를 포착하여 두 단계( intra- 및 inter-granularity )의 self-attention 메커니즘이 성능을 향상시키는가?
  • RQ3수작업 필터링 없이 다중 해상도 패칭이 다중 주파수 대역 특성을 모사할 수 있는가?
  • RQ4주체 의존적(subject-dependent) 대 주체 독립적인(subject-independent) 의료 시계열 분류 작업에서 Medformer의 성능은 어떠한가?

주요 결과

  • Medformer는 다섯 개 데이터셋에서 여섯 가지 평가지표에 대해 최상의 평균 순위를 달성했다.
  • 데이터셋 전반에서 Medformer은 주체 의존적 및 주체 독립적 설정 모두에서 10개의 베이스라인을 일관되게 능가한다.
  • 주체 의존적 결과에서 Medformer는 기준선과 비교하여 정확도, 정밀도, 재현율, F1, AUROC, AUPRC가 경쟁력 있거나 선두를 보인다(구체 수치는 연구에서 보고).
  • 주체 독립적 결과에서 Medformer는 데이터셋 전반에 걸쳐 강한 성능을 유지하며 경쟁 트랜스포머 모델을 자주 능가한다.
  • 모델은 다중 채널(교차 채널) 패칭 및 다중 해상도 분석을 강조하여 시간적 다이나믹스와 채널 간 관계를 포착한다(예: 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
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

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.