Method and system for automatically sketching radiation target area and endangered organ

Through the multi-branch network module and the skip-connected LovElanU-Net algorithm, the problem of insufficient accuracy and speed in delineating radiation target areas and organs at risk in the existing technology is solved, and high-precision segmentation of complex abdominal CT images is achieved, improving the efficiency of radiation therapy. Treatment accuracy and efficiency.

CN118537355APending Publication Date: 2024-08-23SHANDONG UNIV +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410530533.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-29
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The existing automatic delineation technology of radiation target areas and organs at risk has limitations in accuracy, speed and applicability, especially when dealing with complex anatomical structures or diseased tissues, it is difficult to achieve accurate delineation.

Method used

Multiple multi-branch network modules are used to extract CT scan image information, and features of different scales are fused through skip connections. Combined with the encoder and decoder structures, the Dynamic Shift-Max activation function is used to design the LovElanU-Net algorithm to achieve complex abdominal CT images. High-precision segmentation.

Benefits of technology

It significantly improves the accuracy and efficiency of automatic delineation of radiation target areas and organs at risk, can effectively deal with complex lesions, reduces the time-consuming target area update, and improves the accuracy and convenience of radiotherapy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537355A
    Figure CN118537355A
Patent Text Reader

Abstract

The invention provides an automatic sketching method and system for a radiation target area and an organ at risk, and belongs to the technical field of image processing. According to the method, a radiation target region and organ segmentation algorithm LovElanU-Net is constructed, the algorithm uses a plurality of multi-branch network modules to fully extract CT image information and uses jump connection to fuse a plurality of different scale features to cope with various complex lesion conditions, the problem that an existing algorithm is insufficient in segmentation accuracy of a complex abdominal cavity CT image is solved, and the accuracy of segmentation of the complex abdominal cavity CT image is improved. A plurality of multi-branch network modules are used for fully extracting the information of the CT scanning image, and a plurality of different scale features are fused by using jump connection, so that various complicated lesion conditions can be dealt with, and the segmentation accuracy of the complicated abdominal cavity CT scanning image is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to a method for automatically outlining a radiation target area and organs at risk, a system for automatically outlining a radiation target area and organs at risk, a computer device, a computer-readable storage medium and a computer program product. Background Art

[0002] The statements in this section merely provide background art related to the present invention and do not necessarily constitute prior art.

[0003] Radiation therapy is a common cancer treatment method, and its success often depends on the accuracy and precision of the treatment plan. During radiotherapy treatment, accurately outlining the tumor target area and its surrounding organs at risk is crucial to ensure treatment effectiveness and reduce side effects.

[0004] Traditional outlining methods usually rely on doctors' subjective judgment and manual drawing, which are highly subjective, time-consuming, and prone to errors. With the development of computer vision and artificial intelligence technology, automated outlining technology using deep learning has gradually attracted attention. However, existing automated outlining technology still has certain limitations in terms of accuracy, speed, and applicability, mainly because it is difficult to accurately outline complex anatomical structures or diseased tissues. Summary of the invention

[0005] In order to solve the problems of long time consumption and low accuracy of the delineation methods in the prior art, the present invention provides a method and system for automatically delineating radiation target areas and organs at risk, which uses multiple multi-branch network modules to fully extract the information of CT scan images and uses jump connections to fuse multiple features of different scales. It can cope with various complex pathological conditions and improve the segmentation accuracy of complex abdominal CT scan images.

[0006] In order to achieve the above object, the present invention adopts the following technical solution:

[0007] In a first aspect, the present invention provides a method for automatically delineating radiation target areas and organs at risk.

[0008] A method for automatically delineating a radiation target area and organs at risk includes the following steps:

[0009] According to the CT scan image to be processed, the height and width of the CT scan image are halved by using the first Conv module, and the dimension of the CT scan image is mapped to the set number of channels C, and the channel dimension is mapped to 2C by the second Conv module;

[0010] The image processed by the second Conv module is processed by the encoder and decoder in sequence. The encoder includes four stages connected in sequence. Each stage includes the first Rnceblock module and the second Rnceblock module connected in sequence. The end of the first three stages of the encoder is connected with a Down module. The number of channels in each stage is 2C, 4C, 8C and 16C respectively.

[0011] The decoder includes four stages connected in sequence, each stage includes a first Rnceblock module and a second Rnceblock module connected in sequence, and the initial positions of the last three stages of the decoder are connected with up-conv modules, and the number of channels in each stage is 16C, 8C, 4C and 2C respectively;

[0012] The output of the decoder passes through the up-conv module and the third Conv module in sequence to obtain the final delineation results of the radiation target area and organs at risk.

[0013] As a further limitation of the first aspect of the present invention, the first Conv module, the second Conv module and the third Conv module all include: a convolution, a batch normalization module and a SiLU activation function connected in sequence.

[0014] As a further limitation of the first aspect of the present invention, the four stages of the encoder are respectively the first stage, the second stage, the third stage and the fourth stage, and the four stages of the decoder are respectively the first stage, the second stage, the third stage and the fourth stage;

