Target image processing model training method, image processing method

Through the training and encoding and decoding of the target image processing model, combined with the information of plain CT and enhanced CT, the problem of inaccurate results of plain CT examination is solved, and the accuracy of tumor detection and breast cancer diagnosis effect are improved.

CN118397377BActive Publication Date: 2024-09-13ALIBABA (CHINA) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410843483.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-13
Estimated Expiration
2044-06-26

AI Technical Summary

Technical Problem

In the existing technology, the diagnostic effect using plain scan CT examination results is not accurate enough, resulting in limited early diagnosis and treatment.

Method used

Through the target image processing model training method, the initial image and the enhanced image are combined for fusion and mask processing, the reference image processing model and the target image processing model are used for encoding and decoding processing, and the target image processing model is extracted and trained to improve the sensitivity of tumor detection. sex and specificity.

Benefits of technology

It improves the accuracy of tumor detection and segmentation results in plain CT data, and enhances the diagnostic effect of breast cancer and other diseases.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118397377B
    Figure CN118397377B
Patent Text Reader

Abstract

The embodiments of the present specification provide a target image processing model training method and an image processing method. The target image processing model training method includes determining an initial image and an enhanced image of a target object; fusing the initial image and the enhanced image to obtain a fused image and performing mask processing on the initial image to obtain a mask image; inputting the fused image into a reference image processing model, and using the reference image processing model to encode and decode the fused image to obtain initial decoded image features and initial decoded classification features; inputting the mask image into a target image processing model, and using the target image processing model to encode and decode the mask image to obtain target decoded image features and target decoded classification features; training the target image processing model based on the initial decoded image features, the initial decoded classification features, the target decoded image features, and the target decoded classification features; and improving the accuracy of detecting and segmenting the target object using the initial image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this specification relate to the field of computer technology, and in particular, to a target image processing model training method and an image processing method; one or more embodiments of this specification also relate to a target image processing model training device, an image processing method, a computing device, a computer-readable storage medium, and a computer program product. Background Art

[0002] With the popularity of breast cancer screening, more and more people are undergoing non-contrast computed tomography (NCCT) examinations. However, the results of NCCT examinations may not be as accurate as those of contrast-enhanced computed tomography (CECT), which means that the use of plain CT examinations may affect early diagnosis and treatment.

[0003] Therefore, there is an urgent need for a method to improve the diagnostic effect of plain scan CT examinations and to increase the sensitivity and specificity of tumor detection in plain scan CT data. Summary of the invention

[0004] In view of this, an embodiment of this specification provides a target image processing model training method. One or more embodiments of this specification also relate to a target image processing model training device, an image processing method, a computing device, a computer-readable storage medium, and a computer program product to solve the technical defect of inaccurate examination results obtained by plain scan CT in the prior art.

[0005] According to a first aspect of an embodiment of this specification, a target image processing model training method is provided, comprising:

[0006] Determine an initial image and an enhanced image of a target object;

[0007] Fusing the initial image and the enhanced image to obtain a fused image, and performing mask processing on the initial image to obtain a mask image;

[0008] Inputting the fused image into a reference image processing model, and performing encoding and decoding processing on the fused image using the reference image processing model to obtain initial decoded image features and initial decoded classification features;

[0009] Inputting the mask image into a target image processing model, and using the target image processing model to perform encoding and decoding processing on the mask image to obtain target decoded image features and target decoded classification features;

[0010] The target image processing model is trained according to the initial decoded image features, the initial decoded classification features, the target decoded image features, and the target decoded classification features.

[0011] According to a second aspect of the embodiments of this specification, there is provided an image processing method, including:

[0012] Determine a target image, and input the target image into a target image processing model;

[0013] Using the target image processing model to perform encoding and decoding processing on the target image to obtain target image features and target classification features of the target image;

[0014] Using the target image features, obtaining a segmented image corresponding to the target image;

[0015] The target classification feature is used to obtain a classification result corresponding to the target image.

[0016] According to a third aspect of the embodiments of this specification, a computer-aided diagnosis method for cancer is provided, comprising:

[0017] Determine the CT image of the target detection area;

[0018] Inputting the CT image into a CT image processing model, and processing the CT image using the CT image processing model to obtain a CT segmentation image and a CT classification result corresponding to the CT image, wherein the CT image processing model is trained by the target image processing model training method;

[0019] A detection result of whether a tumor exists in the target detection area is obtained according to the CT segmentation image and the CT classification result.

[0020] According to a fourth aspect of the embodiments of this specification, a computer-aided diagnosis method for breast cancer is provided, comprising:

[0021] Determine the CT image of the breast area;

[0022] Inputting the CT image into a CT image processing model, and processing the CT image using the CT image processing model to obtain a CT segmentation image and a CT classification result corresponding to the CT image, wherein the CT image processing model is trained by the target image processing model training method;

[0023] A detection result of whether a tumor exists in the breast area is obtained according to the CT segmentation image and the CT classification result.

[0024] According to a fifth aspect of the embodiments of this specification, another image processing method is provided, which is applied to a client of a medical system, including:

[0025] In response to a user's clicking operation on a user interaction interface of the client, determining a medical image;

[0026] Sending the medical image to the server of the medical system, and receiving the segmented image and classification result corresponding to the medical image returned by the server, wherein the segmented image and classification result corresponding to the medical image are obtained by processing the medical image according to a target image processing model, and the target image processing model is trained by the above-mentioned target image processing model training method;

[0027] The segmented image and classification result corresponding to the medical image are displayed to the user through the user interaction interface.

[0028] According to a sixth aspect of the embodiments of this specification, a computer-aided diagnosis system for cancer is provided, including a client and a server, wherein:

[0029] The client is used to send the CT image of the target detection area to the server;

[0030] The server is used to input the CT image into a CT image processing model, process the CT image using the CT image processing model, obtain a segmentation image and a classification result corresponding to the CT image, and obtain a detection result of whether a tumor exists in the target detection area based on the CT segmentation image and the CT classification result, and return the detection result to the client, wherein the CT image processing model is trained by the above-mentioned target image processing model training method.

[0031] According to a seventh aspect of the embodiments of this specification, a target image processing model training device is provided, comprising:

[0032] An image determination module is configured to determine an initial image and an enhanced image of a target object;

[0033] an image acquisition module, configured to fuse the initial image and the enhanced image to obtain a fused image, and perform mask processing on the initial image to obtain a mask image;

[0034] an initial feature acquisition module, configured to input the fused image into a reference image processing model, perform encoding and decoding processing on the fused image using the reference image processing model, and obtain initial decoded image features and initial decoded classification features;

[0035] a target feature acquisition module, configured to input the mask image into a target image processing model, perform encoding and decoding processing on the mask image using the target image processing model, and obtain target decoded image features and target decoded classification features;

[0036] The model training acquisition module is configured to train the target image processing model according to the initial decoded image features, the initial decoded classification features, the target decoded image features, and the target decoded classification features.

[0037] According to an eighth aspect of the embodiments of this specification, there is provided an image processing apparatus, including:

[0038] A determination module is configured to determine a target image and input the target image into a target image processing model;

[0039] a feature acquisition module, configured to perform encoding and decoding processing on the target image using the target image processing model to obtain target image features and target classification features of the target image;

[0040] An image acquisition module is configured to obtain a segmented image corresponding to the target image using the target image features;

[0041] The result obtaining module is configured to obtain the classification result corresponding to the target image by using the target classification feature.

[0042] According to a ninth aspect of the embodiments of this specification, a computing device is provided, including:

[0043] Memory and processor;

[0044] The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions. When the computer programs / instructions are executed by the processor, the steps of the above-mentioned target image processing model training method and image processing method are implemented.

[0045] According to the tenth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores a computer program / instruction, and when the computer program / instruction is executed by a processor, the steps of the above-mentioned target image processing model training method and image processing method are implemented.

[0046] According to the eleventh aspect of the embodiments of this specification, a computer program product is provided, including a computer program / instruction, which, when executed by a processor, implements the steps of the above-mentioned target image processing model training method and image processing method.

[0047] One or more embodiments of the present specification provide a target image processing model training method. When an initial image and an enhanced image are fused and input into a reference image processing model, initial decoded image features and initial decoded classification features that can be obtained by using the reference image processing model and that contain rich information about the target object, and when a mask image corresponding to the initial image is input into the target image processing model to obtain target decoded image features and target decoded classification features, and the initial decoded image features, initial decoded classification features, target decoded image features, and target decoded classification features are used to train the target image processing model, the target image processing model can be processed by the target image processing model to restore features of the mask image by referring to the initial decoded image features and initial decoded classification features, thereby better capturing detailed feature-level information of the target object (i.e., the above-mentioned initial decoded image features and initial decoded classification features), and transferring the knowledge learned from the reference image processing model to the target image processing model. Subsequently, when the initial image of the target object is input into the target image processing model, the accuracy of the target image processing model in detecting and segmenting the target object using the initial image can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 is a scene schematic diagram of an image processing method provided by an embodiment of this specification;

[0049] Figure 2 is a flow chart of a target image processing model training method provided by an embodiment of this specification;

[0050] Figure 3 is a flow chart of an image processing method provided by an embodiment of this specification;

[0051] Figure 4 is a flow chart of a computer-aided diagnosis method for breast cancer provided by one embodiment of this specification;

[0052] Figure 5 is a flowchart of an image processing method applied to a client of a medical system provided by an embodiment of this specification;

[0053] Figure 6 This is a structural framework diagram of a target image processing model training method provided by an embodiment of this specification and applied to a medical imaging diagnosis scenario;

[0054] Figure 7 It is a structural schematic diagram of a target image processing model training device provided by an embodiment of this specification;

[0055] Figure 8 is a structural schematic diagram of an image processing device provided by an embodiment of this specification;

[0056] Fig. 9 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION

[0057] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.

[0058] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0059] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0060] In addition, it should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0061] First, the terms involved in one or more embodiments of this specification are explained.

[0062] Knowledge distillation: A model compression technique that aims to transfer the knowledge learned by a complex model (teacher model) to a lightweight model (student model) to achieve model compression and acceleration. This method optimizes the student model by minimizing the difference between the outputs of the teacher model and the student model.

[0063] FKD: Feature-level Knowledge Distillation, a technique used for model compression and knowledge transfer in the field of deep learning. It transfers the implicit knowledge of the teacher model by making the intermediate layer features of the student model closer to the features of the corresponding layer of the teacher model.

