Image artifact removal method, image artifact removal model training method and device

Through multi-iteration stage processing and feature interaction, a priori structural features and chord map feature encoding are used to improve the metal artifact removal effect in CT images, solve the problems of long iteration time and low efficiency in the existing technology, and achieve a better Efficient image artifact removal.

CN118521670BActive Publication Date: 2024-10-29TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410971339.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-10-29
Estimated Expiration
2044-07-19

AI Technical Summary

Technical Problem

Existing deep learning-based metal artifact removal methods are not ideal in CT images, especially due to long iteration times and low computational efficiency due to the optimization algorithm and network structure design.

Method used

Using a multi-iterative stage processing method, through prior structural feature extraction and feature encoding processing, combined with chord diagrams and image reconstruction, the image quality is gradually improved and the artifact removal effect is improved.

Benefits of technology

Through multi-iteration stage processing and feature interaction, the artifact removal effect of images with artifacts is significantly improved, the iteration time is reduced, and the efficiency of image artifact removal is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118521670B_ABST
    Figure CN118521670B_ABST
Patent Text Reader

Abstract

The present application provides an image artifact removal method, an image artifact removal model training method and a device; the method includes: obtaining an artifact-bearing chord diagram and an artifact-bearing image; performing feature extraction processing on the reconstructed image of the first iteration stage to obtain the prior structure feature of the first iteration stage, wherein, when the first iteration stage is the first iteration stage among multiple iteration stages, the reconstructed image of the first iteration stage is an artifact-bearing image; performing feature encoding processing based on the prior structure feature of the first iteration stage and the artifact-bearing chord diagram to obtain the encoding feature of the first iteration stage; performing image reconstruction processing based on the encoding feature of the first iteration stage and the reconstructed image of the first iteration stage to obtain the reconstructed image of the second iteration stage; and using the reconstructed image of the final iteration stage among multiple iteration stages as the artifact-bearing image. Through the present application, the artifact removal effect of the artifact-bearing image can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to an image artifact removal method, and a training method and device for an image artifact removal model. Background Art

[0002] Computerized tomography (CT) images reconstructed based on X-ray projection play a very important role in clinical diagnosis and treatment planning. However, due to the presence of metal implants in patients, CT images always show artifacts such as stripes and shadows, which may affect clinical diagnosis.

[0003] To handle the metal artifact removal task (Metal Artifacts Reduction, MAR), the MAR methods based on deep learning in related technologies are mainly divided into three categories: chord diagram enhancement, CT image enhancement, and joint dual enhancement of chord diagram and CT image. Among them, the joint dual enhancement method based on chord diagram and CT image, such as the artifact removal method based on the idea of ​​unfolding, has achieved performance improvement, but due to the optimization algorithm and network structure design it adopts, the artifact removal effect is still not ideal. Summary of the invention

[0004] The embodiments of the present application provide an image artifact removal method, an image artifact removal model training method and a device, which can improve the artifact removal effect of an image with artifacts.

[0005] The technical solution of the embodiment of the present application is implemented as follows:

[0006] The present application provides a method for removing image artifacts, the method comprising:

[0007] Obtaining artifact-bearing chord diagrams and artifact-bearing images;

[0008] Performing feature extraction processing on the reconstructed image of the first iterative stage to obtain a priori structural features of the first iterative stage, wherein when the first iterative stage is the first iterative stage among multiple iterative stages, the reconstructed image of the first iterative stage is the image with artifacts;

[0009] Performing feature encoding processing based on the priori structural features of the first iterative stage and the chord diagram with artifacts to obtain encoding features of the first iterative stage;

[0010] Performing image reconstruction processing based on the encoding features of the first iterative stage and the reconstructed image of the first iterative stage to obtain a reconstructed image of the second iterative stage;

[0011] The reconstructed image at the final iteration stage in the multiple iteration stages is used as the artifact-removed image.

[0012] The present application embodiment provides a method for training an image artifact removal model, the method comprising:

[0013] Acquire a training data set, wherein the training data set includes original image samples, chord diagram samples with artifacts corresponding to the original image samples, image samples with artifacts corresponding to the chord diagram samples with artifacts, and implant masks, wherein the chord diagram samples with artifacts are obtained by transforming the implant masks and the original image samples;

[0014] Performing feature extraction processing on the reconstructed image samples of the first iterative stage to obtain a priori structural feature samples of the first iterative stage, wherein when the first iterative stage is the first iterative stage of the multiple iterative stages, the reconstructed image samples of the first iterative stage are the image samples with artifacts;

[0015] Performing feature encoding processing based on the priori structural feature samples of the first iterative stage and the chord diagram samples with artifacts to obtain encoded feature samples of the first iterative stage;

[0016] Performing image reconstruction processing based on the coded feature samples of the first iterative stage and the reconstructed image samples of the first iterative stage to obtain reconstructed image samples of the second iterative stage;

[0017] using the reconstructed image sample of the final iterative stage in the multiple iterative stages as the artifact-removed image sample;

[0018] determining a loss value based on a difference between the artifact-removed image sample and the original image sample;

[0019] The parameters of the initialized image artifact removal model are updated according to the loss value to obtain a trained image artifact removal model.

[0020] The present application provides an image artifact removal device, comprising:

[0021] A data acquisition module, used for acquiring a chord diagram with artifacts and an image with artifacts;

[0022] a data processing module, configured to perform feature extraction processing on a reconstructed image of a first iterative stage to obtain a priori structural features of the first iterative stage, wherein when the first iterative stage is the first iterative stage among multiple iterative stages, the reconstructed image of the first iterative stage is the image with artifacts, and when the first iterative stage is not the first iterative stage among the multiple iterative stages, the reconstructed image of the first iterative stage is the reconstructed image obtained in the previous iterative stage;

[0023] The data processing module is further used to perform feature coding processing based on the priori structural features of the first iterative stage and the chord diagram with artifacts to obtain the coding features of the first iterative stage;

[0024] The data processing module is further used to perform image reconstruction processing based on the encoding features of the first iterative stage and the reconstructed image of the first iterative stage to obtain a reconstructed image of the second iterative stage;

[0025] The data processing module is further configured to use the reconstructed image of the final iterative stage among the multiple iterative stages as the artifact-removed image.

[0026] The present application embodiment provides a training device for an image artifact removal model, comprising:

[0027] A data acquisition module, used to acquire a training data set, wherein the training data set includes an original image sample, a chord diagram sample with artifacts corresponding to the original image sample, an image sample with artifacts corresponding to the chord diagram sample with artifacts, and an implant mask, wherein the chord diagram sample with artifacts is obtained by transforming the implant mask and the original image sample;

[0028] A training module, used for performing feature extraction processing on the reconstructed image samples of the first iteration stage to obtain the priori structural feature samples of the first iteration stage, wherein when the first iteration stage is the first iteration stage among the multiple iteration stages, the reconstructed image samples of the first iteration stage are the image samples with artifacts, and when the first iteration stage is not the first iteration stage among the multiple iteration stages, the reconstructed image samples of the first iteration stage are the reconstructed image samples obtained in the previous iteration stage;

[0029] The training module is further used to perform feature encoding processing based on the priori structural feature samples of the first iterative stage and the chord diagram samples with artifacts to obtain the encoded feature samples of the first iterative stage;

[0030] The training module is further used to perform image reconstruction processing based on the coded feature samples of the first iterative stage and the reconstructed image samples of the first iterative stage to obtain the reconstructed image samples of the second iterative stage;

[0031] The training module is further configured to use the reconstructed image sample of the final iterative stage in the multiple iterative stages as the artifact-removed image sample;

[0032] The training module is further used to determine a loss value based on a difference between the artifact-removed image sample and the original image sample;

[0033] The training module is also used to update the parameters of the initialized image artifact removal model according to the loss value to obtain a trained image artifact removal model.

[0034] An embodiment of the present application provides an electronic device, the electronic device comprising:

[0035] A memory for storing computer executable instructions;

[0036] The processor is used to implement the image artifact removal method provided in the embodiment of the present application or the artifact removal model training method provided in the embodiment of the present application when executing the computer executable instructions stored in the memory.

[0037] An embodiment of the present application provides a computer-readable storage medium storing a computer program or computer-executable instructions for implementing the image artifact removal method provided in the embodiment of the present application or the artifact removal model training method provided in the embodiment of the present application when executed by a processor.

[0038] An embodiment of the present application provides a computer program product, including a computer program or computer executable instructions. When the computer program or computer executable instructions are executed by a processor, the image artifact removal method provided by the embodiment of the present application or the artifact removal model training method provided by the embodiment of the present application is implemented.

[0039] The embodiments of the present application have the following beneficial effects:

[0040] The present application obtains an artifact-removed image by performing multiple iterative stages of processing on a chord diagram with artifacts and an image with artifacts, wherein, by extracting a priori structural features from the reconstructed image of the first iterative stage, since the priori structural features can reflect the priori structural features in the reconstructed image, it is helpful to accurately distinguish the priori structure from the artifacts during image reconstruction in the second iterative stage, thereby improving the effect of image artifact removal; by performing feature encoding based on the priori structural features of the reconstructed image of the first iterative stage and the chord diagram with artifacts to obtain the encoding features of the first iterative stage, the information interaction between the chord diagram with artifacts and the reconstructed image is deepened, and by guiding the generation of the reconstructed image of the second iterative stage based on the encoding features of the first iterative stage combined with the priori structural features, the quality of the reconstructed image generated in multiple iterative processes is continuously improved, thereby improving the artifact removal effect of the image with artifacts obtained by the reconstruction processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 It is a structural schematic diagram of the image artifact removal system architecture provided in an embodiment of the present application;

[0042] Figure 2A is a first structural diagram of a server provided in an embodiment of the present application;

[0043] Figure 2B is a second structural diagram of a server provided in an embodiment of the present application;

[0044] Figure 3 is a structural schematic diagram of an image artifact removal model provided in an embodiment of the present application;