[0015] The first stage input of the encoder is jump-connected to the fourth stage output of the decoder, the second stage input of the encoder is jump-connected to the third stage output of the decoder, the third stage input of the encoder is jump-connected to the second stage output of the decoder, and the fourth stage input of the encoder is jump-connected to the first stage output of the decoder.

[0016] As a further limitation of the first aspect of the present invention, the first Rnceblock module and the second Rnceblock module each include:

[0017] The number of channels is adjusted through the convolution layer. The output features of the convolution layer are divided into three parts. The first part is directly passed to the next layer, denoted as Y1; the second part is denoted as Y2 after passing through a convolution operation and a RepNCSP module in sequence; the third part is denoted as Y3 after passing through a RepNCSP module and a convolution operation; Y3 is denoted as Y4 after passing through a RepNCSP module and a convolution operation; Y1, Y2, Y3 and Y4 are spliced ​​together according to the number of channels, and the output result is obtained through a convolution operation;

[0018] The RepNCSP module includes a Conv module and a DNBottleneck. The input feature map is first divided into two parts according to the number of channels. One part undergoes a convolution operation and then a DNBottleneck module, and the other part directly undergoes a convolution operation. Finally, the feature maps obtained from these two parts are spliced ​​together according to the number of channels and fused through a convolution operation to obtain the final output feature map.

[0019] In DNBottleneck, the input features are divided into two branches according to the number of channels: one branch is processed by the first convolution, and the other branch is processed by the second convolution. The feature maps obtained by these two branches are added element by element, and further fused after the Dynamic Shift-Max activation function and the third convolution. The fused result is residually connected with the input of DNBottleneck to obtain the final output feature map.

[0020] As a further limitation of the first aspect of the present invention, registering the CT scan image of a period of radiotherapy with the original segmented image to update the radiation target area includes:

[0021] A feature extraction algorithm is used to extract feature points from each CT scan image, and a feature matching algorithm is used to find the corresponding feature points in the two images. Based on the matched feature points, the RANSAC algorithm is used to estimate the transformation relationship between the two images. Based on the estimated transformation relationship, an affine transformation in OpenCV is used to transform one image to align it with the other image.

[0022] As a further limitation of the first aspect of the present invention, the loss function of the model is delineated, including: L lovasz(P,y) =SoftmaxLoss(p,y)+LovaszHingeloss(p,y);

[0023] Among them, SoftmaxLoss represents the Softmax loss function, and LovaszHingeLoss represents the Lovasz hige loss function;

[0024] LovaszHingeLoss(p,y)=LovaszHinge(p,y)+LovaszHinge(-p,1-y);

[0025]

[0026] Among them, p is the predicted value, y is the true label, n is the number of samples, LovasehingeSingle(p i ,y i ) represents the Lovasz hinge loss for a single sample, Represents the vector obtained by reordering the predicted probability p according to the order of the true label y, represents the i-th predicted probability after reordering, Represents the predicted probability corresponding to the true label y.

[0027] In a second aspect, the present invention provides a radiation target area and organ at risk automatic delineation system, comprising:

[0028] The pre-processing unit is configured to: according to the CT scan image to be processed, use the first Conv module of the outline model to halve the height and width of the CT scan image, and map the dimension of the CT scan image to a set number of channels C, and map the channel dimension to 2C through the second Conv module;

[0029] The encoding processing unit is configured as follows: the image processed by the second Conv module is processed by an encoder and a decoder in sequence, the encoder includes four stages connected in sequence, each stage includes a first Rnceblock module and a second Rnceblock module connected in sequence, the ends of the first three stages of the encoder are connected with a Down module, and the number of channels in each stage is 2C, 4C, 8C and 16C respectively;

[0030] The decoding processing unit is configured as follows: the decoder includes four stages connected in sequence, each stage includes a first Rnceblock module and a second Rnceblock module connected in sequence, the initial positions of the last three stages of the decoder are connected with up-conv modules, and the number of channels of each stage is 16C, 8C, 4C and 2C respectively;

[0031] The post-processing unit is configured as follows: the output of the decoder passes through the up-conv module and the third Conv module in sequence to obtain the final delineation results of the radiation target area and the organs at risk.

[0032] In a third aspect, the present invention provides a computer device, comprising: a processor and a computer-readable storage medium;

[0033] a processor adapted to execute a computer program;

[0034] A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by the processor, the method for automatically delineating radiation target areas and organs at risk as described in the first aspect of the present invention is implemented.

[0035] In a fourth aspect, the present invention provides a computer-readable storage medium storing a computer program, wherein the computer program is suitable for being loaded by a processor and executing the method for automatically delineating radiation targets and organs at risk as described in the first aspect of the present invention.

[0036] In a fifth aspect, the present invention provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the method for automatically delineating radiation target areas and organs at risk as described in the first aspect of the present invention.

[0037] Compared with the prior art, the present invention has the following beneficial effects:

[0038] 1. The present invention automatically delineates radiation target areas and organs at risk based on a deep learning method. By training a deep neural network model, it realizes automatic segmentation and recognition of target areas and organs in medical images, thereby greatly improving the accuracy and efficiency of delineation.