[0064] Masked image modeling: Masked image modeling is a self-supervised learning method. Specifically, the algorithm randomly "masks" parts of the input image and then asks the model to predict the content of these masked parts. This method encourages the model to understand and learn the global context and local details of the image, thereby improving its comprehensive understanding of the image content.

[0065] In this specification, a target image processing model training method is provided. This specification also involves a target image processing model training device, an image processing method, an image processing device, a computing device, a computer-readable storage medium and a computer program product, which are described in detail one by one in the following embodiments.

[0066] See also Figure 1 , Figure 1 A schematic diagram of a scene of an image processing method provided according to an embodiment of the present specification is shown.

[0067] The image processing method provided in the embodiments of this specification can be applied to different scenarios. For example, when the image processing method is applied to an autonomous driving scenario, it can detect and identify pedestrians, vehicles or traffic signs in traffic images; when the image processing method is applied to a medical scenario, specifically to medical image analysis, it can detect and identify organs, tumors or lesion areas in medical images.

[0068] Taking the application of the image processing method provided in the embodiments of this specification in a medical scenario as an example, a scenario of detecting a tumor in a plain scan CT image is specifically described in detail.

[0069] Specifically, the image processing method is implemented by applying the terminal device 102 and the server 104 , and the terminal device 102 is used to send a plain scan CT image to the server 104 , such as a breast plain scan CT image.

[0070] The target image processing model is trained in the server 104, such as Figure 1As shown, the target image processing model includes a coding layer, a decoding layer and a fully connected layer; thus, when the server 104 receives the plain scan CT image sent by the terminal device 102, the plain scan CT image is input into the target image processing model, and the coding layer and the decoding layer of the target image processing model are used to encode and decode the plain scan CT image to obtain target image features and classification features corresponding to each decoding layer, and a segmented image corresponding to the plain scan CT image is obtained through the image features. The segmented image is an image with the same size as the plain scan CT image and different gray values ​​are used to indicate different regions, for example, 0 represents background, 1 represents organs, and 2 represents tumors; the key classification features corresponding to each decoding layer are obtained by convolution and pooling the classification features corresponding to each decoding layer, and the target classification features obtained by splicing these key classification features are input into the fully connected layer, so as to obtain the classification result corresponding to the plain scan CT image, such as 0 represents non-cancer and 1 represents cancer; the obtained segmented image and classification result are returned to the terminal device 102.

[0071] Specifically, the training steps of the target image processing model are as follows: determine the initial image and enhanced image of the target object; fuse the initial image and the enhanced image to obtain a fused image, and mask the initial image to obtain a mask image; input the fused image into a reference image processing model, and use the reference image processing model to encode and decode the fused image to obtain initial decoded image features and initial decoded classification features; input the mask image into a target image processing model, and use the target image processing model to encode and decode the mask image to obtain target decoded image features and target decoded classification features; train the target image processing model based on the initial decoded image features, the initial decoded classification features, the target decoded image features, and the target decoded classification features.

[0072] The end-side device 102 may include a browser, an APP (Application), or a web application such as an H5 (Hyper Text Markup Language 5, version 5 of Hypertext Markup Language) application, or a light application (also known as a mini-program, a lightweight application) or a cloud application, etc. The end-side device may be based on a software development kit (SDK) of the corresponding service provided by the server, such as based on the real-time communication (RTC, Real Time Communication) SDK development and acquisition. The end-side device may be deployed in an electronic device and needs to rely on the device to run or some APPs in the device to run. The electronic device may have a display screen and support information browsing, such as a personal mobile terminal such as a mobile phone, a tablet computer, a personal computer, etc. Various other types of applications may also be configured in the electronic device, such as human-computer dialogue applications, model training applications, text processing applications, web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0073] Server 104 can be understood as a server that provides various services, including physical servers and cloud servers, such as a server that provides communication services to multiple clients, a server for background training that supports the model used on the client, and a server that processes the data sent by the client. It should be noted that server 104 can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. Server 104 can also be a server for a distributed system, or a server combined with a blockchain. Server 104 can also be a cloud server for basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (CDNs), and big data and artificial intelligence platforms, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology.

[0074] It is worth noting that the image processing method provided in the embodiments of this specification can be executed by the server 104. In other embodiments of this specification, the target image processing model can be deployed in the terminal device 102, so that the terminal device 102 can also have similar functions as the server 104, thereby executing the image processing method provided in the embodiments of this specification; in other embodiments, the image processing method provided in the embodiments of this specification can also be executed jointly by the terminal device 102 and the server 104.

[0075] The image processing method provided in the embodiments of this specification inputs an image into a target image processing model, and uses the target image processing model to obtain target image features and target classification features of the image. When the target image processing model is trained using features containing enhanced image information, the target image processing model can better capture detailed feature-level information of the target object in the image, thereby obtaining more accurate segmented images and classification results.

[0076] See also Figure 2 , Figure 2 A flowchart of a target image processing model training method provided by an embodiment of the present specification is shown, which specifically includes the following steps.

[0077] Step 202: Determine an initial image and an enhanced image of the target object.

[0078] Among them, the target object can be understood as the area, object or feature with specific meaning or interest in the image. They are the key elements in tasks such as image analysis, image processing and image understanding. The target object is understood differently in different application scenarios. For example, in traffic scenarios, the target object can be understood as pedestrians, vehicles or traffic signs; in logistics scenarios, the target object can be understood as shelves, goods or electronic tags; in medical scenarios, the target object can be understood as organs, tumors, etc.

[0079] The initial image can be understood as the original image obtained by collecting (such as photographing or scanning) the target object. The initial image can be directly obtained through a camera, scanner or other image capture device; the enhanced image can be understood as an image that can highlight the target object. The enhanced image can be obtained by adjusting the initial image.

[0080] For example, in a medical scenario, the initial image may be a plain scan CT image. When the target object is a tumor, the enhanced image may be an enhanced CT image. The enhanced CT image, through the effect of contrast agents, can show vascular structures, tumors, inflammatory areas or other pathological changes more clearly than plain scan CT images because the contrast between them and the surrounding normal tissues is improved. In a logistics scenario, the initial image may be an image of a shelf captured by an inspection robot. When the target object is a product, the enhanced image may be an image that is sharpened to make the products on the shelf in the shelf image more clearly displayed.

[0081] Specifically, an initial image and an enhanced image of the target object are determined, wherein the enhanced image contains more privileged information related to the target object than the initial image.

[0082] Step 204: Fusing the initial image and the enhanced image to obtain a fused image, and performing mask processing on the initial image to obtain a mask image.

[0083] Among them, the fused image can be understood as an image obtained by splicing and fusing the initial image and the enhanced image, weighted fusion, Poisson fusion, etc.; the mask image can be understood as an image obtained by masking the initial image and randomly masking some image pixels in the initial image.

[0084] Specifically, by splicing and fusing the initial image and the enhanced image, a fused image is obtained, so that when the subsequent reference image processing model processes the fused image, it can utilize the complementary information of the multimodal image, enrich the feature learning of the model, enhance the generalization ability, and provide strong support for the subsequent knowledge distillation process.

[0085] For example, channel-level splicing and fusion of plain scan CT images and enhanced CT images and inputting them into the reference image processing model can help the reference image processing model better understand the complex features in the plain scan CT images, so that when the reference image processing model (as a teacher model) transfers the feature-level information to the target image processing model (as a student model), the target image processing model can also perform reasonable processing on the plain scan CT images when the input data of the target image processing model is plain scan CT images, thereby improving the accuracy and effectiveness of detection and segmentation based on plain scan CT images.

[0086] By inputting the mask image into the target image processing model, when restoring features based on the mask image, it is possible to restore more based on the features corresponding to the reference image processing model, thereby obtaining detailed feature-level information of the target object from the reference image processing model and strengthening the distillation constraints.

[0087] In one embodiment of the present specification, when the target image processing model needs to learn from the reference image processing model and obtain detailed feature-level information of the target object from the reference image processing model, the reference image processing model can obtain detailed feature-level information of the target object when processing an image containing the target object. The training steps of the reference image processing model are as follows:

[0088] Determine the initial image sample, enhanced image sample, image label, and classification label of the target object sample;

[0089] Fusing the initial image sample and the enhanced image sample to obtain a fused image sample, and inputting the fused image sample into a reference image processing model;

[0090] Using the reference image processing model, obtaining a predicted segmentation image and a predicted classification result corresponding to the initial image sample;

[0091] The reference image processing model is trained according to the predicted segmented image, the image label, the predicted classification result, and the classification label.

[0092] In one embodiment of the present specification, the using the reference image processing model to obtain the predicted segmented image and the predicted classification result corresponding to the initial image sample includes:

[0093] Using the reference image processing model, encoding and decoding the fused image samples are processed to obtain target decoded image sample features and target decoded classification sample features;

[0094] Using the target decoded image sample features, obtaining a predicted segmented image corresponding to the fused image sample;

[0095] The target decoding classification sample features are used to obtain the predicted classification results corresponding to the fused image samples.

[0096] In one embodiment of the present specification, the reference image processing model includes an encoder and a decoder, the encoder is composed of multiple encoding layers, and the decoder is composed of multiple decoding layers;

[0097] The step of using the reference image processing model to perform encoding and decoding processing on the fused image sample to obtain target decoded image sample features and target decoded classification sample features includes:

[0098] Using the multiple coding layers to encode the fused image samples to obtain initial encoded image sample features;

[0099] Decoding the initial encoded image sample features using the multiple decoding layers to obtain initial decoded image sample features corresponding to each decoding layer in the multiple decoding layers;

[0100] The initial decoded image sample features corresponding to the final decoding layer in the multiple decoding layers are determined as the target decoding classification sample features; or, according to the image classification task, the initial decoded image sample features corresponding to each decoding layer in the multiple decoding layers are convolved and pooled to obtain the key image sample features corresponding to each decoding layer, and the key image sample features corresponding to each decoding layer are fused to obtain the target decoding classification sample features.

[0101] Specifically, the training process of the reference image processing model is described in detail: when training the reference image processing model, the initial image samples and enhanced image samples of the target object samples are fused to obtain fused image samples, and the fused image samples are used as input and input into the reference image processing model; the network architecture of the reference image processing model is a multi-task network architecture, including an encoder-decoder structure with jump connections; the reference image processing model contains two task-specific branches, one is a segmentation branch for obtaining a segmented image, and the other is a classification branch for obtaining a classification result.

