A Disease-Conditioned Early Warning Framework using MIMIC-IV
Traditional ICU monitoring systems rely on fixed physiological thresholds (e.g., HR > 100 bpm → alert).
However, these thresholds ignore clinical context such as:
- Underlying diagnosis
- Admission type
- Treatment interventions
- Laboratory abnormalities
This project builds a context-aware ICU alerting system that dynamically adapts alert thresholds based on patient-specific clinical context.
The system is developed using the MIMIC-IV (v3.1) critical care dataset.
A heart rate of 110 bpm may be:
- Expected in sepsis
- Dangerous in post-operative neurosurgery
- Acceptable in chronic atrial fibrillation
Generic alerting leads to:
- 🚨 Alarm fatigue
- ❌ High false positive rates
- ⚠ Missed deterioration
This project aims to design a disease-conditioned alert framework that improves clinical relevance and personalization.
Data source: MIMIC-IV v3.1 (PhysioNet)
chartevents→ Time-series vital signsicustays→ ICU stay linkageinputevents→ Treatment administration
admissions→ Admission context & outcomesdiagnoses_icd→ Diagnosis codesd_icd_diagnoses→ ICD code descriptionslabevents→ Laboratory results
flowchart TD
A["Vital Signs: chartevents"] --> B["ICU Stay Linking: icustays"]
B --> C["Admission Context: admissions"]
C --> D["Diagnosis Mapping: diagnoses_icd"]
D --> E["Lab Context: labevents"]
E --> F["Treatment Context: inputevents"]
F --> G["Context-Aware Alert Engine"]
- Extract ICU time-series vitals
- Align vitals with ICU stay windows
- Map ICD codes to disease categories
- Aggregate labs into temporal bins
- Encode treatment exposures
Each time window includes:
- Multivariate vital signs (HR, MAP, RR, SpO₂, Temp)
- Disease category indicator
- Lab abnormality flags
- Treatment flags (vasopressors, sedation, fluids)
Disease-conditioned thresholds:
If Sepsis:
Alert if HR > 120 and MAP < 65
If COPD:
Alert if SpO₂ < 88
Compute disease-specific baseline distributions:
Alerts trigger when deviation exceeds learned thresholds.
- LSTM / Transformer architecture
- Input: Multivariate time-series + diagnosis embedding
- Output: Deterioration risk in next 6 hours
- Reduce alarm fatigue
- Personalize ICU monitoring
- Improve early detection of deterioration
- Create a reproducible research framework
- Personalized Early Warning Scores
- Contextual anomaly detection
- ICU deterioration prediction
- Clinical decision support research
condition-aware_risk_CDSS/
├── data_processing/
│ └── README.md
├── feature_engineering/
│ └── README.md
├── modeling/
│ └── README.md
├── evaluation/
│ └── README.md
├── deployment/
│ └── README.md
├── notebooks/
│ └── README.md
└── README.md
Access to MIMIC-IV requires:
- PhysioNet credentialing
- CITI training certification
- Data use agreement
No raw patient data is stored in this repository.
Samuel Adeniji
This project is for research and educational purposes only.