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