Skip to main content

This is a preprint.

It has not yet been peer reviewed by a journal.

The National Library of Medicine is running a pilot to include preprints that result from research funded by NIH in PMC and PubMed.

Research Square logoLink to Research Square
[Preprint]. 2026 Aug 4:rs.3.rs-10503600. [Version 1] doi: 10.21203/rs.3.rs-10503600/v1

Geometry-conditioned diffusion generation of Lagrangian particle trajectories in human airways

Ignacio R Bartol a, Martin Graffigna Palomba a, Mauricio E Tano b,*, Shaheen A Dewji a,*
PMCID: PMC13484839  PMID: 42620398

Abstract

Fast and subject-specific prediction of particle transport in the human airways is central to quantifying aerosol deposition, optimizing inhaled drug delivery, and supporting dose assessment in radiation research. While computational fluid and particle dynamics simulations provide high-fidelity trajectory data, their use in clinical or large-cohort settings remains limited by stringent geometric preprocessing (segmentation quality control, topology repair, surface smoothing, and meshing) and by the high computational cost of coupled airflow-particle tracking. Recent data-driven surrogates have accelerated aspects of airway flow prediction, but most approaches focus on Eulerian flow fields, operate in simplified or two-dimensional settings, and often struggle to generalize across complex three-dimensional anatomies. Especially for particle trajectories in a Lagrangian frame of reference, which are intrinsically multimodal and sensitive to local geometry.

In this work we propose a geometry-conditioned guided denoising diffusion probabilistic model that generates physically plausible particle trajectories directly in a Lagrangian representation. Airway anatomy is encoded by a variational autoencoder to provide a compact conditioning latent, and geometric feasibility during sampling is reinforced through signed distance function guidance that discourages samples leaving the airway lumen. Despite training on particle-track data from only nine simulated airway geometries, the proposed method produces trajectory ensembles that qualitatively match ground-truth branching patterns and recover the underlying velocity magnitude statistics with good agreement, while guidance reduces non-physical wall-penetrating outliers. Remaining limitations include occasional boundary violations in challenging cases, reduced diversity in some distal branches under strong guidance, and degraded behavior for out-of-distribution geometries not represented by the limited training set.

Keywords: Lagrangian particle tracking, human airways, diffusion probabilistic model, geometry conditioning, signed distance function, aerosol transport

1. Introduction

Inhaled particle transport in the human respiratory tract spans a broad range of highly sensitive applications, from radioactive aerosol exposure assessment and respiratory toxicology to the design and optimization of inhaled therapeutics. For medical aerosols, therapeutic effectiveness depends on where and how much of the delivered dose deposits across the extrathoracic region, conducting airways, and peripheral lung, which is influenced by airway morphology, breathing waveform, and particle size distribution Labiris and Dolovich (2003); Longest and Holbrook (2012); Kundu and Panchagnula (2025); Kleinstreuer and Zhang (2010). As a result, subject-specific predictions are attractive for patient-tailored drug delivery and for identifying inter-subject variability in regional deposition Poorbahrami et al. (2019); Huang et al. (2021).

Beyond pharmacological aerosols, detailed particle tracking is central to inhalation dosimetry for radioactive aerosols found in occupational, environmental, and radiological accident scenarios ICRP (1994); Talaat et al. (2019); Bartol et al. (2024b). While regulatory and radiological protection frameworks often rely on population-average deposition models ICRP (1994), several studies have shown that high-resolution computational predictions can localize deposition hot spots and translate them into spatially resolved internal dose estimates that traditional models would have missed assuming uniform deposition across the airway lumen Talaat et al. (2019); Poorbahrami et al. (2019); Bartol et al. (2024b).

Nonetheless, modeling these aerosols is challenging. A multiphysics modeling approach is required; particle deposition is influenced by the interplay of inertial impaction, gravitational sedimentation, and Brownian diffusion, with the relative importance of each mechanism varying strongly with particle size, airway region, and local flow structures Darquenne (2014); Hofmann (2011); Kleinstreuer and Zhang (2010). Consequently, high-fidelity simulations using Computational Fluid and Particle Dynamics (CFPD) remain too time-consuming for many clinical workflows that require rapid exploration of inhaler settings, breathing conditions, or patient anatomies.

State-of-the-art CFPD typically solves airflow using the Navier-Stokes equation in an Eulerian frame of reference, and tracks particles using a Lagrangian formulation, providing highly detailed, spatially resolved predictions of transport and particle deposition profiles Nowak et al. (2003); Longest and Holbrook (2012); Rostami (2009). Despite its accuracy and interpretability, constructing a subject- and scenario-specific CFPD pipeline is non-trivial. The workflow requires: segmentation of the airway tree from a medical imaging (computed tomography or magnetic resonance), 3D surface reconstruction and its repair (e.g., removal of disconnected branches, correction of holes and non-manifold regions), generation of a high-quality volumetric mesh, and careful specification of boundary conditions and turbulence modeling assumptions Longest and Holbrook (2012); Huang et al. (2021); Longest et al. (2019); Bartol et al. (2025). These steps are often stringent because small geometric defects (particularly near bronchi bifurcations) can produce ill-conditioned meshes or non-physical flow artifacts that propagate into particle deposition predictions Huang et al. (2021); Longest et al. (2019).

Even after preprocessing steps, computational wall time remains the primary bottleneck for computing a diverse dataset that covers multiple boundary conditions. High-fidelity predictions may require transient simulations, fine near-wall resolution, and large particle datasets to reduce variance and resolve rare events in the tail of deposition statistics Kleinstreuer and Zhang (2010); Longest et al. (2019); Huang et al. (2021). Consequently, while CFPD is well-suited for detailed analysis and device development, it is challenging to deploy at scale across large cohorts or embed in iterative clinical decision support.

Motivated by the cost of numerical simulation, machine learning surrogates for fluid dynamics have grown rapidly Brunton et al. (2020); Kochkov et al. (2021); Kutz and Brunton (2016). Early approaches using deep learning often encode geometry into a fixed grid and perform regression on Eulerian flow observables such as velocity or pressure fields Guo et al. (2016). More recent operator-learning approaches aim to learn mappings between function spaces, which are considered more interpretable and can make predictions across families of partial differential equations Lu et al. (2021); Li et al. (2021); Huhn et al. (2023); Graffigna et al. (2026). Another approach used mesh-based graph neural networks, which provided a route to learning directly on unstructured discretizations Pfaff et al. (2021) and have the potential to overcome the limitation of other DL methods that worked only on structured grids. These advances meaningfully expand what is possible with data-driven models for computational physics Brunton et al. (2020); Kochkov et al. (2021), but they have been demonstrated only for Eulerian flow-field prediction, with limited translation to Lagrangian formulations.

Several gaps remain for subject-specific airway particle tracking. First, many learning-based surrogates are evaluated on simplified benchmarks or on problems with controlled geometry parameterizations, leaving open questions about robustness on heterogeneous, patient-derived three-dimensional airway topologies Brunton et al. (2020); Guo et al. (2016); Lu et al. (2021); Graffigna et al. (2026). Second, the dominant target in the literature is the Eulerian carrier-phase field (or aggregated deposition metrics), whereas the downstream quantity of interest in inhalation studies is often the particle-by-particle deposition profile and its uncertainty, including the exact distribution of particle tracks, residence times, and deposition outcomes Longest and Holbrook (2012); Huang et al. (2021); Graffigna et al. (2026). As explained, trajectory generation is intrinsically complex and produces high-variance distributions; even with fixed boundary conditions, the ensemble variability produced by turbulence, near-wall interactions, and stochastic forces (relevant for submicron particles) could be different for the same geometry, and the spatially accurate prediction is critical for risk assessment and dose estimation Darquenne (2014); Hofmann (2011). Finally, purely deterministic regressors as in Han et al. (2022) do not naturally provide a generative mechanism for sampling multiple plausible trajectory realizations conditioned on patient geometry and inhalation settings.

Diffusion probabilistic models address conditional generative modeling by learning a gradual denoising process that maps Gaussian noise to data Sohl-Dickstein et al. (2015); Ho et al. (2020); Nichol and Dhariwal (2021). In the denoising diffusion probabilistic model formulation, a forward Markov chain progressively perturbs data with noise, while a neural network learns the reverse-time denoising transitions Ho et al. (2020); Nichol and Dhariwal (2021). A common parameterization trains a model to predict the injected noise at diffusion step t as in Eq. 1, where c denotes conditioning information Ho et al. (2020); Nichol and Dhariwal (2021).

xt=α‾tx0+1-α‾tϵ,ϵ~𝒩(0,I),ℒ=Eϵ-ϵθxt,t,c22, (1)

Compared to previous generative models, generative adversarial networks (GANs) Goodfellow et al. (2020), diffusion models are widely recognized for stable training (a supervised denoising objective rather than adversarial minimax optimization) and strong empirical sample quality; as it is well known, diffusion models have been shown to exceed state-of-the-art GANs on standard image synthesis benchmarks Dhariwal and Nichol (2021).

Notably, base DDPM models would not suffice to bridge the gap in subject specificity. Conditioning of DDPMs is of utmost importance in this setting, where the experiment requires samples consistent with known context, which for this work is the airway anatomy. Modern conditional diffusion models incorporate rich conditioning pathways, such as cross-attention modules and learned embeddings Rombach et al. (2022); Liu et al. (2023b). Moreover, guided diffusion enables steering of samples at inference time to enforce constraints without retraining the base model, particularly in medical or physical imaging settings, where hallucinations play a vital role Liu et al. (2023a). In image synthesis, guidance has been implemented using auxiliary gradients (classifier guidance) Dhariwal and Nichol (2021) and by combining conditional and unconditional scores, both of which are commonly used in practice and have been formalized in latent diffusion frameworks Rombach et al. (2022). These ideas lay the groundwork for subject-specific trajectory generation, where airway geometric plausibility can be viewed as a constraint that is otherwise difficult to guarantee from data alone (i.e., only particle trajectories).

Recent evidence also indicates that diffusion models are well-suited to learning Lagrangian particle trajectory statistics in complex dynamical systems: diffusion-based generative modeling has been shown to reproduce multi-scale statistics of three-dimensional turbulent single-particle trajectories, including heavy tails and intermittency effects Li et al. (2024a). This motivates exploring diffusion models as samplers for physically plausible trajectory ensembles beyond the turbulence setting, provided that appropriate conditioning and constraints are incorporated.

In this paper, we propose a geometry-conditioned guided DDPM for fast generation of airway particle trajectories. The overarching goal of this work is to replace repeated, computationally costly simulation-based trajectory generation with a learned conditional model that can produce plausible particle tracks for a given airway geometry in seconds to minutes of neural inference, while retaining key statistical-physical features of the underlying dynamics.

The proposed approach combines three ideas. First, we learn a compact latent representation of patient airway geometry with a variational encoder Kingma and Welling (2014) and use this latent vector as conditioning input to the denoising diffusion probabilistic model. Second, we represent airway shape using a signed distance function field – a representation that provides an explicit notion of walls and smooth geometric gradients Park et al. (2019); Mescheder et al. (2019). Third, during inference, we apply signed distance function guidance to discourage samples that violate geometric feasibility (e.g., trajectories leaving the airway lumen), analogously to guidance mechanisms used in conditional diffusion Dhariwal and Nichol (2021); Rombach et al. (2022).

Our contributions in this work are summarized as follows:

  1. a diffusion-based generative model for trajectory ensembles conditioned on three-dimensional patient geometry,

  2. a variational encoding strategy that enables conditioning on anatomies not seen during training,

  3. an inference-time guidance mechanism based on signed distance function geometry that improves geometric plausibility,

  4. an evaluation demonstrating that the model can recover velocity magnitude statistics and produce visually consistent trajectory bundles, while also revealing that generalization to unseen anatomies remains fundamentally limited by the diversity of available simulated geometries.

2. Methods

2.1. Study overview and scope

