Automatic nasal cartilage identification method

Through the two-stage image segmentation processing and the improved U-Net model combined with attention mechanism, the problem of insufficient recognition and segmentation ability of nasal cartilage in rhinoplasty surgery is solved, automatic, rapid and fine recognition of nasal cartilage is achieved, and the surgical plan is improved Accuracy and personalization.

CN118968067APending Publication Date: 2024-11-15HAICHUANG FUTURE (HANGZHOU) MEDICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411105312.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

The existing deep learning technology has limited ability to identify and segment nasal cartilage in rhinoplasty surgery, which leads to time-consuming, laborious and subjective and inaccurate results, affecting the formulation of surgical plans.

Method used

The two-stage image segmentation processing method is adopted, firstly positioning the nose area through a coarse segmentation model, and then subdividing it with the improved U-Net model combined with spatial and channel attention mechanisms to ensure accurate identification of nasal cartilage.

Benefits of technology

It realizes automatic, rapid and detailed identification of the nasal cartilage area, improves the accuracy and personalization of the rhinoplasty surgery plan, and reduces the deviation of artificial intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118968067A_ABST
    Figure CN118968067A_ABST
Patent Text Reader

Abstract

The invention discloses a nasal cartilage automatic identification method, and relates to an image processing technology, and the method comprises the steps: carrying out the rough segmentation processing of a head CT image of a nasal plastic surgery patient with a nose region as a segmentation target through a rough segmentation model, and obtaining a head CT image of which the nose region is located; obtaining a nose region image based on the head CT image of which the nose region is positioned; and utilizing a fine segmentation model to carry out fine segmentation processing with the nasal cartilage as a segmentation target on the nasal region image to obtain the nasal region image with the identified nasal cartilage structure. According to the method, two-stage image segmentation processing consisting of coarse segmentation and fine segmentation is adopted, so that the nasal cartilage region of the small target in the head CT image of the patient subjected to the nasal plastic surgery can be automatically, quickly and finely identified and segmented.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to image processing technology, and in particular to a method for automatically identifying nasal cartilage from CT images. Background Art

[0002] In rhinoplasty surgery, identifying the nasal cartilage area from the head CT (Computed Tomography) images, measuring the specific size and dimensions of the nasal cartilage based on the identified nasal cartilage area, and designing a customized surgical plan to meet the needs of each patient have always been issues of concern in the industry.

[0003] At present, in rhinoplasty applications, it is necessary to manually identify and segment the nasal cartilage area. Due to the small size of the nasal cartilage organ, there are two problems in manual identification of this area: 1. The identification and segmentation process is time-consuming and laborious; 2. The recognition and segmentation results are subjective and inaccurate, which leads to deviations in the measurement of the size and shape of the nasal cartilage in the later stage, affecting the formulation of the final rhinoplasty surgery plan. Therefore, it is necessary to automatically identify the nasal cartilage structure / nasal cartilage area in medical images.

[0004] However, the nasal cartilage occupies fewer layers in head CT images and has a smaller area in each layer. Figure 1 The arrow in the white rectangle indicates the nasal cartilage. The existing segmentation network based on deep learning technology has limited ability to segment small target nasal cartilage. For example, the segmentation technology involved in Chinese patents CN202311577329.X and CN202311313587.7 is not accurate in identifying and segmenting small target nasal cartilage, which is prone to missed detection. Summary of the invention

[0005] The present invention provides a method for automatic recognition of nasal cartilage, aiming to solve the problem that the existing image segmentation technology based on deep learning has limited recognition and segmentation capabilities for smaller nasal cartilage organs and is prone to missed detection.

[0006] The present invention provides a method for automatically identifying nasal cartilages, the method comprising: using a coarse segmentation model to perform a coarse segmentation process on a head CT image of a patient undergoing rhinoplasty surgery with the nasal region as a segmentation target, to obtain a head CT image in which the nasal region has been located; based on the head CT image in which the nasal region has been located, to obtain a nasal region image; using a fine segmentation model to perform a fine segmentation process on the nasal region image with the nasal cartilage as a segmentation target, to obtain a nasal region image in which the nasal cartilage structure has been identified.

[0007] Preferably, before using the coarse segmentation model to perform coarse segmentation processing on the head CT image of the patient undergoing rhinoplasty surgery with the nose area as the segmentation target to obtain the head CT image in which the nose area has been located, it also includes: sequentially performing voxel resolution resampling processing, window width and window position setting processing, and image scaling processing on the original head CT image of the patient undergoing rhinoplasty surgery to obtain the head CT image that can be fed into the coarse segmentation model.

[0008] Preferably, the coarse segmentation model adopts a general U-Net model, which includes: an encoder part with multiple layers of encoders, a decoder part with multiple layers of decoders symmetrical to the encoder part, and a jump connection for passing the feature map extracted by each layer of encoder to the corresponding layer of decoder.

