Plaque segmentation network training method and device, electronic equipment and storage medium
Through the joint training of the generative adversarial network and the plaque segmentation network, the accuracy of carotid plaque segmentation is improved by using diversified generated ultrasound images, solving the problem of low segmentation accuracy caused by mode collapse in the existing technology, and achieving a better Efficient plaque segmentation effect.
Patent Information
- Application Number
- CN202410581852.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-11
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-05-11
AI Technical Summary
Existing carotid plaque segmentation models often suffer from mode collapse in ultrasound images, resulting in reduced plaque segmentation accuracy.
By inputting real ultrasound images into the generator subnetwork in the generative adversarial network, diversified generated ultrasound images are generated, and jointly trained with the generative adversarial network and plaque segmentation network, using the image discriminator, structure discriminator and matching discriminator Optimize the generator subnetwork and plaque segmentation network to improve the accuracy of plaque segmentation.
Through the diversified generation of ultrasound image training of the generative adversarial network, the segmentation accuracy of the plaque segmentation network is significantly improved, the practicality and reliability of the generated ultrasound images are enhanced, and the authenticity of the plaque segmentation results is improved.
Smart Images

Figure CN118608778A
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to a method, device, electronic device and storage medium for training a plaque segmentation network. Background Art
[0002] Ultrasound imaging technology occupies an important position in medical applications. Its non-invasiveness and real-time nature make it a common diagnostic tool. With the advancement of technology, ultrasound imaging technology has been widely used in the examination of organs such as the heart, liver, and kidneys. Especially in the cardiovascular field, ultrasound imaging can provide high-resolution images to help doctors evaluate vascular structure and abnormalities. Carotid artery ultrasound examination has been widely used in recent years as a non-invasive and low-cost examination method. However, the interpretation and analysis of carotid artery ultrasound images still face some challenges. The problem of plaque segmentation in images has become one of the research focuses, because accurate plaque segmentation is crucial for the diagnosis of diseases such as atherosclerosis.
[0003] At present, most of the carotid artery plaque segmentation solutions in related technologies use segmentation models to segment plaques in ultrasound images, but the segmentation models used in related technologies often experience mode collapse, resulting in a decrease in the plaque segmentation accuracy of the carotid artery plaque segmentation model. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a plaque segmentation network training method, device, electronic device and storage medium to improve the accuracy of carotid artery plaque segmentation.
[0005] In a first aspect, an embodiment of the present application provides a plaque segmentation network training method, the method comprising: inputting a real ultrasound image of a carotid artery plaque into a generator subnetwork in a generative adversarial network to obtain a generated ultrasound image output by the generator subnetwork; inputting the generated ultrasound image into a plaque segmentation network to obtain a generated plaque annotation output by the plaque segmentation network; based on the real ultrasound image, the real plaque annotation of the real ultrasound image, the generated ultrasound image and the generated plaque annotation, jointly training the plaque segmentation network and the generative adversarial network to obtain the trained plaque segmentation network; wherein the generative adversarial network comprises the generator subnetwork, an image discriminator for identifying whether an input image is the real ultrasound image, a structure discriminator for identifying whether an input annotation is the real plaque annotation, and a matching discriminator for judging whether the generated ultrasound image and the generated plaque annotation match.
[0006] In the implementation process of the above scheme, a generative adversarial network including a generator subnetwork, an image discriminator, a structure discriminator and a matching discriminator is jointly trained with a plaque segmentation network. The structure discriminator in the generative adversarial network can stimulate the generator subnetwork to generate more diverse generated ultrasound images. The plaque segmentation network is trained using diverse generated ultrasound images, which is beneficial to improving the segmentation accuracy of the plaque segmentation network.
[0007] In an implementation of the first aspect, the joint training of the patch segmentation network and the generative adversarial network includes: taking the real ultrasound image and the generated ultrasound image as input, and minimizing a first loss function as a training goal, to train the image discriminator; wherein the first loss function is used to characterize the image discriminator's ability to discriminate the real ultrasound image and the generated ultrasound image.
[0008] In the implementation process of the above scheme, the image discriminator is trained using the first loss function that characterizes the image discriminator's ability to discriminate between real ultrasound images and generated ultrasound images, so as to stimulate the generator subnetwork to generate generated ultrasound images that are closer to the distribution of real ultrasound images. The plaque segmentation network is trained using more realistic generated ultrasound images in combination with real ultrasound images, which is beneficial to improving the segmentation accuracy of the plaque segmentation network.
[0009] In an implementation of the first aspect, the joint training of the patch segmentation network and the generative adversarial network includes: taking the real patch annotations and the generated patch annotations as input, and minimizing a second loss function as a training goal, to train the structure discriminator; wherein the second loss function is used to characterize the ability of the structure discriminator to discriminate the real patch annotations and the generated patch annotations.
[0010] In the implementation process of the above scheme, the second loss function that characterizes the structural discriminator's ability to discriminate between real plaque annotations and generated plaque annotations is used to train the structural discriminator, so that the generated plaque annotations extracted by the plaque segmentation network are consistent with the actual distribution of real plaque annotations, thereby making the generated ultrasound images generated by the generator subnetwork more diverse. The plaque segmentation network is trained using diverse generated ultrasound images in conjunction with real ultrasound images, which is beneficial to improving the plaque segmentation accuracy of the plaque segmentation network.
[0011] In an implementation of the first aspect, the plaque segmentation network and the generative adversarial network are jointly trained, including: taking the real ultrasound image, the real plaque annotation, the generated ultrasound image and the generated plaque annotation as input, and minimizing a third loss function as a training goal, to train the matching discriminator; wherein the third loss function is used to characterize the discrimination ability of the matching discriminator for the first matching relationship and the second matching relationship; the first matching relationship is used to characterize the matching relationship between the real ultrasound image and the real plaque annotation; and the second matching relationship is used to characterize the matching relationship between the generated ultrasound image and the generated plaque annotation.
[0012] In the implementation process of the above scheme, by introducing the matching discriminator, the generative adversarial network can focus on the matching relationship between the generated ultrasound image and the generated plaque annotation, so that the generated ultrasound image generated by the generator subnetwork is more matched with the generated plaque annotation, which is conducive to improving the practicality and reliability of the generated ultrasound image. The generated ultrasound image generated by the generator subnetwork is used to train the matching discriminator in combination with the real ultrasound image, which is conducive to improving the plaque segmentation accuracy of the plaque segmentation network.
[0013] In an implementation of the first aspect, the patch segmentation network and the generative adversarial network are jointly trained, including: taking the real ultrasound image as input and minimizing a fourth loss function as a training goal, and training the generator subnetwork; wherein the fourth loss function is used to characterize the difference between the real ultrasound image and the generated ultrasound image.
[0014] In the implementation process of the above scheme, the fourth loss function that characterizes the difference between the real ultrasound image and the generated ultrasound image is used to train the generator subnetwork, so that the generated ultrasound image generated by the generator subnetwork is close to the real ultrasound image. The generated ultrasound image generated by the generator subnetwork is used in conjunction with the real ultrasound image to train the plaque segmentation network, which is beneficial to improving the plaque segmentation accuracy of the plaque segmentation network.
[0015] In an implementation of the first aspect, the plaque segmentation network and the generative adversarial network are jointly trained, including: taking the real ultrasound image, the real plaque annotation, the generated ultrasound image and the generated plaque annotation as input, and minimizing a fifth loss function as a training goal, to train the plaque segmentation network; wherein the fifth loss function is a loss function calculated comprehensively based on the first loss function of the image discriminator, the second loss function of the structure discriminator, the third loss function of the matching discriminator, the fourth loss function of the generator subnetwork, and the difference between the output annotation and the input annotation of the plaque segmentation network.
[0016] In the implementation process of the above scheme, the plaque segmentation network is trained by integrating the first loss function, the second loss function, the third loss function, the fourth loss function and the fifth loss function of the difference between the input annotation and the output annotation of the plaque segmentation network, so that the plaque segmentation network and the generative adversarial network are trained together. On the one hand, the generated ultrasound image generated by the generative adversarial network is closer to the real ultrasound image. On the other hand, the generated plaque annotation extracted by the plaque segmentation network in the generated ultrasound image is closer to the real plaque annotation, which is conducive to improving the training effect of the plaque segmentation network, thereby improving the plaque segmentation accuracy of the plaque segmentation network.
[0017] In a second aspect, an embodiment of the present application provides a plaque segmentation method, the method comprising: obtaining an ultrasonic image of a carotid plaque to be segmented; inputting the ultrasonic image of the carotid plaque to be segmented into a pre-trained plaque segmentation network, and obtaining a carotid plaque segmentation result of the ultrasonic image of the carotid plaque to be segmented; wherein the pre-trained plaque segmentation network is trained based on the method provided in the first aspect or any possible implementation of the first aspect.
[0018] In a third aspect, an embodiment of the present application provides a plaque segmentation network training device, the device comprising:
[0019] A generating ultrasound image acquisition module is used to input a real ultrasound image of a carotid artery plaque into a generator subnetwork in a generative adversarial network, and obtain a generated ultrasound image output by the generator subnetwork;
[0020] A generated plaque annotation acquisition module is used to input the generated ultrasound image into a plaque segmentation network to acquire the generated plaque annotation output by the plaque segmentation network;
[0021] A training module, configured to jointly train the plaque segmentation network and the generative adversarial network based on the real ultrasound image, the real plaque annotation of the real ultrasound image, the generated ultrasound image and the generated plaque annotation, so as to obtain the trained plaque segmentation network;
[0022] The generative adversarial network includes the generator subnetwork, an image discriminator for identifying whether the input image is the real ultrasound image, a structure discriminator for identifying whether the input annotation is the real plaque annotation, and a matching discriminator for determining whether the generated ultrasound image and the generated plaque annotation match.
[0023] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a memory, and a communication bus, wherein the processor and the memory communicate with each other through the communication bus; the memory stores computer program instructions that can be executed by the processor, and when the computer program instructions are read and run by the processor, the method provided by the first aspect or any possible implementation of the first aspect or the second aspect or any possible implementation of the second aspect is executed.
[0024] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are read and executed by a processor, the method provided by the first aspect or any possible implementation of the first aspect or the second aspect or any possible implementation of the second aspect is executed.
[0025] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the embodiments of the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0027] Figure 1 A schematic diagram of the process flow of the patch segmentation network training method provided in the embodiment of the present application;
[0028] Figure 2 A schematic diagram of the structure of a generative adversarial network provided in an embodiment of the present application;
[0029] Figure 3 A schematic diagram of the structure of the generator subnetwork provided in an embodiment of the present application;
[0030] Figure 4 A schematic diagram of the structure of the plaque segmentation network provided in the embodiment of the present application;
[0031] Figure 5 A schematic diagram of the architecture of an image discriminator, a structure discriminator, and a matching discriminator provided in an embodiment of the present application;
[0032] Figure 6A schematic diagram of the training process of the patch segmentation network provided in an embodiment of the present application;
[0033] Figure 7 A schematic diagram of the process of the plaque segmentation method provided in the embodiment of the present application;
[0034] Figure 8 A schematic diagram of the structure of a plaque segmentation network training device provided in an embodiment of the present application;
[0035] Fig. 9 A schematic diagram of the structure of a plaque segmentation device provided in an embodiment of the present application;
[0036] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0037] The following will describe the technical solutions in the embodiments of the present application in conjunction with the accompanying drawings in the embodiments of the present application. The following embodiments are only used to more clearly illustrate the technical solutions of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.
[0038] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.
[0039] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.
[0040] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0041] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0042] Mode collapse refers to the situation in which the generator can only generate limited sample diversity during the training of the generative adversarial network, and cannot cover all the patterns in the data distribution, resulting in the samples output by the generator being too similar or lacking diversity. Due to the existence of the mode collapse problem, the accuracy of plaque segmentation of the carotid artery plaque segmentation model is reduced.
[0043] Based on this, an embodiment of the present application provides a plaque segmentation network training method, which jointly trains a generative adversarial network including a generator subnetwork, an image discriminator, a structure discriminator and a matching discriminator with a plaque segmentation network. The structure discriminator in the generative adversarial network can stimulate the generator subnetwork to generate more diverse generated ultrasound images. The plaque segmentation network is trained using diverse generated ultrasound images, which is beneficial to improving the segmentation accuracy of the plaque segmentation network.
[0044] The following is a detailed description of the above patch segmentation network training method. Figure 1 , the embodiment of the present application provides a plaque segmentation network training method, the method comprising:
[0045] Step S110: inputting the real ultrasound image of the carotid artery plaque into the generator subnetwork in the generative adversarial network to obtain the generated ultrasound image output by the generator subnetwork;
[0046] Step S120: inputting the generated ultrasound image into the plaque segmentation network, and obtaining the generated plaque annotation output by the plaque segmentation network;
[0047] Step S130: Based on the real ultrasound image, the real plaque annotation of the real ultrasound image, the generated ultrasound image and the generated plaque annotation, the plaque segmentation network and the generative adversarial network are jointly trained to obtain a trained plaque segmentation network.
[0048] First, the generative adversarial network used in the embodiment of the present application is introduced in detail:
[0049] Generative Adversarial Networks (GAN) is a deep learning model that consists of two networks: a generator network and a discriminator network. The goal of the generator network is to generate data that is similar to the distribution of real data (the data generated by the generator network can also be called pseudo data), while the goal of the discriminator network is to distinguish between generated data and real data. In the training process of the generative adversarial network, the generator and the discriminator are trained adversarially, that is, the generator tries to deceive the discriminator so that it cannot distinguish between generated data and real data, while the discriminator tries to accurately distinguish between generated data and real data. Through continuous iterative training, the generator gradually learns how to generate more realistic data, while the discriminator gradually becomes more accurate.
[0050] The generative adversarial network structure used in the embodiment of the present application is as follows: Figure 2 As shown, including:
[0051] The generator subnetwork has a real ultrasound image of a carotid plaque as input and a generated ultrasound image as output. The goal of the generator subnetwork is to generate a multi-domain diverse generated ultrasound image based on the input real ultrasound image x. And it will not seriously damage the content information in the real ultrasound image x;
[0052] Image Discriminator D img , whose input is the real ultrasound image x and the generated ultrasound image (i.e. Figure 2 fakeimage in D img Used to judge the authenticity of the input image, that is, to judge whether the input image is a real ultrasound image or a generated ultrasound image;
[0053] Structure Discriminator D strct , whose input is the real patch annotation z and the generated patch annotation (i.e. Figure 2 fakestructure in D strct Used to determine the authenticity of the input annotation, that is, to determine whether the input image annotation is a real image annotation or a generated image annotation;
[0054] Matching Discriminator D pair , whose input is the real ultrasound image-real plaque annotation pair<x,z> and generate ultrasound image-generate plaque annotation pairs D pair Used for judgment Generating Ultrasound Images in Generate patch annotations Whether it matches.
[0055] In addition, it should be pointed out that the input of the above-mentioned generative adversarial network includes the real ultrasound image x and its corresponding real plaque annotation z, and the generated plaque annotation The ultrasound image is generated by the plaque segmentation network Obtained after processing.
[0056] The above generator sub-network and plaque segmentation network can be constructed using U-net with skip connections, where the structures of the generator sub-network and plaque segmentation network are as follows: Figure 3 and Figure 4 As shown in Figure 2, since the generator subnetwork aims to modify the image appearance, the generator subnetwork has a lighter structure with fewer convolutional and pooling layers than the patch segmentation network. img , structure discriminator D strct and matching discriminator D pair Can be shared as Figure 5 The same classification structure design as shown, except that the matching discriminator D pair For dual channel input.
[0057] The above step S130 is described in detail below in combination with the structures of the above-mentioned generative adversarial network and the plaque segmentation network.
[0058] The joint training in step S130 refers to a training method of training the generative adversarial network and the plaque segmentation network together, in which the generative adversarial network is used to generate a generated ultrasound image with a distribution similar to that of a real ultrasound image, and the plaque segmentation network is used to segment the generated ultrasound image, thereby obtaining a generated annotated image. Through joint training, the generative adversarial network and the plaque segmentation network can learn and optimize each other, the generative adversarial network can provide realistic generated ultrasound images for the plaque segmentation network to train, and the plaque segmentation network can provide generated plaque annotations to help the generative adversarial network better understand the structure and characteristics of the image.
[0059] Next, we will analyze the image discriminator D img , structure discriminator D strct and matching discriminator D pair The training method is introduced:
[0060] As an optional implementation of the above-mentioned plaque segmentation network training method, the above-mentioned step S130 includes: taking the real ultrasound image and the generated ultrasound image as input, and minimizing the first loss function as the training goal, to train the image discriminator; wherein the first loss function is used to characterize the image discriminator's ability to discriminate between the real ultrasound image and the generated ultrasound image.
[0061] The calculation method of the first loss function is, for example:
[0062]
[0063] Among them, E x (·) represents the expected operation on probability distribution; D img (x) represents the image discriminator D img The probability distribution of judging the real ultrasound image x as real; Indicates that the discriminator will generate an ultrasound image is judged as the true probability distribution; log(·) is the log likelihood function.
[0064] The above first loss function consists of the following two parts:
[0065] (1)E x [log D img (x)], this part is for D img The expected operation of the log likelihood of (x) can be obtained by weighted summing all possible x, thus obtaining the image discriminator D img The overall distribution result of the log likelihood of judging that the real ultrasound image x is the real probability distribution is focused on the real distribution of the real ultrasound image x.
[0066] (2) This part represents the image discriminator D img Determine and generate ultrasound images is the negative log likelihood of the true probability distribution, which focuses on generating ultrasound images The degree of similarity between the actual distribution of the real ultrasound image x in part (1) above.
[0067] It can be understood that the smaller the value of the first loss function is, the better the image discriminator D is. img The stronger the ability to distinguish true from false images, the more realistic the ultrasound images generated by the generator subnetwork are.
[0068] The above scheme uses the first loss function that characterizes the image discriminator's ability to distinguish between real ultrasound images and generated ultrasound images to train the image discriminator, so as to stimulate the generator subnetwork to generate generated ultrasound images that are closer to the distribution of real ultrasound images. The plaque segmentation network is trained using more realistic generated ultrasound images in combination with real ultrasound images, which is beneficial to improving the segmentation accuracy of the plaque segmentation network.
[0069] As an optional implementation of the above-mentioned plaque segmentation network training method, the above-mentioned step S130 includes: taking real plaque annotations and generated plaque annotations as input, and minimizing the second loss function as the training goal, to train the structure discriminator; wherein the second loss function is used to characterize the discrimination ability of the structure discriminator for real plaque annotations and generated plaque annotations.
[0070] The calculation method of the second loss function is, for example:
[0071]
[0072] Among them, E z (·) represents the expected operation on probability distribution; D strct (z) represents the structure discriminator D strct The true patch label z is judged as the true probability distribution; Denotes the structure discriminator D strct Will generate patch annotations is judged as the true probability distribution; log(·) is the log likelihood function.
[0073] The above second loss function consists of the following two parts:
[0074] (1)E z [log D strct (z)], this part is for D strct The expected operation of the log likelihood of (z) can be obtained by weighted summing all possible z, thus obtaining the structure discriminator D strct The overall distribution result of the log likelihood of judging the true plaque label z as the true probability distribution is focused on the true distribution of the true ultrasound label z;
[0075] (2) This part represents the structure discriminator D strct Determine and generate patch annotation is the negative log likelihood of the true probability distribution, and its focus is on generating patch annotations The degree of similarity between the true distribution of the true patch annotations z in part (1) above.
[0076] It can be understood that the smaller the function value of the second loss function is, the better the structure discriminator D is. strct The weaker the ability to distinguish true from false annotations, the more realistic the generated patch annotations are.
[0077] The above scheme uses a second loss function that characterizes the structural discriminator's ability to distinguish between real plaque annotations and generated plaque annotations to train the structural discriminator, so that the generated plaque annotations extracted by the plaque segmentation network are consistent with the actual distribution of real plaque annotations, thereby making the generated ultrasound images generated by the generator subnetwork more diverse. The plaque segmentation network is trained using diverse generated ultrasound images in conjunction with real ultrasound images, which is beneficial to improving the plaque segmentation accuracy of the plaque segmentation network.
[0078] As an optional implementation of the above-mentioned plaque segmentation network training method, the above-mentioned step S130 includes: taking the real ultrasound image, the real plaque annotation, the generated ultrasound image and the generated plaque annotation as input, and minimizing the third loss function as the training goal, to train the matching discriminator;
[0079] Among them, the third loss function is used to characterize the discrimination ability of the matching discriminator on the first matching relationship and the second matching relationship; the first matching relationship is used to characterize the matching relationship between the real ultrasound image and the real plaque annotation; the second matching relationship is used to characterize the matching relationship between the generated ultrasound image and the generated plaque annotation.
[0080] The calculation method of the third loss function is, for example:
[0081]
[0082] Among them, E <x,z> Represents the expected operation on probability distribution; D pair (<x,z> ) represents the matching discriminator D pair Be true<x,z> The probability distribution of what is judged to be true; Represents the matching discriminator D pair Will generate is the probability distribution of being judged as true; log(·) is the log likelihood function.
[0083] The third loss function mentioned above includes the following two parts:
[0084] (1)E <x,z> [log D pair (<x,z> )], this part is for D pair (<x,z> ) can be expected by performing the log likelihood operation on all possible<x,z> Perform weighted summation to obtain the matching discriminator D pair Judging the truth<x,z> For the overall distribution of log likelihood for the true probability distribution, the focus is on the true<x,z> The true distribution of pairs;
[0085] (2) This part represents the matching discriminator D pairJudgment Generation For the negative log likelihood of the true probability distribution, the focus is on generating For the true<x,z> The degree of similarity between the true distributions of the pair.
[0086] It can be understood that the smaller the value of the third loss function is, the better the matching discriminator D is. pair To the truth<x,z> Pair and Generate The weaker the ability to distinguish right, the weaker the generated The more realistic the match between the pairs.
[0087] The above scheme introduces a matching discriminator, so that the generative adversarial network can focus on the matching relationship between the generated ultrasound image and the generated plaque annotation, so that the generated ultrasound image generated by the generator subnetwork is more matched with the generated plaque annotation, which is beneficial to improving the practicality and reliability of the generated ultrasound image. The generated ultrasound image generated by the generator subnetwork is used in conjunction with the real ultrasound image to train the matching discriminator, which is beneficial to improving the plaque segmentation accuracy of the plaque segmentation network.
[0088] The following is an introduction to the training method of the generator sub-network:
[0089] As an optional implementation of the above-mentioned plaque segmentation network training method, the above-mentioned step S130 includes: taking the real ultrasound image as input and minimizing the fourth loss function as the training goal, training the generator subnetwork; wherein the fourth loss function is used to characterize the difference between the real ultrasound image and the generated ultrasound image.
[0090] The goal of the generator subnetwork is to generate multi-domain diverse generated ultrasound images based on the real ultrasound image x Therefore, the generator subnetwork can be trained using Manhattan distance (also known as L1 distance) as the generation loss.
[0091] The calculation method of the fourth loss function is, for example:
[0092]
[0093] Where x represents the real ultrasound image; Indicates the generation of an ultrasound image.
[0094] In the implementation process of the above scheme, the fourth loss function that characterizes the difference between the real ultrasound image and the generated ultrasound image is used to train the generator subnetwork, so that the generated ultrasound image generated by the generator subnetwork is close to the real ultrasound image. The generated ultrasound image generated by the generator subnetwork is used in conjunction with the real ultrasound image to train the plaque segmentation network, which is beneficial to improving the plaque segmentation accuracy of the plaque segmentation network.
[0095] The following is an introduction to the training method of the patch segmentation network:
[0096] like Figure 6 As shown, as an optional implementation of the above-mentioned plaque segmentation network training method, the above-mentioned step S130 includes: taking the real ultrasound image, the real plaque annotation, the generated ultrasound image and the generated plaque annotation as input, and minimizing the fifth loss function as the training goal, to train the plaque segmentation network;
[0097] Among them, the fifth loss function is a loss function calculated comprehensively based on the first loss function of the image discriminator, the second loss function of the structure discriminator, the third loss function of the matching discriminator, the fourth loss function of the generator subnetwork, and the difference between the output annotation and the input annotation of the patch segmentation network.
[0098] It is understandable that since the convolutional network is built on a limited receptive field, it may fail at the boundaries of ultrasound images, defect areas (such as ultrasound shadow areas), etc. Therefore, cross entropy loss can be used to obtain shape supervision based on the Dice coefficient to solve the boundary defect problem.
[0099] The calculation method of the fifth loss function is as follows:
[0100]
[0101] in, and l geb are the first loss function, the second loss function, the third loss function and the fourth loss function respectively; l seg is the cross entropy loss between the output annotation and the input annotation of the patch segmentation network; β, γ, δ, θ and α are the weights of the first loss function, the second loss function, the third loss function, the fourth loss function and the cross entropy loss respectively.
[0102] In addition, it can be understood that before starting to train the patch segmentation network, the above patch segmentation network can adopt the imagenet initial weights.
[0103] The above scheme uses a fifth loss function that combines the first loss function, the second loss function, the third loss function, the fourth loss function and the difference between the input annotation and the output annotation of the plaque segmentation network to train the plaque segmentation network, so that the plaque segmentation network and the generative adversarial network can be trained together. On the one hand, the generated ultrasound image generated by the generative adversarial network is closer to the real ultrasound image. On the other hand, the generated plaque annotation extracted by the plaque segmentation network in the generated ultrasound image is closer to the real plaque annotation, which is conducive to improving the training effect of the plaque segmentation network, thereby improving the plaque segmentation accuracy of the plaque segmentation network.
[0104] It is understandable that when the patch segmentation network and the generative adversarial network are jointly trained, in each round of training, the training of the generator subnetwork, the image discriminator, the structure discriminator, the matching discriminator and the patch segmentation network has a certain order. Of course, the training order can be explained from the data required for the training of the generator subnetwork, the image discriminator, the structure discriminator, the matching discriminator and the patch segmentation network:
[0105] (1) Generator sub-network;
[0106] The training of the generator sub-network requires real ultrasound images and generated ultrasound images. Therefore, the training of the generator sub-network can be performed after the generator sub-network obtains the generated ultrasound images.
[0107] (2) Image Discriminator D img ;
[0108] Image Discriminator D img The training of D also requires real ultrasound images and generated ultrasound images. Therefore, the image discriminator D img The training can be performed after the generator sub-network obtains the generated ultrasound images.
[0109] (3) Structure Discriminator D strct ;
[0110] Structure Discriminator D strxt The training of D requires both real patch annotation and generated patch annotation. Therefore, the structure discriminator D strct The training can be performed after the patch segmentation network obtains the generated patch annotations.
[0111] (4) Matching Discriminator D pair ;
[0112] Matching Discriminator D pair The training of D requires real ultrasound images, real plaque annotations, generated ultrasound images and generated plaque annotations. Therefore, the matching discriminator D pair The training can be performed after the patch segmentation network obtains the generated patch annotations.
[0113] (5) Patch segmentation network;
[0114] The training of the plaque segmentation network requires real ultrasound images, real plaque annotations, generated ultrasound images and generated plaque annotations. Therefore, the training of the plaque segmentation network can be performed after the plaque segmentation network obtains the generated plaque annotations.
[0115] It should be pointed out that the above image discriminator D img The generator subnetwork and the generator subnetwork can be performed after the generator subnetwork obtains the generated ultrasound image, and there is no need to set a sequence between the two. The above structure discriminator D strct , matching discriminator D pair The patch segmentation network and the plaque segmentation network can be performed after the plaque segmentation network obtains and generates plaque annotations, and there is no need to set a sequence among the three.
[0116] It can be understood that the generator subnetwork, image discriminator, structure discriminator, matching discriminator and patch segmentation network are trained in the above training sequence, so as to realize the joint training of the generative adversarial network and the patch segmentation network, which is conducive to optimizing the generative adversarial network and the patch segmentation network at the same time.
[0117] See also Figure 7 Based on the same inventive concept, an embodiment of the present application further provides a plaque segmentation method, the method comprising:
[0118] Step S210: Acquire an ultrasonic image of the carotid artery plaque to be segmented;
[0119] Step S220: inputting the ultrasound image of the carotid artery plaque to be segmented into a pre-trained plaque segmentation network to obtain a carotid artery plaque segmentation result of the ultrasound image of the carotid artery plaque to be segmented;
[0120] Among them, the pre-trained patch segmentation network is trained based on any of the above-mentioned patch segmentation network training methods.
[0121] See also Figure 8 Based on the same inventive concept, the present application embodiment also provides a plaque segmentation network training device 300, which includes:
[0122] A generating ultrasound image acquisition module 310 is used to input a real ultrasound image of a carotid artery plaque into a generator subnetwork in a generative adversarial network, and obtain a generated ultrasound image output by the generator subnetwork;
[0123] A generated plaque annotation acquisition module 320 is used to input the generated ultrasound image into a plaque segmentation network to acquire the generated plaque annotation output by the plaque segmentation network;
[0124] A training module 330 is used to jointly train the plaque segmentation network and the generative adversarial network based on the real ultrasound image, the real plaque annotation of the real ultrasound image, the generated ultrasound image and the generated plaque annotation to obtain the trained plaque segmentation network;
[0125] The generative adversarial network includes the generator subnetwork, an image discriminator for identifying whether the input image is the real ultrasound image, a structure discriminator for identifying whether the input annotation is the real plaque annotation, and a matching discriminator for determining whether the generated ultrasound image and the generated plaque annotation match.
[0126] As an optional implementation of the above-mentioned patch segmentation network training device, the above-mentioned training module 330 includes:
[0127] An image discriminator training unit, configured to train the image discriminator by taking the real ultrasound image and the generated ultrasound image as input and minimizing a first loss function as a training objective;
[0128] The first loss function is used to characterize the ability of the image discriminator to distinguish between the real ultrasound image and the generated ultrasound image.
[0129] As an optional implementation of the above-mentioned patch segmentation network training device, the above-mentioned training module 330 includes:
[0130] A structure discriminator training unit, configured to train the structure discriminator by taking the real patch annotation and the generated patch annotation as input and minimizing a second loss function as a training objective;
[0131] The second loss function is used to characterize the discrimination ability of the structure discriminator on the real plaque annotation and the generated plaque annotation.
[0132] As an optional implementation of the above-mentioned patch segmentation network training device, the above-mentioned training module 330 includes:
[0133] a matching discriminator training unit, configured to train the matching discriminator by taking the real ultrasound image, the real plaque annotation, the generated ultrasound image and the generated plaque annotation as input and minimizing a third loss function as a training objective;
[0134] Among them, the third loss function is used to characterize the discrimination ability of the matching discriminator for the first matching relationship and the second matching relationship; the first matching relationship is used to characterize the matching relationship between the real ultrasound image and the real plaque annotation; the second matching relationship is used to characterize the matching relationship between the generated ultrasound image and the generated plaque annotation.
[0135] As an optional implementation of the above-mentioned patch segmentation network training device, the above-mentioned training module 330 includes:
[0136] A generator sub-network training unit, configured to train the generator sub-network by taking the real ultrasound image as input and minimizing a fourth loss function as a training objective;
[0137] The fourth loss function is used to characterize the difference between the real ultrasound image and the generated ultrasound image.
[0138] As an optional implementation of the above-mentioned patch segmentation network training device, the above-mentioned training module 330 includes:
[0139] a plaque segmentation network training unit, configured to take the real ultrasound image, the real plaque annotation, the generated ultrasound image and the generated plaque annotation as input, and take minimizing a fifth loss function as a training objective to train the plaque segmentation network;
[0140] Among them, the fifth loss function is a loss function calculated comprehensively based on the first loss function of the image discriminator, the second loss function of the structure discriminator, the third loss function of the matching discriminator, the fourth loss function of the generator subnetwork, and the difference between the output annotation and the input annotation of the patch segmentation network.
[0141] See also Fig. 9 Based on the same inventive concept, the present application embodiment further provides a plaque segmentation device 400, which includes:
[0142] The carotid artery plaque ultrasonic image acquisition module 410 is used to acquire the carotid artery plaque ultrasonic image to be segmented;
[0143] The plaque segmentation module 420 is used to input the to-be-segmented carotid artery plaque ultrasound image into a pre-trained plaque segmentation network to obtain a carotid artery plaque segmentation result of the to-be-segmented carotid artery plaque ultrasound image;
[0144] Wherein, the pre-trained plaque segmentation network is obtained by training based on any of the plaque segmentation network training methods described above.
[0145] Fig.10 A schematic diagram of an electronic device provided in an embodiment of the present application. Fig.10 The electronic device 500 includes: a processor 510, a memory 520 and a communication interface 530. These components are interconnected and communicate with each other through a communication bus 540 and / or other forms of connection mechanisms (not shown).
[0146] The memory 520 includes one or more (only one is shown in the figure), which may be, but not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc. The processor 510 and other possible components may access the memory 520 and read and / or write data therein.
[0147] The processor 510 includes one or more (only one is shown in the figure), which can be an integrated circuit chip with signal processing capabilities. The above-mentioned processor 510 can be a general-purpose processor, including a central processing unit (CPU), a micro controller unit (MCU), a network processor (NP) or other conventional processors; it can also be a special-purpose processor, including a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0148] The communication interface 530 includes one or more (only one is shown in the figure), which can be used to communicate directly or indirectly with other devices to exchange data. For example, the communication interface 530 can be an Ethernet interface; it can be a mobile communication network interface, such as an interface of a 3G, 4G, or 5G network; or it can be other types of interfaces with data transceiving functions.
[0149] One or more computer program instructions may be stored in the memory 520, and the processor 510 may read and execute these computer program instructions to implement the plaque segmentation network training method or plaque segmentation method and other desired functions provided in the embodiments of the present application.
[0150] Understandably, Fig.10 The structure shown is for illustration only. The electronic device 500 may also include Fig.10 More or fewer components as shown, or with Fig.10 Different configurations are shown. Fig.10 Each component shown in the figure can be implemented by hardware, software or a combination thereof. For example, the electronic device 500 can be a single server (or other device with computing processing capabilities), a combination of multiple servers, a cluster of a large number of servers, etc., and can be both a physical device and a virtual device.
[0151] The present application also provides a computer-readable storage medium, which stores computer program instructions. When the computer program instructions are read and executed by a computer processor, the plaque segmentation network training method or plaque segmentation method provided in the present application is executed. For example, the computer-readable storage medium can be implemented as Fig.10 The memory 520 in the electronic device 500.
[0152] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0153] In addition, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0154] Furthermore, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0155] The above description is only an embodiment of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A plaque segmentation network training method, characterized in that: The method comprises: Inputting a real ultrasound image of a carotid artery plaque into a generator subnetwork in a generative adversarial network, and obtaining a generated ultrasound image output by the generator subnetwork; Inputting the generated ultrasound image into a plaque segmentation network to obtain the generated plaque annotation output by the plaque segmentation network; Based on the real ultrasound image, the real plaque annotation of the real ultrasound image, the generated ultrasound image and the generated plaque annotation, jointly training the plaque segmentation network and the generative adversarial network to obtain the trained plaque segmentation network; The generative adversarial network includes the generator subnetwork, an image discriminator for identifying whether the input image is the real ultrasound image, a structure discriminator for identifying whether the input annotation is the real plaque annotation, and a matching discriminator for determining whether the generated ultrasound image and the generated plaque annotation match.
2. The patch segmentation network training method according to claim 1, characterized in that: The jointly training the patch segmentation network and the generative adversarial network comprises: Taking the real ultrasound image and the generated ultrasound image as input and minimizing a first loss function as a training objective, training the image discriminator; The first loss function is used to characterize the ability of the image discriminator to distinguish between the real ultrasound image and the generated ultrasound image.
3. The plaque segmentation network training method according to claim 1, characterized in that: The jointly training the patch segmentation network and the generative adversarial network comprises: Taking the real patch annotation and the generated patch annotation as input and minimizing the second loss function as a training objective, the structure discriminator is trained; The second loss function is used to characterize the discrimination ability of the structure discriminator on the real plaque annotation and the generated plaque annotation.
4. The plaque segmentation network training method according to claim 1, characterized in that: The jointly training the patch segmentation network and the generative adversarial network comprises: Taking the real ultrasound image, the real plaque annotation, the generated ultrasound image and the generated plaque annotation as input, and minimizing a third loss function as a training objective, the matching discriminator is trained; Among them, the third loss function is used to characterize the discrimination ability of the matching discriminator for the first matching relationship and the second matching relationship; the first matching relationship is used to characterize the matching relationship between the real ultrasound image and the real plaque annotation; the second matching relationship is used to characterize the matching relationship between the generated ultrasound image and the generated plaque annotation.
5. The patch segmentation network training method according to claim 1, characterized in that: The jointly training the patch segmentation network and the generative adversarial network comprises: Taking the real ultrasound image as input and minimizing a fourth loss function as a training objective, training the generator subnetwork; The fourth loss function is used to characterize the difference between the real ultrasound image and the generated ultrasound image.
6. The patch segmentation network training method according to claim 1, characterized in that: The jointly training the patch segmentation network and the generative adversarial network comprises: Taking the real ultrasound image, the real plaque annotation, the generated ultrasound image and the generated plaque annotation as input, and minimizing a fifth loss function as a training objective, the plaque segmentation network is trained; Among them, the fifth loss function is a loss function calculated comprehensively based on the first loss function of the image discriminator, the second loss function of the structure discriminator, the third loss function of the matching discriminator, the fourth loss function of the generator subnetwork, and the difference between the output annotation and the input annotation of the patch segmentation network.
7. A plaque segmentation method, characterized in that: The method comprises: Acquire an ultrasound image of the carotid artery plaque to be segmented; Inputting the to-be-segmented carotid artery plaque ultrasound image into a pre-trained plaque segmentation network to obtain a carotid artery plaque segmentation result of the to-be-segmented carotid artery plaque ultrasound image; The pre-trained plaque segmentation network is obtained by training based on the plaque segmentation network training method according to any one of claims 1 to 6.
8. A plaque segmentation network training device, characterized in that: The device comprises: A generating ultrasound image acquisition module is used to input a real ultrasound image of a carotid artery plaque into a generator subnetwork in a generative adversarial network, and obtain a generated ultrasound image output by the generator subnetwork; A generated plaque annotation acquisition module is used to input the generated ultrasound image into a plaque segmentation network to acquire the generated plaque annotation output by the plaque segmentation network; A training module, configured to jointly train the plaque segmentation network and the generative adversarial network based on the real ultrasound image, the real plaque annotation of the real ultrasound image, the generated ultrasound image and the generated plaque annotation, so as to obtain the trained plaque segmentation network; The generative adversarial network includes the generator subnetwork, an image discriminator for identifying whether the input image is the real ultrasound image, a structure discriminator for identifying whether the input annotation is the real plaque annotation, and a matching discriminator for determining whether the generated ultrasound image and the generated plaque annotation match.
9. An electronic device, characterized in that: include: A processor, a memory and a communication bus, wherein the processor and the memory communicate with each other via the communication bus; The memory stores program instructions executable by the processor, and the processor can execute the method according to any one of claims 1 to 6 or claim 7 by calling the program instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a computer, the computer is caused to perform the method according to any one of claims 1 to 6 or claim 7.
Citation Information
Patent Citations
Adaptive adversarial learning-based urban traffic scene semantic segmentation method and system
CN110111335A
Medical image segmentation device based on generative adversarial network and multi-scale feature fusion
CN114693933A
Breast medical image segmentation method based on improved U-net network
CN116580202A
Medical image segmentation and severity grading using neural network architectures with semi-supervised learning techniques
US10430946B1
