| # 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). |