Kossisoroyce commited on
Commit
60ba768
·
verified ·
1 Parent(s): 2c7a763

Initial upload of African Medical Multimodal Fracture Dataset

Browse files
Files changed (4) hide show
  1. README.md +54 -184
  2. data/test.jsonl +0 -0
  3. data/train.jsonl +0 -0
  4. data/validation.jsonl +0 -0
README.md CHANGED
@@ -35,7 +35,7 @@ dataset_info:
35
  - name: patient_id
36
  dtype: string
37
  - name: image_path
38
- dtype: string
39
  - name: fracture_type
40
  dtype: string
41
  - name: age
@@ -56,6 +56,8 @@ dataset_info:
56
  dtype: int32
57
  - name: blood_pressure_systolic
58
  dtype: int32
 
 
59
  - name: temperature
60
  dtype: float32
61
  - name: height
@@ -97,13 +99,13 @@ configs:
97
 
98
  ## Dataset Description
99
 
100
- This dataset is a comprehensive, multimodal bone break classification dataset designed explicitly for African healthcare contexts. It addresses critical gaps in medical AI for resource-constrained environments while ensuring cultural sensitivity and local relevance.
101
 
102
  ### Dataset Summary
103
 
104
  - **Total Records**: 1,129 multimodal medical cases
105
- - **Original Images**: 1,129 X-ray images (88% of dataset)
106
- - **Augmented Images**: 135 mildly augmented images (12% of dataset)
107
  - **Fracture Types**: 10 different bone fracture classifications
108
  - **Countries Represented**: 18 African countries
109
  - **Languages**: 11 African languages + English
@@ -123,8 +125,8 @@ This dataset is a comprehensive, multimodal bone break classification dataset de
123
  - Traditional medicine integration patterns
124
 
125
  🏥 **Realistic Equipment Simulation**
126
- - 88% high-quality images (representing modern African hospitals)
127
- - 12% mildly augmented images (rural/portable equipment variations)
128
  - Quality scores: 6.2-9.5/10 (realistic for African healthcare)
129
 
130
  📱 **Mobile Health Integration**
@@ -132,79 +134,55 @@ This dataset is a comprehensive, multimodal bone break classification dataset de
132
  - GPS tracking and movement data
133
  - SMS/voice follow-up preferences
134
 
135
- ## Dataset Structure
136
-
137
- ### Modalities
138
-
139
- Each record contains 6 data modalities:
140
 
141
- 1. **Image Data**
142
- - Original X-ray images (JPEG format)
143
- - Optional mild augmentation for rural equipment simulation
144
- - Quality scores and equipment metadata
145
 
146
- 2. **Patient Demographics**
147
- - Age, gender, ethnicity, occupation, education
148
- - Geographic context (country, region type, GPS coordinates)
149
- - Socioeconomic factors (income, insurance, family size)
150
 
151
- 3. **Clinical Text Data**
152
- - Multilingual patient history and chief complaints
153
- - Pain descriptions with cultural expressions
154
- - Traditional medicine usage patterns
155
- - Clinical notes and examination findings
156
 
157
- 4. **Environmental Context**
158
- - Seasonal factors (dry/wet season, harmattan)
159
- - Injury timing and circumstances
160
- - Environmental hazards and geographic risks
161
- - Weather conditions affecting transport/access
162
 
163
- 5. **Clinical Measurements**
164
- - Vital signs (heart rate, blood pressure, temperature)
165
- - Anthropometric data (height, weight, BMI)
166
- - Pain assessment scales
167
- - Nutritional status indicators
 
168
 
169
- 6. **Mobile Health Data**
170
- - Phone ownership and type (smartphone vs feature phone)
171
- - Digital literacy assessment
172
- - Follow-up interaction preferences
173
- - GPS and movement patterns
174
 
175
- ### File Structure
 
 
176
 
177
- ```
178
- african-medical-multimodal-fracture/
179
- ├── images/
180
- │ ├── original/ # 1,129 original X-ray images
181
- │ └── augmented/ # 135 mildly augmented images
182
- ├── data/
183
- │ ├── multimodal_records.json # Complete dataset
184
- │ ├── feature_matrices.npz # ML-ready features
185
- │ ├── data_splits.json # Train/val/test splits
186
- │ └── dataset_summary.csv # Overview table
187
- └── metadata/
188
- ├── augmentation_log.json # Image processing details
189
- └── dataset_documentation.json # Technical documentation
190
  ```
191
 
192
  ## Fracture Types
193
 
194
  The dataset includes 10 fracture classifications:
195
 
196
- | Fracture Type | Count | Description |
197
- |---------------|-------|-------------|
198
- | Fracture Dislocation | 156 | Joint displacement with bone break |
199
- | Comminuted fracture | 148 | Multiple bone fragments |
200
- | Pathological fracture | 134 | Break due to disease/weakness |
201
- | Avulsion fracture | 123 | Bone fragment pulled by tendon/ligament |
202
- | Greenstick fracture | 122 | Incomplete break (common in children) |
203
- | Hairline Fracture | 111 | Thin crack in bone |
204
- | Spiral Fracture | 86 | Twisting break pattern |
205
- | Oblique fracture | 85 | Diagonal break across bone |
206
- | Impacted fracture | 84 | Bone ends driven together |
207
- | Longitudinal fracture | 80 | Break along bone length |
208
 
209
  ## Geographic Distribution
210
 
@@ -216,74 +194,15 @@ Nigeria, Kenya, Ghana, South Africa, Tanzania, Uganda, Ethiopia, Morocco, Egypt,
216
  - **Urban**: 293 cases (26%) - Major cities and towns
217
  - **Peri-urban**: 171 cases (15%) - Transitional areas
218
 
219
- ## Language Distribution
220
-
221
- | Language | Countries | Sample Size |
222
- |----------|-----------|-------------|
223
- | English | Nigeria, Kenya, Ghana, South Africa, Tanzania, Uganda | ~350 cases |
224
- | French | Senegal, Mali, Burkina Faso, Cameroon, Ivory Coast | ~200 cases |
225
- | Arabic | Egypt, Morocco, Sudan | ~150 cases |
226
- | Swahili | Kenya, Tanzania, Uganda | ~120 cases |
227
- | Hausa | Nigeria, Niger | ~80 cases |
228
- | Others | Various | ~229 cases |
229
-
230
- ## Data Splits
231
-
232
- - **Training**: 790 samples (70%)
233
- - **Validation**: 113 samples (10%)
234
- - **Test**: 226 samples (20%)
235
-
236
- Splits are stratified by fracture type and region to ensure balanced representation.
237
-
238
- ## Usage Examples
239
-
240
- ### Loading the Dataset
241
-
242
- ```python
243
- import json
244
- import pandas as pd
245
- import numpy as np
246
- from pathlib import Path
247
-
248
- # Load complete multimodal records
249
- with open('data/multimodal_records.json', 'r', encoding='utf-8') as f:
250
- records = json.load(f)
251
-
252
- # Load ML-ready feature matrices
253
- features = np.load('data/feature_matrices.npz')
254
- demographics = features['demographics_normalized']
255
- clinical = features['clinical_measurements_normalized']
256
- labels = features['labels']
257
-
258
- # Load data splits
259
- with open('data/data_splits.json', 'r') as f:
260
- splits = json.load(f)
261
- ```
262
-
263
- ### Accessing Multilingual Clinical Text
264
-
265
- ```python
266
- # Example: Extract patient complaints in different languages
267
- for record in records[:5]:
268
- clinical_text = record.get('clinical_text', {})
269
- complaint = clinical_text.get('chief_complaint', {})
270
-
271
- print(f"Language: {complaint.get('language', 'Unknown')}")
272
- print(f"Complaint: {complaint.get('text', 'N/A')}")
273
- print(f"Cultural expressions: {complaint.get('cultural_expressions', [])}")
274
- print("---")
275
- ```
276
-
277
- ### Analyzing Geographic Distribution
278
 
279
- ```python
280
- # Geographic analysis
281
- countries = [r['demographics']['country'] for r in records]
282
- regions = [r['demographics']['region_type'] for r in records]
283
-
284
- print("Country distribution:", pd.Series(countries).value_counts().head())
285
- print("Region distribution:", pd.Series(regions).value_counts())
286
- ```
287
 
288
  ## Ethical Considerations
289
 
@@ -297,20 +216,6 @@ print("Region distribution:", pd.Series(regions).value_counts())
297
  - Cultural pain expressions reflect documented patterns
298
  - Family involvement in medical decisions is appropriately modeled
299
 
300
- ### Bias Mitigation
301
- - Balanced representation across countries and regions
302
- - Multiple languages and cultural contexts included
303
- - Socioeconomic diversity represented
304
- - Equipment quality reflects realistic African healthcare landscape
305
-
306
- ## Limitations
307
-
308
- 1. **Synthetic Nature**: While culturally informed, data is artificially generated
309
- 2. **Language Accuracy**: Translations may not capture all cultural nuances
310
- 3. **Equipment Simulation**: Based on research rather than direct measurements
311
- 4. **Regional Variations**: Cannot capture all local healthcare variations
312
- 5. **Temporal Factors**: Represents current state, not historical progression
313
-
314
  ## Applications