[0009] Preferably, obtaining the nose region image based on the head CT image in which the nose region has been located includes: cropping the located nose region in the head CT image in which the nose region has been located to obtain the nose region image; or, cropping and interpolating the nose region in the head CT image in which the nose region has been located to obtain the nose region image; or, interpolating the head CT image in which the nose region has been located, and cropping the nose region in the interpolated head CT image to obtain a nose region portrait.

[0010] Preferably, the fine segmentation model adopts an improved U-Net model, which includes an encoder part with multiple layers of encoders, a decoder part with multiple layers of decoders symmetrical to the encoder part, and a jump connection for passing the feature map extracted by each layer of encoder to the corresponding layer of decoder, wherein a spatial attention mechanism is added to the jump connection, a spatial attention mechanism is added after each upsampling of the decoder part, and a channel attention mechanism is added after each splicing operation of the decoder part.

[0011] Preferably, the use of the fine segmentation model to perform fine segmentation processing on the nose area image with nasal cartilage as the segmentation target to obtain the nose area image with the identified nasal cartilage structure includes: using the encoder part of the fine segmentation model to extract features of the nose area image layer by layer to obtain a multi-scale feature map; using the decoder part of the fine segmentation network model to restore the multi-scale feature map extracted by the encoder part to the nose area image with the identified nasal cartilage structure; wherein, restoring the multi-scale feature map extracted by the encoder part to the nose area image with the identified nasal cartilage structure includes: for any layer of decoder, processing the feature map extracted by the encoder of this layer based on the spatial attention mechanism to obtain the encoder feature map of this layer, processing the feature map obtained by upsampling the decoder of this layer based on the spatial attention mechanism to obtain the decoder feature map of this layer; splicing the encoder feature map of this layer and the decoder feature map of this layer to obtain the spliced ​​feature map of this layer, and processing the spliced ​​feature map of this layer based on the channel attention mechanism to obtain the feature map of the focused spatial dimension and channel dimension of this layer.

[0012] Preferably, the feature map extracted by the encoder of this layer is processed based on the spatial attention mechanism to obtain the encoder feature map of this layer, and the feature map obtained by upsampling the decoder of this layer is processed based on the spatial attention mechanism to obtain the decoder feature map of this layer, including: performing maximum and average pooling operations, convolution operations, and normalization operations on the feature map extracted by the encoder of this layer in sequence to obtain the first spatial attention weight of this layer, thereby obtaining the encoder feature map of this layer based on the feature map extracted by the encoder of this layer and the first spatial attention weight of this layer; performing maximum and average pooling operations, convolution operations, and normalization operations on the feature map obtained by upsampling the decoder of this layer in sequence to obtain the second spatial attention weight of this layer, thereby obtaining the decoder feature map of this layer based on the feature map obtained by upsampling the decoder of this layer and the second spatial attention weight of this layer.

[0013] Preferably, the processing of the spliced ​​feature map of the layer based on the channel attention mechanism to obtain the spliced ​​feature map of the attended spatial dimension and channel dimension of the layer includes: performing maximum and average pooling operations, multi-layer perception and normalization operations on the encoder feature map of the layer in sequence to obtain the channel attention weight of the layer, thereby obtaining the spliced ​​feature map of the attended spatial dimension and channel dimension of the layer according to the spliced ​​feature map of the layer and the channel attention weight of the layer.

[0014] Preferably, the method also includes: in each round of training of the fine segmentation model, calculating the layer training loss of each layer of decoder respectively, wherein the layer training loss is the weighted loss of Dice Loss, Focal Loss and Boundary Loss of each layer; weighting the layer training loss of each layer of decoder to obtain the model training loss of the fine segmentation model, so as to update the parameters of the fine segmentation model using the model training loss of the fine segmentation model.

[0015] Preferably, the method further comprises: determining the longest diameter and volume of the nasal cartilage based on the nasal region image in which the nasal cartilage structure has been identified.

[0016] The present invention provides an automatic nasal cartilage identification method which, by adopting a two-stage image segmentation process consisting of coarse segmentation and fine segmentation, can automatically, quickly and precisely identify and segment the nasal cartilage areas of small targets in the head CT images of patients undergoing rhinoplasty surgery, thereby helping doctors to develop accurate surgical plans that meet the actual needs of rhinoplasty patients based on their specific information. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 This is a CT image of the head including the nasal cartilage; Figure 2 is a first flow chart of the method for automatically identifying nasal cartilage of the present invention; Figure 3 is a second flow chart of the method for automatically identifying nasal cartilage of the present invention; Figure 4a It is a head CT image with a window width of 2000 and a window level of 200; Figure 4b It is a head CT image with a window width of 200 and a window level of 40; Figure 5 It is a structural diagram of the coarse segmentation model; Figure 6 It is a structural diagram of the fine segmentation model; Figure 7 It is a schematic diagram of the structure of the spatial attention module; Figure 8 It is a structural diagram of the channel attention module. DETAILED DESCRIPTION

