File size: 1,974 Bytes
9c9f50c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Model Details

#### Model Name: NumericBERT

#### Model Type: Transformer

#### Architecture: BERT

#### Training Method: Masked Language Modeling (MLM)

#### Training Data: MIMIC IV Lab values data

#### Training Hyperparameters:

- **Optimizer:** AdamW
- **Learning Rate:** 5e-5
- **Masking Rate:** 20%
- **Tokenization:** Custom numeric-to-text mapping using the TextEncoder class

### Text Encoding Process

**Overview:** Non-negative integers are converted into uppercase letter-based representations, allowing numerical values to be expressed as sequences of letters.

**Normalization and Binning:**
- **Method:** Log normalization and splitting into 10 bins.
- **Representation:** Each bin is represented by a letter (A-J).

### Token Construction:

- **Format:** `<<lab_id_token>><<lab_value_bin>>`
- **Example:** For a lab value of type 'Bic' with a normalized value in bin 'C', the token might be `BicC`.
- **Columns Used:** 'Bic', 'Crt', 'Pot', 'Sod', 'Ure', 'Hgb', 'Plt', 'Wbc'.

### Training Data Preprocessing

- **Column Selection:** Numerical values from selected lab values.
- **Text Encoding:** Numeric values are encoded into text using the process described above.
- **Masking:** 20% of the data is randomly masked during training.

### Model Output

- **Description:** Outputs predictions for masked values during training.
- **Format:** Contains the encoded text representing the predicted lab values.

### Limitations and Considerations

- **Numeric Data Representation:** The custom text representation may have limitations in capturing the intricacies of the original numeric data.
- **Training Data Source:** Performance may be influenced by the characteristics and biases inherent in the MIMIC IV dataset.
- **Generalizability:** The model's effectiveness outside the context of the training dataset is not guaranteed.

### Contact Information

- **Email:** davidres@mit.edu
- **Name:** David Restrepo
- **Affiliation:** MIT Critical Data - MIT