Introduction

Epilepsy is one of the most prevalent neurological disorders, affecting ~1% of the global population1. Temporal lobe epilepsy (TLE) is the most common form of drug-resistant focal epilepsy, often leading to a significant reduction in quality of life due to recurrent and unpredictable seizures1. For drug-resistant epilepsies, which comprise about 30% of cases, resective epilepsy surgery has become a widely accepted therapeutic option aiming at removing the epileptogenic regions2,3,4. However, ~30% of these patients continue to experience persistent seizures after surgery3. One potential explanation is that seizures may originate from abnormal brain regions that were not resected. Emerging evidence suggests that in TLE, structural abnormalities extend beyond the epileptogenic zone, forming a broader network involved in seizure generation5,6. These studies indicate that a more comprehensive understanding of brain connectivity changes associated with favorable surgical outcomes could enhance surgical planning and postoperative care7,8.

Although some scoring systems correlate with surgical outcomes9,10,11, existing models remain insufficient to reliably guide clinicians in predicting surgical success, leaving a gap in personalized treatment strategies12,13. Over recent decades, clinical data have been combined with markers from preoperative magnetic resonance imaging (MRI), scalp electroencephalography (EEG), intracranial EEG (iEEG), or magnetoencephalography (MEG) data, to develop predictive tools14,15,16,17,18. Features from interictal pathological iEEG activity, such as spikes and high-frequency events in the epileptogenic zone, have been used as biomarkers of surgical success19,20. Connectivity patterns of these events, however, provide more accurate outcome predictions21,22. For example, preoperative iEEG analyses show that resecting weakly homogeneous networks in TLE often leads to poor outcomes23. Noninvasive studies have demonstrated the predictive utility of spectral power and coherence features from presurgical scalp EEG24,25, and MEG-derived cortical networks, with localized epileptic regions correlating with seizure-free outcomes17. Structural abnormalities in MRI, including the morphology of temporal structures, also predict surgical success when compared to normative data26,27,28. Functional connectivity from presurgical fMRI has been associated with postoperative seizure freedom29, with poor outcomes linked to regional network segregation30.

Interestingly, recent evidence shows that integrating connectivity information from fMRI and diffusion MRI data could serve as a reliable biomarker for predicting surgical outcomes31. Several studies have linked presurgical white matter properties to surgical outcomes, including tract density32 and diffusion abnormalities in white matter bundles from DTI data33. Patient-specific white matter features from Diffusion-weighted magnetic resonance imaging (dMRI) data have been shown to be reliable biomarkers of postoperative seizure outcomes34. Structural networks derived from DTI provide accurate, individualized outcome predictions16,35,36,37. Surgical outcomes depend not only on presurgical networks but also on how resection affects brain connectivity36,38,39. Predictive modeling of multivariate iEEG data has enabled seizure propensity predictions by simulating channel resection40,41. Network-based in-silico simulations assess the “ictogenicity” of brain areas and predict outcomes of virtual resections42,43,44,45. Our study leverages MRI and dMRI data to analyze pre- and postoperative structural brain connectivity changes, aiming to identify novel biomarkers for more precise surgical outcome predictions.

In recent years, brain connectivity networks have emerged as a powerful framework for studying a range of neurological diseases, including neurodegenerative disorders46,47, schizophrenia48, and epilepsy49,50. Representing the brain as a network of nodes (e.g., brain regions, sensors, voxels) and edges (functional or anatomical connections) offers a comprehensive view of brain architecture, surpassing traditional region-based approaches51,52,53. Rather than identifying a single cortical area responsible for seizures, network-based approaches have highlighted the critical role of widespread altered connectivity beyond the epileptogenic zone6,49,54.

Brain connectivity networks are typically represented as adjacency matrices or edge lists, but their high dimensionality complicates statistical analysis (e.g., node classification, clustering, and link prediction)53. To simplify analysis, networks are generally projected into low-dimensional vector spaces while preserving their structural properties. Although Euclidean embeddings are commonly used, they often require high dimensions and fail to capture key features of large-scale brain networks like hierarchical structure55,56,57.

