arXiv:2610.24001cs.CVOct 2026

Manuscript Offprint

arXiv:2610.24001

Causal Spatio-Temporal Neural Distance Fields for Counterfactual Cardiac Anatomy

Mathias Lowes, Kurt Butler, Kristine Aavild Sørensen, Klaus F. Kofoed, Sotirios A. Tsaftaris, Rasmus R. Paulsen, Steven McDonagh

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Mathias Lowes 1^{1}[0009-0003-0002-1645], Kurt Butler 2,3^{2,3}[0000-0002-1520-4909], Kristine Aavild Sørensen 1,4^{1,4}[0000-0003-1434-697X], Klaus F. Kofoed 5^{5}[0000-0001-9742-1554], Sotirios A. Tsaftaris 2,3^{2,3}[0000-0002-8795-9294], Rasmus R. Paulsen 1^{1}[0000-0003-0647-3215], and Steven McDonagh 2,3^{2,3}[0000-0001-7025-5197]

1^{1} DTU Compute, Technical University of Denmark, Kongens Lyngby, Denmark

mmilo@dtu.dk

2^{2} Causality in Healthcare AI Hub (CHAI), UK

3^{3} School of Engineering, University of Edinburgh, Edinburgh, UK

4^{4} Novo Nordisk A/S, Copenhagen, Denmark

5^{5} Department of Cardiology, Rigshospitalet, Copenhagen University Hospital, Copenhagen, Denmark

Abstract. Counterfactual cardiac anatomy can support risk modelling and intervention planning, by predicting how a patient's heart would change under altered clinical conditions. However, current shape generative models are conditional on clinical variables and disregard causal links between these variables. Thus, they cannot answer counterfactual questions about how a given subject's anatomy would change under a different clinical profile. Modelling the heart's continuous movement over the cardiac cycle requires a representation that is itself continuous in space and time. Spatio-temporal neural distance fields provide this while separating clinical conditioning from subject-specific shape. We place a structural causal model (SCM) over the set of clinical variables (age, sex, smoking, BMI, heart rate, systolic blood pressure), before the condition encoding of the spatio-temporal neural distance field which represents the left atrial complex over a cardiac cycle by signed distance fields. An intervention of the clinical variables, propagated through a SCM before the 4D counterfactual, is constructed from the neural distance field. The generated counterfactuals follow dose-response under age interventions and transforms the male distribution to closely match the female distribution under the intervention do(female=1). By doing inverse interventions the model also approximates the original anatomy with sub millimeter precision. To our knowledge, this is the first counterfactual generation of 4D cardiac anatomy and the first integration of an SCM with an implicit neural representation as its imaging mechanism.

Keywords: Implicit Neural Representations · Structural Causal Model · Counterfactual Generation · 4D Cardiac Anatomy.

M. Lowes et al.

1 Introduction

The heart is a complex three-dimensional anatomical structure that continuously deforms throughout the cardiac cycle, giving rise to 3D+t (4D) anatomy. Capturing the shape and motion of complex heart chambers such as the left atrium is central to the study of cardiac function and disease. Voxel- and mesh-based representations scale poorly for 4D anatomy requiring either a fixed grid that scales memory or shape correspondence across subject, which varying anatomy makes infeasible. Spatio-temporal neural distance fields have emerged as a compact, continuous representation that models 4D cardiac anatomy as as sequence of signed distance fields (SDFs), without being locked to a grid or needing point correspondence [19]. These representations further separate clinical latent code from subject specific latent codes, enabling interventions that alter clinical variables while holding individual anatomy fixed.

Comprehensive 4D analysis requires diverse data to reflect the many ways in which cardiac anatomy and motion vary across individuals. Because high-quality, annotated 4D representations of the heart are difficult to acquire, generative models have been widely adopted to alleviate this scarcity. However, standard generative models inherit biases from their training data, and do not automatically respect anatomical constraints or medical interventions. Causal generative models, in contrast, address this gap by explicitly modelling causal relationships between variables and decoupling spurious correlations [1].

Causal generative modelling of medical images has been established on grid-based representations, mostly from the development of the deep structural causal model (DSCM) framework [4,15]. Meanwhile, conditional generative models of temporal cardiac anatomy do exist both for implicit representations [19] and for grid representations [16]. However, these do not incorporate clinical information in a causal fashion, posing the risk that spurious correlations between clinical features might be mistaken for biological mechanisms. A causal generative model for temporal cardiac data has been established for 2D+t ultrasound pixels, D'Artagnan [17], which conditioned on a single scalar.

We propose an approach to causally generate spatio-temporal cardiac anatomy, by placing a structural causal model (SCM) over the clinical variables, before the clinical encoding of the spatio-temporal neural distance field. An intervention propagates through the SCM, making the clinical variables remain mutually consistent rather than altered in isolation, before conditioning the network, thus the generated 4D anatomy becomes a causally consistent counterfactual for the individual. We demonstrate this approach on the left atrial complex, consisting of left atrium, left atrial appendage and pulmonary veins, chosen for data availability. However, the method makes no assumptions specific to this anatomy and is in principle applicable to the whole heart and other organs, as long as they can be represented by an SDF. Our main contribution entails the first combination of an SCM with an implicit neural representation, yielding a causal conditional implicit neural network.

References (23)