FORA / README.md
sezginer's picture
Update README.md
bc38e21 verified
|
Raw History Blame Contribute Delete
18.8 kB
---
title: FORA
license: cc-by-nc-sa-4.0
task_categories:
- image-to-text
- text-to-image
- image-classification
- zero-shot-classification
- visual-question-answering
- object-detection
language:
- en
tags:
- chest-x-ray
- chest-radiograph
- radiology
- radiology-report-generation
- medical
- medical-imaging
- multimodal
- vision-language
- healthcare
- diagnostic-imaging
- computer-vision
- foundation-model
- science
- huggingscience
- fora
size_categories:
- 100K<n<1M
pretty_name: 'FORA: Reliable and grounded reporting of any computed tomography scan'
extra_gated_prompt: >
## Terms and Conditions for Using the FORA Chest Radiograph Dataset
**1. Acceptance of Terms**
Accessing and using the FORA chest radiograph dataset implies your agreement to these terms
and conditions. If you disagree with any part, please refrain from using the dataset.
**2. Permitted Use**
- The dataset is intended solely for academic, research, and educational purposes.
- Any commercial exploitation of the dataset without prior permission is strictly forbidden.
- You must adhere to all relevant laws, regulations, and research ethics, including data privacy
and protection standards.
**3. Data Protection and Privacy**
- Acknowledge the presence of sensitive information within the dataset and commit to
maintaining data confidentiality.
- Direct attempts to re-identify individuals from the dataset are prohibited.
- Ensure compliance with data protection laws such as GDPR and HIPAA.
**4. Attribution**
- Cite the dataset and acknowledge the providers in any publications resulting from its use.
- Claims of ownership or exclusive rights over the dataset or derivatives are not permitted.
**5. Redistribution**
- Redistribution of the dataset or any portion thereof is not allowed.
- Sharing derived data must respect the privacy and confidentiality terms set forth.
**6. Disclaimer**
The dataset is provided "as is" without warranty of any kind, either expressed or implied,
including but not limited to the accuracy or completeness of the data.
**7. Limitation of Liability**
Under no circumstances will the dataset providers be liable for any claims or damages
resulting from your use of the dataset.
**8. Access Revocation**
Violation of these terms may result in the termination of your access to the dataset.
**9. Amendments**
The terms and conditions may be updated at any time; continued use of the dataset signifies
acceptance of the new terms.
**10. Governing Law**
These terms are governed by the laws of the location of the dataset providers, excluding
conflict of law rules.
**Consent:**
Accessing and using the FORA chest radiograph dataset signifies your acknowledgment and
agreement to these terms and conditions.
extra_gated_fields:
First Name: text
Last Name: text
Institution: text
Role: text
Email: text
I have read and agree with Terms and Conditions for using the FORA chest radiograph dataset: checkbox
configs:
- config_name: reports
data_files:
- split: train
path: reports/batch*_reports.csv
- config_name: metadata
data_files:
- split: train
path: metadata/batch*_metadata.csv
- config_name: labels
data_files:
- split: train
path: labels/fora_cxr_labels.csv
---
<p align="center">
<img src="https://raw.githubusercontent.com/forithmus/FORA/main/assets/dataset_banner.png" alt="FORA: Reliable and grounded reporting of any computed tomography scan 302,772 chest radiographs, 286,561 studies with radiology reports, 193,667 patients, 311 labelled findings, native resolution." width="860">
</p>
<p align="center">
<a href="https://arxiv.org/abs/2611.32823">
<img alt="Paper" src="https://img.shields.io/badge/Paper-arXiv%202611.32823-B31B1B?logo=arxiv&logoColor=white">
</a>
<a href="https://github.com/forithmus/FORA">
<img alt="Code" src="https://img.shields.io/badge/Code-GitHub-181717?logo=github&logoColor=white">
</a>
<a href="https://huggingface.co/datasets/Forithmus/FORA#dataset-organization">
<img alt="Dataset Access" src="https://img.shields.io/badge/Dataset%20Getting%20Started-Hugging%20Face-FFD21E?logo=huggingface&logoColor=black">
</a>
<a href="https://litera.forithmus.com/">
<img alt="Litera" src="https://img.shields.io/badge/Explore-Litera-4B8BBE">
</a>
</p>
Welcome to the official page of the **FORA chest radiograph dataset**, a large collection of chest X-ray studies
paired with their radiology reports, curated metadata and report-derived finding labels. It is the dataset on which
the architecture of [FORA](https://arxiv.org/abs/2611.32823) was first developed and benchmarked before the model
was extended to computed tomography. Following [CT-RATE](https://huggingface.co/datasets/ibrahimhamamci/CT-RATE) and
[MR-RATE](https://huggingface.co/datasets/Forithmus/MR-RATE), every image is released at its native acquisition
resolution and bit depth, together with the report written by the radiologist during clinical interpretation.
<p align="center">
<img src="https://raw.githubusercontent.com/forithmus/FORA/main/assets/ed1a_report_example.png" alt="A validation radiograph with its reference report, the report generated by FORA and the evidence of FORA" width="100%">
</p>
<p align="center"><sub>Reference and FORA reports for an internal validation radiograph with matched statements numbered, and FORA's evidence. Dots mark the reference findings that each model's report recovered.</sub></p>
---
# News & Announcements
- **[2026-11-25]** Public release of the FORA chest radiograph dataset: images, reports, metadata, finding labels and data splits.
> This section will be updated with new releases, corrections, and derivatives.
---
# A Dataset of Chest Radiographs with Corresponding Radiology Reports
The dataset consists of **302,772** chest radiographs from **286,561** imaging studies of **193,667**
unique patients, acquired in routine care at Istanbul Medipol University hospitals between 2008 and
2026. A study is one examination and its report, and may contain several films (for example a
posteroanterior and a lateral view, or repeated portable films). Patients of all ages are included, from newborns to
older adults, and the cohort includes portable anteroposterior films as well as standard posteroanterior and lateral
examinations.
| | Count |
|---|---|
| Patients | 193,667 |
| Studies (examination + report) | 286,561 |
| Images | 302,772 |
| Frontal posteroanterior (PA) / anteroposterior (AP) / lateral / other frontal or unclassified | 219,940 / 37,398 / 14,672 / 30,762 |
| Paediatric studies (age < 18) | 66,177 |
| Total size | 1.80 TB |
### Radiographs
Images were exported from the hospital PACS as DICOM and converted to pixel arrays with a pydicom-based pipeline.
Each image keeps its original matrix (median 2,540 × 2,631 pixels, median pixel spacing
0.148 mm) and its original stored bit depth (10 to 16 bits) as 16-bit unsigned integers. The modality
LUT was applied, and images stored as MONOCHROME1 were inverted, so that **higher values are always brighter (more
attenuating)** in every image. No resizing, cropping, windowing or histogram equalisation was applied. Images are
stored losslessly as [JPEG-LS](https://jpeg.org/jpegls/) files, the lossless compression standard used by DICOM,
which halves the size of the raw pixel data while reproducing every pixel bit for bit. Each image was decoded again
after compression and checked against the original pixel array.
### Metadata
Each image comes with a curated set of DICOM attributes: acquisition view, patient age and sex, scanner manufacturer
and model, pixel spacing, exposure parameters and the display window stored by the scanner. All identifiers were replaced by new pseudonymous identifiers, and all names, accession numbers,
DICOM UIDs, institution, station, operator and physician fields, device serial numbers and private tags were
removed. Absolute dates and times were removed. Instead, every study carries `days_since_first_study`, the number of
days since the same patient's first study in the dataset, which keeps the order and spacing of follow-up
examinations. Ages of 90 years and above are reported as 90.
### Radiology Reports
All reports were anonymized to remove patient and staff identifiers, translated from Turkish into English and
structured into clinical information, technique, comparison, findings and impression sections. Dates that remained
in the text, such as the date of a prior examination, were replaced by tokens (`[date_1]`, `[date_2]`, ...) that are
consistent within each report, and times of day by `[time]`.
### Finding Labels
Every report was labeled against a vocabulary of **311 chest radiograph findings** covering abnormalities, anatomical
variants, support devices and postoperative states, grouped into 16 categories. Labels were extracted from
the Findings and Impression sections with Gemma-4-31B-it in three passes, following the procedure described in the
[FORA paper](https://arxiv.org/abs/2611.32823). The first pass extracted candidate findings from the vocabulary, the
second verified each candidate against a verbatim quote from the report, and the third applied the verification
and re-checked commonly missed findings. Each finding of each study has one of four states.
| Value | Meaning |
|---|---|
| `1` | asserted, the report states the finding |
| `-1` | uncertain, the report raises the finding as possible or suspected |
| `0` | denied, the report states that the finding is absent |
| empty | not mentioned in the report |
In the FORA paper, asserted and uncertain findings counted as positive, and findings that a report did not mention
were treated as negative. The 129 findings with at least 50 positive training studies were the classification
targets of the paper and are listed in `labels/fora_cxr_paper_targets.json`.
### Data Splits
We provide [patient-level data splits](https://huggingface.co/datasets/Forithmus/FORA/blob/main/splits.csv). They
are the splits used in the FORA paper and are shared so that the community can benchmark methods under the same
conditions. All studies of a patient belong to the same split.
| Split | # Patients | # Studies | # Images |
|---|---|---|---|
| Train | 173,865 | 257,596 | 272,110 |
| Validation | 19,802 | 28,965 | 30,662 |
| **Total** | **193,667** | **286,561** | **302,772** |
---
# Dataset Organization
Images are grouped into 98 batches by patient, so all studies of a patient are in the same batch. Each batch
is split into four zip archives to stay within Hugging Face file limits, and every archive can be downloaded and
used on its own. Validation patients are in batches 01, 09, 15, 26, 33, 59, 60, 62, 68, 85.
```plaintext
Forithmus/FORA
├── images/
│ ├── batch00/
│ │ ├── batch00_part0.zip
│ │ ├── ...
│ │ └── batch00_part3.zip
│ └── ... (batch00–batch97)
├── metadata/
│ ├── batch00_metadata.csv one row per image
│ └── ...
├── reports/
│ ├── batch00_reports.csv one row per study
│ └── ...
├── labels/
│ ├── fora_cxr_labels.csv one row per study, 311 findings
│ ├── fora_cxr_vocabulary.json findings and their categories
│ └── fora_cxr_paper_targets.json
└── splits.csv one row per study
```
Inside each zip, every study has its own folder.
```plaintext
<study_uid>/
├── <study_uid>_pa.jls
├── <study_uid>_lateral.jls
└── ...
```
The file name ends with the `series_id`, which is the view of the image (`pa`, `ap`, `lateral`, `frontal` for a
frontal film whose projection could not be determined, `other`), followed by `-2`, `-3`, ... when a study has several
images of the same view, in acquisition order.
### Joining the tables
```plaintext
patient_uid → groups all studies of one patient, joins to splits.csv
study_uid → links the images, the report, the labels and the split of one study
series_id → identifies one image within its study, part of the image file name
```
### Metadata columns
| Column | Description |
|---|---|
| `patient_uid`, `study_uid`, `series_id` | Pseudonymous identifiers, see above. |
| `batch_id`, `split` | Batch folder and data split. |
| `file` | `<zip path>::<path inside the zip>` of the image. |
| `days_since_first_study` | Days between this study and the patient's first study in the dataset (0 for the first study). |
| `patient_age_years` | Age at the study. Whole years from 2 years on, two decimals below, 90 for 90 and older. |
| `patient_sex` | `M`, `F` or empty. |
| `view` | Acquisition view classified from the DICOM view position, series description and protocol: `PA`, `AP`, `lateral`, `frontal-?`, other. |
| `anatomy` | `chest` or `chest-abdomen` (films that include the abdomen, common in newborns). |
| `processing_state` | `ORIGINAL`, `POST_PROCESSED` or `DERIVED`, from the DICOM image type. |
| `rows`, `columns` | Image size in pixels. |
| `pixel_spacing_mm`, `pixel_spacing_source` | Pixel spacing in mm (row, column) and the DICOM attribute it was read from. |
| `inverted_from_monochrome1` | Whether the image was stored as MONOCHROME1 and inverted. |
| `window_center`, `window_width` | Display window stored by the scanner, in the pixel values of the released image. |
| `Modality`, `Manufacturer`, `ManufacturerModelName` | Imaging modality (CR or DX) and device. |
| `BodyPartExamined` | Body part recorded by the scanner. |
| `ViewPosition`, `ImageLaterality`, `PatientPosition` | Original DICOM positioning attributes. |
| `PhotometricInterpretationOriginal`, `BitsStored`, `PixelSpacing`, `ImagerPixelSpacing` | Original pixel attributes. |
| `KVP`, `ExposureTime_ms`, `XRayTubeCurrent_mA`, `Exposure_mAs`, `ExposureIndex`, `TargetExposureIndex`, `DeviationIndex`, `AreaDoseProduct_dGycm2`, `DistanceSourceToDetector_mm`, `Grid`, `FilterType` | Exposure and geometry attributes, empty when the scanner did not record them. |
| `BurnedInAnnotation` | The DICOM flag. Annotations in this dataset are laterality and orientation markers. |
### Reports, labels and splits
* `reports/batchXX_reports.csv` has `patient_uid`, `study_uid`, `batch_id`, `split`, `clinical_information`,
`technique`, `comparison`, `findings` and `impression`. Empty sections are empty strings.
* `labels/fora_cxr_labels.csv` has `study_uid`, `split` and one column per finding with the values described above.
`labels/fora_cxr_vocabulary.json` gives the category of every finding.
* `splits.csv` has `patient_uid`, `study_uid`, `batch_id` and `split`.
---
# Getting Started
Download a subset with `huggingface_hub`, for example the validation batches, all tables, or one archive.
```python
from huggingface_hub import snapshot_download
root = snapshot_download(
"Forithmus/FORA", repo_type="dataset",
allow_patterns=["splits.csv", "labels/*", "metadata/*", "reports/*",
"images/batch01/*"], # one batch, about 17 GB
)
```
Read an image directly from its zip with [imagecodecs](https://pypi.org/project/imagecodecs/)
(`pip install imagecodecs`). Any JPEG-LS decoder works, for example [CharLS](https://github.com/team-charls/charls)
or `pillow-jpls`.
```python
import zipfile, imagecodecs, numpy as np, pandas as pd
meta = pd.read_csv(f"{root}/metadata/batch01_metadata.csv")
row = meta.iloc[0]
archive, member = row["file"].split("::")
with zipfile.ZipFile(f"{root}/{archive}") as z:
image = imagecodecs.jpegls_decode(z.read(member)) # uint16, rows x columns
# display with the scanner's window
lo = row["window_center"] - row["window_width"] / 2
hi = row["window_center"] + row["window_width"] / 2
display = np.clip((image.astype(np.float32) - lo) / (hi - lo), 0, 1)
```
The reports, metadata and labels can also be browsed in the dataset viewer above or loaded with
`datasets.load_dataset("Forithmus/FORA", "reports")`.
---
# FORA
FORA is a general-purpose model that recognizes and spatially localizes radiological findings and generates
reports, with supervision from routine reports and no manually annotated lesions. Its architecture combines a
self-supervised visual encoder, multiple-instance learning and an interpretable concept bottleneck. The architecture
was first developed and benchmarked on this chest radiograph dataset before a separate model was trained on
three-dimensional CT.
Code is available at [github.com/forithmus/FORA](https://github.com/forithmus/FORA).
### Model weights
The `weights/` folder of this repository holds the trained FORA CT and chest radiograph models together with the
Gemma-4-31B-it and DINOv2-large models they use, so it can be passed directly to the inference code.
```bash
huggingface-cli download Forithmus/FORA --repo-type dataset --include "weights/*" --local-dir fora
python inference/ct/infer.py --weights fora/weights --study study.json --output result.json ...
python inference/cxr/infer.py --weights fora/weights --study study.json --output result.json ...
```
See `weights/README.md` for the contents of the folder and
[the inference guide](https://github.com/forithmus/FORA/tree/main/inference) for inputs and outputs.
---
# Citing Us
When using this dataset, please cite the following paper.
```bibtex
@article{er2026fora,
title = {Reliable and grounded reporting of any computed tomography scan with FORA},
author = {Er, Sezgin and Turkbey, Utku and G{\"u}r, Alperen and Durugol, Omer Faruk and Shit, Suprosanna and
Xu, Murong and Wolleb, Julia and Wang, Jiayi and Wang, Xiaoliang and Reynaud, Hadrien and
Spasojevic, Teodora and Yang, Dong and Myronenko, Andriy and Guo, Pengfei and He, Yufan and
Zhao, Can and Edgar, Marc and Maier, Andreas and Moor, Michael and Ozdemir, Mehmet Kemal and
Xu, Daguang and Kainz, Bernhard and Menze, Bjoern and Hamamci, Ibrahim Ethem},
journal = {arXiv preprint arXiv:2611.32823},
year = {2026}
}
```
# License
We are committed to fostering innovation and collaboration in the research community. To this end, all elements of
the FORA chest radiograph dataset are released under a
**[Creative Commons Attribution–NonCommercial–ShareAlike (CC BY-NC-SA)](https://creativecommons.org/licenses/by-nc-sa/4.0/)**
license.
This licensing framework ensures that our contributions can be freely used for non-commercial research purposes,
while also encouraging contributions and modifications, provided that the original work is properly cited and any
derivative works are shared under similar terms.
For commercial inquiries, please contact: contact@forithmus.com.