[0045] Figure 4A It is a first flow chart of the method for removing image artifacts provided in an embodiment of the present application;

[0046] Figure 4B is a second flow chart of the image artifact removal method provided in an embodiment of the present application;

[0047] Figure 4C is a third flow chart of the image artifact removal method provided in an embodiment of the present application;

[0048] Figure 4D is a fourth flow chart of the image artifact removal method provided in an embodiment of the present application;

[0049] Figure 4E is a fifth flow chart of the image artifact removal method provided in an embodiment of the present application;

[0050] Figure 4F is a sixth flow chart of the image artifact removal method provided in an embodiment of the present application;

[0051] Figure 4G is a seventh flow chart of the image artifact removal method provided in an embodiment of the present application;

[0052] Figure 4H is an eighth flow chart of the image artifact removal method provided in an embodiment of the present application;

[0053] Figure 5A It is a first flow chart of the training method of the image artifact removal model provided in the embodiment of the present application;

[0054] Figure 5B It is a second flow chart of the training method of the image artifact removal model provided in the embodiment of the present application;

[0055] Fig. 6A It is a first schematic diagram of the application process of the image artifact removal method provided in the embodiment of the present application;

[0056] Figure 6B is a second schematic diagram of the application process of the image artifact removal method provided in an embodiment of the present application;

[0057] Figure 7 It is a flowchart of an image artifact removal method in a medical image artifact removal scenario provided by an embodiment of the present application;

[0058] Fig. 8A It is a first schematic diagram of an optional structure of a priori structure extraction network provided in an embodiment of the present application;

[0059] Figure 8B is a second schematic diagram of an optional structure of a priori structure extraction network provided in an embodiment of the present application;

[0060] Figure 8C is a third schematic diagram of an optional structure of a priori structure extraction network provided in an embodiment of the present application;

[0061] Fig.8D It is an implementation flow chart of the image artifact removal method and the image artifact removal model training method provided in the embodiments of the present application.

[0062] It should be pointed out that the above-mentioned "first" and "second" are only used to distinguish different solutions, and do not represent the degree of superiority or inferiority of the solutions or the priority in the implementation process. DETAILED DESCRIPTION

[0063] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0064] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0065] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0066] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program that has a predetermined function and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories), or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.

[0067] Unless otherwise defined, all technical and scientific terms used in the embodiments of the present application have the same meanings as those commonly understood by those skilled in the art. The terms used in the embodiments of the present application are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.

[0068] The relevant data collection and processing in the embodiments of this application should be strictly in accordance with the requirements of relevant national laws and regulations when applied in examples, obtain the informed consent or separate consent of the personal information subject, and carry out subsequent data use and processing within the scope of authorization of laws and regulations and the personal information subject.

[0069] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0070] 1) Artifact images refer to images contaminated by artifacts (such as CT images with metal artifacts). Artifacts refer to signals in the image that do not match the actual structure and can appear as image deformation, overlap, missing, blur, etc.

[0071] 2) The artifact chord diagram refers to the projection distribution diagram corresponding to the artifact image, which can be represented as a series of overlapping images of sine curves in the chord space. The artifact chord diagram and the artifact image can be converted into each other. For example, the artifact image can be forward projected (or called Radon transform) to obtain the artifact chord diagram corresponding to the artifact image; the artifact chord diagram can be reversely projected (or called Radon transpose transform) to obtain the artifact image corresponding to the artifact chord diagram.

[0072] 3) Medical images refer to images of internal tissues of a specific object or a part of a specific object obtained in a non-invasive manner for medical treatment or medical research. The present application embodiment does not limit the type of medical images, for example, it can be a CT image. It is worth noting that the objects involved in the present application embodiment generally refer to objects with entities, such as the human body or the body of other animals.

[0073] 4) Transformer, a deep learning model based on the self-attention mechanism, is mainly used for sequence-to-sequence natural language processing tasks, such as machine translation, text summarization, etc. The Transformer model mainly consists of two parts: the encoder and the decoder, which are responsible for processing the input sequence and generating the output sequence respectively. The self-attention mechanism enables the Transformer to capture long-distance dependencies in the sequence without using a recurrent neural network or a convolutional neural network structure.

[0074] 5) Reconstructed image is an image recovered from a known image. For example, by collecting known images of the object (such as chord images with artifacts), the original image can be reconstructed using artificial intelligence technology.

[0075] 6) Prior structural features are some prior assumptions or knowledge about the intrinsic features of the image, which can help the algorithm better understand the image and make more accurate inferences. Prior structural features can include features such as statistical characteristics, geometric properties, and visual laws of the image.

[0076] For example, a priori structural features may include:

[0077] Features of edges and contours: Objects in images are usually defined by edges and contours, which reflect the shape and structure of different parts of the object. For example, the edges of different parts of the human body usually have specific shapes and arrangements, and this prior information can be used for face detection and recognition.

[0078] Texture and pattern features: Texture and pattern in an image are visual features of the object surface, which are very important for identifying and classifying different parts of an object. For example, different types of parts may have different textures and patterns.

[0079] Shape and size features: The shapes and sizes of different parts of an object are important information in image analysis. For example, different parts of the human body usually have specific sizes, and this information can be used to detect and classify different parts.

[0080] Characteristics of spatial relationships: There are specific spatial relationships between different parts of the object in the image, for example, one part may be in front of or behind another part.

[0081] 7) Implant mask refers to a binary image used to identify the area where the implant is located in the image. Taking the implant as metal as an example, the implant mask (i.e., metal mask) can be created by detecting the density and shape of the metal object, such as marking the metal area in the image as a specific value (e.g., 1) and marking the non-metal area as another value (e.g., 0).

[0082] In the related technologies, the MAR methods based on deep learning are mainly divided into three categories: chord diagram enhancement, CT image enhancement, and joint dual enhancement of chord diagram and CT image. Among them, the joint dual enhancement method based on chord diagram and CT image, such as the de-artifacting method based on the idea of ​​unfolding, has achieved performance improvement, but due to the optimization algorithm and network structure design adopted, the network iteration time is long and the computational efficiency is low, and the de-artifacting effect is still not ideal.

[0083] The embodiments of the present application provide an image artifact removal method, an image artifact removal model training method, an apparatus, a device, a computer-readable storage medium, and a computer program product, which can improve the artifact removal effect of an image with artifacts.

[0084] The following describes exemplary applications of the device provided in the embodiments of the present application. The electronic device provided in the embodiments of the present application can be implemented as various types of terminal devices such as medical terminals, laptop computers, tablet computers, desktop computers, set-top boxes, smart phones, smart speakers, smart watches, smart TVs, and vehicle-mounted terminals, and can also be implemented as servers.

[0085] See also Figure 1 , Figure 1 is a structural diagram of the image artifact removal system architecture provided in an embodiment of the present application, Figure 1 The server 100, the terminal device 200 and the network 300 are involved. The terminal device 200 is connected to the server 100 via the network 300, wherein the network 300 can be a wide area network or a local area network, or a combination of the two.

[0086] The image artifact removal system provided in the embodiments of the present application can be used in medical image artifact removal scenarios, which is illustrated below with examples.

[0087] 1) Evaluation after joint replacement surgery: After joint replacement surgery, patients usually need to undergo regular CT scans to evaluate the status of metal implants and the health of surrounding tissues. Since metal implants can cause image artifacts and affect the accuracy of diagnosis, metal artifact removal technology is needed to improve image quality.

[0088] 2) Assessment of fracture healing: During fracture treatment, CT imaging is often required to monitor the progress of healing. Metal fixators such as plates or nails may produce artifacts on the images, and the use of artifact removal technology can help to more accurately assess fracture healing.

[0089] 3) Cardiac imaging: After cardiac interventional surgery, patients may have metal stents implanted. During cardiac CT scans, these metal objects will produce significant artifacts, affecting the assessment of cardiac structure and function.

[0090] 4) Cranial imaging: After brain surgery, metal clips or other devices may cause CT image artifacts, thereby interfering with the judgment of brain tissue damage and tumor resection.

[0091] 5) Examination of other metallic foreign bodies in the body: When there are other metallic foreign bodies in the patient's body, such as surgical remains or accidentally ingested metal objects, these foreign bodies will produce artifacts in the CT images and require specialized technology for evaluation.

[0092] 6) Radiotherapy planning: In radiotherapy, it is very important to accurately locate the metal implants in the patient's body. Artifact removal helps improve the accuracy of radiotherapy and avoid damage to surrounding normal tissues.

[0093] 7) Evaluation of infection or inflammation around metal implants: Infection or inflammation around metal implants may not be obvious on imaging, and the use of artifact removal technology can help detect and evaluate these problems more accurately.

[0094] In some embodiments, the embodiments of the present application can be implemented collaboratively by a server and a terminal device. For example, the server 100 obtains an image artifact removal model through the training method of the image artifact removal model provided in the embodiments of the present application, the terminal device 200 sends the artifact chord diagram and the artifact image to the server 100, the server 100 obtains an artifact-removed image through the image artifact removal method provided in the embodiments of the present application, and sends the artifact-removed image to the terminal device 200 for display.

[0095] Here, the server 100 may be a single server. In this case, the image artifact removal method and the image artifact removal model training method provided in the embodiment of the present application may be implemented by the same server. The server 100 may also be a server cluster. In the case where the server 100 is a server cluster, the image artifact removal method and the image artifact removal model training method provided in the embodiment of the present application may be implemented by different servers, which is not limited in the embodiment of the present application.

[0096] In other embodiments, the embodiments of the present application may be implemented by a terminal device alone. The terminal device 200 sends a request to the server 100, and the server 100 receives the request and sends an image artifact removal model for performing the image artifact removal method provided in the embodiment of the present application to the terminal device 200. The terminal device 200 receives the image artifact removal model sent by the server and downloads it locally, and obtains an artifact-removed image through the image artifact removal model.

