Method and system for whole brain fiber bundle imaging segmentation based on physically guided cascaded hybrid expert network
By using a physical-guided cascaded hybrid expert network approach, the problems of topological ambiguity and long-tailed distribution in whole-brain fiber tract imaging were solved, achieving high-precision whole-brain fiber tract segmentation and improving the robustness and generalization ability of the model, especially maintaining high segmentation accuracy under pathological conditions.
Patent Information
- Application Number
- CN202611162827.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-03
- Publication Date
- 2026-11-24
AI Technical Summary
Existing whole-brain fiber tract imaging methods suffer from high computational costs, poor robustness, severe topological ambiguity, severe inter-class feature interference, and insufficient model generalization ability when faced with complex anatomical deformities and pathological conditions. In particular, they are difficult to achieve high-precision segmentation under extreme long-tailed distributions.
A method based on Physically Guided Cascaded Hybrid Expert Networks (CasFOD) is employed to achieve high-precision segmentation of whole-brain fiber tracts through multimodal feature fusion, dynamic graph construction, cascaded pre-screening, and hybrid expert routing. This method transforms streamlines into 3D point clouds, dynamically constructs inter-fiber adjacency graphs using physically guided hybrid expert routing, and employs focal binary cross-entropy loss and physically guided alignment loss to hierarchically classify 78 standard functional bundles, resolving topological ambiguity and long-tail distribution issues.
It significantly improves the segmentation accuracy of whole brain fiber tracts, especially achieving an overall macro-average F1 score of 0.5920 on the HCP dataset, and has excellent generalization ability when facing pathological anatomical deformities, effectively identifying 78 standard functional tracts.
Smart Images

