Skip to content
advancedvideo

Clinical TempEval - Temporal Information Extraction from Clinical Notes

Extraction of temporal information from clinical text, identifying time expressions, event mentions, and their temporal relations. Based on SemEval-2016 Task 12 (Clinical TempEval).

Get This Design

View on GitHub(opens in a new tab)

Clone or download from the repository

Quick start:

bash
git clone https://github.com/davidjurgens/potato-showcase.git
cd potato-showcase/semeval/2016/task12-clinical-tempeval
potato start config.yaml

Configuration File

This Potato config reproduces the annotation task. Save it as config.yaml and run potato start config.yaml to try it.

yaml
# Clinical TempEval - Temporal Information Extraction from Clinical Notes
# Based on Bethard et al., SemEval 2016
# Paper: https://aclanthology.org/S16-1165/
# Dataset: http://alt.qcri.org/semeval2016/task12/
#
# This task asks annotators to identify time expressions and event
# mentions in clinical text, and classify the temporal relation between
# events and times.
#
# Span Labels:
# - Time Expression: Date, time, duration, or frequency expression
# - Event Mention: Clinical event (procedure, condition, medication, etc.)
#
# Temporal Relation Labels:
# - Before: The event occurred before the time reference
# - After: The event occurred after the time reference
# - Overlap: The event overlaps with the time reference
# - Before-Overlap: The event began before and overlaps the time reference
# - Contains: The time reference contains the event

annotation_task_name: "Clinical TempEval - Temporal Extraction"
task_dir: "."

data_files:
  - sample-data.json

item_properties:
  id_key: "id"
  text_key: "text"

output_annotation_dir: "annotation_output/"
export_annotation_format: "jsonl"

port: 8000

annotation_schemes:
  - annotation_type: span
    name: temporal_entities
    description: "Highlight time expressions and clinical event mentions in the text."
    labels:
      - "Time Expression"
      - "Event Mention"

  - annotation_type: radio
    name: temporal_relation
    description: "What is the temporal relation between the primary event and time reference?"
    labels:
      - name: "Before"
        tooltip: "The event occurred before the time reference"
        key_value: "1"
      - name: "After"
        tooltip: "The event occurred after the time reference"
        key_value: "2"
      - name: "Overlap"
        tooltip: "The event and the time reference overlap temporally"
        key_value: "3"
      - name: "Before-Overlap"
        tooltip: "The event began before the time reference and continues into it"
        key_value: "4"
      - name: "Contains"
        tooltip: "The time period contains the event entirely"
        key_value: "5"

annotation_instructions: |
  You will be shown a clinical note excerpt. Your task is to:
  1. Highlight all time expressions (dates, times, durations) and event mentions
     (procedures, conditions, medications, symptoms).
  2. Classify the temporal relation between the primary event and time reference.

user_config:
  allow_all_users: true
max_annotations_per_user: 50
num_annotators_per_item: 2

Sample Data

json
[
  {
    "id": "clintemp_001",
    "text": "The patient underwent a cholecystectomy on March 15, 2016. Post-operative recovery was uneventful. Follow-up appointment scheduled for April 1."
  },
  {
    "id": "clintemp_002",
    "text": "Patient has been taking metformin 500mg twice daily since January 2015. Blood glucose levels have improved significantly over the past 6 months."
  }
]

// ... and 8 more items

Dataset & paper

Bethard et al., SemEval 2016

Citation (BibTeX)

bibtex
@inproceedings{bethard-etal-2016-semeval,
    title = "{S}em{E}val-2016 Task 12: Clinical {T}emp{E}val",
    author = "Bethard, Steven and Savova, Guergana and Chen, Wei-Te and Derczynski, Leon and Pustejovsky, James and Verhagen, Marc",
    booktitle = "Proceedings of the 10th International Workshop on Semantic Evaluation ({S}em{E}val-2016)",
    month = jun,
    year = "2016",
    address = "San Diego, California",
    publisher = "Association for Computational Linguistics",
    doi = "10.18653/v1/S16-1165",
    pages = "1052--1062",
    url = "https://aclanthology.org/S16-1165"
}

Details

Annotation Types

spanradio

Domain

SemEvalNLPClinical NLPTemporal Processing

Use Cases

Clinical NLPTemporal ExtractionMedical Text Mining

Tags

semevalsemeval-2016shared-taskclinical-tempevaltemporalclinical-nlpmedical

Found an issue or want to improve this design?

Open an Issue(opens in a new tab)