Skip to content
Back to skills

Medfair Eval

ASecurity

Evaluates group fairness and bias mitigation in medical imaging models across multiple datasets and modalities. It probes whether models trained with Empirical Risk Minimization (ERM) or explicit bias mitigation algorithms exhibit performance disparities across sensitive subgroups, and how model selection strategies impact worst-case group performance. Use when the user wants to benchmark on MEDFAIR Benchmark Suite, or asks about evaluating this task. Reports worst-case AUC.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 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 medfair-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Medfair Eval?

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

Security grade badge for Medfair Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-medfair-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-medfair-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: medfair-eval
description: Evaluates group fairness and bias mitigation in medical imaging models across multiple datasets and modalities. It probes whether models trained with Empirical Risk Minimization (ERM) or explicit bias mitigation algorithms exhibit performance disparities across sensitive subgroups, and how model selection strategies impact worst-case group performance. Use when the user wants to benchmark on MEDFAIR Benchmark Suite, or asks about evaluating this task. Reports worst-case AUC.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 2210.01725
  bibtex_key: zong2022medfair
  confidence: high
---

# medfair-eval

> MEDFAIR: Benchmarking Fairness for Medical Imaging — Zong et al. (2022) (arXiv:2210.01725, 2022)

## What this evaluates

Evaluates group fairness and bias mitigation in medical imaging models across multiple datasets and modalities. It probes whether models trained with Empirical Risk Minimization (ERM) or explicit bias mitigation algorithms exhibit performance disparities across sensitive subgroups, and how model selection strategies impact worst-case group performance.

## Datasets

- **MEDFAIR Benchmark Suite** — total ?; splits: train (-1), test (-1); repo https://github.com/ys-zong/MEDFAIR

## Metrics

- `worst-case AUC` **(primary)** — range: [0, 1]
  - The Area Under the Receiver Operating Characteristic Curve computed on the sensitive subgroup with the lowest performance. It serves as the headline fairness metric to ensure no group is left behind.
- `AUC gap` — range: [0, 1]
  - The difference between the maximum and minimum AUC across all sensitive subgroups (max(AUC) - min(AUC)). A smaller gap indicates better group fairness.
- `overall AUC` — range: [0, 1]
  - The standard Area Under the ROC Curve computed across the entire dataset without subgroup stratification, used as a baseline for overall diagnostic performance.
- `underdiagnosis rate` — range: [0, 1]
  - Defined as the False Negative Rate (FNR) for malignant labels, or the False Positive Rate (FPR) for 'No Finding' labels, calculated per subgroup to capture clinical error direction.

## Input / output format

**Input**: Medical images paired with diagnostic labels and sensitive demographic attributes (e.g., age, sex, race).

**Output**: Continuous prediction scores or probabilities for the diagnostic task, aggregated per sensitive subgroup for metric computation.

## Scoring recipe

```python
def compute_metrics(preds, labels, subgroups):
    subgroup_aucs = [auc_score(preds[s], labels[s]) for s in subgroups]
    worst_auc = min(subgroup_aucs)
    auc_gap = max(subgroup_aucs) - min(subgroup_aucs)
    overall_auc = auc_score(preds, labels)
    underdiag = fnr(preds, labels) if label=='malignant' else fpr(preds, labels)
    return worst_auc, auc_gap, overall_auc, underdiag
```

## Common pitfalls

- Using standard overall-AUC model selection instead of worst-case or Pareto selection, which masks severe subgroup disparities and leads to poor worst-group performance.
- Misinterpreting underdiagnosis rate: FNR is used for malignant labels, but FPR is used for 'No Finding' labels, reversing the typical error direction depending on the task.
- Drawing conclusions from insufficient dataset counts; the paper emphasizes using Nemenyi post-hoc tests across many datasets to establish statistical significance for fairness claims.

## Evidence (verbatim from paper)

> For each dataset and sensitive attribute, we calculate the maximum and minimum AUC and underdiagnosis rate among subgroups, where we use FNR for the malignant label and FPR for "No Finding" label as the underdiagnosis rate.

## Citation

```bibtex
@misc{zong2022medfair,
  title={MEDFAIR: Benchmarking Fairness for Medical Imaging},
  author={Zong et al. (2022)},
  year={2022},
  note={arXiv:2210.01725}
}
```

- arXiv: 2210.01725

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.