Skip to content

Commit 5784b6a

Browse files
committed
Update notes.md
1 parent 1f09f3b commit 5784b6a

1 file changed

Lines changed: 38 additions & 2 deletions

File tree

notes.md

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9895,14 +9895,50 @@ All files saved in: `src/results_finalisation/interpretability_tcn/`
98959895
- To systematically interpret the TCN’s behaviour across four complementary outputs across three different targets (`max_risk`, `median_risk`, `pct_time_high`).
98969896
- To identify consistent feature importance patterns, temporal dependencies, and clinically plausible risk trajectories.
98979897
- 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**
98999899
1. **Feature-Level Interpretation (*_feature_saliency.csv)**: Quantifies overall feature importance by averaging saliency across all patients and timesteps.
99009900
2. **Temporal Sensitivity (*_temporal_saliency.csv)**: Shows how model sensitivity varies over the sequence.
99019901
3. **Top Feature Temporal Profiles (*_top_features_temporal.csv)** Tracks the evolution of the top 5 features’ saliency over time.
99029902
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.
99039911

99049912
#### Saliency Analysis (`max_risk`)
9905-
**Feature Saliency (`max_risk_feature_saliency`)**
9913+
**Feature-Level Mean & Standard Deviation (`max_risk_feature_saliency.csv`)**
9914+
1. **Context**
9915+
- This analysis corresponds to the maximum patient-level deterioration risk predicted during admission.
9916+
- It captures which features most strongly and consistently influence the model when estimating each patient’s peak risk episode.
9917+
2. **Key Findings (General-Trend Scope)**
9918+
| **Rank** | **Feature** | **Mean** | **Std** | **Interpretation** |
9919+
|-----------|--------------|----------|----------|--------------------|
9920+
| 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.
9931+
- **Low-mean features:** Inputs below roughly `2×10⁻⁵` contribute marginally, likely encoding contextual or redundancy signals (e.g., time gaps, missingness, auxiliary stats).
9932+
- **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.
99069942

99079943

99089944

0 commit comments

Comments
 (0)