[0102] The encoder and decoder of the reference image processing model are used to encode and decode the fused image samples, that is, the fused image samples are encoded through multiple encoding layers in the encoder to obtain initial encoded image sample features, and the initial encoded image sample features are decoded through multiple decoding layers in the decoder to obtain initial decoded image sample features corresponding to each decoding layer in the multiple decoding layers.

[0103] In practical applications, for the classification branch, the initial decoded image sample features corresponding to the last decoding layer in multiple decoding layers can be determined as the target decoding classification sample features; or, in order to obtain the classification results more accurately, the corresponding initial decoded image sample features can be obtained from each decoding layer, and convolution processing is performed on these features, and global large pooling is applied to extract representative key image sample features from the features after convolution processing, and the key image sample features corresponding to each decoding layer are spliced ​​and fused to obtain the target decoding classification sample features; by inputting the target decoding classification sample features into the fully connected layer, the predicted classification results of the initial image samples are obtained using the fully connected layer.

[0104] For the segmentation branch, the high-level features of the fused image samples are captured in the encoder to obtain a highly abstract representation of the content of the fused image samples; the decoder is responsible for restoring the abstract feature map generated by the encoder to the spatial size of the original image. When the reference image processing model is a jump-connected encoder-decoder structure, each layer of the encoder is directly connected to the corresponding decoding layer (usually the same scale or a similar scale), and the feature map of the encoding stage is directly passed, thereby retaining the detail information of the original image, which helps to reconstruct finer boundaries and textures in the final output. Through the processing of the encoder and decoder, the features finally output by the decoder after being processed by multiple decoding layers are determined as the target decoded image sample features, thereby using the target decoded image sample features to obtain the predicted segmented image corresponding to the initial image sample. The predicted segmented image uses different grayscale values ​​to represent different objects to achieve segmentation of different objects.

[0105] When a predicted segmentation image and a predicted classification result are obtained, a segmentation loss function of the segmentation branch is calculated by predicting the segmentation image and the image label, and a classification loss function of the classification branch is calculated by predicting the classification result and the classification label; according to the segmentation loss function and the classification loss function, a reference image processing model is trained so that a more accurate reference image processing model is obtained by training with paired initial image samples and enhanced image samples. The reference image processing model benefits from a larger training data set and can capture the rich information present in the enhanced image.

[0106] When it is necessary to improve the accuracy of the segmentation image and classification results corresponding to the initial image, the knowledge distillation technology is used to transfer the knowledge learned from the reference image processing model (teacher model) to the target image processing model (student model) with lower accuracy trained using the initial image samples. The model structure of the target image processing model is consistent with that of the reference image processing model, thereby improving the accuracy of the segmentation image and classification results obtained by the target image processing model based on the initial image.

[0107] Step 206: Input the fused image into a reference image processing model, and use the reference image processing model to perform encoding and decoding processing on the fused image to obtain initial decoded image features and initial decoded classification features.

[0108] Among them, the initial decoded image feature can be understood as the decoding feature obtained by using the decoding layer of the reference image processing model, which is used to generate the feature of the segmented image corresponding to the initial image; the initial decoded image feature can be the feature corresponding to each decoding layer and used to generate the segmented image corresponding to the initial image, and can also be the feature corresponding to the last decoding layer after passing through multiple decoding layers and used to generate the segmented image corresponding to the initial image; the initial decoded classification feature can be understood as the feature obtained by using the decoding layer of the reference image processing model and used to classify the initial image; the initial decoded classification feature can be the feature corresponding to each decoding layer and used to classify the initial image, and can also be the feature corresponding to the last decoding layer after passing through multiple decoding layers and used to classify the initial image.

[0109] Specifically, by inputting the fused image into the reference image processing model and performing encoding and decoding processing of the reference image processing model, initial decoded image features and initial decoded classification features corresponding to the fused image are obtained. The initial decoded image features are suitable for generating or understanding image segmentation. Image segmentation refers to dividing an image into multiple regions, each region corresponding to a different object or object category in the image. Therefore, such features help to identify and separate different objects or regions in the image. The initial decoded classification features focus on classifying the entire image or the subject in the image, that is, identifying which category the image belongs to or what attributes it has. They are the key for the model to judge the content of the image, such as determining whether an image is an organ, a tumor, etc.

[0110] In one or more embodiments of the present specification, the reference image processing model includes an encoder and a decoder, the encoder is composed of multiple encoding layers, and the decoder is composed of multiple decoding layers; through the processing of multiple decoding layers, initial decoded image features corresponding to the multiple decoding layers can be obtained, so that the initial decoding classification features are determined according to the initial decoded image features corresponding to the multiple decoding layers. The specific implementation method is as follows:

[0111] The step of encoding and decoding the fused image using the reference image processing model to obtain initial decoded image features and initial decoded classification features includes:

[0112] Using the multiple coding layers to encode the fused image to obtain initial coded image features;

[0113] The initial encoded image features are decoded using the multiple decoding layers to obtain initial decoded image features corresponding to the multiple decoding layers, and initial decoding classification features are determined based on the initial decoded image features corresponding to the multiple decoding layers.

[0114] Among them, the initial encoded image features can be understood as the compact and information-rich feature representation obtained by encoding the fused image through multiple encoding layers; the initial decoded image features can be understood as the image representation of different abstract levels output by the decoding layer; the initial decoded classification features can be understood as the features related to image classification determined according to the initial decoded image features corresponding to the decoding layer.

[0115] Specifically, multiple coding layers are used to process the fused image. The coding layers usually involve gradually reducing the spatial resolution of the image while increasing the abstract level of feature expression. This process can be regarded as feature extraction of the fused image. Through a series of dimensionality reduction operations, such as convolution and pooling, the fused image is converted into a set of compact and information-rich feature representations, namely the initial coded image features.

[0116] Multiple decoding layers are used to decode the initial coded image features obtained by the encoding layer. The role of the decoding layer is to reversely decode and upsample the highly compressed feature information step by step to restore it to a spatial structure close to the initial image. In this process, based on the initial coded image features obtained by encoding, partial or complete structure of the image is reconstructed through deconvolution, upsampling and other operations to generate initial decoded image features corresponding to multiple decoding layers. The output of each decoding layer can be regarded as an image representation at different levels of abstraction. The closer the decoding layer is to the output end, the closer its features are to the original spatial structure of the image.

[0117] Further analysis is performed on multiple initial decoded image features corresponding to multiple decoding layers. In practical applications, the decoded initial decoded image features are analyzed to extract the most relevant parts for image classification, which may include a combination of global or local features for category judgment of the initial image.

[0118] The target image processing model training method provided in the embodiments of this specification encodes and decodes the fused image through multiple encoding layers and multiple decoding layers, and can obtain more refined initial decoded image features corresponding to each decoding layer, so that when the initial decoded image features are subsequently used to determine the initial decoded classification features, the initial decoded classification features containing rich information can also be obtained, which is convenient for improving the performance of the trained target image processing model and improving the accuracy of image segmentation and image classification.

[0119] In one or more embodiments of the present specification, different processing can be performed on the initial decoded image features according to actual needs, so as to obtain initial decoded classification features that meet different needs. The specific implementation method is as follows:

[0120] The determining of the initial decoding classification features according to the initial decoding image features corresponding to the multiple decoding layers includes:

[0121] Determine the initial decoded image features corresponding to the final decoded layer in the multiple decoded layers as the initial decoded classification features; or,

[0122] According to the image classification task, convolution and pooling processing are performed on the initial decoded image features corresponding to each decoding layer in the multiple decoding layers to obtain the first key decoded image features corresponding to each decoding layer, and the first key decoded image features corresponding to each decoding layer are fused to obtain the initial decoding classification features.

[0123] The final decoding layer can be understood as the last decoding layer among multiple decoding layers. When each decoding layer processes based on the features output by the previous decoding layer, the features output by the final decoding layer are the final product of the entire decoding process, and contain the key information required for the model to deeply understand and predict the fused image. The first key decoded image feature can be understood as the representative feature for image classification among the initial decoded image features corresponding to each decoding layer.

[0124] The image classification task can be understood as the task of classifying images into different types of images according to the target objects in the images. For example, in a medical scenario, the goal of the image classification task can be to classify images into images containing tumors and images not containing tumors according to the target objects in the images. In a logistics scenario, the goal of the image classification task can be to classify images into images with normal display of goods and images with abnormal display of goods according to the target objects in the images.

[0125] Specifically, when one wants to simplify calculations and improve efficiency, the features finally output by the decoder after being processed by multiple decoding layers, that is, the initial decoded image features output by the last decoding layer, can be determined as the initial decoding classification features.

[0126] In the case of wanting to obtain more accurate classification results, the corresponding initial decoded image features can be extracted from each decoding layer according to the image classification task, that is, the initial decoded image features corresponding to each decoding layer and containing different hierarchical scales are obtained, and the initial decoded image features corresponding to each decoding layer are further refined through convolution processing to obtain features meaningful to the image classification task. Through pooling operations (the embodiment of this specification applies global larger pooling), the spatial dimension is reduced, and the most important information in each initial decoded image feature after convolution is retained. The pooling operation can also reduce the number of parameters of the subsequent fully connected layer, thereby reducing the risk of overfitting and reducing the computational burden; the first key decoded image features corresponding to each decoding layer are obtained, and the initial decoding classification features are obtained by splicing and fusing the first key decoded image features corresponding to each decoding layer.

[0127] The target image processing model training method provided in the embodiments of this specification can obtain initial decoding classification features that meet different needs according to actual needs, and when the first key decoding image features corresponding to each decoding layer are fused to obtain the initial decoding classification features, it can integrate the contextual information at the overall level while capturing the details at the local level, thereby obtaining more accurate results.

[0128] In one or more embodiments of the present specification, when the initial decoded image features and the initial decoded classification features are obtained, the initial segmented image corresponding to the image segmentation task is obtained, and the initial classification result corresponding to the image classification task is obtained. The specific implementation method is as follows:

[0129] After inputting the fused image into a reference image processing model, encoding and decoding the fused image using the reference image processing model, and obtaining initial decoded image features and initial decoded classification features, the method further includes:

[0130] According to the image segmentation task, using the initial decoded image features, obtaining an initial segmented image corresponding to the initial image;

[0131] According to the image classification task, the initial decoding classification features are used to obtain an initial classification result corresponding to the initial image.

[0132] Among them, the image segmentation task can be understood as the task of segmenting different objects or different areas in the image. The image segmentation process can be regarded as classifying each pixel in the image and assigning a label to each pixel to indicate the category or object to which it belongs; for example, in the embodiment of this specification, when the target image processing model is applied to the medical field, the background in the image is marked as 0, the organ is marked as 1, and the tumor is marked as 2.

[0133] The initial segmented image can be understood as an image obtained by segmenting different objects in the initial image; the initial classification result can be understood as a classification result determined based on the target object in the initial image; for example, in the medical field, the initial segmented image is an image with different gray values ​​where 0 represents the background, 1 represents the organ, and 2 represents the tumor. The initial classification results include two types, one for cancer and the other for non-cancer.

[0134] In practical applications, according to specific downstream tasks, such as image segmentation tasks, the initial decoded image features can be used to obtain the initial segmented image of the initial image corresponding to the image segmentation task; according to image classification tasks, the initial decoded classification features can be used to obtain the initial classification results of the initial image corresponding to the image classification task.

[0135] The target image processing model training method provided in the embodiments of this specification can not only use the initial decoded image features to achieve pixel-level image segmentation tasks, but also use the initial decoded classification features to perform image-level image classification tasks, thereby obtaining diverse results related to the initial image.

[0136] Step 208: Input the mask image into the target image processing model, and use the target image processing model to perform encoding and decoding processing on the mask image to obtain target decoding image features and target decoding classification features.

[0137] Among them, the target image processing model and the reference image processing model have the same network architecture, that is, the target image processing model is also a multi-task network architecture, including an encoder-decoder structure with jump connections.

[0138] The target image processing model obtains target decoded image features and target decoded classification features in a similar manner as the reference image processing model obtains the initial decoded image features and the initial decoded classification features.

[0139] The target decoding image features can be understood as the decoding features obtained using the decoding layer of the target image processing model, which are used to generate the features of the segmented image corresponding to the mask image; the target decoding classification features can be understood as the features obtained using the decoding layer of the target image processing model and used to classify the mask image.

[0140] In one or more embodiments of the present specification, the target image processing model includes an encoder and a decoder, the encoder is composed of multiple encoding layers, and the decoder is composed of multiple decoding layers;

[0141] The method of using the target image processing model to perform encoding and decoding processing on the mask image to obtain target decoded image features and target decoded classification features includes:

[0142] Using the multiple coding layers to encode the mask image to obtain target coded image features;

[0143] The target encoded image features are decoded using the multiple decoding layers to obtain target decoded image features corresponding to the multiple decoding layers, and target decoding classification features are determined based on the target decoded image features corresponding to the multiple decoding layers.

[0144] In one or more embodiments of the present specification, determining the target decoding classification feature according to the target decoding image features corresponding to the multiple decoding layers includes:

[0145] Determine the target decoding image feature corresponding to the final decoding layer among the multiple decoding layers as the target decoding classification feature; or,

[0146] According to the image classification task, convolution and pooling processing are performed on the target decoded image features corresponding to each decoding layer in the multiple decoding layers to obtain the second key decoded image features corresponding to each decoding layer, and the second key decoded image features corresponding to each decoding layer are fused to obtain the target decoding classification features.

[0147] In one or more embodiments of the present specification, after inputting the mask image into a target image processing model, encoding and decoding the mask image using the target image processing model, and obtaining target decoded image features and target decoded classification features, the method further includes:

[0148] According to the image segmentation task, using the target decoding image features, obtaining the target segmentation result corresponding to the initial image;

[0149] According to the image classification task, the target classification result corresponding to the initial image is obtained by utilizing the target decoding classification feature.

[0150] The specific implementation method is similar to the process of processing the fused image by the above-mentioned reference image processing model, and will not be repeated here.

[0151] Step 210: Train the target image processing model according to the initial decoded image features, the initial decoded classification features, the target decoded image features, and the target decoded classification features.

[0152] Specifically, when training the target image processing model, in order to extract privileged information from the reference image processing model, the intermediate features between the reference image processing model and the target image processing model are minimized through feature-level knowledge distillation (FKD) loss, that is, the difference between the initial decoded image features and the target decoded image features is minimized, as well as the difference between the initial decoded classification features and the target decoded classification features is minimized, so as to guide the target image processing model to inherit and enhance the knowledge in the image from the reference image processing model.

[0153] In one or more embodiments of this specification, through feature-level knowledge distillation, the loss function between the initial decoded image features and the target decoded image features is calculated, the loss function between the initial decoded classification features and the target decoded classification features is calculated, and the target image processing model is trained. The specific implementation method is as follows:

[0154] The step of training the target image processing model according to the initial decoded image features, the initial decoded classification features, the target decoded image features, and the target decoded classification features comprises:

[0155] Obtaining a segmentation loss function according to the initial decoded image features and the target decoded image features;

[0156] Obtaining a classification loss function according to the initial decoding classification feature and the target decoding classification feature;

[0157] The target image processing model is trained according to the segmentation loss function and the classification loss function.

[0158] Among them, the segmentation loss function and the classification loss function can be measured by feature similarity, such as cosine similarity or mean square error.

[0159] In practical applications, since the image segmentation task needs to capture fine-grained local features, the initial decoded image features corresponding to each decoding layer of the reference image processing model and the target decoded image features corresponding to each decoding layer of the target image processing model are compared in similarity to obtain the segmentation loss function of each decoding layer; thereby better guiding the target image processing model (student model) to learn information of different scales and details.

[0160] When the image classification task focuses more on global features, the reference image processing model can be processed using multiple decoding layers, and the features finally output by the decoder can be used as the initial decoding classification features, and the target image processing model can be processed using multiple decoding layers, and the features finally output by the decoder can be used as the target decoding classification features. The classification loss function can be obtained by performing a similarity comparison on the final feature representation (the features finally output by the decoder).

[0161] The target image processing model is trained through the segmentation loss function of the image segmentation task and the classification loss function of the image classification task.

[0162] The target image processing model training method provided in the embodiments of this specification obtains the segmentation loss function of the initial decoded image features and the target decoded image features on each decoding layer when the image classification task requires layer-by-layer guidance at each decoding layer to obtain multi-scale information and ensure the learning of detail information; and on the basis that the image classification task can effectively express the global semantic information through the final feature representation, the classification loss function is obtained through the final feature representation, which can simplify the calculation and improve efficiency.

[0163] In one or more embodiments of the present specification, an additional reconstruction branch is introduced into the target image processing model, and the target decoded image features corresponding to the decoding layer are used to reconstruct the enhanced image, thereby further strengthening the distillation process, thereby obtaining the enhanced image information missing in the input of the target image processing model. The specific implementation method is as follows:

[0164] Before training the target image processing model according to the initial decoded image features, the initial decoded classification features, the target decoded image features, and the target decoded classification features, the further step further includes:

[0165] According to the image prediction task, convolution and up-sampling processing are performed on the target decoded image features to obtain predicted decoded image features, and a predicted enhanced image is obtained according to the predicted decoded image features;

[0166] The step of training the target image processing model according to the initial decoded image features, the initial decoded classification features, the target decoded image features, and the target decoded classification features comprises:

[0167] The target image processing model is trained according to the initial decoded image features, the initial decoded classification features, the target decoded image features, the target decoded classification features, the predicted enhanced image, and the enhanced image.

[0168] The predicted decoded image features may be understood as features containing specific details and structural information required to generate the predicted enhanced image.

[0169] Specifically, by performing convolution processing on the target decoded image features corresponding to each decoding layer, the target decoded image features are further refined and combined, and the upsampling operation is used to increase the feature map resolution and enlarge the size of the feature map to make it close to or restored to the size of the original image, in preparation for generating a high-resolution predicted image, and being able to restore the spatial details of the image to obtain predicted decoded image features; using the predicted decoded image features, a predicted enhanced image is generated, which should contain richer information related to the target object than the initial image.

[0170] When the predicted enhanced image is obtained, when training the target image processing model, the target image processing model is trained using the initial decoded image features, the initial decoded classification features, the target decoded image features, the target decoded classification features, the predicted enhanced image, and the enhanced image.

[0171] That is, in the case where an additional reconstruction branch is added, on the basis of the above-mentioned training target image processing model, the training of the target image processing model using the predicted enhanced image and the enhanced image is added.

[0172] The target image processing model training method provided in the embodiments of this specification integrates an additional reconstruction branch into the target image processing model, and uses the additional reconstruction branch to obtain a predicted enhanced image, thereby further enhancing the distillation process through the predicted enhanced image and the enhanced image, so that the target image processing model can acquire knowledge from the enhanced image invisibly.

[0173] In one or more embodiments of this specification, when a predicted enhanced image is obtained, when training a target image processing model, it is necessary to obtain a reconstruction loss function based on the segmentation loss function and the classification loss function, so as to train and obtain the target image processing model based on these three loss functions. The specific implementation method is as follows:

[0174] The step of training the target image processing model according to the initial decoded image feature, the initial decoded classification feature, the target decoded image feature, the target decoded classification feature, the predicted enhanced image, and the enhanced image comprises:

[0175] Obtaining a segmentation loss function according to the initial decoded image features and the target decoded image features;

[0176] Obtaining a segmentation loss function according to the initial decoding classification features and the target decoding classification features;

[0177] Obtaining a reconstruction loss function according to the predicted enhanced image and the enhanced image;

[0178] The target image processing model is trained according to the segmentation loss function, the classification loss function, and the reconstruction loss function.

[0179] Specifically, because there are paired initial images and enhanced images for the same target image, when the mask image corresponding to the initial image is input into the target image processing model, the similarity between the predicted enhanced image and the enhanced image (the enhanced image paired with the initial image) is calculated to obtain the reconstruction loss function corresponding to the image prediction task.

[0180] In practical applications, based on the segmentation loss function and the classification loss function, a reconstruction loss function is obtained, so that the target image processing model is trained using the segmentation loss function, the classification loss function and the reconstruction loss function.

