Sepsis Prediction
Early Sepsis Detection
Temporal Prediction Model
class SepsisEarlyDetector(nn.Module):
def __init__(self, n_features=38, hidden=128):
super().__init__()
self.lstm = nn.LSTM(n_features, hidden, num_layers=2,
batch_first=True, dropout=0.3, bidirectional=True)
self.attention = nn.MultiheadAttention(hidden * 2, num_heads=8)
self.head = nn.Sequential(nn.Linear(hidden * 2, 64), nn.ReLU(),
nn.Dropout(0.3), nn.Linear(64, 1))
def forward(self, x):
h, _ = self.lstm(x)
h_att, _ = self.attention(h, h, h)
return torch.sigmoid(self.head(h_att[:, -1, :]))
Antimicrobial Timing
Time-to-Treatment Impact
| Delay (hours) | Mortality Increase |
|---|---|
| 0-1 | Baseline |
| 1-3 | +7.6% |
| 3-6 | +14.4% |
| >6 | +23.7% |