315
 
316
  ### Primary Use Cases
@@ -319,31 +224,6 @@ print("Region distribution:", pd.Series(regions).value_counts())
319
  - **Resource-constrained Settings**: AI systems for rural and underserved areas
320
  - **Medical Education**: Training materials for African healthcare contexts
321
 
322
- ### Research Applications
323
- - Cultural bias in medical AI
324
- - Multilingual medical NLP
325
- - Healthcare accessibility studies
326
- - Equipment quality impact analysis
327
-
328
- ## Technical Specifications
329
-
330
- ### Image Data
331
- - **Format**: JPEG
332
- - **Resolution**: Variable (167×94 to 640×640 pixels)
333
- - **Color**: Grayscale
334
- - **Quality**: 6.2-9.5/10 average quality score
335
-
336
- ### Text Data
337
- - **Encoding**: UTF-8
338
- - **Languages**: 11 African languages + English
339
- - **Structure**: JSON with nested cultural context
340
-
341
- ### Structured Data
342
- - **Demographics**: 7 normalized features
343
- - **Clinical**: 8 normalized measurements
344
- - **Environmental**: 5 contextual factors
345
- - **Labels**: 10-class fracture classification
346
-
347
  ## Citation
348
 
349
  If you use this dataset in your research, please cite:
@@ -351,27 +231,17 @@ If you use this dataset in your research, please cite:
351
  ```bibtex
352
  @dataset{african_medical_multimodal_2024,
353
  title={African Medical Multimodal Bone Fracture Dataset},
354
- author={[Your Name]},
355
  year={2024},
356
  publisher={Hugging Face},
357
- url={https://huggingface.co/datasets/[username]/african-medical-multimodal-fracture}
358
  }
359
  ```
360
 
361
- ## Acknowledgments
362
-
363
- - Base dataset: PKDarabi Bone Break Classification Image Dataset
364
- - Cultural context research: WHO, IAEA, and African medical literature
365
- - Equipment assessment: African radiology societies and medical equipment suppliers
366
-
367
  ## License
368
 
369
  This dataset is released under the Creative Commons Attribution 4.0 International License (CC BY 4.0). You are free to use, modify, and distribute this dataset for any purpose, including commercial use, as long as you provide appropriate attribution.
370
 
371
- ## Contact
372
-
373
- For questions, issues, or collaboration opportunities, please open an issue in the dataset repository or contact [your-email@domain.com].
374
-
375
  ---
376
 
377
- *This dataset represents a comprehensive effort to create culturally-aware, multimodal medical AI training data for African healthcare contexts. While synthetic, it is based on extensive research and aims to promote more inclusive and effective medical AI systems.*
 
35
  - name: patient_id
36
  dtype: string
37
  - name: image_path
38
+ dtype: image
39
  - name: fracture_type
40
  dtype: string
41
  - name: age
 
56
  dtype: int32
57
  - name: blood_pressure_systolic
58
  dtype: int32
59
+ - name: blood_pressure_diastolic
60
+ dtype: int32
61
  - name: temperature
62
  dtype: float32
63
  - name: height
 
99
 
100
  ## Dataset Description
101
 
102
+ This dataset transforms the PKDarabi bone break classification dataset into a comprehensive, multimodal system specifically designed for African healthcare contexts. It addresses critical gaps in medical AI for resource-constrained environments while ensuring cultural sensitivity and local relevance.
103
 
104
  ### Dataset Summary
105
 
106
  - **Total Records**: 1,129 multimodal medical cases
107
+ - **Original Images**: 1,128 X-ray images (89% of dataset)
108
+ - **Augmented Images**: 135 mildly augmented images (11% of dataset)
109
  - **Fracture Types**: 10 different bone fracture classifications
110
  - **Countries Represented**: 18 African countries
111
  - **Languages**: 11 African languages + English
 
125
  - Traditional medicine integration patterns
126
 
127
  🏥 **Realistic Equipment Simulation**
128
+ - 89% high-quality images (representing modern African hospitals)
129
+ - 11% mildly augmented images (rural/portable equipment variations)
130
  - Quality scores: 6.2-9.5/10 (realistic for African healthcare)
131
 
132
  📱 **Mobile Health Integration**
 
134
  - GPS tracking and movement data
135
  - SMS/voice follow-up preferences
