2025-07-23 –, David Lawrence Hall Room 104
We present a physics-informed neural ODE approach for modeling tumor-immune dynamics using Julia. Dual neural networks learn immune suppression and corrections within Gompertz growth framework. Model achieves R²>0.85 accuracy and captures 42.3% volume reduction effects. Implementation uses DifferentialEquations.jl, Flux.jl, and SciMLSensitivity.jl, training in <1hr on Atsou tumor datasets.
Tumor-immune dynamics modeling requires integrating biological principles with data-driven learning. This work presents a physics-informed neural ordinary differential equation (PNODE) approach implemented in Julia for accurate tumor-immune interaction modeling.
Methodology
Our approach combines established Gompertz growth dynamics with neural-learned immune effects using Kevin Atsou's tumor growth datasets. The dual neural network architecture separates immune-mediated suppression from general model corrections. The immune response network processes normalized tumor volume and immune cell fractions to predict immune suppression effects, while the correction network uses volume and time inputs to capture unmodeled residuals.
The physics-informed loss function incorporates five components: volume prediction accuracy, derivative matching for physics consistency, growth smoothness penalties, biological constraints ensuring volume positivity, and L2 regularization. This multi-objective approach ensures learned dynamics respect fundamental biological laws while maintaining predictive accuracy.
Julia Implementation
The implementation leverages six core Julia packages demonstrating the ecosystem's scientific computing capabilities:
•
DifferentialEquations.jl: Robust ODE solving with automatic differentiation support
•
Flux.jl: Flexible neural network framework with seamless ecosystem integration
•
SciMLSensitivity.jl: Efficient gradient computation through differential equation solutions
•
Optimization.jl: Unified optimization interface for training coordination
•
OptimizationOptimJL.jl: Advanced LBFGS optimization algorithms
•
Zygote.jl: Automatic differentiation enabling end-to-end gradient computation
Training employs a two-phase strategy combining AdamW (1000 iterations) for global exploration and LBFGS (1000 iterations) for local refinement, achieving convergence in under one hour.
Results
The model demonstrates strong performance across multiple evaluation metrics:
•
Prediction accuracy exceeding R² = 0.85 across tumor scenarios C2-C4 and cases T1-T5
•
Captured 42.3% tumor volume reduction through immune effect modeling
•
Strong negative correlation (r = -0.82, p < 0.001) between immune response strength and tumor growth rates
•
Real-time prediction capabilities suitable for interactive analysis
The 3D immune response surface learned by the neural networks reveals complex non-linear relationships between tumor burden and immune activation, providing insights into tumor-immune interaction mechanisms.
Technical Contributions
The work demonstrates several technical innovations:
•
Integration of physics-informed constraints with neural ODE modeling
•
Dual network architecture separating biological mechanisms
•
Multi-objective loss function balancing accuracy and biological realism
•
Efficient Julia implementation showcasing ecosystem interoperability
The approach successfully models tumor volume trajectories under varying immune conditions, capturing both the underlying Gompertz growth dynamics and immune-mediated modifications. The physics-informed framework ensures biological plausibility while the neural components provide flexibility to capture complex, non-linear relationships.
Dataset and Validation
Model training and validation used Kevin Atsou's comprehensive tumor-immune interaction datasets, including time-series tumor volume measurements, corresponding immune cell levels, and multiple immune parameter scenarios. The dataset encompasses tumor scenarios T1-T5 under immune conditions C2-C4, enabling robust evaluation across diverse biological conditions.
Julia Ecosystem Impact
This work contributes to the Julia scientific computing ecosystem by demonstrating effective integration of differential equations, neural networks, and optimization for biological modeling. The approach showcases Julia's unique advantages for scientific machine learning applications, achieving both high performance and code clarity essential for complex biological system modeling.
The methodology provides a foundation for physics-informed modeling of other biological systems where mechanistic understanding must be combined with data-driven learning. The modular design enables adaptation to different biological processes and disease systems.
- GIthub repository of the dataset.
- Tumour volume with vs without immune response (54.3 KB)
- Observed vs Predicted Volume (predicted volume is a line plot where the Observed volumes are plotted using scatterplot). (26.9 KB)
- Source code (34.5 KB)
- Presentation file pptx (2.8 MB)
- Presentation file pdf (795.6 KB)
I'm a computer science enthusiast with a love for AI and machine learning. Currently, I'm working through a B.Tech in AI & ML at Netaji Subhash Engineering College in Kolkata and a BS in Data Science & Applications at IIT Madras. These studies have given me a solid grounding in math, data analytics, and machine learning.
I've had some opportunities along the way—like working on large language models to simplify language for kids with learning disabilities at Jadavpur University, and developing a machine learning solution at Doyen Diagnostics to predict disease burden and craft personalized health scores.
I've also dabbled in projects ranging from EEG-based schizophrenia classification to highway traffic flow analysis and accident detection with computer vision.
Now, I'm diving into Julia and looking forward to sharing ideas and collaborating with the Julia community at JuliaCon on all things computational and innovative.