[0018] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0019] The present invention discloses an automatic nasal cartilage recognition method. The nasal cartilage organ is relatively small, which leads to inaccurate recognition and segmentation of existing deep learning-based image segmentation methods, and is prone to missed detection. The present invention adopts a two-stage segmentation algorithm. In the first stage, the nasal area is identified and segmented in the head CT image. In the second stage, the nasal cartilage is finely segmented in the nasal area, especially the fine segmentation of the nasal cartilage in high-resolution images.

[0020] See also Figure 1 The method for automatically identifying nasal cartilage provided by the present invention comprises the following steps: Step S101: using a coarse segmentation model, a coarse segmentation process is performed on the head CT image of the patient undergoing rhinoplasty surgery with the nose region as the segmentation target, to obtain a head CT image in which the nose region has been located.

[0021] The coarse segmentation model may adopt a general U-Net model, which includes: an encoder part having a multi-layer encoder, a decoder part having a multi-layer decoder symmetrical to the encoder part, and a jump connection for transferring / copying the feature map extracted by each layer of encoder to the corresponding layer of decoder. During training, the Dice loss function may be used to calculate the Dice loss to update the parameters of the coarse segmentation model.

[0022] This step can be achieved by a nose region coarse segmentation module (referred to as coarse segmentation module).

[0023] Step S102: obtaining a nose region image based on the head CT image in which the nose region has been located.

[0024] The nose region image can be obtained in a variety of ways, for example, the located nose region is cropped in the head CT image in which the nose region is located to obtain the nose region image, for example, the nose region in the head CT image in which the nose region is located is cropped and interpolated to obtain the nose region image, for example, the head CT image in which the nose region is located is interpolated, and the nose region is cropped in the interpolated head CT image to obtain the nose region head portrait, and since the latter two methods use interpolation processing, the resolution of the obtained nose region head portrait is higher. This step can be implemented by a data conversion module (or image conversion module).

[0025] Step S103: using the fine segmentation model, performing fine segmentation processing on the nose region image with the nasal cartilage as the segmentation target, and obtaining a nose region image in which the nasal cartilage structure has been identified.

[0026] The fine segmentation model adopts an improved U-Net model, which includes an encoder part with multiple layers of encoders, a decoder part with multiple layers of decoders symmetrical to the encoder part, and a jump connection for transmitting the feature map extracted by each layer of encoder to the corresponding layer of decoder. In order to ensure that the tiny structural information is not lost in the encoder part of the U-Net structure, the jump connection structure of the present invention is specifically a jump connection mechanism based on the attention mechanism, and a spatial and channel attention mechanism is added to the jump connection structure of each layer (or each stage). Specifically, a spatial attention mechanism is added to the jump connection, a spatial attention mechanism is added after each upsampling of the decoder part, and a channel attention mechanism is added after each splicing operation of the decoder part. In this way, during the identification / location of nasal cartilage based on the above model, for any layer of decoder, the present invention processes the feature map extracted by the encoder of this layer based on the spatial attention mechanism to obtain the encoder feature map of this layer, and processes the feature map obtained by upsampling the decoder of this layer based on the spatial attention mechanism to obtain the decoder feature map of this layer; the encoder feature map of this layer and the decoder feature map of this layer are spliced ​​to obtain the spliced ​​feature map of this layer, and the spliced ​​feature map of this layer is processed based on the channel attention mechanism to obtain the feature map of the focused spatial dimension and channel dimension of this layer, so as to ensure that the micro-structure information of the nasal cartilage is not lost. This step can be implemented by a nasal cartilage fine segmentation module (referred to as fine segmentation module) with the ability to segment small targets.

[0027] In addition, in order to ensure that images of different scales can effectively segment the small target nasal cartilage structure and retain the target information as much as possible, the present invention adds a deep supervision structure to each layer of the decoder part, calculates the hierarchical training loss of each layer of the decoder, and then calculates the training loss of the entire model.

[0028] In addition, in order to make the model pay more attention to the segmentation of small targets, the present invention adopts a mixed loss, for example, Dice loss function, Focal loss function and Boundary loss function are used to calculate Dice Loss, Focal Loss and Boundary Loss respectively. In this way, the mixed loss is coordinated with deep supervision, and the Dice Loss, Focal Loss and Boundary Loss of each layer are calculated respectively during training, and then the weighted loss of Dice Loss, Focal Loss and Boundary Loss of each layer is calculated as the hierarchical training loss of each layer of decoder, and finally the hierarchical training loss of each layer of decoder is weighted to obtain the model training loss of the fine segmentation model to update the parameters of the fine segmentation model.

[0029] The following is combined with Figure 3 -Attached Figure 8, the present invention is described in detail.

