Luca Pegolotti
Researcher in Machine Learning for Health

I am a researcher interested in Artificial Intelligence (AI), and in particular its applications to health. I have recently been a postdoctoral researcher at Apple Health AI in Zürich, Switzerland. Previously, I was a postdoctoral researcher in the Cardiovascular Biomechanics Computation Lab at Stanford University under the supervision of Prof. Alison Marsden. Here, my work focused on AI/data-driven methods for cardiovascular flow modeling. I was one of the main maintainers of the Vascular Model Repository, a large and publicly available repository of cardiovascular models and simulations. Before Stanford, I obtained my PhD in Applied Mathematics at the École Polytechnique Fédérale de Lausanne, where I worked under the supervision of my advisor Prof. Simone Deparis on data-driven models for Partial Differential Equations. Other than research, my passions are electronic music production, endurance sports, and the outdoors in general.

Publications
Authors in some papers are listed in alphabetical order. I was the main contributor in those marked with *
Richter, J., Nitzler, J., Pegolotti, L., Menon, K., Biehler, J., Wall W. A., Schiavazzi D. E., Marsden A. L., & Pfaller M. R. Bayesian Windkessel calibration using optimized zero-dimensional surrogate models. Philosophical Transactions A 383 (2292), 20240223
[ Paper ] [ Abstract ]

Bayesian boundary condition (BC) calibration approaches from clinical measurements have successfully quantified inherent uncertainties in cardiovascular fluid dynamics simulations. However, estimating the posterior distribution for all BC parameters in three-dimensional (3D) simulations has been unattainable due to infeasible computational demand. We propose an efficient method to identify Windkessel parameter posteriors: We only evaluate the 3D model once for an initial choice of BCs and use the result to create a highly accurate zero-dimensional (0D) surrogate. We then perform Sequential Monte Carlo (SMC) using the optimized 0D model to derive the high-dimensional Windkessel BC posterior distribution. Optimizing 0D models to match 3D data a priori lowered their median approximation error by nearly one order of magnitude in 72 publicly available vascular models. The optimized 0D models generalized well to a wide range of BCs. Using SMC, we evaluated the high-dimensional Windkessel parameter posterior for different measured signal-to-noise ratios in a vascular model, which we validated against a 3D posterior. The minimal computational demand of our method using a single 3D simulation, combined with the open-source nature of all software and data used in this work, will increase access and efficiency of Bayesian Windkessel calibration in cardiovascular fluid dynamics simulations.

Many authors contributed to this paper. Red teaming ChatGPT in medicine to yield real-world insights on model behavior. npj Digital Medicine 8 (1), 149
[ Paper ] [ Abstract ]

Red teaming, the practice of adversarially exposing unexpected or undesired model behaviors, is critical towards improving equity and accuracy of large language models, but non-model creator-affiliated red teaming is scant in healthcare. We convened teams of clinicians, medical and engineering students, and technical professionals (80 participants total) to stress-test models with real-world clinical cases and categorize inappropriate responses along axes of safety, privacy, hallucinations/accuracy, and bias. Six medically-trained reviewers re-analyzed prompt-response pairs and added qualitative annotations. Of 376 unique prompts (1504 responses), 20.1% were inappropriate (GPT-3.5: 25.8%; GPT-4.0: 16%; GPT-4.0 with Internet: 17.8%). Subsequently, we show the utility of our benchmark by testing GPT-4o, a model released after our event (20.4% inappropriate). 21.5% of responses appropriate with GPT-3.5 were inappropriate in updated models. We share insights for constructing red teaming prompts, and present our benchmark for iterative model assessments.

Rubio, N. L., Pegolotti, L., Pfaller, M. R., Darve, E., & Marsden, A. L. (2025). Hybrid physics-based and data-driven modeling of vascular bifurcation pressure differences. Computers in Biology and Medicine 184, 109420
[ Paper ] [ Abstract ]