Hyperbolic graph embedding has gained attention for its effectiveness in representing complex networks. Unlike Euclidean space, where distances grow linearly, hyperbolic space features exponentially expanding distances, making it ideal for capturing hierarchical and scale-free structures common in real-world networks58. This allows for lower distortion embeddings that preserve both local and global connectivity structures more effectively than Euclidean projections59,60.

Hyperbolic embeddings offer key advantages for studying brain connectivity. Brain networks exhibit a small-world and hierarchical structure, with local clusters of tightly connected regions and long-range connections integrating functional modules53. Hyperbolic space naturally captures these properties in a lower-dimensional space61. Recent studies have shown that hyperbolic embeddings are effective for exploring brain network disruptions in neurological conditions. For example, hyperbolic embedding has been used to investigate brain network alterations linked to cognitive decline in Alzheimer’s disease62,63, and autism spectrum disorder57.

In epilepsy research, hyperbolic mapping of brain networks has shown potential for localizing connectivity disruptions caused by surgery64, and identifying brain states at high risk of seizures65. In this study, we used hyperbolic graph embedding to analyze pre- and post-surgical brain networks in 51 patients who underwent anterior temporal lobe resection (ATLR) surgery36. Connectivity networks were constructed from diffusion and structural MRI data before and after surgery. Embedding these networks into hyperbolic space enabled a direct comparison of connectivity changes linked to surgical outcomes, allowing us to assess whether pre- and post-surgical network differences could serve as biomarkers for favorable outcomes.

Analysis of embedded networks allowed us to evaluate how surgical resection affects brain connectivity by identifying both short- and long-range effects around the surgical region. This approach highlighted specific brain regions contributing to surgical outcome differentiation, providing insights into the anatomical and network-level changes linked to surgical success. In addition to comparing network structures, hyperbolic embeddings were used to build a predictive model for surgical outcomes. Our approach yielded a good prediction performance (area under the curve (AUC) = 0.87). This performance was significantly enhanced (AUC = 0.90) for patients who underwent a left hemisphere surgery. Our results demonstrate that hyperbolic geometry offers a novel framework for analyzing brain network changes in TLE surgery, with potential to improve understanding of surgical effects and patient-specific outcome prediction.

Results

Comparison of pre- and post-surgery brain networks

The impact of surgery on brain connectivity was quantified by comparing the displacement of a node in the embedding space caused by a network perturbation. To quantify this change, we estimated the HypDisp score of each node from the pre- and post-surgery networks embedded in the hyperbolic disk64. This displacement score is based on the idea that a local perturbation in a node’s connectivity will alter its embedding coordinates relative to those of the original graph. Figure 1 illustrates the procedure for one patient. Interestingly, the embedding separates nodes corresponding to the left and right hemispheres in an unsupervised manner.

Fig. 1: Embedding and comparison of pre- and post-operative networks in the hyperbolic disk.
figure 1

Pre- and post-surgery brain networks are embedded and aligned in the disk. The HypDisp score is calculated for each node and interpolated across the disk for each patient. Red squares represent left hemisphere nodes, blue dots represent right hemisphere nodes, and the black dot marks the origin (0, 0) of the disk. White-faced nodes correspond to the temporal lobes (left or right, based on edge color). The surgery network represents the connections that were removed during the surgery. Brain figures generated in Python with Nilearn.

The interpolated HypDisp scores from the two patient groups (good and poor outcomes) were compared inside the embedding disk using a Student’s t test to identify regions in the disk (referred to as “Region of Interest” or ROI) with significant differences (p ≤ 0.05). As shown in Fig. 2, for patients with left hemisphere surgery, the ROI consists of a single component, while for those with right hemisphere surgery, three ROIs are identified. It is worthy of notice that the representation of networks in the Euclidean space (via diffusion maps66) did not reveal any discriminating node associated to the surgical outcome. These results suggest that embedding brain networks in the hyperbolic disk effectively capture surgery-related differences in brain connectivity associated with outcomes. For more clarity, the mean disk of each group are plotted in Supplementary Fig. 2.