[0030] The present invention adopts a two-stage segmentation strategy. In the first stage, the nose area is roughly segmented in the low-resolution image, and the nose area image is cropped through image processing technology (the following takes cropping of the high-resolution nose area image as an example). In the second stage, the fine segmentation module uses a jump connection structure based on the attention mechanism to ensure that the tiny structural information of the small target nasal cartilage is not lost. Based on deep supervision technology and hybrid loss, it has the small target segmentation function, and finally realizes the accurate recognition of small targets. In addition, the present invention can also use image processing technology to realize the quantitative measurement of the size and shape of the nasal cartilage. See Figure 3 , the specific steps are as follows: Step S201: The core function of the data preprocessing module (or image preprocessing module) is to sequentially perform voxel resolution resampling, window width and window position setting, and image scaling processing on the original head CT image of the patient undergoing rhinoplasty surgery to obtain the head CT image that can be fed into the coarse segmentation model.

[0031] 1. Normalize the voxel resolution of CT data.

[0032] Since the resolution of different CT data is inconsistent, the actual physical voxel distances between voxels are different, which is not conducive to the unified training of deep learning algorithms and the actual measurement of the final soft size. Therefore, it is necessary to resample the voxel resolution of CT data. The specific processing method is: statistically analyze the resolution distribution of all samples in the training data in the X, Y, and Z directions, calculate their respective medians to obtain the benchmark resolution [median(spacing_x), median(spacing_y), median(spacing_z)], and then resample all data to obtain a new data size that can make the voxel resolution reach the benchmark resolution.

[0033] 2. Set reasonable window width and window position to amplify the contrast between the nasal bone area and other tissues.

[0034] The window width (WW) and window level (WL) of the CT image are parameters used to adjust the image display to optimize the visualization of different tissues and lesions. The window width refers to the grayscale range of the image display, that is, the width of the displayed grayscale level. A larger window width will display more grayscale levels, giving the image a high-contrast appearance. For example, if the window width is set to 1000, the grayscale levels in the CT image will be displayed between -500 and 500. The window level is the center grayscale level within the window width range and is used to adjust the brightness of the image. By changing the window level, the grayscale level of the tissue or lesion of interest can be moved to the center of the image display, thereby improving the visualization of the tissue or lesion of interest. For example, if the window level is set to 200, then within the window width of 1000, the grayscale level 200 will be displayed as the center grayscale of the image. By adjusting the window width and window level, the doctor can highlight different types of tissues and lesions as needed. The present invention mainly identifies and segments nasal cartilage, Figure 4a It is a head CT image with a window width of 2000 and a window level of 200. Figure 4b The following are head CT images with a window width of 200 and a window level of 40. From the two images, it can be seen that there is a significant difference in the degree of recognition of the nasal bone in the white rectangular frame under different window widths and different window levels. In the present invention, the image window width and window level are set to 2000 and 200 according to experience. The specific image grayscale transformation method is as follows:

[0035] Among them, for any pixel on the image, I is the original grayscale of the pixel, I processed It is the new grayscale of the pixel after conversion.

[0036] 3. Scale the image and feed it into the coarse segmentation network.

[0037] The segmentation goal of the first stage is to accurately identify the nasal area, providing conditions for the precise positioning of the nasal cartilage tissue in the second stage. Under the above goal, the image size is reduced by image scaling, which shortens the training process of the coarse segmentation model in the first stage and saves the required computing resources.

[0038] Step S202: The nose region coarse segmentation module (referred to as the coarse segmentation module) uses the coarse segmentation model to perform coarse segmentation processing on the head CT image of the rhinoplasty patient with the nose region as the segmentation target, and obtains the head CT image with the nose region located.

[0039] In the present invention, the first stage aims to segment the entire nose region in the low-resolution image. The nose region accounts for a large proportion in the head CT image and has a distinct shape from the background. This task is relatively easy, so the present invention uses a general U-Net model for image segmentation in this stage. The U-Net model is a convolutional neural network architecture mainly used for image segmentation tasks, see Figure 5 The network structure includes an encoder part with multiple layers of encoders, a decoder part with multiple layers of decoders symmetrical to the encoder part, and a skip connection for transmitting the feature map extracted by each layer of encoder to the corresponding layer of decoder.

[0040] The encoder part is the left half of U-Net, which is mainly responsible for layer-by-layer feature extraction to obtain multi-scale feature maps. Specifically, the encoder part consists of a series of convolution and pooling layers, usually divided into 4-5 such convolution-pooling modules. Each module (called an encoder) will halve the spatial size of the feature map and double the number of channels. This layer-by-layer feature extraction method enables the encoder part to learn the multi-scale information of the image, which can be used in the subsequent decoder part to reconstruct high-resolution segmentation results.

[0041] The decoder is located in the right half of the U-Net. Its main function is to restore the feature information extracted by the encoder into a high-resolution segmentation result. It consists of a series of deconvolution and upsampling layers, forming a symmetrical structure corresponding to the encoder.