Reduced-order models allow for the simulation of blood flow in patient-specific vasculatures. They offer a significant reduction in computational cost and wait time compared to traditional computational fluid dynamics models. Unfortunately, due to the simplifications made in their formulations, reduced-order models can suffer from significantly reduced accuracy. One common simplifying assumption is that of continuity of static or total pressure over vascular bifurcations. In many cases, this assumption has been shown to introduce significant errors in pressure predictions. We propose a model to account for this pressure difference, with the ultimate goal of increasing the accuracy of cardiovascular reduced-order models. Our model successfully uses a structure common in existing reduced-order models in conjunction with machine-learning techniques to predict the pressure difference over a vascular bifurcation. We analyze the performance of our model on steady and transient flows, testing it on three bifurcation cohorts representing three different bifurcation geometric types. We find that our model makes significantly more accurate predictions than other models for approximating bifurcation pressure losses commonly used in the reduced-order cardiovascular modeling community. We also compare the efficacy of different machine-learning techniques and observe that a neural network performs most robustly. Additionally, we consider two different model modalities: one in which the model is fit using both steady and transient flows, and one in which it is optimized for performance in transient flows. We discuss the trade-off between the physical interpretability associated with the first option and the improved accuracy in transient flows associated with the latter option. We also demonstrate the model’s ability to generalize by testing it on a combined dataset containing two different bifurcation types. This work marks a step towards improving the accuracy of cardiovascular reduced-order models, thereby increasing their utility for cardiovascular flow modeling.

Manduchi, L., Wehenkel, A., Behrman, A., Pegolotti, L., Miller, A. C., Sener, O., Cuturi, M., Sapiro, G., & Jacobsen, J. H. (2025). Leveraging Cardiovascular Simulations for In-Vivo Prediction of Cardiac Biomarkers. arXiv preprint arXiv:2412.17542
[ arXiv preprint ] [ Abstract ]

Whole-body hemodynamics simulators, which model blood flow and pressure waveforms as functions of physiological parameters, are now essential tools for studying cardiovascular systems. However, solving the corresponding inverse problem of mapping observations (e.g., arterial pressure waveforms at specific locations in the arterial network) back to plausible physiological parameters remains challenging. Leveraging recent advances in simulation-based inference, we cast this problem as statistical inference by training an amortized neural posterior estimator on a newly built large dataset of cardiac simulations that we publicly release. To better align simulated data with real-world measurements, we incorporate stochastic elements modeling exogenous effects. The proposed framework can further integrate in-vivo data sources to refine its predictive capabilities on real-world data. In silico, we demonstrate that the proposed framework enables finely quantifying uncertainty associated with individual measurements, allowing trustworthy prediction of four biomarkers of clinical interest--namely Heart Rate, Cardiac Output, Systemic Vascular Resistance, and Left Ventricular Ejection Time--from arterial pressure waveforms and photoplethysmograms. Furthermore, we validate the framework in vivo, where our method accurately captures temporal trends in CO and SVR monitoring on the VitalDB dataset. Finally, the predictive error made by the model monotonically increases with the predicted uncertainty, thereby directly supporting the automatic rejection of unusable measurements.

Iacovelli, A. Pegolotti, L., Pfaller, M. R., Salvador, M., Stoppa, E., Santambrogio, M. D, & Marsden, A. L. (2023). A Novel LSTM and Graph Neural Networks Approach for Cardiovascular Simulations. 2024 IEEE EMBS International Conference on Biomedical and Health Informatics (BHI).
[ Paper ] [ Abstract ]

We propose a novel method that integrates Long Short-Term Memory (LSTM) networks with Graph Neural Networks (GNNs) to build reduced-order models of cardiovascular simulations. Reduced-order models are often used as an alternative to full three-dimensional cardiovascular simulations, providing a way to simplify the computational demands associated with fully detailed 3D simulations. The proposed method encodes blood fluid dynamics within a MeshGraphNet-based framework, which is particularly effective in modeling complex physical systems by leveraging graph structures to represent the state of the system. Our method extends the capabilities of the original framework by incorporating LSTMs to capture long-term dependencies, thereby improving predictive accuracy and significantly reducing the computational resources required for the training process. This method achieves errors below 2% for blood pressure and flow rate predictions, showcasing a 65% improvement in average error rates compared to the MeshGraphNet-based framework and a notable increase in computational efficiency, reducing training time by at least 57%. Our method also introduces the ability to adapt the simulation to different cardiac cycles depending on the patient, providing a robust and efficient tool for patient-specific cardiovascular modeling.