[0181] The target image processing model provided in the embodiments of this specification can enable the target image processing model to learn and capture more fine-grained features that may not be obvious in the initial image by reconstructing the enhanced image and using the predicted enhanced image obtained by reconstruction and the reconstruction loss function of the enhanced image. In this way, the target image processing model can have a deeper understanding of the complex features in the initial image. In addition, the reconstruction branch provides a strong additional constraint, prompting the target image processing model to not only match the output or feature representation of the reference image processing model, but also to actually generate high-quality enhanced images. This multi-task learning strategy can improve the generalization ability and prediction performance of the target image processing model.

[0182] In one or more embodiments of the present specification, the initial image and enhanced image of the target object can be obtained through the client, and when the target image processing model is obtained through training, the target image processing model is deployed on the client according to the actual needs of the client, or model interface information for the client to interact with the target image processing model is provided to the client. The specific implementation method is as follows:

[0183] The step of determining an initial image and an enhanced image of the target object includes:

[0184] Receiving an initial image and an enhanced image of a target object sent by a client;

[0185] After training the target image processing model, the method further includes:

[0186] The target image processing model or the model interface information corresponding to the target image processing model is sent to the client.

[0187] Among them, the model interface information can be understood as detailed information on how to interact with the target image processing model, including data format, calling method, configuration options, and error handling, etc., to ensure that the target image processing model can be effectively and accurately integrated into various applications and services.

[0188] Specifically, the client may send an initial image and an enhanced image of the target object to the server. Upon receiving the initial image and the enhanced image of the target object, the server processes them using the target image processing model training method to obtain a target image processing model through training.

[0189] When the server obtains the target image processing model, the trained target image processing model can be sent to the client so that the target image processing model can be deployed locally on the client; or in order to save the client's computing resources, the target image processing model can be deployed on the server (the server can also be in the cloud), and the model interface information corresponding to the target image processing model can be sent to the client, so that the client can interact with the target image processing model through the model interface information. For example, when the client sends a plain scan CT image to the server, the server returns the segmented image and classification result corresponding to the plain scan CT image to the client.

[0190] The target image processing model training method provided in the embodiments of this specification can deploy the target image processing model on the client side or the server side as a model providing platform to provide model services to the client side, thereby saving the client's computing resources.

[0191] The target image processing model training method provided in the embodiments of this specification uses paired initial images and enhanced images to train a higher accuracy reference image processing model, which captures the rich information present in the enhanced image. The knowledge distillation technology is used to transfer the knowledge learned from the reference image processing model to a lower accuracy target image processing model trained using a mask image corresponding to the initial image, thereby transferring the privileged information of the reference image processing model to the target image processing model. Moreover, based on the training using the mask image, the distillation constraints can be enhanced and the robustness of the target image processing model can be improved, thereby improving the accuracy of detecting and segmenting the target object using the initial image.

[0192] See also Figure 3 , Figure 3 A flowchart of an image processing method provided by an embodiment of the present specification is shown, which specifically includes the following steps.

[0193] Step 302: Determine a target image, and input the target image into a target image processing model.

[0194] Specifically, the target image processing model is obtained by training using the target image processing model training method described above.

[0195] Step 304: Utilize the target image processing model to perform encoding and decoding processing on the target image to obtain target image features and target classification features of the target image.

[0196] The target image may be understood as an initial image containing a target object (ie, the initial image in the above embodiment). In the medical field, the target image may be understood as a plain scan CT image.

[0197] In practical applications, an unprocessed initial image containing a target object is input into a target image processing model, and when the target image processing model includes an encoder and a decoder, encoding and decoding are performed on the target image to obtain target image features for image segmentation and target classification features for image classification.

[0198] In one or more embodiments of the present invention, the target image processing model includes an encoder and a decoder, the encoder is composed of multiple encoding layers, and the decoder is composed of multiple decoding layers; the encoded image features obtained by encoding are decoded using multiple decoding layers to obtain the target image features corresponding to each decoding layer, thereby further obtaining the target classification features. The specific implementation method is as follows:

[0199] The step of encoding and decoding the target image using the target image processing model to obtain target image features and target classification features of the target image includes:

[0200] Using the multiple coding layers to encode the target image to obtain encoded image features;

[0201] The encoded image features are decoded using the multiple decoding layers to obtain target image features corresponding to the multiple decoding layers, and target classification features are determined based on the target image features corresponding to the multiple decoding layers.

[0202] Among them, the coded image feature can be understood as the compact and information-rich feature representation obtained by encoding the target image through multiple coding layers; the target image feature can be understood as the image representation of different abstract levels output by the decoding layer; the target classification feature can be understood as the feature related to image classification determined according to the target image feature corresponding to the decoding layer.

[0203] Specifically, multiple encoding layers are used to encode the target image, and the target image is converted into a set of compact and information-rich feature representations, namely, encoded image features; multiple decoding layers are used to decode the encoded image features obtained by the encoding layers, and restore them to a spatial structure close to the target image; in this process, each decoding layer corresponds to a target image feature, and the output of each decoding layer can be regarded as an image representation at a different level of abstraction. The closer the decoding layer is to the output end, the closer its features are to the original spatial structure of the image.

[0204] In practical applications, the decoded target image features are analyzed to extract the most relevant parts for image classification, which may include a combination of global or local features for category judgment of the initial image.

[0205] The image processing method provided in the embodiments of this specification encodes and decodes the target image through multiple encoding layers and multiple decoding layers, and can obtain more fine-grained target image features corresponding to each decoding layer, so that when the target decoded image features are subsequently used to determine the target classification features, the target classification features can also contain rich information about the target object.

[0206] In one or more embodiments of this specification, different processing can be performed on the target image features according to actual needs, so as to obtain target classification features that meet different needs. The specific implementation method is as follows:

[0207] The determining the target classification feature according to the target image features corresponding to the multiple decoding layers includes:

[0208] Determine the target image feature corresponding to the final decoding layer in the multiple decoding layers as the target classification feature; or,

[0209] According to the image classification task, convolution and pooling processing are performed on the target image features corresponding to each decoding layer in the multiple decoding layers to obtain the key image features corresponding to each decoding layer, and the key image features corresponding to each decoding layer are fused to obtain the target classification features.

[0210] For the specific implementation, please refer to the above embodiments, which will not be described in detail here.

[0211] In practical applications, the features in each decoding layer are extracted, convolution processing is performed on the extracted features, and global large pooling is applied to extract representative features (i.e. key image features) from the features after convolution processing. These representative features are spliced ​​and the spliced ​​features (i.e. target classification features) are input into the fully connected layer to obtain the classification results.

[0212] The target image processing model training method provided in the embodiments of this specification is conducive to fine-grained segmentation and is also helpful for classification when extracting features in each decoding layer. Through this splicing method, it is possible to capture details at the local level and integrate contextual information at the overall level, thereby improving the overall performance and interpretability of the target image processing model.

[0213] Step 306: Using the target image features, obtain a segmented image corresponding to the target image.

[0214] Step 308: Using the target classification features, obtain a classification result corresponding to the target image.

[0215] The image processing method provided in the embodiments of this specification, when the target image processing model is obtained through the above-mentioned target image processing model training method, the target image processing model can obtain target image features and target classification features containing rich information of the target image, and then the target image processing model can improve the accuracy of the segmented image and classification results corresponding to the target image.

[0216] The embodiment of this specification also provides a computer-aided diagnosis method for cancer, which specifically includes:

[0217] Determine the CT image of the target detection area;

[0218] Inputting the CT image into a CT image processing model, and processing the CT image using the CT image processing model to obtain a CT segmentation image and a CT classification result corresponding to the CT image, wherein the CT image processing model is trained by the target image processing model training method;

[0219] A detection result of whether a tumor exists in the target detection area is obtained according to the CT segmentation image and the CT classification result.

[0220] Specifically, the target detection area may be an area to be detected, such as an organ area of ​​a human body, and the CT image may be a CT image corresponding to the target detection area, including a plain scan CT image and an enhanced CT image.

[0221] The CT image is input into the CT image processing model. When the CT image processing model is trained by the above-mentioned target image processing model training method, the CT segmentation image and the CT classification result corresponding to the CT image can be obtained through the CT image processing model, thereby obtaining the detection result of whether there is a tumor in the target detection area based on the CT segmentation image and the CT classification result.

[0222] In practical applications, the computer-aided diagnosis method for cancer is implemented by a computer, and the image processing method involving diagnosis is implemented by a computer or other device with image processing capabilities. The purpose is to improve the accuracy of image processing and facilitate image recognition, storage and transmission. The detection results provided by the computer are probability values, which can usually provide a reference for medical staff to accurately diagnose the disease and formulate treatment plans.

[0223] That is, from the above content, it can be seen that the detection results obtained based on the CT segmentation image and the CT classification results can be understood as the probability value of whether there is a tumor in the target detection area. Medical staff can use this probability value as a reference for diagnosing the disease. For example, when the probability value is greater than a preset threshold (for example, the preset threshold is 80%), medical staff can increase the probability of confirming the presence of a tumor in the target detection area to reduce the risk of misdiagnosis.

[0224] The computer-aided diagnosis method for cancer provided in the embodiments of this specification, when the CT image processing model is obtained through the above-mentioned target image processing model training method, can use the CT image processing model to obtain accurate CT segmentation images and CT classification results, thereby improving the accuracy of the detection result of whether a tumor exists in the target detection area based on the CT segmentation image and CT classification results.

[0225] See also Figure 4 , Figure 4 A flowchart of a computer-aided diagnosis method for breast cancer provided by an embodiment of this specification is shown, which specifically includes the following steps.

[0226] Step 402: Determine a CT image of a breast region;

[0227] Step 404: Input the CT image into a CT image processing model, and use the CT image processing model to process the CT image to obtain a CT segmentation image and a CT classification result corresponding to the CT image, wherein the CT image processing model is trained by the above-mentioned target image processing model training method.

[0228] Step 406: Obtain a detection result of whether a tumor exists in the breast region based on the CT segmentation image and the CT classification result.

[0229] Taking the target detection area as the breast area as an example, the computer-aided diagnosis method of breast cancer is explained. Specifically, when applied to a medical imaging diagnosis scenario, the target detection area may be the breast area. At this time, the CT image may be a plain scan CT image or an enhanced image containing an organ or a tumor. Correspondingly, the CT segmentation image may be a CT segmentation image in which 0 represents the background, 1 represents the organ, and 2 represents the tumor. The CT segmentation image represents different objects through different grayscale values. The CT classification result may be a CT classification result in which 0 represents non-cancer and 1 represents cancer.

