Datasets:
Commit ·
74dfe31
verified ·
0
Parent(s):
Duplicate from Aquiles-ai/Medical-Vision
Browse filesCo-authored-by: Fredy Rivera <Fredtt3@users.noreply.huggingface.co>
- .gitattributes +59 -0
- README.md +166 -0
- dataset_dict.json +1 -0
- train/data-00000-of-00002.arrow +3 -0
- train/data-00001-of-00002.arrow +3 -0
- train/dataset_info.json +19 -0
- train/state.json +16 -0
.gitattributes
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.mds filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
# Audio files - uncompressed
|
| 39 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
# Audio files - compressed
|
| 43 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
# Image files - uncompressed
|
| 49 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
# Image files - compressed
|
| 54 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
# Video files - compressed
|
| 58 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
+
*.webm filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- visual-question-answering
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- medical
|
| 9 |
+
- vision
|
| 10 |
+
- multimodal
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# Medical-Vision: High-Quality Medical Visual Question Answering Dataset (Aquiles-ai/Medical-Vision)
|
| 14 |
+
|
| 15 |
+
## Dataset Description
|
| 16 |
+
|
| 17 |
+
**Medical-Vision** is a curated dataset designed for Visual Question Answering (VQA) in medical contexts. This dataset combines high-quality medical images with corresponding questions and expert answers, making it ideal for training and evaluating vision-language models in healthcare applications.
|
| 18 |
+
|
| 19 |
+
### Key Features
|
| 20 |
+
|
| 21 |
+
- **8,035 high-quality examples**
|
| 22 |
+
- **Diverse medical imaging modalities** (X-rays, CT scans, MRI, pathology slides, etc.)
|
| 23 |
+
- **Natural question-answer pairs** covering clinical interpretations, diagnoses, and medical descriptions
|
| 24 |
+
- **Carefully curated and preprocessed** from multiple authoritative sources
|
| 25 |
+
- **Randomly shuffled** to prevent training biases
|
| 26 |
+
|
| 27 |
+
## Dataset Structure
|
| 28 |
+
|
| 29 |
+
### Data Fields
|
| 30 |
+
|
| 31 |
+
- `image`: PIL Image object containing the medical image
|
| 32 |
+
- `question`: String with the medical question about the image
|
| 33 |
+
- `answer`: String with the expert answer or description
|
| 34 |
+
|
| 35 |
+
### Data Splits
|
| 36 |
+
|
| 37 |
+
| Split | Examples |
|
| 38 |
+
|-------|----------|
|
| 39 |
+
| train | 8,035 |
|
| 40 |
+
|
| 41 |
+
## Usage
|
| 42 |
+
|
| 43 |
+
### Loading the Dataset
|
| 44 |
+
|
| 45 |
+
```python
|
| 46 |
+
from datasets import load_dataset
|
| 47 |
+
|
| 48 |
+
# Load the dataset
|
| 49 |
+
dataset = load_dataset("Aquiles-ai/Medical-Vision")
|
| 50 |
+
|
| 51 |
+
# Access the training split
|
| 52 |
+
train_data = dataset['train']
|
| 53 |
+
|
| 54 |
+
# View dataset info
|
| 55 |
+
print(f"Number of examples: {len(train_data)}")
|
| 56 |
+
print(f"Features: {train_data.features}")
|
| 57 |
+
```
|
| 58 |
+
|
| 59 |
+
### Example Usage
|
| 60 |
+
|
| 61 |
+
```python
|
| 62 |
+
from datasets import load_dataset
|
| 63 |
+
from PIL import Image
|
| 64 |
+
import matplotlib.pyplot as plt
|
| 65 |
+
|
| 66 |
+
# Load dataset
|
| 67 |
+
dataset = load_dataset("Aquiles-ai/Medical-Vision")
|
| 68 |
+
|
| 69 |
+
# Get a random example
|
| 70 |
+
example = dataset['train'][0]
|
| 71 |
+
|
| 72 |
+
# Display the image
|
| 73 |
+
plt.figure(figsize=(10, 6))
|
| 74 |
+
plt.imshow(example['image'])
|
| 75 |
+
plt.axis('off')
|
| 76 |
+
plt.title('Medical Image')
|
| 77 |
+
plt.show()
|
| 78 |
+
|
| 79 |
+
# Print Q&A
|
| 80 |
+
print(f"Question: {example['question']}")
|
| 81 |
+
print(f"\nAnswer: {example['answer']}")
|
| 82 |
+
```
|
| 83 |
+
|
| 84 |
+
**Output Example:**
|
| 85 |
+
```
|
| 86 |
+
Question: What do you see in this image? Describe it medically.
|
| 87 |
+
|
| 88 |
+
Answer: The chest X-ray shows bilateral infiltrates consistent with
|
| 89 |
+
pulmonary edema. There is also cardiomegaly with an enlarged cardiac
|
| 90 |
+
silhouette. The costophrenic angles are preserved, and no pleural
|
| 91 |
+
effusion is visible.
|
| 92 |
+
```
|
| 93 |
+
|
| 94 |
+
## Applications
|
| 95 |
+
|
| 96 |
+
This dataset is suitable for:
|
| 97 |
+
|
| 98 |
+
- **Medical Visual Question Answering**: Training models to answer questions about medical images
|
| 99 |
+
- **Clinical Decision Support**: Developing AI assistants for radiologists and clinicians
|
| 100 |
+
- **Medical Education**: Creating interactive learning tools for medical students
|
| 101 |
+
- **Vision-Language Models**: Fine-tuning multimodal models (LLaVA, Qwen-VL, Asclepio, etc.)
|
| 102 |
+
- **Medical Image Captioning**: Generating descriptive captions for medical images
|
| 103 |
+
|
| 104 |
+
## Dataset Creation
|
| 105 |
+
|
| 106 |
+
### Quality Assurance
|
| 107 |
+
|
| 108 |
+
- Manual verification of image-question-answer alignment
|
| 109 |
+
- Removal of duplicates and low-quality examples
|
| 110 |
+
- Validation of image loading and accessibility
|
| 111 |
+
- Consistency checks across all data fields
|
| 112 |
+
|
| 113 |
+
## Considerations for Use
|
| 114 |
+
|
| 115 |
+
### Intended Use
|
| 116 |
+
|
| 117 |
+
This dataset is intended for:
|
| 118 |
+
- Research in medical AI and computer vision
|
| 119 |
+
- Development of clinical decision support tools
|
| 120 |
+
- Educational purposes in medical AI
|
| 121 |
+
- Fine-tuning vision-language models for healthcare
|
| 122 |
+
|
| 123 |
+
### Limitations
|
| 124 |
+
|
| 125 |
+
- **Not for clinical diagnosis**: This dataset is for research and development only
|
| 126 |
+
- **Language**: Currently only available in English
|
| 127 |
+
- **Image quality**: Varies across source datasets
|
| 128 |
+
- **Medical scope**: May not cover all medical specialties equally
|
| 129 |
+
- **Requires expert validation**: Any clinical application requires validation by medical professionals
|
| 130 |
+
|
| 131 |
+
### Ethical Considerations
|
| 132 |
+
|
| 133 |
+
- All images are from publicly available medical datasets
|
| 134 |
+
- No patient identifiable information (PII) is included
|
| 135 |
+
- Users should follow appropriate ethical guidelines when deploying models trained on this data
|
| 136 |
+
- Medical AI outputs should always be reviewed by qualified healthcare professionals
|
| 137 |
+
|
| 138 |
+
## Citation
|
| 139 |
+
|
| 140 |
+
If you use this dataset in your research, please cite:
|
| 141 |
+
|
| 142 |
+
```bibtex
|
| 143 |
+
@dataset{medical_vision_2025,
|
| 144 |
+
title={Medical-Vision: High-Quality Medical Visual Question Answering Dataset (Aquiles-ai/Medical-Vision)},
|
| 145 |
+
author={Aquiles-ai},
|
| 146 |
+
year={2025},
|
| 147 |
+
publisher={Hugging Face},
|
| 148 |
+
url={https://huggingface.co/datasets/Aquiles-ai/Medical-Vision}
|
| 149 |
+
}
|
| 150 |
+
```
|
| 151 |
+
|
| 152 |
+
## License
|
| 153 |
+
|
| 154 |
+
This dataset is released under the Apache 2.0 License. Please refer to individual source datasets for their specific licensing terms.
|
| 155 |
+
|
| 156 |
+
## Contact
|
| 157 |
+
|
| 158 |
+
For questions, issues, or contributions, please open an issue on the dataset repository or contact the maintainers.
|
| 159 |
+
|
| 160 |
+
- **More about [Aquiles-ai](https://aquiles.vercel.app).**
|
| 161 |
+
|
| 162 |
+
- **Aquiles-ai on [GitHub](https://github.com/Aquiles-ai).**
|
| 163 |
+
|
| 164 |
+
- **Our collections at [HuggingFace](https://huggingface.co/Aquiles-ai/collections).**
|
| 165 |
+
|
| 166 |
+
**Disclaimer**: This dataset is provided for research and educational purposes only. It should not be used as a substitute for professional medical advice, diagnosis, or treatment.
|
dataset_dict.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"splits": ["train"]}
|
train/data-00000-of-00002.arrow
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:371f1dea939f88f9568e5275e814a1ffe984081928160b50a88fb6d5aaf87e6a
|
| 3 |
+
size 356259232
|
train/data-00001-of-00002.arrow
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:59c60fcfe861bee539b4bbfc7a7c7a4b022990a12ea4c2e223a0e99d798940c2
|
| 3 |
+
size 352149312
|
train/dataset_info.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"citation": "",
|
| 3 |
+
"description": "",
|
| 4 |
+
"features": {
|
| 5 |
+
"image": {
|
| 6 |
+
"_type": "Image"
|
| 7 |
+
},
|
| 8 |
+
"question": {
|
| 9 |
+
"dtype": "string",
|
| 10 |
+
"_type": "Value"
|
| 11 |
+
},
|
| 12 |
+
"answer": {
|
| 13 |
+
"dtype": "string",
|
| 14 |
+
"_type": "Value"
|
| 15 |
+
}
|
| 16 |
+
},
|
| 17 |
+
"homepage": "",
|
| 18 |
+
"license": ""
|
| 19 |
+
}
|
train/state.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_data_files": [
|
| 3 |
+
{
|
| 4 |
+
"filename": "data-00000-of-00002.arrow"
|
| 5 |
+
},
|
| 6 |
+
{
|
| 7 |
+
"filename": "data-00001-of-00002.arrow"
|
| 8 |
+
}
|
| 9 |
+
],
|
| 10 |
+
"_fingerprint": "56cd6e30cfef82a8",
|
| 11 |
+
"_format_columns": null,
|
| 12 |
+
"_format_kwargs": {},
|
| 13 |
+
"_format_type": null,
|
| 14 |
+
"_output_all_columns": false,
|
| 15 |
+
"_split": null
|
| 16 |
+
}
|