[0039] 2. The present invention proposes a radiation target and organ segmentation algorithm LovElanU-Net, which uses multiple multi-branch network modules to fully extract CT image information and uses jump connections to fuse multiple different scale features to cope with various complex pathological conditions and solve the problem of insufficient accuracy of existing algorithms for complex abdominal CT image segmentation.

[0040] 3. The model of the present invention uses the Dynamic Shift-Max activation function multiple times to improve the convergence speed and reasoning speed of the model, automatically segmenting the radiotherapy target area and organs at risk for abdominal organ cancer, effectively utilizing information, and significantly improving the prediction accuracy.

[0041] 4. The present invention updates the radiation area through the image registration method, which can avoid re-segmentation, thereby saving a lot of time, significantly improving the efficiency of the entire process, and making the update of the target area of ​​radiotherapy more convenient and faster.

[0042] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0044] Figure 1 A schematic diagram of the structure of the LovElanU-Net network model provided in Example 1 of the present invention;

[0045] Figure 2A schematic diagram of the structure of a Conv module provided in Example 1 of the present invention;

[0046] Figure 3 A schematic diagram of the structure of the Rnceblock module provided in Example 1 of the present invention;

[0047] Figure 4 A schematic diagram of the RepNCSP network structure provided in Example 1 of the present invention;

[0048] Figure 5 A schematic diagram of the DNBottleneck structure provided in Example 1 of the present invention;

[0049] Figure 6 A schematic diagram of the Dynamic Shift-Max activation function provided in Example 1 of the present invention;

[0050] Figure 7 A schematic diagram of the structure of a Down module provided in Example 1 of the present invention;

[0051] Figure 8 A schematic diagram of the up-conv module flow chart provided in Example 1 of the present invention;

[0052] Fig. 9 A schematic diagram of a radiation target area and organ at risk automatic delineation system provided in Example 2 of the present invention;

[0053] Fig.10 This is a schematic diagram of an electronic device provided in Example 3 of the present invention. DETAILED DESCRIPTION

[0054] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0055] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0056] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.

[0057] Embodiment 1:

[0058] This implementation proposes a method for automatically outlining radiation target areas and organs at risk, and uses a trained outlining model to automatically outline the radiation target areas and organs at risk on the CT scan image to be processed.

[0059] Specifically, the training of the delineation model includes: preprocessing the WORD data set; building a LovElanU-Net segmentation model; constructing a Lovasz-Sofmax loss function to measure the difference between the actual value and the predicted value output when training the LovElanU-Net segmentation model; using the preprocessed training set to train the LovElanU-Net segmentation model, using the preprocessed validation set to optimize the LovElanU-Net segmentation model, and saving the optimal model; inputting the test set into the optimal model, and outputting the automatic delineation results of the radiotherapy target area and organs at risk; aligning the CT image after radiotherapy with the original segmented image, and updating the radiation target area.

[0060] The present invention adopts the WORD2021 dataset, which is a large-scale abdominal organ segmentation CT dataset suitable for medical image processing and segmentation tasks. The dataset includes 150 CT scan data that fully cover the abdominal area and provide detailed annotations for 16 different abdominal organs. These data are divided into 100 for training, 20 for verification, and 30 for testing.

[0061] There may be artifacts and spots in the original CT image, which will affect the performance of model training. The present invention adopts two filter denoising processing methods to reduce the noise in the image, including Gaussian filtering and bilateral filtering.

[0062] Specifically, this implementation adopts a 3×3 Gaussian filter, sets the standard deviation to 0.01 to control the smoothness of the filter, and performs a convolution operation on the generated Gaussian kernel and the original image; during the convolution process, each element of the filter is multiplied by the pixel value at the corresponding position of the image, and then the results are added to obtain the pixel value after convolution, and the formula is as follows:

[0063]

[0064] Where H(i, j) is the value of the Gaussian filter, i and j are the spatial positions of the filter, and σ is the standard deviation of the Gaussian filter.

[0065] The present invention uses bilateral filtering with a spatial domain standard deviation of 5, a gray value domain standard deviation of 3, and a filter window size of 3. For each pixel in the image, its final value is calculated by applying the spatial domain weight and the pixel value weight. Specifically, for each pixel in the template, its pixel value is multiplied by the weight and then weighted averaged, and the formula is as follows:

[0066]

[0067] Where (i, j) is the pixel coordinate of the input image I, Ω is a filter template centered at (x, y), ω(i, j, x, y) is the spatial domain weight, which indicates the influence of pixel (i, j) on pixel (x, y), g(||I(i, j)-I(x, y)||) is the pixel value weight, which indicates the influence of pixel value difference on the weight, and W p is a normalization factor used to ensure that the output pixel values ​​are within a reasonable range.

