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: notes.md
+79-6Lines changed: 79 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9946,18 +9946,91 @@ All files saved in: `src/results_finalisation/interpretability_tcn/`
9946
9946
| Early sequence | 0–10 | Rapid decline from ~3.8×10⁻⁵ to ~1.2×10⁻⁵ | Model shows minimal reliance on earliest observations, suggesting low predictive relevance of baseline vitals. |
9947
9947
| Mid sequence | 10–40 | Stable low plateau (~1.5–1.6×10⁻⁵) | Indicates that mid-trajectory states provide steady but limited incremental information for determining max risk. |
9948
9948
| Late sequence | 40–70 | Gradual rise to ~2.2×10⁻⁵ | Reflects increasing model sensitivity to recent physiological patterns as deterioration approaches. |
9949
-
| End of sequence | 70–95 | Fluctuating peaks then decline (max ≈2.3×10⁻⁵ → 0.6×10⁻⁵) | The saliency spike before final decline suggests model focus on **late-stage instability**, followed by tapering when inputs become less informative or truncated. |
9949
+
| End of sequence | 70–95 | Fluctuating peaks then decline (max ≈2.3×10⁻⁵ → 0.6×10⁻⁵) | The saliency spike before final decline suggests model focus on **late-stage instability**, followed by tapering when inputs become less informative. |
9950
9950
3. **Interpretation Summary**
9951
9951
- **Temporal focus:** The model is **most attentive between timesteps ~55–75**, aligning with periods that likely correspond to **late deterioration onset** in patient sequences.
9952
-
- **Early low saliency:** Minimal early saliency implies that initial stable conditions carry little weight when estimating maximum risk — consistent with deterioration being a dynamic rather than baseline phenomenon.
9952
+
- **Early low saliency:** Minimal early saliency implies that initial stable conditions carry little weight when estimating maximum risk → consistent with deterioration being a dynamic rather than baseline phenomenon.
9953
9953
- **Late rise and fall:** The mid-to-late escalation indicates that **progressive physiological stress** drives peak-risk prediction, with declining saliency near the end possibly due to reduced input signal (e.g., short remaining sequences).
9954
9954
- **Interpretive pattern:** The smooth progression (rather than abrupt peaks) suggests the model captures **gradual worsening** rather than isolated episodic spikes.
9955
+
4. **Overall Summary**
9956
+
- The model’s attention increases toward the end of each patient’s sequence, showing a clear recency bias — recent physiological changes have the greatest effect on predicting maximum risk.
9957
+
- Clinically, this means the model recognises that peak deterioration is usually preceded by sustained worsening near the end of a patient’s trajectory, not by early or isolated abnormalities.
9958
+
- The late rise in saliency indicates effective detection of emerging instability patterns, consistent with identifying moments of highest clinical risk.
| `heart_rate_roll24h_min` | Moderate baseline, sharp rise after timestep ~55, peaking between 60–75 | Late-sequence dominance reflects sensitivity to sustained low heart rate before deterioration; the model identifies cardiovascular depression near the deterioration point. |
| `temperature_max` | Mild early activity, then stable midsection with occasional late bumps | Suggests episodic temperature relevance → important in subsets with febrile response but not universal. |
9972
+
| `level_of_consciousness_carried` | Fluctuating mid-to-late sequence (40–75) | Indicates model focus on persistent altered consciousness during evolving deterioration episodes, not transient episodes. |
9973
+
| `respiratory_rate_roll4h_min` | Low baseline, rising steeply from timestep ~65 onward | Signals mounting respiratory instability or fatigue close to deterioration onset; strong late contribution. |
9974
+
3. **Interpretation Summary**
9975
+
- **Overall dynamics:** Most top features show **increasing saliency toward later timesteps**, confirming that the model places more weight on recent physiological changes when estimating maximum risk.
9976
+
- **Temporal differentiation:**
9977
+
- Heart rate and respiratory rate minima show clear late peaks, implying attention to **sustained declines** rather than short-term spikes.
9978
+
- NEWS2 provides a **steady baseline signal**, anchoring the model’s interpretation across the timeline.
9979
+
- Consciousness and temperature show **intermittent importance**, supporting their role as conditional or secondary cues rather than continuous drivers.
9980
+
- **Pattern interpretation:** Saliency peaks cluster in the **final third (timesteps 60–80)**, coinciding with typical pre-deterioration phases.
9981
+
4. **Overall Summary**
9982
+
- The TCN’s temporal saliency pattern for `max_risk` shows a **progressive rise in importance across time**, culminating shortly before the end of the sequence.
9983
+
- This indicates that the model recognises **accumulating instability** across vital signs and integrates multi-system deterioration cues as the patient approaches their highest predicted risk.
9984
+
- Clinically, this mirrors how maximum deterioration tends to emerge from **gradual physiological decline**, where sustained abnormalities in **heart rate, respiratory effort, and consciousness** signal worsening condition more reliably than isolated or early anomalies.
- Visualises **temporal top-10 feature importance** for the model predicting **maximum patient deterioration risk** during admission.
9989
+
- Color intensity (log-scaled mean absolute saliency) reflects **average model sensitivity** to each feature at each timestep across all patients.
9990
+
- Bright (yellow) regions = high influence; darker (blue) = less importance.
9991
+
- Captures where and when the model focuses most strongly across the admission timeline.
9992
+
2. **Key Patterns**
9993
+
- **Overall Temporal Pattern:**
9994
+
- Saliency begins noticabley rising from **~40 hours onward**, indicating the model starts detecting mid-stay deterioration patterns.
9995
+
- Attention **builds progressively**, peaking around **55-85 hours**, followed by a moderate plateau to 90–96 hours with almost no activation in the last few hours.
9996
+
- Early hours (0–10 h) show minimal activation, suggesting low predictive relevance of admission values alone. However in a few top features, admission values were bright.
| **Late brightening (≈55–90hrs)** | Broad increase in brightness across most features in the final 30 hours. | Indicates **recency bias** → the model relies most on **recent physiological signals** when estimating maximum risk. |
10000
+
| **Singular persistent band** | `heart_rate_roll24h_min` is the brightest and most persistent feature; sustained saliency from ~15 h onward, especially intense around 15-45 and 50-80 h | Indicates prolonged low or unstable heart rate is a major risk signal that is used throughout the entirety of stay. |
10001
+
| **Sustained horizontal bands** | Scattered bright regions seen in `news2_score`, and `respiratory_rate` from roughly **40–96 hrs**. | Reflects **persistently important predictors**, capturing **sustained physiological decline** rather than isolated events. |
10002
+
| **Moderate horizontal presence** | `temperature_max`,`level_of_consciousness_carried` and `supplemental_o2_max` show moderate but steady activation throughout, `respiratory_rate_max` show moderate steady activation between 60-90hrs. | Suggests that **temperature spikes**, **prolonged altered consciousness**, **O2 requirments** contribute moderately meaningfully throughout, with tachypnoea contributing later on. |
10003
+
| **Bright patches** | Features such as `respiratory_rate_roll4h_min` (40-45, 70-80h), `systolic_bp_roll1h_max` (55-75h) and `respiratory_rate` (55-65, 75-85h) show bright sections between **40-80 hrs**. | Reflects **event-specific activation**, likely transient interventions or brief physiological responses. |
10004
+
3. **Interpretation Summary**
10005
+
- The model’s focus increases gradually over time, peaking around **55-85 hrs**, showing that it relies more on **recent trends** to predict a patient’s maximum deterioration risk.
10006
+
- **Rolling heart rate trends (`heart_rate_roll24h_min`)** dominate throughout as the most important feature in determining maximum risk.
10007
+
- **Respiratory metrics (`respiratory_rate`, `respiratory_rate_roll4h_min`)**, and **NEWS2 score** dominate across the later stages, suggesting that **prolonged abnormalities** in these systems are central to identifying deterioration.
10008
+
- Features with isolated saliency bursts contribute briefly during likely **acute escalation points**, but they are secondary to sustained vital trends.
9956
10009
4. **Overall Summary**
9957
-
- The temporal saliency trend shows that the TCN model’s **attention intensifies over time**, culminating around later timesteps before tapering off.
9958
-
- This reflects a **recency bias**, where recent physiological signals (heart rate, respiratory rate, consciousness, NEWS2) exert stronger influence on predicted maximum risk than older data.
9959
-
- Clinically, this aligns with the understanding that **deterioration leading to peak risk is typically preceded by a sustained and progressive change**, rather than early or transient deviations.
9960
-
- The observed late saliency rise supports the model’s ability to **detect evolving instability trajectories**, consistent with its goal of identifying **maximum deterioration points** across the admission.
10010
+
- The heatmap demonstrates a **clear late-stage concentration of saliency**, where most top features show maximal importance between **55-85 hrs**.
10011
+
- This indicates that the model captures **progressive deterioration trajectories**, relying on **persistent physiological changes** rather than transient fluctuations.
10012
+
- Clinically, this aligns with the pattern of patients gradually deteriorating toward their highest risk period, rather than risk being driven by early isolated abnormalities.
10013
+
- Core signals (heart rate, respiratory rate, temperature, and consciousness level) remain key determinants of maximum risk across time, confirming model consistency with known clinical indicators.
10014
+
10015
+
**Max-Risk Overall Saliency Summary**
10016
+
- **Primary Drivers:**
10017
+
- Across all analyses, the model consistently prioritises **rolling heart rate minima (`heart_rate_roll24h_min`)**, **respiratory rate metrics (`respiratory_rate`, `respiratory_rate_roll4h_min`)**, and **NEWS2 score**.
10018
+
- These features dominate both feature-level and temporal importance.
10019
+
- **Temporal Focus:**
10020
+
- Saliency rises gradually from **~40 hours**, peaks **55–85 hours**, and tapers slightly toward the end of the sequence.
10021
+
- Indicates **recency bias**: the model relies more on recent physiological changes when estimating a patient’s maximum risk.
10022
+
- **Sustained vs Episodic Signals:**
10023
+
- `heart_rate_roll24h_min` shows **persistent high importance** throughout early-to-late sequence, reflecting cumulative cardiovascular suppression.
10024
+
- Respiratory metrics and NEWS2 show **moderate-to-high sustained influence**, occasionally punctuated by **short-lived spikes** (likely representing acute deterioration episodes).
10025
+
- Secondary features (temperature, consciousness, supplemental O₂) contribute steadily but less strongly.
10026
+
- **Interpretation of Variability:**
10027
+
- Feature-level **high standard deviation** indicates that some features’ influence varies across patients or over time; the model does not treat all patients identically.
10028
+
- Temporal patterns confirm that maximum risk is driven by **progressive physiological deterioration** rather than isolated early anomalies.
10029
+
- **Clinical Alignment:**
10030
+
- Core signals and their temporal evolution align with clinical expectations: prolonged deviations in heart rate, respiration, and composite early warning scores precede peak risk events.
10031
+
- Model behaviour captures both persistent underlying decline and event-specific surges, consistent with real-world deterioration trajectories.
0 commit comments