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 clinical research, survival analysis is the standard for predicting the time until an event of interest occurs, such as the onset of a disease or patient mortality. However, real-world medical data is rarely straightforward. Patients are often subject to "competing risks"—events that prevent the primary event of interest from occurring. For instance, in a study focusing on lung cancer mortality, a patient dying from a cardiovascular event is no longer at risk of dying from cancer.

Traditional survival models frequently treat these competing events as "non-informative" censoring, effectively assuming that the patient would have eventually experienced the primary event had they lived long enough. This assumption is often flawed and leads to biased, overly optimistic survival estimates. While classical statistical models like the Fine-Gray model exist to address this, they rely on rigid proportional hazards assumptions. Conversely, modern machine learning approaches often struggle with computational inefficiency due to their reliance on numerical integration.

The Neural Fine-Gray Framework

Neural Fine-Gray (NeuralFG) is designed to overcome these limitations by directly modelling the Cumulative Incidence Function (CIF)—the probability that a specific event $k$ occurs by time $t$. The architecture is composed of three distinct modules:

  1. Embedding Network (E): A multi-layer perceptron that processes patient covariates (e.g., age, blood pressure, biomarkers) into a latent representation.
  2. Sub-distribution Networks (M): A set of $R$ networks, one for each competing risk. These networks are architecturally constrained to be positive and monotonic. Since a CIF must, by definition, be non-decreasing over time, these networks use positive weights (enforced via a square function) and a SoftPlus output layer to ensure mathematical validity.
  3. Balancing Network (B): A softmax layer that ensures the sum of all event probabilities at any given time does not exceed 100%.

The Efficiency of Differentiation

A core innovation of NeuralFG is its approach to likelihood maximization. Most survival models define a "hazard" function and must integrate it over time to determine survival probability. Numerical integration is computationally expensive and introduces approximation errors. NeuralFG reverses this logic: by defining the CIF directly, the model can compute the likelihood function—which requires the derivative of the CIF—using automatic differentiation. In modern deep learning frameworks, differentiation is exact and computationally efficient, allowing NeuralFG to train significantly faster than models requiring numerical integration.

Experimental Evaluation

The researchers evaluated NeuralFG against state-of-the-art models (such as DeSurv and DeepHit) across four diverse datasets:

  • PBC (Primary Biliary Cholangitis): A small clinical trial dataset (312 patients) involving death versus liver transplant.
  • Framingham: A longitudinal study (4,434 patients) focused on cardiovascular disease (CVD) versus other causes of death.
  • Synthetic Data: A controlled environment (30,000 patients) used to verify the model's ability to capture complex, non-linear dependencies.
  • SEER: A large-scale cancer registry (658,354 patients) comparing breast cancer mortality to cardiovascular death.

Across these benchmarks, NeuralFG consistently matched or outperformed existing models in both discrimination (the ability to rank patients by risk, measured by the C-Index) and calibration (the accuracy of the predicted probability, measured by the Brier Score).

Clinical Implications and Risk Reclassification

The paper highlights a critical consequence of ignoring competing risks: the potential for medical over-treatment. Using the Framingham dataset, the authors demonstrated that standard models often overestimate the risk of cardiovascular disease because they do not properly account for the competing risk of death from other causes.

When applying NeuralFG to the Framingham cohort, 251 patients were reclassified from "intermediate-to-high risk" to a lower risk category. In a clinical setting, this shift is significant; it could mean the difference between a patient being prescribed lifelong medication, such as statins, or being managed through less intensive means. This underscores the necessity of using models that accurately reflect the multi-faceted nature of human health.

Conclusion and Future Work

Neural Fine-Gray provides a robust, efficient, and mathematically grounded framework for survival analysis in the presence of competing risks. By leveraging monotonic neural networks and automatic differentiation, it offers a scalable solution that avoids the pitfalls of numerical integration and rigid statistical assumptions.

While the model shows great promise, the authors note that it can be sensitive to very small datasets where simpler linear models might suffice. Future research directions include extending the architecture to handle longitudinal data (time-varying covariates) and improving model interpretability to help clinicians understand the specific drivers behind a patient's risk profile.

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