[0042] Among them, the jump connection is a direct information transmission channel established between the encoder and decoder of U-Net, which improves the ability of U-Net in retaining detail information and fusing multi-scale information.

[0043] In the present invention, Dice Loss is used as the model training loss of the U-Net model.

[0044] Step S203: The data conversion module (or image conversion module) obtains a high-resolution image of the nose region based on the head CT image in which the nose region has been located.

[0045] This step is mainly used to connect the two segmentation stages, that is, the data conversion module is mainly used to connect the coarse segmentation module and the fine segmentation module. Since the nasal cartilage target of the present invention is small, the ratio of the target area to the background area is unbalanced, which will cause the training process to be unstable and insufficient. Therefore, the present invention cuts out the nose area from the head CT image to increase the proportion of the target in the image. In addition, the coarse segmentation module uses a low-resolution image for segmentation, while the fine segmentation module uses a high-resolution image to segment the small target area of ​​the nasal cartilage part. Therefore, the data conversion module interpolates the segmentation result of the coarse segmentation module to obtain a high-resolution head CT image, and uses the nose area segmentation result obtained in the coarse segmentation module to cut the high-resolution head CT image to obtain a high-resolution nose area image, and then send it to the fine segmentation module for segmentation to achieve accurate recognition of the position of the nasal cartilage. As an alternative, it is also possible to cut first and then interpolate. Specifically, the nose area in the head CT image of the segmented nose area output by the coarse segmentation module is first cut to obtain a nose area image, and then the nose area image is interpolated to obtain a high-resolution nose area image.

[0046] Step S204: The nasal cartilage fine segmentation module (hereinafter referred to as the fine segmentation module) with small target segmentation capability uses a fine segmentation model to perform fine segmentation processing on the nasal region image with the nasal cartilage as the segmentation target, and obtains a nasal region image with the nasal cartilage structure identified.

[0047] The existing mainstream segmentation network is usually an encoder-decoder structure. In the encoder process, the input image is compressed and feature extracted at different stages. In the decoder process, the features are reconstructed to obtain the segmented area. In each stage, the feature images of the encoder and decoder information are directly fused. However, nasal cartilage is a relatively small segmentation target. If the existing mainstream segmentation network such as the general U_Net structure is directly used for segmentation, it is easy to cause the loss of small target information, resulting in missed detection problems. To this end, the present invention alleviates this problem to a certain extent through a two-stage segmentation mode. In addition, the present invention further improves this problem by improving the U_Net structure and the loss function used in training in the fine segmentation module.

[0048] 1. The fine segmentation model of the present invention adopts an improved U-Net model.

[0049] The improved U-Net model also includes an encoder part with multiple layers of encoders, a decoder part with multiple layers of decoders symmetrical to the encoder part, and a jump connection for transferring the feature map extracted by each layer of encoder to the decoder of the corresponding layer. In this structure, the encoder part downsamples the input image to extract features. As the number of downsampling increases, the relevant information of small targets is lost, which is not conducive to the segmentation of small targets. Although the feature maps extracted at different levels in the encoder part are directly transferred to the decoder of the corresponding level through the jump connection part, the above problem is alleviated to a certain extent, but the effect still does not meet expectations. One reason for this phenomenon is that the deep features and shallow features are directly spliced ​​together in the decoder part, and the two types of features are not given priority according to the actual situation. To solve this problem, the present invention introduces a jump connection of spatial channel attention. Before splicing the feature maps obtained in each stage (or each layer) of the decoder part and the encoder part, they are respectively connected to the spatial attention module, and after the splicing is completed, they are sent to the channel attention module, see. Figure 6 , a spatial attention mechanism is added to the skip connection, a spatial attention mechanism is added after each upsampling in the decoder part, and a channel attention mechanism is added after each splicing operation in the decoder part.

[0050] (1) Spatial Attention Module See also Figure 7 , the spatial attention module includes maximum and average pooling, convolution and normalization (sigmoid), and the operation process is as follows: the W×H×D feature map is subjected to maximum and average pooling in the channel dimension to obtain a W×H×1 maximum pooling feature map and a W×H×1 average pooling feature map; the W×H×1 maximum pooling feature map and the W×H×1 average pooling feature map are spliced ​​to obtain a W×H×2 maximum pooling feature map, which is compressed by 1×1 convolution to obtain a compressed W×H×1 feature map; the compressed W×H×1 feature map is normalized (sigmoid function) to obtain the spatial attention weight, so as to multiply the input feature map with the spatial attention weight of the feature map to obtain the spatial attention weighted feature map. Where W is the width of the image, H is the height of the image, and D is the depth of the image.