[0097] In some embodiments, the terminal device or server can implement the image artifact removal method or the training method of the image artifact removal model provided in the embodiment of the present application by running various computer executable instructions or computer programs. For example, the computer executable instructions can be microprogram-level commands, machine instructions or software instructions. The computer program can be a native program or software module in the operating system. In short, the above-mentioned computer executable instructions can be instructions in any form, and the above-mentioned computer program can be an application, module or plug-in in any form.

[0098] Take the server for image artifact removal as an example, see Figure 2A , Figure 2Ais a first structural diagram of a server provided in an embodiment of the present application, Figure 2A The server 100-1 shown includes: at least one processor 110-1, a memory 130-1 and at least one network interface 120-1. The various components in the server 100-1 are coupled together via a bus system 140-1. It is understood that the bus system 140-1 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 140-1 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 140-1 is not described in detail. Figure 2A Various buses are labeled as bus system 140 - 1 .

[0099] Processor 110 - 1 may be an integrated circuit chip having signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., wherein the general-purpose processor may be a microprocessor or any conventional processor, etc.

[0100] Memory 130-1 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard disk drives, optical disk drives, etc. Memory 130-1 may optionally include one or more storage devices that are physically remote from processor 110-1.

[0101] The memory 130-1 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 130-1 described in the embodiment of the present application is intended to include any suitable type of memory.

[0102] In some embodiments, the memory 130 - 1 is capable of storing data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.

[0103] Operating system 131-1, including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;

[0104] A network communication module 132-1, used to reach other electronic devices via one or more (wired or wireless) network interfaces 120-1, exemplary network interfaces 120-1 include: Bluetooth, Wireless LAN (WiFi), and Universal Serial Bus (USB), etc.;

[0105] In some embodiments, the device provided in the embodiments of the present application can be implemented in software. Figure 2A The image artifact removal device 133 stored in the memory 130-1 is shown, which can be software in the form of a program and a plug-in, etc., including the following software modules: a data acquisition module 1331 and a data processing module 1332. These modules are logical, so they can be arbitrarily combined or further split according to the functions implemented. The functions of each module will be explained below.

[0106] Take the server for training the image artifact removal model as an example, see Figure 2B , Figure 2B is a second structural diagram of a server provided in an embodiment of the present application, Figure 2B The server 100-2 shown includes: at least one processor 110-2, a memory 130-2 and at least one network interface 120-2. The various components in the server 100-2 are coupled together via a bus system 140-2. It is understood that the bus system 140-2 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 140-2 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 140-2 is not described in detail. Figure 2B Various buses are labeled as bus system 140-2. For the detailed description of processor 110-2 and memory 130-2, please refer to the above, which will not be repeated here.

[0107] In some embodiments, the device provided in the embodiments of the present application can be implemented in software. Figure 2B The training device 134 of the image artifact removal model stored in the memory 130-2 is shown, which can be software in the form of a program and a plug-in, etc., including the following software modules: a data acquisition module 1341 and a training module 1342. These modules are logical, so they can be arbitrarily combined or further split according to the functions implemented. The functions of each module will be explained below.

[0108] In other embodiments, the device provided in the embodiments of the present application can be implemented in hardware. As an example, the device provided in the embodiments of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the image artifact removal method or the image artifact removal model training method provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor can adopt one or more application specific integrated circuits (Application Specific Integrated Circuit, ASIC), digital signal processors (Digital Signal Processor, DSP), programmable logic devices (Programmable Logic Device, PLD), complex programmable logic devices (Complex Programmable Logic Device, CPLD), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other electronic components.

[0109] See also Figure 3 , Figure 3 It is a structural schematic diagram of an image artifact removal model provided in an embodiment of the present application. The image artifact removal model may include an encoder, a priori structure extraction network and a decoder, wherein the priori structure extraction network can be used to extract features of an input image with artifacts or a reconstructed image in a first iterative stage to obtain a priori structural features; the encoder can be used to perform feature encoding processing based on the priori structural features of the first iterative stage and the chord diagram with artifacts to obtain the encoding features of the first iterative stage; the decoder can be used to perform image reconstruction processing based on the encoding features of the first iterative stage and the reconstructed image of the first iterative stage to obtain the reconstructed image of the second iterative stage. Finally, when multiple iterative stages are completed, the reconstructed image of the final iterative stage in the multiple iterative stages is output as an artifact removal image.

[0110] The following will combine the exemplary application and implementation of the server provided in the embodiment of the present application, taking the server as the execution subject, to illustrate the image artifact removal method provided in the embodiment of the present application. Figure 4A , Figure 4A is a first flow chart of the method for removing image artifacts provided in the embodiment of the present application, which will be combined with Figure 4A The steps shown are explained.

[0111] In step 101, a chord diagram with artifacts and an image with artifacts are obtained.

[0112] In some embodiments, an image with artifacts may be first acquired, for example, by a medical imaging device (such as a CT scanner, a magnetic resonance imaging device, etc.), and then a corresponding chord diagram with artifacts may be generated according to the image with artifacts. For example, the corresponding chord diagram with artifacts may be obtained by performing a forward projection process (or Radon transform) on the image with artifacts.

[0113] In other embodiments, a chord diagram with artifacts may be first obtained, for example, by using an imaging device such as a CT scanner to obtain projection data, the projection data including ray projections at multiple angles, and then the acquired projection data is input into a reconstruction algorithm to generate a chord diagram with artifacts, and then a corresponding image with artifacts is generated based on the chord diagram with artifacts. For example, the corresponding image with artifacts is obtained by performing a reverse projection process on the chord diagram with artifacts. The embodiment of the present application does not limit the order of obtaining the chord diagram with artifacts and the image with artifacts, and the chord diagram with artifacts and the image with artifacts may also be obtained at the same time, wherein the reverse projection process may be a Radon transpose transform.

[0114] Here, the artifact image and the artifact chord diagram are a group of images of the same part of the same object. For example, the above-mentioned part can be the head, chest, hand, leg, abdomen, etc., and the embodiment of the present application is not limited to this.

[0115] In step 102, feature extraction processing is performed on the reconstructed image of the first iteration stage to obtain the priori structural features of the first iteration stage, wherein when the first iteration stage is the first iteration stage among multiple iteration stages, the reconstructed image of the first iteration stage is an image with artifacts.

[0116] In some embodiments, when the first iteration stage is the first iteration stage among multiple iteration stages, the reconstructed image of the first iteration stage is an image with artifacts; when the first iteration stage is not the first iteration stage among multiple iteration stages, the reconstructed image of the first iteration stage is the reconstructed image obtained in the previous iteration stage.

[0117] Taking N iteration stages as an example, the reconstructed image of the nth iteration stage (expressed as ) to perform a priori structure extraction processing to obtain the priori structure features of the nth iteration stage, where n is an integer greater than or equal to 0 and less than N-1. The iteration processing is performed in the following manner:

[0118] When n=0, it is currently in the first iteration stage, and the reconstructed image in the first iteration stage is an image with artifacts (i.e. is an image with artifacts), when n>0, the reconstructed image of the current iteration stage is the reconstructed image obtained in the previous iteration stage (i.e., n-1 iteration stage). For example, when n=0, After an iterative stage, the reconstructed image is obtained , when n=1, After an iterative stage, the reconstructed image is obtained , and so on.

[0119] In some embodiments, see Figure 4B , Figure 4A The step 102 shown can be implemented by following the steps 1021 to 1023, which are described in detail below.

[0120] In step 1021 , image features are extracted from the reconstructed image in the first iteration stage.

[0121] In some embodiments, see Figure 4C , Figure 4B The step 1021 shown can be implemented by following the steps 10211 to 10231, which are described in detail below.

[0122] In step 10211, multi-scale convolution processing is performed on the reconstructed image of the first iterative stage to obtain convolution features of multiple scales.

[0123] In some embodiments, a plurality of convolution layers with convolution kernels of different sizes may be used to perform multi-scale convolution processing on the reconstructed image of the first iteration stage in parallel to obtain convolution features of multiple scales.

[0124] For example, convolution kernels of different sizes can be , as well as , through these three sizes of convolution kernels, the reconstructed images of the first iteration stage are convolved in parallel on the three branches to obtain the convolution features corresponding to the three branches. The size of the feature map of the output convolution feature can be calculated by the following formula: Output feature map size = (input feature map size Convolution kernel size 2 padding) / step length 1. Assuming that the feature map size of the input reconstructed image is 224 224, respectively , as well as The convolution kernels of these three sizes are convolved. When the step size is 1 and the padding is 0, the sizes of the feature maps corresponding to the features of multiple scales are 224 respectively. 224, 222 222 and 214 214.

[0125] In step 10212, pooling processing is performed on the reconstructed image of the first iteration stage to obtain pooling features.

[0126] In some embodiments, the reconstructed image of the first iteration stage may be pooled by a pooling layer to obtain pooling features. For example, pooling may be performed by using a pooling method such as maximum pooling, average pooling, etc.

[0127] Among them, maximum pooling refers to selecting the maximum pixel value in each pooling window as the output of the window. Specifically, for a given input feature map, maximum pooling defines a sliding window that slides on the feature map with a certain step size. At each window position, the pooling operation selects the maximum value in the window as the output. In this way, each output pixel is determined by comparing all possible pixel values ​​in the window, thereby retaining the most significant features in the input feature map;

[0128] Average pooling refers to calculating the average value of all pixel values ​​in each pooling window as the output of the window. Similar to maximum pooling, average pooling also uses a sliding window to slide on the input feature map and calculates the average of all pixel values ​​in the window at each window position.

[0129] In step 10213, features of multiple scales and pooling features are fused to obtain image features of the reconstructed image in the first iteration stage.

[0130] In some embodiments, features at multiple scales are concatenated with pooled features to obtain image features of a reconstructed image in a first iteration stage.