Fig. 2: Student’s t test comparison of interpolated HypDisp score values between patients with favorable and poor outcomes.
figure 2

Left disk: patients operated on the left temporal lobe; right disk: patients operated on the right temporal lobe. Non-shaded areas represent ROIs with significant differences between the two groups (p < 0.05).

As seen in Fig. 1, the interpolated HypDisp values clearly delineate a region in the hyperbolic disk where surgery mainly alters network structure. Notably, the surgical region does not entirely overlap with the regions whose connectivity is associated with the surgical outcome, indicating that surgery, as a perturbation of the connectivity graph, affects both local and global network structures.

Balanced accuracy

Given the class imbalance present in our dataset (i.e., unequal number of favorable and unfavorable outcomes), we report the balanced accuracy in addition to the standard accuracy. Balanced accuracy is particularly suitable in this context, as it accounts for the performance on both classes equally, regardless of their proportions in the dataset.

Formally, the balanced accuracy is defined as the average of the true positive rate and the true negative rate:

$$\,\text{Balanced}\,{Accuracy}\,=\frac{1}{2}\left(\frac{{\rm{TP}}}{{\rm{TP}}+{\rm{FN}}}+\frac{{\rm{TN}}}{{\rm{TN}}+{\rm{FP}}}\right)$$
(1)

where TP, TN, FP, and FN represent the number of true positives, true negatives, false positives, and false negatives, respectively. This metric ensures that both sensitivity (recall of the positive class) and specificity (recall of the negative class) are taken into account, which is essential in medical applications where both false positives and false negatives can have significant clinical implications.

Surgery outcome prediction

To assess the impact of embedding alignment on surgery outcome prediction, we repeated the leave-one-patient-out procedure multiple times with different control network references. Evaluating the model across various reference networks from the healthy group, we obtained an AUC of 0.87 ± 0.003 and a balanced accuracy of 0.81 ± 0.02 (mean value ± SD). The reduced variability in performance indicates that the choice of reference network had no effect on outcome prediction.

Six patients from the favorable outcome group (n = 42) were misclassified as having a poor outcome. Three of these patients relapsed at years 3, 4, and 5, while three others withdrew after 3 years. Conversely, two patients from the poor outcome group (n = 9) were misclassified as favorable outcomes, and both became seizure-free at years 3 and 4. One of these had a marginal probability of 0.51 of being classified as favorable. Prediction analysis for each subgroup yielded an AUC = 0.90 ± 0.003 and a balanced accuracy of 0.84 ± 10−16 for the 30 patients who underwent left hemisphere surgery, and an AUC of 0.80 ± 0.01 and accuracy of 0.79 ± 0.05 for the 21 patients who underwent right hemisphere surgery.

To assess the impact of connections number on predicted outcomes, we applied our model to graphs obtained by randomly rewiring the original networks while preserving the degree distribution. For 25% rewiring, the model yielded a mean AUC = 0.59 and a balanced accuracy of 0.52. As the number of rewired connections increased, the model could no longer distinguish between the two groups (no ROIs identified). These results clearly demonstrate that the predicted outcome is influenced by changes at the level of the entire network, rather than merely the number of resected connections.

Brain regions associated with the surgery outcome

To better interpret the nodes in the regions of interest, we back-projected them from the hyperbolic disk into brain space. Figure 3 shows the nodes in brain space affected by the surgery and those in the discriminant ROIs of the hyperbolic disk. The nodes impacted by the surgery are concentrated in a small region of the operated hemisphere (In blue). For clarity, only nodes with ≥40% of connections removed are shown. In contrast, the nodes differentiating favorable and poor outcomes are mostly located in the contralateral hemisphere (In red), except for one node in the right surgery group. Visual inspection reveals clear hemispherical symmetry between regions impacted by the surgery. We define discriminant nodes as those located within the region of interest (ROI) in at least 80% of the patients. This criterion ensures that the selected nodes represent brain regions that are consistently affected by resection across the cohort.

Fig. 3: Projection onto brain space of the regions of interest from the hyperbolic disk showing the greatest outcome differences between groups.
figure 3