Pfaller, M. R., Pegolotti, L.,, Rubio, N. L., Pham, J., & Marsden, A. L. (2024). Reduced-order modeling of cardiovascular hemodynamics. Biomechanics of the Aorta
[ Book chapter ] [ Abstract ]

Three-dimensional cardiovascular fluid dynamics simulations typically require hours to days of computing time on a high-performance computing cluster. In many applications, reduced-order models can deliver a fast yet accurate approximation of key quantities of interest, such as bulk flow or pressure waveforms at vessel outlets. Such models not only hold independent value but can also be used to accelerate uncertainty quantification, optimization studies, and inverse problems. In this chapter, we review physics-based and data-driven models and highlight popular computational techniques to solve them. Physics-based models are obtained by making simplifying assumptions on the nature of flow in blood vessels. By contrast, data-driven models leverage existing solutions to reduce computational complexity. Finally, we briefly outline strategies to generate reduced-order models, published benchmarks, and available open science resources.

Pegolotti, L.,* Pfaller, M. R., Rubio, N. L., Ding, K., Brufau, R. B., Darve, E., & Marsden, A. L. (2024). Learning Reduced-Order Models for Cardiovascular Simulations with Graph Neural Networks. Computers in biology and medicine 168, 107676
[ Paper ] [ Code ] [ Abstract ]

Reduced-order models based on physics are a popular choice in cardiovascular modeling due to their efficiency, but they may experience loss in accuracy when working with anatomies that contain numerous junctions or pathological conditions. We develop one-dimensional reduced-order models that simulate blood flow dynamics using a graph neural network trained on three-dimensional hemodynamic simulation data. Given the initial condition of the system, the network iteratively predicts the pressure and flow rate at the vessel centerline nodes. Our numerical results demonstrate the accuracy and generalizability of our method in physiological geometries comprising a variety of anatomies and boundary conditions. Our findings demonstrate that our approach can achieve errors below 3% for pressure and flow rate, provided there is adequate training data. As a result, our method exhibits superior performance compared to physics-based one-dimensional models while maintaining high efficiency at inference time.

Schwarz, E. L., Pegolotti, L., Pfaller, M. R., & Marsden, A. L. (2023). Beyond CFD: Emerging methodologies for predictive simulation in cardiovascular health and disease. Biophysics Reviews, 4(1).
[ Paper ] [ Abstract ]

Physics-based computational models of the cardiovascular system are increasingly used to simulate hemodynamics, tissue mechanics, and physiology in evolving healthy and diseased states. While predictive models using computational fluid dynamics (CFD) originated primarily for use in surgical planning, their application now extends well beyond this purpose. In this review, we describe an increasingly wide range of modeling applications aimed at uncovering fundamental mechanisms of disease progression and development, performing model-guided design, and generating testable hypotheses to drive targeted experiments. Increasingly, models are incorporating multiple physical processes spanning a wide range of time and length scales in the heart and vasculature. With these expanded capabilities, clinical adoption of patient-specific modeling in congenital and acquired cardiovascular disease is also increasing, impacting clinical care and treatment decisions in complex congenital heart disease, coronary artery disease, vascular surgery, pulmonary artery disease, and medical device design. In support of these efforts, we discuss recent advances in modeling methodology, which are most impactful when driven by clinical needs. We describe pivotal recent developments in image processing, fluid–structure interaction, modeling under uncertainty, and reduced order modeling to enable simulations in clinically relevant timeframes. In all these areas, we argue that traditional CFD alone is insufficient to tackle increasingly complex clinical and biological problems across scales and systems. Rather, CFD should be coupled with appropriate multiscale biological, physical, and physiological models needed to produce comprehensive, impactful models of mechanobiological systems and complex clinical scenarios. With this perspective, we finally outline open problems and future challenges in the field.

