Skip to content
Back to skills

Clinical Relation Extraction Eval

ASecurity

Evaluates transformer-based models on clinical relation extraction tasks, measuring their ability to identify and classify relationships between medical entities in text. It compares general vs. clinical-pretrained architectures and binary vs. multi-class classification strategies. Use when the user wants to benchmark on MADE1.0, n2c2, or asks about evaluating this task. Reports strict micro-averaged F1-score.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 11, 2026
researchpythongogitperformance

Works with

  • cli

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add qhjqhj00/research-skills-pool --skill clinical-relation-extraction-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Clinical Relation Extraction Eval?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Clinical Relation Extraction Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-clinical-relation-extraction-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-clinical-relation-extraction-eval)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: clinical-relation-extraction-eval
description: Evaluates transformer-based models on clinical relation extraction tasks, measuring their ability to identify and classify relationships between medical entities in text. It compares general vs. clinical-pretrained architectures and binary vs. multi-class classification strategies. Use when the user wants to benchmark on MADE1.0, n2c2, or asks about evaluating this task. Reports strict micro-averaged F1-score.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 2107.08957
  bibtex_key: [REDACTED]
  confidence: high
---

# clinical-relation-extraction-eval

> Clinical Relation Extraction Using Transformer-based Models — Yang et al. (2021) (arXiv:2107.08957, 2021)

## What this evaluates

Evaluates transformer-based models on clinical relation extraction tasks, measuring their ability to identify and classify relationships between medical entities in text. It compares general vs. clinical-pretrained architectures and binary vs. multi-class classification strategies.

## Datasets

- **MADE1.0** — total ?; splits: 5-fold cross-validation (-1); repo https://github.com/uf-hobi-informatics-lab/ClinicalTransformerRelationExtraction
- **n2c2** — total ?; splits: 5-fold cross-validation (-1); repo https://github.com/uf-hobi-informatics-lab/ClinicalTransformerRelationExtraction

## Metrics

- `strict micro-averaged F1-score` **(primary)** — range: [0, 1]
  - Harmonic mean of micro-averaged precision and recall across all relation categories. Strict matching requires exact boundary and type alignment for predicted entities and relations to count as correct.

## Input / output format

**Input**: Clinical text passages containing entity mentions. Specific tokenization or prompt format is not detailed in the provided section.

**Output**: Predicted relation types between entity pairs. Exact output format is not specified, but models are fine-tuned using standard transformer architectures.

## Scoring recipe

```python
# Pseudo-code for strict micro-averaged F1
predicted_correct = 0
total_predicted = 0
total_gold = 0
for pred_rel, gold_rel in zip(predictions, gold_labels):
    if pred_rel == gold_rel:  # Strict match: exact entity boundaries and relation type
        predicted_correct += 1
    total_predicted += 1
    total_gold += 1
precision = predicted_correct / total_predicted if total_predicted > 0 else 0
recall = predicted_correct / total_gold if total_gold > 0 else 0
f1 = 2 * precision * recall / (precision + recall) if (precision + recall) > 0 else 0
```

## Common pitfalls

- Using loose entity matching instead of strict matching, which inflates scores.
- Macro-averaging across categories instead of micro-averaging, which changes the weight given to frequent vs. rare relation types.
- Not using the official 2018 n2c2 evaluation scripts, leading to inconsistent scoring.

## Evidence (verbatim from paper)

> Following the standard evaluation of clinical RE, we compared the performance of transformer-based models using the strict micro-averaged precision, recall, and F1-score aggregated from all relation categories. We used the official evaluation scripts provided by the 2018 n2c2 challenges to calculate these scores. The entities involved in the evaluation were from the gold standard annotations.

## Citation

```bibtex
@misc{yang2021clinicalrelationextraction,
  title={Clinical Relation Extraction Using Transformer-based Models},
  author={Yang et al. (2021)},
  year={2021},
  note={arXiv:2107.08957}
}
```

- arXiv: 2107.08957

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.