[0131] For example, assume that the feature map size of the input reconstructed image is 224 224, the size of the feature map corresponding to the features of multiple scales is 112 112, 56 56, 28 28, the feature map size of the pooled feature is 14 14. Before concatenation, the size of each feature map can be adjusted by upsampling or interpolation. For example, bilinear interpolation or transposed convolution can be used to unify the feature map size to 112. 112, assuming that the number of channels of each feature map is 32, the feature map of the spliced ​​image features can be expressed as 112 112 128 (32 4).

[0132] For example, as an alternative to steps 10211 to 10213, the image features may be local invariant features, which refer to features with stability and discrimination in the reconstructed image, and can remain unchanged after the image undergoes geometric transformations (such as rotation, scaling, translation, etc.), illumination changes, and scale changes. In other words, local invariant features are features that can describe the characteristics of local areas in the image and remain unchanged to changes in these areas. Local invariant features reflect the microscopic structure of the image, such as the relationship between pixels and their neighborhoods.

[0133] For example, the local invariant feature can be a scale-invariant feature transform (SIFT) feature, which can provide a description of each key point in the image that is invariant to rotation, scaling, and brightness changes. The local invariant feature can also be a speeded-up robust feature (SURF), which uses an integral image to detect and describe feature points, and determines the key points through the determinant of the Hessian matrix. Through the stable characteristics of the local invariant feature, the image features of the non-metallic area remain consistent under different viewing angles, lighting, etc.

[0134] Continue to see Figure 4B In step 1022, the image features are divided into a plurality of image feature blocks, and the plurality of image feature blocks are arranged into an image feature block sequence.

[0135] In some embodiments, the image features of the reconstructed image in the first iteration stage are divided into multiple image feature blocks (Patches) according to a preset feature block division size, and the multiple image feature blocks are arranged (such as in order from left to right and from top to bottom) as an image feature block sequence, and the image feature block sequence is used as an input unit (InputTokens) for encoding processing.

[0136] For example, assume that the feature map size of the reconstructed image in the first iteration stage is ,according to After dividing the patch of different sizes, we can get Patches, and then arrange the 196 Patches in the order from the upper left to the lower right in the reconstructed image to obtain the image feature block sequence.

[0137] In step 1023, the image feature block sequence is encoded to obtain a priori structural features of the first iterative stage.

[0138] In some embodiments, see Figure 4D , Figure 4B Step 1023 shown can be implemented by following steps 10231 to 10237, which are described in detail below.

[0139] In step 10231, the image feature block sequence is embedded and coded to obtain embedded features.

[0140] In some embodiments, the image feature block sequence may be embedded and encoded through an embedding layer to obtain embedded features. For example, the image feature block sequence may be convolved through a convolution operation in the embedding layer, and the image feature block sequence after the convolution operation may be position encoded to obtain embedded features.

[0141] For example, the image feature block corresponding to each patch can be flattened into a one-dimensional vector before embedding coding. 16 3, the length of the flattened vector is 768, and the position coding process can be generated by a fixed algorithm, for example, it can be implemented by a combination of sine and cosine functions. For each position (for example, the pixel position of each pixel point of each image feature block) pos and the dimension i of the feature, the position coding of the even-numbered dimension uses the sine function, while the position coding of the odd-numbered dimension uses the cosine function. The embodiments of the present application do not limit the specific implementation method of the position coding.

[0142] In step 10232, the embedded features are normalized to obtain first normalized features.

[0143] In some embodiments, the embedded features may be normalized by a layer normalization method to obtain first normalized features.

[0144] For example, first, the mean and variance of the embedded feature in each feature dimension are obtained. Next, the feature data in each feature dimension is standardized, for example, the feature data is subtracted from the mean and then divided by the square root of the variance. Finally, the standardized embedded feature is further scaled and translated by a learnable scaling factor and a learnable offset factor to obtain a first normalized feature.

[0145] Through layer normalization, the intraclass correlation coefficient (ICC) problem is reduced. The ICC problem refers to the difficulty of network learning when the statistical characteristics of the input data (such as mean and variance) change with different input samples. Layer normalization reduces this change by fixing the statistical characteristics of the data distribution, thereby improving the stability and robustness of the model.

[0146] In step 10233, the first normalized feature is subjected to attention encoding processing to obtain an attention encoding feature.

[0147] In some embodiments, the first normalized feature can be subjected to attention encoding processing through a multi-head attention mechanism to obtain an attention encoding feature.

[0148] For example, for the first normalized feature of the input, a linear transformation is first performed to generate three matrices: query vector (Query, Q), key vector (Key, K) and value vector (Value, V). The linear transformation consists of a learnable weight matrix , and Implementation, Next, for each attention head (Head Attention), calculate the dot product of Q and K to obtain the attention score. Next, normalize the attention score, for example, apply a normalization function (such as a softmax function) to convert the attention score into a probability distribution, and use the attention probability distribution to weight V to generate a new feature representation. Finally, connect the outputs of all attention heads and perform a linear transformation to obtain a rich representation that includes the correlation of different positions in the first normalized feature, namely the attention encoding feature.

[0149] Through attention encoding processing, multiple attention heads are used for parallel calculation to improve computational efficiency. By learning in different representation subspaces, the contextual information in the first normalized features is considered and different patterns and structures in the first normalized features are captured, thereby improving the representation ability of the attention encoding features.

[0150] In step 10234, the attention encoding feature and the embedded feature are fused to obtain a fused feature.

[0151] In some embodiments, the attention encoding features and the embedded features are concatenated to obtain fused features.

[0152] For example, assuming that the feature dimension of each attention head output is 64, and 8 attention heads are used, then after multi-head self-attention, a 64 8 features, these features are concatenated along the feature dimension (i.e., the depth dimension) to form a 512-dimensional attention encoding feature. Assuming that the feature dimension of the embedded feature is 768, the fused feature can be represented as a 1280-dimensional feature.

[0153] In step 10235, the fused features are normalized to obtain second normalized features.

[0154] In some embodiments, the specific implementation of the normalization processing can be found in the description of step 10232 above, and will not be repeated here.

[0155] In step 10236, feedforward mapping processing is performed on the second normalized feature to obtain a mapping feature.

[0156] In some embodiments, feed-forward mapping processing may be performed on the second normalized features through a feed-forward neural network (FFN) layer to obtain mapping features.

[0157] Taking the feedforward neural network layer using a multilayer perceptron (MLP) structure as an example, first, the second normalized feature is linearly transformed through the first linear layer. The first linear layer can be a weight matrix of , the bias vector is The fully connected layer (Fully Connected Layer) is then used to perform nonlinear transformation on the second normalized features after linear transformation through an activation function (such as ReLU, Sigmoid, etc.) to obtain nonlinear transformation features. Finally, the nonlinear transformation features are linearly transformed through the second linear layer to obtain mapping features. The second linear layer can be a weight matrix of , the bias vector is The fully connected layer.

[0158] In step 10237, the mapping features and the fusion features are fused to obtain the priori structural features of the first iteration stage.

[0159] In some embodiments, the mapping features and the fusion features are concatenated to obtain the priori structural features of the first iteration stage.

[0160] For example, assuming that the fused feature is a 1280-dimensional feature, the mapping feature output by FFN is a 256-dimensional feature vector, and the prior structure feature obtained by concatenating the mapping feature output by FFN and the fused feature can be expressed as a 1536-dimensional feature.

[0161] Through steps 10231 to 10237, feature attention encoding is performed based on the image feature block sequence, global attention encoding features are obtained, and interactive fusion of features is realized, achieving the beneficial effect of improving the representation ability of prior structural features, which is beneficial to guiding image reconstruction and improving the effect of image artifact removal.

[0162] In some embodiments, Figure 4AThe feature extraction processing in step 102 is implemented through a prior structure extraction network, and multiple iterative stages share the same prior structure extraction network, wherein the prior structure extraction network can be constructed based on a convolutional neural network and a Transformer network (such as Vision Transformer, Swin Transformer, etc.), and the embodiments of the present application do not limit the specific network structure of the prior structure extraction network.

[0163] By sharing the same prior structure extraction network, parameter sharing is achieved in multiple iteration stages. Compared with using a prior structure extraction network in each iteration stage, it avoids training the prior structure extraction network from scratch in each iteration stage, significantly reduces the scale of network parameters, and can achieve the beneficial effect of saving computing resources for feature extraction.

[0164] Continue to see Figure 4A In step 103, feature encoding processing is performed based on the priori structural features and the chord diagram with artifacts in the first iterative stage to obtain the encoding features of the first iterative stage.

[0165] In some embodiments, see Figure 4E , Figure 4A The step 103 shown can be implemented by following the steps 1031 to 1033, which are described in detail below.

[0166] In step 1031 , intermediate features are determined based on the reconstructed image and the artifact-bearing chord diagram of the first iteration stage.

[0167] In some embodiments, see Figure 4F , Figure 4E The step 1031 shown can be implemented by following the steps 10311 to 10313, which are described in detail below.

[0168] In step 10311, forward projection processing is performed on the reconstructed image of the first iteration stage to obtain a reconstructed image chord diagram.

[0169] In some embodiments, the reconstructed image in the first iteration stage may be forward projected by Radon transform to obtain a reconstructed image chord diagram.

[0170] For example, the Radon transform is a process that transforms each pixel in the reconstructed image into countless line integrals. In the Radon transform, each pixel in the reconstructed image is regarded as a line segment, and the integral is performed along all possible straight line directions, and the integral values ​​of all line segments are accumulated to obtain the reconstructed image chord diagram. Specifically, first, a direction set is selected. The Radon transform is defined on a certain direction set in the Cartesian coordinate system. This direction set can be any angle from 0° to 180°, or it can be other specific direction sets. Next, for each selected direction, a straight line passing through the origin is generated. This straight line intersects with the plane of the reconstructed image to form a series of projection lines. For each pixel in the reconstructed image, an integral is performed along the projection line to calculate the integral value of the pixel in this direction. The integral values ​​in all directions are summarized to obtain the reconstructed image chord diagram. The reconstructed image chord diagram in the chord space can be represented as an overlapping image of a series of sine curves. Each point on the reconstructed image chord diagram corresponds to the integral value of the reconstructed image at a specific angle.

