TL;DR
When comparing patient survival across different hospitals, standard models force an uncomfortable trade-off: assume each hospital’s impact is constant over time, or estimate separate curves for each center and watch the math fall apart for smaller clinics. Profile-QSurv solves this by using shared neural networks to learn universal patient risks and temporal building blocks across all hospitals, while allowing individual centers to customize their risk trajectories over time. This reveals not just which hospitals have higher mortality, but when during a patient's stay those differences actually emerge.
What Problem Does This Paper Address?
In survival analysis—the study of time-to-event data like hospital mortality—patients are naturally grouped into clusters (e.g., hospitals or clinics). Two hospitals might end up with the exact same 30-day mortality rate, yet tell completely different clinical stories: Hospital A might suffer from an early spike in deaths due to triage delays, while Hospital B struggles with late-stage complications in prolonged ICU stays.
Existing statistical and deep learning tools struggle to capture this nuance:
- Frailty models assign each hospital a single, time-constant multiplier. This tells you if a hospital is riskier overall, but completely obscures when that risk happens.
- Stratified models give each hospital its own independent baseline hazard curve. Because they don't share temporal information across centers, estimates for smaller hospitals with few events become wildly noisy.
We need a continuous-time method that learns complex, nonlinear patient risk factors across an entire healthcare system while letting individual hospitals express time-varying trajectories—even if they only treat a handful of patients.
Methods
Building on an existing continuous-time neural model (QSurv) that uses Gauss-Legendre quadrature to integrate instantaneous hazards, the authors introduce Profile-QSurv.
Instead of learning isolated curves for every cluster $k$, Profile-QSurv factors the instantaneous hazard $\lambda_k(t|x)$ into global neural networks and local cluster parameters:
- Shared Patient-Risk Network ($h_\theta(t, x)$): Takes patient covariates $x$ and time $t$ to learn nonlinear, time-varying patient risk patterns across the entire cohort.
- Shared Temporal Dictionary ($\phi_\eta(t)$): A neural network taking only time $t$ to output $q$ smooth basis functions (the authors use $q=3$), acting as a shared vocabulary of temporal shapes.
- Cluster Multipliers ($c_k(t)$): Each hospital scales the shared hazard using an unpenalized overall level ($a_k$) and a penalized shape vector ($w_k$) that mixes the temporal dictionary features: $c_k(t) = a_k \exp\{w_k^T \phi_\eta(t)\}$.
What’s novel is the optimization: Rather than training everything via standard gradient descent, the authors use penalized profile likelihood. For fixed neural networks, a hospital's overall level $a_k$ is solved analytically in closed form (matching observed-to-expected events), and its temporal shape $w_k$ is solved via a tiny, strongly concave $q$-dimensional Newton step with an $L_2$ penalty ($\rho$). Only the shared networks require nonconvex gradient updates.
Datasets
- Synthetic Benchmarks: Five simulation scenarios testing varying hospital sizes (50 to 1,200 patients), cluster counts (up to 100 hospitals), nonlinear covariate interactions, and correlated case-mixes. No new public benchmark datasets are introduced, though existing provider-profiling simulation designs are adapted to continuous-time hazards.
- SIVEP-Gripe (COVID-19 Case Study): Real-world surveillance records of 64,056 adult COVID-19 admissions across 106 hospitals in São Paulo, Brazil, during 2020, tracking in-hospital death and live discharge over 28 days.
Key Insights and Ideas
- Automatic Empirical Bayes Shrinkage: The authors prove mathematically that profiling creates a natural tug-of-war governed by hospital size. Large hospitals with many events have high statistical information, allowing them to keep their bespoke temporal shapes. Small hospitals with few events automatically shrink toward the shared global temporal pattern—while still remaining perfectly calibrated to their exact observed death count!
- Disentangling Death from Discharge: Standard in-hospital mortality metrics can be gamed—intentionally or not—by discharging patients early (if a patient dies at home, the hospital doesn't record it). By fitting Profile-QSurv separately to both death and live discharge hazards, you can cleanly isolate true mortality risk from fast-discharge practices.
- Actionable Clinical Audits: Knowing a hospital has high overall mortality doesn't tell administrators which medical charts to pull. Time-varying hazard ratios pinpoint the exact phase of a stay (e.g., Days 0–2 vs. Days 14–28) where excess deaths concentrate.
Key Results
- Simulations: When hospital risks varied over time or correlated with patient severity, Profile-QSurv consistently achieved the lowest error, cutting patient-level hazard RMSE roughly in half compared to neural frailty and stratified neural Cox models.
- COVID-19 Model Fit: On held-out São Paulo data, Profile-QSurv achieved the best negative log-likelihood (1.0071) and best phase-calibration error (1.36, vs. 3.08 for pooled and 1.47–1.87 for frailty/stratified/local baselines).
- Hospital Dynamics: Differences between São Paulo hospitals were starkest right at admission—a 9.0-fold gap between the 90th and 10th percentile hospitals during days 0–2—before narrowing to 4.9-fold in days 14–28.
- Targeted Chart Reviews: Prioritizing mortality audits using Profile-QSurv's phase-specific excess risk increased the yield of "excess" deaths reviewed from 42% to 50% on average (boosting yield by up to 22 percentage points in individual centers). Furthermore, 4 out of 48 hospitals that looked safer than average on paper actually had worse death hazards masked by faster patient discharges.
Limitations and Future Work
- Conditional Confidence Intervals: Uncertainty intervals rely on sample splitting and treat the trained neural networks as fixed. In simulations where validation selected heavy penalties ($\rho$), 95% interval coverage dipped slightly below nominal levels (~90%). Accounting for network estimation uncertainty and shrinkage bias remains an open theoretical step.
- Predicting for Unseen Hospitals: Because clusters are treated as fixed effects without an explicit prior distribution on levels, the model cannot directly predict hazards for a brand-new, unseen hospital without post-hoc empirical distribution fitting.
- Uniform Covariate Effects: Currently, how a patient's age or comorbidity affects risk is assumed to be identical across all hospitals. Adding low-rank, cluster-specific terms to the patient network is a promising next step.
Summary updated