atlas

Research map / Time series / Foundation models for time series

Medformer: A Multi-Granularity Patching Transformer for Medical Time-Series Classification

NeurIPS 2024 · Time series › Foundation models for time series · approach: Time series classification · 53 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Medformer, a transformer for medical time series classification that uses cross-channel multi-granularity patching and two-stage intra/inter-granularity attention, evaluated on five EEG/ECG datasets against ten time-series transformer baselines.

Problem

Medical time series (EEG, ECG) classification has been dominated by handcrafted features and CNNs; existing time-series transformers use token embeddings that miss multi-timestamp, cross-channel, and multi-scale patterns needed for MedTS diagnosis.

Approach

Embed patches spanning all channels (cross-channel patching) at multiple patch lengths (granularities), then apply a router-based two-stage self-attention: intra-granularity attention within each scale and inter-granularity attention among per-scale router tokens, plus embedding augmentation.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add inter-granularity self-attention (ablation)Medformer · Five datasetsF1 score: 3.64%Helped
add embedding augmentation (ablation)Medformer · Five datasetsF1 score: 4.46%Helped
use cross-channel rather than single-channel patching (ablation)Medformer · Five datasetsF1 score: 6.10%Helped
use repeated patch lengths instead of one patch length (ablation)Medformer · APAVAPerformance across evaluated metricsMixed
mix different patch lengths (for example, {2,2,4,16,32}) (ablation)Medformer · APAVAPerformance across evaluated metricsMixed
vary the patch length configuration (ablation)Medformer · MedTS classificationPerformanceMixed

Surprising findings

Limitations

Experimental setup

Datasets: APAVA TDBrain ADFTD PTB PTB-XL UEA human activity recognition datasets

Benchmarks: APAVA TDBrain ADFTD PTB PTB-XL

Metrics: accuracy macro precision macro recall macro F1 macro AUROC macro AUPRC

Baselines: Autoformer Crossformer FEDformer Informer iTransformer MTST Nonformer PatchTST Reformer Transformer

Builds on: PatchTST Crossformer Time-Series-Library scaled dot-product attention transformer

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy