Download README.md from milkyroad/bench: direct link, hf CLI and curl.
- Browser
- Download file 4.5 kB
-
https://huggingface.co/datasets/milkyroad/bench/resolve/main/README.md
- Command line
-
hf download hf://datasets/milkyroad/bench/README.md
-
curl -L -o README.md https://huggingface.co/datasets/milkyroad/bench/resolve/main/README.md
language:
- en
license: cc-by-4.0
pretty_name: Cystoscopy Benchmark
size_categories:
- 1K<n<10K
task_categories:
- image-classification
- video-classification
tags:
- medical
- cystoscopy
- benchmark
configs:
- config_name: stills_2c
data_files:
- split: test
path: data/v0.1/stills/metadata.parquet
- config_name: clips
data_files:
- split: test
path: data/v0.1/clips/metadata.parquet
- config_name: clip_lesions
data_files:
- split: test
path: data/v0.1/clips/lesions.parquet
Cystoscopy Benchmark
Patient-disjoint gold for three-class still classification and for lesion timing on cystoscopy clips. Procedure-level inspection completeness is specified and empty, so a later procedure video can be scored without changing the metrics.
This release is evaluation only. It contains no training split, and its
patients are disjoint from the training set, which ships separately. Media sits
next to its metadata; file_name is relative to that metadata file, and
MANIFEST.json records the checksum of every file.
Install
pip install -e ".[dev]"
Scoring reads the tables in data/v0.1. To load them with the datasets library:
from datasets import load_dataset
stills = load_dataset("/path/to/cystobench", "stills_2c", split="test")
stills[0]["file_name"]
Tasks
| Level | Axis | What is scored | Gold in v0.1 |
|---|---|---|---|
| Stills | 2C | Malignant tumor, non-malignant lesion, non-ROI | 5,807 frames |
| Clip | 2A | Lesion count, matched on temporal overlap | 161 track clips, 314 lesions |
| Clip | 2B | Mean temporal IoU of the 2A true positives | Same lesions |
| Procedure | 1 | Eleven anatomical landmarks, dwell of at least 2 s | Schema only, 0 rows |
Non-ROI is anything that does not warrant a biopsy: normal mucosa, anatomical landmarks, foreign bodies, and instruments.
Headline numbers are macro F1 for 2C, micro F1 for 2A, and mean temporal IoU for 2B. The decision rules are frozen in docs/SPEC.md.
Sources
The release is assembled from three public collections, re-hosted on Hugging
Face. Each is flattened to a single train split there; the patient split
between evaluation and training data is not part of those datasets.
source |
Dataset | Content |
|---|---|---|
source_1 |
milkyroad/C | CystoDS stills, 8,067 images with segmentation masks |
source_2 |
milkyroad/D | Kaggle stills, 1,754 frames across four tissue classes |
source_3 |
milkyroad/B | Institutional video cohort, 173 track videos; 161 released after excluding 3 PUNLMP patients |
Filenames and patient numbers are replaced by anonymised identifiers in this release, so the mapping back to those datasets is not shipped. Cite the source datasets alongside this benchmark.
Training data
The benchmark holds only evaluation data. Images used to fit a baseline ship separately, and no patient appears in both. The split covers 182 still patients: 69 contribute the training images (4,014 stills) and 113 contribute the 5,807 evaluation stills. The clip cohort is 27 further patients and is evaluation only.
Because the two are disjoint and drawn from different collections, a model trained on the training images and scored on the clips is a cross-site test. See docs/SPEC.md for the split's provenance and the identifier scheme.
Score
cystobench score --level stills --axis 2c --baseline oracle
cystobench score --level clip --axis 2a --baseline empty
cystobench score --level stills --axis 2c --preds preds.jsonl
Submission lines are documented in docs/SUBMISSION.md.
Counts
Stills, malignant tumor / non-malignant lesion / non-ROI:
| Malignant tumor | Non-malignant lesion | Non-ROI | Total | Patients |
|---|---|---|---|---|
| 1,277 | 192 | 4,338 | 5,807 | 113 |
Track clips (every in-view tumor lesion is gold, including <1 s):
| Clips | Lesions | Patients |
|---|---|---|
| 161 | 314 | 27 |
The separate training set holds 4,014 stills from 69 other patients (837 / 163 / 3,014 by class).
always_non_roi scores 0.285 macro F1 here, so that is the floor any model has
to clear. With 113 stills patients, patient-level resampling moves a macro F1 estimate
by less than it did on the smaller v0.1 stills cohort.