DeepPumas for Viral Dynamics Workshop
Combining Mechanism and Machine Learning
1 Workshop Materials
Welcome to the DeepPumas for Viral Dynamics Workshop! This full-day workshop will teach you how to combine mechanistic modeling with machine learning using DeepPumas for viral dynamics and other pharmacometric applications.
All materials are ready and available below. Navigate to the slides and exercises using the schedule and links provided.
1.1 Getting the code to run the hands-on exercises
- Fire up a DeepPumas app in juliahub.com
- You should have received a coupon code in your email. This code will give you credits and access to the DeepPumas app.
- When launching the DeepPumas app, use “launch custom instance” and select 16vCPU and a 9h time limit.
- Wait a minute for the VSCode view to pop up in your browser.
- Clone this repository either
- In the GUI
- Bring up the command pallette (
Ctrl+shift+p, or from the cogwheel in the bottom left corner) - Search for
git clone - clone
https://github.com/PumasAI-Labs/ViralDynamicsWorkshop.gitinto/home/jrun/data/code/
- Bring up the command pallette (
- or, in the terminal terminal
- If you don’t have a terminal, open one by searching for
Terminal: focus on terminal viewin the command pallette. - Navigate to
~/data/code - Clone using
git clone https://github.com/PumasAI-Labs/ViralDynamicsWorkshop.git
- If you don’t have a terminal, open one by searching for
- In the GUI
2 Schedule and Materials
| Time | Session | Materials |
|---|---|---|
| 09:00 - 09:20 | Welcome and Introduction | Slides |
| 09:20 - 10:30 | NLME modeling in Pumas | Hands-on |
| 10:30 - 10:45 | ☕ Coffee Break | |
| 10:45 - 11:15 | DeepNLME | Slides |
| Neural networks, SciML, UDEs and NeuralODEs | ||
| 11:15 - 12:30 | DeepNLME (hands-on) | Hands-on |
| 12:30 - 13:30 | 🍽️ Lunch Break | |
| 13:30 - 13:55 | Random effects, fitting NLME, and Generative AI | Slides |
| 13:55 - 14:40 | DeepNLME with Complex Covariates | Slides and hands-on |
| 14:40 - 15:00 | NLME and Generative AI | Slides |
| 15:00 - 15:30 | Embeddings | Slides or hands-on |
| 15:30 - 15:45 | ☕ Coffee Break | |
| 15:45 - 16:15 | Epidemiology Demo | Slides |
| 16:15 - 17:00 | Discussions and Conclusions |
3 Key Concepts Covered
3.1 Welcome and Introduction
- Machine learning vs. scientific modeling: strengths and limitations
- The vision for combining mechanism and machine learning across pharma
- Building enhanced NLME models with neural components
3.2 NLME Modeling in Pumas
- Traditional nonlinear mixed effects modeling
- PK, PK/PD, and sequential data modeling
- Population parameter estimation and random effects
- Hands-on implementation with HIV viral dynamics data
3.3 DeepNLME Fundamentals
- Neural networks as universal function approximators
- Scientific Machine Learning (SciML) and Universal Differential Equations (UDEs)
- Neural ODEs and structured neural enhancements
- DeepNLME: extending UDEs for longitudinal pharmacometric data
3.4 Random Effects and Model Fitting
- Understanding random effects in mixed models
- Empirical Bayes Estimates (EBEs) and individual parameter estimation
- Maximum likelihood estimation and the EM algorithm
- Computational considerations for fitting DeepNLME models
3.5 Complex Covariates and Embeddings
- Working with high-dimensional and complex covariates
- Patient embeddings from EBEs and clinical data
- Text embeddings using pre-trained language models
- Dimensionality reduction and subspace analysis
- Neural networks for covariate-to-parameter relationships
3.6 NLME and Generative AI
- Mathematical connections between NLME and modern generative AI
- Latent variable models, VAEs, and diffusion models
- Clinical interpretation of learned embeddings
- Future directions and regulatory considerations
3.7 Embeddings Deep Dive
- Advanced embedding techniques for pharmacometric applications
- Integration of multi-modal data (text, images, sequences)
- Transfer learning from pre-trained models
- Practical considerations for implementation
3.8 Epidemiology Applications
- Age-stratified seroprevalence modeling
- Data-driven discovery of force of infection patterns
- Information sharing across populations and studies
- Handling heterogeneous data quality and sparse sampling
4 Learning Objectives
By the end of this workshop, participants will be able to:
- Understand the theoretical foundations connecting mechanistic modeling and machine learning
- Implement DeepNLME models for viral dynamics and other applications
- Work with complex covariates including text data and embeddings
- Apply information sharing techniques across populations
- Recognize connections between NLME and modern generative AI
- Evaluate when and how to use DeepNLME approaches in practice
5 Prerequisites
- Familiarity with NLME modeling concepts