Clinical-Longformer

Clinical-Longformer extends Longformer-based transformer models to process long clinical texts by pretraining on MIMIC-III clinical notes to improve performance on clinical NLP tasks.


Key Features:

  • Enhanced Long-Sequence Processing: Uses Longformer architecture to extend maximum input sequence length from 512 to 4096 tokens for handling extensive clinical notes.
  • Domain Enrichment: Pretrains on a large-scale corpus derived from MIMIC-III clinical notes to incorporate clinical terminology and context.
  • Efficient Memory Utilization: Replaces full self-attention with a more efficient attention mechanism suitable for longer sequences to reduce memory consumption.
  • State-of-the-Art Performance: Evaluated across 10 baseline NLP tasks—including named entity recognition, question answering, natural language inference, and document classification—and reported to outperform ClinicalBERT and other short-sequence transformers.
  • Modeling Long-Term Dependencies: Explicitly models long-range contextual relationships in clinical documents to support comprehensive text analysis.

Scientific Applications:

  • Automated documentation: Facilitates extraction and structuring of information from lengthy clinical notes for automated documentation tasks.
  • Patient information extraction: Enables identification and extraction of patient-specific entities and relations across long clinical texts.
  • Enhanced decision support systems: Provides comprehensive document-level representations to support clinical decision support and interpretation.

Methodology:

Adopts Longformer architecture to extend sequence length to 4096 tokens, performs pretraining on MIMIC-III clinical notes, employs a more efficient attention mechanism instead of full self-attention, and evaluates performance across 10 baseline NLP tasks including named entity recognition, question answering, natural language inference, and document classification.

Topics

Details

License:
MIT
Cost:
Free of charge
Tool Type:
command-line tool
Programming Languages:
Python
Added:
2/13/2023
Last Updated:
2/13/2023

Operations

Publications

Li Y, Wehbe RM, Ahmad FS, Wang H, Luo Y. A comparative study of pretrained language models for long clinical text. Journal of the American Medical Informatics Association. 2022;30(2):340-347. doi:10.1093/jamia/ocac225. PMID:36451266. PMCID:PMC9846675.

PMID: 36451266
PMCID: PMC9846675
Funding: - National Institutes of Health: R01LM013337, U01TR003528

Links