Differentiable centerline-aware framework for aneurysm neck delineation in volumetric angiography
Diferencijabilni okvir svestan centralne linije za delineaciju vrata aneurizme na volumetrijskoj angiografiji
Liu X, Zhou J, Zhang H, Tao B, Xu S.
2026 · NPJ digital medicine · CC BY-NC-ND
Prevod na srpski je mašinski (Claude) i prikazan je radi čitljivosti; original je merodavan.
Accurate morphological characterization of the intracranial aneurysm (IA) neck is fundamental to clinical decision-making and interventional planning. While Three-Dimensional Rotational Angiography serves as the reference standard, automated analysis across volumetric modalities (CTA/MRA) is hindered by topological discontinuities near bifurcations. Existing voxel-wise methods often produce jagged boundaries, compromising metric reliability. To address this, we propose NeckSpline , a differentiable framework treating the neck as a continuous, periodic cubic B-spline. Unlike discrete approaches, it optimizes a closed curve anchored by the parent-vessel centerline, integrating a tightness regularizer and Euler Characteristic (EC) topological loss. Extensive evaluations on MCA-CTA and ADAM-TOF benchmarks demonstrate that NeckSpline achieves superior localization accuracy and clinical non-inferiority, with a neck width Mean Absolute Error (MAE) of 0.44 mm and an angle MAE of 4.6°, significantly outperforming state-of-the-art baselines while maintaining sub-second inference. By guaranteeing topological integrity and sub-voxel precision, the framework offers a robust solution for automated pre-procedural assessment.
Introduction Intracranial aneurysms represent a critical vascular pathology affecting approximately 3% of the global population. The rupture of these localized arterial dilations leads to subarachnoid hemorrhage, a catastrophic event associated with mortality rates approaching 50% and permanent neurological deficits in many survivors. Consequently, precise morphological characterization is fundamental to clinical decision-making. The aneurysm neck is of particular significance among morphological descriptors, as its width, location, and orientation relative to parent vessels dictate the feasibility of endovascular coiling versus microsurgical clipping 1 . High-resolution volumetric imaging serves as the cornerstone of preoperative planning. While three-dimensional rotational angiography (3DRA) remains the reference standard for visualizing complex vascular geometries, computed tomography angiography (CTA) and magnetic resonance angiography (MRA) are increasingly central to non-invasive diagnosis and follow-up 2 . Despite the high fidelity of these modalities, fully automated analysis of the aneurysm neck remains a persistent bottleneck. The difficulty lies in reliably segmenting the neck interface at vessel bifurcations, where complex topology often confuses standard algorithms. Recent progress in deep learning has advanced the field significantly 3 – 6 . Modern convolutional neural networks and Transformer-based architectures have achieved robust performance in isolating aneurysms from parent vessels across 3DRA and CTA datasets 7 – 9 . These automated frameworks can now estimate metrics such as dome diameter with sub-millimeter accuracy, often surpassing manual measurement reproducibility. Moreover, the release of large-scale, multimodal resources like the MCA aneurysm dataset has facilitated the integration of geometric data with hemodynamic parameters, enabling more comprehensive rupture risk stratification 10 . However, a fundamental limitation persists in the dominant voxel-wise segmentation paradigm 11 . Although effective for volumetric labeling, voxel-based methods often produce topological artifacts near the ostium. These manifest as jagged boundaries, disconnected components, or leaks into adjacent vessels, particularly in regions with weak contrast gradients 12 , 13 . Even methods employing topology-aware loss functions typically treat the neck as a byproduct of the segmentation mask rather than a distinct geometric entity 14 , 15 . This gap is clinically significant because neurointerventionalists require a continuous and smooth definition of the neck plane for accurate device sizing and procedural simulation 9 , 16 . To bridge this gap, we propose NeckSpline, a framework that reimagines the aneurysm neck as a topology-preserving geometric primitive. Instead of inferring the neck from discrete voxels, we formulate it as a continuous, closed-loop spline curve anchored by the vessel centerline. This representation inherently guarantees topological integrity and eliminates discretization artifacts, allowing for the direct extraction of clinical metrics. Our approach is distinguished by three core components: Centerline-guided initialization that leverages the vascular skeleton to anchor the spline, ensuring robust convergence even in complex bifurcations. A geometric tightness regularizer that constrains the spline curvature to physiologically plausible limits, effectively preventing over-segmentation. An explicit closed-loop embedding, which enforces a valid ring topology for precise width and angle measurement. We validate NeckSpline using diverse public benchmarks, including the MCA-CTA and ADAM datasets. Our evaluations demonstrate that this geometry-first approach yields superior agreement with expert annotations compared to state-of-the-art voxel-wise baselines. The results highlight the ability of NeckSpline to maintain anatomical plausibility and measurement consistency across different imaging modalities. Our main contributions are: We introduce NeckSpline, the first framework to model the aneurysm neck as a continuous, topology-preserving spline primitive, addressing the limitations of voxel-based discretization. We develop a centerline-guided fitting mechanism that integrates vascular skeleton information to ensure anatomically consistent localization. We propose a specialized tightness regularizer that enforces physiological curvature constraints, improving the reliability of automated clinical measurements. We provide a comprehensive evaluation on multicenter CTA and MRA datasets, demonstrating that NeckSpline achieves state-of-the-art accuracy suitable for pre-procedural planning. Results We evaluated NeckSpline against a comprehensive set of baselines, including state-of-the-art voxel-wise CNN/Transformer models, topology-preserving segmentation variants, and implicit surface reconstruction methods. The evaluation was conducted on two public multimodal cohorts: MCA-CTA 10 and ADAM-TOF 13 . To ensure fair comparison, all methods utilized identical preprocessing, data splits, and augmentation protocols. Quantitative performance Across both imaging modalities, NeckSpline consistently achieved superior geometric fidelity and clinical accuracy while maintaining the lowest inference latency (approximately 0.8–0.9 s per case). Compared to the strongest topology-aware baseline (UNet + EC), our method reduced geometric errors on the ostium plane by 20–30% and achieved near-ideal topological integrity (Δ χ ≈ 0). Importantly, the clinical mean absolute errors (MAE) for neck width and angle fell within the strict non-inferiority margins of 0.5 mm and 5°, respectively. Performance on MCA-CTA As detailed in Table 1 , CTA imaging presents challenges related to contrast resolution and reconstruction artifacts. Despite these factors, NeckSpline demonstrated robust performance with a Chamfer Distance (CD) of 0.56 mm and Hausdorff Distance (HD 95 ) of 1.90 mm. This represents a significant improvement over the best-performing baseline, UNet+EC, which yielded a CD of 0.78 mm and HD 95 of 2.40 mm. In terms of clinical applicability, our method reduced the neck width error to 0.44 mm and the angle error to 4.6°, markedly outperforming the baseline errors of 0.69 mm and 6.0°. These results suggest that centerline-guided plane anchoring, combined with our curvature-tightness regularizer, effectively stabilizes ostium geometry even in the presence of variable contrast edge definitions. Table 1 Results on MCA-CTA (CTA + mesh-assisted supervision) Method CD (mm) HD 95 (mm) Δ χ Width MAE (mm) Angle MAE (°) Time (s) nnU-Net 17 0.96 3.20 0.28 0.88 7.9 4.1 TransUNet 18 0.90 3.00 0.26 0.82 7.4 4.5 Swin UNETR 19 0.86 2.80 0.24 0.78 7.1 5.5 UNet + clDice 20 0.82 2.60 0.20 0.74 6.6 4.3 UNet + Betti match 20 0.80 2.50 0.18 0.72 6.3 4.6 UNet + EC topology 20 0.78 2.40 0.13 0.69 6.0 4.6 NISF (implicit) 21 0.85 2.70 0.22 0.76 7.0 7.0 NeckSpline (ours) 0.56 1.90 0.01 0.44 4.6 0.9 Bold indicates the best performance. Performance on ADAM time-of-flight magnetic resonance angiography (TOF-MRA) TOF-MRA poses distinct difficulties due to signal dropout and the small caliber of distal vessels. Table 2 shows that NeckSpline maintained its advantage in this domain, achieving a CD of 0.62 mm and HD 95 of 2.30 mm, compared to 0.85 mm and 2.90 mm for UNet + EC. While implicit baselines such as NISF struggled with iso-surface instability in this modality (CD degraded to 0.90–0.93 mm), NeckSpline preserved near-perfect topology (Δ χ = 0.01). The clinical MAEs remained low at 0.47 mm for width and 4.9° for angle, confirming the method’s robustness to modality-specific signal characteristics. Table 2 Results on ADAM (TOF-MRA, official test split) Method CD (mm) HD 95 (mm) Δ χ Width MAE (mm) Angle MAE (°) Time (s) nnU-Net 17 1.02 3.70 0.30 0.94 8.2 3.9 TransUNet 18 0.96 3.50 0.27 0.88 7.6 4.2 Swin UNETR 19 0.92 3.30 0.24 0.83 7.1 5.1 UNet + clDice 20 0.89 3.10 0.19 0.80 6.8 4.0 UNet + Betti match 20 0.87 3.00 0.17 0.78 6.5 4.2 UNet + EC topology 20 0.85 2.90 0.13 0.75 6.2 4.3 NISF (implicit) 21 0.93 3.40 0.22 0.82 7.2 6.6 NeckSpline (ours) 0.62 2.30 0.01 0.47 4.9 0.9 Bold indicates the best performance. Comparative analysis and ablation Our analysis of baseline failure modes reveals significant limitations in current approaches. Voxel-wise models, such as nnU-Net and Swin UNETR, benefit from long-range context to delineate general structures but fundamentally treat the neck as a post-hoc boundary derived from binary masks. This often leads to discontinuities near bifurcations and substantial variability in caliper measurements. While topology-aware methods like clDice and Betti matching reduce gross connectivity errors, they still rely on voxel grouping, meaning that residual jaggedness propagates to the final clinical measurements. Implicit geometry methods offer smooth surfaces but are sensitive to iso-level selection; when projected onto the ostium plane, these surfaces often exhibit loop topology errors. In contrast, NeckSpline treats the neck as a first-class periodic spline primitive. By directly optimizing a single, smooth closed loop guided by vessel centerlines, we eliminate fragile post-processing steps. The ablation study confirms the necessity of each component: removing centerline guidance increased CD by 0.10–0.16 mm, highlighting the importance of anatomical anchoring. Similarly, removing the tightness prior led to over-expanded loops and increased width error, while omitting the EC loss resulted in fragmented topologies. We found that 16 control points provided the optimal balance between geometric freedom and regularization. Robustness and efficiency NeckSpline demonstrated high robustness under stress tests, including simulated noise and contrast downscaling, where it maintained single-loop topology even as baselines drifted. Uncertainty analysis using a perturb-and-refit strategy showed narrow prediction intervals with empirical coverage aligning well with the nominal 95% target. Furthermore, our framework is significantly more efficient than competing pipelines. With an inference time of under 1 s per case (4–9 × faster than baselines), NeckSpline is well-suited for intra-procedural planning. The low memory footprint allows for deployment on standard clinical workstations. Qualitative inspection further confirms these findings. NeckSpline consistently produces smooth, contiguous ostium loops that strictly adhere to vessel walls at bifurcations. In contrast, voxel-based baselines occasionally miss small bridging segments or produce saw-tooth artifacts that compromise measurement accuracy. Ablation analysis We dissected the contribution of each design component in NeckSpline through a systematic ablation study on the MCA-CTA dataset. Unless otherwise noted, the default configuration utilizes a periodic cubic B-spline with 16 control points, centerline-guided plane anchoring, a curvature tightness prior, EC-based topology loss, self-intersection repulsion, and full image-evidence terms (boundary, gradient, and profile). The quantitative results, detailed in Table 3 , reveal consistent trends that underscore the necessity of our proposed modules. Table 3 Ablation study on MCA-CTA Variant CD (mm) HD 95 (mm) Δ χ Width MAE (mm) Angle MAE (°) Time (s) NeckSpline (16 pts) 0.56 1.90 0.01 0.44 4.6 0.9 NeckSpline (24 pts) 0.55 1.88 0.01 0.44 4.6 1.2 NeckSpline (12 pts) 0.61 2.10 0.02 0.49 5.0 0.8 NeckSpline (8 pts) 0.70 2.40 0.03 0.54 5.3 0.7 Polygonal loop 0.64 2.20 0.02 0.50 5.0 0.8 w/o Centerline 0.69 2.35 0.06 0.53 5.5 0.9 w/o Tightness 0.64 2.15 0.04 0.54 5.1 0.9 w/o EC loss 0.68 2.40 0.11 0.51 5.2 0.9 w/o Self-repulsion 0.62 2.20 0.07 0.49 4.9 0.9 w/o Plane anchor 0.71 2.45 0.09 0.56 5.7 0.9 Weak image evid. 0.70 2.35 0.05 0.55 5.6 0.9 Oracle centerline 0.52 1.82 0.01 0.41 4.4 0.9 All variants use the same training protocol. Bold values denote the best results. Centerline guidance is essential for geometric and clinical fidelity Removing centerline guidance ( w/o CLine ) resulted in the most significant degradation, increasing the CD by 0.13 mm (+23%) and HD 95 by 0.45 mm (+24%). Topology reliability also dropped, with Δ χ rising to 0.06. Clinically, this translated to a marked increase in error for both neck width (+0.09 mm) and parent-vessel angle (+0.9°), confirming that anatomical anchoring to the parent vessel is a first-order prerequisite for stable neck localization. The tightness prior controls over-expansion and curvature oscillations Omitting the curvature tightness term ( w/o Tight ) caused a moderate geometric decline (CD +0.08 mm) but a disproportionate rise in width measurement error (+0.10 mm, or ~23%). This quantitative finding aligns with visual observations of “bulging” loops near bifurcation saddles, demonstrating that the tightness prior is critical for constraining the spline to physiologically plausible curvatures. EC-based topology loss prevents loop fragmentation Without the Euler Characteristic penalty ( w/o EC ), the model frequently produced fragmented or multi-component loops, as evidenced by a jump in Δ χ to 0.11. Geometric errors also increased (HD 95 +0.50 mm), particularly in regions with weak contrast edges where the voxel-based evidence was ambiguous. This highlights the role of the EC term as a topological safeguard. Plane anchoring and image evidence Dropping planarity constraints ( w/o Plane ) led to the largest degradation in clinical metrics after centerline removal, with angle error increasing by 1.1°. This indicates that inferring the ostium plane from the parent tangent is vital for reproducible angle readings. Similarly, suppressing image gradients ( Weak image evidence ) increased CD by 0.14 mm, confirming that precise boundary placement relies on strong image guidance. Optimal control-point budget Our sweep of control points ( n ∈ {8, 12, 16, 24}) revealed a “sweet spot” at n = 16. Increasing to 24 points offered negligible geometric gains while increasing the runtime. Conversely, using only 8 points led to underfitting of tortuous necks (CD +0.14 mm). A piecewise-linear polygonal variant ( Polygonal loop ) consistently performed worse than the B-spline, validating the advantage of C 2 -continuous curves for stable optimization. Qualitative visualization To complement the quantitative findings, we present visual comparisons in Fig. 1 . These visualizations confirm that NeckSpline produces smooth, continuous loops that adhere strictly to the vessel wall, in stark contrast to the jagged or disconnected boundaries often produced by voxel-wise baselines. Fig. 1 Performance across aneurysm phenotypes. Columns: bifurcation, sidewall, wide-neck, and complex. The overlay shows the expert ground truth (lime) and the NeckSpline prediction (teal). The close alignment across diverse morphologies highlights the robustness of our spline-based representation. Phenotype analysis (Fig. 1 ) Across different aneurysm morphologies, NeckSpline demonstrates distinct advantages: Bifurcation: the spline bridges daughter branches smoothly without forming spurs, ensuring the angle measurement aligns with the local parent tangent. Sidewall: the model conforms to the vessel wall with minimal lateral bias, yielding width measurements that closely match the ground truth. Wide-neck: in lesions with a low dome-to-neck ratio, the tightness prior effectively prevents the loop from over-expanding into the sac, a common failure mode for standard segmentation. Complex/lobulated: despite irregular sac outlines, NeckSpline maintains a single, planar ostium loop, avoiding self-intersections and ensuring reproducible clinical readouts. Clinical interpretability As shown in the visualizations, the caliper and angle glyphs generated by NeckSpline align well with expert annotations. The predicted loops lie entirely on the estimated ostium plane, avoiding the out-of-plane undulations that often plague post-hoc skeletonization methods. This geometric stability is further reflected in the tight error distributions shown in Fig. 2 , where NeckSpline exhibits the lowest variance and fewest outliers among all compared methods. Fig. 2 Distribution of neck width errors. Violin plots aggregate errors from the MCA-CTA and ADAM datasets. NeckSpline (ours) demonstrates the lowest mean error and the tightest distribution, indicating superior reliability compared to voxel-wise and implicit baselines. Distributional analysis of neck width error Figure 2 provides a granular view of the per-case error distribution for neck width measurements across all cohorts. Using violin plots to visualize density, we mark the mean with a dot and the 95% confidence interval (CI) with a bar. This visualization reveals distinct performance characteristics that might be obscured by statistics alone. Stability of NeckSpline The most prominent feature of the analysis is the distribution profile of NeckSpline, which exhibits both the lowest central tendency and the tightest dispersion among all compared methods. The bulk of the probability mass lies well below the 0.5 mm non-inferiority threshold, with a notably narrow 95% CI and the absence of a long right tail. This distributional compactness aligns with the tabulated MAE results, where NeckSpline consistently reduced width error by 30–40% compared to strong baselines. It suggests that our method does not merely improve average performance but fundamentally reduces the frequency of severe failures. Limitations of baseline approaches In contrast, voxel-wise architectures (nnU-Net, TransUNet, Swin UNETR) display broader distributions with heavy right tails. This behavior is particularly pronounced in lower-SNR modalities like CTA and TOF-MRA and around complex bifurcations. In these scenarios, mask discontinuities and minor misregistrations of the ostium plane inflate the caliper measurements, leading to unstable predictions. Topology-aware methods (clDice, Betti matching) succeed in shifting the distributions to the left by preventing gross topological breaks, and EC-regularized models further truncate extreme outliers. However, their distributions remain wider than that of NeckSpline. This residual variance reflects a fundamental limitation: the neck curve in these methods is a post-hoc product of voxel grouping. Consequently, local jaggedness and small segmentation gaps inevitably propagate to the final width calculation. Implicit geometry methods, while producing visually smooth surfaces, suffer from sensitivity to iso-surface thresholds, resulting in case-dependent bias and larger variances despite their continuous representation. Mechanisms of error reduction The superior stability of NeckSpline can be attributed to three synergistic factors: (i) centerline-guided anchoring strictly constrains the pose of the ostium, effectively suppressing out-of-plane drift; (ii) the periodic cubic spline representation ensures C 2 continuity, eliminating the jagged artifacts inherent to discrete voxel masks; and (iii) the combination of tightness and EC penalties prevents unphysical loop expansion and enforces a strict single-loop topology. Together, these constraints compress the error distribution, simultaneously lowering the mean and shrinking the variance. Clinical implications From a planning perspective, the shape of the error distribution is critical. For most baseline methods, the median error hovers near or above 0.5 mm, with heavy tails extending beyond 1 mm in difficult cases—deviations large enough to alter the choice of interventional device. NeckSpline, with its mass concentrated safely below 0.5 mm and minimal outliers, supports a higher degree of trust. The rare outliers observed typically stem from slight local plane tilts in very low-contrast cases, which can be mitigated via test-time augmentation. Ultimately, NeckSpline proves to be not just more accurate, but significantly more reliable, offering a robust geometric foundation for automated surgical planning. Despite these promising results, several limitations warrant discussion. To provide a quantitative transparency regarding the method’s boundary conditions, we analyzed the primary causes of measurement outliers (defined as width error > 1.0 mm) in Table 4 . Quantitative breakdown reveals that image quality degradation is the dominant failure mode: severe streak artifacts in CTA and flow-related signal saturation (signal void) in TOF-MRA collectively account for the majority of large errors. First, as a centerline-dependent method, NeckSpline inherits errors from the upstream skeletonization process. In these artifact-heavy cases, local distortions in the gradient field can lead to deviations in the parent vessel tangent, propagating to the ostium plane estimation. Second, our current parameterization assumes a single ostium loop. As noted in the table, complex or irregular orifices (e.g., multi-lobed sacs) constitute a smaller fraction of failure cases, suggesting that highly irregular geometries may require adaptive multi-spline coupling. Third, although we demonstrated robustness across CTA and MRA, broader validation on multi-vendor data is necessary to ensure generalization across different acquisition protocols. Table 4 Analysis of failure modes and error sources Failure cause Modality Frequency (%) Avg. width error (mm) Severe streak artifacts CTA 4.2% 0.92 ± 0.31 Signal saturation/dropout TOF-MRA 5.8% 1.05 ± 0.45 Complex/irregular orifice Both 2.5% 0.78 ± 0.22 We categorize the primary causes of outliers (width error > 1.0 mm) across the validation cohort. The results highlight that image quality issues (artifacts/dropout) are the dominant source of failure. Validation on a small-scale external dataset To further demonstrate the generalizability and robustness of the proposed framework, we evaluated NeckSpline on a newly curated, small-scale external validation dataset. This dataset consists of 20 clinical CTA cases from an in-house cohort that were strictly unseen during the training phase. We applied the pre-trained NeckSpline model directly to this dataset without any further fine-tuning. For a comprehensive comparison, we also evaluated the strongest topology-aware baseline, UNet + EC topology, on the same cohort. The quantitative results are summarized in Table 5 . The experimental findings are highly consistent with our primary results on the MCA-CTA and ADAM-TOF benchmarks. Specifically, NeckSpline achieved a CD of 0.59 mm and a Neck Width MAE of 0.46 mm. These results confirm that our continuous, periodic cubic B-spline representation maintains stable anatomical plausibility and sub-millimeter measurement accuracy even on new, unseen data. By explicitly constraining the neck geometry and enforcing a valid ring topology, NeckSpline continues to significantly outperform the voxel-wise baseline in handling variable contrast edge definitions. Table 5 Quantitative performance on the small-scale external validation dataset (20 CTA cases) Method CD (mm) H D 95 (mm) Δ χ Width MAE (mm) Angle MAE (°) UNet + EC topology 0.81 2.55 0.15 0.73 6.4 NeckSpline (Ours) 0.59 2.05 0.02 0.46 4.8 Bold values indicate the best performance. Discussion We introduced NeckSpline, a framework that fundamentally shifts aneurysm neck modeling from voxel-wise approximation to explicit geometric definition. Unlike voxel-wise baselines that struggle with topological discontinuities near bifurcations, NeckSpline treats the neck as a centerline-guided, periodic B-spline. This design choice provides a clear mechanistic advantage: the spline representation inherently enforces C 2 continuity, effectively eliminating the “stair-casing” artifacts common in discrete segmentation. Furthermore, the integration of a differentiable EC loss acts as a topological safeguard, strictly penalizing broken loops or holes. Our evaluation on multimodal cohorts (MCA-CTA and ADAM-TOF) demonstrates that this geometry-first approach consistently outperforms state-of-the-art voxel-wise and implicit baselines. Specifically, NeckSpline eliminated topological violations (Δ χ ≈ 0) and achieved clinical non-inferiority in width and angle measurements (width ≤ 0.5 mm, angle ≤ 5°), all while maintaining sub-second inference latency. Qualitative analyses further confirmed that our spline representation produces smooth, anatomically plausible loops even in challenging cases where pixel-level evidence is ambiguous. Crucially for clinical adoption, NeckSpline offers enhanced interpretability compared to traditional “black-box” segmentation networks. The explicit control points provide a transparent geometric primitive that clinicians can intuitively understand and manipulate. The clinical reliability of our framework is further supported by its performance under rigorous stress tests. By simulating clinical image degradations, such as streak artifacts and contrast downscaling, we demonstrated that the spline representation maintains a stable single-loop topology even when voxel-based evidence is severely compromised. Additionally, by leveraging test-time augmentation (TTA), NeckSpline provides quantifiable uncertainty estimates, allowing neurointerventionalists to gauge the reliability of automated measurements and offering a robust fail-safe for pre-procedural assessment in complex anatomical scenarios. Despite these promising results, several limitations warrant discussion. First, as a centerline-dependent method, NeckSpline inherits errors from the upstream skeletonization process. In extremely low-contrast or artifact-heavy CTA cases, local deviations in the parent vessel tangent can propagate to the ostium plane estimation, potentially biasing caliper readouts. While our robustness analysis indicates that the framework can tolerate moderate image quality fluctuations, future integration of end-to-end skeleton refinement could further mitigate these propagation errors. Second, our current parameterization assumes a single ostium loop. While this covers the vast majority of saccular aneurysms, highly irregular or multi-lobed sacs with complex orifices may require adaptive multi-spline coupling. Third, although we demonstrated robustness across CTA and MRA, broader validation on multi-vendor data is necessary to ensure generalization across different acquisition protocols. The representation-centric nature of NeckSpline opens several avenues for future research. First, the explicit closed-loop geometry can be directly coupled with fast CFD surrogates to allow for joint reasoning about morphology and hemodynamics. Second, future work could extend the framework to adaptive multi-loop modeling to handle complex bifurcations and tandem lesions. Third, we envision fusing centerline geometry with photometric cues to improve plane stability. Finally, the editable nature of the spline facilitates human-in-the-loop planning, allowing clinicians to interactively adjust control points with calibrated uncertainty feedback within interventional workstations. In summary, NeckSpline reframes aneurysm neck analysis from a post-hoc segmentation task to a problem of topology-preserving geometric modeling . By aligning the computational representation with the clinical definition of the aneurysm neck, we provide a credible path toward reliable, real-time, and interpretable assistance in neurointerventional planning. Methods Overall motivation Voxel-wise segmentation pipelines, while effective for global vascular delineation, inherently struggle with the sub-voxel precision required for aneurysm neck analysis. The discrete nature of voxel grids frequently results in “stair-casing” artifacts and topological discontinuities near bifurcations—precisely the region where the ostium must be defined. Post-hoc morphological operations, such as skeletonization or surface smoothing, can partially recover continuity but often fail when the parent lumen is tortuous or the aneurysm arises off-axis. To overcome these limitations, we cast the aneurysm neck not as a byproduct of a volumetric mask, but as a first-class, differentiable geometric primitive. Our framework, NeckSpline (Fig. 3 ), models the neck as a periodic cubic B-spline embedded. This representation allows for explicit curvature control, rigorous topological guarantees (ensuring a single, closed, non-intersecting loop), and direct coupling to image gradients. By optimizing this spline continuously, we extract clinically faithful measurements of neck width and orientation without identifying a binary threshold. The proposed framework is designed as a fully automated pipeline, requiring no manual initialization of the aneurysm center, yet its explicit geometric representation allows for optional user refinement if needed. Fig. 3 Overview of the NeckSpline framework. The pipeline transitions from raw volumetric input to a refined geometric description. (Left) Centerline-guided initialization: the vessel graph locates candidate bifurcations, estimating a local ostium plane. (Right) Differentiable fitting: a periodic B-spline is optimized to maximize image agreement while satisfying curvature and topological constraints (EC loss). The final output is a continuous loop enabling direct quantification of neck width and angle. Notation and problem setup Let \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\mathcal{I}}:\Omega \subset {{\mathbb{R}}}^{3}\to {\mathbb{R}}$$\end{document} I : Ω ⊂ R 3 → R denote a volumetric angiogram (e.g., CTA or TOF-MRA) resampled to isotropic spacing. We utilize a lightweight backbone to generate a vessel probability map P ( x ) and a boundary likelihood B ( x ). Concurrently, a multitask skeletonizer predicts a Signed Distance Field (SDF), from which we extract a centerline graph \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\mathcal{C}}={\{{{\bf{c}}}_{k}\}}_{k=1}^{K}$$\end{document} C = { c k } k = 1 K equipped with a tangent field t k . Our objective is to estimate a closed curve Γ representing the aneurysm neck. This curve must satisfy three conditions: (1) it must lie on or near a local ostium plane orthogonal to the parent blood flow; (2) it must smoothly enclose the aneurysm sac while respecting the continuity of the parent lumen; and (3) it must maximize alignment with image gradients and anatomical plausibility priors. Centerline-guided neck plane estimation The initialization phase focuses on identifying the parent-vessel segment adjacent to the ostium. We detect candidate bifurcations by locating centerline nodes with a degree ≥ 3 that exhibit high boundary likelihood within a local neighborhood \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${{\mathcal{N}}}_{r}({{\bf{c}}}_{k})$$\end{document} N r ( c k ) . For each candidate, we fit a local plane Π( n , d ) using Robust PCA on a weighted set of voxels, where weights w ( x ) = α B ( x ) + (1 − α ) P ( x )(1 − P ( x )) emphasize the vessel wall transition zone. To ensure the plane is anatomically oriented, we regularize the normal n toward the centerline tangent t k : 1 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${{\mathcal{L}}}_{\mathrm{plane}}={\lambda }_{\perp }\left(1-\left|{{\bf{n}}}^{\top }{{\bf{t}}}_{k}\right|\right)+{\lambda }_{\mathrm{var}}\mathop{\sum }\limits_{i=1}^{3}{\sigma }_{i}^{2},$$\end{document} L plane = λ ⊥ 1 − n ⊤ t k + λ var ∑ i = 1 3 σ i 2 , where \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\sigma }_{i}^{2}$$\end{document} σ i 2 are the eigenvalues of the local covariance, penalizing non-planar distributions. The candidate plane minimizing \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\mathcal{E}}={{\mathcal{L}}}_{{\rm{plane}}}-\beta \,\overline{B(\Pi )}$$\end{document} E = L plane − β B ( Π ) ¯ is selected as the initial ostium plane. Periodic cubic B-spline parameterization We parameterize the neck as a closed, periodic cubic B-spline \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\bf{S}}(u):[0,1)\to {{\mathbb{R}}}^{3}$$\end{document} S ( u ) : [ 0 , 1 ) → R 3 : 2 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\bf{S}}(u)=\mathop{\sum }\limits_{i=0}^{n}{N}_{i,3}(u)\,{{\bf{P}}}_{i},\,{{\bf{P}}}_{i}\in {{\mathbb{R}}}^{3},$$\end{document} S ( u ) = ∑ i = 0 n N i , 3 ( u ) P i , P i ∈ R 3 , using a uniform closed knot vector to guarantee C 2 continuity at the wrap-around point (i.e., S ( k ) (0) = S ( k ) (1) for k ∈ {0, 1, 2}). The control points P i are initialized as a regular polygon lying on Π, centered at the bifurcation node. The radius is set proportional to the local vessel caliber ρ , derived from the SDF. Computations are performed in a local orthonormal frame \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\{{\widehat{{\bf{e}}}}_{1},{\widehat{{\bf{e}}}}_{2},{\widehat{{\bf{e}}}}_{3}={\bf{n}}\}$$\end{document} { e ^ 1 , e ^ 2 , e ^ 3 = n } to simplify projection and curvature regularization. Differentiable sampling and image agreement To align the spline with image evidence, we sample M points \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\{{\bf{S}}({u}_{j})\}}_{j=1}^{M}$$\end{document} { S ( u j ) } j = 1 M and construct a local Frenet–Serret frame ( T , N , B ) at each sample. We define a signed normal profile Q j , ℓ = S ( u j ) + δ ℓ N ( u j ) to probe intensities inside and outside the curve. The alignment objective combines boundary likelihood maximization with gradient contrast: 3 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${{\mathcal{L}}}_{{\rm{bnd}}}=-\frac{1}{M}\mathop{\sum }\limits_{j=1}^{M}\log (\epsilon +B({\bf{S}}({u}_{j}))),$$\end{document} L bnd = − 1 M ∑ j = 1 M log ( ϵ + B ( S ( u j ) ) ) , 4 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${{\mathcal{L}}}_{{\rm{grad}}}=-\frac{1}{M}\mathop{\sum }\limits_{j=1}^{M}\left|\nabla {\mathcal{I}}{({\bf{S}}({u}_{j}))}^{\top }{\bf{N}}({u}_{j})\right|,$$\end{document} L grad = − 1 M ∑ j = 1 M ∇ I ( S ( u j ) ) ⊤ N ( u j ) , 5 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${{\mathcal{L}}}_{{\rm{prof}}}=\frac{1}{M}\mathop{\sum }\limits_{j=1}^{M}\left[{({\mathcal{I}}({Q}_{j,+})-{\mathcal{I}}({Q}_{j,-}))}^{2}\right].$$\end{document} L prof = 1 M ∑ j = 1 M ( I ( Q j , + ) − I ( Q j , − ) ) 2 . These terms collectively encourage the spline to settle on high-contrast boundaries with symmetric intensity profiles. Trilinear interpolation allows gradients to flow back to the control points P i . Geometric regularization and tightness prior Anatomical plausibility is enforced through bending energy and a specific tightness prior. We define the discrete curvature κ ( u j ) and penalize deviations from a reference curvature κ ref : 6 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${{\mathcal{L}}}_{{\rm{tight}}}=\frac{1}{M}\mathop{\sum }\limits_{j}{(\kappa ({u}_{j})-{\kappa }_{{\rm{ref}}})}^{2}.$$\end{document} L tight = 1 M ∑ j ( κ ( u j ) − κ ref ) 2 . Here, κ ref is a data-driven scalar derived from the median curvature of training aneurysm necks, normalized by parent caliber. We further constrain the loop scale via its circumference C and projected area A : 7 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${{\mathcal{L}}}_{{\rm{scale}}}={\left(\frac{C}{\rho }-{\eta }_{C}\right)}^{2}+\gamma {\left(\frac{\sqrt{A}}{\rho }-{\eta }_{A}\right)}^{2},$$\end{document} L scale = C ρ − η C 2 + γ A ρ − η A 2 , where η C and η A are empirical statistical targets. This prevents the spline from expanding uncontrollably into the aneurysm sac or collapsing into the lumen. Topology preservation: the solid torus constraint A critical requirement is that the neck loop must form a single connected component with a central hole (topologically equivalent to a solid torus). To enforce this, we first penalize self-intersections using a non-adjacent repulsion term: 8 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${{\mathcal{L}}}_{\mathrm{self}}=\mathop{\sum }\limits_{j}\mathop{\sum }\limits_{k:| j-k| > \Delta }\max {(0,\epsilon -\parallel {\bf{S}}({u}_{j})-{\bf{S}}({u}_{k})\parallel )}^{2}.$$\end{document} L self = ∑ j ∑ k : ∣ j − k ∣ > Δ max ( 0 , ϵ − ∥ S ( u j ) − S ( u k ) ∥ ) 2 . However, self-repulsion alone does not guarantee global topology. We therefore employ a differentiable EC loss. We softly rasterize a tubular occupancy field \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\mathcal{O}}({\bf{x}})$$\end{document} O ( x ) around the spline Γ : 9 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$D({\bf{x}})=\mathop{{\rm{softmin}}}\limits_{u}\parallel {\bf{x}}-{\bf{S}}(u)\parallel ,\,{\mathcal{O}}({\bf{x}})=\sigma \left(-\frac{D({\bf{x}})-\tau }{{\sigma }_{D}}\right).$$\end{document} D ( x ) = softmin u ∥ x − S ( u ) ∥ , O ( x ) = σ − D ( x ) − τ σ D . The EC of a solid torus is χ = 0. Consequently, our topological objective is to minimize the absolute deviation from zero: 10 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${{\mathcal{L}}}_{{\rm{EC}}}=\left|\chi ({\mathcal{O}} > 0.5)\right|.$$\end{document} L EC = χ ( O > 0.5 ) . This loss actively penalizes broken loops (which resemble lines, χ ≈ 1) or filled disks ( χ ≈ 1), driving the optimization toward a valid ring topology ( χ = 0). Neck-centerline coupling To maintain anatomical context, we anchor the spline to the parent vessel. We enforce planarity by penalizing the signed distance of spline points from the estimated plane Π: 11 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${{\mathcal{L}}}_{{\mathrm{plane}}_{\mathrm{\_dist}}}=\frac{1}{M}\mathop{\sum }\limits_{j}{({{\bf{n}}}^{\top }{\bf{S}}({u}_{j})+d)}^{2}.$$\end{document} L plane _dist = 1 M ∑ j ( n ⊤ S ( u j ) + d ) 2 . Furthermore, we bias the loop centroid \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\bar{{\bf{S}}}$$\end{document} S ¯ toward the bifurcation node c * and align the loop’s principal axis with the cross product of the plane normal and parent tangent ( n × t * ). This anchoring ensures that the neck remains physically attached to the vessel junction, even in the presence of ambiguous image data. Optimization strategy The total objective function is a weighted sum of the image, geometric, and topological terms. We optimize the control points { P i } and optionally the plane parameters ( n , d ) using the AdamW optimizer. To navigate the complex energy landscape, we implement a coarse-to-fine schedule. The optimization begins with n = 8 control points and a wide sampling radius (1.0 mm) to capture the global shape. Every 100 iterations, we subdivide the spline (increasing n to 12, then 16) and shrink the sampling radius (0.6 → 0.3 mm) to refine local details. This curriculum prevents the spline from getting trapped in local minima associated with image noise. Measurement extraction Upon convergence, clinical metrics are derived directly from the explicit spline representation. We project Γ onto the final plane Π. The neck width is computed as the maximum caliper diameter of the projected loop. The parent-vessel angle ϕ is calculated as the angle between the plane normal n and the parent tangent t * . Uncertainty intervals for these measurements are generated via a perturb-and-optimize procedure, providing clinicians with confidence estimates essential for risk assessment. Datasets and preprocessing We evaluated NeckSpline on two complementary public cohorts representing the primary modalities in cerebrovascular imaging: CTA and TOF-MRA. We utilized the multimodal MCA aneurysm dataset released by Song et al. 10 , which contains high-resolution head CTA scans from 99 patients harboring 105 middle cerebral artery aneurysms, alongside 44 healthy controls. This dataset is particularly valuable for its rich metadata, including reconstructed surface models and hemodynamic parameters, which provide geometry-aware supervision for our spline fitting. For magnetic resonance imaging, we employed the ADAM challenge dataset 13 , a curated benchmark for unruptured intracranial aneurysm detection. We adopted the official training and validation splits for model development and reserved the test split for external performance reporting. Since neither dataset natively provides closed-loop annotations for the aneurysm neck, we established a rigorous ground truth generation protocol. For each case, candidate neck loops were derived by intersecting the aneurysm sac with the parent vessel component on an ostium plane estimated from the local centerline frame. These initial polygonal contours were converted into periodic cubic B-splines and subsequently double-read by two board-certified neurointerventionalists. Disagreements were adjudicated through consensus to produce the final expert neck loop and associated clinical measurements (width and angle). To ensure quality assurance, 20% of cases were randomly sampled for a third-reader audit. To harmonize the input data, all volumes were resampled to isotropic spacing suited to their modality (0.3–0.5 mm for CTA; 0.5–0.8 mm for TOF-MRA). We applied skull stripping where applicable and performed intensity normalization ( z -score) within the vessel mask. The meshes provided by the MCA-CTA dataset were voxelized at matching resolutions to enable differentiable supervision, while segmentation masks from the ADAM dataset were used to initialize the lumen prior for centerline extraction. Tasks and endpoints Our evaluation framework is designed to assess both the geometric fidelity of the reconstruction and its clinical utility for surgical planning. We define two primary tasks: T1: neck loop estimation Given a volumetric scan \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\mathcal{I}}({\bf{x}})$$\end{document} I ( x ) , the objective is to estimate a closed neck contour \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\widehat{\Gamma }$$\end{document} Γ ^ , represented as a periodic cubic B-spline. This loop is constrained to lie on an automatically estimated ostium plane \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\widehat{\Pi }(\widehat{{\bf{n}}},\widehat{d})$$\end{document} Π ^ ( n ^ , d ^ ) anchored by the parent-vessel centerline. T2: clinical measurement From the estimated contour \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\widehat{\Gamma }$$\end{document} Γ ^ , we compute the neck width \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\widehat{w}$$\end{document} w ^ and the parent-vessel angle \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\widehat{\phi }$$\end{document} ϕ ^ . These metrics are derived from the planar projection \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${{\mathsf{proj}}}_{\widehat{\Pi }}(\widehat{\Gamma })$$\end{document} proj Π ^ ( Γ ^ ) to ensure consistent comparisons across modalities. Geometric Endpoints: Let \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\Gamma }^{\star }={\{{{\bf{x}}}_{i}\}}_{i=1}^{N}$$\end{document} Γ ⋆ = { x i } i = 1 N denote the expert ground truth loop and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\widehat{\Gamma }={\{{\widehat{{\bf{y}}}}_{j}\}}_{j=1}^{M}$$\end{document} Γ ^ = { y ^ j } j = 1 M be the predicted loop (discretized). We quantify geometric accuracy on the ostium plane using the CD and the 95% HD 95 : 12 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\rm{CD}}({\Gamma }^{\star },\widehat{\Gamma })=\frac{1}{N}\mathop{\sum }\limits_{i=1}^{N}\mathop{\min }\limits_{j}\parallel {{\bf{x}}}_{i}-{\widehat{{\bf{y}}}}_{j}{\parallel }_{2}+\frac{1}{M}\mathop{\sum }\limits_{j=1}^{M}\mathop{\min }\limits_{i}\parallel {\widehat{{\bf{y}}}}_{j}-{{\bf{x}}}_{i}{\parallel }_{2},$$\end{document} CD ( Γ ⋆ , Γ ^ ) = 1 N ∑ i = 1 N min j ∥ x i − y ^ j ∥ 2 + 1 M ∑ j = 1 M min i ∥ y ^ j − x i ∥ 2 , 13 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${{\rm{HD}}}_{95}({\Gamma }^{\star },\widehat{\Gamma })={{\mathcal{P}}}_{95}\left({\left\{\mathop{\min }\limits_{j}\parallel {{\bf{x}}}_{i}-{\widehat{{\bf{y}}}}_{j}{\parallel }_{2}\right\}}_{i=1}^{N}\cup {\left\{\mathop{\min }\limits_{i}\parallel {\widehat{{\bf{y}}}}_{j}-{{\bf{x}}}_{i}{\parallel }_{2}\right\}}_{j=1}^{M}\right),$$\end{document} HD 95 ( Γ ⋆ , Γ ^ ) = P 95 min j ∥ x i − y ^ j ∥ 2 i = 1 N ∪ min i ∥ y ^ j − x i ∥ 2 j = 1 M , where \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${{\mathcal{P}}}_{95}$$\end{document} P 95 denotes the 95th percentile of the combined distance set. Additionally, we report the area error Δ A and curvature deviation on the projection plane \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\widehat{\Pi }$$\end{document} Π ^ . To assess topological consistency, we compute the EC discrepancy. Since a single closed loop (homeomorphic to a solid torus) has an EC of χ = 0, we define the error as: 14 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\Delta \chi =\left|\chi \left({{\mathcal{O}}}_{\widehat{\Gamma }}\right)\right|,$$\end{document} Δ χ = χ O Γ ^ , where \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${{\mathcal{O}}}_{\widehat{\Gamma }}$$\end{document} O Γ ^ is the voxelized occupancy of the predicted loop. An ideal prediction implies Δ χ = 0. Clinical Endpoints: Clinical accuracy is evaluated based on neck width and orientation. Let \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\bar{{\bf{p}}}$$\end{document} p ¯ be the centroid of the projected loop. The neck width \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\widehat{w}$$\end{document} w ^ is defined as the maximal caliper distance passing through the centroid: 15 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\widehat{w}=\mathop{\max }\limits_{\theta \in [0,\pi )}{\ell }_{\theta },$$\end{document} w ^ = max θ ∈ [ 0 , π ) ℓ θ , where ℓ θ is the chord length in direction u θ . The parent-vessel angle is computed as the deviation between the ostium plane normal \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\widehat{{\bf{n}}}$$\end{document} n ^ and the parent vessel tangent t * : 16 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\widehat{\phi }=\arccos \left(\left|\,{\widehat{{\bf{n}}}}^{\top }{{\bf{t}}}_{* }\right|\right).$$\end{document} ϕ ^ = arccos n ^ ⊤ t * . We report the MAE for both metrics, along with the Intraclass Correlation Coefficient (ICC 2,1) and Bland–Altman limits of agreement. Based on recent literature, we define non-inferiority margins of ≤0.5 mm for width and ≤5° for angle. Secondary metrics: we further assess the method’s robustness via a branch continuity score (measuring lumen connectivity at bifurcations) and a stress test failure rate under simulated artifacts. Efficiency is quantified by end-to-end runtime and GPU memory usage. Finally, we evaluate predictive uncertainty by reporting the empirical standard deviation of \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$(\widehat{w},\widehat{\phi })$$\end{document} ( w ^ , ϕ ^ ) over R test-time augmentation runs. Baselines and ablations To strictly evaluate the proposed method, we benchmarked NeckSpline against a diverse set of baselines, ranging from established voxel-wise architectures to specialized topology-aware and implicit geometric models. All baselines were trained on the same data splits using identical preprocessing and augmentation protocols. For voxel-wise models that output segmentation masks, the neck loop was derived by intersecting the predicted aneurysm sac with the parent lumen on the estimated ostium plane, followed by standard polygonal smoothing. Voxel-wise architectures We selected three representative backbones to gauge volumetric segmentation performance: (1) nnU-Net, the current de facto standard for biomedical segmentation, which serves as a robust, self-configuring baseline; (2) TransUNet, a hybrid CNN-Transformer architecture adapted from its recent journal version to process patches; and (3) Swin UNETR, which leverages hierarchical Swin Transformers to capture long-range vascular dependencies. Additionally, we included the High-Throughput Seg framework, a multi-class model originally designed for angiographic vessel-aneurysm separation, utilizing a cascaded transformer head. Topology-preserving methods To test whether topological constraints translate into better ostium boundaries, we compared against: (1) UNet + clDice, which incorporates centerline-aware loss to preserve tubular connectivity; (2) UNet + Betti Matching, which minimizes the discrepancy in Betti numbers (connected components and holes) between prediction and ground truth; and (3) UNet + EC Topology Optimization, which targets topologically critical regions using EC violation maps. Implicit and contour baselines To evaluate continuous geometric representations, we implemented: (1) NISF (neural implicit segmentation functions), an implicit neural representation (INR) that outputs continuous segmentation fields; and Ablation study design We conducted a series of controlled ablations to isolate the impact of each NeckSpline component: w/o CLine: initializes the spline on a purely image-based plane without centerline anchoring. w/o Tight: removes the curvature tightness prior to testing its role in controlling loop expansion. w/o EC: excludes the EC loss to evaluate topology preservation. w/o Plane: relaxes the planarity penalty to assess the importance of the ostium plane constraint. w/o SelfRep: removes the self-intersection repulsion term. Control-point budget: varies n ∈ {8, 12, 16, 24} to analyze the bias-variance trade-off. Ours-poly: replaces the cubic B-spline with a piecewise linear polygon to validate the benefit of C 2 continuity. Oracle centerline: uses ground-truth centerlines to estimate the theoretical upper bound of our method. Evaluation metrics We assessed the performance of NeckSpline using a multi-faceted strategy that covers geometric fidelity, topological integrity, and clinical utility. Additionally, we evaluated the reliability of the system through uncertainty calibration and operational efficiency. Geometric Fidelity: Let \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\Gamma }^{\star }={\{{{\bf{x}}}_{i}\}}_{i=1}^{N}$$\end{document} Γ ⋆ = { x i } i = 1 N denote the expert ground truth loop and \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\widehat{\Gamma }={\{{\widehat{{\bf{x}}}}_{j}\}}_{j=1}^{M}$$\end{document} Γ ^ = { x ^ j } j = 1 M the predicted loop. Both curves are evaluated on the estimated ostium plane \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\widehat{\Pi }$$\end{document} Π ^ after projection and arc-length reparameterization. Curve distance metrics We quantify the spatial correspondence using the Symmetric CD and the 95% HD 95 : 17 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${\rm{CD}}({\Gamma }^{\star },\widehat{\Gamma })=\frac{1}{N}\mathop{\sum }\limits_{i=1}^{N}\mathop{\min }\limits_{j}\parallel {{\bf{x}}}_{i}-{\widehat{{\bf{x}}}}_{j}{\parallel }_{2}+\frac{1}{M}\mathop{\sum }\limits_{j=1}^{M}\mathop{\min }\limits_{i}\parallel {\widehat{{\bf{x}}}}_{j}-{{\bf{x}}}_{i}{\parallel }_{2},$$\end{document} CD ( Γ ⋆ , Γ ^ ) = 1 N ∑ i = 1 N min j ∥ x i − x ^ j ∥ 2 + 1 M ∑ j = 1 M min i ∥ x ^ j − x i ∥ 2 , 18 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${{\rm{HD}}}_{95}({\Gamma }^{\star },\widehat{\Gamma })={{\rm{quantile}}}_{0.95}\left(\mathop{\max }\limits_{i}\mathop{\min }\limits_{j}\parallel {{\bf{x}}}_{i}-{\widehat{{\bf{x}}}}_{j}{\parallel }_{2},\mathop{\max }\limits_{j}\mathop{\min }\limits_{i}\parallel {\widehat{{\bf{x}}}}_{j}-{{\bf{x}}}_{i}{\parallel }_{2}\right).$$\end{document} HD 95 ( Γ ⋆ , Γ ^ ) = quantile 0.95 max i min j ∥ x i − x ^ j ∥ 2 , max j min i ∥ x ^ j − x i ∥ 2 . All distances are reported in millimeters (mm). Shape descriptors To assess shape preservation, we compute the relative area error Δ A and the mean curvature deviation Δ κ on the projection plane: 19 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\Delta A=\frac{\left|A({\Gamma }^{\star })-A(\widehat{\Gamma })\right|}{A({\Gamma }^{\star })},\,\Delta \kappa =\frac{1}{L}\int \left|{\kappa }^{\star }(s)-\widehat{\kappa }(s)\right|\,{\rm{d}}s.$$\end{document} Δ A = A ( Γ ⋆ ) − A ( Γ ^ ) A ( Γ ⋆ ) , Δ κ = 1 L ∫ κ ⋆ ( s ) − κ ^ ( s ) d s . Additionally, since the predicted loop should theoretically lie on the ostium plane, we quantify numerical drift using the root-mean-square (RMS) planarity deviation: 20 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${{\rm{RMS}}}_{\perp }=\sqrt{\frac{1}{M}\mathop{\sum }\limits_{j=1}^{M}{({\widehat{{\bf{n}}}}^{\top }{\widehat{{\bf{x}}}}_{j}+\widehat{d})}^{2}}.$$\end{document} RMS ⊥ = 1 M ∑ j = 1 M ( n ^ ⊤ x ^ j + d ^ ) 2 . Topology and continuity: EC. Topological correctness is measured via the EC. We voxelize a thin tubular occupancy \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$${{\mathcal{O}}}_{\widehat{\Gamma }}$$\end{document} O Γ ^ around the prediction (bandwidth 1.4 mm). Since an ideal single closed loop is homeomorphic to a solid torus, its EC is χ = 0. Thus, we define the discrepancy as: 21 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\Delta \chi =\left|\chi \left({{\mathcal{O}}}_{\widehat{\Gamma }} > 0.5\right)\right|.$$\end{document} Δ χ = χ O Γ ^ > 0.5 . A value of Δ χ = 0 indicates perfect topological preservation (single connected component, single hole). Bifurcation continuity We report the number of non-adjacent self-intersections on the projected plane. Furthermore, we define a Bifurcation Continuity Score (BCS), which represents the proportion of cases where the parent vessel lumen remains topologically connected across the ostium after determining the neck boundary. Clinical usability: we validated the system against standard clinical endpoints used in endovascular planning. Neck width( \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\widehat{w}$$\end{document} w ^ ): computed as the maximal caliper distance (rotating calipers) of the projected loop. Parent-vessel angle ( \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\widehat{\phi }$$\end{document} ϕ ^ ): defined as \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\arccos (|{\widehat{{\bf{n}}}}^{\top }{{\bf{t}}}_{* }|)$$\end{document} arccos ( | n ^ ⊤ t * | ) , where t * is the tangent of the parent vessel at the ostium center. Accuracy is reported as the MAE relative to expert measurements. To assess reliability, we calculated the Intraclass Correlation Coefficient (ICC 2,1) and performed Bland–Altman analysis. We adopted non-inferiority margins of ≤0.5 mm for width and ≤5° for angle, consistent with recent literature on automated morphometry. Uncertainty and efficiency: to evaluate the trustworthiness of the predictions, we employed test-time augmentation ( R trials) to estimate the empirical standard deviation (SD w , SD ϕ ) and the prediction interval coverage probability (PICP) for nominal 95% intervals. Calibration was measured using the expected calibration error for regression (rECE): 22 \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\mathrm{rECE}=\mathop{\sum }\limits_{b=1}^{B}\frac{\left|{S}_{b}\right|}{\sum \left|{S}_{b}\right|}\left|\widehat{{\mathrm{cov}}_{b}}-\,\mathrm{nominal}\right|,$$\end{document} rECE = ∑ b = 1 B S b ∑ S b cov b ^ − nominal , where \documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\widehat{{\mathrm{cov}}_{b}}$$\end{document} cov b ^ denotes the empirical coverage in bin b . Finally, operational efficiency is reported as end-to-end latency (seconds per case) and peak GPU memory usage, averaged over 50 consecutive test cases. Statistical analysis Pairwise comparisons against baselines were conducted using the Wilcoxon signed-rank test. Multiple hypothesis testing was controlled using the Holm–Bonferroni correction, with statistical significance set at α = 0.05. Confidence intervals (95%) were estimated via bootstrapping ( n = 1000).