[0068] In this implementation, a LovElanU-Net segmentation algorithm is proposed. The algorithm model structure is as follows: Figure 1 As shown in the figure, it consists of an encoder, a decoder, two Conv modules in each input part (i.e., the first Conv module and the second Conv module), up-conv in the output part, the third Conv module, and a jump connection. In LovElanU-Net, the first Conv module halves the height and width of the input image and maps the image dimension to the number of channels C, which defaults to 64, and then the second Conv module maps the channel dimension to 2C. The encoder consists of four stages. The Down module is applied at the end of the first three stages to reduce the height and width of the input features and increase the number of channels. Each stage uses 2 Rnceblock modules, and the number of channels in each stage is 2C, 4C, 8C, and 16C, respectively. The decoder is similar to the encoder and is also divided into four stages. In the last three stages, up-conv modules are used to reduce feature channels. Each stage also uses 2 Rnceblock modules, and the number of channels in each stage is 16C, 8C, 4C, and 2C, respectively. After the decoder, the feature map is restored to a size that matches the segmentation target through the up-conv module and the third Conv module. In the jump connection, the feature maps of the corresponding stages of the encoder and decoder are simply added together using the addition operation without introducing additional parameters. This design is intended to help the network better capture features of different scales and improve the accuracy and robustness of segmentation.

[0069] The structure of the Conv module is as follows Figure 2 As shown in the figure, the module consists of a convolution with a convolution kernel of 3 and a stride of 2, a batch normalization module and a SiLU activation function. The batch normalization layer is a technology used to accelerate the training of deep neural networks. It normalizes the input on each small batch of data and then rescales and translates it through learnable scaling and translation parameters. The SiLU function is an activation function similar to ReLU. Its advantage is that it has a smoother derivative while maintaining nonlinear characteristics. By combining the batch normalization layer and SiLu, the Conv module can effectively improve the training speed and convergence of the network.

[0070] The present invention proposes a Rnceblock module, such as Figure 3 As shown in the figure, it combines the ideas of CSP (Cross Stage Partial) and ELAN (Efficient Lightweight Attention Network). It is mainly composed of Conv module and RepNCSP module for feature extraction and processing. In the forward propagation process, the input features first pass through a (1, 1) convolution layer to adjust the number of channels. Then, the input features are divided into three parts: the first part is directly passed to the next layer (denoted as Y1); the second part passes through a (3, 2, 1) convolution operation and a RepNCSP module (denoted as Y2); the third part passes through the RepNCSP module and a (3, 2, 1) convolution operation (denoted as Y3), and Y3 passes through a RepNCSP module and a (5, 2, 1) convolution operation (denoted as Y4); finally, Y1, Y2, Y3 and Y4 are spliced ​​together according to the number of channels, and a (1, 1) convolution operation is performed to obtain the output result of the module. The multi-branch structure of the Rnceblock module utilizes the feature extraction capabilities of different convolution kernels, enabling the module to better extract information on features of different scales in CT images and improve the detection capabilities of smaller target areas.

[0071] The RepNCSP module consists of a Conv module and a DNBottleneck, such as Figure 4 As shown in the figure, it is used to extract features from the input feature map; the input feature map is first divided into two parts according to the number of channels; one part undergoes a (1, 1) convolution operation and then passes through a DNBottleneck module; the other part directly passes through a (1, 1) convolution operation; finally, the feature maps obtained from the two parts are spliced ​​together according to the number of channels and fused through a (1, 1) convolution operation to obtain the final output feature map.

[0072] The structure of DNBottleneck is as follows Figure 5 As shown in the figure, combined with the Conv module and the Dynamic Shift-Max activation function, first, the input features are divided into two branches according to the number of channels: one branch is processed by the (3, 1, 1) convolution, and the other branch is processed by the (1, 1) convolution. Then, the feature maps obtained from these two branches are added element by element, and further fused by the DynamicShift-Max activation function and the (3, 1, 1) convolution. Finally, the fused result is residually connected with the output of the module to obtain the final output feature map.

[0073] Dynamic Shift-Max activation function has better nonlinear expression ability such as Figure 6As shown in the figure, it combines the Shift and Max operations of dynamic learnable parameters, enhancing the nonlinear ability of the model without increasing the computational complexity. The residual connection can promote the flow of information, alleviate the gradient vanishing problem during training, and accelerate the training speed of the network. Therefore, the combination of these technologies helps to improve the adaptability of the network to hardware devices.

[0074] The present invention proposes that the Down module plays the role of downsampling in the encoder part of LovElanU-Net, such as Figure 7 As shown in the figure, it is used to reduce the size of the feature map. This module consists of an average pooling layer, a fully connected layer, and a maximum pooling layer. First, the feature map passes through a (2, 1) average pooling layer to reduce its height and width to half of the original feature map. Then, it passes through a fully connected layer for further feature extraction. Finally, after passing through a (3, 2, 1) maximum pooling layer, the output feature map is obtained. This design helps to improve the network's perceptual field and abstraction ability, while reducing the amount of calculation and speeding up feature extraction.