The first row shows patients operated on the right hemisphere, and the second row, those operated on the left. Blue points indicate brain areas directly affected by surgery, while red points represent key areas associated with outcome differences, as defined by the ROIs in the hyperbolic disk. Figures generated in Python with Nilearn.

For patients who underwent left hemisphere surgery, the discriminant nodes associated with surgical outcome are concentrated in a small region of the contralateral hemisphere (Fig. 3, bottom plots). In contrast, for those with right hemisphere surgery, the discriminant nodes are more dispersed in the left hemisphere (Fig. 3, top plots). This contralateral localization in both groups highlights the importance of examining the large-scale network of each patient, beyond the local regions directly affected by surgery, to accurately assess its impact.

Discussion

This study developed a framework to map and characterize the effects of surgery on neuroanatomical connectivity in epileptic patients. We explored embedding brain connectivity networks in non-Euclidean space to predict surgical outcomes in TLE patients. By mapping brain networks onto the hyperbolic disk, we identified connectivity changes that may serve as biomarkers for predicting surgical outcomes. Our results suggest that this framework can assess surgical resection impacts and predict outcomes by simulating disconnections in preoperative networks.

In patients with drug-resistant TLE epilepsy, current prognostic models combine clinical, neuroimaging, and electrophysiological data to predict surgical outcomes10,12. However, no method has consistently demonstrated robust predictive power12,67. In this study, we explored embedding brain connectivity networks in hyperbolic space to predict surgical outcomes in TLE patients. Our findings show that mapping pre- and post-surgical networks in this non-Euclidean space reveals key connectivity discrepancies that could contribute to developing a predictive tool for surgical outcomes. Our approach, which analyzes brain networks in latent hyperbolic space, offers a novel framework for characterizing and mapping surgery’s effects on neuroanatomical connectivity. We expect these low-dimensional, informative representations to be crucial for brain network studies, surpassing standard network measures and Euclidean embeddings. Notably, representations of pre- and post-surgery networks on Euclidean space fail to distinguish surgical outcome differences (See Supplementary Fig. 1).

In a previous study, the use of pre-surgical fMRI connectivity networks provided an accuracy of 76% for outcome prediction68. Similarly, preoperative brain connectivity from iEEG recordings predicted epilepsy surgery outcomes with 87% accuracy23. A connectivity-based simulation model achieved an AUC of 87%43, while a functional ECoG connectivity model predicted surgery outcomes with 83% accuracy44. A dynamical iEEG model predicted surgical outcomes with an AUC of 89% by extracting virtual resection network features45. Combining presurgical functional networks (iEEG) with structural connectivity (dMRI) yielded an AUC of =81% for predicting seizure outcomes18. Using structural and functional MRI, connectivity anomalies predicted postsurgical seizure outcomes with 76% accuracy29. Evidence suggests that integrating neuroimaging data (including connectivity) with clinical information can improve predictions, achieving accuracy above 91%15,18.

Prediction models based on anatomical connectivity from presurgical DTI data have yielded accuracy values ranging from 7069 to 83%34. However, these models focus on partial networks, specifically the ipsilateral temporal lobe’s links to extratemporal regions34. A deep learning model using presurgical DTI-based connectomes achieved 88% precision16. Using high-resolution reconstructions of cortical networks, a local connectivity group selection predicted surgical outcomes with 95% accuracy, compared to 88% for low-resolution parcellations70. Alternatively, quantifying postsurgical changes in dMRI connectivity predicted seizure outcomes with 79% accuracy38. Another study used postsurgery connectivity changes to predict outcomes with an AUC of 84%18.

