neodata / cleaning_report.md
ChipYTY's picture
Upload neonatal MRI dataset (DICOM images, clinical data, analysis reports)
75e9074 verified
# Data Cleaning Report
**Generated**: 2026-02-07 19:13:04
**Updated**: 2026-02-07 (removed 3 patients with incomplete MRI channels)
## 1. Dataset Overview
| Group | Folder | Patients | Label |
|-------|--------|----------|-------|
| Normal | `normal/` | 40 | 0 |
| Lateral Ventricular Megaly (LVM) | `LVM/` | 39 | 1 |
| Periventricular Leukomalacia (PVL) | `PVL/` | 40 | 2 |
| LVM + PVL | `LVM_PVL/` | 38 | 3 |
**Total patients**: 157
## 2. Data Cleaning Actions
| Action | Details |
|--------|---------|
| Removed PII | `ๅง“ๅ` (patient name), `ไฝ้™ขๅท` (hospital ID) |
| Column translation | `็ผ–ๅท`โ†’`patient_id`, `ๆฃ€ๆŸฅๆ่ฟฐ`โ†’`exam_description`, `ๆฃ€ๆŸฅ็ป“ๆžœ`โ†’`diagnosis` |
| Added columns | `group`, `group_label` (0-3), `group_name_en` |
| Format conversion | `.xlsx` โ†’ `.csv` (UTF-8) |
| Folder renaming | Chinese โ†’ English (see below) |
| Text cleaning | Removed non-breaking spaces (`\xa0`), stripped whitespace |
| Removed incomplete | 3 patients missing T2-SAG: `100-21` (LVM), `110-14`, `110-52` (LVM_PVL) |
### Folder Renaming
| Original (Chinese) | New (English) |
|-------------------|---------------|
| `ๆญฃๅธธ 2026-2-6` | `normal` |
| `ๆ‰ฉๅผ  2026-2-6` | `LVM` |
| `่ฝฏๅŒ– 2026-2-6` | `PVL` |
| `ๆ‰ฉๅผ +่ฝฏๅŒ– 2026-2-7` | `LVM_PVL` |
## 3. MRI Channel Integrity
**Target channels**: FLAIR, T1WI, T2-SAG, T2WI
### normal (Normal)
- Patients: 40
- Total target-channel DCM files: 2661
- Average DCM per patient (4 channels): 66.5
- All patients have complete target channels
### LVM (Lateral Ventricular Megaly (LVM))
- Patients: 39
- Total target-channel DCM files: 2,625
- Average DCM per patient (4 channels): 67.3
- All patients have complete target channels
- Extra channels present (not used): 3D-SWI, ADC, DWI, SWI
### PVL (Periventricular Leukomalacia (PVL))
- Patients: 40
- Total target-channel DCM files: 2,662
- Average DCM per patient (4 channels): 66.5
- All patients have complete target channels
### LVM_PVL (LVM + PVL)
- Patients: 38
- Total target-channel DCM files: 2,520
- Average DCM per patient (4 channels): 66.3
- All patients have complete target channels
- Extra channels present (not used): ADC, DWI, SWI, T1+C
## 4. Output File Structure
```
feng_dataset/
โ”œโ”€โ”€ clinical_data_all.csv # Combined dataset (all groups)
โ”œโ”€โ”€ clean_data.py # This cleaning script
โ”œโ”€โ”€ cleaning_report.md # This report
โ”œโ”€โ”€ normal/ # Normal controls
โ”‚ โ”œโ”€โ”€ clinical_data.csv
โ”‚ โ””โ”€โ”€ 001-441/ # Patient folders
โ”‚ โ”œโ”€โ”€ FLAIR/ (*.DCM)
โ”‚ โ”œโ”€โ”€ T1WI/ (*.DCM)
โ”‚ โ”œโ”€โ”€ T2-SAG/ (*.DCM)
โ”‚ โ””โ”€โ”€ T2WI/ (*.DCM)
โ”œโ”€โ”€ LVM/ # Lateral Ventricular Megaly
โ”‚ โ”œโ”€โ”€ clinical_data.csv
โ”‚ โ””โ”€โ”€ 100-xxx/ ...
โ”œโ”€โ”€ PVL/ # Periventricular Leukomalacia
โ”‚ โ”œโ”€โ”€ clinical_data.csv
โ”‚ โ””โ”€โ”€ 010-xxx/ ...
โ””โ”€โ”€ LVM_PVL/ # LVM + PVL
โ”œโ”€โ”€ clinical_data.csv
โ””โ”€โ”€ 110-xxx/ ...
```
## 5. CSV Column Description
| Column | Type | Description |
|--------|------|-------------|
| `patient_id` | string | Unique patient identifier (e.g., `001-441`) |
| `group` | string | Group folder name: `normal`, `LVM`, `PVL`, `LVM_PVL` |
| `group_label` | int | Numeric label: 0=Normal, 1=LVM, 2=PVL, 3=LVM+PVL |
| `group_name_en` | string | Full English group name |
| `exam_description` | string | Radiologist's MRI examination description (Chinese) |
| `diagnosis` | string | Final diagnosis conclusion (Chinese) |
## 6. Notes
- **Medical text** (`exam_description`, `diagnosis`) is kept in the original Chinese to preserve clinical accuracy. Machine translation of specialized medical radiology reports may introduce errors.
- **Original xlsx files** are retained in each folder as backup.
- **Removed patients**: 3 patients (`100-21`, `110-14`, `110-52`) were excluded due to missing T2-SAG channel. Both their DICOM folders and CSV records have been removed.
- **Disease description document**: `ๆ–ฐ็”Ÿๅ„ฟไพง่„‘ๅฎคๆ‰ฉๅผ +่„‘็™ฝ่ดจ่ฝฏๅŒ–็–พ็—…ๆ่ฟฐ AI+ๅŒป็”Ÿๅฎกๆ ธ็‰ˆๆœฌ.docx` is preserved as-is (reference document, not patient data).