B
收藏资源简介:
该数据集是一个膀胱镜检查(cystoscopy)视频数据集,用于肿瘤检测任务。数据包含173个.mp4视频(约4GB),每个视频逐帧标注了肿瘤(tumor)的边界框,并关联了患者级别的临床元数据。数据集共包含69108个边界框,分布在444个标注轨迹中,来自30位患者。数据以Parquet格式存储,每个视频作为一行,视频以HuggingFace Video特征嵌入,边界框以结构体形式内联存储。字段包括:视频数据(video)、视频ID(video_id)、患者ID(patient_id)、边界框结构体(boxes,包含轨迹ID、帧号、标签、坐标等)、边框数量(n_boxes)、组织学类型(histological_type)、标注帧数(num_frames)、光照模式(light_mode)。坐标采用绝对像素(CVAT格式)。数据集仅提供训练集,建议使用患者ID进行分组以避免数据泄露。适用任务:医学图像中的目标检测,特别是膀胱癌肿瘤检测。
This dataset is a cystoscopy video dataset developed for tumor detection tasks. It contains 173 .mp4 videos with a total size of approximately 4 GB. Each video is annotated with tumor bounding boxes on a per-frame basis, and is paired with patient-level clinical metadata. In total, the dataset includes 69,108 bounding boxes distributed across 444 annotated tracks, originating from 30 patients. The data is stored in Parquet format, with each video represented as one row. Videos are encoded using HuggingFace Video feature embeddings, while bounding boxes are stored inline as structured entities. The dataset's fields are as follows: video data (video), video ID (video_id), patient ID (patient_id), bounding box structure (boxes, which includes track ID, frame number, label, coordinates, and other related attributes), number of bounding boxes (n_boxes), histological type, number of annotated frames (num_frames), and light mode. Coordinates are in absolute pixel format following the CVAT standard. Only the training subset is provided for this dataset. It is recommended to group samples by patient ID to prevent data leakage. Applicable tasks include object detection in medical imaging, with a specific focus on bladder cancer tumor detection.
数据集概述
数据集名称:Cystoscopy Tumor Detection(膀胱镜肿瘤检测)
数据集地址:https://huggingface.co/datasets/milkyroad/B
许可证:unknown(未知)
语言:英语(en)
任务类别:目标检测(object-detection)
标签:医疗、膀胱镜检查、膀胱癌、肿瘤检测、视频
数据集规模:100M < n < 1B
内容概述
- 视频数量:173段膀胱镜检查
.mp4视频(约4 GB,内嵌于数据集中) - 标注框数量:69,108个边界框,分布于444条标注轨迹中
- 患者数量:30位患者,附有临床元数据
数据结构
数据集仅包含一个 train 分割,每个视频对应一行数据。视频以 Hugging Face Video 特征内嵌于 Parquet 分片中,边界框信息以内联方式存储。
主要列
| 列名 | 类型 | 说明 |
|---|---|---|
video |
Video | 内嵌视频字节,默认不解码(decode=False),返回 {bytes, path},可转换为 decode=True 以解码帧(需安装 torchcodec) |
video_id |
string | 文件名主干,如 P000_cystoscopy_track_000 |
patient_id |
int64 | 患者ID,可用于按患者分组划分数据集 |
boxes |
struct | 每个框的标注信息,以并行列表形式存储 |
n_boxes |
int64 | 该视频的框数量 |
histological_type |
string | 患者级别的组织学类型(如:Urothelial carcinoma pTaLG) |
num_frames |
int64 | 患者级别标注的总帧数 |
light_mode |
string | 成像光模式(如:CLARA + CHROMA) |
boxes 结构体字段
每个字段为长度为 n_boxes 的列表,索引 i 对应一个框的所有字段。
| 字段 | 类型 | 说明 |
|---|---|---|
track_id |
int64 | 视频内的标注轨迹ID |
frame |
int64 | 框所属的帧号 |
label |
string | 框标签(始终为 tumor) |
xtl, ytl, xbr, ybr |
float32 | 绝对像素坐标(CVAT格式) |
occluded |
int64 | 遮挡标志 |
outside |
int64 | 外部标志 |
keyframe |
int64 | 关键帧标志 |
z_order |
int64 | Z轴顺序 |
数据划分说明
- 数据集仅提供单一
train分割,不提供预定义的验证/测试集。 - 建议使用
patient_id列自行构建按患者分组的数据划分,以避免数据泄漏(同一患者的所有视频应位于同一分割中)。 - 示例代码中展示了如何划分3个测试患者、3个验证患者及剩余训练患者的方法。
加载与使用
python from datasets import load_dataset ds = load_dataset("milkyroad/B", split="train")
默认不解码视频(无需 torchcodec 即可加载)
print(ds[0]["video"]) # {bytes: ..., path: P000_cystoscopy_track_000.mp4} print(ds[0]["n_boxes"]) # 233 boxes = ds[0]["boxes"] print(boxes["frame"][0], boxes["label"][0], boxes["xtl"][0])
如需解码视频帧,需安装 torchcodec,然后将列转换为 Video(decode=True):
python from datasets import Video ds = ds.cast_column("video", Video(decode=True))
注意事项
- 边界框坐标为源视频帧中的绝对像素坐标(CVAT格式)。
- 数据划分必须按患者进行以防止泄漏,为此提供了
patient_id字段。




