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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-4.0
|
| 3 |
+
arxiv: 2505.18087
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
## Overview
|
| 7 |
+
The CheXStruct dataset, introduced in the paper
|
| 8 |
+
[CXReasonBench: A Benchmark for Evaluating Structured Diagnostic Reasoning in Chest X-rays](https://arxiv.org/abs/2505.18087),
|
| 9 |
+
provides structured clinical information extracted from high-quality chest X-ray images using the CheXStruct pipeline, a fully automated framework for deriving diagnostic reasoning from chest X-rays.
|
| 10 |
+
|
| 11 |
+
The pipeline generates structured outputs for 12 diagnostic tasks, categorized as Radiological Findings and Image Quality Assessment,
|
| 12 |
+
as well as 3 global filtering tasks to exclude non-frontal or corrupted images:
|
| 13 |
+
|
| 14 |
+
- **Global Filtering**
|
| 15 |
+
- Excludes non-frontal or corrupted images by assessing the number of segmented anatomical structures, anatomical positioning (e.g., presence of substantial abdominal or pelvic anatomy), and post-processing artifacts (e.g., low contrast).
|
| 16 |
+
|
| 17 |
+
- **Radiological Findings**
|
| 18 |
+
- Cardiomegaly, Mediastinal Widening, Carina Angle, Trachea Deviation,
|
| 19 |
+
Aortic Knob Enlargement, Ascending Aorta Enlargement,
|
| 20 |
+
Descending Aorta Enlargement, and Descending Aorta Tortuous
|
| 21 |
+
|
| 22 |
+
- **Image Quality Assessment**
|
| 23 |
+
- Inclusion, Inspiration Level, Rotation, and Projection
|
| 24 |
+
|
| 25 |
+
---
|
| 26 |
+
|
| 27 |
+
## Dataset Structure
|
| 28 |
+
|
| 29 |
+
The CheXStruct dataset is derived from three publicly available chest X-ray datasets and is organized into three main folders, each corresponding to one of the source datasets:
|
| 30 |
+
|
| 31 |
+
- `nih_cxr14`: Derived from the NIH Chest X-ray 14 dataset, available at https://www.kaggle.com/datasets/nih-chest-xrays/data.
|
| 32 |
+
- `vindrcxr`: Derived from the VinDr-CXR dataset, available at https://github.com/vinbigdata-medical/vindr-cxr.
|
| 33 |
+
- `openi`: Derived from the OpenI dataset, available at https://www.kaggle.com/datasets/raddar/chest-xrays-indiana-university.
|
| 34 |
+
|
| 35 |
+
The **MIMIC-CXR-JPG** dataset is not included in this repository due to requiring PhysioNet credential access but will be uploaded to [PhysioNet](https://physionet.org/) soon!
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
Within each folder, there are 15 `.csv` files: 12 corresponding to the diagnostic tasks listed in the Overview,
|
| 39 |
+
and 3 additional files (`abdominal_xray.csv`, `mask_number.csv`, `window.csv`) generated during a global filtering process to exclude non-frontal or corrupted chest X-ray images.
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
These files contain the structured outputs extracted by the CheXStruct pipeline for the respective task.
|
| 43 |
+
|
| 44 |
+
### CSV File Structure
|
| 45 |
+
|
| 46 |
+
Each `.csv` file contains the following common columns across all diagnostic tasks:
|
| 47 |
+
- **image_id**: Unique identifier for the chest X-ray image in the respective dataset.
|
| 48 |
+
- **viewposition**: The chest X-ray view position, either PA (posteroanterior) or AP (anteroposterior). For datasets that do not support view position (e.g., OpenI), this is marked as N/A.
|
| 49 |
+
- **label**: Binary label (1/0) indicating the presence or absence of the specific radiological finding or the state of the image quality assessment, derived by the CheXStruct pipeline. The specific meaning of the label varies by task, as detailed below.
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
In addition to these common columns, each .csv file includes task-specific columns representing:
|
| 53 |
+
- **Anatomical landmarks**: Extracted landmarks derived from segmentation masks (e.g., cardiac end points, thoracic end points).
|
| 54 |
+
- **Diagnostic measurements**: Measurements calculated based on the anatomical landmarks (e.g., cardiac width, thoracic width).
|
| 55 |
+
- **Diagnostic indices**: Computed indices based on the diagnostic measurements (e.g., cardiothoracic ratio - CTR).
|
| 56 |
+
|
| 57 |
+
The specific column names vary by task, as follows:
|
| 58 |
+
|
| 59 |
+
<details>
|
| 60 |
+
<summary>Global Filtering</summary>
|
| 61 |
+
|
| 62 |
+
- **mask_number.csv**
|
| 63 |
+
- `label`: 0 indicates an invalid image (e.g., too few structures detected, suggesting the image is not a chest X-ray, is corrupted or blank, or has anatomical structures obscured due to poor patient positioning or motion artifacts), 1 indicates a valid image.
|
| 64 |
+
- `mask_count`: The count of valid segmentation masks, determined as the number of masks where the sum of pixel values is non-zero.
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
- **abdomial_xray.csv**
|
| 68 |
+
- `label`: 0 indicates the presence of substantial abdominal or pelvic anatomy, 1 indicates a standard chest X-ray.
|
| 69 |
+
- `y_start`: Y-coordinate of the top of the image
|
| 70 |
+
- `y_heart_max`: Y-coordinate of the lowest point of the heart mask
|
| 71 |
+
- `y_end`: Y-coordinate of the bottom of the image
|
| 72 |
+
- `distance_upper`: Vertical distance from `y_start` to `y_heart_max`, representing the portion of the image above the heart
|
| 73 |
+
- `distance_lower`: Vertical distance from `y_heart_max` to `y_end`, representing the portion of the image below the heart
|
| 74 |
+
- `ratio`: Ratio of the vertical distances below and above the heart, calculated as `distance_lower` / `distance_upper`.
|
| 75 |
+
|
| 76 |
+
- **window.csv**:
|
| 77 |
+
- `label`: 0 indicates the presence of post-processing artifacts, 1 indicates acceptable image quality.
|
| 78 |
+
- `gradient_mean`: The mean gradient magnitude across the image, calculated as a metric of edge strength to detect post-processing artifacts.
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
</details>
|
| 82 |
+
<details>
|
| 83 |
+
<summary>Radiological Findings</summary>
|
| 84 |
+
|
| 85 |
+
- **cardiomegaly.csv**
|
| 86 |
+
- `label`: 1 indicates the presence of cardiomegaly, 0 indicates its absence.
|
| 87 |
+
- `heart_xmin`, `heart_xmax`: X-coordinates of the heart's left and right end points.
|
| 88 |
+
- `lung_xmin`, `lung_xmax`: X-coordinates of the lung's left and right end points.
|
| 89 |
+
- `heart_width`, `lung_width`: Widths of the heart and lungs, calculated from the coordinates `heart_xmin`, `heart_xmax`, `lung_xmin`, and `lung_xmax`, respectively.
|
| 90 |
+
- `ctr`: cardiothoracic ratio, computed as the ratio of heart width to lung width.
|
| 91 |
+
|
| 92 |
+
- **mediastinal_widening.csv**
|
| 93 |
+
- `label`: 1 indicates the presence of mediastinal widening, 0 indicates its absence.
|
| 94 |
+
- `mediastinum_xmin`, `mediastinum_xmax`: X-coordinates of the mediastinum's left and right end points.
|
| 95 |
+
- `lung_xmin`, `lung_xmax`: X-coordinates of the lung's left and right end points at the .
|
| 96 |
+
- `mediastinum_width`, `lung_width`: Widths of the mediastinum and lungs, calculated from the coordinates `mediastinum_xmin`, `mediastinum_xmax`, `lung_xmin`, and `lung_xmax`, respectively.
|
| 97 |
+
- `mcr`: mediastinal to chest width ratio, computed as the ratio of mediastinum width to lung width.
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
- **carina_angle.csv**
|
| 101 |
+
- `label`: 1 indicates an abnormal carina angle, 0 indicates a normal angle.
|
| 102 |
+
- `point_1`, `point_2`, `point_3`: Coordinates of three points defining the tracheal bifurcation, where `point_2` is the bifurcation point and `point_1` and `point_3` are points along the right and left main bronchi, respectively.
|
| 103 |
+
- `angle`: The angle formed at the bifurcation point, measured directly in degrees.
|
| 104 |
+
|
| 105 |
+
- **trachea_deviation.csv**
|
| 106 |
+
- `label`: 1 indicates trachea deviation, 0 indicates no deviation.
|
| 107 |
+
- `point_1` to `point_9`: Coordinates of nine points along the midline of the trachea.
|
| 108 |
+
- `direction_per_pnt`: Direction of the trachea mask relative to each point at the same horizontal level (same y-coordinate), labeled as left, right, or flat for each of the nine points.
|
| 109 |
+
- `direction`: Overall trachea deviation direction, determined by aggregating the per-point direction assessments.
|
| 110 |
+
|
| 111 |
+
- **aortic_knob_enlargement.csv**
|
| 112 |
+
- `label`: 1 indicates enlargement of the aortic knob, 0 indicates no enlargement.
|
| 113 |
+
- `aortic_knob_xmin`, `aortic_knob_xmax`: X-coordinates of the aortic knob's left and right end points.
|
| 114 |
+
- `trachea_point_left`, `trachea_point_right`: Coordinates of the trachea's left and right end points.
|
| 115 |
+
- `aortic_knob_width`, `trachea_width`: Widths of the aortic knob and trachea, calculated from the coordinates `aortic_knob_xmin`, `aortic_knob_xmax`, `trachea_point_left`, and `trachea_point_right`, respectively.
|
| 116 |
+
- `ratio`: the ratio of aortic knob width to trachea width.
|
| 117 |
+
|
| 118 |
+
- **ascending_aorta_enlargement.csv**
|
| 119 |
+
- `label`: 1 indicates enlargement of the ascending aorta, 0 indicates no enlargement.
|
| 120 |
+
- `heart_point`: Coordinates of the most right-lung side point on the right heart border.
|
| 121 |
+
- `trachea_point`: Coordinates of the most right-lung side point of the trachea.
|
| 122 |
+
- `ratio`: Ratio of the area of the ascending aorta that extends beyond a straight line connecting the heart point and trachea point to the total area of the ascending aorta mask.
|
| 123 |
+
|
| 124 |
+
- **descending_aorta_enlargement.csv**
|
| 125 |
+
- `label`: 1 indicates enlargement of the descending aorta, 0 indicates no enlargement.
|
| 126 |
+
- `desc_aorta_point_left`,`desc_aorta_point_right`: Coordinates of the descending aorta's left and right end points.
|
| 127 |
+
- `trachea_point_left`, `trachea_point_right`: Coordinates of the trachea's left and right end points.
|
| 128 |
+
- `desc_aorta_width`, `trachea_width`, : Widths of the descending aorta and trachea, calculated from the coordinates `desc_aorta_point_left`, `desc_aorta_point_right`, `trachea_point_left`, and `trachea_point_right`, respectively.
|
| 129 |
+
- `ratio`: the ratio of descending aorta width to trachea width.
|
| 130 |
+
|
| 131 |
+
- **descending_aorta_tortuous.csv**
|
| 132 |
+
- `label`: 1 indicates tortuosity of the descending aorta, 0 indicates no tortuosity.
|
| 133 |
+
- `point_1` to `point_6`: Coordinates of the rightmost points at the boundaries of five equal vertical segments of the thoracic descending aorta region.
|
| 134 |
+
- `curvature`: Mean curvature across the six points, computed using finite difference methods to evaluate the tortuosity.
|
| 135 |
+
|
| 136 |
+
</details>
|
| 137 |
+
|
| 138 |
+
<details>
|
| 139 |
+
<summary>Image Quality Assessment</summary>
|
| 140 |
+
|
| 141 |
+
- **inclusion.csv**
|
| 142 |
+
- `label`: 1 indicates sufficient inclusion of lung regions (e.g., apex, side, and CPA are adequately captured), 0 indicates exclusion.
|
| 143 |
+
- `label_side_right_lung`, `label_side_left_lung`, `label_apex_right_lung`, `label_apex_left_lung`, `label_bottom_right_lung`, `label_bottom_left_lung`: Binary labels (1 for inclusion, 0 for exclusion) indicating whether the side, apex, and costophrenic angle (CPA) of the right and left lungs are included in the image.
|
| 144 |
+
- `point_apex_right_lung`, `point_apex_left_lung`, `point_side_right_lung`, `point_side_left_lung`, `point_bottom_right_lung`, `point_bottom_left_lung`: Coordinates of the apex, side, and (CPA) of the right and left lungs.
|
| 145 |
+
- `ratio_apex_right_lung`, `ratio_apex_left_lung`, `ratio_side_right_lung`, `ratio_side_left_lung`, `ratio_bottom_right_lung`, `ratio_bottom_left_lung`: Ratios of the distance from each corresponding coordinate (apex, side, CPA) to the image edge, relative to a reference distance, for the right and left lungs.
|
| 146 |
+
|
| 147 |
+
- **inspiration.csv**
|
| 148 |
+
- `label`: 1 indicates inadequate inspiration, 0 indicates adequate inspiration
|
| 149 |
+
- `mid-clavicular_line(x)`: X-coordinate of the mid-clavicular line
|
| 150 |
+
- `rib_position`: The number of the first right posterior rib that intersects with the right hemidiaphragm at the mid-clavicular line
|
| 151 |
+
|
| 152 |
+
- **rotation.csv**
|
| 153 |
+
- `label`: 1 indicates rotation, 0 indicates proper alignment.
|
| 154 |
+
- `medial_end_right_clavicle`, `medial_end_left_clavicle`: Coordinates of the medial end points of the right and left clavicles.
|
| 155 |
+
- `midline_points`: Coordinates of the spinous process points nearest to each clavicle's medial end point, defined within a ±1 vertebrae margin around the nearest spinous process for both clavicles.
|
| 156 |
+
- `midline_point_right_clavicle`, `midline_point_left_clavicle`: Coordinates of the points on the spinous process line at the same vertical level (y-coordinate) as the medial end points of the right and left clavicles, respectively
|
| 157 |
+
- `distance_right`, `distance_left`: Horizontal distances between the medial end point of the right and left clavicles and their corresponding points on the spinous process line.
|
| 158 |
+
- `ratio`: Ratio of the minimum to the maximum of the right and left distances, calculated as `min(distance_right, distance_left) / max(distance_right, distance_left)`.
|
| 159 |
+
|
| 160 |
+
- **projection.csv**
|
| 161 |
+
- `label`: 1 indicates large scapular overlap with lung fields, 0 indicates indicates minimal overlap.
|
| 162 |
+
- `scapular_region_right`, `scapular_region_left`: Areas of the right and left scapular regions, derived from segmented masks.
|
| 163 |
+
- `overlap_region_righn`, `overlap_region_left`: Areas of overlap between the right and left scapulae and the lung fields.
|
| 164 |
+
- `ratio_right`, `ratio_left`: Ratios of the overlap area to the total scapular region area for the right and left scapulae, respectively.
|
| 165 |
+
|
| 166 |
+
</details>
|
| 167 |
+
|
| 168 |
+
For detailed extraction methods of these columns, refer to Appendix A Details of CheXStruct in the paper [CXReasonBench: A Benchmark for Evaluating Structured Diagnostic Reasoning in Chest X-rays](https://arxiv.org/abs/2505.18087).
|
| 169 |
+
|
| 170 |
+
---
|
| 171 |
+
## Citation
|
| 172 |
+
|
| 173 |
+
If you use this dataset in your research, please cite the following paper:
|
| 174 |
+
|
| 175 |
+
```
|
| 176 |
+
@article{lee2025cxreasonbench,
|
| 177 |
+
title={CXReasonBench: A Benchmark for Evaluating Structured Diagnostic Reasoning in Chest X-rays},
|
| 178 |
+
author={Lee, Hyungyung and Choi, Geon and Lee, Jung-Oh and Yoon, Hangyul and Hong, Hyuk Gi and Choi, Edward},
|
| 179 |
+
journal={arXiv preprint arXiv:2505.18087},
|
| 180 |
+
year={2025}
|
| 181 |
+
}
|
| 182 |
+
```
|
| 183 |
+
|
| 184 |
+
---
|
| 185 |
+
## License
|
| 186 |
+
The dataset is released under CC BY 4.0.
|
| 187 |
+
Please ensure compliance with the licenses of the source datasets when using this dataset.
|
| 188 |
+
|
| 189 |
+
---
|
| 190 |
+
## Contact
|
| 191 |
+
|
| 192 |
+
For questions or issues related to the dataset, please open an issue on the Hugging Face dataset repository or contact: ttumyche@kaist.ac.kr
|