Image processing model training method, image processing method
Through the training of the image processing model, the enhancement of training sample pairs and the target image are used to solve the difficulty of identifying vascular embolism on plain CT images, improve the accuracy and convenience of diagnosis, and reduce the restrictions on contrast agents and equipment. rely.
Patent Information
- Application Number
- CN202410676834.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-05-28
AI Technical Summary
In the existing technology, the diagnosis of vascular embolism relies on enhanced CT examination, which has the risk of allergic reaction to the contrast agent and technical equipment limitations. It cannot be used 24 hours a day in all areas. In addition, the contrast between the embolization area and blood vessels in plain CT images is low, making it difficult to accurately identify.
Using the image processing model training method, by obtaining multiple training sample pairs, including sample enhanced images and sample target images, the initial image processing model is used to calculate the prediction annotation information and adjust the model parameters to generate an image processing model capable of identifying vascular embolism. , improve the detection accuracy of plain CT images.
It improves the detection accuracy of vascular embolism on plain CT images, reduces the dependence on contrast agents, overcomes the limitations of technical equipment, and realizes the convenience of 24-hour vascular embolism examination in more areas.
Smart Images

Figure CN118247284B
Abstract
Description
Technical Field
[0001] The embodiments of this specification relate to the field of computer technology, and in particular to a training method for an image processing model and an image processing method. Background Art
[0002] As people's living standards improve, more and more people pay attention to their own health. Vascular embolism is one of the major factors affecting human health. Identifying vascular embolism in medical images requires professional doctors to identify it based on experience. Due to the limitations of doctors' experience, image recognition and analysis with the help of medical images has become an important topic.
[0003] In actual applications, vascular embolism has non-specific symptoms. Current embolism examinations are performed using enhanced CT scans, but enhanced CT scans expose patients to contrast agents, which may cause allergic reactions or organ failure. In addition, enhanced CT scans are limited by technology and equipment and cannot be used 24 hours a day in all areas, which affects their convenience. Therefore, how to use plain scan CT scans to perform vascular embolism examinations and improve diagnostic accuracy when performing auxiliary diagnosis based on plain scan CT images has become an urgent problem for technicians to solve. Summary of the invention
[0004] In view of this, an embodiment of this specification provides a training method for an image processing model. One or more embodiments of this specification also relate to an image processing method, a CT image processing device, a computing device, a computer-readable storage medium, and a computer program product to solve the technical defects existing in the prior art.
[0005] According to a first aspect of an embodiment of this specification, a method for training an image processing model is provided, comprising:
[0006] Acquire a plurality of training sample pairs, wherein the training sample pairs include a sample enhanced image and a sample target image, the sample enhanced image includes first sample annotation information for a target detection area, and the sample target image includes second sample annotation information for the target detection area;
[0007] Inputting the sample enhanced image and the sample target image into an initial image processing model, obtaining first predicted labeling information and second predicted labeling information output by the initial image processing model, wherein the initial image processing model includes an enhanced image processing sub-model and a target image processing sub-model, the enhanced image processing sub-model outputs the first predicted labeling information based on the sample enhanced image, and the target image processing sub-model outputs the second predicted labeling information based on the sample target image;
[0008] Calculate a model loss value according to the first sample labeling information, the second sample labeling information, the first prediction labeling information, and the second prediction labeling information;
[0009] Adjusting the model parameters of the initial image processing model according to the model loss value, and continuing to train the initial image processing model until a model training stop condition is reached, to obtain a reference image processing model;
[0010] An image processing model is generated based on the target image processing sub-model in the reference image processing model.
[0011] According to a second aspect of the embodiments of this specification, there is provided an image processing method, including:
[0012] receiving an image processing task, wherein the image processing task carries a plurality of target images corresponding to a target detection area, and the image processing task is used to detect whether there is an abnormality in the target detection area;
[0013] The multiple target images are input into an image processing model to obtain a detection result for the target detection area output by the image processing model, wherein the image processing model is trained using the above-mentioned training method.
[0014] According to a third aspect of the embodiments of this specification, a CT image processing method is provided, comprising:
[0015] receiving a CT image processing task, wherein the CT image processing task carries a plurality of plain scan CT images corresponding to a target detection area, and the CT image processing task is used to detect whether there is an abnormality in the target detection area;
[0016] The multiple plain scan CT images are input into a CT image processing model to obtain a detection result for the target detection area output by the image processing model, wherein the image processing model is trained using the above-mentioned training method.
[0017] According to a fourth aspect of an embodiment of this specification, a training method for an image processing model is provided, which is applied to a cloud-side device, and includes:
[0018] Acquire a plurality of training sample pairs, wherein the training sample pairs include a sample enhanced image and a sample target image, the sample enhanced image includes first sample annotation information for a target detection area, and the sample target image includes second sample annotation information for the target detection area;
[0019] Inputting the sample enhanced image and the sample target image into an initial image processing model, obtaining first predicted labeling information and second predicted labeling information output by the initial image processing model, wherein the initial image processing model includes an enhanced image processing sub-model and a target image processing sub-model, the enhanced image processing sub-model outputs the first predicted labeling information based on the sample enhanced image, and the target image processing sub-model outputs the second predicted labeling information based on the sample target image;
[0020] Calculate a model loss value according to the first sample labeling information, the second sample labeling information, the first prediction labeling information, and the second prediction labeling information;
[0021] Adjusting the model parameters of the initial image processing model according to the model loss value, and continuing to train the initial image processing model until a model training stop condition is reached, to obtain a reference image processing model;
[0022] Based on the target image processing sub-model in the reference image processing model, an image processing model is generated, model parameters of the image processing model are obtained, and the model parameters of the image processing model are sent to the terminal side device.
[0023] According to a fifth aspect of the embodiments of this specification, there is provided an image processing method, which is applied to a cloud-side device, including:
[0024] An image processing task sent by a receiving device, wherein the image processing task carries a plurality of target images corresponding to a target detection area, and the image processing task is used to detect whether there is an abnormality in the target detection area;
[0025] Inputting the multiple target images into an image processing model to obtain a detection result output by the image processing model for the target detection area, wherein the image processing model is trained by the above-mentioned training method;
[0026] Send the detection result to the terminal side device.
[0027] According to a sixth aspect of the embodiments of this specification, a method for detecting vascular embolism is provided, comprising:
[0028] receiving a vascular embolism detection task, wherein the vascular embolism detection task carries a plurality of plain scan CT images corresponding to a vascular region, and the vascular embolism detection task is used to detect whether there is embolism in the vascular region;
[0029] The multiple plain scan CT images are input into an image processing model to obtain a detection result output by the image processing model regarding whether vascular embolism exists in the vascular region, wherein the image processing model is trained using the above-mentioned training method.
[0030] According to a seventh aspect of the embodiments of this specification, a tumor screening method is provided, comprising:
[0031] receiving a tumor screening task, wherein the tumor screening task carries a plurality of plain scan CT images corresponding to a target detection area, and the tumor screening task is used to detect whether a tumor exists in the target detection area;
[0032] The multiple plain scan CT images are input into an image processing model to obtain a detection result output by the image processing model regarding whether a tumor exists in the target detection area, wherein the image processing model is trained using the above-mentioned training method.
[0033] According to an eighth aspect of the embodiments of this specification, a computing device is provided, including:
[0034] Memory and processor;
[0035] 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 method are implemented.
[0036] According to a ninth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores a computer program / instruction, and the steps of the above method are implemented when the computer program / instruction is executed by a processor.
[0037] According to the tenth aspect of the embodiments of this specification, a computer program product is provided, comprising a computer program / instruction, which implements the steps of the above method when executed by a processor.
[0038] An embodiment of the present specification provides a method for training an image processing model, comprising obtaining a plurality of training sample pairs, wherein the training sample pairs include a sample enhanced image and a sample target image, the sample enhanced image includes first sample annotation information for a target detection area, and the sample target image includes second sample annotation information for the target detection area; inputting the sample enhanced image and the sample target image into an initial image processing model to obtain first predicted annotation information and second predicted annotation information output by the initial image processing model, wherein the initial image processing model includes an enhanced image processing sub-model and a target image processing sub-model, the enhanced image processing sub-model outputs first predicted annotation information based on the sample enhanced image, and the target image processing sub-model outputs second predicted annotation information based on the sample target image; calculating a model loss value according to the first sample annotation information, the second sample annotation information and the first predicted annotation information and the second predicted annotation information; adjusting model parameters of the initial image processing model according to the model loss value, and continuing to train the initial image processing model until a model training stop condition is reached to obtain a reference image processing model; and generating an image processing model based on the target image processing sub-model in the reference image processing model.
[0039] Through the method provided in the embodiment of this specification, a framework based on mutual learning between two sub-models is provided, which unifies the classification tasks and segmentation tasks of two types of sample images (sample enhanced images and sample target images), realizes the transfer from the enhanced image processing sub-model to the target image processing sub-model through knowledge, and improves the performance of the image processing model in target image processing. At the same time, the segmentation task and the classification task are structured, which increases the interpretability of image recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 is a flowchart of a training method for an image processing model provided by an embodiment of this specification;
[0041] Figure 2 is a schematic diagram of the model structure of an initial image processing model provided by an embodiment of this specification;
[0042] Figure 3 is a structural schematic diagram of image processing model training for pulmonary embolism detection provided by an embodiment of this specification;
[0043] Figure 4 is a flow chart of an image processing method provided by an embodiment of this specification;
[0044] Figure 5 is a flow chart of a CT image processing method provided by an embodiment of this specification;
[0045] Figure 6It is a structural schematic diagram of a training device for an image processing model provided by an embodiment of this specification;
[0046] Figure 7 is a structural schematic diagram of a CT image processing device provided by an embodiment of this specification;
[0047] Figure 8 is a schematic diagram of a training method for an image processing model applied to a cloud-side device provided by an embodiment of this specification;
[0048] Fig. 9 It is a flowchart of an image processing method applied to a cloud-side device provided by an embodiment of this specification;
[0049] Fig.10 It is a flowchart of a method for detecting vascular embolism provided in one embodiment of this specification;
[0050] Fig.11 It is a flowchart of a tumor screening method provided in one embodiment of this specification;
[0051] Fig.12 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION
[0052] 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.
[0053] 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.
[0054] 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".
[0055] 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 this manual 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 regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0056] First, the terms involved in one or more embodiments of this specification are explained.
[0057] CT (Computed Tomography): Computer tomography uses a precisely collimated X-ray beam and a highly sensitive detector to perform cross-sectional scans around a certain part of the human body one by one. It has the characteristics of fast scanning time and clear images, and can be used to examine a variety of diseases.
[0058] Plain scan CT: also known as ordinary scan, refers to a scan without intravenous iodine-containing contrast agent.
[0059] Enhanced CT: refers to the method of scanning after intravascular injection of contrast agent. The purpose is to increase the density difference between the diseased tissue and the normal tissue to show the lesions that are not displayed or not displayed clearly on the plain CT. The presence or absence of enhancement and the type of enhancement help to characterize the lesions.
[0060] CAD (computer aided diagnosis): Computer-aided diagnosis refers to the use of imaging, medical image processing technology and other possible physiological and biochemical means, combined with computer analysis and calculation, to assist in the discovery of lesions and improve the accuracy of diagnosis.
[0061] With the continuous development of computer technology, various learning models have gradually been applied to the prediction of various application scenarios. Correspondingly, deep learning models have also achieved remarkable success in the task of computer-aided diagnosis (CAD) of medical images. Case analysis and classification from medical images is an important topic in computer-aided diagnosis.
[0062] Pulmonary embolism is a serious life-threatening disease, second only to myocardial infarction and sudden cardiac death in severity, and early diagnosis and treatment are crucial. Because pulmonary embolism has non-specific symptoms, the current detection mainly relies on pulmonary artery enhanced CT examination. However, enhanced CT exposes patients to contrast agents, which may cause allergic reactions or other discomfort symptoms. In addition, in some areas, enhanced CT cannot be popularized due to technical and equipment limitations. In contrast, plain CT examination is more convenient and practical.
[0063] However, in plain scan CT images, there is almost no difference in contrast between the embolism area and the surrounding pulmonary blood vessels. Doctors are prone to misjudgment when diagnosing pulmonary embolism using plain scan CT images, which can delay treatment. Therefore, studying the method of automatic identification of pulmonary embolism based on plain scan CT and applying it to the corresponding auxiliary diagnosis products can improve the diagnostic efficiency to a certain extent and provide patients with a treatment window.
[0064] However, the automatic identification of vascular embolism based on plain scan CT faces two challenges. The first is that the Hu value of the embolism area is similar to that of the surrounding blood vessels, and the contrast is low, which makes it very difficult to accurately segment the embolism area. The second is that the morphological representation of embolism is diverse and its location is not fixed, making it difficult to detect vascular embolism using morphological features and location information.
[0065] Based on this, in this specification, a training method for an image processing model is provided. This specification also involves an image processing method, a CT 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 flowchart of a method for training an image processing model provided according to an embodiment of the present specification is shown, which specifically includes the following steps.
[0067] Step 102: Acquire multiple training sample pairs, wherein the training sample pairs include a sample enhanced image and a sample target image, the sample enhanced image includes first sample annotation information for a target detection area, and the sample target image includes second sample annotation information for the target detection area.
[0068] Specifically, the training method of the image processing model provided in this specification uses supervised training, which includes multiple training sample pairs, and the training sample pairs include multiple sample enhanced images and sample target images for the target detection area. Among them, the sample enhanced image specifically refers to an image with enhanced contrast for the target detection area, and the sample target image specifically refers to a normal image for the target detection area. The sample enhanced image includes first sample annotation information for the target detection area, and the sample target image includes second sample annotation information for the target detection area.
[0069] For example, in an auxiliary medical scenario, the training sample pair includes an enhanced CT image and a plain scan CT image for the target detection area, wherein the enhanced CT image can be understood as a sample enhanced image, and the plain scan CT image can be understood as a sample target image. In practical applications, since the image processing model needs to be trained, the enhanced CT image includes first sample annotation information for the target detection area, and the plain scan CT image also includes second sample annotation information for the target detection area. Among them, the first sample annotation information and the second sample annotation information specifically refer to abnormal annotation information for the target detection area. For example, the abnormal location information and / or the information on whether there is an abnormality in the target detection area are marked in the target detection area, and so on.
[0070] It should be noted that in actual applications, the target detection area may have different corresponding situations at different time points. In order to ensure that the data between the sample enhanced image and the sample target image can remain consistent, in the method provided in the embodiments of this specification, the sample enhanced image and the sample target image are images of the same target detection area at the same time point. For example, taking the CT image of a certain patient as an example for explanation, the target detection area is the lungs of the patient, then the training sample pair is the enhanced CT image and the plain CT image taken when the patient was examined at a certain time point. Both the enhanced CT image and the plain CT image are images of the lung area, and the two images need to be images of the patient when examined at the same time. Prevent the situation where the abnormal information in the enhanced CT image and the plain CT image of the patient does not correspond after treatment.
[0071] In a specific implementation provided in this specification, obtaining multiple training sample pairs includes:
[0072] Determine a sample detection object, and obtain a sample enhanced image and a sample target image corresponding to the sample detection object, wherein the sample enhanced image and the sample target image corresponding to the sample detection object correspond to the same target detection area of the sample detection object;
[0073] Generating first sample annotation information for a target detection area on the sample enhanced image;
[0074] The second sample labeling information is labeled on the sample target image based on the first sample labeling information.
[0075] The sample detection object specifically refers to the object corresponding to the target detection area. For example, when the target detection area is the stomach, the sample detection object is the organism corresponding to the target detection area, such as a human, a horse, a cow, etc. After determining the sample detection object, a sample enhanced image and a sample target image corresponding to the sample detection object are further obtained. The sample enhanced image and the sample target image are images for the same target detection area.
[0076] In practical applications, the abnormal information in the sample enhanced image is more obvious than that in the sample target image, so the first sample annotation information can be generated for the target detection area in the sample enhanced image. Specifically, the technician can manually annotate the sample enhanced image, or the sample enhanced image can be input into the annotation model, and the annotation model can recognize the sample enhanced image to generate the first sample annotation information.
[0077] After determining the first sample annotation information, annotation can be performed in the sample target image according to the first sample annotation information. The abnormal information for the abnormal area in the sample enhanced image is more obvious and can be directly annotated. However, the abnormal information for the abnormal area in the sample target image is not obvious and cannot be annotated using an annotation model or manual annotation. At this time, since the sample enhanced image and the sample target image are taken at the same time for the same target detection area, the first sample annotation information in the sample enhanced image can be used to annotate the sample target image. For example, if the range of the abnormal area annotated in the first sample annotation information is range 1, the sample target image can be annotated according to range 1, and the range of the abnormal area in the obtained second sample annotation information is range 2, wherein the areas of range 1 and range 2 are the same.
[0078] In practical applications, the second sample annotation information can be annotated for the sample target image according to the first sample annotation information by using the registration method. Registration refers to the process of matching and superimposing two or more images. The purpose of registration is to find the spatial transformation relationship between two or more images so that they can be aligned in space, so as to enable further image analysis or processing.
[0079] Registration methods and techniques vary according to different application fields and specific needs. In medical image processing, registration technology is used to make corresponding points on medical images consistent in space. In the method provided in the embodiment of this specification, first sample annotation information is annotated in the sample enhanced image, and the first sample annotation information in the sample enhanced image is transferred to the sample target image by image registration, and second sample annotation information is generated in the sample target image.
[0080] In another specific implementation manner provided in this specification, generating first sample annotation information for the target detection area on the sample enhanced image includes:
[0081] Inputting the sample enhanced image into an information annotation model to obtain first sample segmentation information and first sample classification information for the target detection area output by the information annotation model;
[0082] Correspondingly, marking second sample annotation information on the sample target image based on the first sample annotation information includes:
[0083] The second sample segmentation information is marked on the sample target image according to the first sample segmentation information, and the second sample classification information of the sample target image is determined according to the first sample classification information.
[0084] In a specific implementation provided in this specification, the sample enhanced image can be input into the information annotation model, and the information annotation model annotates the sample enhanced image. Specifically, the information annotation model annotates the first sample segmentation information in the sample enhanced image, and marks the first sample classification information for the sample enhanced image. The first sample segmentation information specifically refers to the segmentation mask information for the abnormal area in the target detection area, and the first sample classification information specifically refers to the abnormal classification information for the target detection area.
[0085] Correspondingly, after determining the first sample segmentation information and the first sample classification information of the sample enhanced image, the second sample segmentation information can be marked on the sample target image according to the first sample segmentation information, and the second sample classification information of the sample target image can be determined according to the first sample classification information.
[0086] The first sample segmentation information and the first sample classification information can be understood as the first sample annotation information of the sample enhanced image; the second sample segmentation information and the second sample classification information can be understood as the second sample annotation information of the sample target image. The specific contents of the first sample classification information and the second sample classification information are the same.
[0087] Step 104: Input the sample enhanced image and the sample target image into the initial image processing model to obtain the first predicted labeling information and the second predicted labeling information output by the initial image processing model, wherein the initial image processing model includes an enhanced image processing sub-model and a target image processing sub-model, the enhanced image processing sub-model outputs the first predicted labeling information based on the sample enhanced image, and the target image processing sub-model outputs the second predicted labeling information based on the sample target image.
[0088] The initial image processing model is an image processing model that has not been trained. In practical applications, the initial image processing model includes two parts, namely, an enhanced image processing sub-model and a target image processing sub-model. The two sub-models have the same model structure and are used to process the sample enhanced image and the sample target image respectively. Specifically, the enhanced image processing sub-model processes the sample enhanced image, and the target image processing sub-model is used to process the sample target image.
[0089] See also Figure 2 , Figure 2 A schematic diagram of the model structure of the initial image processing model provided in the embodiment of this specification is shown. Figure 2 As shown, the initial image processing model includes two sub-models, namely the enhanced image processing sub-model and the target image processing sub-model, and each sub-model includes an encoder, a decoder and a classifier. The encoder is used to extract image feature information, the decoder is used to generate image segmentation information, and the classifier is used to generate image classification information. The image segmentation information and the image classification information constitute the annotation information. Furthermore, the decoder and the classifier in the enhanced image processing sub-model output the first predicted annotation information, and the decoder and the classifier in the target image processing sub-model output the second predicted annotation information.
[0090] In a specific implementation provided in this specification, the sample enhanced image and the sample target image are input into an initial image processing model, and the first predicted labeling information and the second predicted labeling information output by the initial image processing model are obtained, including:
[0091] The sample enhanced image and the sample target image are input into the initial image processing model to obtain the first predicted labeling information, the second predicted labeling information, the classification difference loss value, the segmentation difference loss value and the feature information difference loss value output by the initial image processing model.
[0092] In the specific implementation provided in this specification, since the enhanced image processing sub-model processes the sample enhanced image, the abnormal information of the target detection area can be identified through the sample enhanced image. However, the target image processing sub-model processes the sample target image, and it cannot accurately identify the abnormal information in the sample target image. Therefore, in the implementation provided in this specification, it is hoped that the target image processing sub-model can learn the feature information of the enhanced image processing sub-model in the recognition process. Therefore, in the process of identifying the sample enhanced image and the sample target image, the initial image processing model, in addition to generating the first predicted annotation information corresponding to the sample enhanced image and the second predicted annotation information corresponding to the sample target image, will further generate a classification difference loss value, a segmentation difference loss value and a feature information difference loss value.
[0093] Among them, the classification difference loss value can be understood as the difference loss value between the classification information generated by the enhanced image processing sub-model and the classification information generated by the target image processing sub-model; the segmentation difference loss value can be understood as the difference loss value between the segmentation information generated by the enhanced image processing sub-model and the segmentation information generated by the target image processing sub-model; the feature information difference loss value can be understood as the difference loss value between the image coding features generated by the enhanced image processing sub-model and the image coding features generated by the target image processing sub-model.
[0094] Specifically, the sample enhanced image and the sample target image are input into the initial image processing model, and the first predicted labeling information, the second predicted labeling information, the classification difference loss value, the segmentation difference loss value and the feature information difference loss value output by the initial image processing model are obtained, including:
[0095] Inputting the sample enhanced image into the enhanced image processing sub-model of the initial image processing model to obtain first prediction classification information, first prediction segmentation information, and first image coding feature information;
[0096] Inputting the sample target image into the target image processing sub-model of the initial image processing model to obtain second prediction classification information, second prediction segmentation information, and second image coding feature information;
[0097] Calculating a classification difference loss value according to the first predicted classification information and the second predicted classification information;
[0098] Calculating a segmentation difference loss value according to the first predicted segmentation information and the second predicted segmentation information;
[0099] A feature information difference loss value is calculated based on the first image encoding feature information and the second image encoding feature information.
[0100] In practical applications, the sample enhanced image is input into the enhanced image processing submodel of the initial image processing model for processing, and the first predicted classification information, the first predicted segmentation information and the first image coding feature information output by the enhanced image processing submodel are obtained. The first predicted classification information and the first predicted segmentation information are the first predicted labeling information in the above-mentioned implementation.
[0101] Similarly, the sample target image is input into the target image processing sub-model of the initial image processing model for processing, and the second predicted classification information, second predicted segmentation information and second image coding feature information output by the target image processing sub-model are obtained. The second predicted classification information and the second predicted segmentation information are the second predicted labeling information in the above-mentioned implementation.
[0102] After obtaining the output results of the two sub-models respectively, the classification difference loss value can be calculated according to the first predicted classification information and the second predicted classification information; the segmentation difference loss value can be calculated according to the first predicted segmentation information and the second predicted segmentation information; the feature information difference loss value can be calculated according to the first image coding feature information and the second image coding feature information.
[0103] The difference between the first predicted classification information and the second predicted classification information, the difference between the first predicted segmentation information and the second predicted segmentation information, and the difference between the first image coding feature information and the second image coding feature information are used to determine the difference between the enhanced image processing sub-model and the target image processing sub-model in the image recognition process, thereby facilitating better training of the initial image processing model, so that the target image processing sub-model can better recognize the target image.
[0104] Specifically, the enhanced image processing sub-model includes a first encoder, a first decoder, and a first classifier;
[0105] Inputting the sample enhanced image into the enhanced image processing sub-model of the initial image processing model to obtain first prediction classification information, first prediction segmentation information, and first image coding feature information, including:
[0106] Inputting the sample enhanced image into the first encoder to obtain at least one enhanced image coding feature information, wherein the at least one enhanced image coding feature information includes classification enhanced coding feature information;
[0107] Inputting the classification enhancement coding feature information into the first classifier to obtain first predicted classification information;
[0108] Inputting each enhanced image coding feature information into the first decoder to obtain first prediction segmentation information;
[0109] A first image coding feature information is determined in at least one enhanced image coding feature information.
[0110] See also Figure 2 ,like Figure 2 As shown, the enhanced image processing sub-model includes a first encoder, a first decoder and a first classifier, wherein the first encoder is used to extract image feature information in the sample enhanced image, the first decoder is used to generate segmentation information of the sample enhanced image, and the first classifier is used to generate classification information of the sample enhanced image.
[0111] The sample enhanced image is input into the first encoder, and is processed by the first encoder to obtain at least one enhanced image coding feature information. In practical applications, the first encoder includes a plurality of sequentially connected coding layers. After each coding layer receives the input image feature information, it outputs the enhanced image coding feature information corresponding to the current coding layer.
[0112] For example, the first encoder has 5 encoding layers as an example for explanation. The first encoding layer receives the sample enhanced image, and after encoding processing, outputs the first enhanced image encoding feature information; the first enhanced image encoding feature information is input into the second encoding layer, and after encoding processing, the second enhanced image encoding feature information is output; and so on, the fifth encoding layer will output the fifth enhanced image encoding feature information. So far, five enhanced image encoding feature information can be obtained. Among them, the enhanced image encoding feature information output by the last encoding layer is the classified enhanced image encoding feature information.
[0113] The classification enhanced image coding feature information is input into the first classifier, and the first classifier performs classification based on the category feature information in the classification enhanced image coding feature information to obtain first predicted classification information.
[0114] Each enhanced image coding feature information is input into a first decoder, and each enhanced image coding feature information is decoded in the first decoder to obtain first prediction segmentation information.
[0115] In order to reflect the coding difference between the enhanced image processing submodel and the target image processing submodel during the coding process, the first image coding feature information is determined in at least one enhanced image coding feature information. Furthermore, the first image coding feature information can be determined in at least one enhanced image coding feature information according to a preset ratio. For example, the first 70% of the enhanced image coding feature information is selected as the first image coding feature information. When there are 5 enhanced image coding feature information, the first 3 or 4 enhanced image coding feature information are selected as the first image coding feature information according to the coding order of the enhanced image coding feature information.
[0116] Accordingly, the target image processing sub-model includes a second encoder, a second decoder, and a second classifier;
[0117] Inputting the sample target image into the target image processing sub-model of the initial image processing model to obtain second prediction classification information, second prediction segmentation information, and second image coding feature information, including:
[0118] Inputting the sample target image into the second encoder to obtain at least one target image encoding feature information, wherein the at least one target image encoding feature information includes classification target encoding feature information;
[0119] Inputting the classification target encoding feature information into the second classifier to obtain second predicted classification information;
[0120] Inputting the encoding feature information of each target image into the second decoder to obtain second prediction segmentation information;
[0121] The second image coding feature information is determined in at least one target image coding feature information.
[0122] See also Figure 2 The target image processing sub-model includes a second encoder, a second decoder and a second classifier. The model structure of the target image processing sub-model is the same as the model structure of the enhancement image processing sub-model. The processing method of the target image processing sub-model on the sample target image can be referred to as the processing method of the enhancement image processing sub-model on the sample enhancement image, which will not be repeated here.
[0123] In the enhanced image processing sub-model branch, the first predicted classification information, the first predicted segmentation information, and the first image coding feature information are obtained; in the target image processing sub-model branch, the second predicted classification information, the second predicted segmentation information, and the second image coding feature information are obtained.
[0124] The classification difference loss value is calculated based on the first predicted classification information and the second predicted classification information. In the method provided in the embodiment of this specification, KL divergence is used as a measure of the difference between the two, see the following formula 1:
[0125] Formula 1
[0126] in, represents the classification difference loss value, represents the first predicted classification information, Represents the second predicted classification information. m Represents the classification result, m =0 means no abnormality, m =1 indicates an abnormality. represents the i-th sample pair.
[0127] The segmentation difference loss value is calculated based on the first predicted segmentation information and the second predicted segmentation information. The segmentation difference loss value is used to improve the ability to distinguish features between background and abnormal areas in the segmentation scene. In the method provided in the embodiment of this specification, a strategy for intra-class feature differentiation based on a dense center loss function is provided. In each training iteration, the center is calculated as the centroid feature of the pixels belonging to the corresponding category in the segmentation mask. For each center loss function, see the following formula 2:
[0128] Formula 2
[0129] in, represents the segmentation difference loss value, is the feature of the pixel belonging to category k, Represents the k-th center of the deep feature. This approach enables the network to more effectively learn compact and independent clusters corresponding to each category in the feature space.
[0130] The feature information difference loss value is calculated based on the first image encoding feature information and the second image encoding feature information. After encoding each sub-model, it is necessary to focus on the similarity between the spatial features of the enhanced image processing sub-model and the target image processing sub-model. Based on this, in the method provided in the embodiment of this specification, an affinity graph is constructed to encapsulate the relationship between the two. The graph is parameterized by the connection range α and the granularity β, which optimizes the resolution of the affinity graph and the fidelity of the captured spatial relationship.
[0131] Affinity diagrams have nodes and The connections can be used as a dynamic representation of spatial correlation to enhance the mutual learning process between the image processing sub-model and the target image processing sub-model. In order to quantify the knowledge transfer between the two and promote the mutual learning process, in the implementation provided in this specification, a pairwise similarity distillation loss is introduced to combine the squared difference of the pairwise similarity with the similarity to measure the degree of alignment between the network feature maps, see the following formula 3:
[0132] Formula 3
[0133] in, represents the feature information difference loss value, and represents the similarity between the i-th and j-th nodes in the enhanced image processing submodel and the target image processing submodel. The similarity between the two nodes is determined by the aggregated feature It is calculated that , and is the size of the convolution kernel. In the specific implementation process, average pooling is used to convert the Size features are aggregated into During the training process, it is hoped that the image features of the target image processing sub-model are close to the enhanced image processing sub-model. Therefore, in the subsequent parameter adjustment process, the feature information difference loss value is only used to adjust the model parameters of the target image processing sub-model.
[0134] In practical applications, the area with abnormalities in the target detection area is usually smaller than the target detection area. If the sample enhanced image and the sample target image are input into the initial image processing model for processing, there will be a problem of inaccurate recognition. Based on this, in a specific implementation provided in this specification, the sample enhanced image and the sample target image are input into the initial image processing model, including:
[0135] Crop the sample enhanced image and the sample target image based on a preset cropping size;
[0136] The cropped sample enhanced image and the sample target image are input into the initial image processing model.
[0137] In this embodiment, before the sample enhanced image and the sample target image are input into the initial image processing model, the sample enhanced image and the sample target image are first cropped according to a preset cropping size. The cropped sample enhanced image and the sample target image are input into the initial image processing model for processing. This allows the initial image processing model to better identify abnormal information in the target detection area.
[0138] Step 106: Calculate a model loss value according to the first sample labeling information, the second sample labeling information, the first prediction labeling information, and the second prediction labeling information.
[0139] In the specific implementation provided in the embodiments of this specification, the model loss value is calculated according to the first sample annotation information, the second sample annotation information, the first prediction annotation information, and the second prediction annotation information. In this case, the initial image processing model is an untrained model, so the initial image processing model is trained by adjusting the model parameters by calculating the model loss value.
[0140] Furthermore, the enhancement sub-model loss value is calculated according to the first sample annotation information and the first predicted annotation information, the target sub-model loss value is calculated according to the second sample annotation information and the second predicted annotation information, and the model loss value is determined according to the enhancement sub-model loss value and the target sub-model loss value.
[0141] In a specific implementation provided in this specification, the first sample annotation information includes first sample segmentation information and first sample classification information, the first prediction annotation information includes first prediction segmentation information and first prediction classification information, the second sample annotation information includes second sample segmentation information and second sample classification information, and the second prediction annotation information includes second prediction segmentation information and second prediction classification information;
[0142] Calculating a model loss value according to the first sample labeling information, the second sample labeling information, the first prediction labeling information, and the second prediction labeling information includes:
[0143] Calculate the classification loss value of the enhancer model according to the first sample classification information and the first predicted classification information;
[0144] Calculate the segmentation loss value of the enhancer model according to the first sample segmentation information and the first predicted segmentation information;
[0145] Determine the enhancer model loss value according to the enhancer model classification loss value and the enhancer model segmentation loss value;
[0146] Calculate the classification loss value of the target sub-model according to the second sample classification information and the second predicted classification information;
[0147] Calculate the target sub-model segmentation loss value according to the second sample segmentation information and the second predicted segmentation information;
[0148] The target sub-model loss value is determined according to the target sub-model classification loss value and the target sub-model segmentation loss value.
[0149] In practical applications, the first sample annotation information includes the first sample segmentation information and the first sample classification information, and the first prediction annotation information includes the first prediction segmentation information and the first prediction classification information. The segmentation loss value of the enhancer model is calculated according to the first sample segmentation information and the first sample classification information, the classification loss value of the enhancer model is calculated according to the first sample classification information and the first prediction classification information, and then the enhancer model loss value is determined according to the segmentation loss value of the enhancer model and the classification loss value of the enhancer model.
[0150] Correspondingly, the second sample annotation information includes the second sample segmentation information and the second sample classification information, and the second prediction annotation information includes the second prediction segmentation information and the second prediction classification information. The target sub-model classification loss value is calculated according to the second sample segmentation information and the second sample classification information, the target sub-model segmentation loss value is calculated according to the second sample classification information and the second prediction classification information, and then the target sub-model loss value is determined according to the target sub-model classification loss value and the target sub-model segmentation loss value.
[0151] The enhancement sub-model loss value and the target sub-model loss value constitute the model loss value.
[0152] Step 108: Adjust the model parameters of the initial image processing model according to the model loss value, and continue to train the initial image processing model until the model training stop condition is reached to obtain a reference image processing model.
[0153] At this time, the initial image processing model is an image processing model that has not been trained yet. The model loss value needs to be used to adjust the model parameters in the initial image processing model. The initial image processing model is trained continuously until the model training stop condition is reached. The reference image processing model is obtained.
[0154] The reference image processing model at this time is an image processing model obtained after the initial image processing model reaches the model training stop condition. The model structure of the reference image processing model is the same as the model structure of the initial image processing model.
[0155] In a specific implementation provided in this specification, adjusting the model parameters of the initial image processing model according to the model loss value includes:
[0156] The model parameters of the initial image processing model are adjusted according to the model loss value, the classification difference loss value, the segmentation difference loss value and the feature information difference loss value.
[0157] In the embodiments of this specification, more specific implementations are provided as above. In addition to outputting the first predicted labeling information and the second predicted labeling information, the initial image processing model also determines the classification difference loss value, the segmentation difference loss value and the feature information difference loss value at the same time.
[0158] Accordingly, in the process of training the initial image processing model, in addition to using the model loss value to adjust the model parameters of the initial image processing model, the model loss value, the classification difference loss value, the segmentation difference loss value and the feature information difference loss value can also be used to adjust the model parameters of the initial image processing model together. In addition to learning the difference value between the prediction result and the label, the initial image processing model can also further learn the difference information between the image encoding features generated during the model processing process, the classification difference information and the segmentation difference information.
[0159] In another specific implementation provided in this specification, the model loss value includes an enhancement sub-model loss value and a target sub-model loss value;
[0160] Adjusting the model parameters of the initial image processing model according to the model loss value, the classification difference loss value, the segmentation difference loss value, and the feature information difference loss value includes:
[0161] Adjusting the model parameters of the enhanced image processing sub-model according to the enhanced sub-model loss value and the segmentation difference loss value;
[0162] The model parameters of the target image processing sub-model are adjusted according to the target sub-model loss value, the classification difference loss value, the segmentation difference loss value and the feature information difference loss value.
[0163] In practical applications, the model loss value includes the enhancement sub-model loss value and the target sub-model loss value. In the process of adjusting the parameters of the initial image processing model according to the loss values, the model parameters of the enhancement image processing sub-model are adjusted according to the enhancement sub-model loss value and the segmentation difference loss value; the model parameters of the target image processing sub-model are adjusted according to the target sub-model loss value, the classification difference loss value, the segmentation difference loss value and the feature information difference loss value.
[0164] In the steps of the above implementation, it can be determined that the classification difference loss value is expressed as , the segmentation difference loss value is expressed as , the feature information difference loss value is expressed as In addition, the enhancement model loss value includes the enhancement model classification loss value and enhancer model segmentation loss , the target sub-model loss value includes the target sub-model classification loss value And the target sub-model segmentation loss value .
[0165] The loss value of the enhanced image processing sub-model is shown in the following formula 4, and the loss value of the target image processing sub-model is shown in the following formula 5:
[0166] Formula 4
[0167] Formula 5
[0168] in, represents the loss value of the enhancer model, represents the target sub-model loss value, and is the weight of each loss value. In a specific implementation provided in this specification, and Set them to 0.25, 10, and 0.1 respectively.
[0169] After adjusting the model parameters of the enhanced image processing sub-model and the target image processing sub-model, the above steps can be repeated to continue training the initial image processing model until the model training stop condition is reached. In practical applications, the model training stop condition of the initial image processing model includes:
[0170] The total loss value is less than a preset threshold, and / or the number of training rounds reaches a preset number of training rounds.
[0171] Specifically, during the training of the initial image processing model, the training stop condition of the model can be set to the total loss value, that is, and Less than the preset threshold, in practical applications, when When the value is less than the preset threshold, there is no need to adjust the model parameters of the enhanced image processing sub-model. When the value is less than the preset threshold, there is no need to adjust the model parameters of the target image processing sub-model.
[0172] Furthermore, the model training stop condition of the initial image processing model can be further set to when the training rounds reach a preset training round. For example, the preset training rounds are 10 rounds. When the model training rounds reach 10 rounds, the model training stop condition is met.
[0173] In the method provided in this specification, there is no limitation on the model training stop condition. When the initial image processing model reaches the model training stop condition, it means that the initial image processing model training is completed and the reference image processing model is obtained.
[0174] Step 110: Generate an image processing model based on the target image processing sub-model in the reference image processing model.
[0175] The reference image processing model at this time is not the image processing model to be trained in the end. In the method provided in this specification, the image processing model that is ultimately hoped to be obtained can process the target image. The model structure of the reference image processing model is the same as the model structure of the initial image processing model, and also includes an enhanced image processing sub-model and a target image processing sub-model. In order to make the final image processing model process only according to the target image, the image processing model can be obtained according to the target image processing sub-model in the reference image processing model. That is, the enhanced image processing sub-model in the reference image processing model is deleted, and the target image processing sub-model in the reference image processing sub-model is retained to obtain the final image processing model.
[0176] The training method of the image processing model provided in the embodiment of this specification provides a framework based on mutual learning between two sub-models, unifies the classification tasks and segmentation tasks of two types of sample images (sample enhanced images and sample target images), realizes the transfer from the enhanced image processing sub-model to the target image processing sub-model through knowledge, and improves the performance of the image processing model in target image processing. At the same time, the segmentation task and the classification task are structured to increase the interpretability of image recognition.
[0177] Secondly, in the specific implementation manner provided in this specification, an inter-class feature alignment strategy is designed to capture the similarity of pairwise spatial features through an affinity graph, enhance spatial continuity under the guidance of connection range and granularity parameters, promote mutual learning and transfer from the enhanced image processing sub-model to the target image processing sub-model path network, and effectively integrate the visual features of different paths, making the identification of target detection areas more accurate.
[0178] In addition, in the specific implementation provided in the embodiments of this specification, an intra-class feature differentiation strategy is proposed, which produces a clearer division in the feature space through the designed dense center loss, and accurately segments the abnormal areas of the target detection area under complex backgrounds for each single-path network, thereby improving the segmentation accuracy.
[0179] See also Figure 3 , Figure 3 A structural schematic diagram of image processing model training for pulmonary embolism detection provided in an embodiment of this specification is shown.
[0180] In this embodiment, the model training of the image detection model corresponding to pulmonary embolism is used as an example for explanation. First, multiple training sample pairs that meet the image quality requirements are collected from the hospital, and the training sample pairs include pulmonary artery enhanced CT images and plain scan CT images. The enhanced CT images are input into the image labeling model for recognition to obtain voxel-level pulmonary embolism segmentation masks and classification labels. The plain scan CT images are annotated based on the pulmonary embolism segmentation masks and classification labels of the enhanced CT images to obtain voxel-level pulmonary embolism segmentation masks and classification labels on the plain scan CT images.
[0181] Voxel level refers to the level of detail or fineness of the basic unit considered or operated in three-dimensional data processing, analysis or imaging. Voxel is the abbreviation of volume element, which is the smallest unit in three-dimensional space segmentation. A volume containing voxels can be represented by stereo rendering or extracting polygonal isosurfaces with a given threshold contour. Voxels are used in fields such as three-dimensional imaging, scientific data and medical impact. Its concept is similar to the smallest unit pixel in two-dimensional space.
[0182] The lungmask python library is used to extract the maximum external 3D matrix containing the lung area in enhanced CT images and plain CT images. The training sample pairs are divided into training set and test set in a ratio of 8:2 to ensure that the ratio of positive and negative cases in the training set and the test set is consistent. lungmask python is a python library mainly used in the field of medical image processing, especially for the automatic segmentation of the lung area in chest CT images.
[0183] Use the encoder based on EfficientNet as the backbone network and the decoder based on U-net to build a multi-task learning framework for pulmonary embolism CT image classification and segmentation based on mutual learning, such as Figure 3 As shown, including an enhanced CT pathway network and a plain scan CT pathway network, in the method provided in the embodiment of this specification, the proposed inter-period mutual learning framework is intended to simultaneously train two convolutional neural networks with different tasks (classification and segmentation). The enhanced CT pathway network is responsible for classifying and segmenting enhanced CT images, and the plain scan CT pathway network is responsible for classifying and segmenting plain scan CT images.
[0184] EfficientNet is a deep learning model that uses a convolutional neural network (CNN) architecture and systematically scales the model’s depth, width, and input resolution through a compound scaling approach to achieve higher prediction accuracy while maintaining high computational efficiency.
[0185] In the framework provided in this specification, both the enhanced CT pathway network and the plain scan CT pathway network use the 3D version of EfficientNet as the backbone network, and select the decoder of the 3D version of U-net as the decoder for the segmentation task, and add a classifier after the backbone network for the classification task. The architecture of the enhanced CT pathway network and the plain scan CT pathway network are the same, and the subsequent processing of the pathway network does not distinguish between the enhanced CT pathway network and the plain scan CT pathway network.
[0186] In the application, the input CT three-dimensional image is randomly cropped into a 224*224*96-dimensional segmented three-dimensional image. Selecting the 224*224*96-dimensional size can ensure that each three-dimensional image will include the mask area of pulmonary embolism, which can ensure that the model can recognize the pulmonary embolism area. At the same time, it can reduce the volume of the image input to the model and reduce the data processing amount of the image processing model.
[0187] The segmented 3D image is input into the encoder of the pathway network (the enhanced CT image is input into the first encoder, and the plain scan CT image is input into the second encoder) to obtain at least one image coding feature information E={E1, E2, E3, E4, E5} corresponding to the segmented 3D image, where E1-E5 is the image coding feature information output by each coding layer in the encoder. Among them, E5 is the image coding feature information output by the last coding layer. E5 can also be understood as classification coding feature information.
[0188] E5 is input into the classifier for processing. The logits obtained by the classifier represent the probability that the segmented 3D image is an embolism case or a normal case, that is, the predicted classification information. The logits obtained from the enhanced CT pathway network and the plain scan CT pathway network are aligned for prediction distribution, and the KL divergence is used as the measure of the difference between the logits. The classification difference loss value is calculated by the above formula 1.
[0189] The encoded feature information E of each image is input into the decoder for decoding to obtain the segmented output mask , which means the probability that each pixel in the image is pulmonary embolism. In order to improve the ability of the segmentation network to distinguish the discriminative features between the background and pulmonary embolism, in the method provided in this specification, a strategy for intra-class feature differentiation based on a dense center loss function is proposed. In each training iteration, the center is calculated as the centroid feature of the pixels belonging to the corresponding category in the segmentation mask, and the segmentation difference loss value is calculated by the above formula 2.
[0190] In addition, in the method provided in this specification, attention should also be paid to the similarity between the spatial features of the enhanced CT pathway network and the plain scan CT pathway network. Therefore, the image coding feature information used to calculate the feature information difference loss value is determined from at least one image coding feature information. For example, {E1, E2, E3} is selected from at least one image coding feature information E={E1, E2, E3, E4, E5} for calculation. In the method provided in this specification, in the process of calculating the feature information difference loss value, an affinity graph is constructed to encapsulate the similarity between the spatial features of the enhanced CT pathway network and the plain scan CT pathway network, and the feature information difference loss value is calculated by the above formula 3. During the training process, it is only hoped that the features of the plain scan CT pathway network are close to the enhanced CT pathway network. Therefore, the feature information difference loss value is used to update the model parameters of the plain scan CT pathway network.
[0191] On this basis, each predicted segmentation information and predicted classification information will be compared with the annotation information on the sample image to calculate the model loss value of the enhanced CT pathway network and the model loss value of the plain scan CT pathway network.
[0192] Through the above formula 4 and formula 5, the model parameters of the enhanced CT pathway network and the plain scan CT pathway network are adjusted respectively, and the training is continued until the model training stop condition is reached to obtain the reference image processing model corresponding to the initial image processing model.
[0193] On the basis of obtaining the reference image processing model, the enhanced CT pathway network in the reference image processing model is eliminated, and only the plain scan CT pathway network is retained, thereby obtaining an image processing model for auxiliary diagnosis and treatment of pulmonary embolism through plain scan CT images.
[0194] In the method provided in this specification, after obtaining the image processing model, three doctors with experience in cardiopulmonary embolism were invited to compare with the image processing model, and 289 plain scan CT images from the test set were given to the three doctors respectively, asking the doctors to judge whether there is pulmonary embolism based on the CT images. And these 289 plain scan CT images were input into the image processing model for pulmonary embolism annotation and identification. After testing, the recognition result of the image processing model for the plain scan CT in the test set was higher than the conclusion given by the three doctors. At this point, the image processing model with the ability to identify plain scan CT images and obtain the diagnosis and treatment results of pulmonary embolism in plain scan CT images has been successfully trained.
[0195] The model training method for the image processing model for the pulmonary embolism scene provided in the embodiment of this specification proposes a novel cross-period mutual learning framework, which unifies the classification and segmentation tasks of pulmonary embolism across two phases (enhanced CT and plain CT). By transferring knowledge from enhanced CT to plain CT, the performance of the model on plain CT scans is improved. At the same time, the classification task and the segmentation task are decoupled, which increases the interpretability of the image recognition results.
[0196] Secondly, the embodiments of this specification involve an inter-class feature alignment (IFA) strategy, which captures the similarity of paired spatial features through an affinity graph, enhances spatial continuity under the guidance of connection range and granularity parameters, promotes mutual learning and transfer from enhanced CT to plain scan CT networks, and effectively integrates visual features of different paths, making pulmonary embolism identification more accurate.
[0197] In addition, in the architecture provided in the embodiments of this specification, an intra-class feature differentiation (IFD) strategy is also proposed, which produces a clearer division in the feature space through the designed dense center loss, and accurately segments pulmonary embolism in a complex background for each single path network, thereby improving the accuracy of segmentation.
[0198] See also Figure 4 , Figure 4 FIG. 1 shows a flow chart of an image processing method provided by an embodiment of the present specification. Figure 4 As shown, the specific steps include:
[0199] Step 402: receiving an image processing task, wherein the image processing task carries a plurality of target images corresponding to a target detection area, and the image processing task is used to detect whether there is an abnormality in the target detection area.
[0200] Among them, the image processing task can be understood as a task for detecting whether an abnormality occurs in the target detection area, and the image processing task carries multiple target images corresponding to the target detection area. Furthermore, the target detection area can be understood as a partition for predicting whether an abnormality occurs. For example, the target detection area can be any organ, such as the liver, spleen, lungs, stomach, etc. By predicting whether the target detection area is abnormal, the state of the object to be detected can be further assisted in judging the state of the object to be detected based on the prediction result, thereby providing help in determining the state of the object to be detected. Detecting whether there is an abnormality in the target detection area can be understood as detecting whether a tumor occurs in the organ, whether an embolism occurs in the blood vessel, and so on.
[0201] It should be noted that in one or more embodiments of the present specification, the image processing task can be used to identify plain scan CT images and determine whether an abnormality occurs in a target detection area in the plain scan CT images based on image features. For example, in a pulmonary embolism diagnosis scenario, segmentation and classification can be performed based on the plain scan CT images of the lungs to predict whether pulmonary embolism occurs, thereby assisting doctors in determining whether an abnormality occurs in the target detection area and facilitating subsequent treatment.
[0202] In a specific embodiment provided in this specification, the detection of whether embolism occurs in the pulmonary artery is used as an example for explanation. A plain scan CT image of the lung is acquired, that is, the acquired multiple target images are plain scan CT images including the lung area, and the multiple plain scan CT images form a 3D image of the lung. By performing image detection on the multiple plain scan CT images, it is detected whether embolism occurs in the pulmonary artery.
[0203] Step 404: Input the multiple target images into an image processing model to obtain a detection result for the target detection area output by the image processing model, wherein the image processing model is trained using the above-mentioned image processing model training method.
[0204] In actual applications, after receiving an image processing task, multiple target images carried by the image processing task are obtained from the image processing task, and the multiple target images are input into the image processing model for processing. The detection results corresponding to the target detection area output by the image processing model can be obtained. The detection results specifically include whether there is an abnormality in the target detection area, the probability of an abnormality, and other information.
[0205] It should be noted that the image processing model in the image processing method of the embodiment of this specification is obtained by training the image processing model training method in the above embodiment. The image processing model can detect not only the target image including the entire target detection area, but also the target image including part of the target detection area.
[0206] In a specific implementation manner provided in this specification, receiving an image processing task includes:
[0207] Receiving an image processing request sent by a user, wherein the image processing request carries an image processing task;
[0208] Accordingly, the method further includes:
[0209] The detection result is sent to the user.
[0210] Specifically, the image processing task can be triggered locally in the terminal, that is, multiple target images are stored locally in the terminal, and the image processing task is triggered by the terminal, so as to perform the subsequent process of image processing. In addition, the image processing task can also be sent by the user, that is, the terminal receives the image processing request sent by the user, and the image processing task is carried in the image processing request, and after the image processing method mentioned in the above embodiment is processed and the detection result is obtained, the detection result is returned to the user, so that the user can perform corresponding subsequent processing according to the detection result.
[0211] The image processing method provided by the embodiments of this specification provides a scanning and screening scheme for the target image corresponding to the target detection area, so that during the target image detection process, abnormal information in the target detection area can be better identified, achieving high sensitivity in the target image processing and improving the accuracy of the detection results.
[0212] See also Figure 5 , Figure 5 A flowchart of a CT image processing method provided in an embodiment of the present specification is shown, which specifically includes the following steps:
[0213] Step 502: Receive a CT image processing task, wherein the CT image processing task carries a plurality of plain scan CT images corresponding to a target detection region, and the CT image processing task is used to detect whether there is an abnormality in the target detection region.
[0214] Step 504: Input the multiple plain scan CT images into a CT image processing model to obtain a detection result for the target detection area output by the image processing model, wherein the CT image processing model is trained using the above-mentioned image processing model training method.
[0215] It should be noted that the implementation of step 502 to step 504 is the same as the implementation of step 402 to step 404 described above, and will not be repeated in the embodiments of this specification.
[0216] Specifically, in the method provided in this embodiment, the CT image processing task of detecting pulmonary embolism is taken as an example for further explanation. Based on this, the CT image processing task includes a plain scan CT image of the lung area. The plain scan CT image is input into the CT image processing model for identification. The CT image processing model can identify whether there is embolism in the pulmonary artery in the plain scan CT image, which solves the problem that the current algorithm cannot detect pulmonary embolism based on plain scan CT images, and lowers the threshold for pulmonary embolism detection.
[0217] Corresponding to the above method embodiment, this specification also provides an embodiment of a training device for an image processing model. Figure 6 FIG. 1 is a schematic diagram showing a structure of a training device for an image processing model provided by an embodiment of the present specification. Figure 6 As shown, the device comprises:
[0218] An acquisition module 602 is configured to acquire a plurality of training sample pairs, wherein the training sample pairs include a sample enhanced image and a sample target image, the sample enhanced image includes first sample annotation information for a target detection area, and the sample target image includes second sample annotation information for the target detection area;
[0219] The prediction module 604 is configured to input the sample enhanced image and the sample target image into the initial image processing model to obtain the first predicted labeling information and the second predicted labeling information output by the initial image processing model, wherein the initial image processing model includes an enhanced image processing sub-model and a target image processing sub-model, the enhanced image processing sub-model outputs the first predicted labeling information based on the sample enhanced image, and the target image processing sub-model outputs the second predicted labeling information based on the sample target image;
[0220] A calculation module 606 is configured to calculate a model loss value according to the first sample labeling information, the second sample labeling information, the first prediction labeling information, and the second prediction labeling information;
[0221] A parameter adjustment module 608 is configured to adjust the model parameters of the initial image processing model according to the model loss value, and continue to train the initial image processing model until the model training stop condition is reached to obtain a reference image processing model;
[0222] The generation module 610 is configured to generate an image processing model based on the target image processing sub-model in the reference image processing model.
[0223] Optionally, the acquisition module 602 is further configured to:
[0224] Determine a sample detection object, and obtain a sample enhanced image and a sample target image corresponding to the sample detection object, wherein the sample enhanced image and the sample target image corresponding to the sample detection object correspond to the same target detection area of the sample detection object;
[0225] Generating first sample annotation information for a target detection area on the sample enhanced image;
[0226] The second sample labeling information is labeled on the sample target image based on the first sample labeling information.
[0227] Optionally, the acquisition module 602 is further configured to:
[0228] Inputting the sample enhanced image into an information annotation model to obtain first sample segmentation information and first sample classification information for the target detection area output by the information annotation model;
[0229] Correspondingly, marking second sample annotation information on the sample target image based on the first sample annotation information includes:
[0230] The second sample segmentation information is marked on the sample target image according to the first sample segmentation information, and the second sample classification information of the sample target image is determined according to the first sample classification information.
[0231] Optionally, the prediction module 604 is further configured to:
[0232] Inputting the sample enhanced image and the sample target image into the initial image processing model, obtaining the first predicted labeling information, the second predicted labeling information, the classification difference loss value, the segmentation difference loss value and the feature information difference loss value output by the initial image processing model;
[0233] Accordingly, the parameter adjustment module 608 is further configured to:
[0234] The model parameters of the initial image processing model are adjusted according to the model loss value, the classification difference loss value, the segmentation difference loss value and the feature information difference loss value.
[0235] Optionally, the prediction module 604 is further configured to:
[0236] Inputting the sample enhanced image into the enhanced image processing sub-model of the initial image processing model to obtain first prediction classification information, first prediction segmentation information, and first image coding feature information;
[0237] Inputting the sample target image into the target image processing sub-model of the initial image processing model to obtain second prediction classification information, second prediction segmentation information, and second image coding feature information;
[0238] Calculating a classification difference loss value according to the first predicted classification information and the second predicted classification information;
[0239] Calculating a segmentation difference loss value according to the first predicted segmentation information and the second predicted segmentation information;
[0240] A feature information difference loss value is calculated based on the first image encoding feature information and the second image encoding feature information.
[0241] Optionally, the enhanced image processing sub-model includes a first encoder, a first decoder, and a first classifier;
[0242] The prediction module 604 is further configured to:
[0243] Inputting the sample enhanced image into the first encoder to obtain at least one enhanced image coding feature information, wherein the at least one enhanced image coding feature information includes classification enhanced coding feature information;
[0244] Inputting the classification enhancement coding feature information into the first classifier to obtain first predicted classification information;
[0245] Inputting each enhanced image coding feature information into the first decoder to obtain first prediction segmentation information;
[0246] A first image coding feature information is determined in at least one enhanced image coding feature information.
[0247] Optionally, the target image processing sub-model includes a second encoder, a second decoder, and a second classifier;
[0248] The prediction module 604 is further configured to:
[0249] Inputting the sample target image into the second encoder to obtain at least one target image encoding feature information, wherein the at least one target image encoding feature information includes classification target encoding feature information;
[0250] Inputting the classification target encoding feature information into the second classifier to obtain second predicted classification information;
[0251] Inputting the encoding feature information of each target image into the second decoder to obtain second prediction segmentation information;
[0252] The second image coding feature information is determined in at least one target image coding feature information.
[0253] Optionally, the model loss value includes an enhancement sub-model loss value and a target sub-model loss value;
[0254] The parameter adjustment module 608 is further configured to:
[0255] Adjusting the model parameters of the enhanced image processing sub-model according to the enhanced sub-model loss value and the segmentation difference loss value;
[0256] The model parameters of the target image processing sub-model are adjusted according to the target sub-model loss value, the classification difference loss value, the segmentation difference loss value and the feature information difference loss value.
[0257] Optionally, the first sample labeling information includes first sample segmentation information and first sample classification information, the first prediction labeling information includes first prediction segmentation information and first prediction classification information, the second sample labeling information includes second sample segmentation information and second sample classification information, and the second prediction labeling information includes second prediction segmentation information and second prediction classification information;
[0258] The calculation module 606 is further configured to:
[0259] Calculate the classification loss value of the enhancer model according to the first sample classification information and the first predicted classification information;
[0260] Calculate the segmentation loss value of the enhancer model according to the first sample segmentation information and the first predicted segmentation information;
[0261] Determine the enhancer model loss value according to the enhancer model classification loss value and the enhancer model segmentation loss value;
[0262] Calculate the classification loss value of the target sub-model according to the second sample classification information and the second predicted classification information;
[0263] Calculate the target sub-model segmentation loss value according to the second sample segmentation information and the second predicted segmentation information;
[0264] The target sub-model loss value is determined according to the target sub-model classification loss value and the target sub-model segmentation loss value.
[0265] Optionally, the prediction module 604 is further configured to:
[0266] Crop the sample enhanced image and the sample target image based on a preset cropping size;
[0267] The cropped sample enhanced image and the sample target image are input into the initial image processing model.
[0268] The training device of the image processing model provided by the embodiment of this specification provides a framework based on mutual learning between two sub-models, unifies the classification tasks and segmentation tasks of two types of sample images (sample enhanced images and sample target images), realizes the transfer from the enhanced image processing sub-model to the target image processing sub-model through knowledge, and improves the performance of the image processing model in target image processing. At the same time, the segmentation task and the classification task are structured to increase the interpretability of image recognition.
[0269] Secondly, in the specific implementation manner provided in this specification, an inter-class feature alignment strategy is designed to capture the similarity of pairwise spatial features through an affinity graph, enhance spatial continuity under the guidance of connection range and granularity parameters, promote mutual learning and transfer from the enhanced image processing sub-model to the target image processing sub-model path network, and effectively integrate the visual features of different paths, making the identification of target detection areas more accurate.
[0270] In addition, in the specific implementation provided in the embodiments of this specification, an intra-class feature differentiation strategy is proposed, which produces a clearer division in the feature space through the designed dense center loss, and accurately segments the abnormal areas of the target detection area under complex backgrounds for each single-path network, thereby improving the segmentation accuracy.
[0271] The above is a schematic scheme of a training device for an image processing model of this embodiment. It should be noted that the technical scheme of the training device for the image processing model and the technical scheme of the training method for the image processing model described above belong to the same concept, and the details not described in detail in the technical scheme of the training device for the image processing model can be found in the description of the technical scheme of the training method for the image processing model described above.
[0272] Corresponding to the above method embodiment, this specification also provides a CT image processing device embodiment, Figure 7 FIG. 2 shows a schematic diagram of the structure of a CT image processing device provided by an embodiment of the present specification. Figure 7 As shown, the device comprises:
[0273] The receiving module 702 is configured to receive a CT image processing task, wherein the CT image processing task carries a plurality of plain scan CT images corresponding to a target detection area, and the CT image processing task is used to detect whether there is an abnormality in the target detection area;
[0274] The prediction module 704 is configured to input the multiple plain scan CT images into a CT image processing model to obtain a detection result for the target detection area output by the image processing model, wherein the CT image processing model is trained using the above-mentioned image processing model training method.
[0275] The above is a schematic scheme of a CT image processing device of this embodiment. It should be noted that the technical scheme of the CT image processing device and the technical scheme of the above CT image processing method belong to the same concept, and the details not described in detail in the technical scheme of the CT image processing device can be referred to the description of the technical scheme of the above CT image processing method.
[0276] Figure 8 is a schematic diagram of a training method for an image processing model applied to a cloud-side device provided in an embodiment of the present application, such as Figure 8 As shown, the method includes:
[0277] Step 802: Acquire multiple training sample pairs, wherein the training sample pairs include a sample enhanced image and a sample target image, the sample enhanced image includes first sample annotation information for a target detection area, and the sample target image includes second sample annotation information for the target detection area.
[0278] Step 804: Input the sample enhanced image and the sample target image into the initial image processing model to obtain first predicted labeling information and second predicted labeling information output by the initial image processing model, wherein the initial image processing model includes an enhanced image processing sub-model and a target image processing sub-model, the enhanced image processing sub-model outputs the first predicted labeling information based on the sample enhanced image, and the target image processing sub-model outputs the second predicted labeling information based on the sample target image.
[0279] Step 806: Calculate a model loss value according to the first sample labeling information, the second sample labeling information, the first prediction labeling information, and the second prediction labeling information.
[0280] Step 808: Adjust the model parameters of the initial image processing model according to the model loss value, and continue to train the initial image processing model until the model training stop condition is reached to obtain a reference image processing model.
[0281] Step 810: Based on the target image processing sub-model in the reference image processing model, generate an image processing model, obtain model parameters of the image processing model, and send the model parameters of the image processing model to the terminal side device.
[0282] It should be noted that the implementation of step 802 to step 810 is the same as the implementation of step 102 to step 110 described above, and will not be repeated in the embodiments of this specification.
[0283] In practical applications, since model training requires a large amount of data and good computing resources, the end-side device may not have the corresponding processing capabilities. Therefore, the model training process can be implemented on the cloud-side device. After obtaining the model parameters of the image processing model, the cloud-side device can also send the model parameters to the end-side device. The end-side device can build an image processing model locally based on the model parameters of the image processing model, and further use the image processing model to perform image processing.
[0284] The training method of the image processing model provided in the embodiment of this specification provides a framework based on mutual learning between two sub-models, unifies the classification tasks and segmentation tasks of two types of sample images (sample enhanced images and sample target images), realizes the transfer from the enhanced image processing sub-model to the target image processing sub-model through knowledge, and improves the performance of the image processing model in target image processing. At the same time, the segmentation task and the classification task are structured to increase the interpretability of image recognition.
[0285] Secondly, in the specific implementation manner provided in this specification, an inter-class feature alignment strategy is designed to capture the similarity of pairwise spatial features through an affinity graph, enhance spatial continuity under the guidance of connection range and granularity parameters, promote mutual learning and transfer from the enhanced image processing sub-model to the target image processing sub-model path network, and effectively integrate the visual features of different paths, making the identification of target detection areas more accurate.
[0286] In addition, in the specific implementation provided in the embodiments of this specification, an intra-class feature differentiation strategy is proposed, which produces a clearer division in the feature space through the designed dense center loss, and accurately segments the abnormal areas of the target detection area under complex backgrounds for each single-path network, thereby improving the segmentation accuracy.
[0287] Fig. 9 This is a flowchart of an image processing method applied to a cloud-side device provided in an embodiment of the present application, which specifically includes:
[0288] Step 902: an image processing task sent by a receiving device, wherein the image processing task carries a plurality of target images corresponding to a target detection area, and the image processing task is used to detect whether there is an abnormality in the target detection area.
[0289] Step 904: Input the multiple target images into an image processing model to obtain a detection result for the target detection area output by the image processing model, wherein the image processing model is trained using the above-mentioned image processing model training method.
[0290] Step 906: Send the detection result to the terminal side device.
[0291] Fig.10 : is a flow chart of a method for detecting vascular embolism provided in an embodiment of the present application, which specifically includes:
[0292] Step 1002: Receive a vascular embolism detection task, wherein the vascular embolism detection task carries a plurality of plain scan CT images corresponding to a vascular region, and the vascular embolism detection task is used to detect whether there is embolism in the vascular region.
[0293] Step 1004: Input the multiple plain scan CT images into an image processing model to obtain a detection result output by the image processing model regarding whether vascular embolism exists in the vascular region, wherein the image processing model is trained using the above-mentioned image processing model training method.
[0294] The image processing model in this embodiment is trained to detect classification results of vascular embolism.
[0295] The vascular embolism detection method provided in this embodiment can be applied to the scenario of screening whether there is vascular embolism in arterial vessels and venous vessels, and provide guidance and suggestions for doctors to help improve the accuracy of doctors' diagnosis.
[0296] Fig.11 This is a flow chart of a tumor screening method provided in one embodiment of the present application, which specifically includes:
[0297] Step 1102: Receive a tumor screening task, wherein the tumor screening task carries a plurality of plain scan CT images corresponding to a target detection area, and the tumor screening task is used to detect whether there is a tumor in the target detection area.
[0298] Step 1104: Input the multiple plain scan CT images into an image processing model to obtain a detection result output by the image processing model regarding whether a tumor exists in the target detection area, wherein the image processing model is trained using the above-mentioned image processing model training method.
[0299] The tumor screening method provided in this embodiment can be applied to the screening of pancreatic cancer, esophageal cancer, liver cancer, lung cancer, breast cancer, colorectal cancer, gastric cancer, lymphoma and other tumors, and can screen whether there are tumors in organs such as the pancreas, esophagus, liver, lung, breast, intestine, stomach, and lymph nodes throughout the body. It can provide guidance and suggestions for doctors to help improve their diagnostic accuracy.
[0300] Fig.12The block diagram of a computing device 1200 according to one embodiment of the present specification is shown. The components of the computing device 1200 include but are not limited to a memory 1210 and a processor 1220. The processor 1220 is connected to the memory 1210 via a bus 1230, and the database 1250 is used to store data.
[0301] The computing device 1200 also includes an access device 1240 that enables the computing device 1200 to communicate via one or more networks 1260. 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 1240 may include one or more of any type of network interface (e.g., a network interface card (NIC)) of 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).
[0302] In one embodiment of the present specification, the above components of the computing device 1200 and Fig.12 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.12 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.
[0303] The computing device 1200 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 1200 may also be a mobile or stationary server.
[0304] Among them, the processor 1220 is used to execute the following computer program / instructions, which, when executed by the processor, implement the training method of the above-mentioned image processing model or the steps of the image processing method.
[0305] 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 training method of the image processing model or the image processing method embodiment described above, the description is relatively simple, and the relevant parts can be referred to the partial description of the training method of the image processing model or the image processing method embodiment described above.
[0306] 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 training method of the above-mentioned image processing model or the steps of the image processing method.
[0307] 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 training method of the image processing model or the image processing method embodiment described above, the description is relatively simple, and the relevant parts can be referred to the partial description of the training method of the image processing model or the image processing method embodiment described above.
[0308] 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 training method of the above-mentioned image processing model or the steps of the image processing method.
[0309] 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 scheme of the training method of the image processing model or the image processing method described 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 scheme of the training method of the image processing model or the image processing method described above.
[0310] 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.
[0311] 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.
[0312] It should be noted that the above is a description of a specific embodiment of the present 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 accompanying 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. 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 the present specification.
[0313] 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.
[0314] 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 only 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 well understand and use this specification. This specification is only limited by the claims and their full scope and equivalents.
Claims
1. A training method for an image processing model, comprising: Acquire a plurality of training sample pairs, wherein the training sample pairs include a sample enhanced image and a sample target image, the sample enhanced image includes first sample annotation information for a target detection area, and the sample target image includes second sample annotation information for the target detection area; Inputting the sample enhanced image and the sample target image into an initial image processing model, obtaining first predicted labeling information, second predicted labeling information and a difference loss value output by the initial image processing model, wherein the initial image processing model includes an enhanced image processing sub-model and a target image processing sub-model, the enhanced image processing sub-model outputs the first predicted labeling information based on the sample enhanced image, the target image processing sub-model outputs the second predicted labeling information based on the sample target image, and the difference loss value is determined based on the first predicted labeling information and the second predicted labeling information; Calculate a model loss value according to the first sample labeling information, the second sample labeling information, the first prediction labeling information, and the second prediction labeling information; Adjusting the model parameters of the initial image processing model according to the model loss value and the difference loss value, and continuing to train the initial image processing model until a model training stop condition is reached, to obtain a reference image processing model; An image processing model is generated based on the target image processing sub-model in the reference image processing model.
2. The method according to claim 1, obtaining a plurality of training sample pairs, comprising: Determine a sample detection object, and obtain a sample enhanced image and a sample target image corresponding to the sample detection object, wherein the sample enhanced image and the sample target image corresponding to the sample detection object correspond to the same target detection area of the sample detection object; Generating first sample annotation information for a target detection area on the sample enhanced image; The second sample labeling information is labeled on the sample target image based on the first sample labeling information.
3. The method according to claim 2, generating first sample annotation information for the target detection area on the sample enhanced image, comprising: Inputting the sample enhanced image into an information annotation model to obtain first sample segmentation information and first sample classification information for the target detection area output by the information annotation model; Correspondingly, marking second sample annotation information on the sample target image based on the first sample annotation information includes: The second sample segmentation information is marked on the sample target image according to the first sample segmentation information, and the second sample classification information of the sample target image is determined according to the first sample classification information.
4. The method according to claim 1, inputting the sample enhanced image and the sample target image into an initial image processing model, and obtaining the first predicted labeling information, the second predicted labeling information and the difference loss value output by the initial image processing model, comprising: Inputting the sample enhanced image and the sample target image into the initial image processing model, obtaining the first predicted labeling information, the second predicted labeling information, the classification difference loss value, the segmentation difference loss value and the feature information difference loss value output by the initial image processing model; Accordingly, adjusting the model parameters of the initial image processing model according to the model loss value and the difference loss value includes: The model parameters of the initial image processing model are adjusted according to the model loss value, the classification difference loss value, the segmentation difference loss value and the feature information difference loss value.
5. The method according to claim 4, inputting the sample enhanced image and the sample target image into the initial image processing model, obtaining the first predicted labeling information, the second predicted labeling information, the classification difference loss value, the segmentation difference loss value and the feature information difference loss value output by the initial image processing model, comprising: Inputting the sample enhanced image into the enhanced image processing sub-model of the initial image processing model to obtain first prediction classification information, first prediction segmentation information, and first image coding feature information; Inputting the sample target image into the target image processing sub-model of the initial image processing model to obtain second prediction classification information, second prediction segmentation information, and second image coding feature information; Calculating a classification difference loss value according to the first predicted classification information and the second predicted classification information; Calculating a segmentation difference loss value according to the first predicted segmentation information and the second predicted segmentation information; A feature information difference loss value is calculated based on the first image encoding feature information and the second image encoding feature information.
6. The method of claim 5, wherein the enhanced image processing sub-model comprises a first encoder, a first decoder, and a first classifier; Inputting the sample enhanced image into the enhanced image processing sub-model of the initial image processing model to obtain first prediction classification information, first prediction segmentation information, and first image coding feature information, including: Inputting the sample enhanced image into the first encoder to obtain at least one enhanced image coding feature information, wherein the at least one enhanced image coding feature information includes classification enhanced coding feature information; Inputting the classification enhancement coding feature information into the first classifier to obtain first predicted classification information; Inputting each enhanced image coding feature information into the first decoder to obtain first prediction segmentation information; A first image coding feature information is determined in at least one enhanced image coding feature information.
7. The method of claim 5, wherein the target image processing sub-model comprises a second encoder, a second decoder, and a second classifier; Inputting the sample target image into the target image processing sub-model of the initial image processing model to obtain second prediction classification information, second prediction segmentation information, and second image coding feature information, including: Inputting the sample target image into the second encoder to obtain at least one target image encoding feature information, wherein the at least one target image encoding feature information includes classification target encoding feature information; Inputting the classification target encoding feature information into the second classifier to obtain second predicted classification information; Inputting the encoding feature information of each target image into the second decoder to obtain second prediction segmentation information; The second image coding feature information is determined in at least one target image coding feature information.
8. The method of claim 4, wherein the model loss value comprises an enhancement sub-model loss value and a target sub-model loss value; Adjusting the model parameters of the initial image processing model according to the model loss value, the classification difference loss value, the segmentation difference loss value, and the feature information difference loss value includes: Adjusting the model parameters of the enhanced image processing sub-model according to the enhanced sub-model loss value and the segmentation difference loss value; The model parameters of the target image processing sub-model are adjusted according to the target sub-model loss value, the classification difference loss value, the segmentation difference loss value and the feature information difference loss value.
9. The method of claim 1, wherein the first sample annotation information includes first sample segmentation information and first sample classification information, the first prediction annotation information includes first prediction segmentation information and first prediction classification information, the second sample annotation information includes second sample segmentation information and second sample classification information, and the second prediction annotation information includes second prediction segmentation information and second prediction classification information; Calculating a model loss value according to the first sample labeling information, the second sample labeling information, the first prediction labeling information, and the second prediction labeling information includes: Calculate the classification loss value of the enhancer model according to the first sample classification information and the first predicted classification information; Calculate the segmentation loss value of the enhancer model according to the first sample segmentation information and the first predicted segmentation information; Determine the enhancer model loss value according to the enhancer model classification loss value and the enhancer model segmentation loss value; Calculate the classification loss value of the target sub-model according to the second sample classification information and the second predicted classification information; Calculate the target sub-model segmentation loss value according to the second sample segmentation information and the second predicted segmentation information; The target sub-model loss value is determined according to the target sub-model classification loss value and the target sub-model segmentation loss value.
10. The method of claim 1, inputting the sample enhanced image and the sample target image into an initial image processing model, comprising: Crop the sample enhanced image and the sample target image based on a preset cropping size; The cropped sample enhanced image and the sample target image are input into the initial image processing model.
11. An image processing method, comprising: receiving an image processing task, wherein the image processing task carries a plurality of target images corresponding to a target detection area, and the image processing task is used to detect whether there is an abnormality in the target detection area; The multiple target images are input into an image processing model to obtain a detection result for the target detection area output by the image processing model, wherein the image processing model is trained by the training method described in any one of claims 1-10.
12. The method of claim 11, receiving an image processing task, comprising: Receiving an image processing request sent by a user, wherein the image processing request carries an image processing task; Accordingly, the method further includes: The detection result is sent to the user.
13. A CT image processing method, comprising: receiving a CT image processing task, wherein the CT image processing task carries a plurality of plain scan CT images corresponding to a target detection area, and the CT image processing task is used to detect whether there is an abnormality in the target detection area; The multiple plain scan CT images are input into a CT image processing model to obtain a detection result for the target detection area output by the image processing model, wherein the CT image processing model is trained by the training method described in any one of claims 1-10.
14. A training method for an image processing model, applied to a cloud-side device, comprising: Acquire a plurality of training sample pairs, wherein the training sample pairs include a sample enhanced image and a sample target image, the sample enhanced image includes first sample annotation information for a target detection area, and the sample target image includes second sample annotation information for the target detection area; Inputting the sample enhanced image and the sample target image into an initial image processing model, obtaining first predicted labeling information, second predicted labeling information and a difference loss value output by the initial image processing model, wherein the initial image processing model includes an enhanced image processing sub-model and a target image processing sub-model, the enhanced image processing sub-model outputs the first predicted labeling information based on the sample enhanced image, the target image processing sub-model outputs the second predicted labeling information based on the sample target image, and the difference loss value is determined based on the first predicted labeling information and the second predicted labeling information; Calculate a model loss value according to the first sample labeling information, the second sample labeling information, the first prediction labeling information, and the second prediction labeling information; Adjusting the model parameters of the initial image processing model according to the model loss value and the difference loss value, and continuing to train the initial image processing model until a model training stop condition is reached, to obtain a reference image processing model; Based on the target image processing sub-model in the reference image processing model, an image processing model is generated, model parameters of the image processing model are obtained, and the model parameters of the image processing model are sent to the terminal side device.
15. An image processing method, applied to a cloud-side device, comprising: An image processing task sent by a receiving device, wherein the image processing task carries a plurality of target images corresponding to a target detection area, and the image processing task is used to detect whether there is an abnormality in the target detection area; Inputting the multiple target images into an image processing model to obtain a detection result output by the image processing model for the target detection area, wherein the image processing model is trained by the training method according to any one of claims 1 to 10; Send the detection result to the terminal side device.
16. A method for detecting vascular embolism, comprising: receiving a vascular embolism detection task, wherein the vascular embolism detection task carries a plurality of plain scan CT images corresponding to a vascular region, and the vascular embolism detection task is used to detect whether there is embolism in the vascular region; The multiple plain scan CT images are input into an image processing model to obtain a detection result output by the image processing model regarding whether vascular embolism exists in the vascular region, wherein the image processing model is trained by the training method described in any one of claims 1 to 10.
17. A tumor screening method, comprising: receiving a tumor screening task, wherein the tumor screening task carries a plurality of plain scan CT images corresponding to a target detection area, and the tumor screening task is used to detect whether a tumor exists in the target detection area; The multiple plain scan CT images are input into an image processing model to obtain a detection result output by the image processing model regarding whether a tumor exists in the target detection area, wherein the image processing model is trained using the training method described in any one of claims 1 to 10.
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 described in any one of claims 1 to 17 are implemented.
19. A computer-readable storage medium storing a computer program / instruction, wherein the computer program / instruction, when executed by a processor, implements the steps of the method according to any one of claims 1 to 17.
20. A computer program product, comprising a computer program / instruction, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 17.
