A brain network intraoperative vulnerability evaluation method based on pruning tree cut approximation
By generating multiple random depth-first search traversal trees in a large-scale graph using the CPTC method, pre-compiling the structure index and performing incremental updates, the problem of not being able to evaluate the impact of node deletion on minimum cut in real time in existing technologies is solved, and instantaneous connectivity risk prediction and speedup by 10,000 times are achieved in brain connecto networks.
Patent Information
- Application Number
- CN202611289365.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-25
- Publication Date
- 2026-11-13
AI Technical Summary
Existing technologies cannot assess the impact of node deletion on minimum cuts in large-scale graphs in real time, especially in brain connectome networks where they cannot support immediate connectivity risk prediction during neurosurgery, and lack efficient mechanisms for incremental determination of the impact of node deletion and adaptive precision-diversity balancing strategies.
The CPTC method is adopted. By generating K random depth-first search traversal trees, pre-compiling structural indexes such as traversal order span, neighbor-ancestor segment, and optimal cut value of the repaired pruning tree, the impact of node deletion on minimum cut is quickly determined during the query phase. Incremental updates are performed by using the relative cut difference of ancestors. Finally, the cut value changes of multiple trees are aggregated to obtain a conservative upper bound.
It enables real-time assessment of the minimum cut effect between node pairs with microsecond-level latency, supports instantaneous connectivity risk prediction in neurosurgery, achieves 10,000-fold speedup and conservative upper bound guarantee, and ensures clinical safety.
Abstract
Description
Technical Field
[0001] This invention belongs to the field of graph computing and network science and technology, specifically relating to a method and system for fast approximate calculation of minimum cuts and real-time evaluation of the impact of node deletion on large-scale graphs (especially brain connectome networks).
[0002] The direct application of this invention is intraoperative navigation and real-time decision support in neurosurgery—in brain tumor / epilepsy lesion resection surgery, the surgeon can perform an immediate connectivity risk assessment of the brain region to be resected, predict the structural impact of resecting the region on key brain functional pathways, and provide feedback on high-risk bridging nodes in a visual manner.
[0003] Potential applications of this invention include, but are not limited to: communication network robustness analysis: assessing the impact of network node (router / switch) failures on end-to-end connectivity and guiding redundancy deployment; transportation network vulnerability assessment: analyzing the risk of network disruption after the failure of critical hubs; power network reliability analysis: predicting changes in power grid connectivity after substations / transmission lines are taken out of service; social network influence analysis: quantifying the degree of fragmentation of community structures after the removal of critical nodes; and software-defined networking (SDN) real-time traffic engineering: online assessment of the impact of link / node changes on network traffic.
[0004] The common characteristic of the above applications is that they require responses to "delete node" on large-scale graphs with latency ranging from microseconds to milliseconds. Pair of nodes The query "the impact of connectivity between them" can be frequently and dynamically initiated as users interact with the system. Background Technology
[0005] Prior art related to this invention
[0006] This invention relates to the intersection of two major technical directions: (A) large-scale graphs Rapid calculation of minimum cuts, and (B) simulation of the impact of intraoperative lesions in brain connectome networks.
[0007] The following is a summary categorized by direction:
[0008] Direction A: Fast computation of minimum cut in large-scale graphs (st)
[0009] A1. An acceleration method for minimum cut in communication networks (CN117811994A)
[0010] Applicant: Henan University of Technology (Inventors: Wei Wei, Hu Qiuyuan, Zhang Qinghui, Lü Lei, Cao Heling)
[0011] Application date: 2023-08-29
[0012] Technical Solution Summary: This patent models the communication network as an undirected graph, generates a traversal tree using depth-first search (DFS), prunes the DFS tree to obtain a traversal tree with small cut values and the corresponding minimum cut value of the edge set; uses fixed-length line segments on the tree path as the overall search unit, and utilizes the minimum cut value of the pruned DFS tree within the segment nodes to finally determine the minimum cut between any pair of nodes. The acceleration process of this method is independent of any subgraph and does not depend on local or global topology.
[0013] Application scenario: Reliability analysis and topology optimization of communication networks.
[0014] Limitations: (a) It only focuses on the minimum cut calculation between static node pairs and does not address the real-time evaluation of the change in cut value after node deletion; (b) It does not propose an ancestor-descendant relationship based on traversal order intervals (TOS). (c) The decision-making mechanism and path traversal efficiency still have room for optimization; (d) The concept of Neighbor-Ancestor (NAS) segment is not introduced to incrementally determine the impact range of node deletion on the cut value, and repeated recalculation is still required when it is necessary to evaluate the consequences of different node deletions; (e) There is no large-scale structured verification for specific fields such as brain networks.
[0015] Source link:
[0016] A2. A method for determining the minimum cut based on optimal pruning traversal of a tree (CN115563582A)
[0017] Applicant: Henan University of Technology (Inventors: Wei Wei, Liu Yuting, Xu Degang, Yang Weidong, Mu Yashuang)
[0018] Technical Solution Summary: This patent obtains the DFS subtree and corresponding original cut value (sum of cut edge capacities) for each node through Depth-First Search (DFS) traversal. Based on this, "optimal pruning" is performed on the subtree—pruning the node that maximizes the negative change in the difference between the inner and outer capacities. The cut value of the pruned node is equal to the original cut value plus the sum of the inner and outer capacities. The node with the smallest cut value is then found in the tree path and used as the minimum cut between node pairs. This method limits the search range for optimal pruning to the nearest 5–10 generations of descendant nodes to reduce computational overhead.
[0019] Application scenario: Connectivity assessment in large-scale graph data analysis.
[0020] Limitations: (a) It focuses on the precise determination of a single static minimum cut and does not extend to the differential evaluation of the impact of node deletion on the minimum cut; (b) The optimal pruning is only searched within the local descendant range, which may miss the globally optimal cut across subtree structures; (c) It does not provide an ensemble aggregation mechanism for multiple traversal trees, and the approximation error of a single tree cannot be controlled through ensemble methods; (d) It has not been validated for latency-sensitive applications such as intraoperative real-time decision-making.
[0021] Source link:
[0022] A3. Ultra-fast approximation of minimum cut by condensing traversaltrees in large-scale graphs (COPCUT, Ronghua Ma et al., 2025)
[0023] Source: Computers & Electrical Engineering (Elsevier, 2025)
[0024] Technical Solution Overview: This academic method uses Depth-First Search (DFS) to traverse the tree and find the optimal tree with a local minimum cut for each node. Then, it performs a graph condensation operation—pre-computing the minimum cut value for fixed-length tree path segments and creating a compressed representation. The compressed data structure can separate arbitrary node pairs, and queries take only microseconds. The preprocessing complexity is O(M) (M is the number of edges), and it can accurately determine the minimum cut for over 99.9% of node pairs on graphs with tens of millions of edges.
[0025] Application scenario: Fast connectivity query for general large-scale graphs.
[0026] Limitations: (a) It uses graph condensation instead of pruning, which alters the original graph topology and is detrimental to incremental node deletion analysis; (b) It lacks a mechanism for evaluating cut value changes in node deletion scenarios; (c) It does not introduce a dual-mode approach. (d) Adaptive edge prioritization strategy to balance structural diversity and approximate accuracy; (c) Not clinically validated on biomedical networks such as the brain connectome.
[0027] Source link:
[0028] A4. A Fast Method for Finding the Minimum Cut Set in Microgrids Based on Breadth-First Search (CN106844932A)
[0029] Technical solution summary: This patent uses breadth-first search (BFS) instead of DFS. By dividing the node levels, constructing the level matrix and root-leaf matrix, and using "leaf nodes are not completely contained" as the minimization test condition, it skips the traditional steps of "first finding the minimum path set and then inverting" and directly obtains the minimum cut set.
[0030] Application scenario: Microgrid reliability assessment.
[0031] Limitations: (a) BFS-based search strategies cannot utilize the property that cuts of subtrees in DFS trees form bondcuts, and cut set enumeration efficiency is lower than that of DFS methods; (b) Only about 2.8 times speedup is achieved on 12-node networks, which is far from sufficient to handle brain connecto networks with millions of nodes; (c) It does not involve node deletion impact assessment and real-time query scenarios at all.
[0032] Source link:
[0033] Direction B: Brain connectome network analysis and intraoperative assessment
[0034] B1. Real-Time Functional Lesion Simulation in Connectomics: RapidSensitivity Analysis of Neural Pathways via Traversal Tree-Correlated Cuts (Zeming Li, 2026)
[0035] Source: Interdisciplinary Sciences: Computational Life Sciences (Springer, 2026)
[0036] Technical Solution Summary: This academic work is the first to introduce traversal tree-related cuts into the simulation of functional lesions in brain connectomes. By pre-compiling diverse traversal trees and their corresponding cut patterns, representative cuts are retrieved along the tree path during queries, achieving microsecond-level minimum cut approximation; it also supports concurrent evaluation of connectivity state changes before and after node deletion. This achieves approximately a thousand-fold speedup on brain networks with millions of nodes.
[0037] Application scenario: Risk assessment of lesion resection connectivity in preoperative planning of neurosurgery.
[0038] Limitations: (a) As an academic paper, it does not form a systematic patent protection scheme, and key algorithm details (such as TOS interval determination, NAS incremental positioning, RPT repair pruning, and sp dual-mode strategy) are not solidified in the form of claims; (b) The parameter configuration strategy of the number of iterations K and the ratio of sp=0 / 1 in the preprocessing stage has not formed an industrially adaptable mechanism; (c) It does not clearly give the path from "single node deletion effect" to "multi-node cumulative deletion".
[0039] Source link:
[0040] B2. Connectotomy: A method for predicting cognitive function in brain glioma based on network disconnection index modeling of resection range (Herbet et al., 2024)
[0041] Source: Brain (Oxford Academic, 2024)
[0042] Technical Solution Overview: This study uses machine learning to replace the traditional voxel-level lesion-symptom mapping, modeling surgical resection in the "connectotomy space" rather than the anatomical space—introducing the concept of "connectotomy," and quantifying the impact of resection on the structural connectotomy through network disconnection index, combining structural-functional phenotype and neural plasticity as key predictors.
[0043] Application scenario: Determining the maximum safe resection range before surgery for gliomas.
[0044] Limitations: (a) Machine learning-based predictions rely on a large amount of training data and are offline batch analysis rather than real-time querying; (b) The calculation of the network disconnection index still relies on traditional graph theory metrics (such as global efficiency and betweenness centrality) and does not use tree-integrated cutting approximation to accelerate the process; (c) A single prediction cannot be dynamically updated during the operation as the surgery progresses.
[0045] Source link:
[0046] shortcomings or disadvantages of existing technology
[0047] Based on the above analysis, the existing technology has the following main shortcomings:
[0048] Disadvantage 1: Inability to evaluate the impact of node deletion on minimum cut in real time. Existing accelerated minimum cut methods (CN117811994A, CN115563582A, COPCUT) can only calculate the minimum cut value between pairs of nodes in a static graph. When it is necessary to evaluate the change in connectivity after deleting a node, the algorithm must be rerun from scratch. Repeatedly evaluating the impact of deleting different nodes in large-scale graphs will lead to an unacceptable accumulation of computational complexity.
[0049] Disadvantage 2: Lack of an efficient mechanism for determining the incremental impact of node deletion. Existing methods do not utilize the structural properties of DFS traversal of the tree to quickly determine whether deleting node x will affect the cut value between st, leading to a large amount of unnecessary recalculation. There is also a lack of an incremental impact localization mechanism based on the intersection analysis of neighbor-ancestor segments (NAS) and tree path segments.
[0050] Disadvantage 3: The traversal tree ensemble lacks an adaptive precision-diversity balance strategy. The randomization strategy for edge traversal order in CN117811994A and CN115563582A is simplistic and does not distinguish between the "structural diversity exploration stage" and the "precision optimization stage". As a result, the tree ensemble cannot simultaneously cover non-bottleneck paths and accurately approximate key bottleneck cuts within a limited number of iterations.
[0051] Disadvantage 4: The system is not systematically designed for the high-value clinical scenario of real-time intraoperative decision-making in brain connectomics. Existing general graph cut acceleration methods have not been validated in the field of brain networks; existing brain connectomics analysis methods (such as Connectotomy) rely on offline batch computation, which cannot dynamically update connectivity risk assessments during surgery as surgical instruments are manipulated. Intraoperative requirements include: preprocessing can be completed offline, single queries are in the microsecond range, and results are conservative (upper bound) to ensure patient safety.
[0052] Disadvantage 5: The algorithm components in the preprocessing and query stages do not form an organic closed loop. From DFS tree generation and subtree cut value pre-computation to path traversal and ensemble aggregation during query, existing methods lack a complete technical chain from "rapid determination of traversal order span (TOS)" to "repaired pruning tree (RPT) approximation" and then to "cross-tree ensemble aggregation".
[0053] Purpose of the invention
[0054] The purpose of this invention is to overcome the shortcomings of the prior art and provide a method and system that can evaluate the minimum cut effect of deleting any node on any pair of nodes in real time with microsecond latency on large-scale graphs (especially brain connectome networks with millions of nodes and hundreds of millions of edges), so as to support the real-time connectivity risk prediction of lesion resection during neurosurgery.
[0055] Overview of the technical features of the present invention
[0056] The core concept of this invention is CPTC (Connection Set Evaluation Method Based on Pruned Tree Integrated Cut Approximation) – in the preprocessing stage, K random depth-first search (DFS) traversal trees are generated, and structural indexes such as traversal order span (TOS), neighbor-ancestor segment (NAS), and repaired pruning tree (RPT) optimal cut value are pre-computed for each tree; in the query stage, given a node pair (s, t) and the node to be deleted x, the pre-computed RPT cut value is retrieved only along the st tree path. The TOS interval is used to quickly determine whether x affects the cut on that path. If it does, incremental updates are performed using NAS and ancestor relative cut difference (cda). Finally, the cut value changes of the K trees are aggregated to obtain the global value. A conservative upper bound estimate of the minimum reduction. Its main technical features include:
[0057] Feature 1 (Tree Integration Framework): K random DFS traversal trees are pre-computed independently, and cross-tree aggregation is performed during queries to reduce the approximation error of a single tree;
[0058] Feature 2 (TOS Fast Determination): Utilizing the continuous interval property of DFS preorder traversal, O(1) time ancestor-descendant relationship and deepest common ancestor (LCA) determination is achieved;
[0059] Feature 3 (NAS Incremental Localization): By detecting the intersection of the neighbor-ancestor segment and the st tree path segment, it is determined in O(1) time whether the deletion of a node affects the current cut value estimation;
[0060] Feature 4 (RPT Pruning Approximation): Independently evaluate the impact of subtree removal on the cut value for each subtree, and obtain a better upper bound for the cut value with minimal additional cost;
[0061] Feature 5 (CDA) Incremental Injection: Pre-compute the ancestor relative cut difference array, and only the head of the array needs to be read during the query to obtain the Δ contribution of the deletion effect;
[0062] Feature 6 (sp dual-mode strategy): Adaptive switching between the structure scanning stage (sp=0) and the accuracy optimization stage (sp=1) to balance diversity and accuracy;
[0063] Feature 7 (Clinical-grade brain network validation): Achieved 10,000-fold speedup and sub-1% error on 105 real human brain connectomes. Summary of the Invention
[0064] 1.1.1 Technical problems to be solved
[0065] The technical problem to be solved by this invention is: how to evaluate the impact of deleting any node on the minimum cut value between any pair of nodes in real time with microsecond latency on large-scale graphs (especially brain connectome networks with hundreds of thousands to millions of nodes and tens of millions to hundreds of millions of edges), thereby supporting the instantaneous connectivity risk prediction of lesion resection during neurosurgery.
[0066] Specifically, it includes the following sub-issues:
[0067] (1) Incremental evaluation problem of the impact of node deletion: How to obtain the change Δ of the minimum cut value of st after deleting node x by querying the pre-computed data structure without re-performing the maximum flow calculation.
[0068] (2) Problem of quickly determining the scope of influence: How to utilize the structural properties of a traversal tree to determine the scope of influence? Determine within time whether deleting node x will affect the cut value related to path st, avoiding blind recalculation of all possible (s,t,x) triples.
[0069] (3) The problem of precision-diversity adaptive balance of tree ensemble: How to make tree ensemble fully cover the diverse cut structures and accurately approximate the upper bound of the key bottleneck cut through an adaptive edge traversal priority strategy during the tree generation process of a finite number of DFS traversals.
[0070] (4) Systematic solutions for real-time intraoperative decision-making: How to build a complete algorithm pipeline from preprocessing (offline) to query (online) so that intraoperative lesion simulation of brain connectoms can achieve a speedup of 10,000 times that of traditional methods on standard hardware, while ensuring conservative results (approximation of the upper bound) to ensure clinical safety.
[0071] Technical solutions adopted to solve technical problems
[0072] Overall architecture of the solution
[0073] This invention proposes CPTC (a connection set evaluation method based on pruning tree integrated cut approximation), which transforms the traditional maximum flow minimum cut method... Level online computing transformed The system performs tree path retrieval operations at the level of [level missing]. It consists of two main subsystems: a preprocessing stage (offline) and a query stage (online / intraoperative).
[0074] Symbol definition
[0076] (1) Graph structure symbols
[0077] G=(V,E): An undirected connected graph, where V is the set of nodes and E is the set of edges.
[0078] The source and target nodes whose connectivity needs to be evaluated.
[0079] Candidate nodes (lesions) whose impact on deletion needs to be evaluated.
[0080] The deepest common ancestor (LCA) of s and t
[0081] ec(u,v): Non-negative weight / capacity of edge e=(u,v)
[0082] (2) DFS traversal tree structure symbol
[0083] Total number of generation cycles for traversing a tree
[0084] Node u in Parent node pointer in the tree
[0085] Node u in Parent node pointer in the tree
[0086] The traversal index of node u (preorder, root is 1).
[0087] The upper bound of the traversal order of the subtree rooted at u.
[0088] (3) Symbols related to cut value and pruning
[0089] : root of u The edge weights of the bond cut in the subtree
[0090] The cut value of node u after removing the subtree of the optimal subtree (optimal pruning cut value).
[0091] : The change in the cut value of the parent node of u after removing a subtree of u's subtree (a negative value indicates a decrease in the cut value).
[0092] The cumulative impact of deleting a predecessor node on the cut value of the current node.
[0093] mcs(u, v): Minimum cut value across iterations for edge (u, v)
[0094] (4) Neighbor-ancestor segments and incremental update symbols
[0095] arax: An array of neighbors and ancestors of node x (sorted in descending order of depth)
[0096] : An array of relative cut differences between the ancestors of node x, recording the reduction in cut values of each neighboring ancestor when x is deleted.
[0097] df: The value of the cda element corresponding to the current node, i.e., the reduction in cut value caused by deleting x.
[0098] ison: Flag: 1 indicates that the region affected by deletion x has been entered, and the calculation of the cut value after deletion has begun.
[0099] (5) Selection mode and priority symbol
[0100] sp: Selection mode for edge traversal priority: 0 indicates randomization based on edge capacity, 1 indicates randomization based on minimum cut value across rounds.
[0101] t(u, v): Adaptive traversal priority of edge (u, v)
[0102] rnd(a,b): A uniform random sampling function within the interval [a, b).
[0103] 1.1.1.1 Core Formula
[0104] Formula 1 — Edge traversal priority (sp=0, structural diversity scan):
[0105]
[0106] When sp=0, the edge traversal priority is randomly sampled within the range of [0, original edge capacity), which makes the topological structure of the DFS tree diverse and avoids overfitting to a specific cut structure.
[0107] Formula 2 — Edge traversal priority (sp=1, precision optimization):
[0108]
[0109] When sp=1, the edge traversal priority is randomly sampled within the range of [0, minimum cut value across rounds), guiding the DFS tree to focus on known key bottleneck edges and tightening the approximate upper bound.
[0110] Formula 3 — Recursive aggregation of subtree cut values:
[0111] exist During backtracking, aggregation proceeds from bottom to top, merging the capacity contribution of visited adjacent edges with the cut value of the child node's subtree:
[0112]
[0113] Where child(n) represents the set of direct children of n in the DFS tree, and neigh(n) represents the set of adjacent nodes of n in the original graph. This formula correctly incorporates the capacity contribution of back edges into the subtree cut value.
[0114] Formula 4 — Optimal Pruning Cut Value (RPT Core):
[0115]
[0116] in This is the change in cut value after removing the subtree containing child node u. (Function) Ensure that removing the subtree of this subtree reduces the cut value of n only when ( Only when the cut values of different subtrees in a DFS tree are removed are they included in the optimal strategy. Since there are no edges connecting the subtrees of different subtrees in a DFS tree, the cut value effects of removing them are independent of each other, thus avoiding combinatorial optimization explosion.
[0117] Formula 5 — Ancestor-Descendant O(1) Determination:
[0118] Utilizing the property that DFS preorder traversal makes the node traversal indexes of the subtree form a continuous interval:
[0119] like and If node y is an ancestor of node x in the DFS tree, then node y is an ancestor of node x.
[0120] By transforming the complex tree path traversal determination into two integer comparisons, the time overhead of st path positioning is fundamentally reduced.
[0121] Formula 6 — Determining the intersection of NAS and tree path segments:
[0122] Let the NAS (neighbor-ancestor segment) of node x be [x, y), where y is the smallest ancestor neighbor of x (excluding y). Let the path segment of the st related tree be [a, b), where b is an ancestor of a (excluding b).
[0123] like and Therefore, deleting x will necessarily affect at least one node on the path [a,b). Cut value.
[0124] This decision transforms the "whether recalculation is needed" from point-by-point verification into a two-condition quick check, skipping directly when they do not intersect—deleting x does not affect the current tree's cut value evaluation of the s, t) pair.
[0125] Formula 7 — K-tree integration aggregation:
[0126]
[0127] in For the original minimum cut value estimate of the k-th tree, Estimate the minimum cut value of the k-th tree after deleting x. Take the minimum of each cut value and then calculate the difference to ensure the conservatism of the result. This is an upper bound estimate of the true minimum cut reduction, meaning the actual connectivity loss will not exceed the system estimate, thus ensuring clinical safety.
[0128] 1.1.1.2 Module Function Description
[0129] (A) Graph Input and Parsing Module: Receives the original graph G=(V,E), performs standardization processing on the graph data, and randomly selects the root node to start traversal.
[0130] (B) K-round DFS traversal tree generation module: Performs K independent depth-first traversals, generating a DFS tree each time. In each round of traversal, the adaptive edge traversal priority tp is calculated according to Formula 1 or Formula 2 based on the current selection mode (sp=0 or sp=1), and adjacent edges are traversed in descending order of priority. This module is the core source of tree integration diversity and accuracy.
[0131] (C) Structure Index Pre-computation Module: For each DFS tree, calculate and store:
[0132] (1) Traversal Order Span (TOS): [tod,trd] interval, which can determine the ancestor-descendant relationship in O(1) time based on its inclusion relationship; Neighbor-Ancestor Segment (NAS): [x,y) tree path segment, used to incrementally determine the scope of deletion impact;
[0133] (2) The cut value (cs) of the subtree and the optimal pruning cut value (ocs): calculated according to Formula 3 and Formula 4 respectively;
[0134] (3) Ancestor relative cut difference array (cda): pre-calculate the reduction in cut value for each neighbor ancestor after deleting x;
[0135] (4) Minimum cut value across rounds (mcs): Records the cut value of the smallest subtree corresponding to each edge in the completed traversal.
[0136] (D) Cross-round cut value maintenance module: At the end of each round of DFS traversal, update the mcs value (take the smaller of the current round's cs value and the historical mcs value) to provide a reference benchmark for edge priority calculation in the next round of sp=1 mode.
[0137] (E) Query request receiving module: Receives query triple (s, t, x), where s and t are two brain region nodes whose connectivity is to be evaluated, and x is the lesion node to be resected.
[0138] (F) Ancestor-Descendant and LCA Fast Determination Module (TOS): Utilizing the TOS interval inclusion relationship in Formula 5, this module determines whether s and t have an ancestor-descendant relationship in O(1) time and calculates their deepest common ancestor (LCA) w. This module replaces the traditional O(depth) level path traversal.
[0139] (G) Node deletion impact range determination module ( For a given ST-tree path segment, use Formula 6 to check if the NAS of node x intersects with the path segment. If they intersect, proceed to the recalculation stage; otherwise, skip the recalculation—avoiding blind recalculation.
[0140] (H) Cut value retrieval and incremental update module: along For each node on the tree path, traverse the direction and retrieve its pre-computed OCS value as the base cut value, and then determine whether the influence starting point of x has been crossed ( ) Decide whether to enable The cut value calculation channel after deletion. Within the affected interval, obtain the cut value reduction amount df corresponding to the current node from the cda array, and calculate the cut value after deleting x. .
[0141] (I) Tree integration aggregation module: according to formula 7 The results of the cut value changes of each tree are integrated and aggregated to obtain the global result. .
[0142] 1.1.2 The beneficial effects of the technical solution compared to existing technologies
[0143] (1) Real-time performance – ten thousand times faster. This invention will accelerate the traditional... Online maximum flow calculation transformed into Hierarchical tree path retrieval achieves microsecond-level single query speeds on brain connectomes with millions of nodes and hundreds of millions of edges (computation time ratio). This makes intraoperative real-time connectivity assessment possible for the first time (which takes about 1 / 15,000 of the time of traditional methods).
[0144] (2) Incremental evaluation capability. The unique NAS incremental impact localization mechanism and CDA cut value difference data structure of this invention enable the system to perform incremental evaluation when deleting nodes. It only updates the affected path segments locally, avoiding the overhead of rerunning the maximum flow algorithm from scratch. This feature is not available in existing general minimum cut acceleration methods (CN117811994A, CN115563582A, COPCUT).
[0145] (3) Conservative upper bound guarantee. By using the cross-tree minimum value strategy in Formula 7, the change in the output cut value is guaranteed to be a conservative upper bound of the actual minimum cut reduction amount - that is, the actual connectivity loss will not exceed the system estimate, thus avoiding the clinical safety hazard of "underestimating the risk" in principle.
[0146] (4) Dual-mode adaptive precision-diversity balance. The sp=0 mode is based on the randomization of the original edge capacity (Formula 1) to ensure that the tree integration covers diverse non-bottleneck cut structures; the sp=1 mode is based on the minimum cut value mcs across rounds to guide the tree to focus on key bottleneck edges (Formula 2) to tighten the upper bound. By adjusting the ratio of the two stages in K, different graph topologies can be adapted without changing the algorithm framework.
[0147] (5) Determination of O(1) level key relationships. Based on the property of continuous intervals of DFS tree traversal index (Formula 5),
[0148] The ancestor-descendant relationship determination and deepest common ancestor search are reduced from O(depth) to O(1). This micro-speed improvement has a significant cumulative effect on the macro-level scenario of K trees × multiple path traversals.
[0149] (6) Clinical-level validation. Unlike common methods that only validate on artificial graphs, this invention has been systematically validated on 105 real human brain connectome datasets. The error is actually smaller under complex real-world network topologies (brain networks). As low as 0.03%, When the value is 50, the method is proven to have better practical performance in the target application domain.
[0150] 1.1.2.1 Key Technical Parameters
[0151] The key technical parameters involved in this invention include the number of traversal tree generation rounds (K), the edge priority selection mode (sp), and the high-risk bridging node determination threshold Δ. Here, (K) represents the total number of generation rounds of the depth-first search (DFS) traversal tree, with a value ranging from 10 to 75 rounds; in brain network applications, to balance computational efficiency and evaluation accuracy, it is recommended to set (K) to 50. (sp) represents the edge priority selection mode, with a value of 0 or 1. When the total number of generation rounds (K=50), it is recommended to use the (sp=0) mode for the first 35 rounds to improve the diversity of the traversal tree structure; and the (sp=1) mode for the last 15 rounds to further improve the minimum cut approximation accuracy. The threshold Δ is used to determine whether the node to be deleted is a high-risk bridging node; its specific value can be set according to clinical application needs; when the evaluation result is below this threshold, it indicates that removing the node will significantly weaken the connectivity between the source node (s) and the target node (t). Detailed Implementation
[0152] Application scenarios
[0153] A typical application of this invention is real-time connectivity risk assessment during neurosurgical brain tumor resection. During the procedure, surgeons must make a dynamic trade-off between removing as much pathological tissue as possible and preserving key brain functional pathways to the greatest extent possible. Traditional methods rely on preoperative static imaging and surgeon experience, failing to reassess the connectivity risk at each location as the surgical instruments move.
[0154] This invention enables surgeons to see in real time within the navigation system, through preoperative offline preprocessing and intraoperative online microsecond-level query, "how much impact will resection at this location have on the structural connectivity between the language area and the motor area."
[0155] Implementation steps
[0156] Step 1: Preoperative Data Acquisition and Graph Construction
[0157] Based on the patient's preoperative diffusion tensor imaging ( ) and functional magnetic resonance imaging (fMRI) Using existing fiber tracing and brain region segmentation tools (such as FreeSurfer and MRtrix3), we reconstruct individualized brain structural connectomes—a weighted undirected graph—where:
[0158] Nodes: Corresponding to cortical / subcortical brain regions segmented by Automated Anatomical Labelling (AAL) or FreeSurfer, approximately 200–1000 macroscopic brain regions (up to 100,000–1,000,000 nodes if voxel-based fine segmentation is used).
[0159] Edge: The white matter fiber bundles reconstructed between corresponding nodes. The edge weight is the number of fiber bundles (streamline number) or the average anisotropy fraction (FA value) along the fiber bundle.
[0160] Step 2: Preoperative preparation (performed offline)
[0161] The system receives individualized connectomes of patients (taking the size of human brain connectomes from 105 publicly available databases as an example: 178,000–976,000 nodes, 16 million–268 million edges).
[0162] Configuration parameters = 50 rounds of traversal:
[0163] For the first 35 rounds, sp=0: based on the edge capacity ec, the edge traversal priority is randomized (Formula 1), and the root node of DFS is randomly selected in each round to generate traversal trees with diverse structures;
[0164] In the last 15 rounds, sp=1: based on the randomized edge traversal priority of the minimum cut value across rounds (Formula 2), the guiding tree focuses on the key bottleneck edges.
[0165] Execute sequentially in each round:
[0166] 1. Randomly select the root and initialize the global traversal counter gTOD=1;
[0167] 2. Recursively execute prepare(n) process: Traverse adjacent edges in descending order of tp, directly update cs and dc for visited nodes (back edges), and recursively call and then aggregate for unvisited nodes;
[0168] 3. Calculate tod, trd (TOS interval), ara (neighbor-ancestor array), cda (cumulative inversion array of cut difference values), and ocs (optimal pruning cut value, formula 4);
[0169] Update the mcs (minimum cut across rounds) to provide a baseline for the next round with sp=1.
[0170] 4. After preprocessing, all structure indexes (TOS, NAS, ocs, cda, mcs) are stored in memory for intraoperative querying. On a standard workstation (such as ThinkStation P410, CentOS 7.0), 50 rounds of preprocessing take approximately 6.57 times longer (PR = 6.57) than a single traditional maximum flow full graph cut value calculation, or about 10–15 seconds.
[0171] Step 3: Intraoperative interactive query (executed online)
[0172] The surgeon uses the navigation system to move surgical instruments to the candidate resection area and the corresponding brain region nodes. Automatically identified. The system initiates connectivity assessments of key functional brain regions adjacent to it (e.g., Broca's area for language = s, primary motor cortex = t).
[0173] Query process:
[0174] 1. Standardize the depth order of s and t (to ensure) );
[0175] 2. Execute getBothAns(s,t) on each tree: using the TOS interval inclusion relationship (Formula 5) to... Find the deepest common ancestor within a time frame ;
[0176] 3. If w == t (t is an ancestor of s), call calBothCut only along the path [s, t); otherwise, call calBothCut along two paths [s, w) and [t, w), and take the smaller value.
[0177] 4. Core logic: Traverse along the path, with Based on the cut value, when crossing The starting point of the impact ( ,Right now When the LCA depth is reached, from Get the current node from the array Value, calculate deletion The cut value after Maintain the cumulative impact of preceding nodes. ;
[0178] 5. Aggregate according to Formula 7 The result for each tree is: Global Δ = Original minimum cut estimate - Deletion The minimum cut estimate after that.
[0179] single The query time is approximately 1 / 15,000 of that of the traditional maximum flow method (Goldberg benchmark implementation) (CR = 0.67 × 10⁻). 4 ), that is, microsecond level.
[0180] Step 4: Risk Assessment and Visual Feedback
[0181] If Δ exceeds a preset clinical threshold (e.g., a decrease in baseline connectivity of more than 20%), the system will... High-risk bridging nodes are marked with a red highlight and warning in the navigation interface. Surgeons can dynamically adjust the surgical path based on this feedback, bypassing high-risk areas or switching to a subtotal resection approach. If Δ is below a threshold, it is marked in green, indicating that resection at that location has a manageable impact on core functional pathways.
[0182] 1.1.3 Technical Effect Data
[0183] The following data are derived from experimental validation using 105 real human brain connectomes (from the publicly available scientific database nr2025): As the number of trees traversed in the depth-first search (K) increases, the preprocessing time ratio (PR) of the algorithm gradually increases, while the average error rate (ER) decreases significantly. When K=10, the preprocessing time ratio is 2.19, ranging from 1.90 to 3.15; the computation time ratio (CR) is ( The average error rate was 5.09%. When K=25, the preprocessing time ratio increased to 3.27, ranging from 2.85 to 4.75; the computation time ratio was ( The average error rate decreased to 1.54%. When K=50, the preprocessing time ratio was 6.57, ranging from 5.70 to 9.46; the computation time ratio was ( The average error rate was further reduced to 0.03%. When K=75, the preprocessing time ratio increased to 9.80, ranging from 8.55 to 14.3; the computation time ratio was ( The average error rate remained at 0.03%. This shows that increasing the number of traversed trees can significantly improve the computational accuracy, but it also increases the preprocessing time and the computational cost per query. When (K) increases from 50 to 75, the average error rate does not decrease further, indicating that the algorithm accuracy has basically reached a stable state when (K=50).
[0184] Key findings:
[0185] a. Speed: With the recommended configuration of K=50, single query speed is increased by more than 10,000 times (CR = 0.67 × 10⁻). 4 );
[0186] b. Accuracy: When K increases from 10 to 50, the error drops sharply from 5.09% to 0.03%; when K continues to increase to 75, the error stabilizes at 0.03%, indicating that K=50 has reached the accuracy saturation point;
[0187] c. Advantages of brain networks: The error on real human brain connectomes (0.03%) is significantly lower than that on artificial random graphs (scale-independent networks approximately 0.13%, Erdos-Renyi approximately 0.11%, unit disk graphs approximately 0.13%), indicating that the hierarchical structure of real brain networks is beneficial for the accurate approximation of tree-based cut approximation.
[0188] d.sp ratio effect: With a fixed total K=50, when the number of rounds of sp=1 increases from 5 to 15, the ER decreases from 0.07% to 0.03%. Further increasing to 20 does not show significant improvement, indicating that the ratio of 15 / 50 is the optimal balance point.
[0189] 1.1.4 Parameter Setting Example
[0190] In brain network applications, it is recommended to set the total number of generation rounds (K) of the depth-first search traversal tree to 50. At this point, the approximate accuracy of the algorithm is essentially saturated, achieving a good balance between computational efficiency and evaluation accuracy. In the 50 traversals, the first 35 rounds use a (sp=0) mode for structural diversity scanning to generate traversal trees with different topologies and fully cover non-bottleneck paths. The last 15 rounds use a (sp=1) mode for accuracy optimization, making the traversal process more focused on key bottleneck edges, thereby further tightening the approximate upper bound of the minimum cut. The root node of each depth-first search round is randomly selected to ensure topological diversity among multiple traversal trees. The risk assessment threshold (\Delta) should be calibrated according to the specific clinical scenario and actual needs. Typically, when node resection leads to a decrease in connectivity of related functional pathways exceeding 20% compared to the baseline, the system classifies it as a high-risk situation and issues a warning.
Claims
1. A real-time evaluation method for the impact of graph node deletion based on pruning tree ensemble cut approximation, characterized in that, Includes the following steps: Preprocessing stage: S1. Obtain an undirected connected graph G = (V, E), where V is the set of nodes and E is the set of edges with non-negative weights; S2. Perform K rounds of random depth-first search (DFS) traversal to generate K DFS traversal trees; in each round of traversal, calculate the adaptive traversal priority tp of each edge according to the current selection mode sp, and traverse the adjacent edges in descending order of priority to determine the topology of the DFS tree; S3. For each DFS tree, pre-compute and store the following structure indices: traversal order span TOS, subtree cut value cs and optimal pruning cut value ocs, neighbor-ancestor segment NAS, and ancestor relative cut difference array cda. S4. At the end of each round of traversal, update the minimum cut value mcs across rounds as the basis for calculating the edge priority of the sp=1 mode in the next round; Query phase: S5. Receive the query triple (s, t, x), where s and t are two nodes whose connectivity is to be evaluated, and x is a candidate node whose deletion impact is to be evaluated; S6. For each DFS tree, use the TOS interval inclusion relation to determine the ancestor-descendant relationship between s and t in O(1) time and obtain the deepest common ancestor w; S7. Determine the path segments of the st tree: if w = t, then the path segment is [s, t); otherwise, the path segments are [s, w) and [t, w). S8. Check if the NAS [x, y) of node x intersects with the path segment of the st tree: if the deepest common ancestor of x and the starting point of the path segment falls within the path segment and y also falls within the path segment, then it is determined that deleting x will affect the cut value on the path, and proceed to S9; otherwise, skip the current tree. S9. Traverse each node along the affected path segment, retrieve its pre-calculated ocs value as the base cut value cs, and after entering the x deletion affected interval, obtain the cut value reduction df from the cda array, and calculate the cut value xcs after deleting x; S10. Aggregate the cut value changes of K trees: Take the difference between the global minimum value of cs of each tree and the global minimum value of xcs of each tree to obtain a conservative upper bound estimate Δ of the reduction in the minimum cut value of st caused by node deletion.
2. A real-time evaluation system for the impact of graph node deletion based on pruning tree ensemble cut approximation, characterized in that, include: The preprocessing subsystem includes: The graph input and parsing module is used to receive undirected connected graphs and perform normalization processing. The K-round DFS traversal tree generation module is used to perform K random depth-first traversals based on adaptive edge traversal priority tp to generate K DFS traversal trees. The structure index pre-computation module is used to compute and store the TOS, cs, ocs, NAS, and cda structure indexes for each DFS tree; A cross-round cut value maintenance module is used to update the mcs value at the end of each round of traversal; The query subsystem includes: The query request receiving module is used to receive query triples (s, t, x); An ancestor-descendant and LCA fast determination module, used to determine the relationship between s and t and obtain the deepest common ancestor w in O(1) time using the TOS interval inclusion relationship; The node deletion impact range determination module is used to determine the deletion impact range by checking whether the NAS of node x intersects with the st tree path segment; The RPT cut value retrieval and incremental update module is used to traverse along the affected path segments, retrieve the pre-calculated cut values, and use the cda array to perform incremental calculation of the cut values after deletion. The K-tree integration aggregation module is used to aggregate the cut value changes of K trees and output the global st minimum cut reduction Δ.
3. The method according to claim 1 or the system according to claim 2, characterized in that, The adaptive edge traversal priority tp is calculated as follows: When the selection mode sp = 0, tp(u,v) = rnd(0, ec(u,v)), where ec(u,v) is the original capacity of edge (u, v), and rnd(a, b) is the uniform random sampling function in the interval [a, b). When the selection mode sp = 1, tp(u,v) = rnd(0, mcs(u,v)), where mcs(u,v) is the cut value of the smallest subtree corresponding to edge (u, v) in the completed traversal rounds.
4. The method according to claim 1, characterized in that, In step S2, the K rounds of traversal are divided into two stages: the first stage uses the sp = 0 mode for structural diversity scanning, and the second stage uses the sp = 1 mode for accuracy optimization. The ratio of rounds in the two stages is configured according to the topological characteristics of the target graph.
5. The method according to claim 1, characterized in that, The traversal span TOS mentioned in step S3 is represented as the interval [tod, trd], where tod is the access sequence number of the node in the DFS preorder traversal, and trd is the maximum traversal sequence number in the subtree of that node; the O(1) time rule for determining the ancestor-descendant relationship mentioned in step S6 is: if and If node y is an ancestor of node x in the DFS tree, then node y is an ancestor of node x.
6. The method according to claim 1, characterized in that, The optimal pruning cut value ocs mentioned in step S3 is calculated as follows: in Let be the sum of edge weights of the key cuts in the DFS subtree rooted at node n, and let child(n) be the set of direct children of n in the DFS tree. The function is the change in the cut value of n after removing the subtree of child node u. Ensure that removing the subtree of this subtree only reduces the cut value. Only when the optimal strategy is adopted will it be included.
7. The method according to claim 6, characterized in that, Calculations are performed through bottom-up recursive aggregation: Where neigh(n) is the set of adjacent nodes of n in the original graph. This expression indicates that u is a visited node (back edge), and it correctly incorporates the capacity contribution of the back edge into the cut value of the subtree.
8. The method according to claim 1, characterized in that, The neighbor-ancestor segment NAS mentioned in step S3 is represented as [x, y), which is a DFS tree path segment from node x to its neighbor ancestor y (excluding y) with the smallest depth. The intersection determination rule mentioned in step S8 is: if the deepest common ancestor of x and the starting point of the path segment falls within the path segment, and y also falls within the path segment, then NAS intersects with the path segment.
9. The method according to claim 1, characterized in that, The incremental calculation method for the cut value xcs after deletion in step S9 is as follows: During traversal along the path segment, maintain the cumulative impact ldc of the deletion of a previous node on the cut value of the current node. For each node a on the path: Basic cut value ; Once the region affected by the deletion of node x is entered, the reduction in cut value df corresponding to the current node is obtained from the head of the cda array, and then the calculation is performed. ; If the current node a equals The header element will then pop up. and The head is used to update the df value of the next node.
10. The method according to claim 1, characterized in that, The ancestor relative cut difference value array mentioned in step S3 The construction method is as follows: in the preprocessing stage, the nodes are... Each neighbor ancestor is stored in an array in descending order of depth. Correspondingly, the capacity of each associated edge is inserted sequentially. The head, then Update it to the cumulative sum and inversion of its original array so that it can be directly read during queries. The header element gets the current node's value.
Citation Information
Patent Citations
Method for quickly solving minimum cut sets of micro-grids on basis of breadth first search
CN106844932A
Multi-scale assessment method, device and system for geological risk along oil and gas pipeline
CN115563582A
Method for accelerating minimum cut in communication network
CN117811994A