This study used high-fidelity simulation-derived particle tracks in a Lagrangian framework as the reference data for training and evaluation of a geometry-conditioned DDPM. The input anatomy for conditioningwas represented as a 3D voxelized airway occupancy grid. The DDPM output was one fixed-length sequence of 3D particle positions per generated trajectory (i.e. a sequence of particle tracks). The airway anatomy grid was encoded by a variational geometry encoder (VAE) and supplied to the temporal denoiser as global anatomical conditioning. A signed distance field (SDF), constructed from the same voxelized geometry but not used as a learned conditioning input, was queried during sampling to provide a soft geometric penalty for out-of-lumen positions at inference time.

The inlet flow, particle-size distribution, injection protocol, airway-simulation settings, and terminal handling rules were inherited from the simulation dataset rather than independently conditioned at inference. Therefore, the implementation reported in this manuscript approximates a conditional distribution of position sequences given anatomy under a fixed data-generation regime and preprocessing regime represented in the training data. In its current verstion, it does not output carrier-flow variables, or a deposition/escape label. Comparisons with simulation-derived trajectories were made using the qualitative trajectory overlays and trajectory-derived kinematic metrics defined later in this section. In contrast to diffusion-based trajectory generators developed for unbounded homogeneous isotropic turbulence Li et al. (2024b), the present setting involves bounded, heterogeneous, subject-specific airway domains, which is a major challenge in real-world applications.

This separation between geometry representation, conditioning, and guidance is important for model interpretability. In one hand, the occupancy grid supplies a learned global geometric embedding, whereas the SDF is a directly queried geometric object to correct particle trajectories used during inference. The reference particle-diameter distribution, injection parameters, and breathing conditions (waveform, intensity) defined the regime from which trajectories were sampled; in this study they were not separate conditioning variables for the DDPM as mentioned before. As a result, evaluation focuses on whether generated position sequences follow the represented airway topology and reproduce a broad set of physical metrics focused on particle kinematics.

The remainder of this section describes the reference trajectory source, trajectory representation, geometric preprocessing, conditional diffusion model, SDF-guided sampling procedure, architecture and training protocol, metric definitions, and how we used dynamic mode decomposition (DMD) as baseline to compare differet surrogate models. The carrier-phase and Lagrangian simulation information are included only facilitate the reading flow and provide context for the fixed reference-data regime, the details on the simulation settings can be found in previous work from Bartol et al. (2025, 2024b).

2.2. Reference trajectory dataset

2.2.1. Large-cohort airway segmentation and representative downselection

Airway geometries were reconstructed from a large cohort of CT scans using the segmentation and quality-control workflow described previously Bartol et al. (2025). Briefly, low-quality scans, including scans with thick slices or incomplete thoracic coverage, were excluded before downstream geometry processing. The reconstruction pipeline produced 542 candidate lower-airway 3D reconstructed geometries as mesh surfaces. Automated geometric checks for non-physical branches, unrealistic dimensions, and related failures reduced this set to 412 anatomically valid lower-airway domains for population-level analysis via a downselection process explained below.

Each airway geometry i was summarized by a feature vector zi,

zi=td,i,ba,i,Vi,Li,…⊤, (2)

where td is the volume-averaged tracheal diameter, ba is the main-bronchi carina angle, V is the segmented airway volume, and L is the cumulative bronchial length. Feature vectors were standardized as

z~i=D-1zi-μ, (3)

with μ the cohort mean and D the diagonal matrix of feature standard deviations.

A Random Forest analysis in the prior downselection workflow identified td and ba as informative descriptors for stratification. The reduced phenotype space was therefore defined as

yi=t~d,i,b~a,i⊤. (4)

Phenotypic groups were then obtained using the clustering and representative-selection procedure explained in Bartol et al. (2024b). In the present manuscript, this process yielded nine male groups and nine female groups, containing the 412 airway geometries. One representative geometry was selected from each group by choosing the nearest-neighbor exemplar to the reported cluster centroid,

ik⋆=argmini∈𝒞kyi-μk2,𝒢k⋆≡𝒢ik⋆. (5)

resulting in a total of 18 representative geometries for the database.

As a summary, the downselection progression was therefore starting with 542 candidate reconstructions, 412 anatomically valid lower-airway domains, 18 representative geometries after sex-stratified downselection with available particle-track simulations. Only nine male geometries entered the present generative-model study. Consequently, all trajectory-generation evidence in this manuscript concerns the nine male simulated geometries rather than the full cohort of 412 anatomically valid geometries. The reason for not including the female geometries in this study, is that derived particle tracks from the female cohort is still under validation studies and were not yet published.

2.2.2. Carrier-phase airflow model

The reference carrier-phase airflow calculations used incompressible Reynolds-averaged Navier-Stokes (RANS) equations with the k-ω shear-stress-transport (SST) model Menter (1994) and the Langtry-Menter correlation-based transition model (SST-γ-Reθ, or SST-LM) Menter et al. (2006b); Langtry et al. (2004); Menter et al. (2006a). For a complete numerical please refer to the prior simulation work Bartol et al. (2025). The incompressible RANS equations were written as

∇⋅u¯=0, (6)
ρ∂u¯∂t+u¯⋅∇u¯=-∇p‾+∇⋅μ+μt∇u¯+∇u¯⊤+Sp, (7)

where u¯ is the mean velocity, p‾ is the mean pressure, μ is the molecular viscosity, μt is the modeled eddy viscosity from the SST-LM closure, and Sp is the particle back-coupling momentum source term described in Section 2.2.3.

A sinusoidal inlet-flow waveform representative of heavy exercise was prescribed at the tracheal inlet,

Qt=Qmaxsin2πtT,Qmax=100Lmin-1,T=2s. (8)

The inlet bulk velocity magnitude was then set from the instantaneous flow rate and inlet area A,

u¯in(t)=Q(t)A. (9)

Turbulence inlet quantities were specified from turbulence intensity I and a characteristic length scale L,

kin=32Iu¯in2,ωin=kin1/2Cμ1/4L. (10)

We set the initial turbulence intensity at I=4%, and L defined as the geometry inlet hydraulic diameter dh. A value of 0.09 was set for the Cμ-related initialization constant.

2.2.3. Lagrangian particle tracking and two-way coupling

Particles were simulated using a Lagrangian frame with two-way coupling between the particles and carrier phase. For particle p with mass mp, position xp, and velocity vp, the particle equation of motion was formulated as

dxpdt=vp,mpdvpdt=Fp(drag)+Fp(grav/buoy)+Fp(lift)+Fp(vm)+Fp(Brown). (11)

The modeled forces included drag, gravity/buoyancy, shear lift, virtual mass, and Brownian forces in the submicron regime. The closures and coefficients follow the prior CFPD work Bartol et al. (2025).

Two-way coupling was represented by adding the reaction force from particles to the Eulerian momentum equation as a volumetric source over each control volume Ωc,

SpΩc=-1Ωc∑p∈ΩcFp→f, (12)

where Fp→f denotes the force exerted by a particle on the fluid, which is equal and opposite to the force applied to the particle.

Particle size distribution followed a log-normal sampling parameterized by an activity median aerodynamic diameter and a geometric standard deviation, assuming spherical particles. For diameter d,

p(d)=1dlnσg2πexp-lnd/dg22ln2σg. (13)

The values used for this work were dg=0.42μm and σg=3.5.

Simulated particles were advanced in time until wall deposition, outlet escape, or the end of the simulation. Each exported reference track contained an event state in {in-flight, deposited, escaped}. In the DDPM implementation, however, it was learned only to the three spatial position coordinates. Deposited and escaped reference trajectories were therefore represented in the training tensor through their terminal positions and the last-value-hold operation described in Section 2.3.1.

For each representative geometry 𝒢k⋆, simulations were run under the fixed waveform described above, and particle tracks were exported as time-ordered sequences

𝒯(r)=tℓ,xℓ,vℓ,dp,stateℓℓ=1Lr, (14)

where r indexes an exported trajectory and Lr varies with the termination or export time. The variables vℓ,dp, and stateℓ were retained in the reference export but were not part of the reported C=3 diffusion-model output.

2.3. Trajectory representation and geometric preprocessing

2.3.1. Trajectory tensorization, time discretization, and variable-length handling

For training of the DDPM purposes, each exported trajectory 𝒯(r) was resampled to a fixed length of K=1024 physical-time indices,

tk=kΔt,k=0,…,K-1,K=1024,Δt=0.00125s. (15)

The learning state at time index k was the three-dimensional position,

sk∈R3,x=skk=0K-1∈RK×3. (16)

The K×3 notation was used for the mathematical description of particle trajectories. For one-dimensional convolutional implementation, batches were arranged in channel-first form (B,3,K). The final physical-time index is (K-1)Δt=1.27875s, which for practical purposes is described throughout the manuscript as an approximately 1.28 s horizon. The justification to cut the simulation time from t=2s to t=1.28s is to avoid long-tail events since most of the particles were either deposited on the airway wall or escaped through an outlet at the selected cutoff time. Particle step size was selected relative to local cell size of approximately 1 mm and local particle velocity.

If a particle deposited on the airway wall or escaped through an outlet before tK-1, the final valid position was extended by last-value hold,

xk=xk⋆∀k≥k⋆, (17)

where k⋆ is the last time index for which the trajectory position was updated. The approximately 1.28 s learning horizon was selected using an empirical histogram of last-updated times to reduce the amount of stationary terminal padding relative to the full 2 s waveform interval. Last-value hold creates zero displacement increments after termination and therefore contributed to near-zero finite-difference velocities and accelerations that later created an unrealistic representation in pooled kinematic distributions.

2.3.2. Coordinate frames and normalization

Each airway geometry was associated with voxelization metadata: an origin o∈R3, voxel spacing h∈R3, and grid dimensions d∈N3. World coordinates were mapped elementwise to voxel coordinates by

x(vox)=x(world)-oh, (18)

and then normalized to the coordinate range used by the SDF query,

x(norm)=2x(vox)d-1-1. (19)

The same normalized coordinate system was used for the position channels and for trilinear SDF sampling during guided diffusion. De-normalization to physical coordinates was applied for trajectory analysis.

2.3.3. Geometry voxelization and SDF construction

Each three-dimensional airway surface mesh was provided as an STL surface and voxelized to a binary lumen occupancy grid B∈{0,1}D×H×W. The longest bounding-box dimension was fitted to a target maximum grid size, and zero-padding was applied if needed to produce the model input dimensions of 64 × 64 × 64. The resulting 643 grid is an approximate representation of the detailed airway surface; it should not be interpreted as preserving every distal geometric feature of the original mesh. The binary occupancy grid was used for learned geometry conditioning.

A signed distance field S∈R64×64×64 was computed from the voxelized representation and stored with the corresponding metadata (o, h, d). The SDF was used only at inference time as a soft geometric guidance term. Throughout the manuscript, the adopted convention is S(x)<0 inside the represented airway lumen, S(x)>0 outside the represented airway lumen Continuous SDF values were obtained by trilinear interpolation in the normalized coordinate frame used by Eq. (19).

The two geometry representations therefore had distinct roles: B provided the occupancy-based conditioning input to the denoiser, and S provided an inference-time geometric penalty. Figure 1 illustrates the binary grid and corresponding SDF for one geometry.

Figure 1: Binary occupancy and signed distance field for one airway geometry.

Figure 1:

Top: slices of the binary voxelized lumen supplied to the variational geometry encoder. Bottom: slices of the signed distance field used during inference-time guidance. The adopted sign convention in this manuscript is negative inside the represented lumen and positive outside. Voxelization provides an approximate representation of the STL airway surface.

2.4. Geometry-conditioned diffusion model

Let x∈RK×3 denote a fixed-length three-dimensional particle-position track, and let 𝒢 denote the airway geometrical field supplied through the occupancy grid. The model approximates a conditional distribution over position sequences, pθ(x∣𝒢), under the fixed inlet airflow waveform, particle size distribution, injection protocol, and preprocessing represented in the training data. The modeled object by the DDPM is the position trajectory over time. The training objective contains a denoising loss and a geometry-embedding KL regularization term.