[0051] (2) Channel Attention Module See also Figure 8 The channel attention module includes maximum pooling and average pooling, weight-sharing multi-layer perceptron, and normalization (sigmod). After the encoder feature map of this layer W×H×D and the decoder feature map of this layer W×H×D are spliced ​​into a W×H×2D spliced ​​feature map, the W×H×2D spliced ​​feature map is sent to Figure 8The channel attention module shown in the figure has the following operation process: the W×H×2D feature map after the concatenation of each layer of encoder and decoder is subjected to maximum pooling and average pooling operations to obtain a 4×D feature vector; the obtained 4×D feature vector is passed through a weight-sharing multi-layer perceptron module to obtain a 1×D feature vector; the 1×D feature vector after the multi-layer perceptron is normalized (sigmoid) to obtain the final channel attention weight, so as to multiply the concatenated feature map by the channel attention weight of the feature map to obtain the feature map after channel attention weighting.

[0052] In accordance with Figure 6 When the fine segmentation model shown in the figure performs the second stage nasal cartilage segmentation, the encoder part is first used to extract the features of the nasal region image layer by layer to obtain a multi-scale feature map, and then the decoder part of the fine segmentation network model is used to restore the multi-scale feature map extracted by the encoder part to the nasal region image with the nasal cartilage structure identified. For any stage / layer decoder, the feature map extracted by the stage / layer encoder is processed based on the spatial attention mechanism, that is, in the jump connection of the layer, the feature map extracted by the encoder of the layer is input to the first spatial attention module of the layer to obtain the first spatial attention weight of the layer, so as to obtain the feature map weighted by the spatial attention as the encoder feature map of the layer according to the feature map extracted by the encoder of the layer and the first spatial attention weight of the layer. The feature map obtained by upsampling the stage / layer is processed based on the spatial attention mechanism, that is, the feature map obtained by upsampling the layer is input to the second spatial attention module of the layer to obtain the second spatial attention weight of the layer, so as to obtain the feature map weighted by the spatial attention as the decoder feature map of the layer according to the feature map obtained by upsampling the layer and the second spatial attention weight of the layer. The encoder feature map of the layer is concatenated with the decoder feature map to obtain a concatenated feature map of the layer, and the concatenated feature map of the layer is processed based on the channel attention mechanism, that is, the concatenated feature map of the layer is input into the channel attention module to obtain the channel attention weight of the layer, so as to obtain the concatenated feature map of the focused spatial dimension and channel dimension of the layer according to the concatenated feature map of the layer and the channel attention weight of the layer. The first spatial attention module and the second spatial attention module adopt Figure 7 The structure shown in the figure, the channel attention module adopts Figure 8 The structure shown.

[0053] 2. The present invention adds a deep supervision structure to each layer of the decoder part in the fine segmentation model.

[0054] The present invention not only uses the top decoder output of the decoder part to calculate the model training loss, see Figure 6The present invention adds a deep supervision structure to each stage / layer of the decoder part. Specifically, the output feature map of each layer of the decoder is convolved to obtain the output of each layer of the decoder. The output of each layer of the decoder participates in the model training loss calculation process, which is equivalent to supervising Figure 6 Each layer of the network shown.

[0055] The deep supervision structure can not only enhance the learning of low-level and high-level features, but also provide richer supervision signals for the entire network, thereby ensuring that small target structures can be effectively segmented in images of different scales, retaining target information as much as possible, achieving better model training effects, and improving the final small target segmentation performance.

[0056] 3. Loss function used in the training of the present invention The present invention uses Dice loss, Focal loss, and Boundary loss to form a mixed loss (or joint loss) for the segmentation task to train the model, so that the model pays more attention to small target segmentation and improves the final small target segmentation effect.

[0057] Among them, Focal Loss is a loss function for dealing with the problem of class imbalance. It can pay more attention to samples that are difficult to classify and reduce the weight of samples that are easy to classify, thereby increasing the focus on small targets. Boundary Loss is a loss function that is particularly suitable for segmenting boundaries. It weights the boundary area as a key area. In form, it is a spatial contour rather than a distance metric on the area, which can better capture the boundary information of small targets.

[0058] Dice loss, Focal Loss, and Boundary Loss are all common loss functions, and their respective expressions will not be repeated here.

[0059] In each round of training of the fine segmentation model, the layer training loss of each layer of the decoder is calculated respectively, wherein the layer training loss is the weighted loss of Dice Loss, Focal Loss and Boundary Loss of each layer; the layer training loss of each layer of the decoder is weighted to obtain the model training loss of the fine segmentation model, so as to update the parameters of the fine segmentation model using the model training loss of the fine segmentation model.

[0060] 4. Dynamic allocation mechanism of various losses in the present invention As mentioned above, different types of losses have different characteristics. In addition, the scales of losses in different layers of the decoder are inconsistent. Therefore, how to assign reasonable weights to each loss during the neural network training process has a certain impact on the model segmentation effect. In the present invention, by detecting the changes in each loss, weights are dynamically assigned to each loss.