Our prediction performances (AUC = 87% and balanced accuracy of 81%) are comparable to these studies, though we note that some of the previously reported accuracy values may be biased due to an overrepresentation of patients with favorable outcomes. In contrast, our study addressed this imbalance by utilizing balanced accuracy, ensuring a more reliable assessment. Interestingly, the prediction model performed better for patients who underwent left hemisphere surgery (mean AUC = 0.90 ± 0.003), identifying a more compact region of interest in the brain. This aligns with studies showing differences between left and right hemisphere surgeries71,72. These differences may be due to larger fiber tracks in left TLE patients compared to right TLE patients and healthy subjects6,73. We identified brain regions potentially involved in surgical failure, aiding in the differentiation of patient groups with distinct outcomes. Notably, the discriminant regions were consistently located in the contralateral hemisphere. While contralateral effects are not widely described, they are observed in TLE. Studies have shown contralateral abnormalities in preoperative DTI74, positron emission tomography (PET)75, and interictal scalp EEG data71. These abnormalities have also been noted in baseline imaging and electrophysiological data76. Brain connectivity studies have found contralateral differences linked to seizure recurrence, with TLE patients showing more connections in the contralateral hemisphere compared to healthy controls68, along with reduced long-range connections29,30. This reduction in contralateral centrality was also observed in DTI-derived structural networks35. Additionally, metabolic network analysis using PET data has linked contralateral connectivity differences to surgical failure77. Our findings indicate that connectivity alterations associated with surgery exert a broad influence at the level of the entire network.

Our approach has some limitations that future studies should address. First, brain networks here are based on structural connections derived from MRI and dMRI data. However, structural imaging techniques generally assume bi-directional connections, which may inaccurately represent brain connectivity in primates78. Additionally, deterministic tractography methods can yield connectivity errors due to the crossing fiber problem79. Probabilistic tractography should be preferred for more reliable connectivity networks80. To estimate structural connectivity, MRI data are mapped to networks depicting anatomical connections between a reduced number of brain areas, typically based on an atlas. However, the method of node determination may affect network estimates of brain connectivity81. Different brain atlases should therefore be evaluated to create networks with more nodes, enhancing spatial resolution53, and predictive capabilities70. Ultimately, our methodology, based on anatomical brain networks in TLE, can be extended to connectivity networks from other imaging modalities (e.g., fMRI, iEEG) and extra-temporal epilepsies51,52,82. Furthermore, studying noninvasive connectivity networks (e.g., from EEG and MEG data) could provide a promising presurgical clinical tool.

Our results should be viewed in the context of a limited-sized dataset from a previously published study36. Postoperative network changes were able to statistically differentiate between favorable and poor outcomes only within the first year after surgery. However, for this limited dataset, creating more refined patient groups, such as those experiencing relapse at 3 or 5 years, would have led to more moderate differentiation and prediction. While short-term failure may result from incomplete resection, long-term relapse is influenced by many factors, including changes in medical treatment, lifestyle, and other variables not included in the current database83. Incorporating connectivity markers from larger patient groups, along with clinical data, should improve long-term predictions67.

Computational models informed by brain imaging have provided insights into the networks involved in seizure generation and propagation43,44,45. Using patient-specific structural connectivity from DTI data, network-based simulations have predicted post-surgical outcomes through simulated resections42. Our approach offers an alternative to dynamic models for assessing the impact of disconnections and predicting seizure outcomes by performing in silico resections. If validated in larger studies, it could improve localization of epileptogenic networks, enhance surgical outcome predictions, and aid in estimating post-injury or post-intervention network changes, leading to better follow-up and prognosis.

Methods

Dataset

The dataset includes 51 patients who underwent ATLR for epilepsy and 29 healthy subjects36. Patients are divided into two groups: those who had left (n = 30) or right (n = 21) temporal lobe surgery. Patients were followed for 5 years post-surgery and classified according to the International League Against Epilepsy (ILAE) seizure outcome scale at annual intervals84. Some patients in the favorable outcome group (seizure-free) experienced relapses at 1, 2, 3, 4, or 5 years36. Due to the dataset’s limited size, we focused on the ILAE outcome at 1 year, resulting in two groups: (i) 9 patients (2 males, 7 females) with poor outcomes (ILAE 3–5) who continued to experience seizures, and (ii) 34 patients (16 males, 18 females) with favorable outcomes (ILAE 1, seizure-free), plus 8 patients (2 males, 6 females) who had auras but no seizures (ILAE 2). Due to the small sample size, we did not predict outcomes for subgroups at two, three, or 5 years. For a complete description of the patients’ demographic and clinical data, see ref. 36 (Table 1).