Following diffusion probabilistic modeling Sohl-Dickstein et al. (2015); Ho et al. (2020); Song et al. (2021) and guided-diffusion implementations used in related trajectory-generation work Li et al. (2024a); Dhariwal and Nichol (2021), a fixed Markov chain gradually corrupts a clean trajectory x0 obtained from the CFPD simulation with Gaussian noise, the physical time index is denoted by k, whereas the diffusion step index is denoted by n. We can write the well known forward process as

qx1:N∣x0=∏n=1Nqxn∣xn-1,qxn∣xn-1=𝒩αnxn-1,1-αnI. (20)

Each noise corruption step retains a fraction αn of the previous signal and adds independent Gaussian noise with variance βn=1-αn. The forward process is independent of the airway geometry; geometry enters through the learned reverse process and the inference-time guidance described below in this section.

While the derivation of the closed-form marginal is derived in the original work by Sohl-Dickstein et al. (2015), for any diffusion step can be written as

qxn∣x0=𝒩α‾nx0,1-α‾nI,⇒xn=α‾nx0+1-α‾nϵ,ϵ~𝒩(0,I). (21)

This closed-form allows training examples to be generated by sampling n directly rather than simulating every intermediate noising step, which would be much more inneficient.cf

The implementation used in this work was N=800 diffusion steps and adopted the hyperbolic-tangent cumulative schedule tanh6,1 used in Li et al. (2024a),

α‾n=-tanh7nN-6+tanh(1)-tanh(-6)+tanh(1),n∈{0,…,N}, (22)

which satisfies α‾0=1 and α‾N≃0. The per-step coefficients were then obtained as

αn=α‾nα‾n-1,βn=1-αn,n=1,…,N. (23)

For the reverse denoising process, the generative model learns a reverse-time Markov chain that approximately inverts the forward corruption:

pθx0:N-1∣xN,𝒢=∏n=N1pθxn-1∣xn,𝒢. (24)

The idea of conditioning the neural network on 𝒢 is to make the reverse process dependent on the anatomy, meaning that for a given random Gaussian noise initialization xN, the denoising process is now conditioned on the encoded airway representation so now pθx0:N-1∣xN→pθx0:N-1∣xN,𝒢. Each reverse transition was modeled as a Gaussian distribution,

pθxn-1∣xn,𝒢=𝒩μθxn,n,𝒢,σn2I. (25)

The reverse variance was fixed rather than learned as in previous literature, where σn2 is set from the forward schedule, and σn2=βn for most steps and the forward-posterior variance at the first reverse step.

The denoiser predicts the Gaussian noise added to a position-sequence tensor,

ϵˆθ=ϵθxn,n,𝒢, (26)

where ϵθ is a one-dimensional temporal U-Net with the embedded conditioning. Given ϵˆθ, the new position estimate is

xˆ0xn,n,𝒢=1α‾nxn-1-α‾nϵˆθ. (27)

The reverse mean is then computed from the DDPM posterior parameterization Ho et al. (2020); Dhariwal and Nichol (2021),

μθxn,n,𝒢=μ~xn,xˆ0=1αnxn-βn1-α‾nϵˆθ. (28)

For numerical stability, the reconstructed xˆ0 was clipped to the normalized coordinate range [−1, 1] to constrain reconstructed normalized positions to the training range.

Training objective..

Training sampled a clean trajectory x0, a diffusion step n, and Gaussian noise ϵ, then constructed xn using Eq. (21). The denoiser was trained with the standard noise-prediction objective loss function,

ℒddpm(θ)=Ex0,n,ϵϵ-ϵθxn,n,𝒢22,n~Uniform{1,…,N},ϵ~𝒩(0,I). (29)

Minimizing Eq. (29) trains the U-net ϵθ to estimate the sampled noise at diffusion step n, conditioned on the encoded airway geometry. After training, new trajectories were generated by initializing xN~𝒩(0,I) and iterating over the reverse process from n=N to 1 applying the SDF guidance described in Section 2.5.

Regarding the geometry conditioning, the diffusion model must generate trajectories in bounded anatomy-dependent domains. The occupancy grid therefore supplies a learned global representation of airway morphology to the temporal denoiser. This learned geometry conditioning is distinct from the SDF guidance term, the occupancy grid is encoded by the neural network, whereas the SDF is queried directly during inference as a soft penalty.

2.4.1. Global geometry encoder and variational bottleneck

Given a voxelized occupancy grid B∈{0,1}1×D×H×W, a three-dimensional variational geometry encoder maps the occupancy volume to a global stochastic embedding. In compact notation,

z𝒢=fϕ(B),z𝒢∈Rde. (30)

The purpose of fϕ is to compress the high-dimensional occupancy volume into a low-dimensional vector supplied to the denoiser. The study does not directly evaluate how much local or distal-branch information is retained in this global representation.

The encoder outputs distribution parameters,

μ𝒢,logσ𝒢2=fϕ(B),μ𝒢,σ𝒢∈Rde, (31)

and samples the embedding through reparameterization,

z𝒢=μ𝒢+σ𝒢⊙η,η~𝒩(0,I), (32)

where ⊙ denotes elementwise multiplication. The Kullback–Leibler (KL) regularization term was

ℒKL=DKL𝒩μ𝒢,σ𝒢2‖𝒩(0,I). (33)

The complete training objective for the conditioned DDPM was

ℒtotal=ℒddpm+λKLℒKL,λKL=10-4. (34)

The KL term pulls the geometry-embedding distribution toward the prior and was intended to discourage the encoder from memorizing the discrete training geometries as isolated codes. It does not, on its own, establish that anatomically similar airways map to nearby latent points or that the latent space is organized in an interpretable way. Because the module has no decoder and no geometry-reconstruction objective, we refer to it as a variational geometry encoder rather than as a decoder-based reconstruction model.

The trajectory denoiser ϵθxn,n,𝒢 receives the embedded geometry through the same embedding pathway used for diffusion-step conditioning. The reported operation adds the geometry embedding to the timestep embedding,

econd(n,𝒢)=e(n)+z𝒢. (35)

If the timestep and geometry embeddings are not already dimension matched, a learned projection was done before the sum in (35). The resulting econd conditions each residual block in the temporal U-Net on both the diffusion step and the encoded airway representation.

Following the guided-diffusion U-Net style Nichol and Dhariwal (2021); Dhariwal and Nichol (2021), each residual block receives an embedding vector. With hℓ denoting the feature map at block ℓ, the conditioned residualblock schema is

hℓ+1=hℓ+Reshℓ,econd(n,𝒢). (36)

and the evaluated implementation injects the embedding as a projected additive bias inside the residual transformation,

Reshℓ,econd=Conv2σGNConv1σGNhℓ+Wℓecond, (37)

where σ(⋅) is the SiLU activation, GN is group normalization, and Wℓ is a learned projection. This is an additive-bias mechanism, not FiLM scale-and-shift modulation Perez et al. (2018); which we describe in Eq. (37).

2.5. SDF-guided diffusion sampling

Occupancy conditioning does not guarantee that every stochastic sample remains within the represented lumen. During inference, an SDF-derived formulation, which can be interpreted as a repulsive energy, was therefore used to bias reverse diffusion away from out-of-lumen positions. This guidance is a soft geometric penalty, not a physical wall-contact model and not a hard containment guarantee, specially since the DDPM is a denoising process, which does not generate particle tracks one step at a time. The SDF grid S∈RD×H×W shares the geometry grid with the occupancy representation, and S(x) denotes a continuous SDF value queried at a trajectory position.

To formulate the energy-like SDF penalty, let xn∈RK×3 denote the current noisy trajectory at diffusion step n, with xn,k∈R3 the position at physical-time index k. Using the negative-inside and positive-outside convention from Section 2.3.3, the out-of-lumen energy becomes

Exn;S=∑k=0K-1ψSxn,k. (38)

The hinge penalty was

ψ(s)=ReLU(s). (39)

Thus, generated trajectories that have points with S(x)<0 do not contribute to the hinge penalty, while points with S(x)>0 contribute in proportion to the interpolated positive SDF value. Away from the non-differentiable boundary of the hinge penalty, the contribution of a single point is

∇xn,kExn;S=∇xSxn,k,Sxn,k>0,0,Sxn,k<0. (40)

The descent direction -∇xn,kE is intended to move positive-SDF points toward lower SDF values and the represented lumen. Because the SDF is interpolated on an approximate voxel grid, this operation is as an inference-time bias rather than a guarantee that all samples remain in-lumen.

2.5.1. Guidance-modified reverse step

In standard DDPM sampling, one reverse step is

pθxn-1∣xn,𝒢=𝒩μθxn,n;𝒢,𝚺n, (41)

where μθ is computed from the denoiser as described in equation 28. The reported guided sampler shifted the reverse mean using the SDF energy descent direction,

μ~xn,n;𝒢,S=μθxn,n;𝒢-λg∇xnExn;S, (42)

with guidance scale λg>0. The value of λg=1.0 was set as the default value, and in the experiments ranged from 1.0 to 4.0, adjusted on the fly to reduce the amount of trajectories that drifted away from the airway lumen. The guided reverse sample was then

xn-1=μ~xn,n;𝒢,S+𝚺n1/2z,z~𝒩(0,I). (43)

This mean shift is described as the implemented SDF-guided sampling rule. It should not be read as a claim that the method implements covariancescaled classifier Dhariwal and Nichol (2021).

2.5.2. Sampling algorithm

Algorithm 1 summarizes the geometry-conditioned sampling procedure. The occupancy grid B conditions the denoiser throughout the reverse process, while the SDF S contributes through the gradient term in Eq. (42). Physicalworld coordinates of the trajectories are obtained by de-normalizing x0 after sampling.

2.6. Network architecture and training protocol

The last part related to the DDPM is the actual model architechture. The denoiser was a one-dimensional U-Net operating along the trajectory-time dimension. Its input shape was (B,C,K), with C=3 position channels and K=1024 time indices, and its output was ϵˆ∈RB×C×K. The U-Net followed the guided-diffusion design Nichol and Dhariwal (2021); Dhariwal and Nichol (2021), with base channel count 128, channel multipliers (1, 1, 2, 3, 4), and 4 attention heads.

Training used AdamW with an initial learning rate of 10−4, batch size 128 or 64 depending on the GPU configuration, and an exponential moving average (EMA) of model weights. Multi-GPU training used MPI/DDP following the implementation pattern in Li et al. (2024a). The available hardware was either one NVIDIA H100 GPU or two NVIDIA A100 GPUs, each with 80 GB of memory. The GitHub repository provides all the implementation and configuration details.

Algorithm 1.

Geometry-conditioned diffusion sampling with SDF-based soft guidance

Require: Occupancy grid B representing 𝒢, SDF S, metadata (o, h, d), guidance scale λg, diffusion steps N
1: Initialize xN~𝒩(0,I) in normalized coordinate space
2: for n=N,N-1,…,1 do
3:   Predict noise: ϵˆ←ϵθxn,n;B
4:   Compute DDPM mean: μθxn,n;B from ϵˆ
5:   Evaluate SDF energy: E←∑kReLUSxn,k
6:   Compute soft-guidance direction: g←-∇xnE
7:   Shift mean: μ~←μθ+λgg
8:   Sample: xn-1←μ~+𝚺n1/2z,z~𝒩(0,I)
9: end for
10: De-normalize x0 to world coordinates when reporting trajectories in physical units
11: return x0

Figure 2 provides a graphical summary of the training and guided-inference workflows. The upper row presents the three principal components of training. First, the voxelized airway geometry is mapped to a stochastic anatomy embedding using a variational encoder. In parallel, a clean particle trajectory is progressively corrupted through the DDPM forward process according to a prescribed noise schedule, such that the trajectory distribution approaches a standard Gaussian distribution at the terminal diffusion step. The resulting noisy trajectory, diffusion-step embedding, and geometry latent are then provided to the one-dimensional U-Net, which is trained to predict the injected noise at randomly sampled diffusion steps. Model parameters are optimized by minimizing the discrepancy between the predicted and applied noise.

Figure 2: Methodological overview of the geometry-conditioned guided DDPM.

Figure 2:

The top row summarizes training. A subject-specific airway geometry is voxelized and encoded with a variational geometry encoder to obtain a stochastic global anatomy embedding. A clean fixed-length particle-position trajectory is progressively corrupted by the forward diffusion process, and a one-dimensional U-Net denoiser is trained to predict the injected noise while conditioned on the diffusion step and encoded geometry. The bottom row summarizes inference. Starting from Gaussian noise, the reverse process generates a position trajectory. The occupancy grid provides learned anatomical conditioning, while the SDF supplies an inference-time soft guidance term intended to reduce out-of-lumen samples. The guidance term does not enforce an exact physical boundary or predict terminal deposition or escape states.

The lower row illustrates the guided inference procedure. Sampling begins from Gaussian noise, and the airway geometry is again encoded to condition the reverse denoising process. Conditional and unconditional noise estimates are combined through classifier-free guidance, while an additional SDF-based guidance term penalizes trajectory points predicted outside the airway lumen. This soft geometric constraint biases the reverse process toward anatomically feasible particle tracks, although it does not impose an exact physical boundary condition or explicitly model particle-wall interactions.

2.7. Evaluation design and trajectory-derived metrics

Generated trajectories were compared with the CFPD simulation-derived reference trajectories using the existing qualitative and quantitative summaries which will be described in detail in this section. The qualitative comparisons use projected and three-dimensional overlays of reference and generated tracks over the airway geometry. The quantitative comparisons use speed magnitude distributions, path-length and acceleration summaries, Wasserstein-1 distance for pooled speed distributions, and, a further analysis was used comparting DDPM to DMD reduced order model outputs. Table 1 reports the trajectory-derived kinematic summaries and speed-distribution distances for the main DDPM evaluation.

Table 1: Summary of trajectory-derived kinematic metrics and speeddistribution distance.

For each listed geometry, reference and guided DDPM values are reported for mean acceleration magnitude, 99th percentile acceleration magnitude, mean path length, mean speed magnitude, 99th percentile speed magnitude, speed standard deviation, and Wasserstein-1 distance between pooled speed distributions. Acceleration is in m s−2, path length is in m, and speed quantities and speed W1 are in m s−1. These metrics characterize generated position sequences and their finite-difference kinematics; they do not assess deposition outcomes.

Geometry Set Accel. mean
(ms−2)
Accel. p99
(ms−2)
Path length (m) Speed mean
(ms−2)
Speed p99
(ms-1)
Speed std
(ms−2)
Speed W1
(ms−2)
1 Reference 55.33 568.3 0.2822 0.2207 1.680 0.4291 –
Guided DDPM 54.77 518.9 0.2798 0.2188 1.528 0.4042 0.0181
2 Reference 54.86 518.1 0.2781 0.2175 1.520 0.3967 –
Guided DDPM 54.92 505.1 0.2761 0.2159 1.478 0.3877 0.00618
3 Reference 64.73 561.1 0.3113 0.2435 1.653 0.4578 –
Guided DDPM 60.33 524.3 0.3079 0.2408 1.550 0.4034 0.0209
4 Reference 45.44 535.3 0.2273 0.1778 1.599 0.3853 –
Guided DDPM 45.01 531.8 0.2259 0.1767 1.597 0.3837 0.00135
6 Reference 58.44 550.7 0.2995 0.2342 1.602 0.4247 –
Guided DDPM 53.95 532.0 0.2717 0.2125 1.546 0.4028 0.0217
7 Reference 55.15 543.4 0.2826 0.2210 1.604 0.4171 –
Guided DDPM 53.68 523.0 0.2773 0.2168 1.528 0.4053 0.00509

The definitions below use the position trajectory xkk=0K-1 from Eq. (16). For both reference and generated tracks, finite-difference quantities were computed from positions on the fixed grid with time step Δt. Metrics pooled over all time indices excluded stationary terminal segments introduced by last-value hold. If included, these segments add zero or near-zero increments after a track terminates, affecting the interpretation of pooled speed and acceleration distributions.

2.7.1. Kinematic metrics

The velocity was computed as forward finite-difference associated with the interval from k to k+1 as,

v^k=xk+1-xkΔt,k=0,…,K-2.

The speed magnitude was defined as

sk=v^k2,

where ‖⋅‖2 is the Euclidean norm. Speed has units of m s−1. The reported speed summaries include the mean E[s], standard deviation Std[s], and 99th percentile p99[s].

Acceleration magnitude was approximated by a first-order finite difference of the velocities,

ak=v^k+1-v^k2Δt,k=0,…,K-3.

Acceleration is reported in units of m s−2. The reported acceleration summaries include the mean E[a] and 99th percentile p99 [a].

Another metric analyzed was the path length for a trajectory; which wass computed from position increments,

L=∑k=0K-2xk+1-xk2. (44)

Path length has units of meters.

2.7.2. Distributional similarity

The one-dimensional Wasserstein-1 distance was used to compare empirical pooled speed distributions for generated and reference trajectories Gabriel and Marco (2019). We define Fgen and Fref to denote the empirical cumulative distribution functions of the generated and reference speeds. Then

W1Fgen,Fref=∫-∞∞Fgen(u)-Fref(u)du. (45)

For speed distributions, W1 has units of m s−1. While there is no strict lower bound, lower values indicate closer pooled speed distributions under this metric.

2.8. Exploratory DMD baseline comparison

The DMD comparison from previous work by Graffigna et al. (2026) was retained as an exploratory baseline focused on particle-track representation. DMD is a deterministic, geometry-specific reconstruction fitted to a fixed ensemble state, whereas the DDPM developed in this work is a conditional stochastic generator of subject-specific fixed-length trajectory samples. DMD and multiresolution extensions are described in the cited literature SCHMID (2010); ROWLEY et al. (2009); Kutz et al. (2016); the present manuscript uses them only as a contrast for selected trajectory diagnostics. The comparison was restricted to a single geometry, namely Geometry 1, for which the DDPM was trained and the DMD operator was fitted.

The DMD reconstructed particle trajectories was splitted in two tensors, one with an all-particle tracks in a single tensor (both stuck and particles that have scaped) and a “stuck,” tensor, retaining only particles that were stuck to the lumen wall. Post hoc jump filtering for DMD was applied before computing derivative-sensitive diagnostics. A step exceeding 5×10−2 m was flagged. Trajectories with multiple flagged jumps were excluded, and trajectories with one flagged jump were truncated at the first flagged index. Tracks with fewer than 55 valid frames were excluded. The filtered comparison retained 404 all-tracks trajectories and 290 stuck trajectories, for 694 total retained DMD trajectories. The 404 retained all-tracks trajectories corresponded to 2.3% of the reported 17,840 all-tracks DMD output. This filtering reduced the influence of discontinuities on finite-difference velocities and spectra, but it also biased the DMD sample toward the most stable reconstructions.

The DMD exports contained 60 and 55 frames for the two groups. DDPM and reference trajectories were sampled on a common 55-frame grid using indices selected from the valid 0–1023 range of the 1024-element sequence. Under the adopted effective mapping, Δt≈2.370×10-2s. Because the DMD and DDPM/reference tensors were produced through different time pipelines, lag and spectral diagnostics are best interpreted as frame-matched comparisons. When seconds or hertz are reported for this comparison, they refer to the adopted effective mapping.

The DMD diagnostics included scalar marginal comparisons, component-velocity distributions, multi-lag increment statistics, autocorrelation, and power spectral density. For scalar marginals, the reported analysis used Wasserstein-1 distance, the Kolmogorov-Smirnov statistic, and energy distance Ramdas et al. (2017); Massey (1951); Székely and Rizzo (2013). The corresponding filtered comparison is reported in Figure 7, Figure 11, Figure 12, and Table 2. Any reported comparison between DMD and guided DDPM should therefore be read as an exploratory, filtered, single geometry contrast rather than as a definitive ranking of the two modeling approaches.

Figure 7: Exploratory Geometry 1 track comparison between guided DDPM and DMD.

Figure 7:

The black curves denote the STL outline, green curves denote the DMD all-tracks group, red curves denote the DMD stuck-particle group, and blue curves denote guided DDPM samples. Both outputs occupy major portions of the primary airway envelope, but the unfiltered DMD output includes isolated discontinuous return-to-origin segments. The derivative-based DMD diagnostics below use the jump-filtered subset described in the text and should be interpreted as a filtered Geometry 1 comparison.

Figure 11:

Figure 11:

Autocorrelation of speed R|v|(τ) for guided DDPM (blue), filtered DMD (orange), and reference trajectories (green) in Geometry 1. Lags are primarily interpreted in frames; conversions to seconds use the adopted effective mapping described in the text.

Figure 12:

Figure 12:

Mean one-sided PSD of each velocity component for guided DDPM (blue), filtered DMD (orange), and reference trajectories (green) in Geometry 1. Frequency values in hertz use the adopted effective frame-to-time mapping, so the spectral comparison should be interpreted primarily as a frame-matched diagnostic.

Table 2:

Distributional distances for the exploratory, jump-filtered Geometry 1 comparison. “Guided” refers to the guided DDPM model, and “DMD” refers to the filtered DMD reconstruction. W1 is the Wasserstein-1 distance, with units determined by the row variable. The ratio is DMD divided by guided DDPM. The KS statistic is reported for completeness, but its values were strongly affected by the near-zero stationary component and should not be interpreted as a standalone practical effect size.

Statistic W1 guided W1 DMD Ratio DMD/guided DKS (guided / DMD)
|v|ms-1 6.59 × 10−3 6.19 × 10−2 9.4 0.732 / 0.732
vxms-1 4.40 × 10−3 2.30 × 10−2 5.2 0.368 / 0.391
vyms-1 4.95 × 10−3 1.29 × 10−2 2.6 0.371 / 0.386
vzms-1 1.98 × 10−2 4.21 × 10−2 2.1 0.375 / 0.387
‖Δx‖2[m],τ=1 1.56 × 10−4 1.47 × 10−3 9.4 0.732 / 0.732
‖Δx‖2[m],τ=4 7.58 × 10−4 4.12 × 10−3 5.4 0.717 / 0.717
‖Δx‖2[m],τ=16 8.65 × 10−4 1.38 × 10−2 16.0 0.629 / 0.629
‖Δx‖2[m],τ=32 1.79 × 10−3 2.41 × 10−2 13.4 0.381 / 0.381

3. Results

We evaluated the geometry-conditioned guided DDPM by comparing its generated three-dimensional particle-position trajectories against simulation-derived reference trajectories. Four questions organize the section: how SDF guidance affects apparent trajectory containment and airway-topology alignment; how closely generated tracks agree with the reference on training and held-out airway geometries; how well selected trajectory-derived kinematic distributions and summary metrics match; and how the guided DDPM compares, with a DMD particle-track reconstruction, which is another data-driven reduced order model. Deposited dose, regional deposition, escape probability, and categorical terminal-event prediction were not evaluated.

A note on sample counts for the figures, for visual clarity, the trajectory-overlay figures display 256 randomly selected trajectories out of the 16,384 generated for each set, whereas the distributional summaries use the full reported counts rather than the displayed subset. In the multi-geometry velocity analysis, the source reports 16,384 generated and 50,000 reference trajectories, and the DMD comparison later reports 16,384 trajectories of 1,024 timesteps, only for a single geometry.

3.1. Qualitative effect of SDF guidance on generated trajectories

Figure 3 shows reference trajectories, unguided DDPM samples, and SDF-guided DDPM samples for two reported airway geometries. In the unguided samples, some trajectory segments visibly extend outside the displayed airway outline, and several tracks do not follow the reference bifurcation pattern in the projected views. These visual discrepancies are clear in the tracheal and main bronchial regions, where the unguided samples drift laterally relative to the represented lumen.

Figure 3: Qualitative effect of SDF guidance on generated particle trajectories.

Figure 3:

Reference trajectories (green), unguided DDPM samples (orange), and SDF-guided DDPM samples (blue) are shown for Geometries 6 and 7. Each geometry is displayed in the x-y,x-z, and y-z projections and in a three-dimensional view; the airway surface outline is shown in gray. Guided samples show fewer visually apparent out-of-lumen segments in these examples, but SDF acts as a soft bias and does not guarantee complete lumen containment.