Pfaller, M. R., Pham, J., Verma, A., Pegolotti, L., Wilson, N. M., Parker, D. W., ... & Marsden, A. L. (2022). Automated generation of 0D and 1D reduced‐order models of patient‐specific blood flow. International Journal for Numerical Methods in Biomedical Engineering, 38(10), e3639.
[ Paper ] [ Abstract ]

Three-dimensional (3D) cardiovascular fluid dynamics simulations typically require hours to days of computing time on a high-performance computing cluster. One-dimensional (1D) and lumped-parameter zero-dimensional (0D) models show great promise for accurately predicting blood bulk flow and pressure waveforms with only a fraction of the cost. They can also accelerate uncertainty quantification, optimization, and design parameterization studies. Despite several prior studies generating 1D and 0D models and comparing them to 3D solutions, these were typically limited to either 1D or 0D and a singular category of vascular anatomies. This work proposes a fully automated and openly available framework to generate and simulate 1D and 0D models from 3D patient-specific geometries, automatically detecting vessel junctions and stenosis segments. Our only input is the 3D geometry; we do not use any prior knowledge from 3D simulations. All computational tools presented in this work are implemented in the open-source software platform SimVascular. We demonstrate the reduced-order approximation quality against rigid-wall 3D solutions in a comprehensive comparison with N = 72 publicly available models from various anatomies, vessel types, and disease conditions. Relative average approximation errors of flows and pressures typically ranged from 1% to 10% for both 1D and 0D models, measured at the outlets of terminal vessel branches. In general, 0D model errors were only slightly higher than 1D model errors despite requiring only a third of the 1D runtime. Automatically generated ROMs can significantly speed up model development and shift the computational load from high-performance machines to personal computers.

Bonnemain, J., Zeller, M., Pegolotti, L., Deparis, S., & Liaudet, L. (2021).Deep Neural Network to Accurately Predict Left Ventricular Systolic Function Under Mechanical Assistance. Frontiers in Cardiovascular Medicine, 8, 752088.
[ Paper ] [ Abstract ]

Characterizing left ventricle (LV) systolic function in the presence of an LV assist device (LVAD) is extremely challenging. We developed a framework comprising a deep neural network (DNN) and a 0D model of the cardiovascular system to predict parameters of LV systolic function. DNN input data were systemic and pulmonary arterial pressure signals, and rotation speeds of the device. Output data were parameters of LV systolic function, including end-systolic maximal elastance (Emax,lv), a variable essential for adequate hemodynamic assessment of the LV. A 0D model of the cardiovascular system, including a wide range of LVAD settings and incorporating the whole spectrum of heart failure, was used to generate data for the training procedure of the DNN. The DNN predicted Emax,lv with a mean relative error of 10.1%, and all other parameters of LV function with a mean relative error of <13%. The framework was then able to retrieve a number of LV physiological variables (i.e., pressures, volumes, and ejection fraction) with a mean relative error of <5%. Our method provides an innovative tool to assess LV hemodynamics under device assistance, which could be helpful for a better understanding of LV-LVAD interactions, and for therapeutic optimization.

Pegolotti, L.,* Pfaller, M. R., Marsden, A. L., & Deparis, S. (2021). Model order reduction of flow based on a modular geometrical approximation of blood vessels. Computer methods in applied mechanics and engineering, 380, 113762.
[ Paper ] [ Code ] [ Abstract ]