[0061] (1) Weight distribution of different types of losses in each decoder layer First, at the beginning of training, for each layer of decoder, different types of loss functions, namely Dice Loss, Focal Loss, and Boundary Loss, are assigned equal weights (1 / 3); the losses of different layers of decoders are also assigned the same weight (1 / 3). During the training process, monitor the changes in different types of losses and adjust the weights dynamically. Taking the weight adjustment method of the three loss functions of a layer of decoding as an example, first calculate the percentage change of each type of loss before and after a round of training. The calculation method is as follows:

[0062] Among them, Ratio DL 、Ratio FL 、Ratio BL They are the percentage changes of Dice Loss, Focal Loss and Boundary Loss before and after a round of training; DL t , FL t BL t They are the losses of Dice Loss, Focal Loss and Boundary Loss after one round of training, DL t-1 , FL t-1 BL t-1 They are the losses of Dice Loss, Focal Loss and Boundary Loss before a round of training.

[0063] Then, the above percentages are converted to various weights by the following formula:

[0064] Among them, W DL , W FL , W BL They are the loss weights of Dice Loss, Focal Loss and Boundary Loss respectively.

[0065] Finally, the loss weights of each type of loss function are linearly normalized and calculated as follows:

[0066] in, They are the normalized loss weights of Dice Loss, Focal Loss, and Boundary Loss, that is, the loss weights of different types of loss functions used for model training.

[0067] (2) Weight distribution of losses at each decoder layer The dynamic adjustment method of the loss weight of each decoding layer is similar to the weight allocation of different types of losses. First, the percentage change of the loss of each decoding layer before and after a round of training is calculated. Then, the loss weight of each decoding layer is obtained by converting the percentage change of the loss of each decoding layer before and after a round of training. Finally, the loss weight of each decoding layer is linearly normalized to obtain the normalized loss weight of each decoding layer, that is, the loss weight of each decoding layer used for model training.

[0068] The above-mentioned dynamic weight adjustment mechanism enables the network to pay more attention to the loss that does not change much during the training process, thereby improving the network's final segmentation ability.

[0069] Step S205: The nasal cartilage size and volume measurement module (hereinafter referred to as the measurement module) determines the longest diameter and volume of the nasal cartilage based on the nasal region image with the identified nasal cartilage structure.

[0070] The longest diameter of the nasal cartilage is calculated as follows:

[0071] Where, SP x , S.P. y , S.P. z Refers to the different spatial resolutions in the x, y, and z directions respectively. max ,y max , z max They are the maximum coordinate positions of the nasal cartilage in the x, y, and z directions, respectively. min ,y min , z min They are the minimum coordinate positions of the nasal cartilage in the x, y, and z directions respectively.

[0072] The volume of nasal cartilage is calculated based on the voxel analysis method. In simple terms, the nasal cartilage geometry is divided into multiple small (1, 2, ...s) regular voxels, and the volume of all voxels (V1, V2, ...V s ) and then estimate the volume V of the entire nasal cartilage. The formula is as follows:

[0073] The present invention automatically calculates the longest diameter and volume parameters of the nasal cartilage based on the nasal cartilage structure obtained by the fine segmentation module, which can help doctors formulate more accurate surgical plans.

[0074] In summary, the present invention can improve the recognition ability of the automatic recognition algorithm for small target nasal cartilage: 1. The present invention adopts a two-stage segmentation strategy. In the first stage, the nose area is located in the global image. In the second stage, the global image is cropped according to the nose area located in the first stage to increase the proportion of the nasal cartilage target area in the image, thereby finely identifying and segmenting the nasal cartilage area. 2. The present invention adopts the spatial channel attention mechanism to allow the fine segmentation model to learn the proportion of encoder and decoder feature image fusion at different scales, which is conducive to preserving small target information; 3. The present invention adds deep supervision technology to the decoder part, and each layer of the decoder (or different stages of the decoder) calculates the loss, which improves the segmentation accuracy of small objects; 4. The present invention adopts multiple training losses and improves the segmentation accuracy of nasal cartilage by mixing and applying multiple loss functions to ensure that the target area is not missed; 5. The present invention dynamically allocates the loss weights of different types of loss functions of each layer of decoders and the loss weights of each layer of encoders according to the changes in various losses during the training process, thereby improving the model's ability to segment small targets.

[0075] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the present invention is not limited thereby. Any modification, equivalent substitution and improvement made by those skilled in the art without departing from the scope and essence of the present invention shall be within the scope of the present invention.

Claims

1. A method for automatically identifying nasal cartilage, characterized in that: The method comprises: Using the coarse segmentation model, a coarse segmentation process is performed on the head CT image of the patient undergoing rhinoplasty surgery, with the nose region as the segmentation target, and the nose region is located in the head CT image; Based on the head CT image in which the nose region has been located, obtaining a nose region image with improved resolution; The fine segmentation model is used to perform fine segmentation processing on the nose region image with the nasal cartilage as the segmentation target, and the nasal cartilage structure is identified in the nose region image.

