PAUSCT: A Discrete-Adjoint Framework for Iterative Full-Wave Image Reconstruction in Ultrasound and Photoacoustic Computed Tomography
Optimization-based image reconstruction in ultrasound computed tomography (USCT) and photoacoustic computed tomography (PACT) requires accurate signal predictions and parameter gradients. We present PAUSCT, an open-source Python/JAX package that provides a unified discrete-adjoint framework for 2D and 3D reconstruction on GPUs. The forward model applies the k-space pseudospectral time-domain method to established first-order acoustic equations with heterogeneous speed of sound (SOS) and density, power-law acoustic attenuation and dispersion, and cumulative nonlinearity. The model represents finite-aperture transmitters and receivers with spatial or spatiotemporal responses. Explicit gradients of the data-fidelity term with respect to medium parameters, initial pressure, transmit waveforms, and receive-response coefficients are algebraically consistent with this model. Adjoint-based gradients share one adjoint solution per acquisition and objective, with forward quantities stored or recomputed according to the selected parameters. The same adjoint formulation supports a range of differentiable data-fidelity functions. In 2D PACT and USCT tests, selected spatial and temporal gradient profiles agreed with forward-mode automatic differentiation (AD) applied one parameter entry at a time. Relative root-mean-square (RMS) differences were below 0.006%. For 2D SOS gradients of the same model under matched checkpointing schedules, reverse-mode AD took approximately 6% to 29% longer, and the discrete adjoint used less GPU memory for the lossy models. In a 3D virtual imaging study with a numerical breast phantom, noise, and model mismatch, PACT reconstruction yielded a relative RMS error in initial pressure of 29.06% with USCT-derived SOS and 60.30% with homogeneous SOS.