Table 1 Summary of demographic and clinical data of patients

Brain networks

The brain connectivity networks in this study were derived from anatomical neuroimaging data. dMRI and structural MRI were performed pre-surgery, with only MRI conducted postoperatively. Presurgery networks were constructed using pre-surgery MRI and dMRI data. Post-surgery networks were generated by removing the resected brain regions from the pre-surgery dMRI using post-surgery MRI. The connections between brain regions were then identified through the dMRI data, revealing the underlying white matter fiber pathways. Data were discretized using a brain atlas of 114 regions (nodes). Further details on data acquisition and network reconstruction are given in ref.36.

Network’s embedding in the hyperbolic space

Hyperbolic geometry provides a natural framework for embedding complex networks due to its ability to efficiently capture hierarchical and tree-like structures. In the hyperbolic disk model, nodes of a graph are mapped to points within a disk, where distances grow exponentially as they approach the boundary. The hyperbolic distance disthyp(i, j) between each pair of nodes i and j, assigned with radii (ri, rj) and angles (θi, θj) at coordinates (ri, θi) and (rj, θj) in the disk, is computed according to the hyperbolic law of cosines85:

$$\begin{array}{ll}\cosh {{\rm{dist}}}_{hyp}(i,j)=\cosh {r}_{i}\times \cosh {r}_{j}-\sinh {r}_{i}\times \sinh {r}_{j}\\\qquad\qquad\qquad\qquad\times \cos (\pi -| \pi -| {\theta }_{i}-{\theta }_{j}| | )\end{array}$$
(2)

Various techniques (e.g., Mercator86, HyperMap87, or Hydra88, among others) have been developed for projecting graphs into hyperbolic space. These methods typically project the graph onto a hyperboloid, which is then mapped onto a 2D hyperbolic space model like the Poincaré or Klein disk. In this study, we project our networks directly onto the hyperbolic disk \({{\mathbb{D}}}^{2}\) using the coalescent embedding method89, a machine learning-based approach known for its versatility and computational speed64. Starting with a binary connectivity graph, this method assigns effective edge weights using a repulsion-attraction rule that prioritizes edges with a significant role in information transmission89: \({\omega }_{ij}=\frac{{d}_{i}+{d}_{j}+{d}_{i}{d}_{j}}{1+C{N}_{ij}}\), where di is the degree of node i and CNij is the number of common neighbors between node i and j. The resulting network ωij is then projected onto the two-dimensional disk \({{\mathbb{D}}}^{2}\) using Isomap66,89, a nonlinear dimensional reduction technique. The angular coordinates of the embedded nodes are adjusted uniformly, while maintaining their angular order. Finally, the radius of each node is determined by its rank in descending node degree: \({r}_{i}=\frac{2}{\zeta }(\beta \ln i+(1-\beta )\ln N)\), i = 1, 2,. . ., N; where N denotes the number of nodes, ζ a parameter determining space curvature, and β a fading parameter. Here, we used ζ = 1 and β = 0.9. Finally, we rescale the radial coordinates to fit the embedded nodes into a unitary disk.

This method maps network’s nodes to points within the disk \({{\mathbb{D}}}^{2}\), with radial coordinates reflecting the degree of centrality of each node. Nodes closer to the center are more central, while angular coordinates represent the degree of similarity between nodes. Nodes with smaller angular distances are more interconnected or similar. This approach combines radial centrality and angular similarity, providing a compact representation of both hierarchical and relational structures in the network89.

Before comparing pre- and post-surgery brain connectivities, the embedded networks were realigned, as very often, a small perturbation may introduce a random angular offset to the nodes’ positions in the hyperbolic disk. A weak perturbation may, thus, result in two embeddings with similar connectivity between nodes but with a different structure regarding the embedding coordinates. All networks were aligned with a reference connectivity network randomly drawn from the healthy control group. The alignment was achieved by rotating the embedding data until the minimum sum of HypDisp, calculated between all the nodes of the whole reference and aligned embedded networks, is reached. To assess the effect of the reference network, we performed the outcome prediction using various reference networks from the healthy group.