[0171] In step 10312, the difference between the reconstructed image chord diagram and the chord diagram with artifacts is obtained, and the product of the difference and the non-artifact trajectory of the chord diagram with artifacts is obtained.

[0172] In some embodiments, a difference is calculated between the reconstructed image chord diagram and the artifact chord diagram to obtain a difference, and the product of the difference and the non-artifact trajectory is obtained, wherein the non-artifact trajectory can be represented as a matrix containing elements {0, 1}, wherein 1 represents an artifact trajectory area and 0 represents a non-artifact trajectory area.

[0173] In step 10313, the intermediate features are confirmed based on the back-projection processing result of the product.

[0174] In some embodiments, a back-projection processing result of the product is obtained to obtain an intermediate feature.

[0175] Continuing with the above example, the Radon transpose transform can be used to invert the product from the Radon domain back to the original image space (spatial domain) to obtain the reverse projection processing result, and the product of the reverse projection processing result and the preset compromise parameter (used for weighted calculation) is used as the intermediate feature, where the reverse projection processing result can be represented as a two-dimensional array.

[0176] Continue to see Figure 4E , in step 1032, the intermediate features are fused with the priori structural features to obtain the features to be encoded.

[0177] In some embodiments, the intermediate features are summed with the priori structural features to obtain the features to be encoded.

[0178] As an example, given a chord graph Y with artifacts, the artifact removal method in multiple iterative stages can be expressed by formula (1):

[0179] (1)

[0180] in, represents an artifact-free image (spatial domain), is the Radon transform corresponding to the front projection processing above. Tr represents the metal track in the artifact chord diagram Y, and its elements are {0, 1}, where 1 represents the metal track area, and ⊙ represents the product of the corresponding elements. is a regular term, representing the prior structure of the artifact-free image X, represents a tradeoff parameter.

[0181] Formula (1) can be equivalently written as:

[0182] (2)

[0183] in, represents the artifact-removed image to be estimated.

[0184] In order to solve formula (2), the quasi-Newton method can be used to obtain the iterative solution:

[0185] (3)

[0186] in, Indicates the step size, which is fixed to 1. is an approximation of the inverse Hessian matrix, containing second-order information (the Hessian matrix is ​​the second-order derivative matrix of the objective function (Formula (2)), so the approximation of the inverse Hessian matrix contains second-order information), n represents the iteration stage, Corresponding to the reconstructed image of the first iteration stage, Corresponding to the reconstructed image of the second iteration stage, when =0 For an image with artifacts, Represents the features to be encoded, representing the reconstructed image The gradient update direction.

[0187] The features to be encoded can be expressed by formula (4):

[0188] (4)

[0189] in, Corresponding to the non-artifact trajectory above, represents the prior structure characteristics, Corresponding to the product in step 10312 above, Corresponding to the intermediate features in step 10131 above.

[0190] By performing multi-stage iterations based on the quasi-Newton method based on the second-order iteration, the quadratic approximation of the objective function (corresponding to formula (2)) is used in each iteration, which provides more information than using only the first-order derivative (i.e., gradient). Specifically, the second-order iteration uses the second-order derivative of the objective function to construct a quadratic model, which can better approximate the local behavior of the objective function, thereby providing a more accurate search direction to improve the convergence speed, thereby achieving the beneficial effect of reducing the iteration time and improving the efficiency of image artifact removal.

[0191] In step 1033, the features to be encoded are encoded to obtain encoding features of the first iterative stage.

[0192] In some embodiments, the features to be encoded may be encoded by an encoder to obtain encoding features of a first iterative stage.

[0193] For example, the encoder can be a structure based on a convolutional neural network (CNN). Specifically, the encoder includes multiple convolutional layers, which can extract context information of the features to be encoded and encode this information into a continuous encoding feature. The encoder can also be a structure based on a transformer. For example, the input features to be encoded can be encoded through a Transformer Encoder structure to obtain encoding features. Here, the Transformer Encoder structure can be stacked with multiple layers for encoding. The embodiments of the present application do not limit the specific encoder structure.

[0194] For example, the encoding feature can be expressed by formula (5):

[0195] (5)

[0196] in, Represents the encoding features of the current first iteration stage, Represents the encoding process of the encoder.

[0197] Continue to see Figure 4A In step 104, image reconstruction processing is performed based on the encoding features of the first iterative stage and the reconstructed image of the first iterative stage to obtain a reconstructed image of the second iterative stage.

[0198] The first iteration stage and the second iteration stage are any two adjacent iteration stages in the multiple iteration stages, and the image reconstruction process is implemented based on an operation matrix. The operation matrix has second-order information and has superlinear convergence.

[0199] In some embodiments, see Figure 4G , Figure 4A The step 104 shown can be implemented by following the steps 1041 to 1042, which are described in detail below.

[0200] In step 1041 , a decoding feature is determined based on the encoding feature of the first iteration stage.

[0201] In some embodiments, see Figure 4H , Figure 4G The step 1041 shown can be implemented by following the steps 10411 to 10413, which are described in detail below.

[0202] In step 10411, an operation matrix of the first iteration stage is obtained, wherein when the first iteration stage is the first iteration stage among multiple iteration stages, the operation matrix of the first iteration stage is an initialized unit matrix, and when the first iteration stage is not the first iteration stage among multiple iteration stages, the operation matrix of the first iteration stage is determined based on the operation matrix of the previous iteration stage, and the operation matrix contains second-order information.

[0203] In some embodiments, when the first iteration stage is the first iteration stage among multiple iteration stages (iteration stage n=0), the operation matrix of the first iteration stage is the initialization unit matrix. When the first iteration stage is not the first iteration stage among multiple iteration stages (iteration stage n>0), the operation matrix of the first iteration stage is determined based on the operation matrix of the previous iteration stage, wherein the operation matrix contains second-order information (see the description of formula (1-3) above, the operation matrix corresponds to the initialization unit matrix in formula (3) ).

[0204] Taking N iteration stages as an example, the operation matrix of the nth iteration stage is obtained, where n is an integer greater than or equal to 0 and less than N-1. When n=0, it is the first iteration stage. At this time, the operation matrix of the first iteration stage is the initialization unit matrix (such as expressed as ), when n>0, the operation matrix of the first iteration stage is determined based on the operation matrix of the previous iteration stage. For example, the acquisition of the operation matrix can be expressed by formula (6):

[0205] (6)

[0206] in, Represents the operation matrix of the current first iteration stage, Represents the operation matrix of the previous iteration stage. In addition, , , when n=0, , is the identity matrix.

[0207] In step 10412, the operation matrix of the first iteration stage is multiplied by the encoding features of the first iteration stage to obtain the features to be decoded.

[0208] In some embodiments, the product of the operation matrix of the first iteration stage and the encoding feature of the first iteration stage is obtained to obtain the feature to be decoded.

[0209] Taking the multiplication of corresponding elements as an example, to simplify the calculation process, the operation matrix and encoding features are represented as 2 2, assuming that the operation matrix A = [[1,2],[3,4]], the encoding feature B = [[2,0],[0,2]], the feature to be decoded obtained by multiplying the corresponding elements can be expressed as C = [[1*2, 2*0],[3*0,4*2]] = [[2,0],[0,8]].

[0210] In step 10413, decoding processing is performed based on the feature to be decoded to obtain a decoded feature.

[0211] In some embodiments, a decoder may perform decoding processing based on the feature to be decoded to obtain a decoded feature.

[0212] For example, the decoder is based on the structure of a convolutional neural network (CNN). Specifically, the decoder includes multiple convolutional layers, which can gradually decode the features to be decoded back to the image space to generate decoding features. The encoder can also be based on a transformer (Transformer) structure. For example, the input features to be decoded can be decoded through the Transformer Decoder structure, and the low-dimensional features to be decoded can be restored back to the original image space to obtain decoding features. Here, the Transformer Decoder structure can be stacked with multiple layers for decoding. The embodiments of the present application do not limit the specific decoder structure.

[0213] Continue to see Figure 4G In step 1042, the decoded features and the reconstructed image of the first iterative stage are fused to obtain the reconstructed image of the second iterative stage.

[0214] In some embodiments, the decoded features and the reconstructed image of the first iterative stage are summed to obtain the reconstructed image of the second iterative stage. Here, the feature map sizes of the decoded features and the reconstructed image are consistent, so that the pixel values ​​of pixels at the same position in the two can be directly summed.

[0215] For example, the reconstructed image in the second iteration stage can be expressed by formula (7):

[0216] (7)

[0217] in, represents the reconstructed image at the second iteration stage, represents the reconstructed image at the first iteration stage, represents the decoding feature, Represents the decoding process of the decoder, Represents the feature to be decoded.

[0218] In step 105, the reconstructed image of the final iteration stage in the multiple iteration stages is used as the artifact-removed image.

[0219] In some embodiments, when the multiple iteration stages are completed, the reconstructed image of the final iteration stage in the multiple iteration stages is used as the artifact removed image.

[0220] In some embodiments, parameters of the encoder, decoder, and prior structure extraction network at different iteration stages can be shared.

[0221] Through steps 101 to 105, the reconstructed image of the first iterative stage is reconstructed and iterated for multiple iterative stages through a second-order optimization iteration method, thereby achieving the beneficial effect of reducing the iteration time, accelerating the convergence speed, and thus improving the efficiency of image artifact removal. Prior structure features are obtained by embedding a prior structure extraction network with shared parameters during the iteration process, thereby achieving the beneficial effect of reducing network parameters. In addition, by further performing attention encoding processing based on the acquired image features, the interaction between image features and global features (corresponding to the attention encoding features mentioned above) is realized, thereby achieving the beneficial effect of improving the representation ability of prior structure features, which is beneficial to guiding image reconstruction and further improving the effect of image artifact removal.

