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
+38-2Lines changed: 38 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9895,14 +9895,50 @@ All files saved in: `src/results_finalisation/interpretability_tcn/`
9895
9895
- To systematically interpret the TCN’s behaviour across four complementary outputs across three different targets (`max_risk`, `median_risk`, `pct_time_high`).
9896
9896
- To identify consistent feature importance patterns, temporal dependencies, and clinically plausible risk trajectories.
9897
9897
- These analyses together form the quantitative interpretability core of Step 4, providing temporal explainability to complement SHAP’s static feature-level insights.
9898
-
**Analysis Components per target**
9898
+
**Analysis Components per Target**
9899
9899
1. **Feature-Level Interpretation (*_feature_saliency.csv)**: Quantifies overall feature importance by averaging saliency across all patients and timesteps.
9900
9900
2. **Temporal Sensitivity (*_temporal_saliency.csv)**: Shows how model sensitivity varies over the sequence.
9901
9901
3. **Top Feature Temporal Profiles (*_top_features_temporal.csv)** Tracks the evolution of the top 5 features’ saliency over time.
9902
9902
4. **Visualisation — Mean Heatmap (*_mean_heatmap.png)** Displays saliency intensity for the top 10 features across all timesteps (log-scaled).
9903
+
**Scope of Analysis**
9904
+
- **Goal:** extract interpretable clinical or temporal trends, not micro-level numeric commentary.
9905
+
- For 12 outputs, the analysis should stay at the trend and pattern level, not per-timestep detail:
9906
+
- **Feature-level CSVs:** summarise top 5–10 features by mean and variability; highlight broad stability or volatility patterns.
9907
+
- **Temporal saliency:** describe general regions of high vs low attention (early, middle, late sequence).
9908
+
- **Top feature temporal CSVs:** note recurring peaks or synchronized trends across key variables.
9909
+
- **Mean heatmaps:** interpret overall structure (broad horizontal/vertical patterns) rather than pixel-level variation.
9910
+
- Only expand when a pattern directly supports or contradicts earlier SHAP findings.
| 1 | `heart_rate_roll24h_min` | 7.69e-05 | 1.87e-04 | Highest mean with high variance → strong but inconsistent influence. Model relies heavily on prolonged heart rate suppression (possible bradycardic or hypodynamic states) in some patients but not all, indicating subgroup-dependent importance. |
9921
+
| 2 | `news2_score` | 5.01e-05 | 1.15e-04 | Moderate mean, moderately variable → reliable global marker capturing multi-parameter deterioration risk; model consistently uses it but not as dominant as specific vitals. |
9922
+
| 3 | `temperature_max` | 4.77e-05 | 9.36e-05 | Mid–high mean, moderate variance → model identifies episodic temperature spikes (fever responses) as moderately influential; variability suggests influence only in febrile cases. |
9923
+
| 4 | `level_of_consciousness_carried` | 4.61e-05 | 9.17e-05 | Moderate mean, moderate variance → carried-forward consciousness values preserve deterioration context; consistently important where altered mental state persists, less so otherwise. |
9924
+
| 5 | `respiratory_rate_roll4h_min` | 4.37e-05 | 1.11e-04 | Moderate mean with high variance → model detects respiratory instability patterns (acute dips or fatigue) variably across patients, aligning with short-term deterioration episodes. |
9925
+
9926
+
3. **Interpretation Summary**
9927
+
- **Overall summary:** Mean quantifies global importance; Std reflects stability. Here, heart rate and respiratory patterns show high mean + high Std (episodic importance), while NEWS2 and temperature are moderate mean + lower Std (steady baseline predictors).
9928
+
- **Dominant predictors:** Rolling-window minima of **heart rate** and **respiratory rate** indicate the model prioritises **sustained physiological depression** rather than transient abnormalities when estimating maximum deterioration risk.
9929
+
- **Summary indicators:** Variables such as **NEWS2 score** and **risk_numeric** act as clinically validated proxies, confirming internal consistency between learned and rule-based signals.
9930
+
- **Moderate variability (std):** Most top predictors have **mid–high standard deviations**, showing that while generally influential, their impact fluctuates across patient trajectories.
- **Zero-saliency variables:** Static or unused inputs (e.g., CO₂ retainer fields) indicate non-representation in this risk regime, consistent with limited relevance to acute deterioration.
9933
+
9934
+
---
9935
+
9936
+
#### **Overall Summary**
9937
+
9938
+
For the **max-risk** output, the model emphasises **vital sign minima and composite early warning features** that reflect *sustained physiological decline*.
9939
+
This aligns with clinical intuition for maximum deterioration prediction:
9940
+
periods of **prolonged abnormality** are more predictive of peak risk than brief fluctuations.
9941
+
Observed variability across features reflects **heterogeneous deterioration patterns** across the cohort, consistent with individualised risk dynamics.
0 commit comments