You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|| white blood cells count, bands, C-Reactive protein | Cont. |
21
+
|| hemoglobin, hematocrit, aniongap | Cont. |
22
+
|| platelets count, PTT, PT, INR | Cont. |
23
+
|| bicarbonate, lactate | Cont. |
24
+
25
+
# Introduction
26
+
This repository contains source code for paper ["Estimating Individual Treatment Effects with Time-Varying Confounders"]().
27
+
28
+
In this paper, we study the problem of Estimating individual treatment effects with time-varying confounders (as illustrated by a causal graph in the figure below)
29
+
30
+
<imgsrc="src/Fig1.png"width=40%>
31
+
32
+
We propose Deep Sequential Weighting (DSW) for estimating ITE with time-varying confounders. DSW consists of three main components: representation learning module, balancing module and prediction module.
33
+
34
+
<imgsrc="src/model4.png"width=80%>
35
+
36
+
To demonstrate the effectiveness of our framework, we conduct comprehensive experiments on synthetic, semi-synthetic and real-world EMR datasets ([MIMIC-III](https://mimic.physionet.org/)). DSW outperforms state-of-the-art baselines in terms of PEHE and ATE.
37
+
38
+
# Requirement
39
+
Ubuntu16.04, python 3.6
40
+
41
+
Install [pytorch 1.4](https://pytorch.org/)
42
+
43
+
# Data preprocessing
44
+
### Synthetic dataset
45
+
Simulate the all covariates, treatments and outcomes
46
+
```
47
+
cd simulation
48
+
python synthetic.py
49
+
```
50
+
51
+
### Semi-synthetic dataset
52
+
With a similar simulation process, we construct a semi-synthetic dataset based on a real-world dataset: [MIMIC-III](https://mimic.physionet.org/).
53
+
```
54
+
cd simulation
55
+
python synthetic_mimic.py
56
+
```
57
+
58
+
### MIMIC-III dataset
59
+
Obtain the patients data of two treatment-outcome pairs: (1) vasopressor-Meanbp; (2) ventilator-SpO2.
0 commit comments