[0222] The following will combine the exemplary application and implementation of the server provided in the embodiment of the present application, taking the server as the execution subject, to illustrate the training method of the image artifact removal model provided in the embodiment of the present application. Figure 5A , Figure 5A is a first flow chart of the training method of the image artifact removal model provided in the embodiment of the present application, which will be combined with Figure 5A The steps shown are explained.

[0223] In step 201, a training data set is obtained, wherein the training data set includes original image samples, chord diagram samples with artifacts corresponding to the original image samples, image samples with artifacts corresponding to the chord diagram samples with artifacts, and implant masks, wherein the chord diagram samples with artifacts are obtained by transformation processing based on the implant mask and the original image samples.

[0224] In some embodiments, the training data set includes original image samples, artifact chord diagram samples corresponding to the original image samples, artifact image samples corresponding to the artifact chord diagram samples, and implant masks (e.g., metal masks used to mask metal areas in an image), and the artifact chord diagram samples are obtained by transforming the implant masks and the original image samples.

[0225] For example, a public data set (such as a synthetic lesion data set SynDeepLesion) can be used as a training data set. The SynDeepLesion data set is constructed based on the data set DeepLesion by using a metal mask and the images in DeepLesion according to the data simulation process to obtain a synthesized image with artifacts and a chord diagram corresponding to the image with artifacts. Here, different types of metals have different metal masks. Any two different types of metals refer to two metals that are different in at least one of metal material, metal size, and metal shape. The embodiment of the present application does not limit the method of obtaining the training data set.

[0226] In step 202, feature extraction processing is performed on the reconstructed image samples of the first iteration stage to obtain a priori structural feature samples of the first iteration stage, wherein when the first iteration stage is the first iteration stage among multiple iteration stages, the reconstructed image samples of the first iteration stage are image samples with artifacts.

[0227] In some embodiments, image features are extracted from the reconstructed image samples of the first iterative stage; the image features are divided into a plurality of image feature patches, and the plurality of image feature patches are arranged into an image feature block sequence; the image feature block sequence is encoded to obtain a priori structural feature samples of the first iterative stage. For details not covered here, please refer to the descriptions of steps 1021 to 1023 above (the reconstructed image samples correspond to the reconstructed images above), which will not be repeated here.

[0228] In step 203, feature encoding processing is performed based on the priori structural feature samples and the chord diagram samples with artifacts in the first iterative stage to obtain the encoded feature samples in the first iterative stage.

[0229] In some embodiments, based on the reconstructed image samples and the chord diagram with artifacts in the first iterative stage, intermediate features are determined; the intermediate features are fused with the prior structural feature samples to obtain the features to be encoded; the features to be encoded are encoded to obtain the encoded feature samples of the first iterative stage. For details not covered here, please refer to the description of steps 1031 to 1033 above (the prior structural feature samples correspond to the prior structural features above, and the chord diagram with artifacts samples correspond to the chord diagram with artifacts above), which will not be repeated here.

[0230] In step 204, image reconstruction processing is performed based on the coded feature samples of the first iteration stage and the reconstructed image samples of the first iteration stage to obtain reconstructed image samples of the second iteration stage.

[0231] In some embodiments, the decoding features are determined based on the coding feature samples of the first iterative stage; the decoding features and the reconstructed image samples of the first iterative stage are fused to obtain the reconstructed image samples of the second iterative stage. For details not covered here, please refer to the descriptions of steps 1041 to 1042 above (the coding feature samples correspond to the coding features above), which will not be repeated here.

[0232] In step 205, the reconstructed image samples of the final iteration stage in the multiple iteration stages are taken as the artifact removal image samples.

[0233] In some embodiments, when the multiple iteration stages are finished, the reconstructed image samples of the final iteration stage in the multiple iteration stages are used as the artifact-removed image samples.

[0234] In step 206 , a loss value is determined based on the difference between the artifact removed image samples and the original image samples.

[0235] In some embodiments, see Figure 5B , Figure 5A The step 206 shown can be implemented by following the steps 2061 to 2062, which are described in detail below.

[0236] In step 2061, a difference process is performed on the artifact-removed image sample and the original image sample to obtain a reconstructed difference value.

[0237] As an example, a difference value between the artifact-removed image sample and the original image sample is obtained. Here, the difference value may be obtained by subtracting the pixel values ​​of the artifact-removed image sample and the original image sample at the same position.

[0238] In step 2062, a loss value is obtained by multiplying the square norm of the reconstructed difference with the non-implant mask position information corresponding to the implant mask.

[0239] In some embodiments, the square norm of the reconstructed difference is multiplied by the non-implant mask position information corresponding to the implant mask, and the product result is further weighted according to a preset compromise parameter to obtain a loss value.

[0240] For example, the loss value can be obtained by formula (8):

[0241] (8)

[0242] in, For the trade-off parameter, for example, , , , is the spatial implant mask, represents the original image sample, Represents artifact-removed image samples.

[0243] Continue to see Figure 5A In step 207, the parameters of the initialized image artifact removal model are updated according to the loss value to obtain a trained image artifact removal model.

[0244] In some embodiments, gradient information is obtained through the loss value, and the parameters of the initialized image artifact removal model are updated according to the gradient information to obtain the trained image artifact removal model.

[0245] For example, the gradient information of the loss value for each parameter of the image artifact removal model is obtained through the back-propagation algorithm, and the parameters of the image artifact removal model are updated using the obtained gradient information according to the gradient descent optimization algorithm (such as batch gradient descent, stochastic gradient descent, etc.). The above process is repeated until a certain number of iterations is reached or the image artifact removal model converges, thereby obtaining the trained image artifact removal model.

[0246] Next, an exemplary application of the present invention in a medical image artifact removal scenario will be described. Fig. 6A , Fig. 6A is a first schematic diagram of the application process of the image artifact removal method provided in the embodiment of the present application, obtaining a medical image with artifacts and a chord diagram of the medical image with artifacts as input, and outputting an artifact-removed medical image through the image artifact removal method provided in the embodiment of the present application, see Figure 6B , Figure 6B This is a second schematic diagram of the application process of the image artifact removal method provided in the embodiment of the present application. A medical image with artifacts and a chord diagram of the medical image with artifacts can be obtained through terminal device-1, the medical image with artifacts and the chord diagram of the medical image with artifacts can be received through the above-mentioned server, and the medical image with artifacts removed can be obtained through the image artifact removal method provided in the embodiment of the present application, and then the medical image with artifacts removed is transmitted to terminal device-2 via the server. After receiving the medical image with artifacts removed, terminal device-2 can perform operations such as storage and display.

[0247] See also Figure 7 , Figure 7 This is a flow chart of the method for image artifact removal in the medical image artifact removal scenario provided in an embodiment of the present application, which is described in detail below.

[0248] In step 301, a medical image with artifacts and a chord diagram of the medical image with artifacts are obtained.

[0249] In some embodiments, a medical image with artifacts can be acquired through a medical imaging device (such as CT imaging), and the image can be stored and transmitted through the medical image storage and transmission standard (Digital Imaging and Communications in Medicine, DICOM). The chord diagram of the medical image with artifacts can be obtained by forward projection processing (or Radon transform) on the medical image with artifacts. The embodiments of the present application do not limit the method for acquiring the medical image with artifacts and the chord diagram of the medical image with artifacts. Here, the medical image with artifacts can be a CT image with metal artifacts.

[0250] In step 302, feature extraction processing is performed on the reconstructed image of the first iteration stage to obtain the prior structure features of the first iteration stage, wherein when the first iteration stage is the first iteration stage among multiple iteration stages, the reconstructed image of the first iteration stage is a medical image with artifacts.

[0251] In some embodiments, image features are extracted from the reconstructed image of the first iterative stage (see the description of step 1021 above); the image features are divided into a plurality of image feature patches, and the plurality of image feature patches are arranged into an image feature block sequence (see the description of step 1022 above); the image feature block sequence is encoded to obtain a priori structural features of the first iterative stage (see the description of step 1023 above).

[0252] For example, the reconstructed image of the first iteration stage can be subjected to feature extraction processing through the prior structure extraction network to obtain the prior structure features of the first iteration stage, see Fig. 8A , Fig. 8A is a first schematic diagram of an optional structure of a priori structure extraction network provided in an embodiment of the present application, wherein the input is the reconstructed image of the first iteration stage, and the output It represents the prior structural features. The feature extraction module is used to extract image features from the reconstructed image in the first iterative stage. The feature block division module is used to divide the image features into multiple image feature blocks (patches), and arrange the multiple image feature blocks into an image feature block sequence. The attention encoding module is used to encode the image feature block sequence to obtain the mapping features and the first fusion features of the first iterative stage, and concatenate the mapping features and the first fusion features to obtain the second fusion features. Finally, the second fusion features are subjected to dimensional change processing (such as Patch expansion) through the dimensional change module to obtain the prior structural features of the first iterative stage.

[0253] See also Figure 8B , Figure 8Bis a second schematic diagram of an optional structure of a priori structure extraction network provided in an embodiment of the present application, Figure 8B The feature extraction module shown performs multi-scale convolution processing on the reconstructed image of the first iteration stage in parallel to obtain convolution features of multiple scales (corresponding to Figure 8B The convolution processing of multiple branches shown in FIG. 10, for a specific implementation, please refer to the description of step 10211 above); the reconstructed image of the first iteration stage is pooled to obtain a pooling feature (corresponding to Figure 8B 3 of 3 Processing of the pool branch, for the specific implementation method, please refer to the description of step 10212 above); the features of multiple scales and the pooling features are spliced ​​to obtain the image features of the reconstructed image in the first iterative stage.

[0254] See also Figure 8C , Figure 8C is a third schematic diagram of an optional structure of a priori structure extraction network provided in an embodiment of the present application, Figure 8C An attention encoding module is shown, through which an image feature block sequence is embedded and encoded to obtain an embedded feature (see the description of step 10231 above); the embedded feature is normalized to obtain a first normalized feature (see the description of step 10232 above); the first normalized feature is attention encoded to obtain an attention encoded feature (see the description of step 10233 above); the attention encoded feature and the embedded feature are fused to obtain a first fused feature (see the description of step 10234 above); the first fused feature is normalized to obtain a second normalized feature (see the description of step 10235 above); the second normalized feature is feedforward mapped to obtain a mapping feature (see the description of step 10236 above), and the mapping feature and the fused feature are concatenated to obtain a second fused feature.

