File size: 4,256 Bytes
75e9074 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | # 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). |