On the other hand, the SDF-guided trajetctories display lower visually apparent out-of-lumen positions and closer alignment with the represented major branches. While this is an improvement, SDF guidance was used as a soft inference-time geometric bias; it does not model wall-interaction physics, therefore there are still some boundary inconsistencies.

3.2. Trajectory generation on training and held-out airway geometries

Figure 4 summarizes qualitative trajectory agreement across five reported geometries. Geometries 1 and 2 are described as training geometries, whereas Geometries 3, 6, and 7 are described as held-out geometries. For the training geometries, the generated trajectories follow the displayed major airway pathways and branch-wise splitting patterns in the projections. Differences remain visible in smaller distal branches, where generated trajectories appear smoother or less spatially dispersed than the reference trajectories. For the reported held-out geometries, the geometry-conditioned sampling framework generated trajectories that are in agreement with the global airway topology, including the main airway and primary bifurcations. Discrepancies increased in distal branches, where generated tracks may under-represent peripheral pathways, exhibit lateral offsets relative to the surface outline, or concentrate in one dominant branch compared with the reference ensemble. These findings provide preliminary evidence of anatomy-conditioned trajectory generation on the stated held-out cases and establish potential for broader anatomical robustness.

Figure 4: Reference and guided DDPM trajectories across reported airway geometries.

Figure 4:

Five airway geometries are shown with particle trajectories projected onto the x-y,x-z, and y-z planes and in a three-dimensional view. Reference trajectories are shown in green, guided DDPM samples are shown in blue, and the airway surface outline is shown in gray. Geometries 1 and 2 are reported as training geometries, whereas Geometries 3, 6, and 7 are reported as held out. The figure provides a qualitative comparison on the stated split and should not be read as proof of broad generalization.

Two sources of test-geometry information are present in the reported framework, first the voxelized occupancy grid is passed through the learned variational geometry encoder, which provides a global conditioning embedding. Separately, the SDF for the same geometry is supplied directly during reverse diffusion as an inference-time soft geometric guide. Therefore, heldout topology alignment and apparent containment are not solely attributed to the learned geometry embedding.

Due to the cost of CFPD simulations, only nine simulated airway geometries had reference particle trajectories used for training/testing the generativemodel. The qualitative held-out results should consequently be interpreted within the limited anatomy set. Additional simulation-derived trajectories from a more diverse anatomy set would be useful for future evaluation.

3.3. Velocity magnitude and trajectory-derived statistics

Velocity magnitudes were derived from first-order finite differences of generated and reference position trajectories. For the multi-geometry velocity comparison, the reported sample counts were N=16,384 generated trajectories and N=50,000 reference trajectories. Figures 5 and 6 show cumulative distribution functions and probability-density histograms for velocity magnitude across the analyzed geometries. Geometry 8 was excluded from this analysis because there was a large mismatch between the generated particle tracks by the DDPM and the represented geometry, despite agreement in part of the central velocity range.

Figure 5: Velocity-magnitude distributions for Geometries 1–4.

Figure 5:

Cumulative distribution functions (left) and probability-density histograms (right) compare generated trajectories with reference trajectories. Velocity magnitudes were derived from position differences. Last-value-held terminal segments contribute near-zero mass, so the low-speed region should be interpreted together with the terminal-padding representation described in the Methods.

Figure 6: Velocity-magnitude distributions for Geometries 5–7.

Figure 6:

Cumulative distribution functions (left) and probability-density histograms (right) compare generated trajectories with reference trajectories. Residual discrepancies are visible near the stationary component and in the upper tail for some geometries. Velocity magnitudes were computed from position differences, and last-value-held terminal segments contribute to the near-zero component.

Across the displayed geometries, the generated and reference cumulative distributions agree most closely in the central portion of the speed range. The histograms also show similar distributional shapes in several cases, while residual differences remain near the zero-velocity component and in the high-speed tails. The use of diffusion models for trajectory-sampling problems is consistent with the broader modeling context discussed by Li et al. (2024a), and the present evidence is limited to the reported airway trajectory validation.

Regarding quantitative analysis, percentage differences for the evaluation set with K=1024 (timesteps) and Δt=0.00125 were computed. The DDPM generated mean speed differed by approximately −4.3%, and the 99th percentile speed differed by approximately −12.0%. Similar reported differences were given for mean path length (−4.3%), mean acceleration (−3.8%), and acceleration 99th percentile (−11.5%).

Taken these results together, the qualitative trajectory overlays and velocity-distribution comparisons show that the guided DDPM generated position trajectories that followed the reported airway topology and reproduced trajectory kinematics to varying degrees. The evidence remains limited by the small number of simulated geometries, by the position-only trajectory representation, and by the absence of direct evaluation of terminal outcomes. The results should therefore be interpreted in the light of a proof-of-concept trajectory-generation evaluation.

3.4. Quantitative trajectory metrics

Table 1 reports acceleration, path-length, speed, and speed-distribution values for the analyzed HRT geometries. The metric definitions are provided in Section 2.7. The reported W1 column compares pooled speed distributions between generated and reference trajectories, with units of m s−1. Lumen containment was over 95% for all geometries, and the reported metrics were computed on the retained trajectories including out-of-lumen segments.

The table includes Geometries 1, 2, 3, 4, 6, and 7. Based on the split stated in the trajectory-overlay results, Geometries 1, 2, and 3 were seen by the encoder during training and Geometries 4, 6, and 7 are held-out cases.

Across the reported geometries, mean values were generally closer than extreme percentiles, while the magnitude of the discrepancy varied by anatomy. The speed W1 values also varied across cases, with lower values indicating closer pooled speed distributions relative to the reference for each of the geometroes.

3.5. Exploratory comparison with DMD for Geometry 1

3.5.1. Evaluation setup

This comparison is an exploratory contrast between two data-driven approaches. The guided DDPM is a conditional stochastic generator of individual particle-position trajectories, using a learned geometry embedding and SDF guidance during sampling. The DMD reconstruction on the other hand is a deterministic, single-geometry reduced-order reconstruction fitted to a fixed particle-ensemble state. The results below should not be interpreted as a general benchmark of surrogate quality or as evidence that one approach replaces the other, but a comparison of their respective strengths and limitations.

The DMD particle-track reconstruction was taken from the DMD study Graffigna et al. (2026). In that formulation, the three Cartesian coordinates of all particles at a given time were shifted by injection time, t~=t-tinjected, and stacked into a single state tensor. A reduced linear operator was then fitted to advance the ensemble state in time. The Koopman operator identifies an approximate linear evolution operator from paired snapshot matrices X-=x1,…,xm-1 and X+=x2,…,xm, so that xk+1≈Axk; the eigenvalues and modes of A define exponential space-time components SCHMID (2010); ROWLEY et al. (2009). Multiresolution DMD extends this idea by recursively applying DMD over time windows to separate dynamics across temporal scales Kutz et al. (2016). Here, DMD was used only as a particletrack reconstruction baseline for the reported Geometry 1 comparison.

The comparison was restricted to Geometry 1 because the DMD operator was fitted in one anatomical domain and cannot be applied unchanged to a new airway mesh without generating new snapshots, mapping states between geometries, and re-identifying the Koopman operator. The guided DDPM samples and the DMD reconstruction were therefore compared on the same geometry. The comparison focuses on particle-track representation, spatial continuity, and same kinematic distributions. The DMD reconstruction was fitted to two exported tensors: one constructed from particles stuck at the wall and another including all particles that either escaped the domain or terminated at the wall. These event categories describe the source trajectory exports and DMD inputs; the guided DDPM results reported here remain position-sequence outputs and do not include an explicit terminal-event classifier.

Figure 7 gives the qualitative Geometry 1 comparison. The guided DDPM samples occupy the primary airway geometry in the X-Y,X-Z,Y-Z, and three-dimensional views. The DMD reconstruction also recovers major portions of the displayed branches, but some DMD trajectories contain abrupt non-physical discontinuous segments that return toward the coordinate origin near the carina. These discontinuities are reconstruction artifacts that come from the DMD fitting procedure, and they are not present in the reference trajectories. The DMD tracks artifacts were filtered out before derivative-based metrics were computed, as described below.

The DMD tracks were filtered before derivative-based metrics were computed. A particle track step was flagged when its magnitude exceeded 5 × 10−2 m, which is as approximately three orders of magnitude above a typical high-velocity region local step in the clean trajectories. Particles with multiple flagged jumps were excluded because repeated discontinuities would dominate velocities and power spectra. For trajectories with a single flagged jump, the first flagged index was interpreted as the onset of non-physical return-to-origin decay, and subsequent samples were discarded. After filtering, particles with at least K=55 valid pre-decay timesteps were retained. The resulting filtered DMD set contained 404 all-tracks particles and 290 stuck-particle trajectories, for 694 retained trajectories. This filtering reduced the influence of discontinuous artifacts on derivative-based summaries, but it also biased the retained DMD set toward the most stable reconstructions.

The DMD reconstructions spanned 60 timesteps for the all-tracks group and 55 timesteps for the stuck-particle group. The diffusion samples were uniformly subsampled from Kfull=1024 to K=55, with the same frame selection applied to the reference tracks. Under this mapping, the common frame spacing was taken as Δt≈1.279s/54≈2.370×10-2s. Because the DMD export and the DDPM/reference tensor were generated through different pipelines, temporal diagnostics that depend on an absolute time axis, including autocorrelation lag and PSD frequency, should be interpreted primarily as frame-matched comparisons.

For speed, velocity components, and multi-lag increment norm, the reported comparison used Wasserstein-1 distance W1, the Kolmogorov–Smirnov statistic DKS, and energy distance Ramdas et al. (2017); Massey (1951); Székely and Rizzo (2013). The definitions and interpretation of these quantities were summarized in Methods section. Table 2 emphasizes W1 and retains DKS as a secondary diagnostic. The KS p-values were reported as <0.05.

3.5.2. Speed and component velocities

Speed and component velocities were computed from first-order position differences, v^k=xk+1-xk/Δt, on the common filtered Geometry 1 frame grid. The mean speed across all particles and timesteps was 0.216 m s−1 for the reference trajectories, 0.222 m s−1 for guided DDPM, and 0.214 m s−1 for DMD. The DMD mean was close to the reference mean, but the distribution differed. Speed samples below 0.01 m s−1 accounted for 67.8% of DMD samples, compared with 72.5% for guided DDPM and 73.3% for the reference trajectories. The DMD 99th percentile, 1.94 m s−1, exceeded the reference value (1.32 m s−1) and the guided DDPM value (1.36 m s−1) by approximately 45%. The reported speed W1 values were 6.19 × 10−2 m s−1 for DMD and 6.59 × 10−3 m s−1 for guided DDPM, corresponding to a 9.4× lower speed-distribution distance for guided DDPM.

Figures 8 and 9 show the corresponding distributions (note that the oversaturated near-zero bin was ommitted here and in the analysis). The guided DDPM and reference distributions have similar bulk locations, with a peak near |v|≈0.7ms-1 and tapering above |v|≈1.4ms-1. The DMD density distribution contains higher probability in the low-speed interval |v|∈[0.0,0.4]ms-1 and a slower-decaying right tail. The empirical cumulative distributions show the same redistribution: the DMD curve lies to the left of the reference through part of the bulk distribution and then crosses into a heavier high-speed tail. Thus, confirmining that similar mean speeds do not imply similar speed distributions.

Figure 8:

Figure 8:

Speed distribution p(|v|) for guided DDPM (blue), filtered DMD (orange), and reference trajectories (green) in Geometry 1. The first histogram bin, which contains the near-zero stationary-particle plateau caused in part by last-value-held terminal segments, is suppressed so that the distribution above the plateau is visible. DMD has more mass in the plotted low-speed interval and a heavier upper tail in this filtered comparison.

Figure 9:

Figure 9:

Empirical cumulative distribution functions of |v| for the filtered Geometry 1 comparison, with samples below 0.01 m s−1 omitted to show the dynamic range above the stationary component. The curves characterize pooled finite-difference speeds and should not be interpreted as terminal-event or deposition metrics.

3.5.3. Increment statistics across lags

A lag τ denotes the number of frames separating two particle positions. The multi-lag increment norm, ‖Δx(τ)‖2=xk+τ-xk2, measures the distance traveled over that frame lag. Short lags compare local step sizes, whereas longer lags compare accumulated branch-scale displacement and the temporal ordering of motion along the trajectory. This metric is useful because two trajectory sets can have similar instantaneous speed distributions while differing in how those speeds are arranged along each track.

The reported analysis used τ∈{1,4,16,32}. Under the adopted effective time mapping, these lags correspond to approximately 0.024 s to 0.76 s, but the primary interpretation remains frame matched. Figure 10 reports the increment-norm densities (note, again the first bin suppressed). Across the four lags, the guided DDPM distributions are closer to the reference distributions than the filtered DMD distributions by the reported W1 values in Table 2. The filtered DMD distributions develop narrow peaks at characteristic magnitudes, including approximately 0.04 m and 0.16 m, that are not apparent in the reference distributions. These peaks become more prominent at longer lags, consistent with repeated modal excursions in the filtered DMD reconstruction.

Figure 10:

Figure 10:

Increment-norm densities p‖Δx(τ)‖2 at four frame lags for guided DDPM (blue), filtered DMD (orange), and reference trajectories (green) in Geometry 1. The first bin is suppressed to display the range above the stationary component. The comparison is exploratory because the models represent different tasks and the DMD sample was filtered before derivative-based metrics were computed.

3.5.4. Temporal correlations and spectra

The normalized speed autocorrelation, R|v|(τ), measures how speed at one frame is correlated with speed at a later frame. It was included because the speed histogram alone does not determine whether speeds are placed in a similar temporal order along each particle path. For each trajectory, the reported analysis mean-centered the speed sequence, correlated it with a lagged copy, zero-offset normalized the result so that R|v|(0)=1, and averaged over trajectories.

Figure 11 shows similar guided DDPM and reference autocorrelation curves in the source analysis. Under the adopted effective time mapping, both curves decay from 1 toward zero by approximately τ≈0.4s, reach a minimum of about −0.2 near τ≈0.9s, and then recover toward zero. The filtered DMD curve decays faster, with R(0.1)≈0.5 compared with approximately 0.7 for the reference, and reaches a shallower trough of approximately −0.13. These physical-time values depend on the adopted mapping and should be interpreted as frame-matched diagnostics rather than independently verified physical lag estimates.

The same temporal structure was evaluated spectrally using the one-sided power spectral density (PSD) of each velocity component. PSD decomposes the variance of a time series across frequency, and its relationship to the autocovariance function follows the Wiener–Khinchin theorem Zbilut and Marwan (2008). In this frame-matched analysis, lower frequencies correspond to slowly varying component motion along coherent airway paths, whereas higher frequencies correspond to rapid component-to-component fluctuations.

Figure 12 plots the mean PSD on log-log axes. The reference and guided DDPM spectra follow a decaying shape, with the reported PSD dropping by roughly two decades between f≈1Hz and the adopted Nyquist frequency fNy≈21Hz. The guided DDPM spectra were reported within approximately a factor of 1.5 of the reference across the plotted band for vx and vy, and within a factor of 2 for vz. The filtered DMD spectrum differs by remaining flatter or rising with frequency, most visibly for vx. At the adopted f≈10Hz value, the DMD PSD for vx exceeded the reference by about an order of magnitude, while near f≈1Hz it was roughly an order of magnitude lower.

3.5.5. Summary of distributional metrics

Table 2 consolidates the reported Wasserstein distances and KS statistics for the metrics considered in this analysis. Across the selected diagnostics, the guided DDPM had lower reported W1 values than the filtered DMD reconstruction. The DMD/guided ratios ranged from 2.1 for vz to 16.0 for the τ=16 increment norm. Because the models represent different tasks and the DMD output was heavily filtered, this comparison should be interpreted as an exploratory contrast rather than a definitive ranking of surrogate models.

3.5.6. DMD and DDPM limitations

The comparison across Figure 7 to Figure 12 and Table 2 led to a consistent interpretation. Guided DDPM reproduced the ground-truth speed distribution, component-velocity distributions, multi-lag increment statistics, autocorrelation, and PSD within the resolution of these diagnostics. DMD reproduced the gross mean speed scale, but the matching mean masked distributional differences. DMD combined excess slow-particle probability with an overly heavy high-speed tail and modal peaks in long-lag displacement.

These differences reflected known limitations of DMD reduced-order reconstructions. First, the learned DMD operator is low-rank and linear in the selected observable space. This structure is useful for coherent dynamics, but it is not designed to represent intermittent, particle-specific events such as wall interactions, branch transitions, sharp geometric turns, or stochastic submicron forcing. Second, the DMD reconstruction is unconstrained by the airway surface. Unlike the guided DDPM sampler, it does not evaluate a signed distance function or apply a boundary penalty during generation. Third, DMD is fitted to a fixed state dimension and coordinate system. A new airway geometry would require new high-fidelity snapshots and a new operator, or a validated state-mapping procedure, rather than direct evaluation of the existing DMD model. Fourth, DMD is deterministic after the operator and amplitudes are specified, so it does not naturally sample the full conditional distribution of plausible Lagrangian tracks.

The jump-filtering step for the DMD data was deemed fair for numerical comparison, but it introduced its own limitation. Removing particles with multiple discontinuities and truncating trajectories at the first return-to-origin event prevented non-physical jumps from dominating finite-difference velocities and PSD values. However, the retained 694-particle DMD ensemble represented only the most stable portion of the reconstruction. The 404 retained all-tracks particles corresponded to 2.3% of the 17 840 all-tracks output. The fact that DMD still trailed guided DDPM after this favorable filtering indicated that the remaining discrepancy was not solely an artifact of unfiltered jump events.

The PSD comparison in Figure 12 shown that velocity-component spectra contained more low-frequency than high-frequency power, reflecting persistent translation through the airway with smaller high-frequency fluctuations. Guided DDPM reproduced this roll-off. DMD produced a flatter or rising spectrum, indicating underrepresentation of slow coherent motion and overrepresentation of high-frequency oscillatory content. The faster DMD autocorrelation decay in Figure 11 was the corresponding time-domain manifestation of the same spectral imbalance.

For downstream tasks that depend on single-particle increments (including deposition-site localization, residence-time analysis, and transport-coefficient estimation) the DMD particle-track surrogate was therefore less reliable than the guided DDPM model in this comparison. The τ=16 increment distance, which lies in the lag range relevant to branch-scale transport over the reduced 55-frame window, was 16× larger for DMD than for guided DDPM. The guided DDPM model also retained a practical advantage that DMD in its current version did not: once trained, it could be conditioned on a new airway representation, whereas a fitted DMD operator could not be transferred to a new anatomical mesh without additional simulation and operator identification. On the trained/fitted geometry, the guided DDPM model reproduced single-particle speed, component-velocity, multi-lag increment, autocorrelation, and PSD statistics more accurately than the DMD reconstruction, which one may contradict that this analysis may not be fair due to using a geometry that was on the training dataset, but likewise was for the DMD case.

4. Discussion

Across geometries, the guided denoising diffusion probabilistic model closely matched ground-truth mean kinematics but tends to mildly smooth extreme events. In Table 1, speed mean was typically within a few percent of ground truth, while speed p99 and acceleration p99 were consistently lower than ground truth in most cases, indicating slight under-representation of the highest-speed and highest-acceleration events. This behavior demonstrated consistent with denoising-based generative models where guidance and denoising reduced tail variability when the training distribution was limited.

Wasserstein distances between speed distributions were small (on the order of 10−3 to 10−2), indicating that the guided DDPM model recovered the overall speed distribution shape well, even when some tail mass is slightly reduced.

Geometry 4 shown the smallest Wasserstein distance (W1≈0.00135), and the kinematic metrics were extremely close (speed p99 differed negligibly). On the other hand, Geometry 6 standed out due to the mean speed and mean path length being notably lower than ground truth, and W1 was among the largest, indicating that the generated ensemble departed the most from the ground-truth statistics in this case. This trend was consistent with the qualitative behavior observed in guidance comparisons in Figure 4, for difficult geometries, guidance can improve feasibility but may also bias trajectories toward dominant pathways, effectively having the effect of reducing path length and suppressing high-speed excursions.

These results should be interpreted in light of the training regime as well, although each CFPD simulation yielded many trajectories (rich sampling of the kinematic distribution), the number of distinct simulated geometries was relatively small. Diffusion models robustly learn trajectory statistics given sufficient samples, but geometry-specific generalization is fundamentally constrained by the diversity of airway shapes seen during training. Therefore, the observed performance is encouraging for kinematic representation of the particle paths and distributional recovery, while the feasibility and generalization limitations point directly to dataset expansion (more geometries) and improved geometry alignment for signed distance function evaluation as high-impact next steps.

Beyond geometry, additional conditioning variables can be appended in future ablations, e.g., particle diameter dp, Stokes number St, inlet flow rate parameters Qmax,T, or event-type priors (deposition vs escape). These can enter the model as feature, embeddings added to econd or via feature-wise linear modulation (FiLM).

The qualitative analysis demonstrated that diffusion-based generative modeling remains a practical and effective paradigm for synthesizing Lagrangian particle trajectories conditioned on subject-specific airway geometry. Two aspects of the proposed framework were particularly important and are detailed below.

First, geometry conditioning via a variational autoencoder enabled non-trivial generalization to geometries not encountered during training. The number of distinct anatomies available for training and testing was only nine. This imbalance created a fundamental bottleneck for learning geometry-specific behaviors, especially in distal branches where inter-subject variability was higher. In this context, the observed qualitative agreement on unseen geometries should be interpreted as interpolation within a sparsely sampled geometry manifold rather than broad robustness to arbitrary airway anatomy. Nevertheless, the ability to produce plausible trajectories on held-out cases indicated that the latent geometry representation captured meaningful anatomical factors for conditioning the diffusion model.

Second, SDF guidance played a critical role during inference by improving geometric plausibility. Unguided sampling drifted into non-physical regions, yielding trajectories that violated airway boundaries or form implausible bundles not aligned with the lumen. Incorporating guidance consistently suppressed outliers and increased general alignment with airway topology, particularly in the trachea and main bronchi. At the same time, the results suggested a trade-off. Stronger guidance reduced sample diversity by concentrating trajectories in dominant pathways and under-representing peripheral branches, which as a consequence it will demand a larger number of trajectory samples when are synthetically generated, as opposed to CFPD generated ones. This behavior was consistent with a guidance mechanism that biases sampling toward geometric feasibility. In practice, the guidance weight should therefore be treated as a tunable parameter that balances constraint satisfaction against faithful reproduction of trajectory variability.

Another outcome was that the guided DDPM model was able to recover velocity magnitude statistics with good agreement to CFPD-derived results, as evidenced by the cumulative distribution functions and histograms. This finding supports the broader expectation that diffusion models are well-suited to learning complex, multimodal distributions without the training instabilities and mode collapse commonly associated with adversarial objectives Liu et al. (2020); Dhariwal and Nichol (2021). Even under limited geometry diversity, the model benefited from the large number of trajectory samples per geometry and learned robust marginal kinematic statistics.

4.1. Limitations

Several limitations must be emphasized to frame the current contributions appropriately and to guide future work.

The most significant limitation was the small number of geometries with particle-track simulations. With only nine simulated anatomies, the model could not fully learn the breadth of anatomical variability presented in population-scale airway datasets. As a consequence, performance degraded for some of the out-of-distribution geometries, where the model hallucinated trajectory patterns that were not physically meaningful (e.g., incorrect branch volumetric occupation or implausible concentration patterns). This limitation was structural and not easy to solve, since improving generalization will require increasing the number of simulated geometries, which requires extra thousands of CPU-hours.