We are interested in a reduced order method for the efficient simulation of blood flow in arteries. The blood dynamics is modeled by means of the incompressible Navier–Stokes equations. Our algorithm is based on an approximated domain-decomposition of the target geometry into a number of subdomains obtained from the parametrized deformation of geometrical building blocks (e.g., straight tubes and model bifurcations). On each of these building blocks, we build a set of spectral functions by Proper Orthogonal Decomposition of a large number of snapshots of finite element solutions (offline phase). The global solution of the Navier–Stokes equations on a target geometry is then found by coupling linear combinations of these local basis functions by means of spectral Lagrange multipliers (online phase). Being that the number of reduced degrees of freedom is considerably smaller than their finite element counterpart, this approach allows us to significantly decrease the size of the linear system to be solved in each iteration of the Newton–Raphson algorithm. We achieve large speedups with respect to the full order simulation (in our numerical experiments, the gain is at least of one order of magnitude and grows inversely with respect to the reduced basis size), whilst still retaining satisfactory accuracy for most cardiovascular simulations.

Bonnemain, J., Pegolotti, L., Liaudet, L., & Deparis, S. (2020). Implementation and calibration of a deep neural network to predict parameters of left ventricular systolic function based on pulmonary and systemic arterial pressure signals. Frontiers in physiology, 11, 1086.
[ Paper ] [ Abstract ]

The evaluation of cardiac contractility by the assessment of the ventricular systolic elastance function is clinically challenging and cannot be easily obtained at the bedside. In this work, we present a framework characterizing left ventricular systolic function from clinically readily available data, including systemic and pulmonary arterial pressure signals. We implemented and calibrated a deep neural network (DNN) consisting of a multi-layer perceptron with 4 fully connected hidden layers and with 16 neurons per layer, which was trained with data obtained from a lumped model of the cardiovascular system modeling different levels of cardiac function. The lumped model included a function of circulatory autoregulation from carotid baroreceptors in pulsatile conditions. Inputs for the DNN were systemic and pulmonary arterial pressure curves. Outputs from the DNN were parameters of the lumped model characterizing left ventricular systolic function, especially end-systolic elastance. The DNN adequately performed and accurately recovered the relevant hemodynamic parameters with a mean relative error of less than 2%. Therefore, our framework can easily provide complex physiological parameters of cardiac contractility, which could lead to the development of invaluable tools for the clinical evaluation of patients with severe cardiac dysfunction.

Dal Santo, N., Deparis, S., & Pegolotti, L. (2020). Data driven approximation of parametrized PDEs by reduced basis and neural networks. Journal of Computational Physics, 416, 109550.
[ Paper ] [ Abstract ]

We are interested in the approximation of partial differential equations with a data-driven approach based on the reduced basis method and machine learning. We suppose that the phenomenon of interest can be modeled by a parametrized partial differential equation, but that the value of the physical parameters is unknown or difficult to be directly measured. Our method allows to estimate fields of interest, for instance temperature of a sample of material or velocity of a fluid, given data at a handful of points in the domain. We propose to accomplish this task with a neural network embedding a reduced basis solver as exotic activation function in the last layer. The reduced basis solver accounts for the underlying physical phenomenon and it is constructed from snapshots obtained from randomly selected values of the physical parameters during an expensive offline phase. The same full order solutions are then employed for the training of the neural network. As a matter of fact, the chosen architecture resembles an asymmetric autoencoder in which the decoder is the reduced basis solver and as such it does not contain trainable parameters. The resulting latent space of our autoencoder includes parameter-dependent quantities feeding the reduced basis solver, which – depending on the considered partial differential equation – are the values of the physical parameters themselves or the affine decomposition coefficients of the differential operators.

Deparis, S., Iubatti, A., & Pegolotti, L.* (2019). Coupling non-conforming discretizations of PDEs by spectral approximation of the Lagrange multiplier space. ESAIM: Mathematical Modelling and Numerical Analysis, 53(5), 1667-1694.
[ Paper ] [ Code ] [ Abstract ]

