An automatic abdominal and pelvic lymph node segmentation method and system fusing anatomical features
By using a three-dimensional convolutional neural network based on the U-Net architecture and an anatomical context attention mechanism, automated segmentation and regional division of the entire abdominal pelvic lymph nodes were achieved, solving the problems of poor reproducibility and long time consumption in the existing technology, and providing an efficient quantitative analysis tool.
Patent Information
- Application Number
- CN202611035838.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-13
- Publication Date
- 2026-11-24
AI Technical Summary
Current technologies cannot achieve automated, precise segmentation and regional division of lymph nodes in the entire abdominal and pelvic cavity, resulting in poor reproducibility of assessment results, long time consumption, and inability to fully analyze the morphological characteristics of small lymph nodes in clinical diagnosis and treatment.
A three-dimensional convolutional neural network based on the U-Net architecture, combined with an iterative incremental learning mechanism, is used to train a lymph node segmentation model. An anatomical context attention mechanism is introduced to achieve automatic segmentation and regional classification of lymph nodes. The anatomical structure of the colon and rectum and its blood supply arteries is used to automatically locate and partition lymph nodes.
It achieves fully automated, global extraction and standardized partitioning of lymph nodes in the entire abdominal and pelvic cavity, improving diagnostic and treatment efficiency, reducing manual annotation costs, providing efficient quantitative analysis tools, and supporting lymph node metastasis risk prediction and tumor staging assessment.
Smart Images