On the residual boundary violations, although signed distance function guidance improves feasibility, some generated trajectories still crossed physical boundaries in challenging cases (e.g., near complex bifurcations, or in thin distal branches). This indicated that guidance alone on the predicted mean for denoising, was not a complete guarantee of constraint satisfaction, especially if the conditioning latent places the sampler near poorly supported regions of the training distribution. Guidance can reduce non-physical outliers but may also reduce diversity in distal airways and slightly bias the distribution of rare events. This may be especially relevant for applications where capturing tail behavior (rare high-speed jets, near-wall residence events, or extreme accelerations) is important. Moreover, the current framework conditions primarily on geometry (via the variational autoencoder latent) and used a fixed or implicitly learned particle-size distribution from the training data. Realistic aerosol transport for any material depends strongly on particle diameter and density. Extending the model to incorporate or conditioning particle size (either by providing the diameter as an additional conditioning variable for each trajectory or by modeling mixtures of size-resolved conditional distributions) is a fundamental next step. This would enable inference for arbitrary size distributions and would support patient- and scenario-specific prediction at inference time.

Finally, while diffusion-based inference is fast once trained, expanding the training set with additional geometries or particle distributions requires more high-fidelity CFPD simulations and therefore more computational time. This creates a clear roadmap for improvement, but also highlights the need for careful experimental design and potentially hybrid data strategies (e.g., combining a smaller number of high-fidelity simulations with additional lower-cost simulations, likely one-way coupled, or using synthetic geometry augmentation validated against physics).

4.2. Future work

Future work should extend the present particle-trajectory formulation in several directions. A first task is explicit modeling and evaluation of active, deposited, and escaped terminal states, rather than representing terminal behavior only through position sequences and last-value hold. Such a model would require event-aware training targets and separate validation of terminal-event accuracy.

A second gap to address is conditional control over variables that were fixed or implicit in the current training distribution. Particle diameter, injection state, particle-size distribution, and breathing waveform parameters should be represented as explicit conditioning variables before the model is used for scenario-specific trajectory generation. These additions would need validation against reference trajectories generated under corresponding simulation regimes.

Larger and more diverse anatomy-level datasets would be needed as well for broader validation. Additional simulated geometries would support more informative train/validation/test splits, more rigorous assessment of anatomy-conditioned generation, and better characterization of failure modes in distal branches. Future model development should also investigate multiscale or local geometry conditioning. A single global occupancy embedding may be insufficient to represent local branch structure, distal airway features, and bifurcation-scale constraints. Local surface, centerline, branch, or patch-based conditioning could be evaluated prospectively, provided that the resulting conditioning variables are defined reproducibly and tested against reference trajectories.

Lastly, additional work is needed to verify SDF and coordinate consistency and to evaluate stronger constrained-sampling methods. Future studies should report quantitative containment diagnostics, guidance-scale sensitivity, and failure cases near thin or high-curvature structures. Direct evaluation of deposition outcomes should be treated as a separate downstream validation step rather than assumed from trajectory-shape or kinematic agreement. Uncertainty, sensitivity, and ablation analyses would further clarify which parts of the framework drive the reported behavior.

5. Conclusions

This work introduced a geometry-conditioned, guided DDPM for generating Lagrangian particle trajectories in subject-specific human airway geometries. Motivated by the need for fast, anatomy-aware particle tracking for aerosol deposition analysis, inhaled drug delivery optimization, and radiation research, the proposed approach addresses critical limitations of CFPD simulations by learning a direct generative surrogate from simulation-derived trajectories. The framework combined a variational autoencoder geometry latent for conditioning with SDF guidance during inference to improve geometric feasibility and reduce non-physical wall-penetrating samples.

Across qualitative trajectory comparisons and quantitative analyses, the guided diffusion model produced physically plausible ensembles that matched key statistical properties of ground-truth trajectories, including on geometries not seen during training. These results are particularly encouraging given the extremely limited number of simulated geometries available. Remaining limitations, including occasional boundary violations and reduced robustness for out-of-distribution anatomies, highlight the importance of expanding the diversity of simulated geometries and enriching conditioning variables (such as particle size and breathing rates) in future studies. Overall, the proposed method demonstrates a viable pathway toward rapid, geometryaware Lagrangian particle trajectory generation, bridging the gap between high-fidelity simulation and practical subject-specific deployment.

Acknowledgments

This research was supported in part through research cyberinfrastructure resources and services provided by the Partnership for an Advanced Computing Environment (PACE) at the Georgia Institute of Technology, Atlanta, Georgia, USA.

Funding

Funding for this project is provided by the Department of Defense - Peer Reviewed Medical Research Program (DOD PRMRP) under award number W81XWH-21-1-0984 (SAD, MTR, IB) and National Institutes of Health/National Institute of Allergy and Infectious Diseases (NIH/NIAID) Radiation and Nuclear Countermeasures Program under award P01AI165380 (SAD, MTR, MG).

Funding Statement

Funding for this project is provided by the Department of Defense - Peer Reviewed Medical Research Program (DOD PRMRP) under award number W81XWH-21-1-0984 (SAD, MTR, IB) and National Institutes of Health/National Institute of Allergy and Infectious Diseases (NIH/NIAID) Radiation and Nuclear Countermeasures Program under award P01AI165380 (SAD, MTR, MG).

Footnotes

Declaration of competing interest

x The authors of this manuscript declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Data Availability

A permanent repository for CFPD ready geometries is available at dx.doi.org/10.6084/m9.figshare.24787773Bartol et al. (2024a). All the other relevant data are available from the corresponding author upon reasonable request.

Code Availability

The code can be found at https://github.com/ignaciobartol/airway-lagr-diffusion