2. The method according to claim 1, characterized in that Before using the rough segmentation model to perform rough segmentation processing on the head CT image of the patient undergoing rhinoplasty surgery with the nose region as the segmentation target, the method further includes: The original head CT image of the patient undergoing rhinoplasty surgery is sequentially subjected to voxel resolution resampling processing, window width and window position setting processing, and image scaling processing to obtain the head CT image that can be fed into the coarse segmentation model.

3. The method according to claim 1, characterized in that The coarse segmentation model adopts a general U-Net model, which includes: an encoder part with multiple layers of encoders, a decoder part with multiple layers of decoders symmetrical to the encoder part, and a jump connection for transmitting the feature map extracted by each layer of encoder to the corresponding layer of decoder.

4. The method according to claim 1, characterized in that: The step of obtaining a nasal region image with improved resolution based on the head CT image in which the nasal region has been located comprises: Performing cropping and interpolation processing on the nose region in the head CT image in which the nose region has been located, to obtain a nose region image with improved resolution; Alternatively, the head CT image in which the nose region has been located is interpolated, and the nose region is cropped from the interpolated head CT image to obtain a head image of the nose region with improved resolution.

5. The method according to claim 1, characterized in that The fine segmentation model adopts an improved U-Net model, which includes an encoder part with multiple layers of encoders, a decoder part with multiple layers of decoders symmetrical to the encoder part, and a jump connection for transmitting the feature map extracted by each layer of encoder to the corresponding layer of decoder, wherein a spatial attention mechanism is added to the jump connection, a spatial attention mechanism is added after each upsampling of the decoder part, and a channel attention mechanism is added after each splicing operation of the decoder part.

6. The method according to claim 5, characterized in that The step of using the fine segmentation model to perform fine segmentation processing on the nose region image with nasal cartilage as the segmentation target includes: Using the encoder part of the fine segmentation model to extract features of the nose region image layer by layer to obtain a multi-scale feature map; Using the decoder part of the fine segmentation network model, the multi-scale feature map extracted by the encoder part is restored into a nasal region image in which the nasal cartilage structure has been identified; The step of restoring the multi-scale feature map extracted by the encoder part to a nasal region image in which the nasal cartilage structure has been identified includes: For any layer of decoders, the feature map extracted by the encoder of this layer is processed based on the spatial attention mechanism to obtain the encoder feature map of this layer, and the feature map upsampled by the decoder of this layer is processed based on the spatial attention mechanism to obtain the decoder feature map of this layer; The encoder feature map of the layer and the decoder feature map of the layer are spliced ​​to obtain a spliced ​​feature map of the layer, and the spliced ​​feature map of the layer is processed based on the channel attention mechanism to obtain feature maps of the attended spatial dimension and channel dimension of the layer.

7. The method according to claim 6, characterized in that The processing of the feature map extracted by the encoder of the layer based on the spatial attention mechanism to obtain the encoder feature map of the layer, and the processing of the feature map upsampled by the decoder of the layer based on the spatial attention mechanism to obtain the decoder feature map of the layer include: Performing maximum and average pooling operations, convolution operations, and normalization operations on the feature map extracted by the encoder of the layer in sequence to obtain the first spatial attention weight of the layer, thereby obtaining the encoder feature map of the layer according to the feature map extracted by the encoder of the layer and the first spatial attention weight of the layer; The feature map obtained by upsampling the decoder of this layer is subjected to maximum and average pooling operations, convolution operations, and normalization operations in sequence to obtain the second spatial attention weight of this layer, thereby obtaining the decoder feature map of this layer based on the feature map obtained by upsampling the decoder of this layer and the second spatial attention weight of this layer.

8. The method according to claim 6, characterized in that The processing of the spliced ​​feature map of the layer based on the channel attention mechanism to obtain the spliced ​​feature map of the focused spatial dimension and channel dimension of the layer includes: The encoder feature map of the layer is subjected to maximum and average pooling operations, multi-layer perception and normalization operations in sequence to obtain the channel attention weight of the layer, thereby obtaining the spliced ​​feature map of the attended spatial dimension and channel dimension of the layer according to the spliced ​​feature map of the layer and the channel attention weight of the layer.

9. The method according to claim 5, characterized in that The method further comprises: In each round of training of the fine segmentation model, the layer training loss of each layer of the decoder is calculated respectively, wherein the layer training loss is the weighted loss of Dice Loss, Focal Loss and Boundary Loss of each layer; The layer training loss of each layer of the decoder is weighted to obtain the model training loss of the fine segmentation model, so as to update the parameters of the fine segmentation model by using the model training loss of the fine segmentation model.

10. The method according to claim 1, characterized in that The method further comprises: Based on the nasal region image with the identified nasal cartilage structure, the longest diameter and volume of the nasal cartilage are determined.