[0230] In practical applications, when the CT segmentation image and the CT classification result are obtained, the results of these two parts can be combined to obtain the detection result for the breast area, and the detection result is used to detect whether there is a tumor in the breast area.

[0231] For the specific implementation, please refer to the above embodiments, which will not be described in detail here.

[0232] The computer-aided diagnosis method for breast cancer provided in the embodiments of this specification can process CT images of the breast area using a CT image processing model, and can improve the accuracy of plain scan CT examinations used for tumor screening and opportunistic discovery, thereby improving the diagnostic effect of breast cancer.

[0233] See also Figure 5 , Figure 5 A flowchart of an image processing method applied to a client of a medical system provided by an embodiment of the present specification is shown, which specifically includes the following steps.

[0234] Step 502: determining a medical image in response to a user's selection operation on a user interaction interface of the client;

[0235] In actual applications, users (usually medical staff) upload medical images through point-and-click operations on the user interaction interface through the client, such as clicking an upload button on the user interaction interface, or directly select a medical image in the user interaction interface; the medical image may be a breast plain scan CT image.

[0236] Step 504: Send the medical image to the server of the medical system, and receive the segmented image and classification result corresponding to the medical image returned by the server, wherein the segmented image and classification result corresponding to the medical image are obtained by processing the medical image according to a target image processing model, and the target image processing model is trained by the above-mentioned target image processing model training method.

[0237] Specifically, the medical image is sent to the server of the medical system, and a target image processing model is deployed on the server of the medical system. The target image processing model is used to process the medical image to obtain the segmented image and classification results corresponding to the medical image, and the segmented image and classification results corresponding to the medical image are returned to the client.

[0238] Step 506: Display the segmented image and classification result corresponding to the medical image to the user through the user interaction interface.

[0239] Specifically, when the segmented image and classification results corresponding to the medical image are received from the server, the segmented image and the classification results are displayed to the user through the user interaction interface, so that the user can determine the information processing result of the medical image through the segmented image and the classification result.

[0240] The image processing method provided in the embodiments of this specification realizes automated processing of medical images through interaction between the client and the server, and the automated processing and instant feedback can significantly shorten the time from image uploading to result analysis, speeding up the entire diagnostic process, and using the target image processing model can improve diagnostic accuracy; in areas where plain scan CT examination is used as the preferred option for tumor screening, this method can improve the accuracy of plain scan CT examination, thereby better serving public health.

[0241] The embodiment of this specification also provides a computer-aided diagnosis system for cancer, including a client and a server, wherein:

[0242] The client is used to send the CT image of the target detection area to the server;

[0243] The server is used to input the CT image into a CT image processing model, process the CT image using the CT image processing model, obtain a segmentation image and a classification result corresponding to the CT image, and obtain a detection result of whether a tumor exists in the target detection area based on the CT segmentation image and the CT classification result, and return the detection result to the client, wherein the CT image processing model is trained by the above-mentioned target image processing model training method.

[0244] Taking the above-mentioned medical image as the CT image of the target detection area as an example, the specific implementation can refer to the above-mentioned embodiment, which will not be repeated here.

[0245] The computer-aided diagnosis system for cancer provided in the embodiments of this specification realizes automatic processing of CT images of the target detection area through interaction between the client and the server, speeds up the entire diagnosis process, and uses the CT image processing model to improve the accuracy of the detection results.

[0246] See also Figure 6 , Figure 6 A structural framework diagram of a target image processing model training method provided by an embodiment of the present specification and applied to a medical imaging diagnosis scenario is shown.

[0247] In practical applications, enhanced CT contains additional information that can enhance diagnostic performance. However, AI (Artificial Intelligence) models learned solely from enhanced CT cannot be generalized to plain CT, in order to improve and enhance the diagnostic performance of plain CT images that are widely used in routine clinical practice; the knowledge obtained from enhanced CT is transferred to plain CT images.

[0248] Specifically, a higher accuracy teacher model (i.e., the reference image processing model in the above embodiment) is trained using paired plain CT and enhanced CT images. This teacher model benefits from a larger training data set and captures the rich information present in enhanced CT images. However, due to the inherent differences between the two CT images, it cannot be directly generalized to plain CT images. Therefore, the knowledge distillation technique is used to transfer the knowledge learned from the teacher model to a lower accuracy student model (i.e., the target image processing model in the above embodiment) trained using plain CT images.

[0249] By extracting knowledge from the teacher models corresponding to enhanced CT and plain CT, the diagnostic performance of the student model corresponding to plain CT is improved. In order to better capture detailed feature-level information through the distillation process, masked image modeling is integrated into the knowledge distillation process, that is, by masking the image blocks input to the student model and recovering the features from the teacher model, the distillation constraints can be strengthened.

[0250] In addition, the distillation process is further strengthened by introducing an additional reconstruction branch in the student model to reconstruct the enhanced CT images using the features obtained by the decoder, so that the student model can supplement the enhanced CT information missing in the input to a certain extent.

[0251] Specifically, Figure 6The architecture diagram shown includes a teacher model and a student model. The architecture diagram is described in detail in stages below.

[0252] Teacher model training stage: In practical applications, a multi-phase CT image (the input of the teacher network is both enhanced CT and plain scan CT, so it is a multi-phase CT image) teacher model is constructed for plain scan CT and enhanced CT knowledge modeling, and to assist the learning of the single-phase CT image (the input of the student model is plain scan CT) student model.

[0253] Pairs of plain scan CT and enhanced CT are obtained, and the pairs of plain scan CT and enhanced CT are spliced ​​and input into the teacher model. The goal is to enable the teacher model to guide the learning process of the robust student model and improve the student model's prediction of plain scan CT images.

[0254] The teacher model is a U-net structure, which contains two task-specific branches for image segmentation tasks and image classification tasks. Specifically, the encoder is used to extract features from the input image (stitched plain scan CT and enhanced CT), and the encoder and decoder are connected using skip connections, that is, the features of the encoding layer are combined with the upsampled features of the corresponding decoding layer. The fine spatial information retained in the encoder can be injected into the decoder to generate an accurate segmented image.

[0255] Extract features from each decoding layer, perform convolution on the extracted features, apply global large pooling to extract representative features from the convolutional features, and concatenate these representative features into the fully connected layer to obtain the classification results. Calculate the segmentation loss function of the generated segmented image and the segmentation image label, calculate the classification loss function of the obtained classification result and the classification label, and then train the teacher network based on the image loss function and the classification loss function.

[0256] The goal of multi-task learning for the teacher model is to minimize the following loss function:

[0257] ,in, and Represent the segmentation loss function and classification loss function respectively. and It is a hyperparameter used to balance the importance of segmentation and classification tasks; Indicates the segmentation image labels corresponding to enhanced CT and plain scan CT; Represents the classification label of the entire input; and are the predicted segmentation images and classification results respectively; it should be noted that for paired input, share the same value because they represent global labels for the same patient (e.g., the same breast of a patient), and similarly, Also share the same value.

[0258] Student model training phase: In order to extract privileged information (information contained in enhanced CT and not contained in plain scan CT) from the teacher network, the feature-level KD loss (expressed as ) imposes constraints on the intermediate features and the student model learns from the teacher model to guide the student model to inherit the contrast enhancement knowledge from the teacher model.

[0259] A plain scan CT is obtained from the training set for training the teacher network, and mask processing is performed, and the masked CT is input into the student model; the student model and the teacher network have the same encoder-decoder structure; when the decoder of the student model upsamples the features extracted by the encoder, it uses the features of the decoder in the teacher network for guidance, that is, when the decoder of the teacher network is decoder 1 and the decoder of the student model is decoder 2, for the segmentation branch, the features extracted in each layer of decoder 1 and the similarity with the features extracted in each layer of decoder 2 are calculated.

[0260] Specifically, taking the decoder containing 5 layers as an example, the similarity between the features extracted by the first layer in decoder 1 and the features extracted by the first layer in decoder 2 is calculated, and the features extracted by the second layer in decoder 2 are obtained based on the features extracted by the first layer in decoder 2. The similarity between the features extracted by the second layer in decoder 1 and the features extracted by the second layer in decoder 2 is calculated, and so on, until the similarity between the features extracted by the fifth layer in decoder 1 and the features extracted by the fifth layer in decoder 2 is calculated. By performing similarity comparison at each decoder layer, the student model can be better guided to learn information of different scales and details, capture fine-grained local features, and generate more accurate segmented images.

[0261] The features finally output by the decoder after being processed by multiple decoder layers are called final features. The similarity between the final feature representation of the classification branch extracted by the teacher network and the final feature representation of the classification branch extracted by the teacher network is calculated to obtain a classification result consistent with the classification result output by the teacher network.

[0262] The segmentation branch performs similarity comparison on the features of each decoder layer, and the classification branch performs similarity comparison on the final features of the decoder, so as to realize feature-level knowledge distillation between the teacher network and the student model. An additional reconstruction branch (including convolution operation) is integrated into the student model, and the features of each decoder layer of the student model are convolved and upsampled to obtain a reconstructed enhanced CT image. The loss function of the reconstructed enhanced CT image and the corresponding enhanced CT image is calculated, and the student model is adjusted and trained to obtain the student model.

[0263] In practical applications, when training a student model, the plain scan CT can be input into the student model. However, when the plain scan CT and the enhanced CT show similar appearances, the knowledge extraction from the teacher model to the student model may still lack effectiveness when calculating the loss function. Therefore, the masked CT after masking is input into the student model.

[0264] When the masked masks CT are fed into the student model, the features of these masks are recovered from the teacher model, forcing the knowledge distillation loss to extract valuable information from the teacher model, thus formulating a strong constraint for knowledge distillation.

[0265] Therefore, the specific training objective can be expressed as:

[0266] in, represents a plain scan image, represents the plain scan image after masking, represents the parameters corresponding to the teacher model, Represents the parameters corresponding to the student model; and Respectively represent the feature representation extracted by the i-th decoding layer (there are n decoding layers in total) of the teacher (T) and student (S) models for the segmentation task; and The final feature representations of the extracted classification task (before the fully connected layer) for the teacher (T) and student (S) models, respectively; It is a measure of the similarity between two features, such as cosine similarity or mean squared error (MSE).