Comparison of pre- and post-surgery networks

To compare the brain networks before and after surgery, and to elucidate the local impact of the surgical procedure, we employ the HypDisp score, as described in ref. 64. After aligning the two embeddings, the score assigned to each node is given by its hyperbolic displacement within the disc between the pre- and post-surgery networks. The score HypDisp(i) attributed to each node i is given by :

$${\rm{HypDisp}}(i)={{\rm{dist}}}_{hyp}\left({{\rm{Pos}}}_{{\rm{o(i)}}},{{\rm{Pos}}}_{{\rm{p(i)}}}\right)$$
(3)

where Poso(i) and Posp(i) denote the position on \({{\mathbb{D}}}^{2}\) of node i from the original and perturbed networks, respectively. \({{\rm{dist}}}_{hyp}\left(a,b\right)\) is the hyperbolic distance (Eq. (2)) between the two points a and b on the disk. The HypDisp score quantifies the local topological disruption experienced by each node following a network alteration by measuring the dispersion of its embedding coordinates between the original and perturbed configurations, thus highlighting the brain regions most impacted by resection.

Interpolation of HypDisp scores in \({{\mathbb{D}}}^{2}\)

To compare local perturbations between patient groups, we interpolated the nodes’ HypDisp(i) scores across the entire disk. The space was discretized into pixels, with the number of pixels balancing computation time and node count. Using too few pixels led to information loss, while an excessive number increased computation time without enhancing precision. Here, we used a regular grid of 80 by 80 pixels for discretization, discarding pixels outside the disk. While alternative pixel distributions (e.g., hyperbolic) were possible, they had no significant impact on statistical comparisons.

To reduce the computational burden, the value assigned to each pixel j was calculated as the weighted average of the HypDisp scores from its k closest nodes (with the pre-surgery positions) on the disk \({{\mathbb{D}}}^{2}\):

$$\begin{array}{lll}C(j)&={\left(\mathop{\sum }\limits_{i = 1}^{k}\frac{1}{{{d}_{{\rm{hyp}}}\left({\rm{Pos}}(j),{{\rm{Pos}}}_{{\rm{o}}}(i)\right)}^{\alpha }}\right)}^{-1}\\ &\times \mathop{\sum }\limits_{i=1}^{k}\frac{1}{{{d}_{{\rm{hyp}}}\left({\rm{Pos}}(j),{{\rm{Pos}}}_{{\rm{o}}}(i)\right)}^{\alpha }}{\rm{HypDisp}}(i)\end{array}$$
(4)

Weights of each neighbor are given by the inverse of their hyperbolic distance to pixel j with the power α. The more a node is distant from a pixel, the less its value contributes to the final averaged value. The two parameters k and α do not depend on the data, and were set here to k = 20 and α = 0.1. One can notice that for low values of α, the interpolation results in a very smooth map. Conversely, large values of α assign a greater influence to the closest neighbors of the interpolated pixel, resulting in a map formed by a mosaic of tiles. Similarly, low values of k yield irregularity in the interpolation, whereas an interpolation over a large number of neighbors is highly costly. Through experimentation, the value of k = 20 was found to reduce the computational burden without significantly affecting the smoothness of the interpolation.

Statistical prediction of the surgery outcome

Due to the limited database size, we used a leave-one-patient-out approach to assess our model’s predictive capabilities. This method involves removing one patient, training the model on the remaining patients to identify ROIs in \({{\mathbb{D}}}^{2}\), and testing the model on the removed patient. For each patient, the median value of the interpolated HypDisp scores across all pixels within the previously defined group-level ROI on the hyperbolic disk was used as a feature in a logistic regression model to predict the probability of a favorable surgical outcome. This process was repeated for each patient.

Prediction performance was evaluated using the area under the receiver operating characteristic curve (AUC) and balanced accuracy. Since accuracy can be biased toward the majority class (group of patients with favorable outcomes), we used balanced accuracy, which combines sensitivity and specificity, to account for the dataset imbalance.