Image processing method, device, computer equipment, storage medium and program product
By using the objective function training of intra-domain and inter-domain loss functions in the modal conversion network, the problem of poor accuracy of machine learning models in cross-modal image conversion is solved and higher-quality image conversion effects are achieved.
Patent Information
- Application Number
- CN202411031080.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-30
AI Technical Summary
Existing machine learning models have poor accuracy in cross-modal image conversion scenarios, mainly because they focus on the feature differences of images in different modalities and ignore other information in the same modality.
By introducing the objective function training of the intra-domain loss function and the inter-domain loss function in the modal conversion network, the intra-domain loss function is used to indicate the reconstruction difference of the image under the condition of unchanged modality, and the inter-domain loss function is used to indicate different modalities. The modality conversion network is updated to process the feature differences of the image more accurately.
It improves the accuracy of the modal conversion network in cross-modal image conversion, ensures the quality of the converted image, and can adjust image features in more detail, thereby improving the accuracy of modal conversion.
Smart Images

Figure CN118552397B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of image processing technology, and in particular to an image processing method, apparatus, computer equipment, storage medium and program product. Background Art
[0002] Medical images usually have multiple modalities (such as T1-weighted images and T2-weighted images). Through machine learning models, images of one / multiple modalities can be converted into images of another / multiple modalities.
[0003] In related technologies, machine learning models used to achieve cross-modal image conversion can be trained with image samples of multiple modalities. Specifically, for example, developers pre-design the network architecture of the machine learning model, as well as the corresponding loss function or objective function, which can enable the machine learning model to learn the feature differences of images in different modalities; during the training process of the above machine learning model, image samples of one modality can be input into the machine learning model, and the machine learning model can be updated through the processing results or intermediate data of the image samples by the machine learning model, combined with the pre-designed loss function or objective function.
[0004] However, the above machine learning models mainly focus on the feature differences of images in different modalities, but pay insufficient attention to other information of the images, resulting in poor accuracy of the above machine learning models in cross-modal image conversion scenarios. Summary of the invention
[0005] The embodiments of the present application provide an image processing method, apparatus, computer device, storage medium and program product, which can improve the accuracy of machine learning models in cross-modal image conversion scenarios. The technical solution is as follows.
[0006] In one aspect, an image processing method is provided, the method comprising:
[0007] Acquire a first image, wherein the first image is an image of an imaging object in one of two different modalities;
[0008] Inputting the first image into a modality conversion network; the modality conversion network is trained by the image samples of the two different modalities and an objective function; the objective function includes an intra-domain loss function and an inter-domain loss function, the intra-domain loss function is used to indicate the difference between the image before and after reconstruction when the modality remains unchanged, and the inter-domain loss function is equivalent to indicating the difference between the image features of different modalities;
[0009] The modality conversion network performs modality conversion processing on the first image to obtain a second image; the second image is an image of the imaging object in another modality of the two different modalities.
[0010] On the other hand, a method for training a modality conversion network is provided, the method comprising:
[0011] Performing feature extraction processing on a first modality image sample corresponding to a first modality through a modality conversion network to obtain a first feature encoding sample of the first modality;
[0012] Performing feature extraction processing on the second modality image samples corresponding to the second modality through the modality conversion network to obtain second feature encoding samples of the second modality;
[0013] Obtaining an intra-domain loss function, the intra-domain loss function being used to indicate a first image difference and a second image difference; the first image difference comprising a difference between the first feature coded sample after being reconstructed into an image of the first modality and an image sample of the first modality; the second image difference comprising a difference between the second feature coded sample after being reconstructed into an image of the second modality and an image sample of the second modality;
[0014] Obtaining an inter-domain loss function, where the inter-domain loss function is used to indicate a difference between the first feature encoding sample and the second feature encoding sample;
[0015] Updating the modality conversion network according to the intra-domain loss function and the inter-domain loss function;
[0016] The updated modality conversion network is used to perform modality conversion processing on the first image to obtain a second image; the first image is an image of the imaging object in one of the first modality and the second modality, and the second image is an image of the imaging object in the other of the first modality and the second modality.
[0017] In another aspect, an image processing device is provided, the device comprising:
[0018] An image acquisition module, configured to acquire a first image, wherein the first image is an image of an imaging object in one of two different modalities;
[0019] An image input module, used for inputting the first image into a modality conversion network; the modality conversion network is trained by the image samples of the two different modalities and an objective function; the objective function includes an intra-domain loss function and an inter-domain loss function, the intra-domain loss function is used to indicate the difference between the image before and after reconstruction when the modality remains unchanged, and the inter-domain loss function is equivalent to indicating the difference between the image features of different modalities;
[0020] A modality conversion module is used to perform modality conversion processing on the first image through the modality conversion network to obtain a second image; the second image is an image of the imaging object in the other modality of the two different modalities.
[0021] In some embodiments, the two different modalities include a first modality and a second modality, the first image is an image of the first modality; the modality conversion network includes a feature extraction subnetwork, a filtering subnetwork, and a mapping matrix; the filtering subnetwork includes a filtering matrix corresponding to the second modality;
[0022] The modality conversion module is used to perform feature extraction processing on the first image through the feature extraction subnetwork to obtain the feature coding of the first image; perform modality mapping processing on the feature coding of the first image through the mapping matrix to obtain the feature coding under the second modality; perform image reconstruction processing on the feature coding under the second modality through the filter matrix corresponding to the second modality to obtain the second image.
[0023] In some embodiments, the two different modalities include a first modality and a second modality, and the first image is an image of the second modality; the modality conversion network includes a feature extraction subnetwork, a filtering subnetwork, and a mapping matrix; the filtering subnetwork includes a filtering matrix corresponding to the first modality;
[0024] The modality conversion module is used to perform feature extraction processing on the first image through the feature extraction subnetwork to obtain the feature coding of the first image; perform modality mapping processing on the feature coding of the first image through the mapping matrix to obtain the feature coding under the first modality; and perform image reconstruction processing on the feature coding under the first modality through the filter matrix corresponding to the first modality to obtain the second image.
[0025] In some embodiments, the two different modalities include a first modality and a second modality; the image samples of the two different modalities include first modality image samples corresponding to the first modality, and second modality image samples corresponding to the second modality; the apparatus further includes:
[0026] A first feature coding sample acquisition module, used for performing feature extraction processing on the first modality image sample through the modality conversion network before acquiring the first image, so as to obtain a first feature coding sample of the first modality;
[0027] A second feature coding sample acquisition module, used for performing feature extraction processing on the second modality image sample through the modality conversion network to obtain a second feature coding sample of the second modality;
[0028] an intra-domain loss function acquisition module, used to acquire the intra-domain loss function, wherein the intra-domain loss function is used to indicate a first image difference and a second image difference; the first image difference comprises a difference between the first feature coded sample after being reconstructed into an image of the first modality and an image sample of the first modality; the second image difference comprises a difference between the second feature coded sample after being reconstructed into an image of the second modality and an image sample of the second modality;
[0029] An inter-domain loss function acquisition module, used to acquire the inter-domain loss function, where the inter-domain loss function is used to indicate the difference between the first feature encoding sample and the second feature encoding sample;
[0030] A modality conversion network updating module is used to update the modality conversion network according to the intra-domain loss function and the inter-domain loss function.
[0031] In some embodiments, the objective function further includes: a mapping loss function; and the apparatus further includes:
[0032] A mapping loss function acquisition module, used to acquire the mapping loss function; the mapping loss function is used to indicate the difference between the second feature coding sample and the first feature coding sample after the second feature coding sample is mapped to the feature space of the first modality; or the mapping loss function is used to indicate the difference between the first feature coding sample and the second feature coding sample after the first feature coding sample is mapped to the feature space of the second modality;
[0033] A modality conversion network updating module is used to update the modality conversion network according to the intra-domain loss function, the inter-domain loss function and the mapping loss function.
[0034] In some embodiments, the modality conversion network includes a feature extraction subnetwork, a filtering subnetwork, and a mapping matrix; the filtering subnetwork includes a filtering matrix corresponding to the first modality and a filtering matrix corresponding to the second modality;
[0035] The first feature coding sample is a feature coding obtained by performing feature extraction processing on the first modality image sample by the feature extraction sub-network, and the second feature coding sample is a feature coding obtained by performing feature extraction processing on the second modality image sample by the feature extraction sub-network;
[0036] The first image difference includes the difference between the first feature coded sample after image reconstruction processing by the filter matrix corresponding to the first modality and the image sample of the first modality; the second image difference includes the difference between the second feature coded sample after image reconstruction processing by the filter matrix corresponding to the second modality and the image sample of the second modality;
[0037] The mapping loss function is used to indicate the difference between the second feature coding sample and the first feature coding sample after the second feature coding sample is processed by the modal mapping of the mapping matrix.
[0038] In some embodiments, the modal conversion network update module is used to update the filtering subnetwork, the feature extraction subnetwork and the mapping matrix in sequence according to the intra-domain loss function, the inter-domain loss function and the mapping loss function; wherein the filtering subnetwork, the feature extraction subnetwork and the mapping matrix are respectively updated by at least one of the intra-domain loss function, the inter-domain loss function and the mapping loss function.
[0039] In some embodiments, the modality conversion network update module is used to solve a first objective function using the first modality image samples, the second modality image samples, the first feature coding samples and the second feature coding samples as known information in the process of updating the filtering sub-network to update the filtering sub-network; wherein the solution to the first objective function is the value of the filter matrix corresponding to the first modality and the value of the filter matrix corresponding to the second modality when the value of the loss function in the domain is minimized.
[0040] In some embodiments, the modality conversion network update module is used to solve the second objective function in the process of updating the feature extraction subnetwork, using the first modality image samples, the second modality image samples, the first feature encoding samples and the second feature encoding samples as known information to update the feature extraction subnetwork; wherein the solution to the second objective function is the parameters of the feature extraction subnetwork when the values of the intra-domain loss function and the mapping loss function are minimized and the values of the inter-domain loss function are maximized.
[0041] In some embodiments, the modal conversion network update module is used to solve a third objective function using the first feature encoding sample and the second feature encoding sample as known information in the process of updating the mapping matrix to update the mapping matrix; wherein the solution of the third objective function is the value of the mapping matrix when the value of the mapping loss function is minimized.
[0042] On the other hand, a training device for a modality conversion network is provided, the device comprising:
[0043] A first feature coding sample acquisition module, configured to perform feature extraction processing on a first modality image sample corresponding to a first modality through a modality conversion network to obtain a first feature coding sample of the first modality;
[0044] A second feature coding sample acquisition module, used to perform feature extraction processing on the second modality image samples corresponding to the second modality through the modality conversion network to obtain second feature coding samples of the second modality;
[0045] An intra-domain loss function acquisition module is used to acquire an intra-domain loss function, wherein the intra-domain loss function is used to indicate a first image difference and a second image difference; the first image difference includes a difference between the first feature encoding sample after being reconstructed into an image of the first modality and an image sample of the first modality; the second image difference includes a difference between the second feature encoding sample after being reconstructed into an image of the second modality and an image sample of the second modality;
[0046] An inter-domain loss function acquisition module, used to acquire an inter-domain loss function, where the inter-domain loss function is used to indicate a difference between the first feature encoding sample and the second feature encoding sample;
[0047] A modality conversion network updating module, used for updating the modality conversion network according to the intra-domain loss function and the inter-domain loss function;
[0048] The updated modality conversion network is used to perform modality conversion processing on the first image to obtain a second image; the first image is an image of the imaging object in one of the first modality and the second modality, and the second image is an image of the imaging object in the other of the first modality and the second modality.
[0049] On the other hand, a computer device is provided, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the image processing method as described above.
[0050] On the other hand, a computer-readable storage medium is provided, wherein at least one instruction, at least one program, a code set or an instruction set is stored in the storage medium, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the image processing method as described above.
[0051] In another aspect, a computer program product is provided, the computer program product comprising a computer program, the computer program being stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the image processing method provided in the above-mentioned various optional implementations.
[0052] The technical solution provided by this application may have the following beneficial effects:
[0053] In an embodiment of the present application, a modality conversion network for converting an image of one modality into an image of another modality can be trained by an objective function that includes both an intra-domain loss function and an inter-domain loss function. Since the above-mentioned intra-domain loss function indicates the difference between the image before and after reconstruction while the modality remains unchanged, and the above-mentioned inter-domain loss function indicates the difference between image features of different modalities, the modality conversion network trained by the above-mentioned objective function can pay attention to the difference in image features under the same modality in addition to the difference in image features under different modalities during the process of performing modality conversion on the image. Since the difference in the features of an image before and after reconstruction under the current modality is more detailed than the difference in the features of the image between different modalities, the modality conversion network updated by the above-mentioned objective function can more accurately adjust the converted image compared to the network that only pays attention to the image features under different modalities, thereby improving the accuracy of modality conversion and effectively ensuring the image quality after modality conversion.
[0054] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0056] Figure 1 is a system configuration diagram of an image processing method involved in one embodiment of the present application;
[0057] Figure 2 is a flowchart of an image processing method provided by an embodiment of the present application;
[0058] Figure 3 is a flowchart of another image processing method provided by an embodiment of the present application;
[0059] Figure 4 It is a schematic diagram of the structure of a modal conversion network provided by an embodiment of the present application;
[0060] Figure 5 is a flowchart of another image processing method provided by an embodiment of the present application;
[0061] Figure 6 is a flowchart of another image processing method provided by an embodiment of the present application;
[0062] Figure 7 It is a flow chart of an image processing method provided in an embodiment of the present application;
[0063] Figure 8 This is a schematic diagram of the principle of a solution provided by an embodiment of the present application;
[0064] Fig. 9 It is a schematic diagram of the evaluation results generated by the solution provided by one embodiment of the present application in T1->FLAIR;
[0065] Fig.10 It is a schematic diagram of the evaluation result generated by the solution provided by one embodiment of the present application in PD->T2;
[0066] Fig.11 is a flow chart of an MRI image conversion method provided by an embodiment of the present application;
[0067] Fig.12 is a flowchart of an image style conversion method provided by an embodiment of the present application;
[0068] Fig.13 is a block diagram of an image processing device provided by an exemplary embodiment of the present application;
[0069] Fig.14 is a block diagram of a training device for a modal conversion network provided by an exemplary embodiment of the present application;
[0070] Fig.15 It is a structural diagram of a computer device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0071] Here, exemplary embodiments are described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application.
[0072] Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as recited in the appended claims.
[0073] This application proposes an image processing solution, which can convert an image of one modality into an image of another modality through a trained modality conversion network, thereby improving the accuracy of modality conversion of images. For ease of understanding, some concepts involved in this application are explained below.
[0074] 1) Convolutional Sparse Coding (CSC) is an unsupervised learning method of linear convolution, which mainly solves the problem that the image features in the sparse coding hypothesis set are independent of each other. Its basic idea is to use convolution operation to extract local features in the input data and combine it with the sparse coding mechanism to represent the features.
[0075] 2) Consensus Convolutional Sparse Coding (CCSC) is a combination of sparse coding and convolutional neural network technology. It is used to process feature extraction and representation learning of multiple data sources or domains. Its main idea is to integrate information from different data domains through consensus modeling to enhance the generalization ability and robustness of features.
[0076] 3) Magnetic Resonance Imaging (MRI) is a non-invasive medical imaging technology that uses the principle of nuclear magnetic resonance to obtain high-resolution images of the inside of the human or animal body.
[0077] 4) Regularization is a technique in machine learning that aims to prevent the model from overfitting the training data. Overfitting refers to a situation where the model performs well on the training data but performs poorly on unseen test data. Regularization limits the complexity of the model by adding a penalty term to the model's loss function or limiting the size of the model's parameters, thereby improving its ability to generalize to new data.
[0078] It should be noted that before collecting relevant user data (such as user-related images) and during the process of collecting relevant user data, this application can display a prompt interface, pop-up window or output voice prompt information. The prompt interface, pop-up window or voice prompt information is used to prompt the user that its relevant data is currently being collected, so that this application only starts to execute the relevant steps of obtaining user-related data after obtaining the user's confirmation operation on the prompt interface or pop-up window, otherwise (that is, when the user's confirmation operation on the prompt interface or pop-up window is not obtained), the relevant steps of obtaining user-related data are terminated, that is, the user's relevant data is not obtained. In other words, all user data collected by this application are collected with the user's consent and authorization, and the collection, use and processing of relevant user data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0079] Figure 1 1 is a system configuration diagram of an image processing method according to an embodiment of the present application. Figure 1 As shown, the system includes a requesting device 120 and a serving device 130 for image processing.
[0080] The requester device 120 may be a personal computer device such as a desktop computer, a laptop computer, a personal workstation, or the like.
[0081] The service device 130 may be a server, or a plurality of servers, or a virtualization platform, or a cloud computing service center.
[0082] The requesting device 120 and the serving device 130 may be connected via a communication network. Optionally, the communication network is a wired network or a wireless network.
[0083] Optionally, the wireless network or wired network described above uses standard communication technology and / or protocols. The network is typically the Internet, but may also be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a dedicated network or any combination of a virtual private network. In some embodiments, technologies and / or formats including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), etc. are used to represent data exchanged over the network. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec), etc. may be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies may also be used to replace or supplement the above data communication technologies.
[0084] exist Figure 1 In the system shown, the requesting device 120 can provide a first image of a first modality to the serving device 130. The serving device 130 generates an image of the image in another modality based on the image in one modality, and sends the image in another modality to the requesting device 120.
[0085] A trained modality conversion network 2 130b is deployed in the service device 130. After the requesting device 120 sends an image in one modality (for example, a first image in a first modality) to the requesting device 130, the service device 130 receives the first image and sends the first image to the modality conversion network 2 130b. An image of the imaging object of the first image in another modality (for example, a second image in a second modality) obtained through processing by the modality conversion network 2 130b is sent to the requesting device 120.
[0086] It should be noted that, in the embodiment of the present application, the above-mentioned scheme takes the interaction between devices on both sides as an example. Optionally, the above-mentioned scheme can also be implemented independently by a single-side device. For example, the above-mentioned modal conversion network 130a can also be deployed in the requesting device 120, and the requesting device 120 inputs the image of the imaging object in one modality into the modal conversion network 130a to obtain the image of the imaging object in another modality.
[0087] The above-mentioned modality conversion network 2 130b is obtained by training the modality conversion network 1 130a based on the objective function including the inter-domain loss function and the intra-domain loss function. In the training device, two image samples in different modalities are pre-set (such as the first modality image sample in the first modality and the second modality image sample in the second modality). During the training process, the training device processes the first modality image sample and the second modality image sample through the modality conversion network 1 130a, and determines the difference between the image sample before and after reconstruction (intra-domain loss) and the difference between the image features of image samples of different modalities (i.e., inter-domain loss) under the condition of unchanged modality according to the processed data (such as the features of the first modality image sample in the first modality and the features of the second modality image sample in the second modality) according to the processed data, and then combines the above-mentioned inter-domain loss and intra-domain loss to update the modality conversion network 1 130a, wherein the above-mentioned intra-domain loss can guide the modality conversion network 1 130a to learn the difference between different image features in the same modality, and the inter-domain loss can guide the modality conversion network 1 130a to learn the difference between image features in different modalities.
[0088] Figure 2 is a flowchart of an image processing method provided by an embodiment of the present application. The image processing method can be executed by a computer device, for example, the computer device can be the above-mentioned Figure 1 The service device 130 shown, or the computer device mentioned above, may also be other computer devices, such as a server, or a personal computer, etc. The image processing method mentioned above may include the following steps.
[0089] Step 210: Acquire a first image, where the first image is an image of the imaging object in one of two different modalities.
[0090] In an embodiment of the present application, the above-mentioned different modalities may refer to different image modalities, where the image modality refers to a way of presenting the essence or characteristics of things in the form of images through different data types, feature extraction methods or expression techniques; the image modality includes but is not limited to a variety of imaging methods in medical imaging, a variety of different expression styles in visual arts, and the like.
[0091] In other words, the above-mentioned image modality can be an image type that is distinguished according to at least one factor of imaging method, technical parameters, and visual style. For example, in the medical field, image types corresponding to different imaging methods can be called different image modalities; for another example, image types corresponding to different visual styles can also be called different image modalities.
[0092] For example, in the medical field, the modalities of medical images may include but are not limited to the following:
[0093] 1) T1-weighted images: In this modality, MRI will show adipose tissue with higher signal intensity and moderate contrast, which is suitable for displaying anatomical structures.
[0094] 2) T2-Weighted Images: In T2-weighted images, fluids (such as water) show high signal intensity, while fat shows low signal intensity. This modality is suitable for detecting lesions and tissue abnormalities.
[0095] 3) Diffusion-weighted imaging (DWI): DWI is used to evaluate the free diffusion of water molecules in tissues and is very useful for diagnosing and evaluating ischemic lesions.
[0096] 4) Diffusion-weighted imaging (Functional MRI, FMRI): FMRI studies brain activity by monitoring changes in blood oxygen levels and is crucial to neuroscience and cognitive research.
[0097] 5) Magnetic Resonance Spectroscopy (MRS): MRS is used to analyze the concentration of specific chemicals in tissues and is helpful in evaluating tumors, brain diseases, etc.
[0098] Exemplarily, the image modalities divided into different visual styles may include, but are not limited to, at least one of ink style, cartoon style, and realistic style.
[0099] The imaging object is an entity or object on which an imaging operation is performed (the imaging operation may be any one of shooting, synthesis, conversion, and reconstruction).
[0100] In an embodiment of the present application, the above-mentioned first image can be input into the computer device by other devices other than the computer device through a wired / wireless network, etc., or it can be collected and acquired by the computer device itself, or it can be generated / synthesized by the computer device based on the data already in its own database.
[0101] Step 220: Input the first image into a modality conversion network; the modality conversion network is trained by image samples of two different modalities and an objective function; the objective function includes an intra-domain loss function and an inter-domain loss function, the intra-domain loss function is used to indicate the difference between the image before and after reconstruction when the modality remains unchanged, and the inter-domain loss function is used to indicate the difference between image features of different modalities.
[0102] The modality conversion network is a machine learning model that has the ability to convert an image of one modality into an image of another modality, and the imaging object in the converted image is the same as the imaging object in the image before the conversion. For example, the modality conversion network can be used to convert a T1-weighted image of a certain tissue site into a T2-weighted image of the same tissue site.
[0103] The image modality conversion capability of the modality conversion network may be unidirectional, which can convert the image of the first modality into the image of the second modality. Alternatively, the image modality conversion capability of the modality conversion network may also be bidirectional, which can be used to convert the image of the second modality into the image of the first modality in addition to converting the image of the first modality into the image of the second modality.
[0104] The above-mentioned image samples of the two different modalities include first modality image samples in one modality (which may be referred to as the first modality) of the two different modalities, and second modality image samples in the other modality (which may be referred to as the second modality) of the two different modalities.
[0105] The first modality image samples may include one or more, and correspondingly, the second modality image samples may also include one or more. For example, the first modality image samples are multiple different image samples corresponding to the same modality (first modality); the second modality image samples are multiple different image samples corresponding to another modality (second modality).
[0106] The above objective function may include multiple functions.
[0107] The reconstruction processing of the above-mentioned image under the condition of modality invariance may refer to the process of regenerating an image under the same modality according to the image features of the image after performing specified processing on an image of one modality (such as extracting and regularizing the features of the image) during the training process of the above-mentioned modality conversion model; for an image of a certain modality A, the image features under modality A are extracted, and then the extracted features are converted into an image of modality A (i.e., the reconstructed image). Due to the inevitable loss of features (called loss) in the feature extraction and conversion process, there will be differences between the reconstructed image and the original image, and the above-mentioned in-domain loss function is a function that can calculate / reflect the difference between the above-mentioned reconstructed image and the original image; wherein the above-mentioned difference may be the difference between the images corresponding to a single metric (such as the difference in pixels), or the difference between the images corresponding to multiple metrics (such as the comprehensive difference in perceptual loss and feature matching loss).
[0108] In the embodiment of the present application, the above-mentioned intra-domain loss function can be used to guide the modality conversion model to learn the differences between different image features in the same modality; for example, updating the modality conversion model with the goal of minimizing the intra-domain loss function (i.e., the difference between the images before and after reconstruction should be as small as possible) can improve the ability of the modality conversion model to distinguish different image features in the feature space of a single modality. The feature space of the above-mentioned modality refers to the set of all image features under the modality.
[0109] In an embodiment of the present application, images of different modalities have different visual features and forms of expression, and the inter-domain loss function is used to indicate the differences between the image features corresponding to images of different modalities (such as the differences between the image features under the first modality and the image features under the second modality mentioned above).
[0110] In an embodiment of the present application, different modalities correspond to different feature spaces, and the image features of the feature spaces of different modalities are also different; through the above-mentioned inter-domain loss function, the modal conversion model can be guided to learn the differences between the image features in the feature spaces of different modalities; for example, updating the modal conversion model with the goal of maximizing the inter-domain loss function (that is, the differences between the image features of different modalities should be as large as possible) can improve the ability of the modal conversion model to distinguish image features from feature spaces of different modalities.
[0111] Step 230: Perform modality conversion processing on the first image through a modality conversion network to obtain a second image; the second image is an image of the imaging object in another modality of the two different modalities.
[0112] In the embodiment of the present application, the imaging object corresponding to the second image is consistent with the imaging object corresponding to the first image.
[0113] Since the above objective function includes both the intra-domain loss function and the inter-domain loss function, the modal conversion model trained by the objective function can accurately distinguish image features from feature spaces of different modalities, as well as different image features from the feature space of the same modality. Accordingly, by converting a first image of one of two different modalities to another modality through the modal conversion model, a higher quality second image can be obtained.
[0114] In an embodiment of the present application, a modality conversion network for converting an image of one modality into an image of another modality can be trained by an objective function that includes both an intra-domain loss function and an inter-domain loss function. Since the above-mentioned intra-domain loss function indicates the difference between the image before and after reconstruction while the modality remains unchanged, and the above-mentioned inter-domain loss function indicates the difference between image features of different modalities, the modality conversion network trained by the above-mentioned objective function can pay attention to the difference in image features under the same modality in addition to the difference in image features under different modalities during the process of performing modality conversion on the image. Since the difference in the features of an image before and after reconstruction under the current modality is more detailed than the difference in the features of the image between different modalities, the modality conversion network updated by the above-mentioned objective function can more accurately adjust the converted image compared to the network that only pays attention to the image features under different modalities, thereby improving the accuracy of modality conversion and effectively ensuring the image quality after modality conversion.
[0115] In some embodiments, the two different modalities include a first modality and a second modality, and the first image is an image of the first modality; the modality conversion network includes a feature extraction subnetwork, a filtering subnetwork, and a mapping matrix; the filtering subnetwork includes a filtering matrix corresponding to the second modality.
[0116] For example, please refer to Figure 3 , Figure 3 is a flowchart of another image processing method provided by an embodiment of the present application. Figure 2 Step 230 in the embodiment may be implemented as step 230a, step 230b and step 230c:
[0117] Step 230a: Perform feature extraction processing on the first image through the feature extraction subnetwork to obtain feature encoding of the first image.
[0118] Among them, the above-mentioned feature extraction subnetwork is a deep learning network or feature dictionary in the modal conversion network, and the feature extraction subnetwork has the ability to extract image features from the image.
[0119] Taking the feature extraction subnetwork including a feature dictionary as an example, the feature dictionary may contain the correspondence between each image content and feature coding under a specified modality; optionally, each modality has a feature dictionary, and the feature extraction subnetwork may contain feature dictionaries corresponding to one or more modalities; when performing feature extraction processing on the first image, the feature extraction subnetwork may output feature coding corresponding to each image content in the first image (i.e., the feature coding of the first image) according to the feature dictionary corresponding to the first modality. In an embodiment of the present application, the feature dictionary may be learned and updated during the training of the modality conversion network.
[0120] Taking the feature extraction subnetwork including a deep learning network as an example, the feature extraction subnetwork contains multiple convolution kernels, and the feature extraction subnetwork can perform a convolution operation on the first image based on the convolution kernel to obtain the feature encoding of the first image; the convolution operation here is to apply the convolution kernel to each position of the image to be extracted (i.e., the first image input to the feature extraction subnetwork), and perform weighted summation of the convolution kernel and the local area data of the image to be extracted to generate a feature map corresponding to the image to be extracted. In an embodiment of the present application, the parameters of the above convolution kernel can be learned and updated during the training process of the modal conversion network.
[0121] In an embodiment of the present application, after the modal conversion network receives the first image, it can also preprocess the first image (for example, normalize and resize the first image), and then input the preprocessed first image into the feature extraction subnetwork. The feature extraction subnetwork performs a convolution operation or a feature extraction operation based on a feature dictionary on the preprocessed first image, and finally obtains the feature encoding of the first image.
[0122] The feature code mentioned above may be a feature vector used to represent the first image, and the feature code can effectively express key features of the first image.
[0123] Step 230b: Perform modality mapping processing on the feature code of the first image through a mapping matrix to obtain the feature code under the second modality.
[0124] The above mapping matrix can be used to map the feature encoding of the feature space of one modality to the feature encoding of the feature space of another modality. The above mapping matrix can be one of a linear mapping matrix and a nonlinear mapping matrix. The linear mapping matrix can directly map the feature vector of the first modality to the feature vector of the second modality. The linear mapping matrix is suitable for some simple modality conversion tasks, such as image-to-image style conversion; the nonlinear mapping matrix can be learned through machine learning, a complex mapping relationship from one modality to another modality, and the nonlinear mapping matrix can handle more complex data structures and feature representations.
[0125] The above-mentioned modality mapping processing refers to mapping the feature coding of one modality into the feature coding in the feature space of another modality; specifically, the above-mentioned mapping matrix can convert the feature coding in the feature space of the two modalities into each other, that is, the mapping matrix processes the feature coding in the feature space of modality A and can convert it into the feature coding in the feature space of modality B; corresponding to the embodiment of the present application, when the above-mentioned mapping matrix processes the feature coding of the first image under the first modality, it can convert it into the feature coding in the feature space of the second modality.
[0126] Step 230c: Perform image reconstruction processing on the feature encoding under the second modality through the filter matrix corresponding to the second modality to obtain a second image.
[0127] The above-mentioned filtering subnetwork is a network unit that converts the feature code of an image into image content, which may include one or more filters (i.e., filtering matrices), and the filtering matrix is used to reconstruct the feature code into an image. Each filtering matrix can correspond to an image modality. The filtering subnetwork can perform image reconstruction processing, and the image reconstruction processing here refers to the processing method of converting the feature code of an image into image content; specifically, the filtering matrix of the above-mentioned modality can process the feature code of the image to obtain the image content under the corresponding modality; for example, the filtering matrix of the T2-weighted image modality can process any feature code to obtain the image content corresponding to the feature code under the T2-weighted image modality. In an embodiment of the present application, the filtering matrix corresponding to the second modality can map the feature code to the image content under the second modality.
[0128] In an embodiment of the present application, the computer device can perform modal mapping processing and image reconstruction on the feature encoding of the first image through a mapping matrix and a filter matrix corresponding to the second modality to obtain a second image.
[0129] In combination with the above content, it can be understood that in an embodiment of the present application, the computer device maps the feature coding of the first image under the first modality to the feature coding in the feature space of the second modality through a mapping matrix, and reconstructs the feature coding in the feature space of the second modality obtained by the above mapping into an image of the second modality (i.e., the above-mentioned second image) through a filtering matrix corresponding to the second modality.
[0130] In some embodiments, the process of performing image reconstruction and modality mapping processing on the feature coding of the first image through the mapping matrix and the filter matrix corresponding to the second modality can be achieved through a calculation formula including the mapping matrix, the filter matrix corresponding to the second modality and the feature coding of the first image (such as a calculation formula of multiplying the three).
[0131] In an embodiment of the present application, the above-mentioned filter matrix and mapping matrix can be optimized during the training process of the modal conversion model. That is, during the training process, through a sufficient number of data sets, an appropriately designed network structure and an objective function, the appropriate parameters of these matrices can be effectively learned, thereby realizing the conversion of images from one modality to images of another modality.
[0132] For example, please refer to Figure 4 , Figure 4 It is a structural diagram of a modal conversion network provided by an embodiment of the present application.
[0133] exist Figure 4 In the embodiment, the modal conversion network 130a includes a feature extraction subnetwork 42a, a filtering subnetwork 42b and a mapping matrix 42c; the filtering subnetwork 42b includes a filtering matrix corresponding to the second modality.
[0134] After the modality conversion network 130a receives the first image 41 of the first modality, it first inputs the first image 41 into the feature extraction subnetwork 42a, performs feature extraction processing on the first image 41 through the feature extraction subnetwork 42a, and obtains the feature code of the first image; then performs modality mapping processing on the feature code of the first image 41 through the mapping matrix 42c, and obtains the feature code under the second modality; finally, performs image reconstruction processing on the feature code under the second modality through the filter matrix corresponding to the second modality, and obtains the second image 43 (for example, multiplying the mapping matrix 42c, the filter matrix corresponding to the second modality, and the feature code of the first image), and obtains the second image 43 corresponding to the second modality.
[0135] In an embodiment of the present application, since the mapping matrix can map the feature coding of the first modality to the feature space of the second modality in the mapping process, the filter matrix can retain the semantics of the first image in the reconstruction operation, through the combination of feature extraction, mapping operation and reconstruction operation, the modality conversion network can retain the semantics of the first image as much as possible in the second image after modality conversion, thereby effectively ensuring the quality of the image after modality conversion and improving the accuracy of image conversion between different modalities.
[0136] In some embodiments, the two different modalities include a first modality and a second modality, and the first image is an image of the second modality; the modality conversion network includes a feature extraction subnetwork, a filtering subnetwork, and a mapping matrix; the filtering subnetwork includes a filtering matrix corresponding to the first modality.
[0137] The above step 230 can also be implemented as a computer device performing feature extraction processing on the first image through a feature extraction subnetwork to obtain a feature code of the first image; performing modal mapping processing on the feature code of the first image through a mapping matrix to obtain a feature code under the first modality; performing image reconstruction processing on the feature code under the first modality through a filter matrix corresponding to the first modality to obtain a second image.
[0138] In the embodiment of the present application, the computer device can perform modality mapping processing and image reconstruction processing on the feature encoding of the first image through a mapping matrix and a filter matrix corresponding to the first modality to obtain a second image.
[0139] In an embodiment of the present application, a computer device maps the feature coding of a first image under a second modality to feature coding in a feature space of a first modality through a mapping matrix, and reconstructs the feature coding in the feature space of the first modality obtained by the above mapping into an image of the first modality through a filtering matrix corresponding to the first modality, thereby obtaining a second image.
[0140] In some embodiments, the above-mentioned process of performing image reconstruction and modality mapping processing on the feature coding of the first image through the mapping matrix and the filter matrix corresponding to the first modality can be achieved through a calculation formula including the mapping matrix, the filter matrix corresponding to the first modality and the feature coding of the first image (such as a calculation formula of multiplying the three).
[0141] In an embodiment of the present application, since the mapping matrix can map the feature coding of the second modality to the feature space of the first modality in the mapping process, the filter matrix corresponding to the first modality can retain the semantics of the first image in the reconstruction operation. Through the combination of feature extraction, mapping operation and reconstruction operation, the modality conversion network can retain the semantics of the first image as much as possible in the second image after modality conversion, thereby effectively ensuring the quality of the image after modality conversion and improving the accuracy of image conversion between different modalities.
[0142] In some embodiments, the two different modalities include a first modality and a second modality; the image samples of the two different modalities include first modality image samples corresponding to the first modality, and second modality image samples corresponding to the second modality.
[0143] In an embodiment of the present application, the first modality image samples and the second modality image samples are not strictly paired image samples, that is, the first modality image samples and the second modality image samples are image samples corresponding to different imaging objects; for example, among multiple first modality image samples, the imaging object of each image sample is different from the imaging object of each of the multiple second modality image samples. In this case, the number of first modality image samples and the number of second modality image samples may be the same or different.
[0144] Alternatively, the first modality image samples and the second modality image samples are strictly paired image samples, that is, the first modality image samples and the second modality image samples are image samples corresponding to the same imaging object; for example, a plurality of first modality image samples correspond one-to-one to a plurality of second modality image samples, and the imaging objects of the corresponding two image samples are the same.
[0145] Alternatively, the first modality image samples and the second modality image samples are semi-paired image samples, that is, among the first modality image samples and the second modality image samples, some image samples correspond to the same imaging object, and other image samples correspond to different image objects; for example, some image samples among the multiple first modality image samples correspond one-to-one with some image samples among the multiple second modality image samples, and the imaging objects of the corresponding two image samples are the same, while each other image sample among the multiple first modality image samples is different from the imaging object of each of the multiple second modality image samples, and accordingly, each other image sample among the multiple second modality image samples is different from the imaging object of each of the multiple first modality image samples; at this time, the number of first modality image samples and the number of second modality image samples may be the same or different.
[0146] For example, please refer to Figure 5 , Figure 5 This is a flowchart of another image processing method provided by an embodiment of the present application. Figure 2 Before step 210, the process may further include step 201, step 202, step 203, step 204 and step 205.
[0147] Step 201: Perform feature extraction processing on a first modality image sample through a modality conversion network to obtain a first feature encoding sample of the first modality.
[0148] In an embodiment of the present application, the computer device may perform feature extraction processing on the first modality image sample through a convolutional layer in a modality conversion network or a feature dictionary corresponding to the first modality to obtain a first feature encoding sample of the first modality.
[0149] Step 202: Perform feature extraction processing on the second modality image sample through the modality conversion network to obtain a second feature encoding sample of the second modality.
[0150] In an embodiment of the present application, the computer device may perform feature extraction processing on the second modality image sample through a convolutional layer in a modality conversion network or a feature dictionary corresponding to the second modality to obtain a second feature encoding sample of the second modality.
[0151] Step 203: Obtain an intra-domain loss function, where the intra-domain loss function is used to indicate a first image difference and a second image difference; the first image difference includes a difference between a first feature coded sample reconstructed as an image of the first modality and an image sample of the first modality; the second image difference includes a difference between a second feature coded sample reconstructed as an image of the second modality and an image sample of the second modality.
[0152] For example, the computer device may input the first feature encoding sample into a function for calculating the first image difference, and input the second feature encoding sample into a function for calculating the second image difference. The function for calculating the first image difference and the function for calculating the second image difference may constitute an intra-domain loss function.
[0153] Step 204: Obtain an inter-domain loss function, where the inter-domain loss function is used to indicate the difference between the first feature encoding sample and the second feature encoding sample.
[0154] For example, the computer device may input the first feature encoding sample and the second feature encoding sample into a function for calculating the difference between the two feature encodings, and the function may constitute the above-mentioned inter-domain loss function.
[0155] Step 205: Update the modality conversion network according to the intra-domain loss function and the inter-domain loss function.
[0156] Among them, the computer device can update the modal conversion network by performing optimization solutions on the intra-domain loss function and the inter-domain loss function.
[0157] Alternatively, the computer device may also solve the loss function value for the intra-domain loss function and the inter-domain loss function, and update the modal conversion network by gradient descent based on the loss function value.
[0158] Among them, the updated modality conversion network is used to perform modality conversion processing on the first image to obtain the second image; the first image is an image of the imaging object in one of the first modality and the second modality, and the second image is an image of the imaging object in the other of the first modality and the second modality.
[0159] In an embodiment of the present application, image samples of two modalities and corresponding feature coding samples are used as data for updating the modal conversion network, and the modal conversion network is continuously optimized according to the intra-domain loss function and the inter-domain loss function. The intra-domain loss function can ensure the internal stability and accuracy of the image under the same modality, while the inter-domain loss function can ensure effective information conversion and mapping between different modalities. The modal conversion network is updated in combination with these two loss functions, so that the modal conversion network can adjust the internal parameters of the modal conversion network according to the intra-domain loss function and the inter-domain loss function during the updating process, so that the output content is closer to the target demand. The updated modal conversion model is applied to the modal conversion of images, which can more accurately realize the modal conversion of images.
[0160] In some embodiments, the objective function also includes: a mapping loss function, and the computer device can also obtain a mapping loss function; the mapping loss function is used to indicate the difference between the second feature coding sample after being mapped to the feature space of the first modality and the first feature coding sample; or, the mapping loss function is used to indicate the difference between the first feature coding sample after being mapped to the feature space of the second modality and the second feature coding sample.
[0161] The above step 205 can be implemented as follows: updating the modality conversion network according to the intra-domain loss function, the inter-domain loss function and the mapping loss function.
[0162] In an embodiment of the present application, the mapping loss function serves as an indicator of the mapping quality of feature encoding, which can enable the modal conversion network to more accurately map feature encoding between feature spaces of different modalities, thereby improving the mapping quality of the modal conversion network when performing modal conversion.
[0163] The mapping loss function may include but is not limited to any one of mean squared error (MSE), contrastive loss and triplet loss.
[0164] In an embodiment of the present application, the mapping loss function can ensure the effective mapping of feature encoding from the first modality to the second modality. The modal conversion network is updated based on the mapping loss function, and can optimize the learning of how to convert features between image data of different types or sources, so that the modal conversion network can minimize losses and improve the accuracy of modal conversion processing in the process of mapping the first image.
[0165] In some embodiments, the modality conversion network includes a feature extraction subnetwork, a filtering subnetwork, and a mapping matrix; the filtering subnetwork includes a filtering matrix corresponding to the first modality and a filtering matrix corresponding to the second modality.
[0166] Among them, the first feature coding sample is a feature coding obtained by performing feature extraction processing on the first modality image sample through the feature extraction subnetwork, and the second feature coding sample is a feature coding obtained by performing feature extraction processing on the second modality image sample through the feature extraction subnetwork.
[0167] For example, the feature extraction subnetwork may include a network portion for extracting feature codes of images of the first modality (for example, the network portion includes a feature dictionary of the first modality), and the feature extraction subnetwork may query the feature dictionary of the first modality for feature codes corresponding to image contents contained in the image samples of the first modality to obtain the first feature code samples. For another example, the feature extraction subnetwork may include a convolution layer for extracting feature codes of images of the first modality, and the feature extraction subnetwork may perform convolution processing on the image samples of the first modality through the convolution layer to obtain the first feature code samples.
[0168] Correspondingly, the feature extraction subnetwork may also include a network portion for extracting feature codes of the image of the second modality (for example, the network portion includes a feature dictionary of the second modality), and the feature extraction subnetwork may query the feature dictionary of the second modality for feature codes corresponding to the image content contained in the image sample of the second modality to obtain the second feature code sample. For another example, the feature extraction subnetwork may include a convolution layer for extracting feature codes of the image of the second modality, and the feature extraction subnetwork may perform convolution processing on the image sample of the second modality through the convolution layer to obtain the second feature code sample.
[0169] The above-mentioned first image difference includes the difference between the first feature coding sample after image reconstruction processing by the filter matrix corresponding to the first modality and the first modality image sample; the second image difference includes the difference between the second feature coding sample after image reconstruction processing by the filter matrix corresponding to the second modality and the second modality image sample.
[0170] For example, the above-mentioned first feature coding sample can be implemented as a coding matrix. The first feature coding sample can be multiplied by the filter matrix corresponding to the first modality, so as to realize image reconstruction processing of the first feature coding sample and obtain the image reconstructed by the first feature coding sample. The difference between the image reconstructed by the first feature coding sample and the first modality image sample can be regarded as the above-mentioned first image difference.
[0171] Correspondingly, the above-mentioned second feature coding samples can be implemented as a coding matrix. The second feature coding samples are multiplied by the filter matrix corresponding to the second modality, so that the image reconstruction processing of the second feature coding samples can be implemented to obtain the image reconstructed by the second feature coding samples. The difference between the image reconstructed by the second feature coding samples and the second modality image samples can be regarded as the above-mentioned second image difference.
[0172] The above mapping loss function is used to indicate the difference between the second feature coding sample and the first feature coding sample after the modal mapping processing of the mapping matrix.
[0173] For example, the second feature coding sample can be implemented as a coding matrix. The second feature coding sample can be multiplied with a mapping matrix or an inverse matrix of the mapping matrix to implement modal mapping processing on the second feature coding sample. The mapping loss function can be a function that performs modal mapping processing on the second feature coding sample through the mapping matrix and then calculates the difference between the modal mapping processing result and the first feature coding sample.
[0174] In the embodiment of the present application, the intra-domain loss function, the inter-domain loss function and the mapping loss function involve the feature extraction sub-network, the filtering sub-network and the mapping matrix. Therefore, through the intra-domain loss function, the inter-domain loss function and the mapping loss function, the feature extraction sub-network, the filtering sub-network and the mapping matrix in the modal conversion network can be effectively updated, which can improve the accuracy of the modal conversion network in both image reconstruction and inter-modal feature mapping, improve the quality of the modal conversion of the image, make the modal conversion task more reliable and effective in practical applications, and ensure the accuracy of the subsequent modal conversion of the image through the feature extraction sub-network, the filtering sub-network and the mapping matrix.
[0175] For example, please refer to Figure 6 , Figure 6 This is a flowchart of another image processing method provided by an embodiment of the present application. Figure 5 Step 205 in can be implemented as step 205a:
[0176] Step 205a: According to the intra-domain loss function, the inter-domain loss function and the mapping loss function, the filtering sub-network, the feature extraction sub-network and the mapping matrix are updated in sequence; wherein the filtering sub-network, the feature extraction sub-network and the mapping matrix are updated by at least one of the intra-domain loss function, the inter-domain loss function and the mapping loss function, respectively.
[0177] In an embodiment of the present application, since the objective function can simultaneously include multiple loss functions (such as intra-domain loss function, inter-domain loss function and mapping loss function), and at the same time, the parameters that need to be updated in the modal conversion network (filtering subnetwork, feature extraction subnetwork and mapping matrix) are also large in scale, in order to achieve a feasible solution to the objective function, different parts of the modal conversion network can be updated in a specified order.
[0178] For example, the modality conversion network can undergo multiple rounds of updates during the training process. Each process of updating the modality conversion network based on the first modality image samples, the second modality image samples, the first feature encoding samples, the second feature encoding samples and the objective function can be called a round of updates. In the first stage, the feature extraction subnetwork and the mapping matrix can be kept unchanged, and the filtering subnetwork can be updated first. This stage can include multiple rounds of updates. Then, in the second stage, the filtering subnetwork and the mapping matrix are kept unchanged, and the feature extraction subnetwork is optimized. This stage can also include multiple rounds of updates. In the third stage, the feature extraction subnetwork and the filtering subnetwork are kept unchanged, and the mapping matrix is optimized. This stage can also include multiple rounds of updates.
[0179] During the training process of the entire modality conversion network, the above three stages can be executed alternately in sequence for multiple times. For example, after the modality conversion network performs the above three stages of optimization in sequence, if it fails to achieve the expected effect (for example, the quality of the converted image output on the validation set is poor), the above three stages of optimization will be executed again. The above three stages will be continuously iterated and updated until the modality conversion network can achieve the expected effect, or until the number of iterations reaches the threshold, at which time the update can be stopped to complete the training / update optimization of the modality conversion network.
[0180] In some embodiments, the updated modality conversion network can be directly applied to perform modality conversion on the first image.
[0181] In other embodiments, after the modality conversion network is updated, a test set can be used to perform a modality conversion test. If the test results meet expectations, the network is put into the application stage. Otherwise, if the test results do not meet expectations, the modality conversion network continues to be updated. In the above-mentioned modality conversion test, a set of test image samples of a specified modality can be selected and input into the updated modality conversion network. The test image samples are image samples that have not been used in the process of updating the modality conversion network. Then, the difference between the test output image output by the modality conversion network and the image sample of another modality corresponding to the test image sample of the same imaging object is calculated to determine the accuracy of the modality conversion performed by the modality conversion network. Alternatively, the above-mentioned modality conversion test can also be to input the test image samples of the first modality and the test image samples of the second modality into the modality conversion network, and calculate the values of various loss functions in the objective function through the modality conversion network to process the test image samples (such as the feature encoding of the test image samples) to determine the accuracy of the modality conversion performed by the modality conversion network.
[0182] In the embodiment of the present application, different parts of the modal conversion network are updated in sequence, and during the updating process, except for the updated parts, the parameters of other parts remain unchanged, which can provide a feasible solution for model optimization based on a complex objective function, so that the parameters of the updated parts are more accurate, and through iterative updating, an evaluation is performed after each round of updating to determine whether the modal conversion network after the current round of updating has achieved the expected effect. The update progress can be adjusted in time, and the optimization and improvement can be gradually carried out, so that the modal conversion capability of the updated modal conversion network is better and more efficient in the application process.
[0183] Optionally, in some embodiments of the present application, during the model training process, the computer device may also update the filtering subnetwork, the feature extraction subnetwork, and the mapping matrix in other orders, for example, first updating the feature extraction subnetwork, then updating the filtering subnetwork, and finally updating the mapping matrix; for another example, first updating the mapping matrix, then updating the filtering subnetwork, and finally updating the feature extraction subnetwork; the embodiments of the present application do not limit the update order of the filtering subnetwork, the feature extraction subnetwork, and the mapping matrix.
[0184] In some embodiments, Figure 6 Step 205a in can be implemented as follows: in the process of updating the filtering sub-network, the first modality image samples, the second modality image samples, the first feature coding samples and the second feature coding samples are used as known information to solve the first objective function to update the filtering sub-network; wherein the solution to the first objective function is the value of the filtering matrix corresponding to the first modality and the value of the filtering matrix corresponding to the second modality when the value of the loss function in the domain is minimized.
[0185] In the embodiment of the present application, the filter matrix corresponding to the first modality can convert the feature encoding of the image into the image content of the first modality, wherein the filter matrix can be a weight matrix. In the filter subnetwork of the embodiment of the present application, there can be multiple filter matrices, and different filter matrices correspond to different modalities, that is, different filter matrices are used to convert the feature encoding of the image into the image content of different modalities.
[0186] In an embodiment of the present application, the first objective function is an objective function including the intra-domain loss function, which can be used to update the filter subnetwork.
[0187] Among them, the intra-domain loss function contained in the above-mentioned first objective function can be the square of the second norm of the difference between the image samples before and after reconstruction when the mode remains unchanged; and the first objective function can be the case where the value of the intra-domain loss function is minimized, solving the value of the filter matrix corresponding to the first mode and the minimum function of the filter matrix corresponding to the second mode.
[0188] In an embodiment of the present application, the intra-domain loss function may be a function with first modality image samples, second modality image samples, first regularized feature coding samples, second regularized feature coding samples, a filter matrix corresponding to the first modality, and a filter matrix corresponding to the second modality as parameters; wherein the first regularized feature coding samples are the result of regularization of the first feature coding samples; and the second regularized feature coding samples are the product of the first regularized feature coding samples and the mapping matrix.
[0189] For example, please refer to Formula 1 and Formula 2, which respectively show the domain loss function:
[0190] Formula 1
[0191] Formula 2
[0192] In the above formula, X and Y are the first modality image samples and the second modality image samples respectively; i represents the sequence number of the feature in the feature space of a single modality, and K represents the number of features in the feature space. represents the regularized features, l represents the number of update rounds, , , as well as They are respectively the first regularized feature coding sample updated in the lth round, the second regularized feature coding sample updated in the lth round, the i-th feature in the filter matrix corresponding to the first mode updated in the (l-1)th round, and the i-th feature in the filter matrix corresponding to the second mode updated in the (l-1)th round, wherein the first regularized feature coding sample can be obtained by regularizing the first feature coding sample; the second regularized feature coding sample can be obtained by multiplying the first regularized feature coding sample with the mapping matrix.
[0193] In an embodiment of the present application, after the feature coding samples are regularized (the first regularized feature coding samples and the second regularized feature coding samples), the stability and generalization ability of the feature coding samples can be controlled, which helps to reduce the risk of overfitting. Therefore, updating the modal conversion network based on the in-domain loss function including the regularized feature coding samples helps to improve the generalization ability of the modal conversion network.
[0194] For example, please refer to Formula 3, which shows a first objective function:
[0195] Formula 3
[0196] In the above formula 3 It represents the i-th feature in the filter matrix corresponding to the first mode after the (l-1)th round of updating of the filter subnetwork. Indicates that in the lth round of update, the first modality image sample corresponds to the regularized i-th feature in the feature space of the first modality, It represents the i-th feature in the filter matrix corresponding to the second mode after the (l-1)th round of updating of the filter subnetwork. Indicates that in the lth round of update, the second modality image sample corresponds to the regularized i-th feature in the feature space of the second modality, represents the two-norm, represents the square of the second norm, and ∑ represents the sum.
[0197] In formula three, the first modality image sample is subtracted from the regularized first feature coding sample multiplied by the filter matrix, so that the in-domain loss of the first modality corresponding to the first image can be obtained; the second modality image sample is subtracted from the regularized second feature coding sample multiplied by the filter matrix, so that the in-domain loss of the second modality corresponding to the second image can be obtained. The square of the second norm of the in-domain loss of the first modality is added to the square of the second norm of the in-domain loss of the second modality to obtain a sum. The value of the filter matrix corresponding to the first modality and the value of the filter matrix corresponding to the second modality are solved while minimizing the value of this sum, and the value of the filter matrix corresponding to the first modality and the value of the filter matrix corresponding to the second modality are updated to the filter subnetwork in the modality conversion network.
[0198] For example, please refer to Formula 4 and Formula 5, which show two solutions corresponding to Formula 3:
[0199] Formula 4
[0200] Formula 5
[0201] In the above formula, represents the expected value, represents the gradient operator, They respectively represent the filter matrix corresponding to the first modality image samples and the filter matrix corresponding to the second modality image samples.
[0202] In the embodiment of the present application, the intra-domain loss represents the difference between the regularized feature coding samples (first feature coding samples, second feature coding samples) and their corresponding image samples of the same modality (first modality image samples, second modality image samples). The smaller the difference, the more and more complete the information features corresponding to the image samples retained by the feature coding samples after passing through the filtering subnetwork, that is, the quality of the image processed by the filtering subnetwork is higher. At this time, obtaining the value of the filter matrix corresponding to the first modality in the first objective function and the value of the filter matrix corresponding to the second modality are applied to the modal conversion network, which can effectively ensure the working quality of the filtering subnetwork, thereby ensuring the efficiency of the modal conversion network.
[0203] In some embodiments, Figure 6 Step 205a in can be implemented as follows: in the process of updating the feature extraction subnetwork, the first modality image samples, the second modality image samples, the first feature encoding samples and the second feature encoding samples are used as known information to solve the second objective function to update the feature extraction subnetwork; wherein the solution to the second objective function is the parameters of the feature extraction subnetwork under the condition that the values of the intra-domain loss function and the values of the mapping loss function are minimized and the values of the inter-domain loss function are maximized.
[0204] In an embodiment of the present application, the second objective function is an objective function including the intra-domain loss function, the inter-domain loss function and the mapping loss function, which can be used to update the feature extraction sub-network.
[0205] Among them, the intra-domain loss function included in the above-mentioned second objective function can be the weighted result of the square of the second norm of the difference before and after reconstruction of the image sample with the modality unchanged and the first norm of the feature coding of the image sample; the inter-domain loss function included in the above-mentioned second objective function can be the square of the difference between the feature codings of different modalities; the mapping loss function included in the above-mentioned second objective function can be the difference between the feature coding in the first modality and the feature coding in the second modality after being processed by the mapping matrix, and then squaring the difference.
[0206] Among them, the above-mentioned inter-domain loss function is a function with the first regularized feature coding sample and the second regularized feature coding sample as parameters; among them, the first regularized feature coding sample is the regularized result of the first feature coding sample; the second regularized feature coding sample is the product of the first regularized feature coding sample and the mapping matrix.
[0207] For example, please refer to Formula 6, which shows the inter-domain loss function:
[0208] Formula 6
[0209] In Formula 6, represents the first regularized feature encoding sample, represents the second regularized feature encoding sample, Indicates the first modality image sample to be mapped, Represents the second modality image samples to be mapped.
[0210] In an embodiment of the present application, the inter-domain loss function includes regularized feature encoding samples (first regularized feature encoding samples, second regularized feature encoding samples), and the modal conversion network is updated based on the inter-domain loss function. This can limit the complexity of the modal conversion network, avoid overfitting in the source domain, and improve the generalization ability of the modal conversion network in the target domain.
[0211] Among them, the above-mentioned mapping loss function can be a function with the first regularized feature coding sample, the second regularized feature coding sample and the mapping matrix as parameters; wherein the first regularized feature coding sample is the result of regularization of the first feature coding sample; the second regularized feature coding sample is the product of the first regularized feature coding sample and the mapping matrix.
[0212] For example, please refer to Formula 7, which shows a mapping loss function:
[0213] Formula 7
[0214] In the above formula 7, represents the regularized feature encoding corresponding to the X modality in the l-th round of update process, represents the mapping matrix in round l, It represents the regularized feature code corresponding to the Y modality in the l-th update process, the feature code corresponding to the X modality minus the product of the mapping matrix and the feature code corresponding to the Y modality. Formula 7 represents the loss when the mapping matrix maps the feature code from the feature space of the X modality to the feature space of the Y modality.
[0215] In an embodiment of the present application, the regularization method can limit the norm of the feature or impose sparsity constraints to improve the stability and generalization ability of the feature encoding. The mapping loss function includes a first regularized feature encoding sample and a second regularized feature encoding sample. When the modal conversion network is updated based on the objective function including the mapping loss function, the error that occurs when the feature encoding performs modal conversion in the feature space can be effectively controlled to minimize the error, thereby improving the mapping quality of the feature encoding and thus improving the efficiency of the modal conversion network.
[0216] For example, please refer to Formula 8, which shows a second objective function and its expansion:
[0217] Formula 8
[0218] In formula 8, F corresponds to the filter matrix, Corresponding to the kernel Hilbert space (representing the inter-domain loss), P corresponds to the mapping matrix, represents the feature encoding sample of the first modality image sample after regularization after the (l-1)th round of update, represents the filter matrix of the first mode after the (l-1)th round of update, represents the feature encoding sample of the regularized second modality image sample after the (l-1)th round of update, represents the filter matrix of the second mode after the (l-1)th round of update, represents the mapping matrix updated in the lth round, Represents the feature code corresponding to the l-th updated second modality image sample.
[0219] In formula eight, The part represents the in-domain loss of the first modality image sample and the second modality image sample, respectively, corresponding to the in-domain loss function; The part represents the mapping loss of the first feature encoding sample to the second feature encoding sample, corresponding to the mapping loss function; represents the inter-domain loss, where β is a specified coefficient, for example, it can be taken as 0.1. The corresponding expansion , represents the square of the difference between the first feature encoding sample and the second feature encoding sample after modality conversion, that is, the feature difference of image data under different modalities, indicating the inter-domain loss.
[0220] In an embodiment of the present application, the smaller the above-mentioned intra-domain loss function is, the smaller the difference between the image samples (first modality image samples, second modality image samples) before and after reconstruction is, and the image samples better retain the image features before reconstruction after reconstruction; the above-mentioned mapping loss function represents the loss of the feature coding samples (first feature coding samples, second feature coding samples) during the mapping process. The smaller the loss is, the more completely the feature coding samples can be mapped to the feature space, and the more successful the mapping is; the above-mentioned inter-domain difference represents the difference between different modalities corresponding to the feature coding samples. The larger the inter-domain difference is, the more obvious the modal conversion of the image samples (first modality image samples, second modality image samples) corresponding to the feature coding samples is, that is, the modal conversion effect of the image samples is better; based on the above-mentioned three constraints, when the value of the intra-domain loss function and the value of the mapping loss function are minimized, and the value of the inter-domain loss function is maximized, the solution of the second objective function is obtained to update the feature extraction subnetwork, which can effectively ensure the effect of the updated feature extraction subnetwork on image sample feature extraction.
[0221] In some embodiments, Figure 6 Step 205a in can be implemented as follows: in the process of updating the mapping matrix, the first feature coding sample and the second feature coding sample are used as known information to solve the third objective function to update the mapping matrix; wherein the solution to the third objective function is the value of the mapping matrix when the value of the mapping loss function is minimized.
[0222] In an embodiment of the present application, the third objective function is an objective function including the mapping loss function, which can be used to update the mapping matrix.
[0223] The mapping loss function included in the above-mentioned third objective function can be to calculate the difference between the feature coding in the first mode and the feature coding in the second mode after being processed by the mapping matrix, square the difference, and then weight the square of the difference and the square of the mapping matrix.
[0224] For example, please refer to Formula 9, which shows a third objective function:
[0225] Formula 9
[0226] In Formula 9, represents the first feature encoding sample after regularization in the lth round, represents the mapping matrix of the lth round, Represents the regularized second feature coding sample of the lth round. The regularized first feature coding sample minus the product of the regularized second feature coding sample and the mapping matrix obtains the loss of the first feature coding sample mapped from the first modality feature space corresponding to the first modality image sample to the second modality corresponding to the second modality image sample.
[0227] In the embodiment of the present application, the smaller the above-mentioned mapping matrix is, the less the first feature coding sample is lost in the mapping process, that is, the more information of the image sample is retained by the first feature coding sample. When the value of the mapping loss function is extremely small, obtaining the value of the mapping matrix can effectively update the mapping function of the modal conversion network and reduce the loss of the modal conversion network in the process of mapping the features of the image, thereby improving the quality of the modal conversion of the image by the modal conversion network.
[0228] based on Figure 2 , Figure 3 , Figure 5 as well as Figure 6 For any one or more of the examples, please refer to Figure 7 , which shows a flow chart of an image processing method provided by an embodiment of the present application. Figure 7 As shown, the image processing process includes a feature extraction phase, an update phase and an application phase of a modality conversion network 70. The modality conversion network 70 includes a filtering subnetwork 701, a feature extraction subnetwork 702 and a mapping matrix 703.
[0229] 1. Model training stage
[0230] In the first stage, the computer device can perform feature extraction processing on the first modality image sample 71 and the second image sample 72 respectively through the feature extraction subnetwork 702 in the modality conversion network 70 to obtain the first feature coding sample 71a corresponding to the first modality image sample 71 and the second feature coding sample 72a corresponding to the second modality image sample 72, wherein the first modality image sample 71 corresponds to the first modality, and the second modality image sample 72 corresponds to the second modality, and the second modality is an image modality different from the first modality.
[0231] The modality conversion network 70 needs to be updated and trained before application to make its conversion function for image modality more accurate. The device on the computer uses the first modality image sample 71, the second image sample 72, the first feature coding sample 71a and the second feature coding sample 72a as known data of the objective function 73, solves the objective function 73, and optimizes and updates the parameters in the modality conversion network 70 (such as the parameters or feature dictionary in the feature extraction subnetwork, the filter matrix, and the mapping matrix). The objective function 73 includes the first objective function 73a, the second objective function 73b and the third objective function 73c. The modality conversion network 70 updates the filter subnetwork 701, the feature extraction subnetwork 702 and the mapping matrix 703 in turn.
[0232] 1) Filter subnetwork update
[0233] In the process of updating the filtering subnetwork 701, the first modality image samples 71, the second modality image samples 72, the first feature coding samples 71a and the second feature coding samples 72a are substituted into the first objective function 73a as known information and input into the filtering subnetwork 701. The filtering subnetwork includes a filtering matrix 701a. When the value of the loss function in the domain is minimized, the value of the filtering matrix 701a corresponding to the first modality and the value of the filtering matrix 701b corresponding to the second modality are used as the solution of the first objective function 73a to update the filtering subnetwork 701.
[0234] 2) Feature extraction sub-network update
[0235] In the process of updating the feature extraction subnetwork 702, the first modality image samples 71, the second modality image samples 72, the first feature encoding samples 71a and the second feature encoding samples 72a are substituted into the second objective function 73b as known information and input into the feature extraction subnetwork 702. When the value of the intra-domain loss function and the value of the mapping loss function are minimized and the value of the inter-domain loss function is maximized, the parameters of the feature extraction subnetwork 702 are used as the solution of the second objective function 73b to update the feature extraction subnetwork 702.
[0236] 3) Mapping matrix update phase
[0237] In the process of updating the mapping matrix 703, the first feature coding sample 71a and the second feature coding sample 72a are substituted into the third objective function 73c as known information. When the value of the mapping loss function is minimized, the value of the mapping matrix 703 is used as the solution of the third objective function 73c to update the mapping matrix 703.
[0238] 2. Model application stage
[0239] After receiving the first image 74 to be processed, the computer device sends the first image 74 to the modal conversion network 70. After receiving the first image 74, the modal conversion network 70 performs feature extraction processing on the first image 74 through the feature extraction subnetwork 702 to obtain the feature code 74a of the first image 74; through the mapping matrix 703 and the filter matrix 701b corresponding to the second modality, the feature code 74a of the first image 74 is subjected to image reconstruction and modal mapping processing to obtain the second image 75. The second image 75 is an image in which the first image 74 is modally converted, and the imaging object is consistent with the imaging object of the first image 74.
[0240] For example, based on Figure 2 , Figure 3 , Figure 5 as well as Figure 6 Corresponding to any one or more embodiments, taking the application of the above scheme in the field of medical images as an example, the embodiment of the present application proposes a technical solution for complex solutions for generative cross-modal brain image synthesis. The technical solution is an image synthesis method based on CSC network learning, the purpose of which is to solve the solution of complex objective functions in cross-modal image generation. This method can be widely used in the synthesis of various images by providing solutions through alternating iterations in optimizing complex objective functions, especially in the synthesis of brain images in medical images, showing significant advantages.
[0241] For example, please refer to the following steps, which show the steps of the algorithm solution of the present technical solution.
[0242] Input: training data X, Y, parameters λ, α, β, and test data X t
[0243] 1: Initialization: , , , ,
[0244] 2: Settings: ← , ← ,
[0245] 3: From l = 1 to L
[0246] 4: Repeat the following solution process
[0247] 5: Solution:
[0248] Solution:
[0249] Solution:
[0250] 6. Until convergence
[0251] 7. End
[0252] 8. Pass calculate
[0253] 9. Pass synthesis
[0254] Output:
[0255] As shown in the above steps, the algorithm flow of this solution is specifically explained as follows.
[0256] The above steps show the algorithm of this embodiment for the optimization solution of the cross-modal synthesis technology based on the CSC domain adaptation network. The objective function can be solved by alternately optimizing the objective function on the variable blocks of the filter F, feature Z and projector P. In addition to the alternating operation, the objective function is reformulated as an unconstrained and separated optimization problem due to the large size of the medical image.
[0257] The technical solution adopted in the embodiment of the present application is: a technology for synthesizing complex solutions for generative cross-modal brain images, and the solution process includes the following parts:
[0258] 1) Create a training dataset
[0259] The scheme involved in the embodiment of the present application was verified on two public multimodal brain datasets, one of which contained 578 healthy subjects from three medical institutions. These healthy subjects were scanned by different MRI systems, and the generated images had a size of 256 × 256 × N and a resolution of 0.94 × 0.94 × 1.2 mm³. The other dataset contained 225 brain tumor scan images, which were preprocessed before release, such as alignment to a unified anatomical format, resampling to a resolution of 1 × 1 × 1 mm³, and removal of the skull. The subjects of the dataset corresponding to the brain tumor scan images were collected by 19 institutions using different scanners and protocols. The scheme involved in this embodiment performs well in optimizing complex objective functions and can effectively process diverse and high-dimensional medical image data.
[0260] 2) Iterative optimization solution algorithm steps of this scheme
[0261] In generalized heterogeneous representation learning, by constructing intra-domain normalization and inter-domain adaptation mechanisms to handle image synthesis tasks, the overall goal can be expressed as a new minimax function, as shown in Formula 10:
[0262] Formula 10
[0263] Once the image sets X and Y are obtained, the objective function X can be used as a cross-domain generative model and the equations can be further solved through the multi-step optimization strategy proposed below.
[0264] This equation can be first solved by alternately optimizing the objective function over the blocks of variables of the filter F, the features Z, and the projector P. In addition to the alternating operation, the objective function is reformulated as an unconstrained and separated optimization problem considering the large size of medical images.
[0265] A) Update feature Z: Feature and The optimization is achieved by layered convolutional least squares with corresponding filters and internal and external regularization. Specifically, the process of updating the feature Z in Formula 10 with fixed F and P can be performed by the above Formula 8. The solution of the equation can be subdivided into the update of the standardized features in the domain. On this basis, the calculation of Formula 10 can usually be expressed as a global regularization to constrain the overall scale while ensuring the distinguishability of key features in the projection space (achieved by avoiding strong constraints such as simple division by the maximum value). In the implementation process of norm unification, the update of Formula 8 can be shown as Formula 11 and Formula 12:
[0266] Formula 11
[0267] Formula 12
[0268] Where i represents the i-th feature under the first mode, j represents the j-th feature under the second mode, Represents the jth feature in the feature encoding of the regularized second modality image after the lth round of update.
[0269] In addition, the extension of the inter-domain adaptation of Formula 8 can refer to the unbiased estimation for inter-domain adaptation in Formula 10, which is reflected in Formula 8. The extension of this part can be further written as Formula 13:
[0270] Formula 13
[0271] Formula 13 can be further expanded into Formula 14:
[0272] Formula 14
[0273] In the above formula, k() represents the k algorithm, which is used to calculate the similarity between the two elements in the brackets. S represents the number of features of the first modality; T represents the number of features of the second modality.
[0274] In theory, the power of the two-sample test can be maximized by minimizing the second type error to resist the false null hypothesis that the distributions of the two test samples are not equal. The formula involved in this scheme provides the squared distance between the kernel mean embeddings of the source and target domain features in the reproducing kernel Hilbert space. Although the calculation can be performed directly, it is easy to cause complexity problems in the multi-layer feature learning framework. Therefore, Formula 14 can be further expanded to Formula 15:
[0275] Formula 15
[0276] Efficient solutions with stability guarantees involve the Alternating Direction Method of Multipliers (ADMM) and the Coordinate Descent (CD) method. Existing ADMM algorithms solve a quadratic sub-optimization problem for an approximate set of non-zero coordinates in each iteration. For high-dimensional medical images, this technique is relatively slow given that linear scaling operations are replaced by Fourier calculations. Coordinate descent optimization methods are more suitable for updating a small number of coordinates individually while fixing other coordinates.
[0277] B) Update F: For Formula 10, the update of F can be achieved by the above Formula 3.
[0278] The solution of Formula 10 can be obtained by using Formula 4 and Formula 5 above.
[0279] C) Update P: Updating the mapping matrix P can be incorporated into the optimization process.
[0280] The method of optimizing the modal conversion network through the objective function shown in Formula 10 can be called the Generalized Heterogeneous Representation (GHR) method. After the iterative initialization and update of features Z and F are completed, the convolution feature map can be obtained. , and its corresponding training filter , , and their mapping matrix P, the update of P is related to the feature Z, and the specific update formula can be implemented by the above formula nine.
[0281] 3) Parameters and experimental settings
[0282] In the experiment of the solution application of the above embodiment, it can be evaluated on a more challenging task involving unsupervised (unpaired) processing of large-scale heterogeneous brain images, and the unpaired data is only roughly registered (i.e., geometrically aligned). The solution shown in the above embodiment of the present application can solve the problem of co-occurrence of intra-domain and inter-domain offsets to correct the domain misalignment of the model and adjust the model to achieve better generalization in a strict unpaired setting.
[0283] Specifically, for the division of the experimental data, the existing well-aligned paired images are partially removed, and half of the images are removed on each side to achieve a strict unpaired setting. The method proposed in the above embodiment of the present application can handle different statistical characteristics between heterogeneous inputs. For the evaluation criteria, the Peak Signal-to-Noise Ratio (PSNR) and the Structural Similarity Index (SSIM) can be used to quantify the synthesis quality or appearance similarity of the method proposed in the above embodiment of the present application.
[0284] For example, please refer to Figure 8 , Figure 8 It is a schematic diagram of the solution principle provided by an embodiment of the present application.
[0285] like Figure 8 As shown, after the front end A receives the data to be converted (input image), it uploads it to the back end, and then the back end uses this technical solution to quickly and effectively perform cross-modal synthesis on it, and finally outputs the target modality image to the front end B.
[0286] In the embodiment of the present application, the beneficial effects of the above-mentioned technical solution for generating cross-modal brain image synthesis complex solutions can be referred to Fig. 9 as well as Fig.10 , Fig. 9 It is a schematic diagram of the evaluation results generated by the solution provided by one embodiment of the present application in T1->FLAIR; Fig.10 This is a schematic diagram of the evaluation results generated by the solution provided in one embodiment of the present application in PD->T2.
[0287] In order to comprehensively evaluate the visual quality and segmentation performance of the synthesis results of the scheme shown in the above embodiment of the present application and compare them with their true values, four main tasks can be performed on two independent datasets. Specifically, unsupervised cross-modal synthesis of brain images is first processed on the IXI dataset. In this case, PD and T2 weighted images are explored to evaluate and compare the GHR method proposed in the scheme shown in the above embodiment of the present application with existing methods of other generation directions. Fig. 9 and Fig.10The detailed performance of PSNR and SSIM between GHR and other comparison methods are demonstrated, and the proposed GHR outperforms all other methods in the generation task on the IXI dataset.
[0288] exist Fig. 9 In the PD → T2 task, the average performance (i.e., PSNR, SSIM shown in the figure) achieved by GHR is {38.06dB, 0.955} respectively. Compared with the best baseline method, the performance is improved by {1.09dB, 0.036}.
[0289] exist Fig.10 In , more synthetic tasks were explored on pathological examples on the BraTS dataset. These tasks are targeted at pathological cases, more Fig. 9 The experiment is more difficult. Quantitatively, Fig.10 The average performance of the methods shown in the above embodiments of the present application and other comparison methods on the BraTS dataset is shown in Figure 2. The results show that GHR always achieves the best performance in terms of PSNR and SSIM, and is significantly better than other methods. In summary, GHR generates the best results, with a PSNR improvement of 3.08dB and a SSIM improvement of 0.031 in the T1 → FLAIR synthesis task relative to the best baseline CUT.
[0290] It should be noted that image synthesis is an extremely challenging task, especially for medical images. Both the results of the comparison methods and the relevant literature reflect this fact. Most medical image synthesis research is mainly focused on narrowing the differences between domains (i.e., cross-domain changes), but lacks a comprehensive understanding of heterogeneous data (i.e., considering the co-occurrence of intra-domain and inter-domain changes to better correct misalignment), so only minor improvements were brought at the time. The method proposed in this scheme brings a new optimization solution, and can give an effective solution for the objective function containing multiple specific penalty terms. The results of the evaluation on two public datasets show that the proposed method is always better than other methods. The above embodiments of the present application can be used in the application direction of medical image synthesis. Optionally, the technology can be applied to other generative tasks (style transfer, etc.).
[0291] The solutions shown in the above embodiments can be applied to conversion scenarios between multiple images of different modalities, for example, MRI image conversion scenarios, image style conversion scenarios, etc. The subsequent embodiments of this application will briefly introduce these two application scenarios:
[0292] Application scenario 1: MRI (Magnetic Resonance Imaging) image conversion
[0293] When the above solution is applied to the MRI image conversion scenario, the computer device can convert an MRI sequence into an MRI sequence, for example, convert a T1-weighted image into a T2-weighted image.
[0294] For example, in application scenario one, the first image may be a T1-weighted image; the second image may be a T2-weighted image, the first modality image samples may include one or more T1-weighted image samples, and the second modality image samples may include one or more T2-weighted image samples. After acquiring the T1-weighted image, the modality conversion network may perform modality conversion processing on the T1-weighted image to obtain a T2-weighted image.
[0295] Application scenario 2: Image style transfer
[0296] When the above scheme is applied to an image style conversion scenario, a computer device can convert an image of one style into an image of another style, but the subject in the image remains unchanged, for example, converting a modern style image into a classical style image.
[0297] For example, in application scenario two, the first image may be a modern image; the second image may be a classical image, the first modal image sample may be composed of one or more modern image samples, and the second modal image sample may be one or more classical image samples. After acquiring the modern image, the modal conversion network can perform modal conversion processing on the modern image to obtain the classical image.
[0298] Application scenario 1: MRI (Magnetic Resonance Imaging) image conversion
[0299] For example, please refer to Fig.11 , Fig.11 : is a flowchart of an MRI image conversion method provided by an embodiment of the present application. The MRI image conversion method can be executed by a computer device, for example, the computer device can be the above-mentioned Figure 1 The service device 130 shown, or the computer device mentioned above, may also be other computer devices, such as a server, or a personal computer, etc. The MRI image conversion method mentioned above may include the following steps.
[0300] Step 1101: Acquire a first image, where the first image is an image of an imaging object in one of two different medical image modalities.
[0301] The two different medical image modalities mentioned above may include: two of: T1-weighted image, T2-weighted image, diffusion-weighted imaging, diffusion-weighted imaging and magnetic resonance spectroscopy imaging.
[0302] Step 1102: Input the first image into a modality conversion network; the modality conversion network is obtained by updating image samples of two different medical image modalities and an objective function; the objective function includes an intra-domain loss function and an inter-domain loss function, the intra-domain loss function is used to indicate the difference between the image before and after reconstruction when the modality remains unchanged, and the inter-domain loss function is equivalent to indicating the difference between image features of different modalities.
[0303] Step 1103: Perform modality conversion processing on the first image through a modality conversion network to obtain a second image; the second image is an image of the imaging object in another modality of the two different medical image modalities.
[0304] For application scenario 2: image style transfer
[0305] For example, please refer to Fig.12 , Fig.12 : is a flowchart of an image style conversion method provided by an embodiment of the present application. The image style conversion method can be executed by a computer device, for example, the computer device can be the above-mentioned Figure 1 The service device 130 shown, or the computer device mentioned above, may also be other computer devices, such as a server, or a personal computer, etc. The MRI image conversion method mentioned above may include the following steps.
[0306] Step 1201: Acquire a first image, where the first image is an image of an imaging object in one of two different style image modes.
[0307] The two different style image modalities mentioned above may include two of: a classical style image modality, a modern style image modality, a cartoon style image modality, a realistic style image modality, an abstract style image modality and a hand-painted style image modality.
[0308] Step 1202: Input the first image into a modality transfer network; the modality transfer network is obtained by updating image samples of two different style image modalities and an objective function; the objective function includes an intra-domain loss function and an inter-domain loss function, the intra-domain loss function is used to indicate the difference between the image before and after reconstruction when the modality remains unchanged, and the inter-domain loss function is equivalent to indicating the difference between image features of different modalities.
[0309] Step 1203: Perform modality conversion processing on the first image through a modality conversion network to obtain a second image; the second image is an image of the imaging object in another modality of the two different style image modalities.
[0310] The above is only an embodiment of the present application and should not be regarded as limiting the present application. Professionals should understand that various deformations and modifications can be made to the embodiments to adapt to different application requirements. Therefore, the scope of the present application should be limited by the claims attached to the claims.
[0311] Please refer to Fig.13 , which shows a block diagram of an image processing device provided by an exemplary embodiment of the present application, the image processing device can be implemented as all or part of a computer device by hardware or a combination of hardware and software to achieve the above Figure 2 , Figure 3 , Figure 5 as well as Figure 6 All or part of the steps in the embodiments shown. Fig.13 As shown, the input image processing device includes:
[0312] An image acquisition module 1301 is used to acquire a first image, where the first image is an image of an imaging object in one of two different modalities;
[0313] An image input module 1302 is used to input a first image into a modality conversion network; the modality conversion network is trained by image samples of two different modalities and an objective function; the objective function includes an intra-domain loss function and an inter-domain loss function, the intra-domain loss function is used to indicate the difference between the image before and after reconstruction when the modality remains unchanged, and the inter-domain loss function is used to indicate the difference between image features of different modalities;
[0314] The modality conversion module 1303 is used to perform modality conversion processing on the first image through a modality conversion network to obtain a second image; the second image is an image of the imaging object in the other modality of the two different modalities.
[0315] In some embodiments, the two different modalities include a first modality and a second modality, and the first image is an image of the first modality; the modality conversion network includes a feature extraction subnetwork, a filtering subnetwork, and a mapping matrix; the filtering subnetwork includes a filtering matrix corresponding to the second modality;
[0316] The modality conversion module 1303 is used to perform feature extraction processing on the first image through a feature extraction subnetwork to obtain feature coding of the first image; perform modality mapping processing on the feature coding of the first image through a mapping matrix to obtain feature coding under a second modality; perform image reconstruction processing on the feature coding under the second modality through a filter matrix corresponding to the second modality to obtain a second image.
[0317] In some embodiments, the two different modalities include a first modality and a second modality, and the first image is an image of the second modality; the modality conversion network includes a feature extraction subnetwork, a filtering subnetwork, and a mapping matrix; the filtering subnetwork includes a filtering matrix corresponding to the first modality;
[0318] The modality conversion module 1303 is used to perform feature extraction processing on the first image through a feature extraction subnetwork to obtain feature coding of the first image; perform modality mapping processing on the feature coding of the first image through a mapping matrix to obtain feature coding under the first modality; perform image reconstruction processing on the feature coding under the first modality through a filter matrix corresponding to the first modality to obtain a second image.
[0319] In some embodiments, the two different modalities include a first modality and a second modality; the image samples of the two different modalities include first modality image samples corresponding to the first modality, and second modality image samples corresponding to the second modality;
[0320] The above device also includes:
[0321] A first feature coding sample acquisition module is used to perform feature extraction processing on the first modality image sample through a modality conversion network before acquiring the first image, so as to obtain a first feature coding sample of the first modality;
[0322] A second feature coding sample acquisition module is used to perform feature extraction processing on the second modality image sample through the modality conversion network to obtain a second feature coding sample of the second modality;
[0323] An intra-domain loss function acquisition module is used to acquire an intra-domain loss function, where the intra-domain loss function is used to indicate a first image difference and a second image difference; the first image difference includes a difference between a first feature encoding sample reconstructed as an image of a first modality and an image sample of the first modality; the second image difference includes a difference between a second feature encoding sample reconstructed as an image of a second modality and an image sample of the second modality;
[0324] An inter-domain loss function acquisition module, used to acquire an inter-domain loss function, where the inter-domain loss function is used to indicate the difference between the first feature encoding sample and the second feature encoding sample;
[0325] The modality transfer network update module is used to update the modality transfer network according to the intra-domain loss function and the inter-domain loss function.
[0326] In some embodiments, the objective function further includes: a mapping loss function; and the apparatus further includes:
[0327] A mapping loss function acquisition module, used to acquire a mapping loss function; the mapping loss function is used to indicate the difference between the second feature coding sample after being mapped to the feature space of the first modality and the first feature coding sample; or the mapping loss function is used to indicate the difference between the first feature coding sample after being mapped to the feature space of the second modality and the second feature coding sample;
[0328] The modality transfer network update module is used to update the modality transfer network according to the intra-domain loss function, the inter-domain loss function and the mapping loss function.
[0329] In some embodiments, the modality conversion network includes a feature extraction subnetwork, a filtering subnetwork, and a mapping matrix; the filtering subnetwork includes a filtering matrix corresponding to the first modality and a filtering matrix corresponding to the second modality;
[0330] The first feature coding sample is a feature coding obtained by performing feature extraction processing on the first modality image sample through the feature extraction subnetwork, and the second feature coding sample is a feature coding obtained by performing feature extraction processing on the second modality image sample through the feature extraction subnetwork;
[0331] The first image difference includes the difference between the first feature coding sample after image reconstruction processing by the filter matrix corresponding to the first modality and the first modality image sample; the second image difference includes the difference between the second feature coding sample after image reconstruction processing by the filter matrix corresponding to the second modality and the second modality image sample;
[0332] The mapping loss function is used to indicate the difference between the second feature encoding sample and the first feature encoding sample after the modal mapping processing of the mapping matrix.
[0333] In some embodiments, the modal conversion network update module is used to update the filtering subnetwork, the feature extraction subnetwork and the mapping matrix in sequence according to the intra-domain loss function, the inter-domain loss function and the mapping loss function; wherein the filtering subnetwork, the feature extraction subnetwork and the mapping matrix are updated respectively by at least one of the intra-domain loss function, the inter-domain loss function and the mapping loss function.
[0334] In some embodiments, the modality conversion network update module is used to solve the first objective function in the process of updating the filtering subnetwork, using the first modality image samples, the second modality image samples, the first feature coding samples and the second feature coding samples as known information to update the filtering subnetwork; wherein the solution to the first objective function is the value of the filter matrix corresponding to the first modality and the value of the filter matrix corresponding to the second modality when the value of the loss function in the domain is minimized.
[0335] In some embodiments, the modality conversion network update module is used to solve the second objective function in the process of updating the feature extraction subnetwork, using the first modality image samples, the second modality image samples, the first feature encoding samples and the second feature encoding samples as known information to update the feature extraction subnetwork; wherein the solution to the second objective function is the parameters of the feature extraction subnetwork when the values of the intra-domain loss function and the mapping loss function are minimized and the values of the inter-domain loss function are maximized.
[0336] In some embodiments, the modal conversion network update module is used to solve the third objective function using the first feature encoding sample and the second feature encoding sample as known information in the process of updating the mapping matrix to update the mapping matrix; wherein the solution to the third objective function is the value of the mapping matrix when the value of the mapping loss function is minimized.
[0337] Please refer to Fig.14 , which shows a block diagram of a training device for a modality conversion network provided by an exemplary embodiment of the present application. The image processing device can be implemented as all or part of a computer device by hardware or a combination of hardware and software to implement all or part of the training steps in the above embodiment. Fig.14 As shown, the input training device comprises:
[0338] The first feature coding sample acquisition module 1401 is used to perform feature extraction processing on the first modality image samples corresponding to the first modality through the modality conversion network to obtain the first feature coding samples of the first modality.
[0339] The second feature coding sample acquisition module 1402 is used to perform feature extraction processing on the second modality image samples corresponding to the second modality through the modality conversion network to obtain the second feature coding samples of the second modality.
[0340] The intra-domain loss function acquisition module 1403 is used to obtain the intra-domain loss function, which is used to indicate the first image difference and the second image difference; the first image difference includes the difference between the first feature encoding sample after being reconstructed into the image of the first modality and the first modality image sample; the second image difference includes the difference between the second feature encoding sample after being reconstructed into the image of the second modality and the second modality image sample.
[0341] The inter-domain loss function acquisition module 1404 is used to acquire an inter-domain loss function, where the inter-domain loss function is used to indicate the difference between the first feature encoding sample and the second feature encoding sample.
[0342] The modality conversion network updating module 1405 is used to update the modality conversion network according to the intra-domain loss function and the inter-domain loss function.
[0343] Among them, the updated modality conversion network is used to perform modality conversion processing on the first image to obtain the second image; the first image is an image of the imaging object in one of the first modality and the second modality, and the second image is an image of the imaging object in the other of the first modality and the second modality.
[0344] Please refer to Fig.15 , Fig.15 15 is a schematic diagram of the structure of a computer device provided by an exemplary embodiment of the present application. The computer device 1500 includes a central processing unit (CPU) 1501, a system memory 1504 including a random access memory (RAM) 1502 and a read-only memory (ROM) 1503, and a system bus 1505 connecting the system memory 1504 and the central processing unit 1501. The computer device 1500 also includes a basic input / output system (I / O system) 1506 for helping to transmit information between various devices in the computer, and a large-capacity storage device 1507 for storing an operating system 1513, application programs 1514 and other program modules 1515.
[0345] The basic input / output system 1506 includes a display 1508 for displaying information and an input device 1509 such as a mouse and a keyboard for user inputting information. The display 1508 and the input device 1509 are connected to the central processing unit 1501 through an input / output controller 1510 connected to the system bus 1505. The basic input / output system 1506 may also include an input / output controller 1510 for receiving and processing inputs from a plurality of other devices such as a keyboard, a mouse, or an electronic stylus. Similarly, the input / output controller 1510 also provides output to a display screen, a printer, or other types of output devices.
[0346] The mass storage device 1507 is connected to the central processing unit 1501 through a mass storage controller (not shown) connected to the system bus 1505. The mass storage device 1507 and its associated computer readable medium provide non-volatile storage for the computer device 1500. That is, the mass storage device 1507 may include a computer readable medium (not shown) such as a hard disk or a CD-ROM (Compact Disc Read-Only Memory) drive.
[0347] Without loss of generality, the computer-readable medium may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include RAM (Random Access Memory), ROM (Read-Only Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory or other solid-state storage technologies, CD-ROM, DVD (Digital Video Disc) or other optical storage, cassettes, tapes, disk storage or other magnetic storage devices. Of course, those skilled in the art will know that the computer storage media is not limited to the above. The above-mentioned system memory 1504 and mass storage device 1507 can be collectively referred to as memory.
[0348] The computer device 1500 can be connected to the Internet or other network devices through a network interface unit 1511 connected to the system bus 1505 .
[0349] The memory also includes one or more programs, which are stored in the memory. The central processing unit 1501 implements the one or more programs by executing the one or more programs. Figure 2 , Figure 3 , Figure 5 as well as Figure 6 All or part of the steps in the method shown.
[0350] In an exemplary embodiment, a chip is also provided, which includes a programmable logic circuit and / or program instructions. When the chip runs on a computer device, it is used to implement all or part of the steps of the method shown in the above embodiments of the present application.
[0351] In an exemplary embodiment, a computer program product is also provided, the computer program product includes computer instructions, the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor reads and executes the computer instructions from the computer-readable storage medium to implement all or part of the steps of the method shown in the above-mentioned various embodiments of the present application.
[0352] In an exemplary embodiment, a computer-readable storage medium is further provided, in which a computer program is stored. The computer program is loaded and executed by a processor to implement all or part of the steps of the method shown in the above-mentioned embodiments of the present application.
[0353] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0354] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.
[0355] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. An image processing method, characterized in that: The method comprises: Acquire a first image, wherein the first image is an image of an imaging object in one of two different modalities; the two different modalities include a first modality and a second modality; and the first image is an image of the first modality; Input the first image into a modality conversion network; the modality conversion network is trained by image samples of the two different modalities and an objective function; the objective function includes an intra-domain loss function and an inter-domain loss function, the intra-domain loss function is used to indicate the difference between the image before and after reconstruction when the modality remains unchanged, and the inter-domain loss function is used to indicate the difference between image features of different modalities; the modality conversion network includes a feature extraction subnetwork, a filtering subnetwork and a mapping matrix; the filtering subnetwork includes a filtering matrix corresponding to the second modality; Performing feature extraction processing on the first image through the feature extraction subnetwork to obtain feature encoding of the first image; Performing modality mapping processing on the feature code of the first image through the mapping matrix to obtain the feature code under the second modality; Image reconstruction processing is performed on the feature encoding under the second modality through a filter matrix corresponding to the second modality to obtain a second image; the second image is an image of the imaging object under the second modality.
2. The method according to claim 1, characterized in that The image samples of the two different modalities include first modality image samples corresponding to the first modality, and second modality image samples corresponding to the second modality; Before acquiring the first image, the method further includes: Performing feature extraction processing on the first modality image sample through the modality conversion network to obtain a first feature encoding sample of the first modality; Performing feature extraction processing on the second modality image sample through the modality conversion network to obtain a second feature encoding sample of the second modality; Acquire the intra-domain loss function, where the intra-domain loss function is used to indicate a first image difference and a second image difference; the first image difference includes a difference between the first feature coded sample after being reconstructed into an image of the first modality and an image sample of the first modality; the second image difference includes a difference between the second feature coded sample after being reconstructed into an image of the second modality and an image sample of the second modality; Acquire the inter-domain loss function, where the inter-domain loss function is used to indicate a difference between the first feature encoding sample and the second feature encoding sample; The modality conversion network is updated according to the intra-domain loss function and the inter-domain loss function.
3. The method according to claim 2, characterized in that The objective function also includes: a mapping loss function; the method also includes: Obtaining the mapping loss function; the mapping loss function is used to indicate the difference between the second feature coding sample and the first feature coding sample after the second feature coding sample is mapped to the feature space of the first modality; or the mapping loss function is used to indicate the difference between the first feature coding sample and the second feature coding sample after the first feature coding sample is mapped to the feature space of the second modality; The updating of the modality conversion network according to the intra-domain loss function and the inter-domain loss function includes: The modality conversion network is updated according to the intra-domain loss function, the inter-domain loss function and the mapping loss function.
4. The method according to claim 3, characterized in that The modal conversion network includes a feature extraction subnetwork, a filtering subnetwork and a mapping matrix; the filtering subnetwork includes a filtering matrix corresponding to the first modality and a filtering matrix corresponding to the second modality; The first feature coding sample is a feature coding obtained by performing feature extraction processing on the first modality image sample by the feature extraction sub-network, and the second feature coding sample is a feature coding obtained by performing feature extraction processing on the second modality image sample by the feature extraction sub-network; The first image difference includes the difference between the first feature coded sample after image reconstruction processing by the filter matrix corresponding to the first modality and the image sample of the first modality; the second image difference includes the difference between the second feature coded sample after image reconstruction processing by the filter matrix corresponding to the second modality and the image sample of the second modality; The mapping loss function is used to indicate the difference between the second feature coding sample and the first feature coding sample after the second feature coding sample is processed by the modal mapping of the mapping matrix.
5. The method according to claim 4, characterized in that The updating of the modality conversion network according to the intra-domain loss function, the inter-domain loss function and the mapping loss function comprises: According to the intra-domain loss function, the inter-domain loss function and the mapping loss function, sequentially updating the filtering sub-network, the feature extraction sub-network and the mapping matrix; The filtering subnetwork, the feature extraction subnetwork and the mapping matrix are respectively updated by at least one of the intra-domain loss function, the inter-domain loss function and the mapping loss function.
6. The method according to claim 5, characterized in that The updating of the filtering subnetwork, the feature extraction subnetwork and the mapping matrix in sequence according to the intra-domain loss function, the inter-domain loss function and the mapping loss function comprises: In the process of updating the filtering sub-network, taking the first modality image sample, the second modality image sample, the first feature encoding sample and the second feature encoding sample as known information, solving a first objective function to update the filtering sub-network; The solution of the first objective function is the value of the filter matrix corresponding to the first mode and the value of the filter matrix corresponding to the second mode when the value of the loss function in the domain is minimized.
7. The method according to claim 6, characterized in that The updating of the filtering subnetwork, the feature extraction subnetwork and the mapping matrix in sequence according to the intra-domain loss function, the inter-domain loss function and the mapping loss function comprises: In the process of updating the feature extraction subnetwork, taking the first modality image sample, the second modality image sample, the first feature encoding sample and the second feature encoding sample as known information, solving a second objective function to update the feature extraction subnetwork; The solution of the second objective function is the parameters of the feature extraction subnetwork when the values of the intra-domain loss function and the mapping loss function are minimized and the value of the inter-domain loss function is maximized.
8. The method according to claim 6, characterized in that The updating of the filtering subnetwork, the feature extraction subnetwork and the mapping matrix in sequence according to the intra-domain loss function, the inter-domain loss function and the mapping loss function comprises: In the process of updating the mapping matrix, taking the first feature coding sample and the second feature coding sample as known information, solving a third objective function to update the mapping matrix; The solution of the third objective function is the value of the mapping matrix when the value of the mapping loss function is minimized.
9. A training method for a modality conversion network, characterized in that: The method comprises: Performing feature extraction processing on a first modality image sample corresponding to a first modality through a modality conversion network to obtain a first feature encoding sample of the first modality; Performing feature extraction processing on the second modality image samples corresponding to the second modality through the modality conversion network to obtain second feature encoding samples of the second modality; Obtaining an intra-domain loss function, the intra-domain loss function being used to indicate a first image difference and a second image difference; the first image difference comprising a difference between the first feature coded sample after being reconstructed into an image of the first modality and an image sample of the first modality; the second image difference comprising a difference between the second feature coded sample after being reconstructed into an image of the second modality and an image sample of the second modality; Obtaining an inter-domain loss function, where the inter-domain loss function is used to indicate a difference between the first feature encoding sample and the second feature encoding sample; Updating the modality conversion network according to the intra-domain loss function and the inter-domain loss function; Among them, the modal conversion network includes a feature extraction subnetwork, a filtering subnetwork and a mapping matrix; the filtering subnetwork includes a filtering matrix corresponding to the second modality; the updated modal conversion network is used to perform feature extraction processing on the first image through the feature extraction subnetwork to obtain the feature coding of the first image, perform modal mapping processing on the feature coding of the first image through the mapping matrix to obtain the feature coding under the second modality, and perform image reconstruction processing on the feature coding under the second modality through the filtering matrix corresponding to the second modality to obtain the second image; the first image is an image of the imaging object under the first modality, and the second image is an image of the imaging object under the second modality.
10. An image processing device, characterized in that: The device comprises: An image acquisition module, configured to acquire a first image, wherein the first image is an image of an imaging object in one of two different modalities; the two different modalities include a first modality and a second modality; and the first image is an image of the first modality; An image input module, used for inputting the first image into a modality conversion network; the modality conversion network is obtained by training the image samples of the two different modalities and the objective function; the objective function includes an intra-domain loss function and an inter-domain loss function, the intra-domain loss function is used to indicate the difference between the image before and after reconstruction when the modality remains unchanged, and the inter-domain loss function is equivalent to indicating the difference between image features of different modalities; the modality conversion network includes a feature extraction subnetwork, a filtering subnetwork and a mapping matrix; the filtering subnetwork includes a filtering matrix corresponding to the second modality; A modality conversion module performs feature extraction processing on the first image through the feature extraction subnetwork to obtain feature coding of the first image; performs modality mapping processing on the feature coding of the first image through the mapping matrix to obtain feature coding under the second modality; performs image reconstruction processing on the feature coding under the second modality through the filter matrix corresponding to the second modality to obtain a second image; the second image is an image of the imaging object under the second modality.
11. A computer device, characterized in that: The computer device includes a processor and a memory, wherein the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the image processing method according to any one of claims 1 to 8.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one computer program, and the computer program is loaded and executed by a processor to implement the image processing method according to any one of claims 1 to 8.
13. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium; the computer instructions are read and executed by a processor of a computer device to implement the image processing method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Image target detection optimization method and device, electronic equipment and storage medium
CN111860494A
Cross-modal medical image registration method and device
CN111862174A
Image processing method and device for medical image, equipment and storage medium
CN114283151A
Image generation method and device, equipment, storage medium and computer program product
CN114612618A
Three-dimensional medical image modal transformation model training method and device
CN115797611A