136
 
137
+ ## Usage Examples
 
 
 
 
138
 
139
+ ### Loading the Dataset
 
 
 
140
 
141
+ ```python
142
+ from datasets import load_dataset
 
 
143
 
144
+ # Load the dataset
145
+ dataset = load_dataset("electricsheepafrica/african-medical-multimodal-fracture")
 
 
 
146
 
147
+ # Access splits
148
+ train_data = dataset["train"]
149
+ val_data = dataset["validation"]
150
+ test_data = dataset["test"]
 
151
 
152
+ # View a sample
153
+ sample = train_data[0]
154
+ print(f"Patient from {sample['country']} with {sample['fracture_type']}")
155
+ print(f"Complaint: {sample['chief_complaint']} ({sample['complaint_language']})")
156
+ print(f"Vitals: HR {sample['heart_rate']}, BP {sample['blood_pressure_systolic']}/{sample['blood_pressure_diastolic']}")
157
+ ```
158
 
159
+ ### Accessing Images
 
 
 
 
160
 
161
+ ```python
162
+ from PIL import Image
163
+ import requests
164
 
165
+ # Get image path and load
166
+ image_path = sample['image_path']
167
+ # Images are stored as relative paths in the dataset
 
 
 
 
 
 
 
 
 
 
168
  ```
169
 
170
  ## Fracture Types
171
 
172
  The dataset includes 10 fracture classifications:
173
 
174
+ | Fracture Type | Description |
175
+ |---------------|-------------|
176
+ | Fracture Dislocation | Joint displacement with bone break |
177
+ | Comminuted fracture | Multiple bone fragments |
178
+ | Pathological fracture | Break due to disease/weakness |
179
+ | Avulsion fracture | Bone fragment pulled by tendon/ligament |
180
+ | Greenstick fracture | Incomplete break (common in children) |
181
+ | Hairline Fracture | Thin crack in bone |
182
+ | Spiral Fracture | Twisting break pattern |
183
+ | Oblique fracture | Diagonal break across bone |
184
+ | Impacted fracture | Bone ends driven together |
185
+ | Longitudinal fracture | Break along bone length |
186
 
187
  ## Geographic Distribution
188
 
 
194
  - **Urban**: 293 cases (26%) - Major cities and towns
195
  - **Peri-urban**: 171 cases (15%) - Transitional areas
196
 
197
+ ## Clinical Measurements
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
198
 
199
+ Each record includes realistic clinical measurements:
200
+ - **Heart Rate**: 60-100 bpm (normal range)
201
+ - **Blood Pressure**: Systolic 90-140 mmHg, Diastolic 60-90 mmHg
202
+ - **Temperature**: 36.0-38.5°C
203
+ - **Height**: 150-190 cm
204
+ - **Weight**: 45-90 kg
205
+ - **Pain Scale**: 1-10 (patient-reported pain level)
 
206
 
207
  ## Ethical Considerations
208
 
 
216
  - Cultural pain expressions reflect documented patterns
217
  - Family involvement in medical decisions is appropriately modeled
218
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
219
  ## Applications
220
 
221
  ### Primary Use Cases
 
224
  - **Resource-constrained Settings**: AI systems for rural and underserved areas
225
  - **Medical Education**: Training materials for African healthcare contexts
226
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
227
  ## Citation
228
 
229
  If you use this dataset in your research, please cite:
 
231
  ```bibtex
232
  @dataset{african_medical_multimodal_2024,
233
  title={African Medical Multimodal Bone Fracture Dataset},
234
+ author={ElectricSheepAfrica},
235
  year={2024},
236
  publisher={Hugging Face},
237
+ url={https://huggingface.co/datasets/electricsheepafrica/african-medical-multimodal-fracture}
238
  }
239
  ```
240
 
 
 
 
 
 
 
241
  ## License
242
 
243
  This dataset is released under the Creative Commons Attribution 4.0 International License (CC BY 4.0). You are free to use, modify, and distribute this dataset for any purpose, including commercial use, as long as you provide appropriate attribution.
244
 
 
 
 
 
245
  ---
246
 
247
+ *This dataset represents a comprehensive effort to create culturally-aware, multimodal medical AI training data for African healthcare contexts. While synthetic, it is based on extensive research and aims to promote more inclusive and effective medical AI systems.*
data/test.jsonl CHANGED
The diff for this file is too large to render. See raw diff
 
data/train.jsonl CHANGED
The diff for this file is too large to render. See raw diff
 
data/validation.jsonl CHANGED
The diff for this file is too large to render. See raw diff