Neural Fine-Gray: Monotonic neural networks for competing risks

Vincent Jeanselme, Chang Ho Yoon, Brian D. M. Tom, Jessica K. Barrett

Abstract

Time-to-event modelling, known as survival analysis, differs from standard regression as it addresses censoring in patients who do not experience the event of interest. Despite competitive performances in tackling this problem, machine learning methods often ignore other competing risks that preclude the event of interest. This practice biases the survival estimation. Extensions to address this challenge often rely on parametric assumptions or numerical estimations leading to sub-optimal survival approximations. This paper leverages constrained monotonic neural networks to model each competing survival distribution. This modelling choice ensures the exact likelihood maximisation at a reduced computational cost by using automatic differentiation. The effectiveness of the solution is demonstrated on one synthetic and three medical datasets. Finally, we discuss the implications of considering competing risks when developing risk scores for medical practice.

Introduction

In medical research, survival analysis is essential for predicting the timing of clinical events. However, real-world data often contains censoring (patients leaving a study) and competing risks—events like death from an unrelated cause that prevent the primary outcome from occurring. Standard models often treat competing risks as simple censoring, which biases results and typically overestimates risk. Existing neural network approaches often rely on rigid parametric assumptions or computationally expensive numerical integration. Neural Fine-Gray (NeuralFG) addresses these limitations by using constrained monotonic neural networks to handle competing risks with mathematical exactness and high efficiency.

Methodology

NeuralFG utilizes a modular architecture to estimate the Cumulative Incidence Function (CIF) while ensuring it remains monotonically increasing—a fundamental requirement for survival models.

Neural Fine-Gray architecture consisting of Embedding (E), Balancing (B), and Sub-distribution (M) networks.

The architecture consists of three main components:

  1. Embedding Network ($E$): A standard multi-layer perceptron that compresses patient covariates into a latent representation.
  2. Balancing Network ($B$): Uses a SoftMax layer to estimate the probability of each specific risk occurring.
  3. Sub-distribution Networks ($M$): These model the timing of each risk.

The "secret sauce" is the use of monotonic neural networks. By forcing the weights of these networks to be positive (using a square function), the model guarantees that the CIF always increases over time. Crucially, this design allows the use of automatic differentiation to calculate exact likelihoods, avoiding the slow numerical approximations required by previous state-of-the-art models like DeSurv.

Experimental Setup

The model was evaluated across four datasets representing different scales and complexities:

  • PBC (Primary Biliary Cholangitis): A small clinical trial (312 patients) where death is the primary outcome and transplant is the competing risk.
  • Framingham: A longitudinal study (4,434 patients) modeling cardiovascular disease (CVD) risk, with death from other causes as the competing risk.
  • Synthetic: A generated dataset (30,000 instances) with complex, non-linear relationships used to test the model's ability to recover known distributions.
  • SEER: A massive cancer registry dataset (658,354 patients) focusing on breast cancer mortality vs. cardiovascular death.

Results and Discussion

NeuralFG achieves state-of-the-art performance in both discriminative power and calibration across diverse scenarios.

Performance comparison of NeuralFG against baseline models across four datasets using C-Index and Brier Score.

Predictive Performance

As shown in the results table, NeuralFG demonstrated lower or equal Brier Scores (a measure of calibration) compared to state-of-the-art models like DeepHit and Deep Survival Machines (DSM) across almost all datasets and time horizons. While its discriminative performance (C-Index) is highly competitive, its primary strength lies in its mathematical robustness.

Computational Efficiency

NeuralFG offers a massive computational speedup over DeSurv. While DeSurv requires $n$ forward passes (where $n$ is the number of integration points) to estimate the likelihood, NeuralFG requires only one forward and one backward pass. This results in a complexity reduction from $O(nN)$ to $O(2N)$.

Clinical Implications

The paper highlights that ignoring competing risks has tangible medical consequences. In the Framingham dataset, NeuralFG reclassified 251 patients from "intermediate/high risk" to "low risk." In a real-world setting, this could prevent unnecessary over-treatment with drugs like statins for patients more likely to die from other causes first.

Conclusion

NeuralFG provides a flexible, efficient, and mathematically sound framework for survival analysis with competing risks. While the high flexibility of neural networks can lead to overfitting on very small datasets like PBC, its performance on larger, complex datasets makes it a powerful tool for clinical risk scoring. Future work will focus on improving model interpretability and extending the architecture to handle longitudinal time-series data.

Summary updated

BibTeX
@inproceedings{jeanselme2023neural,
  author = {Vincent Jeanselme and Chang Ho Yoon and Brian D. M. Tom and Jessica K. Barrett},
  title = {{Neural Fine-Gray: Monotonic neural networks for competing risks}},
  booktitle = {CHIL},
  year = {2023},
  url = {https://openreview.net/forum?id=cQIMnf33E2},
}
Figure