ColonoWorld-Windows / README.md
csjihwanh's picture
Update card
1d1d896 verified
|
Raw History Blame Contribute Delete
6.55 kB
metadata
license: cc-by-nc-4.0
pretty_name: ColonoWorld REAL-Colon window index
tags:
  - colonoscopy
  - endoscopy
  - video-generation
  - medical-imaging
size_categories:
  - 1K<n<10K

ColonoWorld window index for REAL-Colon

Paper (arXiv:2611.30372) | Model | Code | Project page

This dataset lists the video windows used to train and evaluate the ColonoWorld model of "ColonoWorld: Camera-Controlled Full-Procedure Colonoscopy Video Generation". It holds index information only: video ids and frame numbers of the REAL-Colon dataset. With a local copy of REAL-Colon, the windows are cut with one script from the code repository.

Files

File Rows Contents
train_windows.csv / .jsonl 1,129 the final training set of the paper model
val_windows.csv / .jsonl 16 validation clips (one held-out patient)
test_windows.csv / .jsonl 22 test clips of the paper (four held-out patients)

The CSV and JSONL files hold the same rows; the cutting script reads the CSV files.

Training windows

Group Windows Contents
base 734 camera and tube training windows from 28 procedures (598 of 65 frames, 136 of 189 frames)
polyp 146 additional windows with a polyp
instrument 92 windows with an instrument (33 with a snare)
irrigation 29 windows with irrigation
nbi 128 narrow-band imaging windows (40 switch between white light and NBI)

Base windows by anatomical segment: transverse 347, sigmoid 126, descending 105, ascending 92, rectum 38, cecum 25, unlabeled 1. All training windows together span 35 REAL-Colon videos. The validation and test clips have 189 frames each and come from patients that do not appear in training.

Columns

Column Meaning
window_id unique window name: <group>_<video_id>_<first_frame>_f<num_frames>
video_id REAL-Colon video, e.g. 001-001
group base, polyp, instrument, irrigation, nbi (training), val or test
segment anatomical segment from the REAL-Colon labels (cecum ... rectum, or unlabeled)
first_frame, last_frame first and last frame of the window, both inclusive
num_frames number of frames (65 or 189) = last_frame - first_frame + 1
native_fps recording frame rate of the video (25 or 29.97)
duration_s recorded duration, num_frames / native_fps
polyp_mask the window was trained with a polyp mask (360 windows: the 146 polyp windows and 214 base windows)
snare the instrument is a snare (33 instrument windows)
nbi the window contains NBI frames (154 windows: the 128 nbi windows and 26 polyp windows)
nbi_switch the window switches between white light and NBI (40 nbi and 13 polyp windows)
affine_00 ... affine_12 2x3 affine from native pixels to the 1104x832 clip canvas

Frame numbering

  • Frame numbers are those of the REAL-Colon frame files: frame n of video v is <REAL-Colon>/<v>_frames/<v>_<n>.jpg, counted from 0.
  • A window uses every frame from first_frame to last_frame; no frame is skipped or repeated.
  • REAL-Colon videos are recorded at 25 or 29.97 fps (native_fps). ColonoWorld plays each window at 24 fps, one native frame per output frame.
  • Each frame is mapped onto the 1104x832 canvas with the window's affine ([[affine_00, affine_01, affine_02], [affine_10, affine_11, affine_12]]).

Cutting the windows

  1. Download REAL-Colon from figshare and extract the <video>_frames folders.
  2. Install the code repository:
git clone https://github.com/AIDASLab/ColonoWorld.git
cd ColonoWorld
pip install -e .
  1. Download the index files of this dataset and run:
python scripts/cut_realcolon_windows.py --index train_windows.csv \
    --realcolon /path/to/REAL-Colon --out windows/train
python scripts/cut_realcolon_windows.py --index test_windows.csv \
    --realcolon /path/to/REAL-Colon --out windows/test --format png

The script writes one 1104x832 clip per window:

  • mp4 (default) at 24 fps, the frame rate used for training and evaluation: a 65-frame window plays for 2.71 s and a 189-frame window for 7.88 s. --fps native keeps the recording frame rate of the video, and --fps <value> sets another rate.
  • PNG frames with --format png: <window_id>/0000.png, 0001.png, ..., one file per frame in window order.

--group (e.g. --group base nbi) and --ids select a subset of the windows.

Licence

  • This index: Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0), the licence of the ColonoWorld code and weights. It applies to our contributions to the index and does not restrict any rights granted by the REAL-Colon licence.
  • REAL-Colon: the videos and frames are not part of this dataset. They are distributed by the REAL-Colon authors under CC BY 4.0, and their use follows that licence. Please cite REAL-Colon when you use these windows: C. Biffi et al., "REAL-Colon: A dataset for developing real-world AI applications in colonoscopy", Scientific Data 11, 539 (2024), doi:10.1038/s41597-024-03359-0.

Citation

@article{hong2026colonoworld,
  title   = {ColonoWorld: Camera-Controlled Full-Procedure
             Colonoscopy Video Generation},
  author  = {Hong, Jihwan and Cho, Sunghwan Steve and Ho, Ping Shu and
             Kim, Joo Seong and Kim, Bokyung and Kim, Nam-Joon and
             See, Simon and Kim, Ji Won and Do, Jaeyoung},
  journal = {arXiv preprint arXiv:2611.30372},
  year    = {2026}
}

@article{biffi2024realcolon,
  title   = {{REAL-Colon}: A dataset for developing real-world {AI} applications in colonoscopy},
  author  = {Biffi, Carlo and Antonelli, Giulio and Bernhofer, Sebastian and Hassan, Cesare and
             Hirata, Daizen and Iwatate, Mineo and Maieron, Andreas and Salvagnini, Pietro and
             Cherubini, Andrea},
  journal = {Scientific Data},
  volume  = {11},
  pages   = {539},
  year    = {2024}
}