References

  1. Bartol I., Graffigna M., Retamales M., Dewji S., 2024a. 3d stl models of human airways for cfd and cfpd simulations. URL: https://figshare.com/articles/dataset/3D_STL_models_of_Human_Airways_for_CFD_and_CFPD_simulations_/24787773, doi: 10.6084/M9.FIGSHARE.24787773. [DOI] [Google Scholar]
  2. Bartol I.R., Graffigna Palomba M.S., Tano M.E., Dewji S.A., 2024b. Computational multiphysics modeling of radioactive aerosol deposition in diverse human respiratory tract geometries. Communications Engineering 3. URL: http://dx.doi.org/10.1038/s44172-024-00296-z, doi: 10.1038/s44172-024-00296-z. [DOI] [PMC free article] [PubMed] [Google Scholar]
  3. Bartol I.R., Palomba M.S.G., Dawson R.J., Bolch W.E., Tano M.E., Dewji S.A., 2025. Subject-specific modeling framework for particle deposition using computational fluid dynamics. Journal of Aerosol Science 190, 106660. URL: http://dx.doi.org/10.1016/j.jaerosci.2025.106660, doi: 10.1016/j.jaerosci.2025.106660. [DOI] [PMC free article] [PubMed] [Google Scholar]
  4. Brunton S.L., Noack B.R., Koumoutsakos P., 2020. Machine learning for fluid mechanics. Annual Review of Fluid Mechanics 52, 477–508. URL: http://dx.doi.org/10.1146/annurev-fluid-010719-060214, doi: 10.1146/annurev-fluid-010719-060214. [DOI] [Google Scholar]
  5. Darquenne C., 2014. Aerosol deposition in the human lung in reduced gravity. Journal of Aerosol Medicine and Pulmonary Drug Delivery 27, 170–177. URL: http://dx.doi.org/10.1089/jamp.2013.1079, doi: 10.1089/jamp.2013.1079. [DOI] [PMC free article] [PubMed] [Google Scholar]
  6. Dhariwal P., Nichol A., 2021. Diffusion models beat gans on image synthesis, in: Ranzato M., Beygelzimer A., Dauphin Y., Liang P., Vaughan J.W. (Eds.), Advances in Neural Information Processing Systems, Curran Associates, Inc.. pp. 8780–8794. URL: https://proceedings.neurips.cc/paper_files/paper/2021/file/49ad23d1ec9fa4bd8d77d02681df5cfa-Paper.pdf. [Google Scholar]
  7. Gabriel P., Marco C., 2019. Computational optimal transport with applications to data sciences. Foundations and Trends® in Machine Learning 11, 355–607. URL: http://dx.doi.org/10.1561/2200000073,doi: 10.1561/2200000073. [DOI] [Google Scholar]
  8. Goodfellow I., Pouget-Abadie J., Mirza M., Xu B., Warde-Farley D., Ozair S., Courville A., Bengio Y., 2020. Generative adversarial networks. Communications of the ACM 63, 139–144. URL: http://dx.doi.org/10.1145/3422622, doi: 10.1145/3422622. [DOI] [Google Scholar]
  9. Graffigna M.S., Bartol I.R., Tano M.E., Dewji S.A., 2026. Exploratory application of dmd for particle deposition and fluid field in the respiratory tract. Journal of Aerosol Science 191, 106718. URL: http://dx.doi.org/10.1016/j.jaerosci.2025.106718, doi: 10.1016/j.jaerosci.2025.106718. [DOI] [PMC free article] [PubMed] [Google Scholar]
  10. Guo X., Li W., Iorio F., 2016. Convolutional neural networks for steady flow approximation, in: Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, ACM. p. 481–490. URL: http://dx.doi.org/10.1145/2939672.2939738, doi: 10.1145/2939672.2939738. [DOI] [Google Scholar]
  11. Han M., Sane S., Johnson C.R., 2022. Exploratory lagrangianbased particle tracing using deep learning. Journal of Flow Visualization and Image Processing 29, 73–96. URL: http://dx.doi.org/10.1615/JFlowVisImageProc.2022041197, doi: 10.1615/jflowvisimageproc.2022041197. [DOI] [Google Scholar]
  12. Ho J., Jain A., Abbeel P., 2020. Denoising diffusion probabilistic models, in: Proceedings of the 34th International Conference on Neural Information Processing Systems, Curran Associates Inc., Red Hook, NY, USA. [Google Scholar]
  13. Hofmann W., 2011. Modelling inhaled particle deposition in the human lung—a review. Journal of Aerosol Science 42, 693–724. URL: https://dx.doi.org/10.1016/j.jaerosci.2011.05.007, doi: 10.1016/j.jaerosci.2011.05.007. [DOI] [Google Scholar]
  14. Huang F., Zhu Q., Zhou X., Gou D., Yu J., Li R., Tong Z., Yang R., 2021. Role of cfd based in silico modelling in establishing an in vitro-in vivo correlation of aerosol deposition in the respiratory tract. Advanced Drug Delivery Reviews 170, 369–385. URL: http://dx.doi.org/10.1016/j.addr.2020.09.007, doi: 10.1016/j.addr.2020.09.007. [DOI] [PubMed] [Google Scholar]
  15. Huhn Q.A., Tano M.E., Ragusa J.C., Choi Y., 2023. Parametric dynamic mode decomposition for reduced order modeling. Journal of Computational Physics 475, 111852. doi: 10.1016/j.jcp.2022.111852. [DOI] [Google Scholar]
  16. ICRP, 1994. Human respiratory tract model for radiological protection icrp publication 66. Oxford: Pergamon. [Google Scholar]
  17. Kingma D.P., Welling M., 2014. Auto-encoding variational bayes, in: International Conference on Learning Representations. URL: https://openreview.net/forum?id=33X9fd2-9FyZd. [Google Scholar]
  18. Kleinstreuer C., Zhang Z., 2010. Airflow and particle transport in the human respiratory system. Annual Review of Fluid Mechanics 42, 301–334. URL: https://dx.doi.org/10.1146/annurev-fluid-121108-145453,doi: 10.1146/annurev-fluid-121108-145453. [DOI] [Google Scholar]
  19. Kochkov D., Smith J.A., Alieva A., Wang Q., Brenner M.P., Hoyer S., 2021. Machine learning–accelerated computational fluid dynamics. Proceedings of the National Academy of Sciences 118. URL: http://dx.doi.org/10.1073/pnas.2101784118, doi: 10.1073/pnas.2101784118. [DOI] [PMC free article] [PubMed] [Google Scholar]
  20. Kundu D., Panchagnula M.V., 2025. Stochastic asymmetric bronchial tree models for population-scale variability in dosimetry. Journal of Aerosol Science 189, 106622. URL: http://dx.doi.org/10.1016/j.jaerosci.2025.106622, doi: 10.1016/j.jaerosci.2025.106622. [DOI] [Google Scholar]
  21. Kutz J.N., Brunton S.L., 2016. Dynamic Mode Decomposition. Society for Industrial and Applied Mathematics. doi: 10.1137/1.9781611974508. [DOI] [Google Scholar]
  22. Kutz J.N., Fu X., Brunton S.L., 2016. Multiresolution dynamic mode decomposition. SIAM Journal on Applied Dynamical Systems 15, 713–735. URL: http://dx.doi.org/10.1137/15M1023543, doi: 10.1137/15m1023543. [DOI] [Google Scholar]
  23. Labiris N.R., Dolovich M.B., 2003. Pulmonary drug delivery. part i: Physiological factors affecting therapeutic effectiveness of aerosolized medications. British Journal of Clinical Pharmacology 56, 588–599. URL: http://dx.doi.org/10.1046/j.1365-2125.2003.01892.x, doi: 10.1046/j.1365-2125.2003.01892.x. [DOI] [PMC free article] [PubMed] [Google Scholar]
  24. Langtry R.B., Menter F.R., Likki S.R., Suzen Y.B., Huang P.G., Völker S., 2004. A correlation-based transition model using local variables—part ii: Test cases and industrial applications. Journal of Turbomachinery 128, 423–434. URL: http://dx.doi.org/10.1115/1.2184353, doi: 10.1115/1.2184353. [DOI] [Google Scholar]
  25. Li T., Biferale L., Bonaccorso F., Scarpolini M.A., Buzzicotti M., 2024a. Synthetic lagrangian turbulence by generative diffusion models. Nature Machine Intelligence 6, 393–403. URL: http://dx.doi.org/10.1038/s42256-024-00810-0, doi: 10.1038/s42256-024-00810-0. [DOI] [PMC free article] [PubMed] [Google Scholar]
  26. Li T., Biferale L., Bonaccorso F., Scarpolini M.A., Buzzicotti M., 2024b. Synthetic lagrangian turbulence by generative diffusion models. Nature Machine Intelligence URL: https://www.nature.com/articles/s42256-024-00810-0, doi: 10.1038/s42256-024-00810-0. [DOI] [PMC free article] [PubMed] [Google Scholar]
  27. Li Z., Kovachki N.B., Azizzadenesheli K., liu B., Bhattacharya K., Stuart A., Anandkumar A., 2021. Fourier neural operator for parametric partial differential equations, in: International Conference on Learning Representations. URL: https://openreview.net/forum?id=c8P9NQVtmnO. [PMC free article] [PubMed] [Google Scholar]
  28. Liu H., Ma S., Hu T., Ma D., 2023a. Computational investigation of flow characteristics and particle deposition patterns in a realistic human airway model under different breathing conditions. Respiratory Physiology & Neurobiology 314, 104085. URL: https://doi.org/10.1016/j.resp.2023.104085, doi: 10.1016/j.resp.2023.104085. [DOI] [PubMed] [Google Scholar]
  29. Liu J., Anirudh R., Thiagarajan J.J., He S., Mohan K.A., Kamilov U.S., Kim H., 2023b. Dolce: A model-based probabilistic diffusion framework for limited-angle ct reconstruction, in: Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pp. 10498–10508. [Google Scholar]
  30. Liu K., Qiu G., Tang W., Zhou F., 2020. Spectral regularization for combating mode collapse in gans. Image and Vision Computing 104, 104005. URL: http://dx.doi.org/10.1016/j.imavis.2020.104005, doi: 10.1016/j.imavis.2020.104005. [DOI] [Google Scholar]
  31. Longest P.W., Bass K., Dutta R., Rani V., Thomas M.L., El-Achwah A., Hindle M., 2019. Use of computational fluid dynamics deposition modeling in respiratory drug delivery. Expert Opinion on Drug Delivery 16, 7–26. URL: http://dx.doi.org/10.1080/17425247.2019.1551875, doi: 10.1080/17425247.2019.1551875. [DOI] [PMC free article] [PubMed] [Google Scholar]
  32. Longest P.W., Holbrook L.T., 2012. In silico models of aerosol delivery to the respiratory tract — development and applications. Advanced Drug Delivery Reviews 64, 296–311. URL: https://dx.doi.org/10.1016/j.addr.2011.05.009, doi: 10.1016/j.addr.2011.05.009. [DOI] [PMC free article] [PubMed] [Google Scholar]
  33. Lu L., Jin P., Pang G., Zhang Z., Karniadakis G.E., 2021. Learning nonlinear operators via deeponet based on the universal approximation theorem of operators. Nature Machine Intelligence 3, 218–229. URL: http://dx.doi.org/10.1038/s42256-021-00302-5, doi: 10.1038/s42256-021-00302-5. [DOI] [Google Scholar]
  34. Massey F.J., 1951. The kolmogorov-smirnov test for goodness of fit. Journal of the American Statistical Association 46, 68–78. URL: http://dx.doi.org/10.1080/01621459.1951.10500769, doi: 10.1080/01621459.1951.10500769. [DOI] [Google Scholar]
  35. Menter F.R., 1994. Two-equation eddy-viscosity turbulence models for engineering applications. AIAA Journal 32, 1598–1605. URL: http://dx.doi.org/10.2514/3.12149, doi: 10.2514/3.12149. [DOI] [Google Scholar]
  36. Menter F.R., Langtry R., Völker S., 2006a. Transition modelling for general purpose cfd codes. Flow, turbulence and combustion 77, 277–303. [Google Scholar]
  37. Menter F.R., Langtry R.B., Likki S.R., Suzen Y.B., Huang P.G., Volker S., 2006b. A correlation-based transition model using local variables—part i: Model formulation. Journal of Turbomachinery 128, 413. URL: http://dx.doi.org/10.1115/1.2184352, doi: 10.1115/1.2184352. [DOI] [Google Scholar]
  38. Mescheder L., Oechsle M., Niemeyer M., Nowozin S., Geiger A., 2019. Occupancy networks: Learning 3d reconstruction in function space, in: 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), IEEE. p. 4455–4465. URL: http://dx.doi.org/10.1109/CVPR.2019.00459, doi: 10.1109/cvpr.2019.00459. [DOI] [Google Scholar]
  39. Nichol A.Q., Dhariwal P., 2021. Improved denoising diffusion probabilistic models, in: Meila M., Zhang T. (Eds.), Proceedings of the 38th International Conference on Machine Learning, PMLR. pp. 8162–8171. [Google Scholar]
  40. Nowak N., Kakade P.P., Annapragada A.V., 2003. Computational fluid dynamics simulation of airflow and aerosol deposition in human lungs. Annals of Biomedical Engineering 31, 374–390. URL: http://dx.doi.org/10.1114/1.1560632, doi: 10.1114/1.1560632. [DOI] [PubMed] [Google Scholar]
  41. Park J.J., Florence P., Straub J., Newcombe R., Lovegrove S., 2019. Deepsdf: Learning continuous signed distance functions for shape representation, in: 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), IEEE. p. 165–174. URL: http://dx.doi.org/10.1109/CVPR.2019.00025, doi: 10.1109/cvpr.2019.00025. [DOI] [Google Scholar]
  42. Perez E., Strub F., de Vries H., Dumoulin V., Courville A., 2018. Film: visual reasoning with a general conditioning layer, in: Proceedings of the Thirty-Second AAAI Conference on Artificial Intelligence and Thirtieth Innovative Applications of Artificial Intelligence Conference and Eighth AAAI Symposium on Educational Advances in Artificial Intelligence, AAAI Press. [Google Scholar]
  43. Pfaff T., Fortunato M., Sanchez-Gonzalez A., Battaglia P., 2021. Learning mesh-based simulation with graph networks, in: International Conference on Learning Representations. URL: https://openreview.net/forum?id=roNqYLO_XP. [Google Scholar]
  44. Poorbahrami K., Mummy D.G., Fain S.B., Oakes J.M., 2019. Patient-specific modeling of aerosol delivery in healthy and asthmatic adults. Journal of Applied Physiology 127, 1720–1732. URL: http://dx.doi.org/10.1152/japplphysiol.00221.2019, doi: 10.1152/japplphysiol.00221.2019. [DOI] [PMC free article] [PubMed] [Google Scholar]
  45. Ramdas A., Trillos N., Cuturi M., 2017. On wasserstein two-sample testing and related families of nonparametric tests. Entropy 19, 47. URL: http://dx.doi.org/10.3390/e19020047, doi: 10.3390/e19020047. [DOI] [Google Scholar]
  46. Rombach R., Blattmann A., Lorenz D., Esser P., Ommer B., 2022. High-resolution image synthesis with latent diffusion models, in: 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), IEEE. p. 10674–10685. URL: http://dx.doi.org/10.1109/CVPR52688.2022.01042, doi: 10.1109/cvpr52688.2022.01042. [DOI] [Google Scholar]
  47. Rostami A.A., 2009. Computational modeling of aerosol deposition in respiratory tract: A review. Inhalation Toxicology 21, 262–290. URL: http://dx.doi.org/10.1080/08958370802448987, doi: 10.1080/08958370802448987. [DOI] [PubMed] [Google Scholar]
  48. ROWLEY C.W., MEZIĆ I., BAGHERI S., SCHLATTER P., HENNINGSON D.S., 2009. Spectral analysis of nonlinear flows. Journal of Fluid Mechanics 641, 115–127. URL: http://dx.doi.org/10.1017/S0022112009992059, doi: 10.1017/s0022112009992059. [DOI] [Google Scholar]
  49. SCHMID P.J., 2010. Dynamic mode decomposition of numerical and experimental data. Journal of Fluid Mechanics 656, 5–28. URL: http://dx.doi.org/10.1017/S0022112010001217, doi: 10.1017/s0022112010001217. [DOI] [Google Scholar]
  50. Sohl-Dickstein J., Weiss E., Maheswaranathan N., Ganguli S., 2015. Deep unsupervised learning using nonequilibrium thermodynamics, in: Bach F., Blei D. (Eds.), Proceedings of the 32nd International Conference on Machine Learning, PMLR, Lille, France. pp. 2256–2265. URL: https://proceedings.mlr.press/v37/sohl-dickstein15.html. [Google Scholar]
  51. Song Y., Sohl-Dickstein J., Kingma D.P., Kumar A., Ermon S., Poole B., 2021. Score-based generative modeling through stochastic differential equations, in: International Conference on Learning Representations (ICLR). URL: https://arxiv.org/abs/2011.13456. [Google Scholar]
  52. Székely G.J., Rizzo M.L., 2013. Energy statistics: A class of statistics based on distances. Journal of Statistical Planning and Inference 143, 1249–1272. URL: http://dx.doi.org/10.1016/j.jspi.2013.03.018, doi: 10.1016/j.jspi.2013.03.018. [DOI] [Google Scholar]
  53. Talaat K., Xi J., Baldez P., Hecht A., 2019. Radiation dosimetry of inhaled radioactive aerosols: Cfpd and mcnp transport simulations of radionuclides in the lung. Scientific Reports 9. URL: https://dx.doi.org/10.1038/s41598-019-54040-1, doi: 10.1038/s41598-019-54040-1. [DOI] [PMC free article] [PubMed] [Google Scholar]
  54. Zbilut J.P., Marwan N., 2008. The wiener–khinchin theorem and recurrence quantification. Physics Letters A 372, 6622–6626. URL: http://dx.doi.org/10.1016/j.physleta.2008.09.027, doi: 10.1016/j.physleta.2008.09.027. [DOI] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

A permanent repository for CFPD ready geometries is available at dx.doi.org/10.6084/m9.figshare.24787773Bartol et al. (2024a). All the other relevant data are available from the corresponding author upon reasonable request.

The code can be found at https://github.com/ignaciobartol/airway-lagr-diffusion


Articles from Research Square are provided here courtesy of American Journal Experts

RESOURCES