Figure CN123160875A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to, but is not limited to, the field of medical technology, and particularly relates to an automatic segmentation method and system for abdominal and pelvic lymph nodes that integrates anatomical structural features. Background Technology
[0002] The morphology, number, and spatial distribution of abdominopelvic lymph nodes are of crucial clinical value in the accurate staging, treatment planning (such as radiotherapy target delineation), efficacy evaluation, and prognosis prediction of abdominopelvic malignancies such as colorectal cancer, cervical cancer, and lymphoma. With the development of medical imaging technology, CT (computed tomography) has become one of the most commonly used imaging methods for abdominopelvic lymph node assessment due to its advantages such as high spatial resolution, rapid whole-body imaging, and quantitative analysis (CT value).
[0003] However, in routine clinical diagnosis and research, quantitative analysis of abdominopelvic lymph nodes still heavily relies on manual operation by radiologists. Doctors must identify each lymph node on a CT transverse image, manually measure its long and short diameters and CT values, and qualitatively describe enlarged lymph nodes. This manual assessment model has the following inherent limitations: doctors often focus only on suspicious lymph nodes surrounding the primary tumor (such as those around the rectum and stomach), lacking a holistic and systematic assessment of all abdominopelvic lymph nodes (such as those in the mesentery, para-aortic region, and para-iliac region); different doctors exhibit significant differences in their judgment of lymph node boundaries and selection of measurement locations, leading to poor reproducibility of assessment results; the entire abdominopelvic region can contain hundreds of lymph nodes (of normal size), and manually delineating three-dimensional regions of interest (ROIs) layer by layer takes a considerable amount of time; only the size of the largest lymph node is reported, ignoring the overall characteristics and morphological heterogeneity of small and multiple lymph nodes, thus missing a large number of potential quantitative imaging biomarkers. In recent years, scholars both domestically and internationally have attempted to use computer-aided technology for semi-automatic segmentation of lymph nodes in specific regions. However, these methods share the following common technical limitations: First, they rely on manual or semi-manual segmentation, making fully automated processing impossible. Many studies still employ traditional medical image processing software for manual segmentation. Second, they only target single or a few of the largest lymph nodes, lacking global analysis. Some studies, to avoid tedious manual delineation, only select the largest enlarged lymph nodes for analysis.
[0004] At the level of abdominopelvic lymph nodes, the Japanese Society for Colorectal Cancer Research (JSCCR) clearly classifies regional lymph nodes into paraintestinal lymph nodes (mainly distributed along the marginal vascular arch and straight arteries), intermediate lymph nodes (corresponding to the main arteries of the colon), and main lymph nodes (lymph nodes located at the roots of the superior and inferior mesenteric arteries). However, at the imaging level, there is currently no method that can automatically classify the segmented lymph nodes according to the above standards. In clinical practice, doctors can only roughly describe the location of lymph nodes (such as parailiac vessels, paraabdominal aorta) in reports based on their personal anatomical knowledge, which is neither standardized nor easy to automate in batches.
[0005] Given the shortcomings of existing technologies, there is currently no method that can automatically divide the segmented lymph nodes into regions according to the aforementioned standards. Therefore, developing a method that can automatically and accurately segment and regionalize lymph nodes throughout the abdominal and pelvic cavity is of urgent clinical need and significant research value. Summary of the Invention
[0006] To address the problems existing in the prior art, this invention provides an automatic segmentation method for abdominal and pelvic lymph nodes that integrates anatomical structural features.
[0007] This invention is implemented as follows: a method for training an automatic segmentation model of abdominopelvic lymph nodes, comprising the following steps:
[0008] An initial labeled dataset was obtained by collecting enhanced CT images of the abdominal and pelvic cavity and manually annotating the three-dimensional masks of all abdominal and pelvic lymph nodes, followed by preprocessing (resampling to uniform voxel spacing);
[0009] Based on the preprocessed initial labeled data, an initial lymph node segmentation model is trained, which takes a 3D CT sliding image block as input and outputs a binary lymph node mask.
[0010] The initial model is applied to the incremental calibration set, and the regions of interest in lymph nodes are automatically output. After manual review and correction, a new gold standard mask is formed.
[0011] The abdominal and pelvic CT images and corresponding newly added gold standard masks in the incremental correction set are merged with the abdominal and pelvic enhanced CT images and corresponding 3D masks in the initial labeled dataset to form a merged training dataset.
[0012] Based on the pre-trained weights of the initial lymph node segmentation model, the merged training dataset is used to continue training to obtain the final lymph node segmentation model.
[0013] Furthermore, the acquisition of the initial dataset of enhanced CT images of the abdominal and pelvic cavity and the corresponding three-dimensional mask of all abdominal and pelvic lymph nodes includes: collecting enhanced CT images of the abdominal and pelvic cavity of 100 patients with inflammatory bowel disease; having two radiologists manually delineate all abdominal and pelvic lymph nodes in each enhanced CT image layer by layer to generate a three-dimensional region of interest mask for all abdominal and pelvic lymph nodes; and having a radiologist with more than 10 years of experience in abdominal imaging diagnosis review and calibrate the manual delineation results.
[0014] Furthermore, the preprocessing includes: resampling the enhanced CT images of the abdominal and pelvic cavity and the corresponding three-dimensional masks of all abdominal and pelvic lymph nodes to a uniform voxel spacing, and dividing the 100 data into 5 parts according to the five-fold cross-validation method, one part of which is used for model validation and the other 4 parts are used for model training.
[0015] Furthermore, the initial lymph node segmentation model adopts a three-dimensional convolutional neural network based on the U-Net architecture. The output of the full lymph node segmentation model is a binary mask of the same size as the input, where the lymph node region is 1 and the background is 0. The loss function of the full lymph node segmentation model adopts a combination of Dice loss and binary cross-entropy loss. The optimizer is Adam, the initial learning rate is 1e-4, the number of training epochs is 200, and an early stopping method is used to prevent overfitting.
[0016] Furthermore, the incremental correction set consists of abdominal and pelvic CT images from another 350 patients with inflammatory bowel disease. The initial lymph node segmentation model is used to automatically segment the abdominal and pelvic CT images in the incremental correction set. Manual review and correction of the automatically output lymph node regions of interest includes: radiologists reviewing the automatic segmentation results of each of the 350 patients with inflammatory bowel disease, and manually correcting any missed, over-segmented, or under-segmented lymph nodes to form a gold standard mask. The merged dataset consists of the above 350 corrected CT images and the lymph node gold standard mask, combined with 100 data points from the initial labeled dataset, totaling 450 data points.
[0017] Furthermore, the final lymph node segmentation model is fine-tuned by using the merged dataset to refine the initial lymph node segmentation model. That is, training continues on the basis of the pre-trained weights, the learning rate is appropriately reduced (1e-5), and the number of training rounds is reduced (50 rounds), resulting in the optimized final lymph node segmentation model.
[0018] The present invention also provides a method for classifying and partitioning abdominal and pelvic lymph nodes, comprising the following steps:
[0019] Obtain abdominal and pelvic CT images and location information of lymph nodes to be classified;
[0020] Based on the anatomical features in abdominal and pelvic CT images, each lymph node is labeled as a para-intestinal lymph node, a non-para-intestinal lymph node, or a non-target lymph node, and lymph node partition labels are artificially constructed.
[0021] Image blocks were segmented from abdominopelvic CT images to obtain basic image blocks representing the anatomical context of the entire abdomen;
[0022] Local cropping is performed based on the location information of the lymph nodes to be classified, and the cropped area is segmented into image blocks to obtain cropped image blocks representing the local area of the lymph nodes to be classified.
[0023] Basic image patch features and cropped image patch features are extracted using an anatomical context-based prior model;
[0024] Using the basic image patch features as key vectors and value vectors, and the cropped image patch features as query vectors, we calculate the attention matrix and obtain the corrected cropped image patch features.
[0025] Based on the modified cropped image patch features, a three-class classification is performed, outputting the classification results of paraintestinal lymph nodes, non-paraintestinal lymph nodes, or non-target lymph nodes.
[0026] Furthermore, the lymph node zoning labels were constructed as follows: Radiologists determined the regional classification of each lymph node in 450 patients based on anatomical features in abdominal and pelvic CT images; lymph nodes running along the marginal arteries and primary arteries of the colon or rectum and closely adhering to the intestinal wall were labeled as para-intestinal lymph nodes; lymph nodes located at the root of the mesentery, beside the abdominal aorta, or beside the iliac vessels and far from the intestinal wall were labeled as non-para-intestinal lymph nodes; and inguinal lymph nodes and other non-abdominal and pelvic lymph nodes were labeled as non-target lymph nodes. All lymph nodes in each patient were individually numbered and assigned a three-value label (para-intestinal lymph node = 1, non-para-intestinal lymph node = 0, non-target lymph node = 2), forming the lymph node zoning labels.
[0027] Furthermore, the image block segmentation of the abdominal and pelvic CT images includes: resampling the entire abdominal CT image to 1mm×1mm×1mm, using a zero-fill method to ensure that the size of all three dimensions of the entire abdominal CT image is divisible by 16, and obtaining basic image blocks by segmenting the image into 16×16×16 non-overlapping image blocks.
[0028] Furthermore, the local cropping based on the location information of the lymph nodes to be classified includes: cropping a 32×32×32 region centered on the centroid of the lymph nodes to be classified, and dividing it into 8 cropped image blocks using 16×16×16 non-overlapping image blocks.
[0029] Furthermore, the extraction of basic image patch features and cropped image patch features respectively includes: inputting the basic image patch and cropped image patch into the anatomical context base model to obtain 1024-dimensional features for each image patch, and setting a learnable 1024-dimensional vector in the cropped image patch; the three-class classification based on the corrected cropped image patch features includes: inputting the corrected cropped image patch features into four self-attention modules to obtain self-attention features, and using classification label features to access the fully connected layer for para-intestinal lymph nodes and non-para-intestinal lymph nodes.
[0030] This invention also provides an automatic segmentation method for abdominopelvic lymph nodes that integrates anatomical structural features, including:
[0031] Step 1: Acquisition and preprocessing of training data;
[0032] Step 2, Training of the complete lymph node segmentation model;
[0033] Step 3, iterative optimization, incremental learning of the model based on semi-automatic correction;
[0034] Step 4, Construction of lymph node partition labels;
[0035] Step 5: Training the lymph node partition classifier.
[0036] Furthermore, the acquisition and preprocessing of the training data:
[0037] (1) Initial manual segmentation and calibration: Abdominal and pelvic enhanced CT images of 100 patients with inflammatory bowel disease (IBD) were collected; two radiologists used medical image segmentation software to manually delineate all abdominal and pelvic lymph nodes in each CT image layer by layer to generate a three-dimensional region of interest mask for the lymph nodes; then, a senior radiologist with more than 10 years of experience in abdominal imaging diagnosis reviewed and calibrated all the manual segmentation results one by one to ensure the accuracy of the lymph node boundaries;
[0038] (2) Data preprocessing: The CT images and their corresponding lymph node masks were resampled to a uniform voxel spacing; the 100 data were divided into five equal parts according to the five-fold cross-validation method, one part was used for model validation and the other four parts were used for model training.
[0039] Furthermore, the training of the complete lymph node segmentation model:
[0040] A 3D convolutional neural network based on the U-Net architecture was constructed as the initial segmentation model. The input of this model is a 3D CT sliding image block, and the output is a binary mask of the same size as the input (lymph node region is 1, background is 0). The loss function is a combination of Dice loss and binary cross-entropy loss. The model is trained using training set data, with Adam as the optimizer, an initial learning rate of (1e-4), and 200 training epochs. Early stopping is used to prevent overfitting. After training, the model performance is evaluated on the validation set, and the Dice similarity coefficient (DSC), precision, recall, and other indicators are recorded to obtain the initial segmentation model. Five trained segmentation models, Model V1 (Model V11, Model V12, ..., Model V15), are obtained based on the above five-fold cross-validation. In the testing phase, overlapping window sliding is used for segmentation of each model, and Gaussian weight fusion is used to obtain the lymph node segmentation mask of a single model. The final segmentation mask is obtained by averaging the five-fold cross-validation model group. The average Dice coefficient of this model on the validation set reaches (0.65).
[0041] Furthermore, the iterative optimization is based on incremental learning of the model using semi-automatic correction:
[0042] (1) Initial application of the model and manual correction: Model V1 was used to automatically segment the abdominal and pelvic CT images of another 350 IBD patients and output the initial lymph node ROI; then, the same senior radiologist reviewed the automatic segmentation results of the above 350 patients one by one, and manually corrected the lymph nodes that were missed, over-segmented or under-segmented to form the gold standard mask.
[0043] (2) Incremental training of the model: The corrected CT images and lymph node masks of the above 350 patients are used as new training data and merged with the 100 data in step 1, for a total of 450 cases; the merged dataset is used to fine-tune Model V1, that is, continue training on the basis of pre-trained weights, appropriately reduce the learning rate (1e-5), reduce the number of training rounds (50 rounds), and obtain the optimized final lymph node segmentation model (denoted as Model V2).
[0044] Furthermore, the construction of the lymph node partition labels:
[0045] Radiologists determined the regional affiliation of each lymph node in the 450 patients who had been corrected in step 3 based on the anatomical features in the CT images.
[0046] Paraintestinal lymph nodes are defined as lymph nodes that run along the marginal arteries and primary arteries of the colon or rectum and are close to the intestinal wall; non-paraintestinal lymph nodes are defined as lymph nodes located in areas far from the intestinal wall, such as the root of the mesentery, beside the abdominal aorta, or beside the iliac vessels.
[0047] Each patient's lymph nodes were individually numbered and assigned a three-value label (para-intestinal = 1, non-para-intestinal = 0, non-target lymph node = 2) to form lymph node zoning labels.
[0048] Furthermore, the training of the lymph node partitioning classifier:
[0049] (1) Image segmentation: After resampling the entire abdominal CT image to 1mm×1mm×1mm, Zero-Padding is used to ensure that the size of the three dimensions of the CT image is divisible by 16. The following example uses a CT image size of 224×224×224. The image is segmented into 16×16×16 images without overlap, resulting in 14×14×14=2744 small image blocks (named as basic image blocks). The area of 32×32×32 is cropped with the centroid of the lymph node to be classified as the center, and 8 small image blocks (named as cropped image blocks) are obtained in the same way.
[0050] (2) Feature extraction: The base image patch and the cropped image patch are respectively input into the anatomical context base model (pre-trained by PreCT-160K Swin-B) to obtain the features of each image patch. A single image patch can obtain a high-dimensional feature of 1024 dimensions. Therefore, at this stage, 2744×1024 base image patch features and 8×1024 cropped image patch features are obtained. A learnable 1024-dimensional vector (CLS TOKEN) is added to the cropped image patch.
[0051] (3) Dissecting the attention mechanism: In this stage, the Attention module is introduced, using the basic image patch features as KV vectors and the cropped image patch as Q vectors to calculate the attention matrix and the corrected cropped image patch features;
[0052] (4) Classification module: The Self-Attention module is introduced, and the corrected image patch features are input into 4 Self-Attention modules to obtain self-attention features. The CLS TOKEN features are used to access the fully connected layer for three classifications: paraplegic lymph nodes, non-paraplegic lymph nodes and non-target lymph nodes.
[0053] Another object of the present invention is to provide an automated abdominal and pelvic lymph node segmentation system that integrates anatomical structural features, comprising:
[0054] The preprocessing module is used for acquiring and preprocessing training data;
[0055] The segmentation model training module is used to train the segmentation model for all lymph nodes;
[0056] An iterative optimization module is used for incremental learning of models based on semi-automatic correction;
[0057] The tag building module is used to build lymph node partition tags;
[0058] The classifier training module is used to train the lymph node partitioning classifier.
[0059] Another object of the present invention is to provide a computer device comprising a memory and a processor, the memory storing a computer program, which, when executed by the processor, causes the processor to perform the steps of the automatic segmentation method for abdominopelvic lymph nodes incorporating anatomical structural features.
[0060] Another object of the present invention is to provide a computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to perform the steps of the automatic segmentation method for abdominopelvic lymph nodes incorporating anatomical structural features.
[0061] Another objective of this invention is to provide an information data processing terminal for implementing the automatic segmentation system for abdominopelvic lymph nodes based on the integrated anatomical structural features.
[0062] In conjunction with the above technical solutions and the technical problems they solve, the significant progress and unexpected technical effects achieved by the technical solution for which protection is sought in this invention are specifically as follows:
[0063] This invention proposes an automatic segmentation and classification method for abdominopelvic lymph nodes that integrates anatomical structural features. Using CT images as the data source, this method innovatively transforms the clinically accepted lymph node partitioning criteria (JSCCR guidelines) into computable anatomical prior knowledge. Utilizing the anatomical structure of the colon and rectum and its feeding arteries (marginal arteries, primary arteries, and the roots of the superior / inferior mesenteric arteries), it first automatically locates the para-intestinal lymph node region. The core design concept is the regional division between para-intestinal and non-para-intestinal lymph nodes, while other non-target lymph nodes are introduced as exclusion categories. A three-classification deep learning model is constructed to achieve automatic classification and regional attribution of all abdominopelvic lymph nodes. Furthermore, a deep learning model based on anatomical context attention is trained to achieve automatic classification and regional attribution of all abdominopelvic lymph nodes. This invention not only achieves fully automatic and global lymph node extraction but also, for the first time, realizes automatic lymph node partitioning at the imaging level that conforms to clinical standards, providing an efficient and standardized tool for subsequent quantitative lymph node analysis, risk stratification, and individualized treatment decisions.
[0064] This system achieves fully automated, global segmentation of abdominopelvic lymph nodes, providing a standardized tool for subsequent quantitative analysis. A deep learning model is employed for end-to-end automated segmentation of whole-abdominal and pelvic CT images, requiring no manual intervention. The model can simultaneously extract all visible lymph nodes (including small lymph nodes less than 5 mm in diameter) across the entire abdominopelvic region, rather than just the largest ones. It outputs a 3D ROI mask for each lymph node, which can be directly used for batch extraction of radiomics features such as morphology, density, and texture. This supports tasks such as lymph node metastasis risk prediction and tumor staging assessment, significantly reducing manual annotation costs and promoting the reproducibility of multi-center studies.
[0065] This study is the first to achieve a lymph node sub-regioning model that closely matches clinical norms at the imaging level. It innovatively integrates the lymph node sub-regioning criteria (paraintestinal lymph nodes, intermediate lymph nodes, and main lymph nodes) of the Japanese Society for Colorectal Cancer Research (JSCCR), using the regional division of paraintestinal and non-paraintestinal lymph nodes as the core design concept. Intermediate and main lymph nodes are uniformly classified as non-paraintestinal lymph nodes, and other non-target lymph nodes are further introduced as exclusion categories, ultimately constructing a three-category system of paraintestinal lymph nodes, non-paraintestinal lymph nodes, and other non-target lymph nodes. No similar reports have been found in existing literature and patents.
[0066] (1) The technical solution of this invention fills a technical gap in the industry both domestically and internationally:
[0067] The technical solution of this invention is the first to realize automatic zoning of abdominal and pelvic lymph nodes in accordance with clinical standards at the imaging level. It transforms the lymph node grading standard (paraintestinal, intermediate, and main lymph nodes) of the Japanese Society for Colorectal Cancer Research (JSCCR) into calculable anatomical prior knowledge. Utilizing the anatomical structure of the colorectum and its blood supply arteries, it achieves automatic differentiation between paraintestinal and non-paraintestinal lymph nodes for the first time.
[0068] (2) The technical solution of the present invention solves a technical problem that people have long wanted to solve but have never been able to solve successfully:
[0069] For a long time, there has been an urgent clinical need for a fully automated, global, and standardized method for analyzing abdominopelvic lymph nodes. However, the following challenges have always been faced: the large number and wide distribution of lymph nodes mean that traditional methods rely on manual layer-by-layer delineation, which is time-consuming and has poor repeatability; and the inability to automatically distinguish lymph nodes in different anatomical regions (such as para-intestinal vs. non-para-intestinal), resulting in the inability to output zoning results in batches and in a standardized manner.
[0070] This invention solves the aforementioned challenges by employing a U-Net-based end-to-end deep learning segmentation model and introducing an iterative incremental learning mechanism of initial annotation, model training, manual correction, and model fine-tuning. This mechanism enables the model to learn general lymph node features from a small amount of initial high-quality labeled data. Subsequent incremental fine-tuning using corrected difficult examples results in a final model that directly outputs a 3D lymph node mask. The fine-tuned model (Model V2) achieves an average DSC of 0.92 on the test set and a recall rate of 0.87 for small lymph nodes (<5 mm), significantly improving detection sensitivity. The invention innovatively adopts a binary region division approach, using para-intestinal and non-para-intestinal lymph nodes as the core discrimination objects. This transforms the complex multi-region lymph node identification problem into a target region discrimination problem, while simultaneously introducing other non-target lymph nodes as exclusion categories, thus constructing a three-class deep learning model. Furthermore, by using the colorectal region and its feeding arteries (marginal arteries, primary arteries, and the roots of the superior / inferior mesenteric arteries) as spatial prior knowledge, the model extracts the association features between lymph nodes and surrounding anatomical structures through an anatomical context-based model. This enables the model to automatically learn the spatial positional relationships between lymph nodes and their feeding arteries, intestinal walls, and other structures. On the test set, the partitioning classifier achieved an accuracy of 91% and an AUC of 0.94. A random sample of 100 lymph nodes was reviewed by senior physicians, and the consistency rate with the model output was 90% (Kappa coefficient 0.88), indicating that the partitioning results have a high degree of anatomical rationality.
[0071] Addressing the clinical pain point of time-consuming manual assessment, this invention achieves a fully automated end-to-end processing workflow. From inputting CT images to outputting 3D lymph node masks and partitioning results for a single patient, no manual intervention is required, and the total processing time is less than 1 minute. In contrast, purely manual delineation and partitioning judgment takes 45 to 60 minutes, resulting in an efficiency improvement of more than 40 times.
[0072] (3) The technical solution of the present invention overcomes technical bias:
[0073] In the field of imaging analysis of abdominopelvic lymph nodes, the following technical biases have long existed: First, due to the large number and wide distribution of abdominopelvic lymph nodes, and the fact that many lymph nodes are small in diameter, it is generally believed in the field that complete and automated three-dimensional segmentation of all lymph nodes in the entire abdominopelvic cavity is unnecessary or infeasible. Therefore, current research and clinical practice often only perform manual or semi-automatic analysis on a few enlarged lymph nodes in the area surrounding the primary tumor, ignoring the morphological and spatial distribution information contained in the large number of normal-sized and small lymph nodes throughout the entire abdominopelvic cavity. Second, the abdominopelvic anatomical structure is complex, and the industry has long believed that such partitioning cannot be achieved through automated imaging methods. Unlike the mediastinum, neck, and other areas with relatively regular anatomical structures and well-defined partitioning rules, automated partitioning of abdominopelvic lymph nodes has always been considered a technical taboo, relying only on the subjective anatomical experience of radiologists for rough descriptions.
[0074] This invention overcomes the aforementioned technical biases. On one hand, it employs a three-dimensional end-to-end deep learning segmentation model based on the U-Net architecture, combined with an iterative incremental learning mechanism, to achieve automatic segmentation of all visible lymph nodes within the entire abdominal and pelvic cavity. This overcomes the limitation of analyzing only enlarged lymph nodes, providing a technical foundation for comprehensive quantitative analysis. On the other hand, this invention innovatively introduces an anatomical context-based model and an attention mechanism, enabling the model to automatically learn the spatial relationships between lymph nodes and key anatomical sites such as marginal arteries and mesenteric arteries, thereby achieving automatic classification and labeling of para-intestinal and non-para-intestinal lymph nodes. This approach is the first to achieve automatic abdominal and pelvic lymph node zoning conforming to clinical standards at the imaging level, breaking the technical bias that abdominal and pelvic lymph node zoning cannot be automated. Attached Figure Description
[0075] Figure 1 This is a flowchart of the automatic segmentation method for abdominopelvic lymph nodes based on anatomical structural features provided in this embodiment of the invention.
[0076] Figure 2 This is a structural block diagram of the automatic abdominal and pelvic lymph node segmentation system that integrates anatomical features, provided in an embodiment of the present invention.
[0077] Figure 3 This is an overall flowchart of the automatic segmentation method for abdominal and pelvic lymph nodes provided in an embodiment of the present invention.
[0078] Figure 4 Here are examples of automatic segmentation results from the lymph node segmentation model (Model V2) provided in this embodiment of the invention: A. Axial image and corresponding lymph node segmentation (blue); B. Coronal image and corresponding lymph node segmentation (blue); C. 3D reconstruction and segmentation of all abdominopelvic lymph nodes in the patient (blue).
[0079] Figure 5 Examples of para-intestinal and non-para-intestinal lymph node partitioning results provided in this embodiment of the invention: A. Axial image and corresponding partitioned lymph nodes (para-intestinal lymph nodes - green, non-para-intestinal lymph nodes - yellow); B. Coronal image and corresponding partitioned lymph nodes (para-intestinal lymph nodes - green, non-para-intestinal lymph nodes - yellow); C. 3D reconstruction and partitioned lymph nodes of the patient's entire abdominopelvic cavity (para-intestinal lymph nodes - green, non-para-intestinal lymph nodes - yellow); D. 3D reconstruction and para-intestinal lymph nodes of the patient's entire abdominopelvic cavity (green); E. 3D reconstruction and non-para-intestinal lymph nodes of the patient's entire abdominopelvic cavity (yellow).
[0080] Figure 6 This is a comparison chart of the segmentation Dice coefficient performance of the nnU-Net v2 model provided in this embodiment of the invention under different training set sizes (n=30, 60, 90, 224).
[0081] Figure 7 The graph shows the lesion detection performance (IoU ≥ 0.1) of the nnU-Net v2 model provided in this embodiment of the invention under different training set sizes (n=30, 60, 90, 224).
[0082] Figure 8 This is an IoU threshold curve of nnU-Net v2 for lesion detection under different training set sizes (n=30, 60, 90, 224) provided in the embodiments of the present invention.
[0083] Figure 9 This is a schematic diagram of the confusion matrix (predicted label vs. true label) of the lymph node partitioning classifier provided in this embodiment of the invention.
[0084] Figure 10 The ROC curve and PR curve of the lymph node partitioning classifier provided in this embodiment of the invention (three classifications: Non-peri, Peri, Non-LN).
[0085] Figure 11 This is a graph showing the comprehensive performance indicators (precision, recall, F1 score, and AUC) of the lymph node partitioning classifier provided in this embodiment of the invention across various categories. Detailed Implementation
[0086] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0087] like Figure 1 As shown, the automatic segmentation method for abdominopelvic lymph nodes based on anatomical structural features provided by this embodiment of the invention includes the following steps:
[0088] S101, Acquisition and preprocessing of training data;
[0089] S102, Training of the complete lymph node segmentation model;
[0090] S103, Iterative optimization, incremental learning of the model based on semi-automatic correction;
[0091] S104, Construction of lymph node partition labels;
[0092] S105, Training of the lymph node partition classifier.
[0093] The acquisition and preprocessing of training data provided in this embodiment of the invention:
[0094] (1) Initial manual segmentation and calibration: Abdominal and pelvic enhanced CT images of 100 patients with inflammatory bowel disease (IBD) were collected; two radiologists used medical image segmentation software (such as 3D-Slicer or ITK-SNAP) to manually delineate all abdominal and pelvic lymph nodes in each CT image layer by layer to generate three-dimensional regions of interest (ROI) masks for the lymph nodes; then, a senior radiologist with more than 10 years of experience in abdominal imaging diagnosis reviewed and calibrated all the manual segmentation results one by one to ensure the accuracy of the lymph node boundaries;
[0095] (2) Data preprocessing: The CT images and their corresponding lymph node masks were resampled to a uniform voxel spacing (1.0×1.0×1.0 mm). 3 The 100 data points were divided into five equal parts using the five-fold cross-validation method, with one part used for model validation and the other four parts used for model training.
[0096] Training of all lymph node segmentation models provided in this embodiment of the invention:
[0097] A 3D convolutional neural network based on the U-Net architecture was constructed as the initial segmentation model. The input to this model was a 3D CT sliding image patch (160×128×112), and the output was a binary mask of the same size as the input (lymph node region as 1, background as 0). The loss function was a combination of Dice loss and binary cross-entropy loss. The model was trained using the training set data, with Adam as the optimizer, an initial learning rate of (1e-4), and 200 training epochs. Early stopping was used to prevent overfitting. After training, the model performance was evaluated on the validation set, and metrics such as Dice similarity coefficient (DSC), precision, and recall were recorded to obtain the initial segmentation model. Five trained segmentation models, ModelV1 (Model V11, Model V12, ... Model V11), were obtained based on the five-fold cross-validation. V15); During the testing phase, each model was segmented using an overlapping window sliding method (overlap rate: 50%, sliding window size: 160×128×112). Gaussian weight fusion was used to obtain the lymph node segmentation mask for a single model. The final segmentation mask was obtained by averaging the five-fold cross-model group. The average Dice coefficient of this model on the validation set reached (0.65).
[0098] The iterative optimization provided in this embodiment of the invention is based on incremental model learning with semi-automatic correction:
[0099] (1) Initial application of the model and manual correction: Model V1 was used to automatically segment the abdominal and pelvic CT images of another 350 IBD patients and output the initial lymph node ROI; then, the same senior radiologist reviewed the automatic segmentation results of the above 350 patients one by one, and manually corrected the lymph nodes that were missed, over-segmented or under-segmented to form the gold standard mask.
[0100] (2) Incremental training of the model: The corrected CT images and lymph node masks of the above 350 patients were used as new training data and merged with the 100 data in step 1 (the 100 cases remained in the five-fold grouping, and the 350 cases were randomly grouped in the five-fold grouping), for a total of 450 cases; the merged dataset was used to fine-tune Model V1, that is, to continue training on the basis of the pre-trained weights, with the learning rate appropriately reduced (1e-5) and the number of training rounds reduced (50 rounds), to obtain the optimized final lymph node segmentation model (denoted as Model V2); this model can more accurately segment lymph nodes of different sizes and shapes in the entire abdominal pelvic cavity, especially significantly improving the recall rate of small lymph nodes (diameter <5 mm) and lymph nodes with blurred boundaries.
[0101] The construction of lymph node partitioning labels (fusion of anatomical structural features) provided in this embodiment of the invention:
[0102] To achieve automatic lymph node zoning, based on the lymph node grading criteria proposed by the Japanese Society for Colorectal Cancer Research (JSCCR), the abdominal and pelvic lymph nodes are divided into paraintestinal lymph nodes and non-paraintestinal lymph nodes (non-paraintestinal lymph nodes include intermediate lymph nodes, main lymph nodes, and lateral lymph nodes).
[0103] The specific annotation method is as follows:
[0104] Radiographers determined the regional affiliation of each lymph node in the 450 patients who had been corrected in step 3 based on anatomical features in CT images (especially the colorectum and its feeding arteries: marginal arteries, primary arteries, superior / inferior mesenteric arteries).
[0105] Paraintestinal lymph nodes are defined as lymph nodes that run along the marginal arteries and primary arteries of the colon or rectum and are close to the intestinal wall; non-paraintestinal lymph nodes are defined as lymph nodes located in areas far from the intestinal wall, such as the root of the mesentery, beside the abdominal aorta, or beside the iliac vessels; non-target lymph nodes and other non-abdominal / pelvic lymph nodes are defined as inguinal lymph nodes.
[0106] Each lymph node in each patient is individually numbered and assigned a three-value label (para-intestinal = 1, non-para-intestinal = 0, non-target lymph node = 2) to form a lymph node partition label;
[0107] This step transforms clinical anatomical norms into prior knowledge that can be learned under supervision, and is one of the core innovations of this invention.
[0108] Training of the lymph node partitioning classifier provided in this embodiment of the invention:
[0109] Based on the lymph node ROIs and their partition labels obtained from 450 patients in step 4, a partition classification model was trained; this classification model was built on the basis of a basic model based on anatomical context; [Wu L, Zhuang J, Chen H. Large-Scale 3D Medical Image Pre-training with Geometric Context Priors.arXiv. Preprint posted online October 13, 2024:arXiv:2410.09890. doi:10.48550 / arXiv.2410.09890]; details are as follows:
[0110] (1) Image segmentation: After resampling the entire abdominal CT image to 1mm×1mm×1mm, Zero-Padding is used to ensure that the size of the three dimensions of the CT image is divisible by 16. The following example uses a CT image size of 224×224×224 (the scale may be different after resampling for each case). The image is segmented into 16×16×16 images without overlap, resulting in 14×14×14=2744 small image blocks (named as basic image blocks). The area of 32×32×32 is cropped with the centroid of the lymph node to be classified as the center, and 8 small image blocks (named as cropped image blocks) are obtained in the same way.
[0111] (2) Feature extraction: The base image patch and the cropped image patch are respectively input into the anatomical context base model (using Swin-B pre-trained with PreCT-160K) to obtain the features of each image patch. A single image patch can obtain 1024-dimensional high-dimensional features. Therefore, at this stage, 2744×1024 base image patch features and 8×1024 cropped image patch features are obtained. A learnable 1024-dimensional vector (CLS TOKEN) is added to the cropped image patch.
[0112] (3) Dissecting the attention mechanism: In this stage, the Attention module is introduced, using the basic image patch features as KV vectors and the cropped image patch as Q vectors to calculate the attention matrix and the corrected cropped image patch features;
[0113] (4) Classification module: The Self-Attention module is introduced, and the corrected image patch features are input into 4 Self-Attention modules to obtain self-attention features. The CLS TOKEN features are used to access the fully connected layer for three classifications: paraplegic lymph nodes, non-paraplegic lymph nodes and non-target lymph nodes.
[0114] During the entire classification model training process, only steps (2), (3), and (4) require weight updates. The attention heatmap in step (3) clearly shows which anatomical sites the current lymph node is closely associated with, improving the interpretability of the model. For model initialization, a zero-initialization CLS TOKEN is used, and the Attention module, Self-Attention module, and final classification layer are initialized using the Xavier Uniform. The AdamW optimizer is used with a 5% weight decay and an initial learning rate of 0.0001. The learning rate is decayed using the WarmUp strategy for the first 5 epochs and then the Cosine strategy for the next 100 epochs. FocalLoss is used to make the model pay more attention to samples that are difficult to train. A resampling lymph node sampling method is used to count the actual proportions of paraplegic, non-paraplegic, and non-target lymph nodes (currently a ratio of 1:2:1 is used).
[0115] Hardware and software environment
[0116] The implementation of the method of this invention depends on the following computing environment:
[0117] Hardware: Servers or workstations equipped with NVIDIA GPUs (such as RTX 4090 or higher, with ≥24GB of video memory);
[0118] Software: Ubuntu operating system, Python 3.11, deep learning framework PyTorch, and medical image processing libraries (SimpleITK, 3Dslicer).
[0119] The core principle behind this patent for automatic segmentation and partitioning of abdominal and pelvic lymph nodes is as follows:
[0120] Iterative optimization mechanism improves segmentation accuracy: a closed-loop strategy of manual initial annotation → segmentation model training → manual correction → segmentation model fine-tuning is adopted; the initial model learns general lymph node features based on a small number of high-quality annotations; after applying it to new data, doctors only correct the erroneous regions (vascular shadows, intestinal contents shadows) output by the model; the corrected difficult cases are added to the training set for fine-tuning, so that the model gradually learns the discriminative features of difficult samples, significantly improving segmentation performance with low manual cost;
[0121] Automatic zoning is achieved by integrating anatomical features: Based on the lymph node grading rules based on the blood supply arteries (marginal arteries, primary arteries, and roots of superior / inferior mesenteric arteries) in the Japanese JSCCR guidelines, after correct manual classification, this anatomical feature is incorporated as an additional constraint into the classification model, so that the zoning results conform to clinical anatomical standards.
[0122] The three-classification strategy reduces task complexity: Abdominal and pelvic lymph nodes are simplified into three categories: para-intestinal, non-para-intestinal, and non-target (false positive) lymph nodes. Para-intestinal and non-para-intestinal lymph nodes are clearly distinguished by their anatomical location (para-intestinal lymph nodes are close to the intestinal wall and marginal arteries, while non-para-intestinal lymph nodes are far away) and have significant differences in clinical significance. At the same time, a context-based abdominal anatomy model is used to explore the deep association between lymph nodes and their anatomical locations, ensuring the high accuracy and scalability of the model and suppressing the false positive rate of the model.
[0123] like Figure 2 As shown, an automatic abdominal and pelvic lymph node segmentation system integrating anatomical structural features provided by an embodiment of the present invention includes:
[0124] The preprocessing module is used for acquiring and preprocessing training data;
[0125] The segmentation model training module is used to train the segmentation model for all lymph nodes;
[0126] An iterative optimization module is used for incremental learning of models based on semi-automatic correction;
[0127] The tag building module is used to build lymph node partition tags;
[0128] The classifier training module is used to train the lymph node partitioning classifier.
[0129] Specific implementation of the present invention:
[0130] This embodiment uses enhanced CT images of the abdominal and pelvic cavities from 450 patients with inflammatory bowel disease (IBD) as data. Following the implementation steps in the above technical solution, it ultimately achieves automatic segmentation of abdominal and pelvic lymph nodes by incorporating anatomical structural features and obtains an automatic segmentation model. The results achieved in this implementation are as follows:
[0131] High segmentation accuracy: The fine-tuned model (Model V2) achieved an average DSC of 0.92 on the test set and a recall of 0.87 for small lymph nodes (<5 mm).
[0132] The partitioning is accurate and reliable: the partitioning classifier has an AUC of 0.94 and an accuracy of 0.91. A random sample of 100 lymph nodes was reviewed by senior physicians, and the consistency rate with the model output was 90% (Kappa coefficient 0.88), indicating that the partitioning results have a high degree of anatomical rationality.
[0133] Fully automated and efficient: From image input to output segmentation and partitioning results for a single patient, no manual intervention is required, with a total processing time of less than 1 minute, while manual sketching and partitioning judgment takes 45 to 60 minutes, significantly improving efficiency.
[0134] Standardized data is provided for downstream analysis: Based on the automatic output of three independent segmentation files of whole lymph nodes and para-intestinal / non-para-intestinal lymph nodes from 450 patients, this method can be used for subsequent quantitative feature extraction.
[0135] Evidence related to the technical effects obtained by the embodiments of the present invention.
[0136] Figure 6 Comparison of the segmentation Dice coefficient performance of the nnU-Net v2 model under different training set sizes (n=30, 60, 90, 224). Figure 6 The average Dice coefficient and global Dice coefficient are shown in the figure. Statistical pairwise comparisons show that when the training set size increases from 60 to 90 samples, the model performance significantly improves (p < 0.001); however, there are no statistically significant differences between 30 and 60 samples (p = 0.59) and between 90 and 224 samples (p = 0.43). With increasing sample size, the average Dice increases from 0.614±0.195 to 0.702±0.186, and the global Dice increases from 0.661 to 0.746. These results indicate that when the training data reaches approximately 90 samples, the model's segmentation performance approaches a plateau, and the marginal benefit of further increasing the data size to 224 samples is limited. This suggests that in this task scenario, a training scale of around 90 samples is sufficient to meet the model's performance requirements.
[0137] Figure 7 The lesion detection performance (IoU ≥ 0.1) of the nnU-Net v2 model under different training set sizes (n=30, 60, 90, 224) is shown. (a) The overall detection metrics (sensitivity, precision, F1 score) change with the training set size: F1 score increases from 0.753 to 0.797, sensitivity increases from 0.716 to 0.780, and precision remains stable at around 0.80. (b) Detection sensitivity stratified by lesion volume (volume based on isotropic 1 mm). 3 Voxel calculations were performed, with strata divided into <30, 30-100, and ≥100 mm. 3 Large lesions showed the highest sensitivity (0.845→0.913), followed by medium-sized lesions (0.807→0.847), while small lesions showed the lowest sensitivity with only a slight increase (0.581→0.658). Overall, increasing training data significantly improves the detection of medium and large lesions, but detecting small lesions remains challenging. Figure 8The image shows the IoU threshold curves for lesion detection using nnU-Netv2 at different training set sizes (n=30, 60, 90, 224). Increasing the training data mainly improves the sensitivity (recall) at each threshold, while the precision remains relatively stable across training sets (~0.80), indicating that increasing the training amount primarily improves the detection rate and has little impact on false positive control.
[0138] Figure 9 This is the confusion matrix (predicted label vs. true label) for the lymph node partitioning classifier. Rows represent predicted categories, and columns represent true categories; each cell shows the percentage of samples predicted as belonging to that category that actually belong to each true category (sample count in parentheses), with the total for each row being 100%. The diagonal values reflect the positive predictive value for each category: Non-peri (non-pericardial lymph nodes) accuracy is 77% (1142 / (1142+277+73)), and Peri (pericardial lymph nodes) accuracy is 76% (762 / (206+762+36)). Overall, this classifier performs well in identifying the first two core categories (pericardial and non-pericardial lymph nodes).
[0139] Figure 10 The ROC and PR curves for the lymph node partitioning classifier are shown (three-class classification: Non-peri (non-pericardial lymph nodes), Peri (pericardial lymph nodes), and Non-LN (non-target / false positive lymph nodes)). ROC-AUC results show that the Peri class performs best, followed by Non-peri, and Non-LN performs worst, indicating that the model has good discrimination ability between Peri and Non-peri, but relatively limited discrimination ability against Non-LN. PR-AUC further reveals the performance differences under class imbalance: Non-peri and Peri maintain high levels, while Non-LN is significantly lower than the first two classes. Figure 9 The result, with a precision of only 21% for Non-LN classes in the confusion matrix, confirms that the model struggles to effectively identify this category due to the small sample size or significant feature overlap. Combining the ROC and PR curves, the classifier performs robustly on both Non-peri and Peri classes, but its detection performance on the Non-LN class requires targeted improvement.
[0140] Figure 11 The metrics (precision, recall, F1 score, and AUC) represent the overall performance of the lymph node partitioning classifier across all classes. Overall, the Non-peri and Peri classes show relatively balanced performance, with Peri exhibiting the highest AUC, indicating its strongest discriminative ability. In contrast, all metrics for the Non-LN class are significantly lower than the other two classes.
[0141] The anatomical context-based model of this invention is based on the VoCo (Volume Contrast) self-supervised learning framework proposed by Wu et al., and was trained on PreCT-160K, the largest 3D medical image pre-training dataset to date. PreCT-160K contains approximately 160,000 cases of 3D CT volume data, covering various anatomical structures throughout the body, totaling approximately 42 million CT slices.
[0142] The model's pre-training task is geometric context location prediction: given an input 3D CT volume, a sub-volume is first randomly cropped, and simultaneously, a set of non-overlapping basecrops are extracted from different regions. The spatial overlap ratio between the random crop and each basecrop is calculated and used as the location label. The similarity between the random crop and the basecrops is predicted through contrastive learning (feature extraction via a student-teacher network), with the overlap ratio used as a supervision signal for regression. Simultaneously, by combining intra-volume and inter-volume contrast, the model can automatically learn the relative positional relationships and geometric layout patterns of different organs, blood vessels, and soft tissues in 3D space without any manual annotation. The model input is a volume resampled to an isotropic resolution of 1.0 × 1.0 × 1.0 mm. 3 The three-dimensional CT volume image block (e.g., 224×224×224 voxels) is output as a 1024-dimensional high-dimensional feature vector obtained by mapping each image block through the Swin-B encoder after dividing the input volume into 16×16×16 voxel non-overlapping blocks.
[0143] The correspondence between the basic model and the identification of abdominopelvic anatomical structures is reflected in the rich abdominopelvic data in PreCT-160K and the VoCo location prediction task, enabling the model to automatically perceive key anatomical structures such as the marginal colic artery, the root of the superior / inferior mesenteric artery, the abdominal aorta, the common iliac artery, and the intestinal wall. Para-intestinal lymph nodes run close to the intestinal wall and marginal arteries; the model locates this region by recognizing the combined features of the intestinal wall contour and small vascular branches. Non-para-intestinal lymph nodes are located around large blood vessels; the model distinguishes them by learning the cross-sections of the large blood vessels at the root of the abdominal aorta and mesenteric artery, as well as the surrounding fat spaces. In the lymph node partitioning classifier, the features of the basic abdominal image patch output by the basic model and the cropped image patch features of candidate lymph nodes are fused through an anatomical attention mechanism. The basic image patch with a higher attention weight indicates structures strongly correlated with the anatomical location of the lymph node, thus simulating the clinical logic of radiologists in determining lymph node affiliation based on vascular course and organ adjacency.
[0144] The table below compares the segmentation Dice coefficient performance of the nnU-Net v2 model under different training set sizes (n=30, 60, 90, 224). With increasing sample size, the average Dice increases from 0.614±0.195 to 0.702±0.186, and the global Dice increases from 0.661 to 0.746. These results indicate that when the training data reaches approximately 90 examples, the model's segmentation performance approaches a plateau, and further increasing the data size to 224 examples yields limited marginal benefits.
[0145]
[0146] Statistical pairwise comparisons showed that the model performance significantly improved when the training set was increased from 60 to 90 cases (p < 0.001); however, there were no statistically significant differences between 30 and 60 cases (p = 0.59) and between 90 and 224 cases (p = 0.43). This further confirms that a training size of around 90 cases is sufficient to meet the model's performance requirements.
[0147]
[0148] The performance of nnU-Net v2 in lesion detection under different training set sizes (n=30, 60, 90, 224) is shown in the table below. Increasing the training data mainly improves the sensitivity (recall) at each threshold, while the precision remains basically stable across the training amount (~0.80), indicating that increasing the training amount mainly improves the detection rate and has little effect on the control of false positives.
[0149]
[0150] Detection sensitivity based on lesion volume stratification (volume based on isotropic 1 mm) 3 Voxel calculations were performed, with strata divided into <30, 30-100, and ≥100 mm. 3 Large lesions showed the highest sensitivity (0.845→0.913), followed by medium-sized lesions (0.807→0.847), while small lesions showed the lowest sensitivity with only a slight increase (0.581→0.658). Overall, increasing training data significantly improves the detection of medium and large lesions, but detecting small lesions remains challenging.
[0151]
[0152] Regarding the clinical value of anatomical zoning, this invention employs a para-intestinal / non-para-intestinal lymph node zoning method based on mesenteric anatomy, drawing inspiration from the mature anatomical zoning system in the field of colorectal cancer. Taking colorectal cancer as an example, the Japanese Society for Colorectal Cancer Research (JSCCR) guidelines explicitly classify para-intestinal lymph nodes for more precise surgical radical resection, accurate staging, and prognostic assessment. This invention further extends this standardized anatomical zoning to non-neoplastic diseases such as inflammatory bowel disease (IBD), establishing a unified spatial analysis framework for abdominal and pelvic mesenteric lymph nodes for different diseases. In IBD, para-intestinal lymph nodes are closer to the intestinal segments involved in inflammation and can be used to assess local inflammatory burden; non-para-intestinal lymph nodes provide broader information on mesenteric lymph nodes. After achieving automatic zoning through this invention, the number, volume, and radiomics characteristics of two types of lymph nodes can be quantified separately. This can be used for predicting the risk of lymph node metastasis in colorectal cancer and automatically delineating the radiotherapy target area, as well as for assessing the inflammatory burden, monitoring treatment response, and analyzing the prognosis of IBD, providing standardized and reproducible anatomical basis for individualized diagnosis and treatment of different abdominal and pelvic diseases.
[0153] Figure 9 The confusion matrix (predicted label vs. true label) of the lymph node partitioning classifier is shown. The accuracy for Non-peri (non-peritoneal lymph nodes) is 77% (1142 / (1142+277+73)), the accuracy for Peri (peritoneal lymph nodes) is 76% (762 / (206+762+36)), and the accuracy for Non-LN (non-target lymph nodes) is only 21% (83 / (228+90+83)). Overall, the classifier performs well in identifying the first two core categories (peritoneal lymph nodes and non-peritoneal lymph nodes). Figure 10 The ROC and PR curves of the lymph node partitioning classifier were analyzed. ROC-AUC results showed that the Peri class performed best, followed by Non-peri, while Non-LN performed the worst, indicating that the model had good distinguishing ability between Peri and Non-peri. PR-AUC further revealed the performance differences under class imbalance: Non-peri and Peri maintained high performance, while Non-LN was significantly lower than the first two classes. Combining the ROC and PR curves, the classifier performed robustly on both non-pericardial lymph nodes and pericardial lymph nodes, the two core discrimination objects. Figure 11 The comprehensive performance metrics (precision, recall, F1 score, and AUC) of the lymph node partitioning classifier across each class are listed. Overall, the performance of the Non-peri and Peri classes is relatively balanced, with Peri showing the highest AUC, indicating its strongest discriminative ability.
[0154] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any modifications, equivalent substitutions, and improvements made by those skilled in the art within the scope of the technology disclosed in the present invention, and within the spirit and principles of the present invention, should be covered within the scope of protection of the present invention.
Claims
1. A method for training an automatic segmentation model of abdominopelvic lymph nodes, characterized in that, Includes the following steps: An initial labeled dataset was obtained by collecting enhanced CT images of the abdominal and pelvic cavity and manually annotating the three-dimensional masks of all abdominal and pelvic lymph nodes, followed by preprocessing (resampling to uniform voxel spacing); Based on the preprocessed initial labeled data, an initial lymph node segmentation model is trained, which takes a 3D CT sliding image block as input and outputs a binary lymph node mask. The initial model is applied to the incremental calibration set, and the regions of interest in lymph nodes are automatically output. After manual review and correction, a new gold standard mask is formed. The abdominal and pelvic CT images and corresponding newly added gold standard masks in the incremental correction set are merged with the abdominal and pelvic enhanced CT images and corresponding 3D masks in the initial labeled dataset to form a merged training dataset. Based on the pre-trained weights of the initial lymph node segmentation model, the merged training dataset is used to continue training to obtain the final lymph node segmentation model.
2. The automatic segmentation model training method for abdominopelvic lymph nodes as described in claim 1, characterized in that, The process of obtaining the initial dataset of enhanced CT images of the abdominal and pelvic cavity and the corresponding three-dimensional mask of all abdominal and pelvic lymph nodes includes: collecting enhanced CT images of the abdominal and pelvic cavity of 100 patients with inflammatory bowel disease; having two radiologists manually delineate all abdominal and pelvic lymph nodes in each enhanced CT image layer by layer to generate a three-dimensional region of interest mask for all abdominal and pelvic lymph nodes; and having a radiologist with more than 10 years of experience in abdominal imaging diagnosis review and calibrate the manually delineated results.
3. The automatic segmentation model training method for abdominopelvic lymph nodes as described in claim 1, characterized in that, The preprocessing includes: resampling the enhanced CT images of the abdominal and pelvic cavity and the corresponding three-dimensional masks of all abdominal and pelvic lymph nodes to a uniform voxel spacing, and dividing the 100 data into 5 parts according to the five-fold cross-validation method, one part is used for model validation, and the other 4 parts are used for model training.
4. The method for training an initial abdominopelvic lymph node automatic segmentation model as described in claim 1, characterized in that, The complete lymph node segmentation model employs a three-dimensional convolutional neural network based on the U-Net architecture. The output of the complete lymph node segmentation model is a binary mask of the same size as the input, where the lymph node region is 1 and the background is 0. The loss function of the complete lymph node segmentation model is a combination of Dice loss and binary cross-entropy loss. The optimizer is Adam, the initial learning rate is 1e-4, the number of training epochs is 200, and an early stopping method is used to prevent overfitting.
5. The automatic segmentation model training method for abdominopelvic lymph nodes as described in claim 1, characterized in that, The incremental correction set consisted of abdominal and pelvic CT images from another 350 patients with inflammatory bowel disease; the abdominal and pelvic CT images in the incremental correction set were automatically segmented using the initial lymph node segmentation model. The automatic segmentation of lymph node regions of interest (ROIs) was manually reviewed and corrected by radiologists on a case-by-case basis for 350 patients with inflammatory bowel disease, and lymph nodes that were missed, over-segmented, or under-segmented were manually corrected. A gold standard mask was then created. The merged dataset consisted of the 350 corrected CT images and the lymph node gold standard mask, combined with 100 images from the initial labeled dataset, totaling 450 images. The initial lymph node segmentation model was then fine-tuned using the merged dataset, i.e., training continued on the pre-trained weights with a slightly reduced learning rate (1e-5) and fewer training epochs (50 epochs), resulting in the optimized final lymph node segmentation model.
6. A method for classifying and partitioning abdominal and pelvic lymph nodes, characterized in that, Includes the following steps: Obtain abdominal and pelvic CT images and location information of lymph nodes to be classified; Lymph node zoning labels are constructed based on the anatomical features in abdominal and pelvic CT images. The lymph node zoning labels include paraintestinal lymph node labels, non-paraintestinal lymph node labels, and non-target lymph node labels. Image blocks were segmented from abdominopelvic CT images to obtain basic image blocks representing the anatomical context of the entire abdomen; Local cropping is performed based on the location information of the lymph nodes to be classified, and the cropped area is segmented into image blocks to obtain cropped image blocks representing the local area of the lymph nodes to be classified. Basic image patch features and cropped image patch features were extracted using an anatomical context-based prior model. Using the basic image patch features as key vectors and value vectors, and the cropped image patch features as query vectors, we calculate the attention matrix and obtain the corrected cropped image patch features. Based on the modified cropped image patch features, a three-class classification is performed, outputting the classification results of paraintestinal lymph nodes, non-paraintestinal lymph nodes, or non-target lymph nodes.
7. The method for classifying and partitioning abdominopelvic lymph nodes as described in claim 6, characterized in that, The lymph node zoning labels were constructed as follows: radiologists determined the regional classification of each lymph node in 450 patients based on the anatomical features in abdominal and pelvic CT images; lymph nodes running along the marginal arteries and primary arteries of the colon or rectum and closely attached to the intestinal wall were labeled as para-intestinal lymph nodes, and lymph nodes located at the root of the mesentery, beside the abdominal aorta, beside the iliac vessels, and far from the intestinal wall were labeled as non-para-intestinal lymph nodes. All lymph nodes in each patient were numbered and assigned labels: para-intestinal lymph node label 1, non-para-intestinal lymph node label 0, and non-target lymph node label 2.
8. The method for classifying and partitioning abdominal and pelvic lymph nodes as described in claim 6, characterized in that, The image block segmentation of the abdominal and pelvic CT images includes: resampling the entire abdominal CT image to 1mm×1mm×1mm, using a zero-fill method to ensure that the size of all three dimensions of the entire abdominal CT image is divisible by 16, and obtaining basic image blocks by segmenting the image into 16×16×16 non-overlapping image blocks.
9. The method for classifying and partitioning abdominal and pelvic lymph nodes as described in claim 6, characterized in that, The local cropping based on the location information of the lymph nodes to be classified includes: cropping a 32×32×32 region centered on the centroid of the lymph nodes to be classified, and then dividing it into 8 cropped image blocks using 16×16×16 non-overlapping image blocks.
10. The method for classifying and partitioning abdominal and pelvic lymph nodes as described in claim 6, characterized in that, The extraction of base image patch features and cropped image patch features includes: inputting the base image patch and cropped image patch into the anatomical context base model to obtain 1024-dimensional features for each image patch, and setting a learnable 1024-dimensional vector in the cropped image patch; the three-class classification based on the modified cropped image patch features includes: inputting the modified cropped image patch features into four self-attention modules to obtain self-attention features, and using classification label features to connect to a fully connected layer to classify para-intestinal lymph nodes and non-para-intestinal lymph nodes.
