Non-Negative Universal Differential Equations With Applications in Systems Biology

Maren Philipps, Antonia Körner, Jakob Vanhoefer, Dilan Pathirana, Jan Hasenauer

Abstract

Universal differential equations (UDEs) leverage the respective advantages of mechanistic models and artificial neural networks and combine them into one dynamic model. However, these hybrid models can suffer from unrealistic solutions, such as negative values for biochemical quantities. We present non-negative UDE (nUDEs), a constrained UDE variant that guarantees non-negative values. Furthermore, we explore regularisation techniques to improve generalisation and interpretability of UDEs.

Introduction

In systems biology, Ordinary Differential Equations (ODEs) are the standard for modeling the temporal dynamics of biological entities like proteins or cell populations. While mechanistic models are interpretable, they often fail to capture unknown interactions. Universal Differential Equations (UDEs) address this by integrating Artificial Neural Networks (ANNs) into the differential equations to approximate these "knowledge gaps."

However, standard UDEs often fail a basic biological "sanity check": they can predict negative concentrations or populations, which are physically impossible. This instability leads to unreliable predictions and simulation crashes. This paper introduces non-negative UDEs (nUDEs), which mathematically guarantee non-negativity, and output regularization to prevent the ANN from overfitting or "absorbing" the known physics of the system.

Methodology: The nUDE Framework

The authors propose a modified model structure: $$\frac{dx}{dt} = f(x, t, \theta_M) + N(x) \odot U(\nu(x), \theta_U)$$ Where $f(x)$ represents the known mechanistic part, $U(x)$ is the neural network, and $N(x)$ is a non-negativity factor. By choosing $N(x)$ such that it approaches zero as the state variable $x$ approaches zero (e.g., $N(x) = x$ or $N(x) = \tanh(\alpha x)$), the neural network's influence is suppressed before it can push a value into the negative range.

Additionally, the paper introduces Output Regularization. Unlike standard weight-based regularization, this technique penalizes the total contribution of the ANN to the system's dynamics. This forces the model to prioritize known mechanistic terms, using the ANN only to fill necessary gaps.

Experimental Evaluation

The approach was tested on two benchmarks:

  1. Synthetic Lotka-Volterra Model: A predator-prey system where interaction terms were treated as unknown.
  2. Boehm Model: A real-world model of STAT5 protein dimerization involving 8 ODEs. Two scenarios were tested: Scenario 1 (single missing mechanism) and Scenario 2 (ANN affecting multiple species, increasing overfitting risk).

Key Results

Stability and Non-Negativity

In the Lotka-Volterra tests, standard UDEs frequently produced negative populations, with over 50% of runs failing the non-negativity check. In contrast, 100% of nUDE runs remained non-negative. The choice of $N(x)$ also impacted performance; while $N(x) = x$ is a simple linear constraint, a bounded function like $N(x) = \tanh(10x)$ provided smoother transitions, improving both computational efficiency and model quality.

Stability of nUDE variants compared to standard UDEs. The nUDE variants consistently produce non-negative solutions across multiple optimized models, whereas standard UDEs frequently fail.

Accuracy and Regularization

In the complex Scenario 2 of the Boehm model, unregularized UDEs significantly overfit the data, resulting in "spiky" and biologically unrealistic trajectories. The proposed output regularization improved the Normalised Mean Squared Error (NMSE) by over 10-fold, from approximately 146 down to 12.

Ensemble fits for the Boehm model. Scenario 2 demonstrates how unregularized UDEs (left) can produce unrealistic trajectories, while regularized versions (right) yield smoother, more plausible fits to the measurement data.

Discussion and Future Work

The nUDE structure provides a robust mathematical guarantee for non-negativity in hybrid models. While numerical noise in ODE solvers can still cause infinitesimal dips below zero, the framework represents a significant step toward making UDEs reliable for biological applications. Future work will focus on integrating these constraints directly into solver step-size logic and automating the selection of hyperparameters for the non-negativity factor $N(x)$.

Summary updated

BibTeX
@inproceedings{philipps2024non,
  author = {Maren Philipps and Antonia Körner and Jakob Vanhoefer and Dilan Pathirana and Jan Hasenauer},
  title = {{Non-Negative Universal Differential Equations With Applications in Systems Biology}},
  booktitle = {IFAC-PapersOnLine},
  year = {2024},
  doi = {10.1016/j.ifacol.2024.10.005},
}
Figure