[0075] The up-conv module is responsible for upsampling in the decoder to increase the size of the feature map, such as Figure 8 As shown in the figure, the workflow is as follows: first, the input feature map is subjected to an upsample operation and a 3×3 convolution kernel for feature extraction; then, the obtained feature map is processed by batch normalization and ReLU activation function, and then further features are extracted by a 3×3 convolution kernel, batch normalization and ReLU activation function, and finally the output feature map is obtained. This design can effectively increase the size of the feature map, which is conducive to recovering more detail information and further improving the performance of the segmentation model; Figure 8 In the figure, (1, 1) means the kernel size is 1 and the stride is 1, (2, 1) means the kernel size is 2 and the stride is 1, and (3, 2, 1) means the kernel size is 3, the stride is 2, and the padding is 1.

[0076] In this implementation, the training set is input into the built LovElanU-Net network model. After setting the hyperparameters, 150 rounds of training are started, and the training model is verified with the validation set. Finally, the model with the best test file is selected as the trained LovElanU-Net network model, and the test weight file is saved.

[0077] Specifically, when training the LovElanU-Net network model, the training set is first used as the image for each epoch training to determine the parameter variables obtained by the model through learning; then, the validation set is used for verification in the later stage of the training process to determine the network structure and adjust the model parameters; the learning rate is updated in segments during the training process to help the model better adapt to the training data, and the optimization of the network structure and parameters is guided by monitoring the performance in the verification stage.

[0078] The hardware system configuration is Ubuntu 18.04, Python 3.9, Pytorch 2.0.1, CUDA 11.3, and NVIDIA RTX 3090 GPU with 24GB video memory is used for training and testing. In order to maximize the best results of retaining the high-quality features learned by the model, the training settings are as follows: the input image size is 640×640, training is 150 epochs, the optimizer selects the Adam optimizer, the initial learning rate is 0.001, the beta values ​​are set to 0.9 and 0.999 respectively, the batch size is 16, and the network uses pre-trained weights.

[0079] The Lovasz-Sofmax loss function is used in the training model stage of the present invention, which combines the advantages of the Lovasz expansion loss and the Softmax loss, aims to optimize the performance of the model, and is particularly suitable for dealing with cases where the categories are unbalanced and the segmentation boundaries are unclear. Compared with the cross entropy loss function, the Lovasz-Softmax loss function is more stable and can better handle the problem of category imbalance in segmentation tasks. It more accurately measures the difference between the prediction results and the true labels by considering the order of the prediction results and the smoothness of the segmentation boundaries, thereby improving the generalization ability and segmentation effect of the model. The mathematical expression of the Lovasz-Softmax loss function is as follows:

[0080] l lovasz(P,y) =SoftmaqxLoss(p,y)+LovaszHingeloss(p,y) (3);

[0081] Among them, SoftmaxLoss represents the Softmax loss function, LovaszHingeLoss represents the Lovasz hige loss function, and the Softmax loss function is defined as follows:

[0082]

[0083] Where N is the number of samples, C is the number of categories, and y ic represents the true label of the cth category of sample i, p ic represents the predicted probability of the cth category of sample i.

[0084] The Lovase Hige loss function is defined as follows:

[0085] LovaszHingeLoss(p,y)=LovaszHinge(p,y)+LovaszHinge(-p,1-y) (5);

[0086] Among them, LovaszHinge(p, y) represents the Lovasz hinge function, which is a loss function based on permutation invariance, used to deal with incomplete classification and maintain the continuity and smoothness of the segmentation results. The mathematical expression of Lovasz hinge loss is as follows:

[0087]

[0088] Where p is the predicted value, y is the true label, n is the number of samples, LovasehingeSingle(p i ,y i ) represents the Lovasz hinge loss for a single sample, which is defined as follows:

[0089]

[0090] in, Represents the vector obtained by reordering the predicted probability p according to the order of the true label y, represents the i-th predicted probability after reordering, Represents the predicted probability corresponding to the true label y. The reordering rule is to put the position with the true label 1 in front and the position with the label 0 in the back.

[0091] After training, the LovElanU-Net model of the present invention is applied to the sample data in the test set for segmentation detection. The model analyzes the input data and outputs the corresponding target segmentation results. Widely used evaluation indicators, including intersection over union (IOU), precision (P), recall (R) and dice coefficient (Dice), are used to objectively evaluate the performance of the LovElanU-Net model, and its practicality in target detection tasks provides an objective quantitative evaluation.

[0092] IoU represents the degree of overlap between the predicted segmentation and the true segmentation. The calculation formula of IoU is as follows:

[0093]

[0094] Precision (p) is an indicator that measures the accuracy of the model's prediction of positive samples. It refers to how many samples predicted by the model as positive are actually positive samples. The calculation formula of P is as follows:

[0095]

[0096] Recall (R) is an indicator that measures the model's ability to identify all truly positive samples. It refers to how many of the samples that the model successfully predicts as positive are truly positive samples. The calculation formula for R is as follows:

[0097]

[0098] Among them, TP is the true positive example, which indicates the number of positive samples correctly predicted by the model; FP is the false positive example, which indicates the number of positive samples incorrectly predicted by the model; FN is the false negative example, which indicates the number of positive samples that the model failed to predict; the closer the IoU value and P value are to 1, the higher the overlap between the predicted result and the true result, and the better the segmentation effect; the higher the R value, the better the model can identify the true positive category samples, the lower the missed detection rate, and the better the comprehensiveness and coverage of the model.

