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
Copy file name to clipboardExpand all lines: README.md
+39-1Lines changed: 39 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,10 +10,43 @@
10
10
11
11
This project implements a dual-architecture early warning system comparing gradient-boosted decision trees (LightGBM) against temporal convolutional networks (TCN) for predicting ICU patient deterioration, across three risk horizons (maximum risk atained, average sustained risk, % time spent in high risk). Built on MIMIC-IV Clinical Demo v2.2 dataset (100 patients), the system processes 171 temporal features across 24-hour windows and 40 aggregated patient-level features, to support continuous monitoring and escalation decisions.
- Strong baseline for tabular data - Handles irregular sampling & long-range context
37
+
- Cannot model sequences - Requires sequential data
38
+
```
39
+
13
40
The hybrid approach reveals complementary strengths: LightGBM achieves superior calibration and regression fidelity (68% Brier reduction, +17% AUC, +44% R²) for sustained risk assessment, while TCN demonstrates stronger acute event discrimination (+9.3% AUC, superior sensitivity) for detecting rapid deterioration.
14
41
15
42
The complete pipeline includes NHS-validated NEWS2 preprocessing with CO₂ retainer logic, GCS mapping, and supplemental O₂ protocols; extensive evaluation metrics and model-specific interpretability methods for clinical validation (SHAP for LightGBM, absolute gradient×input saliency for TCN); and a deployment-ready dual inference system (batch and per-patient) for end-to-end usability.
| Maximum Risk | TCN | ROC AUC: 0.923 | Strong acute detection, high sensitivity |
47
+
| Median Risk | LightGBM | ROC AUC: 0.972, Brier: 0.065 | Superior sustained risk calibration |
48
+
| Percentage Time High | LightGBM | R²: 0.793 | Better regression fidelity for high-risk exposure |
49
+
17
50
**Key Contributions:**
18
51
- Clinical validity pipeline with robust NEWS2 computation
19
52
- Dual feature engineering (patient-level vs timestamp) for both classical and deep learning models
@@ -76,6 +109,11 @@ NEWS2 scoring bands map directly to clinical monitoring frequency and escalation
76
109
### Why Machine Learning?
77
110
ICU deterioration is complex and often subtle, involving multivariate temporal patterns that standard threshold-based systems cannot fully capture. ML models allow us to go beyond static scoring by predicting summary outcomes derived from NEWS2 clinical-risk categories.
78
111
112
+
| Model | Type | Input Features | Modelling Type | Strengths | Weaknesses | Interpretability |
- LightGBM, a gradient-boosted decision tree (GBDT) algorithm, provides a strong baseline for tabular clinical data
81
119
- Captures nonlinear interactions between vital signs
@@ -89,7 +127,7 @@ ICU deterioration is complex and often subtle, involving multivariate temporal p
89
127
- Robust to irregular sampling
90
128
- Potentially detects subtle deterioration earlier than threshold-based approaches
91
129
92
-
#### Why compare both
130
+
#### Why compare both?
93
131
- LightGBM provides a robust classical-ML baseline for tabular clinical data.
94
132
- TCN evaluates whether temporal modelling yields measurable gains by capturing sequential patterns and slopes in vital signs.
95
133
- This comparison reflects realistic deployment: classical ML may suffice for lower-frequency ward data, whereas temporal models exploit high-resolution ICU monitoring to detect early deterioration.
0 commit comments