[0255] In step 303, feature encoding processing is performed based on the priori structural features of the first iterative stage and the chord diagram of the medical image with artifacts to obtain the encoding features of the first iterative stage.

[0256] In some embodiments, the specific implementation of feature encoding based on the priori structural features of the first iteration stage and the chord diagram of the medical image with artifacts can be found in the description of step 103 above, which will not be repeated here.

[0257] In step 304, image reconstruction processing is performed based on the encoding features of the first iteration stage and the reconstructed image of the first iteration stage to obtain a reconstructed image of the second iteration stage.

[0258] In some embodiments, the specific implementation of image reconstruction based on the encoding features of the first iteration stage and the reconstructed image of the first iteration stage can be found in the description of step 104 above, which will not be repeated here.

[0259] In step 305 , a reconstructed image at a final iteration stage in the multiple iteration stages is used as an artifact-removed medical image.

[0260] In some embodiments, when the multiple iteration stages are completed, a reconstructed image of a final iteration stage in the multiple iteration stages is used as an artifact-removed medical image.

[0261] In some embodiments, see Fig.8D , Fig.8D It is an implementation flow chart of the image artifact removal method and the training method of the image artifact removal model provided by the embodiment of the present application. If the current stage is the training stage, the training data set is obtained (see the description of step 201 above), and then the training data set is loaded. The image artifact removal model is iteratively trained (see the description of steps 202 to 205 above), and the parameters of the image artifact removal model are updated according to the loss value. When the set number of iterations is reached, the iteration is stopped, and the trained image artifact removal model is saved (see the description of steps 206 to 207 above). If the current stage is the testing stage (or application stage), a medical image with artifacts (or an image with artifacts to be tested) is obtained and preprocessed (corresponding to the acquisition of a medical image with artifacts and a chord diagram of a medical image with artifacts in step 301 above), and after loading the trained image artifact removal model, an artifact removal medical image is obtained by forward calculation of the image artifact removal model (see the description of steps 302 to 305 above), and finally, the artifact removal medical image is output.

[0262] Through steps 301 to 305, artifact removal of medical images with artifacts is achieved, the quality of medical images is improved, and it helps doctors to observe diseased tissues more clearly and improve the accuracy of diagnosis. Medical images after artifact removal help reduce repeated scans caused by artifacts and reduce the discomfort of patients when undergoing examinations such as magnetic resonance imaging. In addition, the image artifact removal method based on the second-order optimization iterative method provided by the embodiment of the present application achieves the beneficial effect of reducing the iteration time, improving the convergence speed, thereby improving the efficiency of medical image artifact removal, shortening the time for doctors to analyze images, and thus improving the diagnostic efficiency.

[0263] The following is a description of an exemplary structure of the image artifact removal device 133 provided in the embodiment of the present application implemented as a software module. In some embodiments, Figure 2A As shown, the software modules stored in the image artifact removal device 133 of the memory 130-1 may include:

[0264] The data acquisition module 1331 is used to acquire a chord diagram with artifacts and an image with artifacts.

[0265] The data processing module 1332 is used to perform feature extraction processing on the reconstructed image of the first iterative stage to obtain the prior structural features of the first iterative stage, wherein, when the first iterative stage is the first iterative stage among multiple iterative stages, the reconstructed image of the first iterative stage is the image with artifacts.

[0266] In some embodiments, the data processing module 1332 is further used to perform feature encoding processing based on the priori structural features of the first iterative stage and the chord diagram with artifacts to obtain the encoding features of the first iterative stage.

[0267] In some embodiments, the data processing module 1332 is further used to perform image reconstruction processing based on the encoding features of the first iterative stage and the reconstructed image of the first iterative stage to obtain the reconstructed image of the second iterative stage.

[0268] In some embodiments, the data processing module 1332 is further configured to use the reconstructed image of the final iteration stage in the multiple iteration stages as the artifact removed image.

[0269] In some embodiments, the data processing module 1332 is also used to extract image features from the reconstructed image of the first iterative stage; divide the image features into multiple image feature blocks, and arrange the multiple image feature blocks into an image feature block sequence; encode the image feature block sequence to obtain the prior structural features of the first iterative stage.

[0270] In some embodiments, the data processing module 1332 is further used to perform multi-scale convolution processing on the reconstructed image of the first iterative stage to obtain convolution features of multiple scales; perform pooling processing on the reconstructed image of the first iterative stage to obtain pooling features; and fuse the features of the multiple scales with the pooling features to obtain image features of the reconstructed image of the first iterative stage.

[0271] In some embodiments, the data processing module 1332 is also used to perform embedded coding processing on the image feature block sequence to obtain embedded features; normalize the embedded features to obtain first normalized features; perform attention coding processing on the first normalized features to obtain attention coding features; fuse the attention coding features and the embedded features to obtain fused features; perform the normalization processing on the fused features to obtain second normalized features; perform feedforward mapping processing on the second normalized features to obtain mapping features; fuse the mapping features and the fused features to obtain the prior structure features of the first iteration stage.

[0272] In some embodiments, the data processing module 1332 is also used to determine intermediate features based on the reconstructed image of the first iterative stage and the chord diagram with artifacts; fuse the intermediate features with the priori structural features to obtain features to be encoded; and encode the features to be encoded to obtain encoded features of the first iterative stage.

[0273] In some embodiments, the data processing module 1332 is further used to perform forward projection processing on the reconstructed image of the first iterative stage to obtain a reconstructed image chord diagram; obtain a reverse projection processing result of the difference between the reconstructed image chord diagram and the chord diagram with artifacts; and use the product of the non-artifact trajectory of the chord diagram with artifacts and the reverse projection processing result as the intermediate feature.

[0274] In some embodiments, the data processing module 1332 is further used to determine decoding features based on the encoding features of the first iterative stage; and fuse the decoding features with the reconstructed image of the first iterative stage to obtain the reconstructed image of the second iterative stage.

[0275] In some embodiments, the data processing module 1332 is also used to obtain an operation matrix of the first iteration stage, wherein when the first iteration stage is the first iteration stage among the multiple iteration stages, the operation matrix of the first iteration stage is an initialized unit matrix, and when the first iteration stage is not the first iteration stage among the multiple iteration stages, the operation matrix of the first iteration stage is determined based on the operation matrix of the previous iteration stage, and the operation matrix contains second-order information; the operation matrix of the first iteration stage is multiplied by the encoding feature of the first iteration stage to obtain the feature to be decoded; decoding is performed based on the feature to be decoded to obtain the decoded feature.

[0276] The following is a description of an exemplary structure of the training device 134 for image artifact removal model provided in the present application as a software module. In some embodiments, Figure 2B As shown, the software modules stored in the training device 134 of the image artifact removal model in the memory 130-2 may include:

[0277] The data acquisition module 1341 is used to acquire a training data set, wherein the training data set includes original image samples, artifact chord diagram samples corresponding to the original image samples, artifact image samples corresponding to the artifact chord diagram samples, and implant masks, and the artifact chord diagram samples are obtained by transforming the implant mask and the original image samples.

[0278] The training module 1342 is used to perform feature extraction processing on the reconstructed image samples of the first iteration stage to obtain the priori structural feature samples of the first iteration stage, wherein when the first iteration stage is the first iteration stage among the multiple iteration stages, the reconstructed image samples of the first iteration stage are the image samples with artifacts, and when the first iteration stage is not the first iteration stage among the multiple iteration stages, the reconstructed image samples of the first iteration stage are the reconstructed image samples obtained in the previous iteration stage.

[0279] In some embodiments, the training module 1342 is further used to perform feature encoding processing based on the priori structural feature samples of the first iterative stage and the chord diagram samples with artifacts to obtain the encoded feature samples of the first iterative stage.

[0280] In some embodiments, the training module 1342 is further used to perform image reconstruction processing based on the coded feature samples of the first iteration stage and the reconstructed image samples of the first iteration stage to obtain the reconstructed image samples of the second iteration stage.

[0281] In some embodiments, the training module 1342 is further configured to use the reconstructed image samples of the final iteration stage in the multiple iteration stages as the artifact removed image samples.

[0282] In some embodiments, the training module 1342 is further configured to determine a loss value based on a difference between the artifact-removed image sample and the original image sample.

[0283] In some embodiments, the training module 1342 is further used to update the parameters of the initialized image artifact removal model according to the loss value to obtain a trained image artifact removal model.

[0284] In some embodiments, the training module 1342 is also used to perform difference processing on the artifact-removed image sample and the original image sample to obtain a reconstructed difference; and to obtain the loss value by multiplying the square norm of the reconstructed difference with the non-implant mask position information corresponding to the implant mask.

[0285] The embodiment of the present application provides a computer program product, which includes a computer program or a computer executable instruction, and the computer program or the computer executable instruction is stored in a computer-readable storage medium. The processor of the electronic device reads the computer executable instruction from the computer-readable storage medium, and the processor executes the computer executable instruction, so that the electronic device executes the image artifact removal method or the image artifact removal model training method described in the embodiment of the present application.

[0286] The embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions or computer programs are stored. When the computer-executable instructions or computer programs are executed by a processor, the processor will be caused to execute the image artifact removal method or the image artifact removal model training method provided by the embodiment of the present application, for example, Figure 4A The image artifact removal method shown or Figure 5A The training method of the image artifact removal model is shown.

[0287] In some embodiments, the computer-readable storage medium may be a memory such as RAM, ROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.

[0288] In some embodiments, computer executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0289] As an example, computer-executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file storing other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).

[0290] As an example, computer executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed at multiple sites and interconnected by a communication network.