This work focuses on the development of a non-conforming method for the coupling of PDEs based on weakly imposed transmission conditions: the continuity of the global solution is enforced by a finite number of Lagrange multipliers defined over the interfaces of adjacent subdomains. The method falls into the class of primal hybrid methods, which include also the well-known mortar method. Differently from the mortar method, we discretize the space of basis functions on the interface by spectral approximation independently of the discretization of the two adjacent domains. In particular, our approach can be regarded as a specialization of the three-field method in which the spaces used to enforce the continuity of the solution and its conormal derivative across the interface are taken equal. One of the possible choices to approximate the interface variational space – which we consider here – is by Fourier basis functions. As we show in the numerical simulations, the method is well-suited for the coupling of problems defined on globally non-conforming meshes or discretized with basis functions of different polynomial degree in each subdomain. We also investigate the possibility of coupling solutions obtained with incompatible numerical methods, namely the finite element method and isogeometric analysis.

Deparis, S., Deville, M. O., Menghini, F., Pegolotti, L.,* & Quarteroni, A. (2019). Application of the Rosenbrock methods to the solution of unsteady 3D incompressible Navier-Stokes equations. Computers & Fluids, 179, 112-122.
[ Paper ] [ Abstract ]

We consider the Rosenbrock methods, namely a family of methods for Differential Algebraic Equations, for the solution of the unsteady three-dimensional Navier-Stokes equations. These multistage schemes are attractive for non-linear problems because they achieve high order in time, ensuring stability properties and linearizing the system to be solved at each timestep. Moreover, as they provide inexpensive ways to estimate the local truncation error, adaptive timestep strategies can be easily devised. In this work we test the Rosenbrock methods for the solution of three-dimensional unsteady incompressible flows. We derive the correct essential boundary conditions to impose at each stage in order to retain the convergence order of the schemes. Then, we consider two benchmark tests: a flow problem with imposed oscillatory pressure gradient whose analytical solution is known and the classical flow past a cylinder. In the latter case, we especially focus on the accuracy in the approximation of the drag and lift coefficients. In both benchmarks we test the performance of a time adaptivity scheme.

Pegolotti, L.,* Dedè, L., & Quarteroni, A. (2019). Isogeometric analysis of the electrophysiology in the human heart: numerical simulation of the bidomain equations on the atria. Computer Methods in Applied Mechanics and Engineering, 343, 52-73.
[ Paper ] [ Abstract ]

We consider Isogeometric Analysis (IGA) for the numerical solution of the electrophysiology of the atria, which in this work is modeled by means of the bidomain equations on thin surfaces. First, we consider the bidomain equations coupled with the Roger–McCulloch ionic model on simple slabs. Here, our goal is to evaluate the effects of the spatial discretization by IGA and the use of different B-spline basis functions on the accuracy of the approximation, in particular regarding the accuracy of the front velocity and the dispersion error. Specifically, we consider basis functions with high polynomial degree, p, and global high order continuity, Cp-1, in the computational domain: our results show that the use of such basis functions is beneficial to the accurate approximation of the solution. Then, we consider a realistic application of the bidomain equations coupled with the Courtemanche–Ramirez–Nattel ionic model on the two human atria, which are represented by means of two NURBS surfaces.

Selected talks
International Conference on Industrial and Applied Mathematics (Tokyo, Japan)
August 2023
Platform for Advanced Scientific Computing (PASC) Conference (virtual)
June 2023
Invited talk: Mathematical and Scientific Machine Learning (Brown University, USA) [Video]
June 2023
Math 2 Product (Taormina, Italy)
May 2023
Invited talk: presentation on GNNs for cardiovascular flow at ETH (Zürich, Switzerland)
May 2023
Int. Symp. on Computer Methods in Biomechanics and Biomedical Eng (Paris, France)
May 2023
Society of Engineering Science Meeting 2022 (College Station, USA)
October 2022
World Congress in Computational Mechanics IX (virtual)
August 2022
Coupled Problems (Sitges, Spain)
June 2019
Finite Elements in Fluids (Chicago, USA)
April 2019
World Congress in Computational Mechanics XIII (New York, USA)
July 2018
Liking this website? The code is available here