[0267] Student model inference phase: In the inference phase, the student network can use plain CT images to make predictions (e.g., cancer detection [cancer vs. non-cancer], tumor segmentation).

[0268] The plain scan CT is input into the student model, and the encoder-decoder structure of the student model is used to obtain the segmented image, where the segmented image is a grayscale image of the same size as the plain scan CT (the segmented image has 2 or 3 values: 0 represents background, 1 represents organ, and 2 represents malignant tumor; if no tumor is detected / segmented, then there are only two values ​​0 and 1).

[0269] By extracting features from each decoding layer, performing convolution processing on the extracted features, applying global maximum pooling to extract representative features from the convolutional features, and concatenating these representative features into the fully connected layer to obtain the classification results.

[0270] The image processing method provided in the embodiments of this specification proposes a novel knowledge distillation framework, which transfers the knowledge from a high-accuracy teacher model trained with paired enhanced CT and plain CT images to a low-accuracy student model trained with plain CT images; the student model is encouraged to imitate the behavior of the teacher network to minimize the difference between their outputs; the diagnosis effect is improved by transferring the privileged knowledge of the teacher network to the student model; mask image modeling is incorporated into knowledge distillation, focusing on distilling knowledge from unmasked CT image blocks to strengthen constraints and improve robustness; and the performance of breast cancer detection and segmentation based on plain CT is significantly improved.

[0271] Corresponding to the above method embodiment, this specification also provides a target image processing model training device embodiment, Figure 7 FIG. 1 is a schematic diagram showing the structure of a target image processing model training device provided by an embodiment of the present specification. Figure 7 As shown, the device comprises:

[0272] An image determination module 702 is configured to determine an initial image and an enhanced image of a target object;

[0273] The image acquisition module 704 is configured to fuse the initial image and the enhanced image to obtain a fused image, and perform mask processing on the initial image to obtain a mask image;

[0274] The initial feature acquisition module 706 is configured to input the fused image into a reference image processing model, perform encoding and decoding processing on the fused image using the reference image processing model, and obtain initial decoded image features and initial decoded classification features;

[0275] The target feature acquisition module 708 is configured to input the mask image into a target image processing model, perform encoding and decoding processing on the mask image using the target image processing model, and obtain target decoded image features and target decoded classification features;

[0276] The model training acquisition module 710 is configured to train the target image processing model according to the initial decoded image features, the initial decoded classification features, the target decoded image features, and the target decoded classification features.

[0277] Optionally, the initial feature acquisition module 706 is further configured to:

[0278] Using the multiple coding layers to encode the fused image to obtain initial coded image features;

[0279] The initial encoded image features are decoded using the multiple decoding layers to obtain initial decoded image features corresponding to the multiple decoding layers, and initial decoding classification features are determined based on the initial decoded image features corresponding to the multiple decoding layers.

[0280] Optionally, the initial feature acquisition module 706 is further configured to:

[0281] Determine the initial decoded image features corresponding to the final decoded layer in the multiple decoded layers as the initial decoded classification features; or,

[0282] According to the image classification task, convolution and pooling processing are performed on the initial decoded image features corresponding to each decoding layer in the multiple decoding layers to obtain the first key decoded image features corresponding to each decoding layer, and the first key decoded image features corresponding to each decoding layer are fused to obtain the initial decoding classification features.

[0283] Optionally, the target feature acquisition module 708 is further configured to:

[0284] Using the multiple coding layers to encode the mask image to obtain target coded image features;

[0285] The target encoded image features are decoded using the multiple decoding layers to obtain target decoded image features corresponding to the multiple decoding layers, and target decoding classification features are determined based on the target decoded image features corresponding to the multiple decoding layers.

[0286] Optionally, the target feature acquisition module 708 is further configured to:

[0287] Determine the target decoding image feature corresponding to the final decoding layer among the multiple decoding layers as the target decoding classification feature; or,

[0288] According to the image classification task, convolution and pooling processing are performed on the target decoded image features corresponding to each decoding layer in the multiple decoding layers to obtain the second key decoded image features corresponding to each decoding layer, and the second key decoded image features corresponding to each decoding layer are fused to obtain the target decoding classification features.

[0289] Optionally, the model training acquisition module 710 is further configured to:

[0290] Obtaining a segmentation loss function according to the initial decoded image features and the target decoded image features;

[0291] Obtaining a classification loss function according to the initial decoding classification feature and the target decoding classification feature;

[0292] The target image processing model is trained according to the segmentation loss function and the classification loss function.

[0293] The device further comprises:

[0294] The reconstruction module is configured to perform convolution and up-sampling processing on the target decoded image features according to the image prediction task to obtain predicted decoded image features, and obtain a predicted enhanced image based on the predicted decoded image features.

[0295] Optionally, the model training acquisition module 710 is further configured to:

[0296] The target image processing model is trained according to the initial decoded image features, the initial decoded classification features, the target decoded image features, the target decoded classification features, the predicted enhanced image, and the enhanced image.

[0297] Optionally, the model training acquisition module 710 is further configured to:

[0298] Obtaining a segmentation loss function according to the initial decoded image features and the target decoded image features;

[0299] Obtaining a classification loss function according to the initial decoding classification features and the target decoding classification features;

[0300] Obtaining a reconstruction loss function according to the predicted enhanced image and the enhanced image;

[0301] The target image processing model is trained according to the segmentation loss function, the classification loss function, and the reconstruction loss function.

[0302] The device further comprises:

[0303] The initial result acquisition module is configured to obtain an initial segmented image corresponding to the initial image using the initial decoded image features according to an image segmentation task; and to obtain an initial classification result corresponding to the initial image using the initial decoded classification features according to an image classification task.

[0304] The device further comprises:

[0305] The target result acquisition module is configured to obtain the target segmentation result corresponding to the initial image by using the target decoding image features according to the image segmentation task; and obtain the target classification result corresponding to the initial image by using the target decoding classification features according to the image classification task.

[0306] The device further comprises:

[0307] The reference model training module is configured to determine the initial image sample, enhanced image sample, image label, and classification label of the target object sample; fuse the initial image sample and the enhanced image sample to obtain a fused image sample, and input the fused image sample into the reference image processing model; use the reference image processing model to obtain the predicted segmentation image and the predicted classification result corresponding to the initial image sample; train the reference image processing model according to the predicted segmentation image, the image label, the predicted classification result, and the classification label.

[0308] Optionally, the image determination module 702 is further configured to:

[0309] Receive the initial image and enhanced image of the target object sent by the client.

[0310] The device further comprises:

[0311] The sending module is configured to send the target image processing model or the model interface information corresponding to the target image processing model to the client.

[0312] An embodiment of the present specification provides a target image processing model training device. When an initial image and an enhanced image are fused and input into a reference image processing model, initial decoded image features and initial decoded classification features that can be obtained by the reference image processing model and contain rich information of the target object are used. When a mask image corresponding to the initial image is input into the target image processing model to obtain target decoded image features and target decoded classification features, and the initial decoded image features, initial decoded classification features, target decoded image features, and target decoded classification features are used to train the target image processing model, the target image processing model can be processed by the target image processing model to restore the features of the mask image by referring to the initial decoded image features and initial decoded classification features, thereby better capturing detailed feature-level information of the target object (i.e., the above-mentioned initial decoded image features and initial decoded classification features), and transferring the knowledge learned from the reference image processing model to the target image processing model. Subsequently, when the initial image of the target object is input into the target image processing model, the accuracy of the target image processing model in detecting and segmenting the target object using the initial image can be improved.

[0313] The above is a schematic scheme of a target image processing model training device of this embodiment. It should be noted that the technical scheme of the target image processing model training device and the technical scheme of the target image processing model training method mentioned above belong to the same concept, and the details not described in detail in the technical scheme of the target image processing model training device can be found in the description of the technical scheme of the target image processing model training method mentioned above.

[0314] Corresponding to the above method embodiment, this specification also provides an image processing device embodiment, Figure 8 FIG. 2 shows a schematic diagram of the structure of an image processing device provided by an embodiment of the present specification. Figure 8 As shown, the device comprises:

[0315] A determination module 802 is configured to determine a target image and input the target image into a target image processing model;

[0316] The feature acquisition module 804 is configured to perform encoding and decoding processing on the target image using the target image processing model to obtain target image features and target classification features of the target image;

[0317] An image acquisition module 806 is configured to obtain a segmented image corresponding to the target image using the target image features;

[0318] The result obtaining module 808 is configured to obtain the classification result corresponding to the target image by using the target classification feature.

[0319] Optionally, the feature acquisition module 804 is further configured to:

[0320] Using the multiple coding layers to encode the target image to obtain encoded image features;

[0321] The encoded image features are decoded using the multiple decoding layers to obtain target image features corresponding to the multiple decoding layers, and target classification features are determined based on the target image features corresponding to the multiple decoding layers.

[0322] Optionally, the feature acquisition module 804 is further configured to:

[0323] Determine the target image feature corresponding to the final decoding layer in the multiple decoding layers as the target classification feature; or,

[0324] According to the image classification task, convolution and pooling processing are performed on the target image features corresponding to each decoding layer in the multiple decoding layers to obtain the key image features corresponding to each decoding layer, and the key image features corresponding to each decoding layer are fused to obtain the target classification features.

[0325] The image processing device provided in the embodiments of the present specification, when the target image processing model is obtained through the above-mentioned target image processing model training method, the target image processing model can obtain target image features and target classification features containing rich information of the target image, and then the target image processing model can improve the accuracy of the segmented image and classification results corresponding to the target image.

[0326] The above is a schematic scheme of an image processing device of this embodiment. It should be noted that the technical scheme of the image processing device and the technical scheme of the above-mentioned image processing method belong to the same concept, and the details not described in detail in the technical scheme of the image processing device can be referred to the description of the technical scheme of the above-mentioned image processing method.

[0327] Fig. 9 The structure block diagram of a computing device 900 provided according to an embodiment of the present specification is shown. The components of the computing device 900 include but are not limited to a memory 910 and a processor 920. The processor 920 is connected to the memory 910 via a bus 930, and a database 950 is used to store data.

[0328] The computing device 900 also includes an access device 940 that enables the computing device 900 to communicate via one or more networks 960. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 940 may include one or more of any type of network interface (e.g., a network interface card (NIC)) that is wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a world-wide interoperability for microwave access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, and a near field communication (NFC).

