Brain midline detection method, system, terminal and storage medium
By using context-aware features to optimize network and structural connectivity priors in brain midline detection, the problem of poor detection performance in the existing technology is solved, and efficient and accurate brain midline detection is achieved, which is suitable for clinical diagnosis and pathology prediction. .
Patent Information
- Application Number
- CN202010523141.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-10
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2040-06-10
AI Technical Summary
The prior art of brain midline detection cannot be guaranteed in the existing technology, and the lack of modeling of contextual information results in poor detection performance.
Using a method based on the context-aware feature optimization network (CAR-Net) combined with structural connectivity priors, and training through the posture correction network, the context-aware feature optimization network and the midline regression network, an initial brain midline detection model was constructed, and through the connectivity regularization The loss function optimizes the model and improves detection performance.
It achieves efficient and accurate detection of the brain midline with different degrees of deviation, improves the performance of midline detection, ensures the connectivity and morphological prior of the midline, and is suitable for neurosurgical diagnosis and brain pathology prediction.
Smart Images

Figure CN111861989B
Abstract
Description
Technical Field
[0001] The present application relates to the field of medical image processing technology, and in particular to a brain midline detection method, system, terminal and storage medium. Background Art
[0002] The human brain is approximately symmetrical, and the midline of the brain is a straight line in healthy subjects and divides the left and right brains. However, various pathological conditions, such as traumatic brain injury, stroke, and brain tumors, may disrupt this symmetry, leading to midline shift. A large number of studies have shown that changes in the midline intracranial structure are helpful in diagnosing intracranial lesions; in addition, midline shift is also of certain value in predicting the level of consciousness of patients with various brain pathologies, such as acute intracranial hematoma, and the prognosis of patients with traumatic brain injury. In summary, early detection of patients with severe midline shift will help in the management of patients.
[0003] Brain midline imaging on CT is widely used, but the complexity and quantification of midline shift are still challenging and costly for clinicians. Therefore, computer-assisted automatic detection and measurement of brain midline can help doctors improve the accuracy and efficiency of midline shift assessment. However, in the existing automatic detection of brain midline, different brain CT images are not aligned and corrected, resulting in the inability to guarantee the prior of the regression method, and the lack of modeling of contextual information leads to poor performance of brain midline detection.
[0004] Therefore, there is an urgent need for a brain midline detection method, system, terminal and storage medium to solve the problems in related technologies that the priori of brain midline detection cannot be guaranteed and the poor performance of brain midline detection due to the lack of modeling of contextual information. Summary of the invention
[0005] In view of the deficiencies in the prior art, the present application provides a brain midline detection method, system, terminal and storage medium, which solve the problems in the prior art such as the inability to guarantee a priori and the poor performance of brain midline detection due to the lack of modeling of contextual information.
[0006] In order to solve the above technical problems, in a first aspect, the present application provides a brain midline detection method, comprising:
[0007] Obtain brain CT images and corresponding annotation data of patients with brain midline deviation;
[0008] The brain CT images and the corresponding annotated data are preprocessed and divided into a training set and a test set according to a preset ratio;
[0009] The training set is respectively input into a preset posture correction network, a context-aware feature optimization network, and a midline regression network for training to obtain an initial brain midline detection model;
[0010] The initial brain midline detection model is optimized and tested using the test set to obtain a brain midline detection model.
[0011] Optionally, the step of obtaining a brain CT image and corresponding annotation data of a patient with brain midline deviation includes:
[0012] The brain CT images of patients with brain midline shift were obtained through the hospital PACS system;
[0013] The labeled data is determined according to the doctor's labeling results of the patient's brain CT image.
[0014] Optionally, the preprocessing of the brain CT images and the corresponding annotated data and dividing them into a training set and a test set according to a preset ratio includes:
[0015] Performing grayscale normalization and three-dimensional correction transformation preprocessing on the brain CT image and its annotated data;
[0016] The preprocessed brain CT images and the corresponding annotated data are divided into a training set and a test set according to a preset ratio.
[0017] Optionally, the training set is respectively input into a preset posture correction network, a context-aware feature optimization network, and a midline regression network for training to obtain an initial brain midline detection model, including:
[0018] Inputting the brain CT image into a preset posture correction network to form a standard posture image;
[0019] Inputting the standard posture image into a preset context-aware feature optimization network, and outputting a midline longitudinal axis range and a midline region segmentation probability map;
[0020] Inputting the midline region segmentation probability map into a preset midline regression network, and outputting the midline coordinates;
[0021] The centerline vertical axis range is binarized by a preset threshold value, and a Hadamard product is performed with the centerline coordinates to output the final predicted centerline coordinates.
[0022] Optionally, performing an optimization test on the initial brain midline detection model using the test set to obtain the brain midline detection model includes:
[0023] Constructing a connectivity regularization loss function to optimize the brain midline detection model to obtain an optimized brain midline detection model;
[0024] The optimized brain midline detection model is tested using the test set, and the predicted midline coordinates of the test set are output;
[0025] Four distance indicators, namely, mean distance error (LDE), maximum shift distance error (MSDE), maximum surface distance (HD) at symmetric positions, and average surface distance (ASD) at symmetric positions, are calculated based on the predicted midline coordinates of the test set and the corresponding annotated data midline;
[0026] When the distance index of the optimized brain midline detection model exceeds that of the initial brain midline detection model, the optimized brain midline detection model is used as the brain midline detection model.
[0027] In a second aspect, the present application also provides a brain midline detection system, comprising:
[0028] An acquisition unit configured to acquire a brain CT image and corresponding annotation data of a patient with brain midline deviation;
[0029] A preprocessing unit configured to preprocess the brain CT image and the corresponding annotated data and divide them into a training set and a test set according to a preset ratio;
[0030] A model training unit, configured to input the training set into a preset posture correction network, a context-aware feature optimization network, and a midline regression network for training to obtain an initial brain midline detection model;
[0031] The model optimization unit is configured to perform optimization testing on the initial brain midline detection model through the test set to obtain the brain midline detection model.
[0032] Optionally, the acquiring unit is specifically used for:
[0033] The brain CT images of patients with brain midline shift were obtained through the hospital PACS system;
[0034] The labeled data is determined according to the doctor's labeling results of the patient's brain CT image.
[0035] Optionally, the preprocessing unit is specifically used for:
[0036] Performing grayscale normalization and three-dimensional correction transformation preprocessing on the brain CT image and its annotated data;
[0037] The preprocessed brain CT images and the corresponding annotated data are divided into a training set and a test set according to a preset ratio.
[0038] Optionally, the model training unit is specifically used for:
[0039] Inputting the brain CT image into a preset posture correction network to form a standard posture image;
[0040] Inputting the standard posture image into a preset context-aware feature optimization network, and outputting a midline longitudinal axis range and a midline region segmentation probability map;
[0041] Inputting the midline region segmentation probability map into a preset midline regression network, and outputting the midline coordinates;
[0042] The centerline vertical axis range is binarized by a preset threshold value, and a Hadamard product is performed with the centerline coordinates to output the final predicted centerline coordinates.
[0043] Optionally, the model optimization unit is specifically used for:
[0044] Constructing a connectivity regularization loss function to optimize the brain midline detection model to obtain an optimized brain midline detection model;
[0045] The optimized brain midline detection model is tested using the test set, and the predicted midline coordinates of the test set are output;
[0046] Four distance indicators, namely, mean distance error (LDE), maximum shift distance error (MSDE), maximum surface distance (HD) at symmetric positions, and average surface distance (ASD) at symmetric positions, are calculated based on the predicted midline coordinates of the test set and the corresponding annotated data midline;
[0047] When the distance index of the optimized brain midline detection model exceeds that of the initial brain midline detection model, the optimized brain midline detection model is used as the brain midline detection model.
[0048] In a third aspect, the present application provides a terminal, including:
[0049] processor, memory, wherein:
[0050] The memory is used to store computer programs.
[0051] The processor is used to call and run the computer program from the memory, so that the terminal executes the above-mentioned terminal method.
[0052] In a fourth aspect, the present application provides a computer storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the methods described in the above aspects.
[0053] Compared with the prior art, this application has the following beneficial effects:
[0054] 1. The present application discloses a brain midline detection method based on a context-aware feature optimization network (CAR-Net) combined with a structural connectivity prior, which can automatically detect brain midlines with different degrees of deviation, and can be used for subsequent measurement of brain midline deviation to obtain the coordinates of the deviation brain midline, thereby realizing efficient and accurate detection of the brain midline. It is not only beneficial to the clinical diagnosis of brain midline deviation by neurosurgeons, but also can provide prediction and prognosis evaluation for other brain-related pathologies.
[0055] 2. This application uses the ResNet network to correct brain images of different postures to obtain brain images of unified posture; optimizes network modeling through context-aware features to extract more discriminative contextual features, thereby improving the performance of centerline detection; and optimizes the structural connectivity loss function to achieve end-to-end optimization of the centerline, and can better guarantee the connectivity and morphological prior of the centerline. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0057] Figure 1 A flowchart of a brain midline detection method provided in an embodiment of the present application;
[0058] Figure 2 A schematic diagram of a network model of a brain midline detection method provided in an embodiment of the present application;
[0059] Figure 3 A visualization effect diagram of brain midline detection based on context-aware feature optimization combined with connectivity priors provided in an embodiment of the present application;
[0060] Figure 4 A schematic diagram of the structure of a brain midline detection system provided by another embodiment of the present application;
[0061] Figure 5 A schematic diagram of the structure of a terminal system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0062] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0063] Please refer to Figure 1 , Figure 1 A flowchart of a brain midline detection method provided in an embodiment of the present application, the method 100 includes:
[0064] S101: Acquire a brain CT image and corresponding annotation data of a patient with brain midline deviation;
[0065] S102: pre-processing the brain CT images and the corresponding annotated data and dividing them into a training set and a test set according to a preset ratio;
[0066] S103: inputting the training set into a preset posture correction network, a context-aware feature optimization network, and a midline regression network for training respectively, to obtain an initial brain midline detection model;
[0067] S104: Optimizing and testing the initial brain midline detection model using the test set to obtain a brain midline detection model.
[0068] Based on the above embodiment, as an optional embodiment, the step S101 of acquiring a brain CT image and corresponding annotation data of a patient with brain midline deviation includes:
[0069] The brain CT images of patients with brain midline shift were obtained through the hospital PACS system;
[0070] The labeled data is determined according to the doctor's labeling results of the patient's brain CT image.
[0071] Specifically, the brain CT (Siemens, Philips, GE, 16 / 32 rows, 120 kV) image data of patients with different degrees of brain midline deviation were obtained through the hospital PACS system. The CT image data format conforms to the Digital Imaging and Communications in Medicine (DICOM) standard. The scanning layer thickness is 5 mm. The examination method is supine position. The scanning range is from the skull base to the skull top. For each patient, a total of 10 CT slices with the largest brain area were selected.
[0072] The labeling process of brain midline deviation includes two parts. In the first stage, an attending physician marks the position of the deviated brain midline according to the diagnosis report. In the second stage, an associate chief physician reviews the previous markings, marks controversial cases, and discusses and corrects them. This serves as the gold standard for brain midline detection and is used for model training and evaluation.
[0073] Based on the above embodiment, as an optional embodiment, the S102 pre-processes the brain CT image and the corresponding annotated data and divides them into a training set and a test set according to a preset ratio, including:
[0074] Performing grayscale normalization and three-dimensional correction transformation preprocessing on the brain CT image and its annotated data;
[0075] The preprocessed brain CT images and the corresponding annotated data are divided into a training set and a test set according to a preset ratio.
[0076] Specifically, brain CT images and their annotated data are divided into training sets and test sets according to a specific ratio, where the training set is used for model training and optimal parameter selection, and the test data is used to evaluate the performance of the method.
[0077] Based on the above embodiment, as an optional embodiment, the S103 inputs the training set into a preset posture correction network, a context-aware feature optimization network, and a midline regression network for training to obtain an initial brain midline detection model, including:
[0078] Inputting the brain CT image into a preset posture correction network to form a standard posture image;
[0079] Inputting the standard posture image into a preset context-aware feature optimization network, and outputting a midline longitudinal axis range and a midline region segmentation probability map;
[0080] Inputting the midline region segmentation probability map into a preset midline regression network, and outputting the midline coordinates;
[0081] The centerline vertical axis range is binarized by a preset threshold value, and a Hadamard product is performed with the centerline coordinates to output the final predicted centerline coordinates.
[0082] Specifically, the brain midline detection model consists of three main parts: (a) posture correction, (b) midline localization, and (c) midline regression:
[0083] (a) Posture correction stage: Previous regression-based deep learning methods are based on the assumption that for each longitudinal coordinate, the midline pixel has at most one horizontal coordinate. However, in actual clinical applications, the above assumption does not always hold true in some extreme brain CT image postures. However, in the standard posture, the midline can satisfy the above assumption. Therefore, the present application uses a posture correction network to align the image with the standard posture. For the generation of standard posture images, since there is a gold standard for the midline, the deflection angle and the displacement relative to the center of the image can be found through the midline, so that the standard posture image can be obtained through a rotation and translation transformation, thereby forming an image and target image pair. The construction of the posture correction network uses a lightweight pre-trained ResNet-18 as the backbone network and minimizes the square loss function. The output of the posture correction network is a set of parameters of the rigid body transformation, representing the horizontal, vertical displacement and rotation angle respectively.
[0084] (b) Centerline localization stage: With the corrected standard posture image as input, the context-aware feature optimization network (CAR-Net) can be used to obtain the longitudinal range of the centerline in the centerline area and the centerline area segmentation probability map. Since the non-offset part of the centerline in the centerline detection task is easy to handle, it is difficult to accurately locate the offset part of the centerline with a larger deformation. Therefore, based on the feature pyramid representation generated by U-Net, a context-aware feature optimization module is added to locally optimize each scale feature and adaptively select the locally optimized scale features to explore more discriminative contextual features and obtain a larger receptive field, so as to better handle the centerline offset with a larger deformation. Specifically, Figure 2 As shown in the figure, several basic convolution blocks are first applied to optimize the feature maps of each scale generated by UNet to obtain locally optimized feature representations; then, the Squeeze-and-Excitation module is used as an adaptive feature selection module, which can select more informative local feature representations through the channel attention mechanism to extract more discriminative contextual features at a specific scale; finally, representative features at different levels are integrated through bilinear interpolation upsampling, cascading and a basic convolution block to form a context-aware optimized feature representation.
[0085] (c) Centerline regression stage: The coordinates of the centerline are predicted using the regression branch, which includes an optimization module consisting of a soft-argmax module, three residual modules, and a fully connected layer.
[0086] Based on the above embodiment, as an optional embodiment, the step S104 performs an optimization test on the initial brain midline detection model through the test set to obtain the brain midline detection model, including:
[0087] Constructing a connectivity regularization loss function to optimize the brain midline detection model to obtain an optimized brain midline detection model;
[0088] The optimized brain midline detection model is tested using the test set, and the predicted midline coordinates of the test set are output;
[0089] Four distance indicators, namely, mean distance error (LDE), maximum shift distance error (MSDE), maximum surface distance (HD) at symmetric positions, and average surface distance (ASD) at symmetric positions, are calculated based on the predicted midline coordinates of the test set and the corresponding annotated data midline;
[0090] When the distance index of the optimized brain midline detection model exceeds that of the initial brain midline detection model, the optimized brain midline detection model is used as the brain midline detection model.
[0091] It should be noted that for the supervision of the midline coordinates, previous regression-based methods only use the mean squared error loss (MSE), ignoring an important structural prior of the brain midline: the brain midline is a connected curve. These algorithms directly design deep learning models to predict coordinates. The predicted coordinates are independent of each other, and the connectivity prior between the coordinates is not considered, which may lead to the disconnection of the predicted midline. Based on the above observations, we propose a connectivity regularization loss function (CRL), which uses the structural connectivity prior of the brain midline to keep the shape of the predicted midline consistent with the gold standard midline.
[0092] Specifically, we first give the definition of midline connectivity: for the midline coordinate X = (x 1 , x 2 , ..., x n ) T , if for each i=2,3,...,n,|x i -x i-1 |≤δ, then we say that the midline coordinate X satisfies δ-connectivity. Next, we denote ΔX=(0, Δx 1 , Δx 1 , ..., Δx n ) T , where Δx i =x i -x i-1 , i=2, 3, ..., n.
[0093] Obviously, the derivation between Δx and x is as follows:
[0094]
[0095] The connectivity regularization loss function formula is as follows, where X is the predicted midline coordinate, Φ is the transformation matrix, and δ is the threshold interval. This loss function can effectively penalize the discontinuity between adjacent coordinates to ensure that the predicted midline coordinates meet the connectivity prior.
[0096]
[0097] In terms of model training, the midline vertical axis range uses the binary cross entropy function, the midline area segmentation uses the weighted cross entropy function, and the midline coordinate regression uses the L1 loss function and the connectivity regularization loss function. The important network hyperparameters are as follows: The learning rate is 1e -3 The number of iterations epoch is 200, and the Adam optimizer is used for parameter update.
[0098] This application uses four standard evaluation indicators for the centerline detection task to evaluate the centerlines detected by different methods: mean distance error (LDE), maximum shift distance error (MSDE), maximum surface distance (HD) at symmetric positions, and average surface distance (ASD) at symmetric positions. The four indicators are defined as follows:
[0099]
[0100]
[0101] Where X and Y are the predicted midline coordinate and the gold standard midline coordinate, respectively, and N is the length of the midline coordinate.
[0102]
[0103]
[0104] Where A and B represent the predicted midline and the gold standard midline respectively, S(A) represents the set of points in A, and d(v, S(A)) represents the shortest Euclidean distance from v to S(A).
[0105] The performance of midline detection is evaluated by calculating four distance indicators, LED, MSDE, HD and ASD, by predicting the midline and the gold standard midline. The quantitative experimental results are shown in the following table. This method can well detect the brain midline with different offsets, and has good performance in the average distance error indicators (LDE and ASD) and the maximum distance error indicators (MSDE and HD). Using the connectivity regularization loss function can further improve the performance of the model.
[0106] Figure 3 Four visualization effects of brain midline detection based on context-aware feature optimization combined with connectivity prior are shown. The first row is the prediction of the model, and the second row is the gold standard midline. It can be seen that the method proposed in this application can handle midlines of various degrees of deviation very well, and has great application value in clinical diagnosis.
[0107] Model Structural connectivity loss function LDE MSDE HD ASD CAR-Net Not used 1.08(1.02) 3.24(2.99) 2.84(2.76) 1.06(0.89) CAR-Net use 1.08(1.00) 3.07(2.65) 2.70(2.44) 1.07(0.89)
[0108] Please refer to Figure 4 , Figure 4 A schematic diagram of the structure of a brain midline detection system provided in an embodiment of the present application, the system 400 includes:
[0109] An acquisition unit 401 is configured to acquire a brain CT image and corresponding annotation data of a patient with brain midline deviation;
[0110] A preprocessing unit 402 is configured to preprocess the brain CT image and the corresponding annotated data and divide them into a training set and a test set according to a preset ratio;
[0111] A model training unit 403 is configured to input the training set into a preset posture correction network, a context-aware feature optimization network, and a midline regression network for training to obtain an initial brain midline detection model;
[0112] The model optimization unit 404 is configured to perform optimization testing on the initial brain midline detection model using the test set to obtain a brain midline detection model.
[0113] Based on the above embodiment, as an optional embodiment, the acquisition unit 401 is specifically used for:
[0114] The brain CT images of patients with brain midline shift were obtained through the hospital PACS system;
[0115] The labeled data is determined according to the doctor's labeling results of the patient's brain CT image.
[0116] Based on the above embodiment, as an optional embodiment, the preprocessing unit 402 is specifically used for:
[0117] Performing grayscale normalization and three-dimensional correction transformation preprocessing on the brain CT image and its annotated data;
[0118] The preprocessed brain CT images and the corresponding annotated data are divided into a training set and a test set according to a preset ratio.
[0119] Based on the above embodiment, as an optional embodiment, the model training unit 403 is specifically used for:
[0120] Inputting the brain CT image into a preset posture correction network to form a standard posture image;
[0121] Inputting the standard posture image into a preset context-aware feature optimization network, and outputting a midline longitudinal axis range and a midline region segmentation probability map;
[0122] Inputting the midline region segmentation probability map into a preset midline regression network, and outputting the midline coordinates;
[0123] The centerline vertical axis range is binarized by a preset threshold value, and a Hadamard product is performed with the centerline coordinates to output the final predicted centerline coordinates.
[0124] Based on the above embodiment, as an optional embodiment, the model optimization unit 404 is specifically used for:
[0125] Constructing a connectivity regularization loss function to optimize the brain midline detection model to obtain an optimized brain midline detection model;
[0126] The optimized brain midline detection model is tested using the test set, and the predicted midline coordinates of the test set are output;
[0127] Four distance indicators, namely, mean distance error (LDE), maximum shift distance error (MSDE), maximum surface distance (HD) at symmetric positions, and average surface distance (ASD) at symmetric positions, are calculated based on the predicted midline coordinates of the test set and the corresponding annotated data midline;
[0128] When the distance index of the optimized brain midline detection model exceeds that of the initial brain midline detection model, the optimized brain midline detection model is used as the brain midline detection model.
[0129] Please refer to Figure 5 , Figure 5 This is a schematic diagram of the structure of a terminal system 500 provided in an embodiment of the present application. The terminal system 500 can be used to execute the brain midline detection method provided in an embodiment of the present invention.
[0130] The terminal system 500 may include: a processor 501, a memory 502 and a communication unit 503. These components communicate via one or more buses. Those skilled in the art will appreciate that the server structure shown in the figure does not limit the present invention, and it may be a bus structure or a star structure, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0131] The memory 502 can be used to store the execution instructions of the processor 501. The memory 502 can be implemented by any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. When the execution instructions in the memory 502 are executed by the processor 501, the terminal system 500 can perform some or all of the steps in the following method embodiments.
[0132] The processor 501 is the control center of the storage terminal, and uses various interfaces and lines to connect various parts of the entire electronic terminal. It runs or executes software programs and / or modules stored in the memory 502, and calls data stored in the memory to perform various functions of the electronic terminal and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of a plurality of packaged ICs with the same or different functions. For example, the processor 501 can include only a central processing unit (CPU). In the embodiment of the present invention, the CPU can be a single computing core or multiple computing cores.
[0133] The communication unit 503 is used to establish a communication channel so that the storage terminal can communicate with other terminals, receive user data sent by other terminals or send user data to other terminals.
[0134] The present application also provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment provided by the present invention. The storage medium may be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).
[0135] The present application discloses a brain midline detection method based on a context-aware feature optimization network (CAR-Net) combined with a structural connectivity prior, which can automatically detect brain midlines with different degrees of deviation, and can be used for subsequent measurements of brain midline deviation to obtain the coordinates of the deviated brain midline, thereby realizing efficient and accurate detection of the brain midline. It is not only beneficial to the clinical diagnosis of brain midline deviation by neurosurgeons, but also can provide prediction and prognosis evaluation for other brain-related pathologies. The present application corrects brain images of different postures through a ResNet network to obtain brain images of a unified posture; through context-aware feature optimization network modeling, more discriminative contextual features are extracted to improve the performance of midline detection; through structural connectivity loss function optimization, end-to-end optimization of the midline can be achieved, and the connectivity and morphological prior of the midline can be better guaranteed.
[0136] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the system provided in the embodiment, since it corresponds to the method provided in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0137] Specific examples are used herein to illustrate the principles and implementation methods of the present application, and the description of the above embodiments is only used to help understand the method and core ideas of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
[0138] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
Claims
1. A brain midline detection method, characterized in that: include: Obtain brain CT images and corresponding annotation data of patients with brain midline deviation; The brain CT images and the corresponding annotated data are preprocessed and divided into a training set and a test set according to a preset ratio; Inputting the training set into a detection model including a preset posture correction network, a context-aware feature optimization network, and a midline regression network for training to obtain an initial brain midline detection model; Performing optimization test on the initial brain midline detection model through the test set to obtain a brain midline detection model; The training set is input into a detection model including a preset posture correction network, a context-aware feature optimization network, and a midline regression network for training to obtain an initial brain midline detection model, including: Inputting the brain CT image into a preset posture correction network to form a standard posture image; the posture correction network includes a ResNet-18 network; Inputting the standard posture image into a preset context-aware feature optimization network, and outputting a midline longitudinal axis range and a midline region segmentation probability map; the context-aware feature optimization network includes a U-Net network and a Squeeze-and-Excitation module; The midline region segmentation probability map is input into a preset midline regression network, and the midline coordinates are output; the midline regression network includes a regression branch, and the regression branch includes an optimization module consisting of a Soft-argmax module, three residual modules, and a fully connected layer; Binarize the midline vertical axis range by a preset threshold, perform a Hadamard product with the midline coordinates, and output the predicted midline coordinates; The initial brain midline detection model is trained based on the predicted midline coordinates.
2. The brain midline detection method according to claim 1, characterized in that: The method of obtaining a brain CT image and corresponding annotation data of a patient with brain midline deviation includes: The brain CT images of patients with brain midline shift were obtained through the hospital PACS system; The labeled data is determined according to the doctor's labeling results of the patient's brain CT image.
3. The brain midline detection method according to claim 1, characterized in that: The step of preprocessing the brain CT images and the corresponding annotated data and dividing them into a training set and a test set according to a preset ratio comprises: Performing grayscale normalization and three-dimensional correction transformation preprocessing on the brain CT image and its annotated data; The preprocessed brain CT images and the corresponding annotated data are divided into a training set and a test set according to a preset ratio.
4. The brain midline detection method according to claim 1, characterized in that: The optimizing test of the initial brain midline detection model by using the test set to obtain the brain midline detection model includes: Constructing a connectivity regularization loss function to optimize the initial brain midline detection model to obtain an optimized brain midline detection model; The optimized brain midline detection model is tested using the test set, and the predicted midline coordinates of the test set are output; Four distance indicators, namely, mean distance error (LDE), maximum shift distance error (MSDE), maximum surface distance (HD) at symmetric positions, and average surface distance (ASD) at symmetric positions, are calculated based on the predicted midline coordinates of the test set and the corresponding annotated data midline; When the distance index of the optimized brain midline detection model exceeds that of the initial brain midline detection model, the optimized brain midline detection model is used as the brain midline detection model.
5. A brain midline detection system, characterized in that: include: An acquisition unit configured to acquire a brain CT image and corresponding annotation data of a patient with brain midline deviation; A preprocessing unit configured to preprocess the brain CT image and the corresponding annotated data and divide them into a training set and a test set according to a preset ratio; A model training unit configured to input the training set into a detection model including a preset posture correction network, a context-aware feature optimization network, and a midline regression network for training to obtain an initial brain midline detection model; A model optimization unit, configured to perform an optimization test on the initial brain midline detection model using the test set to obtain a brain midline detection model; The model training unit is specifically used for: Inputting the brain CT image into a preset posture correction network to form a standard posture image; the posture correction network includes ResNet-18; Inputting the standard posture image into a preset context-aware feature optimization network, and outputting a midline longitudinal axis range and a midline region segmentation probability map; the context-aware feature optimization network includes a U-Net network and a Squeeze-and-Excitation module; The midline region segmentation probability map is input into a preset midline regression network, and the midline coordinates are output; the midline regression network includes a regression branch, and the regression branch includes an optimization module consisting of a Soft-argmax module, three residual modules, and a fully connected layer; Binarize the midline vertical axis range by a preset threshold, perform a Hadamard product with the midline coordinates, and output the predicted midline coordinates; The initial brain midline detection model is trained based on the predicted midline coordinates.
6. The brain midline detection system according to claim 5, characterized in that: The acquisition unit is specifically used for: The brain CT images of patients with brain midline shift were obtained through the hospital PACS system; The labeled data is determined according to the doctor's labeling results of the patient's brain CT image.
7. The brain midline detection system according to claim 5, characterized in that: The pre-processing unit is specifically used for: Performing grayscale normalization and three-dimensional correction transformation preprocessing on the brain CT image and its annotated data; The preprocessed brain CT images and the corresponding annotated data are divided into a training set and a test set according to a preset ratio.
8. The brain midline detection system according to claim 5, characterized in that: The model optimization unit is specifically used for: Constructing a connectivity regularization loss function to optimize the initial brain midline detection model to obtain an optimized brain midline detection model; The optimized brain midline detection model is tested using the test set, and the predicted midline coordinates of the test set are output; Four distance indicators, namely, mean distance error (LDE), maximum shift distance error (MSDE), maximum surface distance (HD) at symmetric positions, and average surface distance (ASD) at symmetric positions, are calculated based on the predicted midline coordinates of the test set and the corresponding annotated data midline; When the distance index of the optimized brain midline detection model exceeds that of the initial brain midline detection model, the optimized brain midline detection model is used as the brain midline detection model.
9. A terminal, characterized in that: include: processor; A memory for storing execution instructions of the processor; The processor is configured to execute the method according to any one of claims 1 to 4.
10. A computer-readable storage medium storing a computer program, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
MRI brain tumor segmentation method and system based on pyramid scene analysis network
CN110047068A
Medical image scanning automatic positioning method based on deep learning
CN110223352A
Medical image processing method and device for brain centerline detection, equipment and storage medium
CN110443808A
Network model training method and device and region division method and device
CN110766701A
Method and System for Segmentation of Brain Structures in 3D Magnetic Resonance Images
US20100074499A1