[0099] The Dice coefficient is used to evaluate the overlap between the predicted segmentation results and the true segmentation results. The calculation formula of the Dice coefficient is as follows:

[0100]

[0101] Among them, X is the predicted segmentation result, Y is the actual segmentation result, |X∩Y| represents the intersection of the two, that is, the predicted correct pixels, |X| represents the number of pixels of the predicted segmentation result, and |Y| represents the number of pixels of the actual segmentation result. The value range of the Dice coefficient is between 0 and 1. The closer the value is to 1, the more similar the two sample sets are, that is, the more accurate the prediction result is.

[0102] In this implementation, the CT image to be outlined is passed into the LovElanU-Net network model to obtain the target area and organ segmentation results, and then the contours of the target area and organs are outlined in the original image. The specific method is as follows: first, the contour of the segmented area is found in the segmented image. After obtaining the contour, further processing can be selected as needed, such as filtering out contours with too small areas, and then drawing the found contours on the original image to highlight the segmented target area and organs, and finally obtaining the final result of the target area and organ outline.

[0103] In this implementation, the CT images of a period of radiotherapy are registered with the original segmented images to update the radiation target area; specifically, it includes: first, feature extraction algorithms are used to extract feature points and descriptors from each image, and then, feature matching algorithms are used to find the corresponding feature points in the two images. Next, these matched feature points are used to estimate the transformation relationship between the two images through the RANSAC algorithm, and based on the estimated transformation relationship, one image is transformed using the affine transformation in OpenCV to align it with the other image; finally, evaluation indicators (mean square error MSE, structural similarity index SSIM) are used to verify the quality of the registration results to ensure the accuracy of image alignment.

[0104] Embodiment 2:

[0105] like Fig. 9 As shown, this implementation provides a radiation target area and organ at risk automatic delineation system, including:

[0106] The pre-processing unit is configured to: according to the CT scan image to be processed, use the first Conv module of the outline model to halve the height and width of the CT scan image, and map the dimension of the CT scan image to a set number of channels C, and map the channel dimension to 2C through the second Conv module;

[0107] The encoding processing unit is configured as follows: the image processed by the second Conv module is processed by an encoder and a decoder in sequence, the encoder includes four stages connected in sequence, each stage includes a first Rnceblock module and a second Rnceblock module connected in sequence, the ends of the first three stages of the encoder are connected with a Down module, and the number of channels in each stage is 2C, 4C, 8C and 16C respectively;

[0108] The decoding processing unit is configured as follows: the decoder includes four stages connected in sequence, each stage includes a first Rnceblock module and a second Rnceblock module connected in sequence, the initial positions of the last three stages of the decoder are connected with up-conv modules, and the number of channels of each stage is 16C, 8C, 4C and 2C respectively;

[0109] The post-processing unit is configured as follows: the output of the decoder passes through the up-conv module and the third Conv module in sequence to obtain the final delineation results of the radiation target area and the organs at risk.

[0110] It is understandable that the above-mentioned units can be separately or all combined into one or several other units to constitute, or some of the units can be further divided into multiple smaller units in function to constitute, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In practical applications, the function of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present application, the image processing device may also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.

[0111] According to another embodiment of the present application, the system described in this embodiment can be constructed, and the delineation processing method of the embodiment of the present application can be implemented by running a computer program (including program code) capable of executing the steps involved in the corresponding method described in Example 1 on a general computing device such as a computer including processing elements and storage elements such as a central processing unit (CPU), random access memory (RAM), and read-only memory (ROM). The computer program can be recorded on, for example, a computer-readable recording medium, and loaded into the above-mentioned computing device through the computer-readable recording medium and run therein.

[0112] Embodiment 3:

[0113] like Fig.10 As shown, this implementation provides an electronic device, which includes a processor 1001, a communication interface 1002, and a computer-readable storage medium 1003. The processor 1001, the communication interface 1002, and the computer-readable storage medium 1003 may be connected via a bus or other means.

[0114] Among them, the communication interface 1002 is used to receive and send data, the computer-readable storage medium 1003 can be stored in the memory of the electronic device, the computer-readable storage medium 1003 is used to store a computer program, the computer program includes program instructions, and the processor 1001 is used to execute the program instructions stored in the computer-readable storage medium 1003.

[0115] Processor 1001 (or CPU (Central Processing Unit)) is the computing core and control core of the electronic device, which is suitable for implementing one or more instructions, specifically suitable for loading and executing one or more instructions to implement corresponding method processes or corresponding functions.

[0116] The processor 1001 is configured to execute the following process:

[0117] According to the CT scan image to be processed, the height and width of the CT scan image are halved by using the first Conv module of the delineation model, and the dimension of the CT scan image is mapped to the set number of channels C, and the channel dimension is mapped to 2C through the second Conv module;