Figure CN123160877A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of medical image processing technology, specifically relating to a method and system for whole-brain white matter fiber tract segmentation based on point cloud representation. Background Technology
[0002] Mapping the human connectome using diffusion magnetic resonance imaging (dMRI) and fiber tractography is crucial for locating early microstructural lesions in neurodegenerative diseases.
[0003] Traditional fiber tract imaging methods are computationally expensive and heavily reliant on rigid geometric constraints and manual placement of regions of interest (ROIs). In pathological scenarios that result in severe anatomical distortions, these traditional methods exhibit poor robustness and frequent tracking failures.
[0004] Existing point cloud networks primarily learn the absolute spatial coordinates of streamlines. When faced with complex intersecting regions, macroscopic geometry alone is often insufficient to resolve topological ambiguities.
[0005] Whole-brain fiber tract imaging typically contains significant background noise, and the sizes of different anatomical tracts exhibit a highly unbalanced, long-tailed distribution. Using a flat, single-stage classifier can lead to severe inter-class feature interference, impairing the stability of major anatomical pathways.
[0006] Existing medical image datasets suffer from severe domain bias. Existing models often struggle to adapt to the gap between idealized training templates and unsampled real clinical native brains, especially when pathological states drastically alter the intrinsic distribution and morphology of fiber bundles, resulting in a significant decline in generalization ability. Summary of the Invention
[0007] This invention aims to provide a whole-brain fiber tract imaging segmentation method and system based on a physically guided cascaded hybrid expert network, in order to solve the technical problems existing in the current whole-brain fiber tract segmentation methods, such as geometric topological ambiguity, feature interference caused by extreme long-tail distribution, and poor generalization ability of the model when facing the native brain in pathological state.
[0008] The whole-brain fiber tract imaging segmentation method provided by this invention, based on a cascaded fiber-guided mixture-of-experts network (CasFOD), transforms the disordered raw whole-brain streamlines into a 3D point cloud classification task. Through dynamic graph construction, task-decoupled cascaded pre-screening, and physically guided hybrid expert routing, it achieves high-precision long-tail segmentation of 78 standard functional tracts. The specific steps are as follows:
[0009] (1) Multimodal feature fusion and representation learning: For each input original streamline, it is first resampled into a fixed number of N points (preferably N=15), thus constructing each streamline into an unordered set of points. This 21-dimensional feature matrix realizes the intrinsic coupling between macroscopic geometry and microscopic physical properties, specifically including 3D spatial coordinates, 15-dimensional FOD (Fiber Orientation Distribution) spherical harmonic (SH) coefficients, and a 3D tissue probability map (TPM).
[0010] Here, "unordered point set" refers to transforming the originally continuous neural fiber streamlines in physical three-dimensional space into a discretized, point-cloud-like three-dimensional spatial structure representation that can be efficiently computed by deep graph neural networks. Specifically, since the original streamlines generated by whole-brain tracking have uneven sampling point numbers and lack a unified starting direction order, this invention uses a spatially equidistant interpolation algorithm to resample each unordered streamline into a fixed number of points. Discrete geometric control points (preferred) In addition to recording the basic 3D spatial absolute coordinates, each discrete point within the set is also aligned with and attached to the 15-dimensional microscopic FOD physical angle energy coefficient and 3D tissue probability map features corresponding to the voxel position of that coordinate. This decouples a macroscopic curve into an unordered set matrix carrying 21-dimensional rich semantic features. This point-set representation breaks away from the dependence of traditional methods on rigid geometry or voxel meshes. It preserves both the macroscopic continuity and microscopic local properties of the fibers themselves, and allows subsequent networks to dynamically construct adjacency graph representations between fibers based on permutation invariance to solve complex topology classifications.
[0011] Explanation of 15-dimensional FOD spherical harmonic (SH) coefficients: 15-dimensional SH coefficients are based on the constrained spherical deconvolution (CSD) technique (refer to classic neurophysics literature: Tournier J D, Calamante F, Connelly A. Robust determination of the fibre orientation distribution in diffusion MRI: non-negativity constrained super-resolved spherical deconvolution[J]. Neuroimage, 2007, 35(4): 1459-1472.). Diffusion magnetic resonance signals are expressed as spherical convolutions of single-fiber response functions and intravoxel fiber orientation distribution (FOD). Due to the antipodal symmetry of white matter fiber signals in the brain, the FOD function is truncated in spherical coordinates using an even-order real spherical harmonic function basis. In order to suppress overfitting and high-frequency oscillations while preserving the spatial resolution of complex fiber crossing structures, this invention uses the maximum order... The real spherical harmonic expansion. For a given maximum even order... The total number of its independent spherical harmonic terms The calculation formula is:
[0012]
[0013] When preferred At that time, it was just generated Independent orthogonal spherical harmonic coefficient vectors that do not interfere with each other This includes one 0th-order term (average isotropic diffusion basis), five 2nd-order terms, and nine 4th-order even-numbered orthogonal basis coefficients. These 15-dimensional SH coefficients constitute a precise analytical representation of the distribution of white matter fibers in the subsurface within a unit voxel: the lower-order coefficients (0th and 2nd order) carry the dominant diffusion tensor direction of the fiber bundle and the overall anisotropy (FA); while the higher-order coefficients (4th order) encode the complex angular dynamics information caused by non-directional expansion at high frequency, endowing the streamlined lattice-resolved voxels with the microscopic physical identification capability of extreme topological structures such as triaxial interlacing, acute-angle interpenetration, and sharp divergence.
[0014] (2) Construction of a dual-stream physical guidance graph: The network processes 21-dimensional input features through two parallel branches:
[0015] (a) Macro-geometric flow: handling 3D coordinates and TPM features.
[0016] (b) Microtexture Flow: To avoid directly learning abstract SH coefficients, this invention projects 15-dimensional SH coefficients onto 60 physical spherical references (uniformly distributed using the Fibonacci spherical algorithm) to extract real spatial FOD energy; simultaneously, it explicitly applies a three-organization model mask using white matter probability in TPM to filter non-white matter noise at the physical level. The dual-flow features are dynamically fused through an attention gating mechanism and then input into the backbone of a Dynamic Graph Convolutional Neural Network (DGCNN). Addressing the lack of a fixed directional order for streamlines, this invention designs a bidirectional flip-matching distance to measure the S-axis of two streamlines. i and S j The actual topological space differences between them:
[0017] , (1)
[0018] Among them, S rev j For streamline S j The reversed feature sequence. When dynamically constructing edge features, the neighboring node features are determined and dynamically aligned based on this flip distance, thereby eliminating the directional randomness caused by the tracking algorithm while maintaining the continuity of micro-FOD in the edge features. Wherein:
[0019] The explanation for projecting the 15-dimensional SH coefficients onto 60 physical spherical references: The preferred extraction of 60 physical spherical reference directions is primarily based on an optimal balance between angular resolution and computational efficiency. Firstly, in order to extract the directions from the maximum order... The 15-dimensional spherical harmonic (SH) coefficients stably and without aliasing reconstruct the true spatial angular energy of the fiber orientation distribution (FOD) within voxels. The number of discrete sampling directions must be strictly greater than the number of independent spherical harmonic bases (i.e., 15), typically requiring an oversampling rate of 3 to 4 times to ensure the spatial fidelity of the physical energy projection. Secondly, the 60 uniformly distributed reference directions obtained through the Fibonacci spherical algorithm provide a dense and uniform angular resolution in three-dimensional space, which is sufficient to accurately identify the topological features such as acute angle intersections and divergences of nerve fibers in complex crossing regions (typically intersecting at 45 to 90 degrees). At the same time, controlling the micro-feature dimension to 60 dimensions avoids exponential computational and memory overload in the deep graph neural network caused by overly dense sampling, while ensuring extremely high computational efficiency of the large-scale fiber point cloud tensor in forward propagation.
[0020] The attention gating mechanism described is a nonlinear fusion operator used for dynamically adjusting and adaptively weighting the importance of multimodal features. Specifically, when processing the parallel input of "macro-geometric flow (coordinates and TPMs features)" and "micro-texture flow (FOD physical angle energy features)," this mechanism changes the traditional shallow processing method of directly splicing by channel or adding with fixed weights. The system first merges the macro-geometric features and micro-physical texture features along the channels and sends them into a self-attention mapping network composed of multilayer perceptrons. For each graph feature node, an attention gating spatial weight coefficient ranging from 0 to 1 is automatically calculated. This gating weight can sense the spatial location of the streamline in the brain. When the streamline passes through a region with a simple anatomical structure and a prominent main direction, the weight of the macro-geometric branch is adaptively increased; while when entering a high-density fiber crossing and morphologically ambiguous cross neural region, the energy interpretation of the micro-FOD texture flow is automatically activated and given high weight. This achieves dynamic adaptive matching of physical and morphological information and eliminates redundant noise interference.
[0021] The dynamic graph convolutional neural network is described in Wang Y, Sun Y, Liu Z, et al. Dynamic graphcnn for learning on point clouds[J]. ACM Transactions on Graphics (tog),2019, 38(5): 1-12. The underlying framework of this deep graph learning backbone is used to extract local and global topological spatial features of streamlines. Referring to the edge convolution (EdgeConv) operation proposed in the aforementioned literature, the DGCNN constructed in this invention no longer statically hard-codes connection relationships, but instead performs real-time calculation on the feature matrix activated at each layer of the network. Based on the current feature distance of the streamlines at each layer, the network uses dynamic nearest neighbor search (k-NN) combined with local and global sampling to dynamically reconstruct edge graph connection features. This allows the network to dynamically learn and converge the global morphological reference and local neighborhood topological orientation of fiber streamlines in progressively deeper calculations, overcoming the interference of cross-individual volume changes in brain fiber structure on the static graph.
[0022] The bidirectional reversal matching distance: Existing fiber tractography algorithms generate single continuous streamlines with a random initial and final generation order (i.e., the streamline can be traced from point A to point B, or completely reversed from point B to point A). This random reversal of direction leads to severe geometric alignment deviations in traditional coordinate distance calculations that rely solely on order matching. To overcome the "randomness of the initial direction" problem in traditional whole-brain fiber tractography algorithms, this invention proposes a orientation-independent Euclidean distance metric operator. Combining dynamic distance and matching masks, the network automatically selects the most appropriate face orientation features to construct the graph-edge matrix based on this minimum distance formula.
[0023] (3) Macroscopic feature pre-screening, i.e., Stage 1: Distinguishing "fibers from noise" from the original millions of whole-brain flow lines. In this stage, the network is dynamically decoupled and only uses macroscopic geometric flow for computation. Faced with the extreme imbalance between sparse real fiber bundles and massive background noise, the focal binary cross-entropy loss function is used to optimize the binary filter:
[0024] , (2)
[0025] Where, p t,i γ is the predicted probability of effective anatomical fibers when streamline i is used, and γ is a hyperparameter, usually set to γ=2, which forces the network to focus on identifying difficult negative sample noise that mimics the real anatomical shape. This represents the total number of whole-brain streamlines input in the current network training or computation batch. The index of the streamline sample represents the first one in the current calculation batch. Streamline; This indicates that all items in the current batch... The average value of the calculated loss for each streamline is used to ensure the stability of the model gradient update.
[0026] (4) Physically guided hierarchical MoE routing and classification, i.e., Stage 2: The main streamlines that survive the pre-screening are input into the hybrid expert (MoE) classifier in the second stage to distinguish 78 standard functional bundles. To cope with extreme long-tail variations between different bundle scales, the hybrid expert (MoE) classifier is decoupled into three tiers based on streamline volume and structural complexity: Tier 0 (macro-bundles), containing 28 macro-bundles with prominent structures (such as the corpus callosum); Tier 1 (meso-bundles), containing 25 medium-volume bundles that mainly pass through complex intersection regions; Tier 2 (micro-bundles), containing 25 micro-pathways with extremely small volumes distributed at the ends of long tails (such as domes).
[0027] Here, the Hybrid Expert (MoE) classifier is a hierarchical modular neural network system based on a task decoupling and divide-and-conquer strategy. Unlike traditional classifiers that share the same set of classification weights across all categories, this classifier consists of a differentiable "gated router" and multiple independent "expert subnetworks" focusing on different anatomical subspaces. To address the extreme long-tail variation in volumetric size of the 78 whole-brain functional bundles, the system decouples experts into three hierarchical levels. The router ultimately predicts the hierarchical confidence weights, and the local optimal output of the experts at a specified level is mapped back to the global index. This effectively prevents the problem of weak and rare pathway features being swallowed or interfered with by the macroscopic fiber features of the trunk in a flat classification structure, ensuring the topological integrity of high-precision segmentation of long-tailed complex neural fibers.
[0028] (5) Physically Guided FOD Loss Alignment in Cross-Regional Areas: In the meso- and micro-regions where anatomical structures intersect (especially at the Tier 2 micro-bundle level), due to the tendency for geometric ambiguity in macroscopic diagrams, this invention introduces an innovative physically guided alignment loss. This binds the underlying diffusion physics to the macroscopic morphology, calculating the macroscopic tangential displacement vector of the streamlines:
[0029] , (3)
[0030] The displacement vector is normalized by dividing it by its own scalar length, thereby extracting a tangent unit vector of length 1 that contains only pure macroscopic spatial orientation information. This unit vector will then be oriented and calculated to align with the microscopic FOD physical basis. and These represent the absolute coordinates of the start and end points of the nerve fiber streamline in three-dimensional space, respectively. This represents the macroscopic displacement direction vector from the starting point to the ending point of the streamline. The L2 Norm represents the second norm of a vector, i.e., the calculation of... and The Euclidean distance between the two endpoints.
[0031] Then, the true FOD angular energy is extracted from the micro-branching. Reconstructing Microscopic Energy with Network Prediction .
[0032] Imposing physical constraints: The predicted FOD energy must be highly accurate along the macroscopic tangent direction of the streamline. This involves applying absolute cosine similarity. As a spatial weight, the prediction error is penalized:
[0033] , (4)
[0034] in, Representing the The macroscopic tangent unit vector of a fiber streamline in three-dimensional space, that is, the normalized displacement vector from the start point to the end point of the streamline calculated above; Representing the The microscopic physical spherical reference vector is one of the 60 discrete spatial directions uniformly distributed on the sphere using the Fibonacci algorithm, as mentioned earlier. ; Represents the first [image / sample] extracted from the patient's diffusion magnetic resonance imaging. The streamline in the first Each reference direction The actual FOD angle energy on the surface; The first reconstructed value predicted by the micro-branch network of this system. The streamline in the first Each reference direction The microscopic FOD angular energy value on the surface.
[0035] The total physical loss is calculated as follows:
[0036] , (5)
[0037] Among them, the first item The cosine distance loss, representing the fundamental energy profile reconstruction loss, is used to measure the basic difference between the micro-energy distribution curve reconstructed by the network prediction and the true FOD fundamental energy distribution profile. (First term) The second item is responsible for ensuring that the network can learn basic microscopic feature profiles. This serves as a dedicated spatial alignment penalty term, utilizing weights. This further mandates that the predicted microscopic energy must possess extremely high physical accuracy in the macroscopic direction of streamline travel (tangential direction). Together, these two requirements penalize geometric topological predictions that violate the underlying diffusion physics rules.
[0038] This is to severely punish topological predictions that violate the rules of neurophysics.
[0039] (6) Two-stage long-tail fine-tuning based on non-frozen backbone: In order to prevent the extreme long-tail effect from masking a few structures, the training process is divided into two stages.
[0040] Phase 1 (Representation Learning): Train the entire network on a balanced class dataset. The total loss objective is determined by the routing loss. Expert Classification of NLL Loss The physical loss of FOD is combined with the following:
[0041] , (6)
[0042] The expressions for routing loss and expert classification NLL loss are as follows:
[0043] For a specific input pipeline Assuming its true local anatomical category label is And the actual level to which this category belongs is Then the routing loss NLL loss compared with expert classification The specific expressions are as follows:
[0044] (7)
[0045] This section utilizes the standard negative log-likelihood (NLL) loss to calculate the gated router's response to the target flow. Belongs to the real level Predicted probability Logarithmic penalty.
[0046] (8)
[0047] This section also utilizes the standard negative log-likelihood loss to calculate the activated corresponding level of expert network (Expert). In the known hierarchy Under these conditions, the streamline can be correctly predicted. Belongs to the category of real microscopic probability Logarithmic penalty.
[0048] In the formula , and The joint optimization balancing hyperparameters are set based on experience; in the preferred embodiment, the classification-dominated weights... and All are fixed at 1.0, while the physical boot alignment weight is... The value is fixed at 0.5. This parameter configuration ensures that the model fully and unbiasedly captures the geometric and topological features of each class during the representation learning phase, while appropriately introducing microscopic physical rule constraints.
[0049] Phase 2 (End-to-End Fine-Tuning): Switching to an extremely imbalanced real-world clinical data distribution. Unlike fine-tuning of traditional frozen feature extractors, this invention employs an unfrozen backbone end-to-end update strategy, allowing the feature space to adapt collaboratively with the distribution of a minority of classes. For the major Tier 0 and Tier 1 classes, NLL loss optimization is maintained; while for the extremely minority Tier 2 classes, Focal Loss is dynamically replaced for local optimization.
[0050] , (9)
[0051] in, Representing the Tier 2 micro-expert network for streamlines at the extreme long-tail minority end. Output that it belongs to the category of real microscopic targets. The predicted probability value, i.e. ); For focus adjustment hyperparameters, the preferred setting is: This decoupled differential learning rate mechanism both preserves the pre-trained physical features and achieves boundary calibration.
[0052] (7) Adaptive calibration during testing: To address the pathological distribution drift problem between the native space and the training template, expert parameters are frozen before performing the final prediction for new subjects, allowing the MoE router to adapt to the macroscopic data of the target brain distribution by minimizing unsupervised entropy over one epoch.
[0053] , (10)
[0054] in, Represents the total number of viable anatomical streamlines that survived the first phase of lightweight pre-screening in the target native brain (new subject); This represents the target brain The first of the effective streamline set A specific streamline; The first one represented by the gated router of this invention Each category level; The representative gated router predicts the first Streamline to be tested Belonging to the Level The soft distribution probability.
[0055] In this invention, the hybrid expert routing is a dynamic and adaptive data task distribution and allocation mechanism in a deep learning hybrid expert network (MoE). Specifically, a differentiable "gated router" built into the model acts as an intelligent distribution hub, automatically predicting and distributing the corresponding data flow to the most suitable sub-level expert network based on the macroscopic spatial volume, topological complexity, and anatomical region of the fiber flow to be processed.
[0056] The “78 standard functional bundles” mentioned above are based on the HCP842 template definition (Yeh FC, Panesar S, Fernandes D, et al. Population-averaged atlas of the macroscale human structural connectome and its network topology[J]. Neuroimage, 2018, 178: 57-68).
[0057] Based on the above-mentioned whole-brain fiber tract imaging segmentation method, this invention also provides a whole-brain fiber tract imaging segmentation system based on a physically guided cascaded hybrid expert network, specifically comprising the following seven modules: a multimodal feature fusion and representation learning module, a two-stream physically guided map construction module, a macroscopic feature pre-screening module, a physically guided hierarchical MoE routing and classification module, a cross-region physically guided FOD loss alignment module, a two-stage long-tail fine-tuning module based on the unfrozen backbone, and an adaptive calibration module; each module is used for the operation of the seven steps of the method of this invention. Specifically:
[0058] (1) Multimodal feature fusion and representation learning module
[0059] This module is responsible for receiving raw whole-brain streamline data, resampling each spatially disordered streamline into a fixed-length (e.g., 15 points) point array, and internally coupling macroscopic morphology with underlying microscopic physical properties to generate a 21-dimensional feature matrix for each sampling point, covering 3D spatial absolute coordinates, 15-dimensional microfiber orientation distribution (FOD) spherical harmonic (SH) coefficients, and 3D tissue probability map (TPM).
[0060] The physical feature extraction mechanism within this module calculates the FOD spherical harmonic coefficients using Constrained Spherical Deconvolution (CSD) technology. Based on a real even-order spherical harmonic basis expansion, with a maximum expansion order of 4 being optimal, it accurately generates a 15-dimensional vector of mutually independent orthogonal spherical harmonic coefficients. The higher-order terms of order 4 are dedicated to high-frequency encoding of non-directional angular dynamics information, enabling the deep network to accurately capture complex microscopic physical structures within voxels, such as triaxial interlacing, acute-angle intersections, and sharp divergences of neural fibers.
[0061] (2) Dual-flow physical guidance graph construction module
[0062] This module consists of parallel macroscopic geometry flow branches, microscopic texture flow branches, and a Dynamic Graph Convolutional Neural Network (DGCNN) feature alignment engine. The macroscopic geometry flow processes spatial absolute coordinates and TPM; the microscopic texture flow uses the Fibonacci sphere algorithm to project 15-dimensional spherical harmonic coefficients onto 60 physical spherical substrates to extract the true spatial FOD angular energy, and then explicitly applies a three-organism model mask by fusing the white matter probability of TPM, efficiently filtering non-white matter noise at the physical level.
[0063] This module dynamically adds and fuses features from both streams through an attention mechanism. Addressing the inherent randomness of the head-tail direction in whole-brain streamline tracing algorithms, a bidirectional flip-matching distance metric is introduced. This metric dynamically aligns and determines the feature directions of neighboring nodes by automatically comparing the minimum difference in true Euclidean space between two adjacent streamlines in their forward and reverse states. This comprehensively eliminates the randomness caused by fiber measurement, ensuring the continuity and topological consistency of microscopic FOD in dynamic graph edge features.
[0064] (3) Macro-feature pre-screening module (Stage 1)
[0065] This module is a dynamically decoupled, lightweight binary macroscopic filter. When processing millions of raw whole-brain fibers, this module adaptively skips computationally expensive microphysical flows, activating only binary classification calculations using macroscopic coordinates and tissue probability map features to identify and separate the true white matter backbone at an early stage with minimal computational cost.
[0066] To address the bottleneck of extremely uneven distribution of real, effective anatomical fibers and a large amount of background noise, this module integrates a Focal Binary Cross-Entropy Loss objective. By appropriately setting the focus adjustment hyperparameter, it forces the classification network to focus on identifying and accurately intercepting difficult negative sample noise streamlines that are highly disguised as normal anatomical paths in three-dimensional space, thus eliminating data interference for subsequent fine-grained classification.
[0067] (4) Physically guided hierarchical MoE routing and classification module (Stage 2)
[0068] The core architecture of this module includes a differentiable gated router and three hierarchical hybrid expert subnetworks (MoE). The module is dedicated to receiving backbone fiber streams that have been pre-screened and retained, and performing high-precision multi-classification tasks on 78 standardized brain functional anatomical bundles.
[0069] The module performs hierarchical mapping based on the overall spatial volume of the streamlines and the topological complexity of their corresponding neuroanatomical regions: Tier 0 macroscopic expert networks handle 28 types of large, prominent core bundles, such as the corpus callosum; Tier 1 mesoscopic expert networks handle 25 types of medium-volume fiber bundles passing through high-density cross regions, such as the brainstem; and Tier 2 microscopic expert networks handle 25 types of extremely small microscopic pathways distributed at the very long tail ends, such as the fornix. The gated router first predicts the responsibility level corresponding to the streamline based on global geometry. Then, the activated expert network at that level outputs the highest local confidence score for its managed category. Finally, the module uses an inverse mapping function to accurately reconstruct the global index mapping of 78 standard anatomical bundles.
[0070] (5) Cross-region physical guidance FOD loss alignment module
[0071] This module acts as a strict constraint on deep physics priors, focusing on intervening in complex cross-bundle regions (Tier 1) where macroscopic spatial geometric overlap easily leads to anatomical ambiguity, directly cutting off design topology errors caused by pure coordinate learning.
[0072] This module extracts the spatial coordinates of the start and end points of streamlines, constructs their macroscopic tangent displacement unit vectors, and extracts the reconstructed microscopic FOD spherical distribution energy and the corresponding underlying true FOD angular energy predicted by the network. The module uses the absolute cosine similarity between the macroscopic tangent direction vector and the physical reference vector as the anisotropic space penalty weight, introduces a special physical guidance alignment loss, and severely punishes predictions that violate the underlying neurophysical laws of diffusion magnetic resonance at both the microscopic and macroscopic alignment scales, thus resolving anatomical topological ambiguities.
[0073] (6) Two-stage long-tail fine-tuning module based on non-frozen backbone
[0074] This module is responsible for decoupled differential optimization control of feature representation and long-tail boundaries in the entire network architecture, guiding the deep model to transition from balanced theoretical features to accurate classification under the real imbalanced clinical anatomical proportions. Specifically:
[0075] Phase 1 (Representation Learning Control Unit): The entire network is trained using a balanced database with equal sampling sizes for each class. The gated routing loss, the negative log-likelihood loss for conventional anatomical expert classification, and the physical guidance alignment loss are jointly optimized to enable the network to capture the geometric and microphysical properties of each class of functional bundles without bias.
[0076] Phase Two (End-to-End Long-Tail Fine-Tuning Unit): Switch to the native clinical dataset that accurately reflects the long-tail distribution of human white matter on a proportional scale. During end-to-end optimization, the entire image's deep feature backbone is forced to remain in a thawed, non-locked-down update state, allowing the feature space to adjust with the boundaries of a few classes to achieve collaborative optimization. For high-volume and medium-sized Tier 0 and Tier 1 datasets, the negative log-likelihood loss is retained, while for Tier 2 datasets located at the very few end of the long-tail distribution, the local optimization function is dynamically replaced with focal loss, achieving collaborative calibration of deep physical feature preservation and clinical anatomical long-tail classification boundaries.
[0077] (7) Adaptive calibration module
[0078] This module serves as the final inference correction engine for the system when facing newly diagnosed clinical test patients or those with pathological conditions such as brain atrophy or tumor compression. It integrates an unsupervised testing-time adaptive (TTA) processor and a Bayesian prior calibration decoder. Specifically:
[0079] Faced with an unlabeled target brain with known brain volume and pathological features, this module first automatically freezes all downstream expert classification network parameters before outputting the final prediction. It then enables a gated router to optimize by minimizing unsupervised entropy in one independent training round, perceiving the current macroscopic structural distribution trend of the target individual's brain and adaptively tuning. In the subsequent classification decision stage, it abandons the simple route hard truncation method and uses the 78 fiber tract anatomical mathematical prior probabilities pre-computed from a large-scale standard training set as a Bayesian joint probability density corrector. This dynamically suppresses overconfidence and bias towards high-frequency large tracts, stably and with high clinical accuracy, outputting a complete fine-grained segmentation atlas of the target's whole-brain fiber tract imaging.
[0080] The main technical features and functional advantages of this invention are:
[0081] (1) Overcoming topological ambiguity and extreme distribution imbalance, significantly improving the segmentation accuracy of 78 anatomical bundles in the whole brain, the overall macro-average F1 score on the HCP dataset reached 0.5920, establishing a new SOTA performance.
[0082] (2) The hybrid expert architecture effectively protected the clinically critical macro pathways, achieving high F1 scores of 0.8040 and 0.6886 at the Tier 0 and Tier 1 levels, respectively.
[0083] (3) In an external independent PPMI cohort test that included Parkinson's disease (PD) patients and healthy controls (HC), the model did not show statistically significant degradation, demonstrating its excellent zero-sample cross-cohort generalization ability and its ability to effectively resist severe pathological anatomical distortions. Attached Figure Description
[0084] Figure 1 This diagram illustrates the technical bottlenecks faced by current whole-brain fiber tract segmentation techniques.
[0085] Figure 2 A conceptual flowchart for Physically Guided Cascaded Hybrid Expert Network (CasFOD).
[0086] Figure 3 This is a schematic diagram of the physical guidance alignment loss design based on FOD.
[0087] Figure 4 This is a diagram of the CasFOD network architecture of the present invention. Detailed Implementation
[0088] The present invention will be further described below with reference to the accompanying drawings and embodiments.
[0089] In contrast. Figure 1 A schematic diagram illustrating the technical bottlenecks of current whole-brain fiber tract segmentation is provided. The diagram visually demonstrates two core pain points in current point cloud-based whole-brain white matter fiber tract imaging segmentation: Geometric topological ambiguity (left): This shows fiber streamlines from different anatomical pathways but with similar macroscopic spatial paths within complex, intersecting regions of the brain. It illustrates that relying solely on macroscopic absolute spatial coordinate features for classification easily leads to confusion and topological localization ambiguity in this region. Extreme long-tailed distribution (right): The statistical bar chart reflects the extreme data distribution characteristics of real whole-brain streamline data. "Background noise" and "macro-bundles (Tier 0)" occupy a very high volume of data, while the streamlines belonging to the minority classes, "meso-micro-bundles (Tier 1 / Tier 2)," exhibit a significant long-tailed, precipitous drop in size. This imbalance is the root cause of severe interference with the features of traditional flat, single-stage classifiers, leading to the failure of minority class identification.
[0090] Figure 2This is a conceptual flowchart of the Physically Guided Cascaded Hybrid Expert Network (CasFOD) of this invention. The diagram illustrates the overall paradigm and two-stage cascaded architecture (Cascade MoE Architecture) introduced by this invention to address the aforementioned technical bottlenecks: Stage 1 intercepts massive amounts of background noise and shallow invalid streamlines from the original, large input streamline set; Stage 2 uses hybrid expert hierarchical routing to deliver the reserved, surviving, valid backbone streamlines to three decoupled levels managed by a gated router, according to their scale complexity: Tier 0 (macro-expert layer) classifies large, structurally distinct macro-bundles; Tier 1 (meso-expert layer) integrates micro-FOD special classifications of medium-sized bundles traversing complex neural cross-sections; Tier 2 (micro-expert layer) additionally incorporates endpoint geometric attributes, focusing on resolving subtle anatomical pathways at the extreme long-tail ends; finally, the predictions from the three levels are integrated to achieve a high-resolution classification output from massive, disordered whole-brain streamlines to 78 standardized neuroanatomical white matter types.
[0091] Figure 3 This is a schematic diagram of the FOD-based physical guidance alignment loss design. The diagram illustrates the core theoretical mechanism of this invention to overcome "geometric topological ambiguity," namely, the alignment loss that strongly binds the underlying neurophysical prior of diffusion magnetic resonance to macroscopic geometric streamlines: the green dashed line and the white main arrow in the diagram identify the macroscopic tangent displacement vector of a single streamline under test in three-dimensional space. The anisotropic non-spherical objects in the background space of the figure and the diffusion substrate pointed to by the red dashed line ( This shows the angular energy basis of the fiber orientation distribution (FOD) within the microscopic real voxels resolved from the self-diffusion image, with the core alignment space penalty weight formula explicitly listed on the right:
[0092]
[0093] This mechanism requires that the microfiber diffusion energy reconstructed by the deep neural network must closely match the macroscopic tangential angle of the fiber in terms of absolute cosine similarity. This is achieved by introducing anisotropic projection weights in physical space. This invention can automatically identify and punish illegal neural geometric topology predictions within spatial intersection areas based on objective physical laws.
[0094] Figure 4 This is a diagram of the CasFOD network architecture of the present invention. The diagram presents the complete neural architecture and tensor flow process of the physically guided cascaded hybrid expert network (CasFOD) of the present invention, from data input, dynamic graph modeling, dual-stream feature gating fusion, to multi-level gated routing classification. The diagram's four main core blocks and their computational details are as follows:
[0095] 1. Input Feature Construction Area (Left Sidebar):
[0096] Receive batches of whole-brain fiber streamlines (Input Streamlines), and resample each raw fiber streamline at equal intervals. Key spatial points (preferred) ); Construction dimension is The pointwise coupling feature matrix (where For batch size, the batch includes (Streamlines). These 21-dimensional features specifically include: 3D absolute spatial coordinates, 3D tissue probability maps (TPMs), and 15-dimensional fiber orientation distribution spherical harmonic (SH) coefficients obtained by unconvolution of constrained spheres.
[0097] 2. Inter-fiber Global-Local Graph Construction Area (above):
[0098] To address the issue of streamlines lacking a fixed directional order, a distance and flip mask are first calculated. A bidirectional flip-matching Euclidean distance is used to dynamically determine and eliminate the randomness of neighbor streamline reversal. A neighboring node sampling strategy, combining local and global sampling, captures each flow path. Each reference neighbor node forms a dimension of _ ... Features of all neighboring points; combining the node's own features and the difference features between its neighbors, dynamically constructing a dimension expansion... The multi-level fiber-to-fiber graph edge feature matrix provides complete local topological neighborhood information for the downstream physical extractor.
[0099] 3. Dual-Stream Physics-Guided GateFusion Area (Center):
[0100] The above dimensions are The edge feature matrices are decoupled and input in parallel into two feature extraction streams:
[0101] Macroscopic Geometric Flow (Part 1): Geometric edge features containing absolute coordinates and organization probability graphs (TPMs) are input into a macroscopic convolutional network, which is then passed through a geometric metric convolutional layer with a nonlinear multilayer perceptron to extract 64-dimensional macroscopic geometric features.
[0102] Microtexture Flow (bottom panel): Uniform Spherical Projection is applied to the spherical harmonic coefficients (FOD SH coefficients) at the edges, transforming the abstract function into true angular distribution energy in 60 discrete physical spatial directions. Simultaneously, a white matter spatial probability mask is generated by combining the white matter probability map from TPMs, dynamically eliminating signal noise in non-white matter regions. The spatially filtered energy is input into the microphysical texture convolutional layer, ultimately outputting a 128-dimensional high-resolution fine-grained physical texture feature.
[0103] Gated adaptive fusion (right side: Gate Fusion): 64-dimensional macroscopic geometric features and 128-dimensional microscopic physical texture features are concatenated along the channels and input into a self-attention computation mapping layer to learn spatial self-attention weights; after multiplication and scaling, the input information is fused into a fusion convolutional layer (Fusion Conv) to compress and unify its dimensions. The semantic matrix of the fusion graph.
[0104] 4. Deep Feature Backbone Extraction and Multi-Level Routing Decision Area (Right Column and Bottom):
[0105] Main branch aggregation and full graph representation (top right): Above The fused information is first fed into the Neighbor Attention & Pool module at the beginning of the network, where it is aggregated into a single node streamline dimension. The representation matrix; then sequentially through a matrix calculated by dynamic local adjacency ( A 3-layer deep dynamic graph convolutional network backbone consisting of and MaxPool is used; Skip Concat(512-d) is used to fully accumulate and concatenate the features of all deep and shallow network layers in the channel dimension to construct a multi-scale streamline feature representation of up to 512 dimensions; then, through full-map maximum and mean fusion pooling and non-linear fully connected classification extraction mapping layers (MLPs), the final high-representation streamline master feature matrix is extracted. ).
[0106] Hierarchical Gated Routing and Combinatorial Inference (Bottom Column): The main feature matrix is sent to the gating router to calculate the dedicated spatial soft distribution weights of the flow line under test in the three-layer independent expert structure. ):
[0107] Tier 0 Macro-Expert Network: Specifically responsible for general large-bundle classification that can determine the main trend without complex local information. It directly predicts the probability of the 28 macro-classes under the jurisdiction of the fully connected classification mapping layer (FC layer);
[0108] Tier 1 Mesoscale Expert Network: Performs enhanced decision-making on medium-sized fiber bundles with high degree of cross-cutting. Its representation is added to the residual of the specific physical angle energy distribution texture feature extracted by the network, and then input into the classification network to determine the affiliation of the 25 medium-sized anatomical bundles under its jurisdiction.
[0109] Tier 2 Micro-Expert Network: Performs fine-grained localization on extremely small, short neural branches located at the very few end-of-class categories in the long tail. Its feature matrix is additionally superimposed with endpoint geom features strongly correlated with the spatial location of the start / end nodes, allowing a dedicated fully connected classification layer to determine the probability of 25 extremely small pathways within its jurisdiction.
[0110] Each expert's local decision undergoes a reverse mapping transformation from their jurisdiction to the global index space, and is combined with the confidence weights estimated by the gated router. The system performs a weighted summation decision and ultimately outputs a high-confidence classification prediction conclusion for 78 standard neural functional fiber anatomical bundles of the whole brain.
[0111] Specifically, the whole-brain fiber tract imaging segmentation method based on a physically guided cascaded hybrid expert network has the following specific process:
[0112] (1) Data preprocessing and feature construction: Obtain the original whole brain fiber tract imaging streamlines of the subjects, resample each original streamline into 15 fixed points, and construct a point-by-point feature matrix with a dimension of 21 (3D spatial coordinates, 15-dimensional FOD spherical harmonic coefficients and 3D tissue probability map).
[0113] (2) Dual-stream feature fusion and physical perception map construction: The network processes the feature matrix through two parallel branches. The macro-stream processes 3D coordinates and TPM; the micro-stream projects 15-dimensional SH coefficients onto 60 physical spherical references uniformly distributed by the Fibonacci sphere algorithm to extract the real FOD spatial angular energy, and applies a mask using the white matter probability in the TPM to filter out non-white matter noise. The dual-stream features are fused by the attention mechanism and then input into the backbone of the Dynamic Graph Convolutional Neural Network (DGCNN).
[0114] (3) Two-stage training of the model and physical constraints:
[0115] Phase 1 (Representation Learning): The entire network is trained on a balanced dataset with 200 samples from each class. At Tier 2, the system computes the macroscopic tangent vector v of the streamlines and uses absolute cosine similarity. As weights, the FOD energy of the network reconstruction is forced to align with the real FOD energy in the macroscopic direction, and a physical guidance alignment loss is applied.
[0116] Phase Two (Long-Tail Fine-Tuning): Switch to a long-tailed distribution dataset that matches the proportions of the real brain. Keep the DGCNN backbone parameters unfrozen to allow feature space updates. Maintain regular optimization for Tier 0 and Tier 1, and dynamically replace Tier 2 with Focal Loss for local boundary calibration to prevent a few micro-pathway features from being overwhelmed.
[0117] (4) Test-time Adaptation and Joint Decoding Reasoning: For the new input clinical test brain, the parameters of the expert network trained in the second stage are first frozen. The unsupervised test-time adaptation (TTA) mechanism of the router is activated, and the target brain distribution is dynamically adapted using an entropy minimization strategy over one epoch. Finally, the router combines the Bayesian mathematical prior probabilities pre-computed based on the training set to perform joint decoding and output high-precision segmentation labels for 78 whole-brain white matter fiber tracts.
[0118] Results Verification and Analysis
[0119] To verify the effectiveness and robustness of the whole-brain fiber tract imaging segmentation framework (CasFOD) described in this invention, a comprehensive quantitative evaluation was conducted using the standard Human Connectome Project (HCP) dataset and the Parkinson's Progression Biomarkers Initiative (PPMI) external dataset.
[0120] 1. Experimental dataset configuration and sampling strategy
[0121] HCP Dataset (Standard Training and Validation): This experiment uses the HCP 3T database containing 1055 subjects. Based on the pre-generated HCP842 standard template and automatic annotation pipeline, raw streamline data containing 3D spatial coordinates, FOD, and TPM were extracted as ground truth. To meet the requirements of two-stage decoupled training, a strictly balanced binary pre-screened dataset, a stage-one balanced dataset (200 data points per class) for representation learning, and a stage-two real long-tailed distribution dataset for calibrating classification boundaries were constructed.
[0122] PPMI External Dataset (Zero-Shot Cross-Domain Generalization): To assess pathological generalization ability, an independent PPMI external cohort was introduced, containing 20 healthy controls (HC) and 20 Parkinson's disease (PD) patients, for direct inference testing without any fine-tuning.
[0123] 2. Performance comparison with existing technologies (HCP dataset)
[0124] This invention provides a comprehensive comparison of CCasFOD with existing advanced point cloud networks (PointNet, DGCNN) and dedicated fiber tract imaging baseline models (DeepWMA).
[0125] Comparison results (data in Table 1): CasFOD establishes a new state-of-the-art performance, with an overall macro-average F1 score of 0.5920±0.0340, which is 16.4% higher than PointNet (0.5084) and significantly better than the domain-specific DeepWMA model (0.4862).
[0126] Stratification Results: When faced with 78 highly unbalanced fiber bundles, CasFOD demonstrated overwhelming statistical advantage in the largest and most clinically critical macroscopic pathways (Tier 0) and mesoscopic pathways (Tier 1), achieving high F1 scores of 0.8040±0.0272 and 0.6886±0.0301, respectively. This proves that the cascaded architecture design of this invention effectively prevents the performance degradation commonly seen in complex neuroanatomical structures.
[0127] 3. Zero-shot cross-cohort generalization experiment (PPMI dataset)
[0128] To assess the stability of the model under severe geometrical shifts and pathological anatomical distortions, a zero-shot test was performed on the PPMI cohort.
[0129] Test results (Table 2 data): In both the healthy control group (PPMI-HC) and the Parkinson's disease group (PPMI-PD), the F1 score of CaSFOD maintained a statistically significant advantage over the baseline model at all levels. Specifically, the overall mean F1 score of CaSFOD in the HC group was 0.4954±0.0610, and the overall mean F1 score in the PD group was 0.5070±0.0446.
[0130] Robustness conclusion: Independent t-tests showed no statistically significant performance decline between the healthy group (HC) and the patient group (PD) at the major structural levels (Tier 0 and Tier 1) and at the overall mean. This fully demonstrates that CSFOD not only did not overfit the anatomical structures of healthy individuals, but also learned robust topological representations that can withstand severe neurodegenerative diseases and pathological anatomical deformations, exhibiting extremely high clinical stability.
[0131] 4. Ablation Study of Core Module
[0132] To verify the independent contributions of each innovative module within the CasFOD framework of this invention, ablation studies were conducted.
[0133] Ablation results (Table 3 data):
[0134] (1) Necessity of cascaded pre-screening (w / o Stage 1): Removing the macroscopic filter in Stage 1 caused a catastrophic collapse in the model's performance at all structural levels (the overall F1 score dropped to 0.3800). This confirms that intercepting a large amount of noise and surface fibers early in the process is a necessary prerequisite for achieving accurate fine-grained fiber bundle resolution later.
[0135] (2) MoE architecture to mitigate long-tail distribution (w / o MoE): After removing the hybrid expert (MoE) module, although the overall macro F1 score fluctuated (affected by the extremely rare class data in Tier 2), the full-featured CSFOD model achieved a highly significant improvement in the accuracy of depicting the main macro and meso-anatomical structures (Tier 0 and Tier 1) compared to the ablation model. This indicates that MoE effectively optimizes the expert routing strategy, maximizes the representation ability of the core pathways, and protects their topological integrity.
[0136] Table 1 Comparison of experimental results
[0137]
[0138] Table 2 Results of zero-shot cross-cohort generalization experiments
[0139]
[0140] Table 3 Ablation Experiment Results
[0141] .
Claims
1. A whole-brain fiber tract imaging segmentation method based on a physically guided cascaded hybrid expert network, characterized in that, The disordered raw whole-brain flow lines are transformed into a 3D point cloud classification task. High-precision long-tail segmentation of 78 standard functional bundles is achieved through dynamic graph construction, cascaded pre-screening with task decoupling, and hybrid expert routing combined with physical guidance. The specific steps are as follows: (1) Multimodal feature fusion and representation learning: For each input original streamline, it is first resampled into a fixed number of N points, N=15, so that each streamline is constructed as an unordered set of points. The 21-dimensional feature matrix realizes the intrinsic coupling between macroscopic geometry and microscopic physical properties, specifically including 3D spatial coordinates, 15-dimensional FOD spherical harmonic (SH) coefficients, and 3D tissue probability map (TPM). (2) Construction of the dual-stream physical guidance graph: The network processes 21-dimensional input features through two parallel branches: (a) Macroscopic geometric flow: handling 3D coordinates and TPM features; (b) Micro-texture flow: To avoid directly learning abstract SH coefficients, 15-dimensional SH coefficients are projected to 60 physical spherical basis, uniformly distributed by the Fibonacci spherical algorithm, to extract real spatial FOD energy. At the same time, the white matter probability in TPM is used to apply a three-tissue model mask to filter non-white matter noise at the physical level. After dynamically fusing the double-flow features through the attention gate mechanism, the dynamic graph convolutional neural network (DGCNN) backbone is input. To solve the problem of the lack of fixed direction order of the flow line, a bidirectional flip matching distance is designed to measure the real topological space difference between two flow lines S i and S j : , (1) Among them, S rev j For streamline S j The reversed feature sequence; when dynamically constructing edge features, the neighbor node features are judged and dynamically aligned based on the flipping distance, thereby eliminating the directional randomness caused by the tracking algorithm, while maintaining the continuity of micro-FOD in the edge features; (3) Macro-feature pre-screening, i.e., the first stage: distinguishing "fibers and noise" from the original millions of whole-brain flow lines; in this stage, the network is dynamically decoupled and only macro-geometric flow is used for calculation; facing the extreme imbalance between sparse real fiber bundles and massive background noise, the focal binary cross-entropy loss function is used to optimize the binary filter: , (2) Where, p t,i γ is the predicted probability of effective anatomical fibers when streamline i is used, and γ is a hyperparameter that forces the network to focus on identifying difficult negative sample noise that mimics the real anatomical shape. This represents the total number of whole-brain streamlines input in the current network training or computation batch; The index of the streamline sample represents the first one in the current calculation batch. Streamline; (4) Physically guided hierarchical MoE routing and classification, i.e., the second stage: The main streamlines that survive the pre-screening are input into the hybrid expert (MoE) classifier in the second stage to distinguish 78 standard functional bundles; In order to cope with the extreme long-tail changes between different bundle scales, the hybrid expert (MoE) classifier is decoupled into three layers according to the streamline volume and structural complexity: Tier 0, i.e. macro bundles, containing 28 macro bundles with prominent structures; Tier 1, i.e. meso bundles, containing 25 medium-volume bundles that mainly pass through complex intersection regions; Tier 2, i.e. micro bundles, containing 25 micro pathways that are extremely small in volume and distributed at the end of the long tail; (5) Physically Guided FOD Loss Alignment in Cross-Regional Areas: In the meso- and micro-regions where anatomical structures intersect, geometric ambiguity can easily arise in macroscopic images. Therefore, a physically guided alignment loss is introduced. This binds the underlying diffusion physics to the macroscopic morphology; it calculates the macroscopic tangential displacement vector of the streamlines. , (3) The displacement vector is normalized by dividing it by its own scalar length, thereby extracting a tangent unit vector of length 1 that contains only pure macroscopic spatial orientation information. This unit vector will then be oriented and calculated to align with the microscopic FOD physical basis. and These represent the absolute coordinates of the starting and ending points of the nerve fiber streamline in three-dimensional space, respectively. This represents the macroscopic displacement direction vector from the starting point to the ending point of the streamline; The second norm of a vector; Then, the true FOD angular energy is extracted from the micro-branching. Reconstructing Microscopic Energy with Network Prediction ; Imposing physical constraints: the predicted FOD energy must be highly accurate along the macroscopic tangent direction of the streamline; the absolute cosine similarity will be... As a spatial weight, the prediction error is penalized: , (4) in, Representing the The macroscopic tangent unit vector of a fiber streamline in three-dimensional space. Representing the A microscopic physical spherical reference vector ; Represents the first [image / sample] extracted from the patient's diffusion magnetic resonance imaging. The streamline in the first Each reference direction The actual FOD angle energy on the surface; The reconstructed first branch network is represented by the micro-branch network. The streamline in the first Each reference direction Microscopic FOD angular energy value; The total physical loss is calculated as follows: , (5) Among them, the first item Representing the fundamental energy profile reconstruction loss, this cosine distance loss measures the fundamental difference between the microscopic energy distribution curve reconstructed by the network prediction and the actual fundamental energy distribution profile of FOD; the first term... The first is responsible for ensuring the network can learn basic microscopic feature profiles, while the second... This serves as a dedicated spatial alignment penalty term, utilizing weights. Furthermore, it mandates that the predicted microscopic energy must possess extremely high physical accuracy in the macroscopic direction of streamline movement; the two combined serve to penalize geometric topological predictions that violate the underlying diffusion physics rules. This is to severely punish topological predictions that violate the rules of neurophysics; (6) Two-stage long-tail fine-tuning based on the non-frozen backbone: To prevent the extreme long-tail effect from masking a few key structures, the training process is divided into two phases: Phase 1 is representation learning: the entire network is trained on a balanced class dataset, and the total loss objective is determined by the routing loss. Expert Classification of NLL Loss The physical loss of FOD is combined with the following: , (6) in: ; (7) This section utilizes the standard negative log-likelihood (NLL) loss to calculate the gated router's response to the target flow. Belongs to the real level Predicted probability Logarithmic penalty; ; (8) This also utilizes the standard negative log-likelihood loss to calculate the activated corresponding level expert network Expert. Given the level as Under these conditions, the streamline can be correctly predicted. Belongs to the category of real microscopic probability Logarithmic penalty; , and The joint optimization equilibrium hyperparameters are set based on experience; Phase 2, or end-to-end fine-tuning: Switching to an extremely imbalanced real-world clinical data distribution; employing a non-frozen backbone end-to-end update strategy, allowing the feature space to adapt collaboratively with the minority class distribution; maintaining NLL loss optimization for the major Tier 0 and Tier 1 classes; while dynamically replacing it with Focal Loss for local optimization of the extremely minority Tier 2 classes. , (9) in, Representing the Tier 2 micro-expert network for streamlines at the extreme long-tail minority end. Output that it belongs to the category of real microscopic targets. The predicted probability value, i.e. ); The hyperparameters are tuned for focus; this decoupled differential learning rate mechanism both preserves the pre-trained physical features and achieves boundary calibration. (7) Adaptive calibration during testing: To address the pathological distribution drift problem between the native space and the training template, expert parameters are frozen before performing the final prediction for new subjects, allowing the MoE router to adapt to the macroscopic data of the target brain distribution by minimizing unsupervised entropy over one epoch. , (10) in, This represents the total number of viable anatomical streamlines that survived the first stage of lightweight pre-screening in the target native brain currently being tested. This represents the target brain The first of the effective streamline set A specific streamline; The first one represented by the gated router of this invention Each category level; The representative gated router predicts the first Streamline to be tested Belonging to the Level The soft distribution probability.
2. The whole-brain fiber tract imaging segmentation method according to claim 1, characterized in that, In step (1), the unordered point set This refers to transforming the continuous flow lines of nerve fibers in physical three-dimensional space into a discretized, point-cloud-like three-dimensional spatial structure representation that can be efficiently computed by deep graph neural networks. Specifically, addressing the issue that the original flow lines generated by whole-brain tracking have inconsistent sampling point numbers and lack a unified starting direction order, a spatially equidistant interpolation algorithm is used to resample each disordered flow line into a fixed number of samples. Each discrete geometric control point in the set, in addition to recording its basic 3D spatial absolute coordinates, is also aligned with and attached to a 15-dimensional microscopic FOD physical angle energy coefficient and a 3D tissue probability map feature corresponding to the voxel position of that coordinate. This decouples a macroscopic curve into an unordered set matrix carrying 21-dimensional rich semantic features. This point-set representation preserves both the macroscopic continuity and microscopic local properties of the fiber itself, and allows subsequent networks to dynamically construct adjacency graph representations between fibers based on permutation invariance to solve complex topology classifications.
3. The whole-brain fiber tract imaging segmentation method according to claim 1, characterized in that, In step (1), the 15-dimensional FOD spherical harmonic (SH) coefficients are based on the constrained spherical deconvolution (CSD) technique, where the diffuse magnetic resonance signal is represented as a spherical convolution of the single-fiber response function and the fiber orientation distribution (FOD) within the voxel. Due to the antipodal symmetry of the brain white matter fiber signal, the FOD function is unfolded and truncated in spherical coordinates using an even-order real spherical harmonic function basis. In order to suppress overfitting and high-frequency oscillations while preserving the spatial resolution of the complex fiber crossing structure, the maximum order is used. The real spherical harmonic expansion; for a given maximum even order The total number of its independent spherical harmonic terms The calculation formula is: Pick At that time, it was just generated Independent orthogonal spherical harmonic coefficient vectors that do not interfere with each other Among them, there is one 0th-order term, namely the average isotropic diffusion basis, five 2nd-order terms, and nine 4th-order even-numbered orthogonal basis coefficients. These 15-dimensional SH coefficients constitute a precise analytical expression of the distribution of white matter fibers in the underlying layer within a unit voxel: the low-order coefficients, namely the 0th-order and 2nd-order dominant diffusion tensor directions and the overall anisotropy (FA) of the fiber bundles; while the high-order coefficients, namely the 4th-order coefficients, encode the complex angular dynamics information caused by non-directional expansion at high frequency, giving the streamlined lattice-resolved voxels the ability to identify the microscopic physical structures of extreme topologies such as triaxial interlacing, acute angle interpenetration, and sharp divergence.
4. The whole-brain fiber tract imaging segmentation method according to claim 1, characterized in that, In step (2), the attention gating mechanism is a nonlinear fusion operator used to dynamically adjust and adaptively weight the importance of multimodal features. Specifically, when processing the parallel input of "macro-geometric flow" and "micro-texture flow", the macro-geometric features and micro-physical texture features are first merged along the channel and sent into a self-attention mapping network composed of multilayer perceptrons. An attention gating spatial weight coefficient between 0 and 1 is automatically calculated for each graph feature node. This gating weight can sense the brain spatial location of the streamline. When the streamline passes through a region with simple anatomical structure and prominent main direction, the weight of the macro-geometric branch is adaptively increased. When entering the high-density fiber intersection and morphologically blurred intersecting neural region, the energy interpretation of the micro-FOD texture flow is automatically activated and given high weight; dynamic adaptive matching of physical and morphological information is achieved, eliminating redundant noise interference.
5. The whole-brain fiber tract imaging segmentation method according to claim 1, characterized in that, In step (2), the dynamic graph convolutional neural network (DGCNN) uses a deep graph learning backbone architecture at the bottom layer to extract local and global topological spatial features of streamlines. The constructed DGCNN no longer statically hard-codes connection relationships, but instead performs real-time calculation on the feature matrix activated at each layer of the network. Based on the current feature distance of streamlines at each layer, the network uses dynamic nearest neighbor search (k-NN) combined with local and global sampling to dynamically reconstruct edge graph connection features. This enables the network to dynamically learn and converge the global morphological reference and local neighborhood topological orientation of fiber streamlines in the progressively deeper calculation, overcoming the interference of brain fiber structure cross-individual volume changes on the static graph.
6. The whole-brain fiber tract imaging segmentation method according to claim 1, characterized in that, In step (2), the bidirectional flip matching distance is a direction-independent Euclidean distance metric operator designed for the case where the generation order of the first and last lines of the existing fiber bundle imaging tracking algorithm is random when generating a single continuous streamline. Combined with dynamic distance and matching mask, the network automatically selects the most appropriate face orientation feature to construct the graph edge matrix based on this minimum distance formula.
7. The whole-brain fiber tract imaging segmentation method according to claim 1, characterized in that, In step (3), the hybrid expert (MoE) classifier is a hierarchical modular neural network system based on task decoupling and divide-and-conquer strategies. The classifier consists of a differentiable "gated router" and multiple independent "expert subnetworks" focusing on different anatomical subspaces. To address the extreme long-tail variation in volume of 78 whole-brain functional bundles, the system decouples the experts into three hierarchical levels. Finally, the router predicts the hierarchical confidence weights and maps the local optimal output of the specified level experts back to the global index. This effectively eliminates the problem of weak and rare pathway features being swallowed or interfered with by the macroscopic fiber features of the trunk in the flat classification structure, ensuring the topological integrity of high-precision segmentation of long-tailed complex neural fibers.
8. A whole-brain fiber tract imaging and segmentation system based on a physically guided cascaded hybrid expert network, characterized in that, Specifically, it includes seven modules: a multimodal feature fusion and representation learning module, a two-stream physical guidance graph construction module, a macroscopic feature pre-screening module, a physical guidance hierarchical MoE routing and classification module, a cross-region physical guidance FOD loss alignment module, a two-stage long-tail fine-tuning module based on a non-frozen backbone, and an adaptive calibration module; each is used to perform the seven steps of the method described in any one of claims 1-7.
9. The whole-brain fiber tract imaging segmentation system according to claim 8, characterized in that, Specifically: The multimodal feature fusion and representation learning module is responsible for receiving raw whole-brain streamline data, resampling each spatially disordered streamline into a fixed-length point array, and internally coupling macroscopic morphology with underlying microscopic physical properties to generate a 21-dimensional feature matrix for each sampling point, covering 3D spatial absolute coordinates, 15-dimensional microfiber orientation distribution (FOD) spherical harmonic (SH) coefficients, and 3D tissue probability map (TPM). The dual-flow physical guided graph construction module consists of parallel macroscopic geometric flow branches, microscopic texture flow branches, and a dynamic graph convolutional neural network (DGCNN) feature alignment engine. The macroscopic geometric flow processes spatial absolute coordinates and TPM. The microscopic texture flow uses the Fibonacci sphere algorithm to project 15-dimensional spherical harmonic coefficients onto 60 physical spherical substrates to extract the real spatial FOD angular energy, and then explicitly applies a three-organization model mask by fusing the white matter probability of TPM, thereby efficiently filtering non-white matter noise at the physical level. The macroscopic feature pre-screening module is a dynamically decoupled lightweight binary macroscopic filter. When processing millions of raw whole-brain fibers, this module adaptively skips the computationally expensive microscopic physical flow and only activates binary classification calculations using macroscopic coordinates and tissue probability map features to identify and separate the true white matter trunk at an early stage with minimal computational cost. The physically guided hierarchical MoE routing and classification module has an architecture that includes a differentiable gated router and three hierarchical hybrid expert subnetworks (MoE). This module is dedicated to receiving the backbone fiber flow lines that have been screened and retained in the early stage, and performing high-precision multi-classification tasks on 78 standardized brain functional anatomical bundles. The cross-region physical-guided FOD loss alignment module, as a strict constraint of deep physics prior, focuses on intervening in complex cross-bundle regions that are prone to anatomical ambiguity due to macroscopic spatial geometric overlap, and directly cuts off the design topology errors caused by pure coordinate learning. This module extracts the spatial coordinates of the start and end points of streamlines, constructs their macroscopic tangent displacement unit vector, and extracts the reconstructed microscopic FOD spherical distribution energy and the corresponding underlying true FOD angular energy predicted by the network. By calculating the absolute cosine similarity between the macroscopic tangent direction vector and the physical reference vector as the anisotropic space penalty weight, a special physical guidance alignment loss is introduced to severely punish predictions that violate the underlying neurophysical laws of diffusion magnetic resonance at both the microscopic and macroscopic alignment scales, thus resolving anatomical topological ambiguities. The two-stage long-tail fine-tuning module based on the non-frozen backbone is responsible for decoupled differential optimization control of feature representation and long-tail boundaries in the entire network architecture, guiding the deep model to transition from balanced theoretical features to accurate classification under the real imbalanced clinical anatomical proportions; specifically: Phase 1, Representation Learning Control Unit: The entire network is trained using a balanced database with equal sampling sizes for each class. The gated routing loss, the negative log-likelihood loss from conventional anatomical expert classification, and the physical guidance alignment loss are jointly optimized to enable the network to capture the geometric and microphysical properties of each class of functional bundles without bias. Phase Two, End-to-End Long-Tail Fine-Tuning Unit: Switch to the original clinical dataset that accurately reflects the long-tail distribution of human white matter on a proportional scale; during end-to-end optimization, force the entire image's deep feature backbone to remain in a thawed, non-locked update state, allowing the feature space to adjust with the boundaries of a few categories to achieve collaborative optimization; for high-volume and medium-sized Tier 0 and Tier 1 datasets, retain the negative log-likelihood loss, while for Tier 2 datasets located at the very few end of the long-tail distribution, the local optimization function is dynamically replaced with the focal loss, achieving collaborative calibration of deep physical feature protection and clinical anatomical long-tail classification boundaries; The adaptive calibration module, serving as the system's final inference correction engine when facing newly diagnosed clinical test patients or those with pathological conditions such as brain atrophy or tumor compression, integrates a time-of-unsupervised (TTA) adaptive processor and a Bayesian prior calibration decoder; specifically: Faced with an unlabeled target brain with known brain volume and pathological features, this module first automatically freezes all downstream expert classification network parameters before outputting the final prediction. It then enables a gated router to optimize by minimizing unsupervised entropy in one independent training round, perceiving the current macroscopic structural distribution trend of the target individual's brain and adaptively tuning. In the subsequent classification decision stage, it abandons the simple route hard truncation method and uses the 78 fiber tract anatomical mathematical prior probabilities pre-computed from a large-scale standard training set as a Bayesian joint probability density corrector. This dynamically suppresses overconfidence and bias towards high-frequency large tracts, stably and with high clinical accuracy, outputting a complete fine-grained segmentation atlas of the target's whole-brain fiber tract imaging.