[0291] In summary, through the embodiments of the present application, the reconstructed image of the first iterative stage is reconstructed and iterated for multiple iterative stages through a second-order optimization iteration method, thereby achieving the beneficial effect of reducing the iteration time, accelerating the convergence speed, and thus improving the efficiency of image artifact removal. Prior structure features are obtained by extracting a priori structure network with embedded parameter sharing during the iteration process, thereby achieving the beneficial effect of reducing network parameters. In addition, by further performing attention encoding processing based on the acquired image features, the interaction between image features and global features (corresponding to the attention encoding features mentioned above) is realized, thereby achieving the beneficial effect of improving the representation ability of prior structure features, which is beneficial to guiding image reconstruction and further improving the effect of image artifact removal.

[0292] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent replacements and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims

1. A method for removing image artifacts, characterized in that: The method comprises: Obtaining artifact-bearing chord diagrams and artifact-bearing images; Performing feature extraction processing on the reconstructed image of the first iterative stage to obtain a priori structural features of the first iterative stage, wherein when the first iterative stage is the first iterative stage among multiple iterative stages, the reconstructed image of the first iterative stage is the image with artifacts; Performing feature encoding processing based on the priori structural features of the first iterative stage and the chord diagram with artifacts to obtain encoding features of the first iterative stage; Determine a feature to be decoded based on the operation matrix of the first iterative stage and the encoding feature of the first iterative stage; Performing decoding processing based on the feature to be decoded to obtain a decoding feature; Fusing the decoded features with the reconstructed image of the first iterative stage to obtain a reconstructed image of the second iterative stage; The reconstructed image at the final iteration stage in the multiple iteration stages is used as the artifact-removed image.

2. The method according to claim 1, characterized in that The step of performing feature extraction processing on the reconstructed image in the first iterative stage to obtain the priori structural features in the first iterative stage includes: Extracting image features from the reconstructed image in the first iterative stage; Dividing the image feature into a plurality of image feature blocks, and arranging the plurality of image feature blocks into an image feature block sequence; The image feature block sequence is encoded to obtain a priori structural features of the first iterative stage.

3. The method according to claim 2, characterized in that The step of extracting image features from the reconstructed image in the first iterative stage comprises: Performing multi-scale convolution processing on the reconstructed image in the first iterative stage to obtain convolution features of multiple scales; Performing pooling processing on the reconstructed image in the first iterative stage to obtain pooling features; The convolution features of the multiple scales and the pooling features are fused to obtain image features of the reconstructed image in the first iterative stage.

4. The method according to claim 2, characterized in that: The encoding process of the image feature block sequence to obtain the priori structural features of the first iterative stage includes: Performing embedding coding processing on the image feature block sequence to obtain embedded features; Normalizing the embedded features to obtain first normalized features; Performing attention encoding processing on the first normalized feature to obtain an attention encoding feature; Fusing the attention encoding feature and the embedding feature to obtain a fused feature; Performing the normalization process on the fused feature to obtain a second normalized feature; Performing feedforward mapping processing on the second normalized feature to obtain a mapping feature; The mapping feature and the fusion feature are fused to obtain a priori structural features of the first iterative stage.

5. The method according to any one of claims 1 to 4, characterized in that: The feature extraction process is implemented through a priori structure extraction network, and the multiple iteration stages share the same priori structure extraction network.

6. The method according to claim 1, characterized in that The performing feature encoding processing based on the priori structural features of the first iterative stage and the chord diagram with artifacts to obtain the encoding features of the first iterative stage includes: Determining intermediate features based on the reconstructed image in the first iterative stage and the chord diagram with artifacts; The intermediate feature is merged with the prior structure feature to obtain a feature to be encoded; The feature to be encoded is encoded to obtain the encoding feature of the first iterative stage.

7. The method according to claim 6, characterized in that The determining of intermediate features based on the reconstructed image in the first iterative stage and the chord diagram with artifacts comprises: Performing forward projection processing on the reconstructed image in the first iterative stage to obtain a reconstructed image chord diagram; Obtaining a difference between the reconstructed image chord diagram and the chord diagram with artifacts, and obtaining a product of the difference and a non-artifact trajectory of the chord diagram with artifacts; The intermediate feature is confirmed based on the back-projection processing result of the product.

8. The method according to claim 1, characterized in that The determining the feature to be decoded based on the operation matrix of the first iterative stage and the encoding feature of the first iterative stage includes: Acquire an operation matrix of the first iteration stage, wherein when the first iteration stage is the first iteration stage of the multiple iteration stages, the operation matrix of the first iteration stage is an initialized unit matrix, and when the first iteration stage is not the first iteration stage of the multiple iteration stages, the operation matrix of the first iteration stage is determined based on the operation matrix of the previous iteration stage; The operation matrix of the first iterative stage is multiplied by the encoding features of the first iterative stage to obtain features to be decoded.

9. A training method for an image artifact removal model, characterized in that: The method comprises: Acquire a training data set, wherein the training data set includes original image samples, chord diagram samples with artifacts corresponding to the original image samples, image samples with artifacts corresponding to the chord diagram samples with artifacts, and implant masks, wherein the chord diagram samples with artifacts are obtained by transforming the implant masks and the original image samples; Performing feature extraction processing on the reconstructed image samples of the first iterative stage to obtain a priori structural feature samples of the first iterative stage, wherein when the first iterative stage is the first iterative stage among multiple iterative stages, the reconstructed image samples of the first iterative stage are the image samples with artifacts; Performing feature encoding processing based on the priori structural feature samples of the first iterative stage and the chord diagram samples with artifacts to obtain encoded feature samples of the first iterative stage; Performing image reconstruction processing based on the coded feature samples of the first iterative stage and the reconstructed image samples of the first iterative stage to obtain reconstructed image samples of the second iterative stage; using the reconstructed image sample of the final iterative stage in the multiple iterative stages as the artifact-removed image sample; determining a loss value based on a difference between the artifact-removed image sample and the original image sample; The parameters of the initialized image artifact removal model are updated according to the loss value to obtain a trained image artifact removal model.

10. The method according to claim 9, characterized in that The determining of the loss value based on the difference between the artifact-removed image sample and the original image sample comprises: Performing a difference processing on the artifact-removed image sample and the original image sample to obtain a reconstructed difference value; The loss value is obtained based on the product processing of the square norm of the reconstructed difference and the non-implant mask position information corresponding to the implant mask.

11. An image artifact removal device, characterized in that: The device comprises: A data acquisition module, used for acquiring a chord diagram with artifacts and an image with artifacts; a data processing module, configured to perform feature extraction processing on a reconstructed image of a first iterative stage to obtain a priori structural features of the first iterative stage, wherein when the first iterative stage is the first iterative stage among multiple iterative stages, the reconstructed image of the first iterative stage is the image with artifacts, and when the first iterative stage is not the first iterative stage among the multiple iterative stages, the reconstructed image of the first iterative stage is the reconstructed image obtained in the previous iterative stage; The data processing module is further used to perform feature coding processing based on the priori structural features of the first iterative stage and the chord diagram with artifacts to obtain the coding features of the first iterative stage; The data processing module is further used to determine the features to be decoded based on the operation matrix of the first iterative stage and the coding features of the first iterative stage; perform decoding processing based on the features to be decoded to obtain decoding features; and fuse the decoding features with the reconstructed image of the first iterative stage to obtain the reconstructed image of the second iterative stage; The data processing module is further configured to use the reconstructed image of the final iterative stage among the multiple iterative stages as the artifact-removed image.

12. A training device for an image artifact removal model, characterized in that: The device comprises: A data acquisition module, used to acquire a training data set, wherein the training data set includes an original image sample, a chord diagram sample with artifacts corresponding to the original image sample, an image sample with artifacts corresponding to the chord diagram sample with artifacts, and an implant mask, wherein the chord diagram sample with artifacts is obtained by transforming the implant mask and the original image sample; A training module, used for performing feature extraction processing on the reconstructed image samples of the first iteration stage to obtain the priori structural feature samples of the first iteration stage, wherein when the first iteration stage is the first iteration stage among multiple iteration stages, the reconstructed image samples of the first iteration stage are the image samples with artifacts, and when the first iteration stage is not the first iteration stage among the multiple iteration stages, the reconstructed image samples of the first iteration stage are the reconstructed image samples obtained in the previous iteration stage; The training module is further used to perform feature encoding processing based on the priori structural feature samples of the first iterative stage and the chord diagram samples with artifacts to obtain the encoded feature samples of the first iterative stage; The training module is further used to perform image reconstruction processing based on the coded feature samples of the first iterative stage and the reconstructed image samples of the first iterative stage to obtain the reconstructed image samples of the second iterative stage; The training module is further configured to use the reconstructed image sample of the final iterative stage in the multiple iterative stages as the artifact-removed image sample; The training module is further used to determine a loss value based on a difference between the artifact-removed image sample and the original image sample; The training module is also used to update the parameters of the initialized image artifact removal model according to the loss value to obtain a trained image artifact removal model.

13. An electronic device, characterized in that: The electronic device comprises: A memory for storing computer executable instructions; A processor, configured to implement the image artifact removal method described in any one of claims 1 to 8, or the image artifact removal model training method described in any one of claims 9 to 10, when executing the computer executable instructions or computer program stored in the memory.

14. A computer-readable storage medium storing computer-executable instructions or a computer program, characterized in that: When the computer executable instructions or computer program are executed by a processor, the image artifact removal method described in any one of claims 1 to 8 is implemented, or the image artifact removal model training method described in any one of claims 9 to 10 is implemented.

15. A computer program product comprising computer executable instructions or a computer program, characterized in that When the computer executable instructions or computer program are executed by a processor, the image artifact removal method described in any one of claims 1 to 8 is implemented, or the image artifact removal model training method described in any one of claims 9 to 10 is implemented.

Citation Information

Patent Citations

  • Image artifact weakening method and device based on artificial intelligence and electronic equipment

    CN117671056A