[0118] The image processed by the second Conv module is processed by the encoder and decoder in sequence. The encoder includes four stages connected in sequence. Each stage includes the first Rnceblock module and the second Rnceblock module connected in sequence. The end of the first three stages of the encoder is connected with a Down module. The number of channels in each stage is 2C, 4C, 8C and 16C respectively.

[0119] The decoder includes four stages connected in sequence, each stage includes a first Rnceblock module and a second Rnceblock module connected in sequence, and the initial positions of the last three stages of the decoder are connected with up-conv modules, and the number of channels in each stage is 16C, 8C, 4C and 2C respectively;

[0120] The output of the decoder passes through the up-conv module and the third Conv module in sequence to obtain the final delineation results of the radiation target area and organs at risk.

[0121] Embodiment 4:

[0122] This implementation provides a computer-readable storage medium (Memory), which is a memory device in an electronic device for storing programs and data. It is understandable that the computer-readable storage medium here can include both built-in storage media in the electronic device and, of course, extended storage media supported by the electronic device. The computer-readable storage medium provides a storage space that stores the processing system of the electronic device.

[0123] In addition, the storage space also stores one or more instructions suitable for being loaded and executed by the processor, and these instructions may be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk storage; optionally, it may also be at least one computer-readable storage medium located away from the aforementioned processor.

[0124] In one embodiment, the computer-readable storage medium stores one or more instructions; the processor loads and executes the one or more instructions stored in the computer-readable storage medium to implement the following process:

[0125] According to the CT scan image to be processed, the height and width of the CT scan image are halved by using the first Conv module of the delineation model, and the dimension of the CT scan image is mapped to the set number of channels C, and the channel dimension is mapped to 2C through the second Conv module;

[0126] The image processed by the second Conv module is processed by the encoder and decoder in sequence. The encoder includes four stages connected in sequence. Each stage includes the first Rnceblock module and the second Rnceblock module connected in sequence. The end of the first three stages of the encoder is connected with a Down module. The number of channels in each stage is 2C, 4C, 8C and 16C respectively.

[0127] The decoder includes four stages connected in sequence, each stage includes a first Rnceblock module and a second Rnceblock module connected in sequence, and the initial positions of the last three stages of the decoder are connected with up-conv modules, and the number of channels in each stage is 16C, 8C, 4C and 2C respectively;

[0128] The output of the decoder passes through the up-conv module and the third Conv module in sequence to obtain the final delineation results of the radiation target area and organs at risk.

[0129] Embodiment 5:

[0130] The present implementation provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device performs the following process:

[0131] According to the CT scan image to be processed, the height and width of the CT scan image are halved by using the first Conv module of the delineation model, and the dimension of the CT scan image is mapped to the set number of channels C, and the channel dimension is mapped to 2C through the second Conv module;

[0132] The image processed by the second Conv module is processed by the encoder and decoder in sequence. The encoder includes four stages connected in sequence. Each stage includes the first Rnceblock module and the second Rnceblock module connected in sequence. The end of the first three stages of the encoder is connected with a Down module. The number of channels in each stage is 2C, 4C, 8C and 16C respectively.

[0133] The decoder includes four stages connected in sequence, each stage includes a first Rnceblock module and a second Rnceblock module connected in sequence, and the initial positions of the last three stages of the decoder are connected with up-conv modules, and the number of channels in each stage is 16C, 8C, 4C and 2C respectively;

[0134] The output of the decoder passes through the up-conv module and the third Conv module in sequence to obtain the final delineation results of the radiation target area and organs at risk.