[0329] In one embodiment of the present specification, the above components of the computing device 900 and Fig. 9 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Fig. 9 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0330] The computing device 900 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a personal computer (PC). The computing device 900 may also be a mobile or stationary server.

[0331] Among them, the processor 920 is used to execute the following computer program / instructions, which, when executed by the processor, implement the steps of the above-mentioned target image processing model training method.

[0332] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the computing device embodiment, since it is basically similar to the target image processing model training method and the multiple image processing method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the target image processing model training method and the multiple image processing method embodiments.

[0333] An embodiment of the present specification also provides a computer-readable storage medium storing a computer program / instruction, which, when executed by a processor, implements the steps of the above-mentioned target image processing model training method and multiple image processing methods.

[0334] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the computer-readable storage medium embodiment, since it is basically similar to the target image processing model training method and the multiple image processing method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the target image processing model training method and the multiple image processing method embodiments.

[0335] An embodiment of the present specification also provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the above-mentioned target image processing model training method and multiple image processing methods.

[0336] The above is a schematic scheme of a computer program product of this embodiment. It should be noted that the technical scheme of the computer program product and the technical schemes of the target image processing model training method and multiple image processing methods mentioned above belong to the same concept, and the details not described in detail in the technical scheme of the computer program product can be referred to the description of the technical schemes of the target image processing model training method and multiple image processing methods mentioned above.

[0337] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0338] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of patent practice. For example, in some regions, according to patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0339] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.

[0340] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0341] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can understand and use this specification well. This specification is limited only by the claims and their full scope and equivalents.

Claims

1. A target image processing model training method, comprising: Determine an initial image and an enhanced image of the target object; fusing the initial image and the enhanced image to obtain a fused image, and performing mask processing on the initial image to obtain a mask image; Inputting the fused image into a reference image processing model, performing encoding and decoding processing on the fused image using the reference image processing model to obtain initial decoded image features and initial decoded classification features; Inputting the mask image into a target image processing model, and performing encoding and decoding processing on the mask image using the target image processing model to obtain target decoded image features and target decoded classification features; The target image processing model is trained according to the initial decoded image features, the initial decoded classification features, the target decoded image features, and the target decoded classification features.

2. The target image processing model training method according to claim 1, wherein the reference image processing model comprises an encoder and a decoder, wherein the encoder is composed of multiple encoding layers and the decoder is composed of multiple decoding layers; The encoding and decoding processing of the fused image using the reference image processing model to obtain initial decoded image features and initial decoded classification features includes: Performing encoding processing on the fused image using the multiple encoding layers to obtain initial encoded image features; The initial encoded image features are decoded using the multiple decoding layers to obtain initial decoded image features corresponding to the multiple decoding layers, and initial decoded classification features are determined based on the initial decoded image features corresponding to the multiple decoding layers.

3. The target image processing model training method according to claim 2, wherein determining the initial decoding classification features based on the initial decoded image features corresponding to the multiple decoding layers comprises: determining an initial decoded image feature corresponding to a final decoded layer among the multiple decoding layers as an initial decoded classification feature; or, According to the image classification task, convolution and pooling processing are performed on the initial decoded image features corresponding to each decoding layer in the multiple decoding layers to obtain the first key decoded image features corresponding to each decoding layer, and the first key decoded image features corresponding to each decoding layer are fused to obtain the initial decoded classification features.

4. The target image processing model training method according to claim 1, wherein the target image processing model comprises an encoder and a decoder, wherein the encoder is composed of multiple encoding layers and the decoder is composed of multiple decoding layers; The encoding and decoding processing of the mask image by using the target image processing model to obtain target decoded image features and target decoded classification features includes: Performing encoding processing on the mask image using the multiple encoding layers to obtain target encoded image features; The target encoded image features are decoded using the multiple decoding layers to obtain target decoded image features corresponding to the multiple decoding layers, and target decoding classification features are determined based on the target decoded image features corresponding to the multiple decoding layers.

5. The target image processing model training method according to claim 4, wherein determining the target decoding classification features based on the target decoded image features corresponding to the multiple decoding layers comprises: determining a target decoding image feature corresponding to a final decoding layer among the multiple decoding layers as a target decoding classification feature; or, According to the image classification task, convolution and pooling processing are performed on the target decoding image features corresponding to each decoding layer in the multiple decoding layers to obtain the second key decoding image features corresponding to each decoding layer, and the second key decoding image features corresponding to each decoding layer are fused to obtain the target decoding classification features.

6. The target image processing model training method according to any one of claims 1 to 5, wherein training the target image processing model based on the initial decoded image features, the initial decoded classification features, the target decoded image features, and the target decoded classification features comprises: Obtaining a segmentation loss function according to the initial decoded image features and the target decoded image features; Obtaining a classification loss function according to the initial decoding classification feature and the target decoding classification feature; The target image processing model is trained according to the segmentation loss function and the classification loss function.

7. The target image processing model training method according to any one of claims 1 to 5, before training the target image processing model based on the initial decoded image features, the initial decoded classification features, the target decoded image features, and the target decoded classification features, further comprising: According to the image prediction task, convolution and upsampling processing are performed on the target decoded image features to obtain predicted decoded image features, and a predicted enhanced image is obtained based on the predicted decoded image features; The step of training the target image processing model according to the initial decoded image features, the initial decoded classification features, the target decoded image features, and the target decoded classification features includes: Obtaining a segmentation loss function according to the initial decoded image features and the target decoded image features; Obtaining a classification loss function according to the initial decoding classification features and the target decoding classification features; Obtaining a reconstruction loss function according to the predicted enhanced image and the enhanced image; The target image processing model is trained according to the segmentation loss function, the classification loss function, and the reconstruction loss function.

8. The target image processing model training method according to claim 1, further comprising: inputting the fused image into a reference image processing model, encoding and decoding the fused image using the reference image processing model, and obtaining initial decoded image features and initial decoded classification features; According to the image segmentation task, using the initial decoded image features, obtaining an initial segmented image corresponding to the initial image; According to the image classification task, the initial classification result corresponding to the initial image is obtained by utilizing the initial decoded classification features.

9. The target image processing model training method according to claim 1, further comprising: inputting the mask image into the target image processing model, encoding and decoding the mask image using the target image processing model, and obtaining target decoded image features and target decoded classification features. According to the image segmentation task, using the target decoded image features to obtain the target segmentation result corresponding to the initial image; According to the image classification task, the target classification result corresponding to the initial image is obtained by utilizing the target decoding classification feature.

10. The target image processing model training method according to claim 1, wherein the training steps of the reference image processing model are as follows: Determine the initial image sample, enhanced image sample, image label, and classification label of the target object sample; Fusing the initial image sample and the enhanced image sample to obtain a fused image sample, and inputting the fused image sample into a reference image processing model; Using the reference image processing model, obtaining a predicted segmentation image and a predicted classification result corresponding to the initial image sample; The reference image processing model is trained according to the predicted segmented image, the image label, the predicted classification result, and the classification label.

11. The target image processing model training method according to claim 1, wherein determining the initial image and enhanced image of the target object comprises: Receive the initial image and enhanced image of the target object sent by the client; After training the target image processing model, the method further includes: The target image processing model or the model interface information corresponding to the target image processing model is sent to the client.

12. An image processing method, comprising: Determine a target image, and input the target image into a target image processing model, wherein the target image processing model is trained by the target image processing model training method according to any one of claims 1 to 11; Performing encoding and decoding processing on the target image using the target image processing model to obtain target image features and target classification features of the target image; Obtaining a segmented image corresponding to the target image using the target image features; The target classification feature is used to obtain a classification result corresponding to the target image.

13. The image processing method according to claim 12, wherein the target image processing model comprises an encoder and a decoder, wherein the encoder is composed of a plurality of encoding layers, and the decoder is composed of a plurality of decoding layers; The encoding and decoding processing of the target image by using the target image processing model to obtain target image features and target classification features of the target image includes: Performing encoding processing on the target image using the multiple encoding layers to obtain encoded image features; The encoded image features are decoded using the multiple decoding layers to obtain target image features corresponding to the multiple decoding layers, and target classification features are determined based on the target image features corresponding to the multiple decoding layers.

14. The image processing method according to claim 13, wherein determining target classification features based on target image features corresponding to the plurality of decoding layers comprises: determining a target image feature corresponding to a final decoding layer among the multiple decoding layers as a target classification feature; or, According to the image classification task, convolution and pooling processing are performed on the target image features corresponding to each decoding layer in the multiple decoding layers to obtain the key image features corresponding to each decoding layer, and the key image features corresponding to each decoding layer are fused to obtain the target classification features.

15. A computer-aided diagnosis method for cancer, comprising: Determine the CT image of the target detection area; Inputting the CT image into a CT image processing model, and processing the CT image using the CT image processing model to obtain a CT segmentation image and a CT classification result corresponding to the CT image, wherein the CT image processing model is trained by the target image processing model training method according to any one of claims 1 to 10; A detection result of whether a tumor exists in the target detection area is obtained according to the CT segmentation image and the CT classification result.

16. A computer-aided diagnosis method for breast cancer, comprising: Determine the CT image of the breast area; Inputting the CT image into a CT image processing model, and processing the CT image using the CT image processing model to obtain a CT segmentation image and a CT classification result corresponding to the CT image, wherein the CT image processing model is trained by the target image processing model training method according to any one of claims 1 to 10; A detection result of whether a tumor exists in the breast area is obtained based on the CT segmentation image and the CT classification result.

17. A computer-aided diagnosis system for cancer, comprising a client and a server, wherein: The client is used to send a CT image of the target detection area to the server; The server is configured to input the CT image into a CT image processing model, process the CT image using the CT image processing model, obtain a segmentation image and a classification result corresponding to the CT image, and obtain a detection result of whether a tumor exists in the target detection area based on the CT segmentation image and the CT classification result, and return the detection result to the client, wherein the CT image processing model is trained by the target image processing model training method according to any one of claims 1 to 11.

18. A computing device comprising: memory and processor; The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions. When the computer program / instructions are executed by the processor, the steps of the method according to any one of claims 1 to 16 are implemented.

19. A computer program product comprising a computer program / instruction, which implements the steps of the method according to any one of claims 1 to 16 when executed by a processor.