Exploration of differentiability in a proton computed tomography simulation framework
Aehle, Max; Alme, Johan; Gábor Barnaföldi, Gergely; Blühdorn, Johannes; Bodova, Tea; Borshchov, Vyacheslav; van den Brink, Anthony; Eikeland, Viljar Nilsen; Feofilov, Gregory; Garth, Christoph; Gauger, Nicolas R; Grøttvik, Ola Slettevoll; Helstrup, Håvard; Igolkin, Sergey; Keidel, Ralf; Kobdaj, Chinorat; Kortus, Tobias; Kusch, Lisa; Leonhardt, Viktor; Mehendale, Shruti Vineet; Ningappa Mulawade, Raju; Odland, Odd Harald; O'Neill, George; Papp, Gábor; Peitzmann, Thomas; Pettersen, Helge Egil Seime; Piersimoni, Pierluigi; Pochampalli, Rohit; Protsenko, Maksym; Rauch, Max Philip; Rehman, Attiq Ur; Richter, Matthias; Röhrich, Dieter Rudolf Christian; Sagebaum, Max; Santana, Joshua; Schilling, Alexander; Seco, Joao; Songmoolnak, Arnon; Sudár, Ákos; Tambave, Ganesh Jagannath; Tymchuk, Ihor; Ullaland, Kjetil; Varga-Kofarago, Monika; Volz, Lennart; Wagner, Boris; Wendzel, Steffen; Wiebel, Alexander; Xiao, Renzheng; Yang, Shiming; Zillien, Sebastian
Peer reviewed, Journal article
Published version
Date
2023Metadata
Show full item recordCollections
Abstract
Objective. Gradient-based optimization using algorithmic derivatives can be a useful technique to improve engineering designs with respect to a computer-implemented objective function. Likewise, uncertainty quantification through computer simulations can be carried out by means of derivatives of the computer simulation. However, the effectiveness of these techniques depends on how 'well-linearizable' the software is. In this study, we assess how promising derivative information of a typical proton computed tomography (pCT) scan computer simulation is for the aforementioned applications. Approach. This study is mainly based on numerical experiments, in which we repeatedly evaluate three representative computational steps with perturbed input values. We support our observations with a review of the algorithmic steps and arithmetic operations performed by the software, using debugging techniques. Main results. The model-based iterative reconstruction (MBIR) subprocedure (at the end of the software pipeline) and the Monte Carlo (MC) simulation (at the beginning) were piecewise differentiable. However, the observed high density and magnitude of jumps was likely to preclude most meaningful uses of the derivatives. Jumps in the MBIR function arose from the discrete computation of the set of voxels intersected by a proton path, and could be reduced in magnitude by a 'fuzzy voxels' approach. The investigated jumps in the MC function arose from local changes in the control flow that affected the amount of consumed random numbers. The tracking algorithm solves an inherently non-differentiable problem. Significance. Besides the technical challenges of merely applying AD to existing software projects, the MC and MBIR codes must be adapted to compute smoother functions. For the MBIR code, we presented one possible approach for this while for the MC code, this will be subject to further research. For the tracking subprocedure, further research on surrogate models is necessary.