[0135] A person skilled in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. A person skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0136] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loading and executing computer program instructions on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instruction can be stored in a computer-readable storage medium or transmitted by a computer-readable storage medium. The computer instruction can be transmitted from a website site, a computer, a server or a data center to another website site, a computer, a server or a data center by wired (for example, coaxial cable, optical fiber, digital line (DSL)) or wireless (for example, infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data processing device such as a server, a data center, etc. that contains one or more available media integration. Available media can be magnetic media (for example, floppy disk, hard disk, tape), optical media (for example, DVD), or semiconductor media (for example, solid-state drive (Solid State Disk, SSD)) and the like.

[0137] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for automatically delineating radiation target areas and organs at risk, characterized in that: The process includes: According to the CT scan image to be processed, the height and width of the CT scan image are halved by using the first Conv module of the delineation model, and the dimension of the CT scan image is mapped to the set number of channels C, and the channel dimension is mapped to 2C through the second Conv module; The image processed by the second Conv module is processed by the encoder and decoder in sequence. The encoder includes four stages connected in sequence. Each stage includes the first Rnceblock module and the second Rnceblock module connected in sequence. The end of the first three stages of the encoder is connected with a Down module. The number of channels in each stage is 2C, 4C, 8C and 16C respectively. The decoder includes four stages connected in sequence, each stage includes a first Rnceblock module and a second Rnceblock module connected in sequence, and the initial positions of the last three stages of the decoder are connected with up-conv modules, and the number of channels in each stage is 16C, 8C, 4C and 2C respectively; The output of the decoder passes through the up-conv module and the third Conv module in sequence to obtain the final delineation results of the radiation target area and organs at risk.

2. The method for automatically delineating radiation target areas and organs at risk according to claim 1, characterized in that: The first Conv module, the second Conv module and the third Conv module all include: a convolution, a batch normalization module and a SiLU activation function connected in sequence.

3. The method for automatically delineating radiation target areas and organs at risk according to claim 1, characterized in that: The four stages of the encoder are stage 1, stage 2, stage 3, and stage 4, and the four stages of the decoder are stage 1, stage 2, stage 3, and stage 4; The first stage input of the encoder is jump-connected to the fourth stage output of the decoder, the second stage input of the encoder is jump-connected to the third stage output of the decoder, the third stage input of the encoder is jump-connected to the second stage output of the decoder, and the fourth stage input of the encoder is jump-connected to the first stage output of the decoder.

4. The method for automatically delineating radiation target areas and organs at risk according to claim 1, characterized in that: The first Rnceblock module and the second Rnceblock module each include: The number of channels is adjusted through the convolution layer. The output features of the convolution layer are divided into three parts. The first part is directly passed to the next layer and is denoted as Y1. The second part is denoted as Y2 after a convolution operation and a RepNCSP module in sequence. The third part is denoted as Y3 after a RepNCSP module and a convolution operation. Y3 is denoted as Y4 after another RepNCSP module and a convolution operation. Y1, Y2, Y3 and Y4 are spliced ​​together according to the number of channels, and the output result is obtained through a convolution operation. The RepNCSP module includes a Conv module and a DNBottleneck. The input feature map is first divided into two parts according to the number of channels. One part undergoes a convolution operation and then a DNBottleneck module, and the other part directly undergoes a convolution operation. Finally, the feature maps obtained from these two parts are spliced ​​together according to the number of channels and fused through a convolution operation to obtain the final output feature map. In DNBottleneck, the input features are divided into two branches according to the number of channels: one branch is processed by the first convolution, and the other branch is processed by the second convolution. The feature maps obtained by these two branches are added element by element, and further fused after the Dynamic Shift-Max activation function and the third convolution. The fused result is residually connected with the input of DNBottleneck to obtain the final output feature map.

5. The method for automatically delineating radiation target areas and organs at risk according to claim 1, characterized in that: The CT scan images of a period of radiotherapy are registered with the original segmented images to update the radiation target area, including: A feature extraction algorithm is used to extract feature points from each CT scan image, and a feature matching algorithm is used to find the corresponding feature points in the two images. Based on the matched feature points, the RANSAC algorithm is used to estimate the transformation relationship between the two images. Based on the estimated transformation relationship, an affine transformation in OpenCV is used to transform one image to align it with the other image.

6. The method for automatically delineating radiation target areas and organs at risk according to claim 1, characterized in that: Sketch the loss function of the model, including: <h2 style=";text-align:left;direction:ltr">l<h2 style=";text-align:left;direction:ltr"> lovvasz(P,y) <h2 style=";text-align:left;direction:ltr"> =SoftmaxLoss(p,y)+LovaszHingeloss(p,y); Among them, SoftmaxLoss represents the Softmax loss function, and LovaszHingeLoss represents the Lovasz hige loss function; LovaszHingeLoss(p,y)=LovaszHinge(p,y)+LovaszHinge(-p,1-y); Where p is the predicted value, y is the true label, n is the number of samples, LovasehingeSingle(p i ,y i ) represents the Lovasz hinge loss for a single sample, Represents the vector obtained by reordering the predicted probability p according to the order of the true label y, represents the i-th predicted probability after reordering, Represents the predicted probability corresponding to the true label y.

7. A radiation target area and organ at risk automatic delineation system, characterized in that: include: The pre-processing unit is configured to: according to the CT scan image to be processed, use the first Conv module of the outline model to halve the height and width of the CT scan image, and map the dimension of the CT scan image to a set number of channels C, and map the channel dimension to 2C through the second Conv module; The encoding processing unit is configured as follows: the image processed by the second Conv module is processed by an encoder and a decoder in sequence, the encoder includes four stages connected in sequence, each stage includes a first Rnceblock module and a second Rnceblock module connected in sequence, the ends of the first three stages of the encoder are connected with a Down module, and the number of channels in each stage is 2C, 4C, 8C and 16C respectively; The decoding processing unit is configured as follows: the decoder includes four stages connected in sequence, each stage includes a first Rnceblock module and a second Rnceblock module connected in sequence, the initial positions of the last three stages of the decoder are connected with up-conv modules, and the number of channels of each stage is 16C, 8C, 4C and 2C respectively; The post-processing unit is configured as follows: the output of the decoder passes through the up-conv module and the third Conv module in sequence to obtain the final delineation results of the radiation target area and the organs at risk.

8. A computer device, characterized in that: include: a processor and a computer readable storage medium; a processor adapted to execute a computer program; A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by the processor, the method for automatically delineating a radiation target area and organs at risk is implemented as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor and executing the method for automatically delineating radiation target areas and organs at risk as described in any one of claims 1 to 6.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method for automatically delineating a radiation target area and organs at risk as described in any one of claims 1 to 6 is implemented.