region:us
---
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
  - split: test
    path: data/test-*
dataset_info:
  features:
  - name: PMC_id
    dtype: string
  - name: context
    dtype: string
  - name: question
    dtype: string
  - name: answer
    dtype: string
  - name: inline
    dtype: string
  - name: img_ref
    dtype: string
  splits:
  - name: train
    num_bytes: 634222272
    num_examples: 316838
  - name: test
    num_bytes: 253538916
    num_examples: 120836
  download_size: 139781550
  dataset_size: 887761188
---
# PMC-CaseReport Dataset

- [PMC-CaseReport_original Dataset](#pmc-casereport-dataset)
  - [Daraset Structure](#dataset-structure)
  - [Sample](#sample)

This is the text parts and the figure parts can be dowloaded from https://pan.baidu.com/s/1Src_rhXsaOFp8zJ_3zMFsQ?pwd=p3ne.

## Dataset Structure

**PMC-CaseReport** (Filtered version: 317K VQA pairs for taining and of 121K for testing images).

The dataset can be loading following huggingface datasets rule:
```
from datasets import load_dataset

dataset = load_dataset("chaoyi-wu/PMC-CaseReport_original")
```

- 
## Sample

A case in dataset is shown bellow,

| PMC_id   | PMC9052276                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| context  | We report the case of a 73-year-old female who presented to the ER with left-sided body weakness of unclear duration.She had an ischemic stroke four years prior with no residual neurologic deficits, a myocardial infarction requiring coronary artery bypass grafting (CABG) two years prior, hypertension, and dementia. Her vital signs were blood pressure (BP) 117/78 mmHg, pulse 121 beats per minute, temperature 98.9 F, respiratory rate (RR) 18 cycles/minute, and oxygen saturation (SpO2) of 97% on ambient air.She was disoriented to place and time with a Glasgow Coma Score (GCS) of 14 (E4V4M6).Her speech was slurred, cranial nerves (CN) 2-12 were grossly intact, motor strength on the left upper and lower extremities was 0/5 and on the right upper and lower extremities was 4/5, and the sensation was preserved in all extremities.The patient had a National Institutes of Health Stroke Scale (NIHSS) score of 16 and a Modified Rankin Score (mRS) of 5 points.A non-contrast head CT scan revealed evidence of old lacuna infarcts in the basal ganglia and thalamus.No intracranial hemorrhage or acute infarct was found.CT perfusion was not done as our center lacks the resources needed to perform that. |
| inline   | A brain MRI scan showed an acute pontine stroke (Figures and old infarcts                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| question | What did the brain MRI scan reveal?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| answer   | The brain MRI scan showed an acute pontine stroke and old infarcts.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| img_ref  | "['FIG1', 'FIG3', 'FIG4']"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |

Explanation to each key

- PMC_id: corresponding PMC paper id.
- context: the context in case report before discussing about the image.
- inline: the inline sentence in original paper for referring and should not be input into network
- question: the genrated question.
- answer: the correct answer.
- img_ref: the list for related img id.

You can get the image form our PMC figure parts, and fig is named unified as ```PMCxxxxxxx_figid.jpg``` like ```PMC9052276_FIG1.jpg```

Note that, we have not filter the context strictly. Thus, in few cases the answer may be leaked in context. 
Besides, our PMC figures are collected before this datasets, and during the time window, some papers have been updated. Thus some figures may be missed in our figure base.