Medical image processing methods and systems
By registering medical images of different phases and using image prediction models for annotation, the problem of low annotation efficiency in the existing technology is solved and a more efficient medical image annotation process is achieved.
Patent Information
- Application Number
- CN202211115812.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-14
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-09-14
AI Technical Summary
In the existing technology, the annotation efficiency of medical images is low, and it is difficult to observe multiple phase-registered images at the same time, resulting in delineation starting from scratch, which is inefficient.
By acquiring medical images of different phases, performing registration processing, the target medical image is generated, and the image prediction model is used for annotation to avoid manual delineation.
It improves the efficiency of medical image annotation, enables more precise observation and annotation, and reduces the need for manual delineation.
Smart Images

Figure CN115526843B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computers, and in particular to a method and system for processing medical images. Background Art
[0002] At present, when scanning and determining medical images, artificial intelligence (AI) and deep learning models are usually used to realize the automated application of medical images. However, the accuracy of deep learning models depends on a large amount of annotation information, and a lot of energy and time are required to process each annotation information. In the later review and correction process, it is also necessary to observe multiple phases of registered images for comparative analysis.
[0003] In the related art, it is difficult to observe multiple phases of registered images at the same time, and the three-dimensional outlining can basically only be performed layer by layer from scratch, resulting in a technical problem of low efficiency in labeling medical images.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present invention provide a method and system for processing medical images, so as to at least solve the technical problem of low efficiency in image annotation of medical images.
[0006] According to one aspect of an embodiment of the present invention, a method for processing a medical image is provided, comprising: acquiring original medical images scanned by an image scanning device at different phases, wherein the original medical images at different phases at least show an object to be detected, and positions of the object to be detected in the original medical images at different phases are not all the same; converting the original medical image into a target medical image, wherein the position of the object to be detected in the target medical images at different phases is the same; performing segmentation processing on the target medical image to obtain annotation information of the target medical image, wherein the annotation information is used to annotate lesions of the object to be detected in the corresponding phase, and is used as a training sample for training to obtain an image prediction model, and the image prediction model is used to predict annotation information of an image to be analyzed containing the object to be detected.
[0007] According to one aspect of an embodiment of the present invention, another method for processing medical images is also provided, comprising: displaying original medical images scanned by an image scanning device in different phases in different display areas of an operation interface, wherein the original medical images of different phases at least show the object to be detected, and the positions of the object to be detected in the original medical image sequence of different phases are not all the same; in response to a conversion operation instruction acting on the operation interface, converting the original medical image into a target medical image, wherein the position of the object to be detected in the target medical images of different phases is the same; displaying annotation information of the target medical image on the operation interface, wherein the annotation information is obtained by segmenting the target medical image, and is used to annotate the lesions of the object to be detected in the corresponding phase, and is used as a training sample for training an image prediction model, and the image prediction model is used to predict the annotation information of the image to be analyzed containing the object to be detected.
[0008] According to one aspect of an embodiment of the present invention, another method for processing medical images is also provided, including: displaying original medical images scanned by an image scanning device at different phases on a presentation screen of a virtual reality VR device or an augmented reality AR device, wherein the original medical images of different phases at least display an object to be detected to be monitored, and the positions of the object to be detected in the original medical images of different phases are not all the same; the VR device or AR device converts the original medical image into a target medical image, wherein the position of the object to be detected is the same in the target medical images of different phases; after segmenting the target medical image to obtain annotation information of the target medical image, driving the VR device or AR device to render and display the annotation information of the target medical image, wherein the annotation information is used to annotate the lesions of the object to be detected in the corresponding phase, and is used as a training sample for training to obtain an image prediction model, and the image prediction model is used to predict the annotation information of the image to be analyzed containing the object to be detected.
[0009] According to one aspect of an embodiment of the present invention, there is provided an image processing system, comprising: a client, for acquiring original medical images scanned by an image scanning device at different phases, wherein the original medical images at different phases at least show an object to be detected, and the positions of the object to be detected in the original medical images at different phases are not all the same; converting the original medical images into target medical images, wherein the positions of the object to be detected in the target medical images at different phases are the same; performing segmentation processing on the target medical images in a target medical image sequence to obtain annotation information of the target medical images, wherein the annotation information is used to annotate the lesions of the object to be detected in the corresponding phase; a server, for acquiring the annotation information from the client; and using the annotation information as a training sample to train an image prediction model, the image prediction model being used to predict the annotation information of the image to be analyzed containing the object to be detected.
[0010] According to one aspect of an embodiment of the present invention, a medical image processing device is provided, comprising: an acquisition unit, used to acquire original medical images scanned by an image scanning device at different phases, wherein the original medical images at different phases at least show an object to be detected, and the positions of the object to be detected in the original medical images at different phases are not all the same; a first conversion unit, used to convert the original medical image into a target medical image, wherein the position of the object to be detected in the target medical images at different phases is the same; a first processing unit, used to segment the target medical image to obtain labeling information of the target medical image, wherein the labeling information is used to label the lesions of the object to be detected in the corresponding phase, and is used as a training sample for training to obtain an image prediction model, and the image prediction model is used to predict the labeling information of the image to be analyzed containing the object to be detected.
[0011] According to one aspect of an embodiment of the present invention, another medical image processing device is provided, including: a first display unit, used to display the original medical images scanned by the image scanning device in different phases in different display areas of an operation interface, respectively, wherein the original medical images of different phases at least show the object to be detected, and the positions of the object to be detected in the original medical image sequence of different phases are not all the same; a second conversion unit, used to respond to a conversion operation instruction acting on the operation interface, and convert the original medical image into a target medical image, wherein the position of the object to be detected in the target medical images of different phases is the same; a second display unit, used to display the annotation information of the target medical image on the operation interface, wherein the annotation information is obtained by segmenting the target medical image, and is used to annotate the lesions of the object to be detected in the corresponding phase, and is used as a training sample for training an image prediction model, and the image prediction model is used to predict the annotation information of the image to be analyzed containing the object to be detected.
[0012] According to one aspect of an embodiment of the present invention, another medical image processing device is provided, including: a presentation unit, used to display the original medical images scanned by the image scanning device in different phases on the presentation screen of a virtual reality VR device or an augmented reality AR device, wherein the original medical images of different phases at least display the object to be detected to be monitored, and the positions of the object to be detected in the original medical images of different phases are not all the same; a third conversion unit, used for the VR device or AR device to convert the original medical image into a target medical image, wherein the position of the object to be detected is the same in the target medical images of different phases; a second processing unit, used to drive the VR device or AR device to render and display the annotation information of the target medical image after segmenting the target medical image to obtain the annotation information of the target medical image, wherein the annotation information is used to annotate the lesions of the object to be detected in the corresponding phase, and is used as a training sample for training to obtain an image prediction model, and the image prediction model is used to predict the annotation information of the image to be analyzed containing the object to be detected.
[0013] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute any one of the above-mentioned medical image processing methods.
[0014] According to another aspect of an embodiment of the present invention, a processor is further provided, and the processor is used to run a program, wherein any one of the above-mentioned medical image processing methods is executed when the program is run.
[0015] In an embodiment of the present invention, the original medical images scanned by the image scanning device at different phases are obtained, wherein the original medical images at different phases at least show the object to be detected, and the positions of the object to be detected in the original medical images at different phases are not completely the same; the original medical images are converted into target medical images, wherein the positions of the object to be detected in the target medical images at different phases are the same; the target medical images are segmented to obtain the annotation information of the target medical images, wherein the annotation information is used to annotate the lesions of the object to be detected in the corresponding phases, and is used as a training sample to train an image prediction model, and the image prediction model is used to predict the annotation information of the image to be analyzed containing the object to be detected. That is to say, the embodiment of the present invention obtains the target medical image by registering the original medical images scanned at different phases, thereby achieving more accurate observation of the object to be detected, and segmenting the target medical images at different phases to automatically generate the annotation information of the target medical image, thereby avoiding the need for pure manual outlining, thereby achieving the technical effect of improving the efficiency of image annotation of medical images, and solving the technical problem of low efficiency of image annotation of medical images. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0017] Figure 1 is a schematic diagram of a medical image processing system according to an embodiment of the present invention;
[0018] Figure 2 is a flow chart of a medical image processing method according to an embodiment of the present invention;
[0019] Figure 3 is a hardware structure block diagram of a computer terminal (or mobile device) for a medical image processing method according to an embodiment of the present invention;
[0020] Figure 4 is a flowchart of another medical image processing method according to an embodiment of the present invention;
[0021] Figure 5 is a schematic diagram of a hardware environment of a virtual reality device for a medical image processing method according to an embodiment of the present invention;
[0022] Figure 6 is a flowchart of another medical image processing method according to an embodiment of the present invention;
[0023] Figure 7 is a schematic diagram of another image processing result according to an embodiment of the present invention;
[0024] Figure 8 is a schematic diagram of model training according to an embodiment of the present invention;
[0025] FIG9( a ) is a schematic diagram of a data storage result according to an embodiment of the present invention;
[0026] FIG9( b ) is a schematic diagram of a data reading result according to an embodiment of the present invention;
[0027] FIG9( c ) is a schematic diagram of a scanned image display according to an embodiment of the present invention;
[0028] Fig.10 is a schematic diagram of a CT image window width and window position fast switching list according to an embodiment of the present invention;
[0029] Fig.11 is a schematic diagram of a view control according to an embodiment of the present invention;
[0030] Fig.12 is a schematic diagram of a mask display setting module according to an embodiment of the present invention;
[0031] Fig.13 is a schematic diagram of a connected domain calculation and analysis module according to an embodiment of the present invention;
[0032] Fig.14 is a schematic diagram of a block annotation and text feedback module according to an embodiment of the present invention;
[0033] Fig.15 is a schematic diagram of a mask delineation module according to an embodiment of the present invention;
[0034] Fig.16 is a schematic diagram of a mask block editing module according to an embodiment of the present invention;
[0035] Fig.17 is a structural block diagram of a computing environment according to an embodiment of the present invention;
[0036] Fig.18 is a structural block diagram of a service grid of an image processing method according to an embodiment of the present invention;
[0037] Fig.19 is a schematic diagram of a medical image processing device according to an embodiment of the present invention;
[0038] Fig. 20 is a schematic diagram of another medical image processing device according to an embodiment of the present invention;
[0039] Fig.21 is a schematic diagram of another medical image processing device according to an embodiment of the present invention;
[0040] Fig. 22 It is a structural block diagram of a computer terminal according to an embodiment of the present invention. DETAILED DESCRIPTION
[0041] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0042] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0043] First, some nouns or terms that appear in the process of describing the embodiments of the present invention are subject to the following explanations:
[0044] Computed Tomography (CT) is a cross-sectional image of a specific scan area generated by computer processing of many X-ray measurements from different angles.
[0045] Multiphase Contrast-enhanced CT (CECT) can scan at different time points to form images of different phases after contrast agents are injected into the patient's body. For example, liver lesions generally require scanning in four phases: plain phase, arterial phase, venous phase, and delayed phase.
[0046] Masks can be used to view target segmentation results or to annotate for training supervised machine / deep learning models. For example, masks can contain 3D area icons of organs, blood vessels, lesions, etc.
[0047] Multi-temporal registration can be used to register images of the same object at different times in the same scene and at the same viewing angle. For example, it can be used for motion tracking, tumor growth tracking, etc.
[0048] Connected domain analysis can be an analysis method for binary images, which can find and mark adjacent pixels with the same pixel value.
[0049] Example 1
[0050] According to an embodiment of the present invention, a method for processing a medical image is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0051] The embodiments of the present invention provide Figure 1 It should be noted that the medical image processing system of this embodiment can be composed of Figure 1 The mobile terminal of the embodiment shown executes, Figure 1 is a schematic diagram of a medical image processing system according to an embodiment of the present invention. Figure 1 As shown, the medical image processing system 1000 may include: a client 1001 and a server 1002 .
[0052] Client 1001 is used to obtain original medical images scanned by an image scanning device at different phases, wherein the original medical images at different phases at least show the object to be detected, and the positions of the object to be detected in the original medical images at different phases are not all the same; convert the original medical images into target medical images, wherein the positions of the object to be detected in the target medical images at different phases are the same; segment the target medical image to obtain annotation information of the target medical image, wherein the annotation information is used to annotate the lesions of the object to be detected in the corresponding phase.
[0053] In this embodiment, original medical images scanned by an image scanning device at different phases can be acquired to obtain an original medical image sequence, the original medical image sequence is converted to obtain a target medical image sequence, the target medical image sequence is acquired, the target medical image in the target medical image sequence is segmented, and based on the result of the segmentation processing, the annotation information of the target medical image is determined, wherein the original medical image sequence may include original medical images scanned at different phases, the original medical images of different phases at least show the object to be detected, and the positions of the object to be detected in the original medical images of different phases are not all the same.
[0054] Optionally, the original medical image is converted into a target medical image, the position of the object to be detected in the target medical image in different phases is the same, the target medical image is segmented to obtain annotation information of the target medical image, wherein the annotation information can be used to annotate the lesions of the object to be detected in the corresponding phase.
[0055] Server 1002 obtains the annotation information of the target medical image from the client; uses the annotation information as training samples to train an image prediction model, and the image prediction model is used to predict the annotation information of the image to be analyzed containing the object to be detected.
[0056] In this embodiment, the annotation information of the target medical image is obtained from the client, and the annotation information of the target medical image can be used as a training sample to train an image prediction model. The image prediction model can be used to perform predictive analysis on the image to be analyzed containing the object to be detected, and the annotation information of the image to be analyzed can be obtained, wherein the annotation information can be a multi-category mask annotation; the image prediction model can be used to analyze the image containing the object to be detected, and can be a deep learning model, for example, it can be a deep learning model for initial multi-class semantic segmentation.
[0057] In the medical image processing system provided in the embodiment of the present invention, the original medical images scanned by the image scanning device at different phases are obtained through the client 1001; the annotation information of the target medical image from the client is obtained through the server 1002; the annotation information is used as a training sample to train an image prediction model, and the image prediction model is used to perform predictive analysis on the image to be analyzed containing the object to be detected. The original medical image sequence obtained by scanning at different phases can be linked and displayed to obtain a target medical image sequence, thereby achieving more accurate observation of the object to be detected, and the target medical image sequence (medical images at different phases) obtained after the linked display is segmented and processed, and the annotation information of the medical image is automatically generated, thereby avoiding the need for pure manual outlining, thereby achieving the technical effect of improving the efficiency of image annotation of medical images and solving the technical problem of low efficiency of image annotation of medical images.
[0058] exist Figure 1 In the operating environment shown in FIG. Figure 2 The medical image processing method shown. Figure 2 is a flow chart of a medical image processing method according to an embodiment of the present invention. Figure 2 As shown, the method may include the following steps:
[0059] Step S202, obtaining original medical images scanned by an image scanning device at different phases, wherein the original medical images at different phases at least show the object to be detected, and the positions of the object to be detected in the original medical images at different phases are not all the same.
[0060] In the technical solution provided in the above step S202 of the present invention, the original medical images scanned by the image scanning device at different phases are obtained, and an original medical image sequence containing different phases can be obtained, wherein the image scanning device can be used to scan images, for example, it can be a computed tomography (CT) device, etc. The medical image can be used to screen, analyze and diagnose a variety of diseases, can be used to characterize the patient's case, and can be a CT image, for example, it can be a liver tumor image, an esophageal cancer image, a gastric cancer image, etc. scanned by a CT device; the medical image sequence can be an image sequence composed of different phases, and the above different phases can be used to characterize images of different scanning periods, for example, it can be a plain scan period, an arterial phase, a venous phase, a delayed phase, etc. The different phases can be any one or more phases in the examples, etc., and the phases are not specifically limited here; the original medical images of different phases in the original medical image sequence at least show the object to be detected, and the position of the object to be detected in the original medical images of different phases is not completely the same; the object to be detected can be a biological object to be detected, which can be used to characterize human organs, for example, it can be the liver, stomach, spleen, etc.
[0061] Optionally, the original medical images may be obtained by scanning with a computer tomography device under different conditions, and the original medical images of different phases may be used to form an original image sequence to obtain the original image sequence.
[0062] Step S204: converting the original medical image into a target medical image, wherein the position of the object to be detected is the same in the target medical image at different phases.
[0063] In the technical solution provided in the above step S204 of the present invention, the original medical images in the original medical image sequence can be converted to obtain a target medical image sequence containing the target medical image sequence, wherein the target medical image sequence can be a CT data set, which can include at least one object to be detected displayed by target medical images of different phases, for example, it can be an abdominal multi-organ segmentation data set, a liver & tumor data set, etc.
[0064] Optionally, target medical images of different phases may be displayed in a linked manner. For example, target medical images of different phases may be displayed in a linked manner on the same display screen.
[0065] For example, the original medical image sequence can be processed by a matching algorithm to make the position of the object to be detected in the target medical images at different phases the same, thereby obtaining a target medical image sequence. The target medical images at different phases in the target medical image sequence can then be displayed in linkage, thereby achieving the purpose of more accurate observation of biological objects.
[0066] Step S206, segmenting the target medical image to obtain annotation information of the target medical image, wherein the annotation information is used to annotate the lesions of the object to be detected in the corresponding phase, and is used as a training sample to train an image prediction model, and the image prediction model is used to predict the annotation information to be analyzed containing the object to be detected.
[0067] In the technical solution provided in the above step S206 of the present invention, a target medical image sequence can be obtained, and the target medical image in the target medical image sequence can be segmented. Based on the result of the segmentation processing, the annotation information of the target medical image can be determined. The annotation information of the target medical image can be used as a training sample to train an image prediction model. The image prediction model can be used to perform predictive analysis on the image to be analyzed containing the object to be detected to obtain the annotation information of the image to be analyzed, wherein the annotation information can be used to annotate the lesions of the biological object, and can be a multi-category mask annotation, for example, it can be an annotation for the condition of the biological object, the cause of the abnormality, etc., and the type of annotation is not specifically limited here, and the information used to characterize the biological object should be within the protection scope of the embodiment of the present invention. The annotation information can be used to annotate the lesions of the biological object in the corresponding phase, for example, it can be an annotation of the images of the liver in the smoothing period and the delayed period respectively; the image prediction model can be used to analyze the image containing the biological object, and can be a deep learning model, for example, it can be a deep learning model for initial multi-class semantic segmentation.
[0068] Optionally, an automatic initial segmentation condition can be set, and the target medical image in the target medical image sequence can be automatically segmented based on the initial segmentation condition, thereby eliminating the need to manually outline the object to be detected, thereby improving the efficiency of data processing; the segmented image can be labeled based on preset known labeling information of similar objects to be detected, thereby obtaining the identification information of the target medical image.
[0069] For example, an initial multi-class semantic segmentation model suitable for a specific task can be trained from a multi-source public CT image dataset, so that the target medical image can be identified through the trained segmentation model, and the annotation information of the target medical image can be obtained. The annotation information is used as the initial mask annotation, and the target medical image and the initial mask annotation are used as the training set to train a new deep learning model. The trained model can automatically segment the object to be detected in a given image, wherein the specific task can be any image, for example, it can be a liver tumor image segmentation dataset, esophageal cancer images, gastric cancer images; it can even be a non-tumor image, such as fatty liver, cirrhosis images, etc. There is no specific restriction on the type of specific task here.
[0070] Through the above-mentioned steps S202 to S206 of the embodiment of the present invention, the target medical image is obtained by aligning the original medical image sequence obtained by scanning at different phases, thereby achieving more accurate observation of the object to be detected, and the target medical images at different phases are segmented and processed, and the annotation information of the target medical image is automatically generated, thereby avoiding the need for pure manual outlining, thereby achieving the technical effect of improving the efficiency of image annotation of medical images, and solving the technical problem of low efficiency of image annotation of medical images.
[0071] The above method of this embodiment is further introduced below.
[0072] As an optional implementation, step S204, the original image sequence includes original medical images scanned at different phases, and converting the original medical images into target medical images includes: determining in the original medical image sequence a first original medical image scanned by an image scanning device at a target phase to be monitored; and registering a second original medical image in the original medical image sequence except the first original medical image based on the first original medical image, to obtain a target medical image sequence.
[0073] In this embodiment, the original image sequence includes original medical images scanned at different phases, and the first original medical image scanned by the image scanning device at the target phase to be monitored is determined in the original medical image sequence, and the second original medical images except the first original medical image in the original image sequence are all aligned to the first original medical image, thereby obtaining a target medical image sequence, wherein the target medical image in the target medical image sequence can be the first original medical image or the aligned second original medical image, wherein the target phase can be a frequently used phase or a phase pre-selected according to actual conditions, and no specific restrictions are imposed on the determination of the target phase.
[0074] Optionally, original medical images of multiple phases are collected to obtain an original medical image sequence. The original medical images in the original medical image sequence can be registered by image registration. For example, the differential evolution (DE) algorithm can be used to register the multi-phase images. No specific limitation is made to the registration method herein. Any method that can achieve image registration should be within the protection scope of the embodiments of the present invention. The first original medical image corresponding to the target phase in the original image sequence is determined, and the images corresponding to other phases except the target phase are registered to the first original medical image to obtain a target medical image sequence.
[0075] In order to facilitate the simultaneous comparative observation of the same object (target) to be detected, the embodiments of the present invention align / deform the images to the same spatial coordinates when registering them. For example, the venous image is usually the most commonly observed, so the multi-phase images can be registered, so that the images of other phases can be aligned / registered to the venous phase. In this way, the annotator can observe the multi-phase registered images at the same time, thereby improving the accuracy of the judgment of the object to be detected.
[0076] As an optional implementation, the first original medical image and the second original medical image are three-dimensional medical images, wherein the second original medical image other than the first original medical image in the original medical image sequence is registered with the first original medical image as a reference to obtain a target medical image, including: taking the three-dimensional coordinates of the object to be detected in the first original medical image as a reference, registering the three-dimensional coordinates of the object to be detected in the second original medical image to obtain the target medical image.
[0077] In this embodiment, the three-dimensional coordinates of the object to be detected in the first original medical image can be used as a reference to align the three-dimensional coordinates of the object to be detected in the second original medical image, so as to achieve the purpose of aligning the second original medical image except the first original medical image in the original medical image sequence to the first original medical image by aligning or deforming the three-dimensional coordinates of the object to be detected in the second original medical image to the three-dimensional coordinates of the object to be detected in the first original medical image, thereby obtaining a target medical image sequence.
[0078] For example, an enhanced CT scan usually generates four three-dimensional (3D) images taken at four time points, such as 0 seconds, 30 seconds, 60 seconds, and 90 seconds, which may correspond to the plain scan period, arterial period, venous period, and delayed period, respectively. During the scanning process, the person may move relative to the CT and the internal organs themselves may move, so these four images are not spatially aligned. Therefore, in order to facilitate the simultaneous comparative observation of the same target, the embodiment of the present invention can align or deform the three-dimensional coordinates of the object to be detected in the second original medical image to the three-dimensional coordinates of the object to be detected in the first original medical image, thereby aligning / deforming the acquired images to the same spatial coordinates, thereby improving the efficiency of observing the data.
[0079] As an optional implementation, step S206, performing segmentation processing on the target medical image to obtain annotation information of the target medical image, includes: calling an image segmentation model associated with a phase corresponding to the target medical image, performing segmentation processing on the target medical image, and obtaining annotation information of the target medical image.
[0080] In this embodiment, the image segmentation models associated with the phases corresponding to target medical images of different categories are different. The image segmentation model can be trained based on the annotation information samples of the medical image samples as training samples. The image segmentation model associated with the phase corresponding to the target medical image can be called to perform segmentation processing on the target medical image to obtain the annotation information of the target medical image, wherein the image segmentation model can be a multi-target semantic segmentation model (nnUNet) for segmenting the image based on the object to be detected; the annotation information samples of the medical image samples can be multi-source public CT image data with annotations in the public data, or medical image samples with annotation information pre-selected from the database. No specific restrictions are imposed on the method of obtaining the medical image samples.
[0081] For example, four lung (MSD) segmentation datasets can be obtained, namely, liver tumor (Liver & tumor) dataset, hepatic vessel & tumor (Hepatic vessel & tumor) dataset, pancreas (Pancreas) dataset and spleen (Spleen) dataset. It should be noted that the number of datasets can be increased according to demand, for example, there can also be abdominal multi-organ (BTCV) segmentation dataset, etc. The types and quantities of datasets here are only for illustration and are not specifically limited; the selected datasets can be used to train multiple target semantic segmentation models corresponding to the lungs, and the image segmentation model associated with the phase corresponding to the trained target medical image can be called. The target medical image is segmented by the image segmentation model to obtain the annotation information of the target medical image.
[0082] As an optional implementation, a sub-segmentation model is obtained by training based on medical image samples in a target phase to be monitored; medical image samples in different phases except the target phase are input into the sub-segmentation model to obtain annotation information samples, wherein the annotation information in the annotation information samples is used to annotate the lesions of the object to be detected in different phases except the target phase; an image segmentation model is obtained by training based on the medical image samples in the target phase and the annotation information samples.
[0083] In this embodiment, a sub-segmentation model can be trained based on medical image samples in the target phase to be monitored, and medical image samples in different phases except the target phase can be input into the sub-segmentation model. The sub-segmentation model identifies the annotation information of the image to obtain the annotation information samples, and the image segmentation model can be trained based on the medical image samples in the target phase and the annotation information samples as training samples.
[0084] Optionally, sub-segmentation models corresponding to different categories of objects to be detected can be trained based on medical image samples in the target phase to be monitored, and medical image samples in different phases except the target phase can be input into the corresponding sub-segmentation model for identification to obtain labeled information samples, and a new image segmentation model can be trained based on the labeled information samples and the medical image samples in the target phase as training samples.
[0085] In an embodiment of the present invention, the trained model can be used to perform cross-inference on data in other data sets, and annotations corresponding to other data sets can be inferred (initial multi-class mask annotations). Based on the initial multi-class mask annotation training, a new nnUNet semantic segmentation model can be obtained, which can automatically segment multiple categories of targets in the monitored images of a given period.
[0086] As an optional implementation, the annotation information of the target medical image is adjusted based on the annotation adjustment data, wherein the annotation adjustment data is acquired based on the adjustment operation instruction trigger; and the adjusted annotation information of the target medical image is output, wherein the adjusted annotation information of the target medical image is used to update the image prediction model.
[0087] In this embodiment, after obtaining the annotation information, the annotation information can be adjusted based on the annotation adjustment data, and the adjusted annotation information can be output; the image prediction model can be updated based on the adjusted annotation information, wherein the annotation adjustment data can be data set by the user, and can be obtained based on the adjustment operation instruction trigger; the image prediction model can be a multi-target semantic segmentation model, which can be used to segment the monitored image to obtain the annotation information.
[0088] In an embodiment of the present invention, there is no need to perform any annotation on the acquired data in advance. Only existing annotations in multiple public data are used to allow artificial intelligence (AI) models to learn and reason with each other in multiple data and multiple annotations, and finally obtain a multi-target semantic segmentation model; the multi-target semantic segmentation model obtained through training only requires modifying the automatic initial segmentation through annotation adjustment data to complete the adjustment of the target medical image, and there is no need to manually outline multiple targets, thereby improving the efficiency of annotating medical images.
[0089] As an optional implementation, the target medical image and / or the annotation information of the target medical image is loaded from the target position to the data list, wherein the target position is used to store the target medical image and / or the annotation information of the target medical image.
[0090] In this embodiment, the target medical image and / or the annotation information of the target medical image can be stored in the target position, and the target medical image and / or the annotation information of the target medical image can be loaded from the target position into the data list, so as to achieve the purpose of quickly acquiring data from a determined position, wherein the target position can be a pre-set storage data path; the data list can be a data directory (Data Dir) or a mask directory (Mask Dir), etc., and no specific restrictions are made on the data list here.
[0091] Optionally, the target medical image can be automatically loaded and placed in the data directory according to a preset data path through the file management module, so that the target medical image can be quickly browsed and switched; the target medical image can be stored in the data directory, and the annotation information can be stored in the mask directory, so that the target medical image and / or the annotation information of the target medical image can be quickly selected from the specified location, and the selected data can also be quickly copied, transmitted, batch processed, etc., without specific restrictions here.
[0092] For example, according to the set data path, the target medical image and / or the annotation information of the target medical image can be automatically loaded and put into a list for browsing and switching, and a use case filtering function can be provided. Only the selected data in the filter box can be displayed, or the currently selected data can be displayed. Up and down switch buttons are provided, and quick switching of the target medical image and / or the annotation information of the target medical image can be achieved through the up and down switch buttons.
[0093] In an embodiment of the present invention, a target medical image sequence is obtained by aligning the original medical image sequence obtained by scanning at different phases, thereby achieving more accurate observation of the object to be detected, and the obtained target medical image sequence (medical images at different phases) is segmented and processed, and annotation information of the medical image is automatically generated, thereby avoiding the need for pure manual outlining, thereby achieving the technical effect of improving the efficiency of image annotation of medical images and solving the technical problem of low efficiency of image annotation of medical images.
[0094] The following describes the medical image processing method according to the embodiment of the present invention from the interaction side.
[0095] Figure 3 1 is a hardware structure block diagram of a computer terminal (or mobile device) for a medical image processing method according to an embodiment of the present invention. Figure 3As shown, the computer terminal 30 (or mobile device 30) may include one or more (302a, 302b, ..., 302n are used to illustrate) processors 302 (the processor 302 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 304 for storing data, and a transmission device 306 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 3 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 3 More or fewer components as shown, or with Figure 3 Different configurations are shown.
[0096] It should be noted that the one or more processors 302 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 30 (or mobile device). As involved in the embodiments of the present invention, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0097] The memory 304 can be used to store software programs and modules of application software, such as program instructions / data storage devices corresponding to the medical image processing method in the embodiment of the present invention. The processor 302 executes various functional applications and data processing by running the software programs and modules stored in the memory 304, that is, to implement the above-mentioned vulnerability detection method of the application. The memory 304 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 304 may further include a memory remotely arranged relative to the processor 302, and these remote memories may be connected to the computer terminal 30 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0098] The transmission device 306 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 30. In one example, the transmission device 306 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 306 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0099] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 30 (or mobile device).
[0100] It should be noted that, in some optional embodiments, the above Figure 3 The computer device (or mobile device) shown may include hardware elements (including circuits), software elements (including computer code stored on a computer-readable medium), or a combination of hardware elements and software elements. It should be noted that Figure 3 This is merely one example of a particular embodiment and is intended to illustrate the types of components that may be present in the above-described computer device (or mobile device).
[0101] exist Figure 3 In the operating environment shown in FIG. Figure 4 It should be noted that the medical image processing method of this embodiment can be Figure 3 The illustrated embodiment is executed by a mobile terminal.
[0102] Figure 4 FIG. 1 is a flowchart of another medical image processing method according to an embodiment of the present invention. Figure 4 As shown, the method may include the following steps:
[0103] Step S402, displaying the original medical images scanned by the image scanning device in different phases in different display areas of the operation interface, wherein the original medical images of different phases at least show the object to be monitored, and the position of the object to be detected is not completely the same in the original medical image sequence of different phases.
[0104] In the technical solution provided in the above step S402 of the present invention, original medical images of different phases can be displayed in different display areas of the operation interface, and an original medical image sequence can be obtained based on the original medical images scanned by the image scanning device at different phases, wherein the display area can be a display window or an application window, and can be a display area at the same position or a display area at different positions. For example, a flat area of a display screen can be used as the display area, or different display screens can be used as the display area. No specific restrictions are imposed on the type and position of the display area.
[0105] Optionally, the CT scan images of the four phases can be displayed synchronously through the view control module. For example, the view control module can be used to control the CT scan images of the four phases to be placed in display windows (Display) 1 to 4 respectively, and No. 1 and 2 can be displayed in the same application window (window), and No. 3 and 4 can be displayed in the same application window (auxiliary window).
[0106] For example, assuming that there are four display windows, 1, 2, 3, and 4, the display windows can be fixed positions during operation, and can include two main windows and two auxiliary windows. Which phase is displayed on which display can be set through the four input boxes in the CT image window width and window position quick switching list (CT Display and Contrast). The corresponding images to be displayed can be entered in the four input boxes in the CT image window width and window position quick switching list (CT Display and Contrast), so that the display order can be flexibly adjusted as needed without specific restrictions. There can be a "range" control in the display box, and the upper and lower limits of the contrast can be adjusted by adjusting the two scroll bars in the control. The contrast adjustment range is -500 to 500, and the adjustment accuracy is 1.
[0107] Step S404, in response to a conversion operation instruction on the operation interface, the original medical image is converted into a target medical image, wherein the position of the object to be detected is the same in the target medical image at different phases.
[0108] In the technical solution provided in the above step S404 of the present invention, a conversion operation instruction on the operation interface is obtained, and in response to the conversion operation instruction on the operation interface, the original medical image sequence is converted into a target medical image sequence, and target medical images of different phases in the target medical image sequence can be displayed in a linked manner in different display areas.
[0109] Step S406, displaying the annotation information of the target medical image on the operation interface, wherein the annotation information is obtained by segmenting the target medical image in the target medical image sequence, and is used to annotate the lesions of the object to be detected in the corresponding phase, and is used as a training sample to train an image prediction model, and the image prediction model is used to predict the annotation information of the image to be analyzed containing the object to be detected.
[0110] In the technical solution provided in the above step S406 of the present invention, the target medical image in the target medical image sequence is segmented to obtain annotation information of the target medical image, the annotation information is annotated in the phase corresponding to the lesion of the biological object, the annotation information of the target medical image is obtained, and the annotation information of the target medical image is displayed on the operation interface.
[0111] The above method of this embodiment is further introduced below.
[0112] As an optional implementation, in response to a contour adjustment operation instruction acting on the annotation information of the target medical image, contour adjustment data is obtained; the annotation information adjusted by the contour adjustment data is displayed on the operation interface; and / or in response to a style adjustment instruction acting on the operation interface, the annotation information adjusted by the style adjustment instruction is displayed on the operation interface.
[0113] In this embodiment, a contour adjustment operation instruction for the annotation information can be input on the operation interface, and in response to the contour adjustment operation instruction, the annotation information after the contour is adjusted by the contour adjustment data is displayed on the operation interface; and / or in response to the style adjustment instruction acting on the operation interface, the annotation information of the target medical image after the style adjustment is displayed on the operation interface, wherein the contour adjustment data can be data for outlining and adjusting the mask contour, for example, it can be an operation instruction for outlining by clicking with the left mouse button, or outlining by dragging with the left mouse button, and the style adjustment instruction can be an instruction for adjusting the display style of the mask, and can include adjustments to the contour thickness, contour transparency, and mask transparency, for example, it can be operations such as filling the line color or pattern of the mask.
[0114] Optionally, in response to a contour adjustment operation instruction acting on the annotation information of the target medical image, adjustment operation data can be obtained through the mask drawing module, and based on the contour adjustment data, the annotation information adjusted by the contour adjustment data is displayed on the operation interface and / or in response to a style adjustment instruction acting on the operation interface, the annotation information of the target medical image after style adjustment is displayed on the operation interface.
[0115] For example, after setting the mask that needs to be outlined, you can select different categories, and use the left mouse button to click or drag in the main display to outline the mask outline; you can click the right mouse button to finish outlining the current mask, and use the Erase function to trim the mask. You can set the style for each annotation based on the style adjustment command on the operation interface. For example, you can adjust the outline thickness, outline transparency, mask transparency, etc. by sliding the controls in the style adjustment command.
[0116] As an optional implementation, in response to a switching operation instruction on the operation interface, the target medical image displayed in the display area is switched; and / or in response to a parameter adjustment instruction on the operation interface, the image parameters of the target medical image displayed in the display area are adjusted.
[0117] In this embodiment, a switching operation instruction on the operation interface can be selected, and the target medical image displayed in the display area is switched in response to the switching operation instruction on the operation interface. The parameters of the displayed target medical image can be adjusted on the operation interface, and the image parameters of the target medical image displayed in the display area are adjusted in response to the parameter adjustment instruction on the operation interface, wherein the switching operation instruction can be used to switch the displayed target medical image, for example, the target medical image displayed in window No. 1 can be quickly switched to the target medical image in window No. 2 through the switching operation instruction; the parameter adjustment instruction can be used to adjust the image parameters, for example, the display contrast in the image parameters can be adjusted through a sliding operation.
[0118] Optionally, a switching operation instruction can be obtained through the view control module, and the target medical image displayed in the display area can be switched in response to the switching operation instruction. For example, the "1<->2" control can be selected in the view control module in the operation interface, and in response to a click operation, the target medical image displayed in the display area is switched from the target medical image at position 1 to the target medical image at position 2.
[0119] For example, four windows can be selected to display the target medical image. Display windows 1, 2, 3, and 4 can be fixed positions at runtime and can include two main windows and two auxiliary windows. They can be set through four input boxes in the CT image window width and window position quick switching list (CT Display and Contrast). The corresponding images to be displayed can be entered in the four input boxes in the CT image window width and window position quick switching list (CT Display and Contrast), so that the display order can be flexibly adjusted as needed. There is a contrast scroll bar in the CT image window width and window position quick switching list. By scrolling the scroll bar up and down, the image parameters of the displayed target medical image can be adjusted in response to the parameter adjustment instruction of the scroll bar.
[0120] As an optional implementation, in response to a storage operation instruction on the operation interface, the target medical image and / or the annotation information of the target medical image is stored in the target location; in response to a loading operation instruction on the operation interface, the target medical image and / or the annotation information of the target medical image is loaded from the target location to the data list displayed on the operation interface.
[0121] In this embodiment, the storage space in the operation interface can be clicked to obtain the storage operation instruction, and in response to the storage operation instruction on the operation interface, the target medical image and / or the annotation information of the target medical image is stored in the target position; the loading operation instruction in the operation interface can be clicked to respond to the loading operation instruction on the operation interface to load the target medical image and / or the annotation information of the target medical image from the target position to the data list displayed on the operation interface, wherein the target position can be a pre-set position; the data list can be a data directory (Data Dir) or a mask directory (Mask Dir).
[0122] Optionally, the configuration information in the input box can be saved and automatically loaded through the automatic saving and loading module. The configuration information in all user input boxes can be automatically saved through the automatic saving and loading module. The target medical image and / or the annotation information of the target medical image can be stored in the target location in response to the storage operation instruction on the operation interface. When exiting, the information in the input box can also be saved to the configuration file in the user directory; at the same time, the information in the configuration file can also be automatically loaded in response to the loading operation instruction on the operation interface, thereby realizing the loading of the target medical image and / or the annotation information of the target medical image from the target location to the data list displayed on the operation interface.
[0123] As an optional implementation, in response to an instruction to calculate the connected domain of the annotation information of the target medical image, the connected domain information of the annotation information of the target medical image is displayed on the operation interface, wherein the connected domain information is used to represent the three-dimensional connected area of the lesion area marked by the annotation information on the object to be detected; in response to an annotation operation instruction for the annotation information of the target medical image, the annotation information of the annotation information is displayed on the operation interface; in response to an operation instruction to copy the annotation information of the source medical image in the target medical image sequence, the annotation information of the source medical image is copied to the target medical image in the target medical image sequence.
[0124] In this embodiment, a calculation operation is performed on the connected domain of the annotation information of the target medical image, and in response to an instruction to calculate the connected domain of the annotation information of the target medical image, the connected domain information of the annotation information of the target medical image is displayed on an operation interface, wherein the connected domain information can be used to represent a three-dimensional connected area of the lesion area marked by the annotation information on the object to be detected.
[0125] Optionally, the connected domain calculation and analysis module can be used to calculate the connected domain of the annotation information of the target medical image. In response to the connected domain calculation instruction for the annotation information of the target medical image, the two-dimensional single-layer (slice) connected domain can be first calculated through the open source library (imantics), and then regularized and merged through adjacent space (adjacent slices) overlap detection, fusion algorithm, etc., so as to obtain a three-dimensional connected domain from bottom to top, and the connected domain information of the annotation information of the target medical image can be displayed on the operation interface.
[0126] In the related art, since multiple phases cannot be displayed simultaneously, there is a lack of the function of connected domain calculation. The embodiment of the present invention, by designing a connected domain calculation and analysis module, achieves the purpose of determining the connected domain information of the annotation information of the target medical image by overlapping monitoring and fusing short hairs of the connected domain of a two-dimensional single layer through adjacent spaces, thereby improving the accuracy of image information recognition.
[0127] In this embodiment, the annotation of the labeling information of the target medical image can be operated, and in response to the annotation operation instruction of the labeling information of the target medical image, the annotation information of the labeling information is displayed on the operation interface, wherein the annotation information can be used to annotate the lesion.
[0128] Optionally, the case can be commented on through the block annotation and text feedback module (Feedbacks and cmd). For example, by selecting a block (mask) in the file (File), the selected block can be commented on. Just enter the comment content in the text box (comments) and it will be automatically saved. The content in the text box can be saved to a specified file, which facilitates file transmission and quick viewing. The specified file can be a file in the Mask Dir folder (for example, Comnt.json file) or a file path for setting comment saves. If feedback is given for the current lesion (case), the "Feedbacks" function in the operation interface can be used to set the feedback file name and content, and the software can also save it automatically.
[0129] In this embodiment, a copy operation instruction is given for the annotation information of the source medical image in the target medical image sequence. In response to the copy operation, the annotation information of the source medical image is copied to the destination medical image in the target medical image sequence. For example, the annotation information between masks can be copied through the mask block editing module.
[0130] As an optional implementation, in response to a report generation instruction on the operation interface, a case report of the object to be detected is displayed on the operation interface, wherein the case report is generated based on the annotation information of the target medical image sequence.
[0131] In this embodiment, a report generation instruction can be input on the operation interface, and a case report of the object to be detected can be displayed on the operation interface in response to the report generation instruction on the operation interface, wherein the case report can be generated based on the annotation information of the target medical image sequence.
[0132] Optionally, the case report can be processed through the case report automatic loading module. The user can set the case report file and the columns he wants to display. Based on the set case report file and the columns he wants to display, the current corresponding case information is automatically found and displayed in the auxiliary window, thereby achieving the purpose of displaying the case report of the object to be tested on the operation interface.
[0133] In an embodiment of the present invention, original medical images scanned at different phases are displayed to obtain an original medical image sequence; in response to a conversion operation instruction on an operation interface, the original medical image sequence is converted into a target medical image sequence, and target medical images of different phases in the target medical image sequence are linked and displayed in different display areas respectively; target medical images in the target medical image sequence are segmented to obtain annotation information of the target medical image, which is displayed in the operation interface, and the annotation information of the target medical image is used to annotate lesions of the object to be detected in the corresponding phase, and is used as a training sample for training to obtain an image prediction model, and the image prediction model is used to predict and analyze the image to be analyzed containing the object to be detected, thereby avoiding the need for pure manual outlining, thereby achieving the technical effect of improving the efficiency of image annotation of medical images, and solving the technical problem of low efficiency of image annotation of medical images.
[0134] As another optional embodiment, Figure 5 FIG. 1 is a schematic diagram of a hardware environment of a virtual reality device for a medical image processing method according to an embodiment of the present invention. Figure 5 As shown, the virtual reality device 504 is connected to the terminal 506, and the terminal 506 is connected to the server 502 through a network. The above-mentioned virtual reality device 504 is not limited to: virtual reality helmets, virtual reality glasses, virtual reality all-in-one machines, etc., and the above-mentioned terminal 506 is not limited to PCs, mobile phones, tablet computers, etc. The server 502 can be a server corresponding to a media file operator, and the above-mentioned network includes but is not limited to: a wide area network, a metropolitan area network or a local area network.
[0135] Optionally, the virtual reality device 504 of this embodiment includes: a memory, a processor, and a transmission device. The memory is used to store an application program, which can be used to execute: obtaining original medical images scanned by an image scanning device at different phases; converting the original medical images into target medical images; performing segmentation processing on the target medical images to obtain annotation information of the target medical images, thereby achieving the technical effect of improving the efficiency of image annotation of medical images and solving the technical problem of low efficiency of image annotation of medical images.
[0136] Optionally, the terminal of this embodiment can be used to display the original medical images scanned by the image scanning device at different times on the presentation screen of a virtual reality (VR) device or an augmented reality (AR) device to obtain an original medical image sequence, convert the original medical image sequence into a target medical image sequence through the virtual reality VR device or the augmented reality AR device, segment the target medical image in the target medical image sequence to obtain the annotation information of the target medical image, and then drive the VR device or AR device to render and display the annotation information of the target medical image. After receiving the annotation information of the target medical image, the virtual reality device 504 displays it at the target delivery position.
[0137] Optionally, the virtual reality device 504 of this embodiment has an eye-tracking head-mounted display (HeadMount Display, referred to as HMD) and an eye-tracking module that have the same functions as those in the above embodiment, that is, the screen in the HMD head display is used to display real-time images, and the eye-tracking module in the HMD is used to obtain the real-time movement path of the user's eyeballs. The terminal of this embodiment obtains the user's position information and movement information in the real three-dimensional space through the tracking system, and calculates the three-dimensional coordinates of the user's head in the virtual three-dimensional space, as well as the user's field of view direction in the virtual three-dimensional space.
[0138] Figure 5 The hardware structure block diagram shown in the figure can be used not only as an exemplary block diagram of the above-mentioned AR / VR device (or mobile device), but also as an exemplary block diagram of the above-mentioned server. In the operating environment shown in the figure, the present invention also provides the following Figure 6 The method for processing medical images shown in the embodiment can be applied to a virtual reality VR device or an augmented reality AR device, and the model can be used to analyze video segments in the virtual reality VR device or the augmented reality AR device. It should be noted that the method for processing medical images in this embodiment can be Figure 6 The illustrated embodiment is executed by a mobile terminal.
[0139] Figure 6 is a flowchart of another medical image processing method according to an embodiment of the present invention. Figure 6 As shown, the method may include the following steps.
[0140] Step S602, displaying the original medical images scanned by the image scanning device at different phases on the presentation screen of the virtual reality VR device or the augmented reality AR device, wherein the original medical images of different phases at least display the objects to be monitored, and the positions of the objects to be detected are not completely the same in the original medical images of different phases.
[0141] Step S604: The VR device or the AR device converts the original medical image into a target medical image, wherein the position of the object to be detected is the same in the target medical images of different phases.
[0142] Step S606, after segmenting the target medical image and obtaining the annotation information of the target medical image, drive the VR device or AR device to render and display the annotation information of the target medical image, wherein the annotation information is used to annotate the lesions of the object to be detected in the corresponding phase, and is used as a training sample to train an image prediction model, and the image prediction model is used to predict the annotation information of the image to be analyzed containing the object to be detected.
[0143] Optionally, in this embodiment, the medical image processing method can be applied to a hardware environment composed of a server and a virtual reality device. The video is displayed on the presentation screen of the virtual reality device or the augmented reality device. The server can be a server corresponding to the media file operator. The network includes but is not limited to: a wide area network, a metropolitan area network or a local area network. The virtual reality device is not limited to: a virtual reality helmet, virtual reality glasses, a virtual reality all-in-one machine, etc.
[0144] It should be noted that the medical image processing method applied in the VR device or AR device of the embodiment may include: Figure 6 The method of the illustrated embodiment is used to achieve the purpose of driving a VR device or an AR device to display annotation information.
[0145] Optionally, the processor of this embodiment can call the application stored in the memory to execute the above steps through a transmission device. The transmission device can receive media files sent by the server through the network, and can also be used for data transmission between the processor and the memory.
[0146] Optionally, in a virtual reality device, a head-mounted display with eye tracking is provided, wherein the screen in the HMD is used to display the displayed video images, the eye tracking module in the HMD is used to obtain the real-time movement path of the user's eyes, the tracking system is used to track the user's position information and motion information in the real three-dimensional space, and the computing processing unit is used to obtain the user's real-time position and motion information from the tracking system, and calculate the three-dimensional coordinates of the user's head in the virtual three-dimensional space, as well as the user's field of view direction in the virtual three-dimensional space, etc.
[0147] In an embodiment of the present invention, a virtual reality device may be connected to a terminal, and the terminal and the server are connected through a network. The virtual reality device is not limited to: a virtual reality helmet, virtual reality glasses, a virtual reality all-in-one machine, etc. The terminal is not limited to a PC, a mobile phone, a tablet computer, etc. The server may be a server corresponding to a media file operator, and the network includes but is not limited to: a wide area network, a metropolitan area network or a local area network.
[0148] Figure 7 is a schematic diagram of another medical image processing result according to an embodiment of the present invention, such as Figure 7 As shown, the VR device or AR device is driven to display the annotation information of the target medical image.
[0149] The embodiment of the present invention displays the original medical images scanned by the image scanning device at different phases on the presentation screen of the virtual reality VR device or the augmented reality AR device, wherein the original medical images at different phases at least display the object to be detected to be monitored, and the positions of the object to be detected in the original medical images at different phases are not all the same; the VR device or the AR device converts the original medical image into a target medical image, wherein the position of the object to be detected is the same in the target medical images at different phases; after segmenting the target medical image to obtain the annotation information of the target medical image, the VR device or the AR device is driven to render and display the annotation information of the target medical image, wherein the annotation information is used to annotate the lesions of the object to be detected in the corresponding phase, and is used as a training sample for training to obtain an image prediction model, and the image prediction model is used to predict the annotation information of the image to be analyzed containing the object to be detected, thereby avoiding the need for pure manual outlining, thereby achieving the technical effect of improving the efficiency of image annotation of medical images, and solving the technical problem of low efficiency of image annotation of medical images.
[0150] Example 2
[0151] The preferred implementation manner of the above method of this embodiment is further introduced below.
[0152] As a common and key medical image, computed tomography is widely used in medical imaging. It can be used to detect and diagnose lesions in different organs. It plays an important role in the screening, diagnosis, staging, and efficacy evaluation of various diseases. For example, the screening and diagnosis of pancreatic cancer or liver cancer require the use of computed tomography for scanning. In some disease detection, multi-phase enhancement is also used to simultaneously generate images at multiple time points, thereby using contrast agents to enhance the imaging contrast of organs, blood vessels, and tumors. When training models such as target detection, segmentation, and classification for CECT based on supervised deep learning, the annotator needs to simultaneously observe the changes in the target in each CT phase and manually outline the annotation masks of various target structures.
[0153] At present, with the rapid development of artificial intelligence and deep learning, the two are gradually playing an important role in many medical imaging automation applications. However, the advancement of these technologies and the realization of their applications are inseparable from the mask labeling of CT images. Mask labeling requires not only radiological medical knowledge, but also efficient and accurate operation processes. However, since the accuracy of deep learning models depends on a large number of mask labelings, hundreds or even thousands of patients may be required. A lot of energy and time are needed to process the image masks of each patient. Efficient comparative analysis is also required in the later review and correction process. Therefore, it is very important to design and use an efficient and user-friendly mask labeling system. At the same time, some diseases require synchronous reference to multi-phase images for comparative analysis, and the operating software requires convenient image settings and accurate navigation to improve efficiency.
[0154] When comparing and analyzing manual annotations with model predictions, it is necessary to be able to display multiple masks at the same time and set the display style independently, such as color, transparency, outline thickness, etc.; when analyzing mask data, it is necessary not only to be able to analyze the connected area information of each organ and lesion in the mask, such as volume, density, span, etc., but also to be able to annotate the area to facilitate communication between different annotators; when correcting masks, it is necessary to be able to perform efficient outlining and erasing operations, as well as copying, deleting, and updating blocks between masks.
[0155] Since lesion annotation involves different diagnostic information, such as imaging diagnosis, pathological diagnosis, etc., the corresponding diagnostic information needs to be automatically loaded for the reference of the annotator; in terms of file management, CT images and masks need to be separated and stored in different directories to facilitate data copying, transmission and batch processing; when switching cases, the currently modified masks and annotations need to be automatically saved, and all CT scans and masks of the next case need to be automatically loaded, and the relevant connected domain information needs to be calculated; however, for most traditional medical image annotation software, all the registered CT phases cannot be displayed at the same time for linked observation; and there is a lack of effective automatic segmentation function support, and multiple masks need to be outlined in three dimensions from scratch.
[0156] To solve the above problems, in the related art, an open source software (e.g., ITK-Snap, MITK) is proposed, which can be used to view three-dimensional medical images and supports multiple formats of files (e.g., DICOM, NifTi format files). At the same time, masks can be created and edited, and the value of each voxel can be conveniently displayed. Flexible navigation can be performed, for example, fixed-point zooming, three-dimensional volume switching (slice), CT contrast adjustment, mask color and transparency setting, and corresponding CT image density of a specific mask label can be counted. However, this method lacks file management and requires manual dragging of images and mask files of each phase, and requires updating display settings through multi-step dialog boxes (e.g., the CT window width and window position need to be manually readjusted for each new patient data to display, and multiple phases cannot be displayed at the same time, the mask style cannot be flexibly set, and the connected domain calculation function is lacking, resulting in the lack of updates and inflexible operation. Technical problems; and it is not suitable for batch file management, too many dialog boxes are used to change the configuration, multiple phases cannot be displayed at the same time, and there is a lack of connected domain calculation or operation functions.
[0157] In the related art, an open source software for three-dimensional volume switching (3D Slicer) is also proposed. Although the software can provide more abundant functions, it is complex to operate and has a high entry threshold. It also lacks high-precision multi-phase CECT registration and target segmentation functions. It is difficult to observe multi-phase registered images at the same time, and the three-dimensional outlining can only be performed layer by layer from scratch.
[0158] To solve the above problems, an embodiment of the present invention proposes a CT mask annotation system with multi-phase and multi-mask synchronous operation assisted by image registration and multi-target automatic segmentation, which improves the annotation accuracy while providing flexible and complete display, calculation and analysis functions, and can easily create and modify masks, provide flexible and complete display, calculation and analysis functions, and realize convenient mask annotation and transmission sharing, thereby improving the efficiency and interactivity of the CT image annotation system.
[0159] Optionally, the above-mentioned CT mask annotation system may include: a file management module, a view control module, a connected domain calculation and analysis module, a block annotation and text feedback module, a mask display setting module, a mask delineation module, a mask block editing module, a case report automatic loading module and a configuration automatic saving and loading module. It should be noted that there is no specific restriction on the types and names of modules in the CT mask annotation system, and modules with the same functions should be within the protection scope of the embodiments of the present invention.
[0160] The application environment of the embodiment of the present invention can be an operating system (for example, Windows, Macintosh, etc.), a graphical interface framework (for example, PyQt5) can be used, and one or two monitors can be used for display; at the same time, it can be operated through a keyboard, a mouse, or a digital sketchpad, thereby realizing efficient viewing, inspection, and correction of CT image masks.
[0161] Optionally, the number of monitors can be determined according to operational needs. For example, if CT Labeler is used to annotate masks or view CT images, multiple phases of CT system installation CDs (images) may need to be displayed simultaneously and synchronously. CT Labeler can be displayed through two main windows and auxiliary windows (application windows); when one monitor cannot fit the main window and auxiliary window at the same time, it can be displayed through two monitors.
[0162] The CT mask annotation system for synchronous operation of multiple phases and multiple masks with assistance of image registration and multi-object automatic segmentation in this embodiment is further introduced below.
[0163] As an optional embodiment, the model is trained using multi-phase CECT image registration and target segmentation algorithms to obtain a trained segmentation model, and the trained segmentation model is used to segment the venous phase CT images in the data to be labeled to obtain initial multi-class mask annotations.
[0164] In this embodiment, multiple phase images are collected, for example, images of one phase or any multiple phases in the Digital Imaging and Communications in Medicine (DICOM) format, including the plain scan phase, arterial phase, venous phase, and delayed phase.
[0165] In this embodiment, the acquired DICOM format images are converted into a free file (NifTI) format for storage and image analysis, and the multi-phase images are registered using an image registration algorithm, wherein the differential evolution (DEEDS) algorithm can be used to register the multi-phase images. For example, for liver tumor imaging problems, the differential evolution algorithm can be used to register other phases to the venous phase.
[0166] For example, an enhanced CT scan of a patient usually generates four three-dimensional (3D) images taken at four time points, such as 0 seconds, 30 seconds, 60 seconds, and 90 seconds, which may correspond to the plain scan period, arterial period, venous period, and delayed period, respectively. During the scanning process, the person may move relative to the CT and the internal organs themselves may move, so these four images are not spatially aligned. Therefore, in order to facilitate the simultaneous comparative observation of the changes in the same target in the four images, the embodiments of the present invention usually align the four images and align / deform them to the same spatial coordinates. For example, the venous image is usually the most frequently observed, so the multi-phase images can be aligned, so that the images of the other three phases can be aligned / registered to the venous phase.
[0167] In this embodiment, a deep learning semantic segmentation framework and a semi-supervised self-learning method can be used to train an initial multi-class semantic segmentation model suitable for a specific task from multi-source public CT image data, so as to obtain the initial mask annotation through the trained segmentation model, wherein the specific task can be any image, for example, it can be a liver tumor image segmentation dataset, esophageal cancer images, gastric cancer images; it can even be non-tumor images, such as fatty liver, cirrhosis images, etc., and there is no specific restriction on the type of specific task here.
[0168] For example, here we take liver tumor image segmentation as an example. Figure 8 is a schematic diagram of a model training according to an embodiment of the present invention, such as Figure 8 As shown in the figure, four lung (MSD) segmentation datasets are obtained, namely, liver tumor (Liver&tumor) dataset, hepatic vessel&tumor dataset, pancreas (Pancreas) dataset and spleen (Spleen) dataset. It should be noted that the number of datasets can be increased according to demand, for example, there can also be abdominal multi-organ (BTCV) segmentation datasets, etc.; multiple lung target semantic segmentation models are trained with the selected datasets, and the trained models are used to cross-train (cross inference) the data in other datasets, and the annotations corresponding to other datasets are inferred (initial multi-class mask annotations), and the acquired segmentation datasets and the generated annotations are used as training sets to train a new nnUNet semantic segmentation model, which can automatically segment multiple categories of targets in a given venous phase image.
[0169] In an embodiment of the present invention, a multi-target semantic segmentation model is obtained without the need for doctors to make any annotations to the acquired data in advance. Instead, the existing annotations in multiple public data are used to allow the artificial intelligence (AI) model to learn and reason with each other in multiple data and multiple annotations, and finally a multi-target semantic segmentation model is obtained. The multi-target semantic segmentation model obtained through training allows the annotator to only modify the automatic initial segmentation and does not require manual outlining of multiple targets, thereby improving the efficiency of annotating medical images. By aligning images at multiple time points, the annotator can simultaneously see the aligned multi-phase images displayed in linkage, so that the target can be observed more accurately. For example, the specific location of the tumor boundary can be determined by observing the multi-phase images displayed in linkage.
[0170] As an optional embodiment, in a multi-phase image and multi-mask scenario, each case needs to be managed with an independent directory, and the data can be managed through a file management module.
[0171] Optionally, Figure 9(a) is a schematic diagram of a data storage result according to an embodiment of the present invention. As shown in Figure 9(a), all files can be stored in the data directory (Data Dir), or masks can be placed in an independent directory, for example, a mask directory (Mask Dir), wherein the file names stored in each case directory are unified, and may include images and masks of different phases. Cases can be automatically loaded and put into a list according to the set data path for browsing and switching, and a case filtering function is provided, which may display only the cases in the filter box, or may display the current case, and provides up and down case switching buttons.
[0172] Optionally, Figure 9(b) is a schematic diagram of a data reading result according to an embodiment of the present invention. As shown in Figure 9(b), the data stored in each case can be displayed in the data directory, for example, it can include CT scan images and masks of different phases in the case, among which CT scan images and multi-class mask annotations can be saved in the file format of a compressed file (nii.gz), etc. There is no specific restriction on the format of data storage here.
[0173] As an optional embodiment, the view control module can be used to synchronously display CT scan images of four phases. For example, FIG9(c) is a schematic diagram of a scan image display according to an embodiment of the present invention. As shown in FIG9(c), the view control module can be used to control the CT scan images of four phases to be placed in display windows 1 to 4, respectively. No. 1 and No. 2 can be displayed in the same application window (window), and No. 3 and No. 4 can be displayed in the same application window (auxiliary window). Biological objects can be marked with different colors / shapes, so that biological objects in the same position can be quickly confirmed from multiple views.
[0174] Optionally, the display windows No. 1, 2, 3, and 4 can be fixed positions when the software is running, and can include two main windows and two auxiliary windows. Which phase is displayed in which display window can be set through the four input boxes in the CT image window width and window position quick switching list (CT Display and Contrast). Fig.10 is a schematic diagram of a CT image window width and window level fast switching list according to an embodiment of the present invention, such as Fig.10 As shown in the figure, the corresponding images to be displayed can be entered in the four input boxes in the CT image window width and window level quick switching list (CT Display and Contrast), so that the display order can be flexibly adjusted as needed, and no specific restrictions can be placed on the displayed content, such as Fig.10 As shown in the figure, the two scroll bars in the "Range" control correspond to the upper and lower limits of the contrast, the contrast adjustment range is -500 to 500, and the adjustment accuracy is 1.
[0175] In this embodiment, the display order can be set through the input box, display No. 1 can be the main display, the resolution can be 1024*1024, displays No. 2, 3, and 4 can be auxiliary displays, and mask marking is mainly completed on display No. 1. Displays No. 2, 3, and 4 can also perform basic outlining. Among them, the outlining operation performed on display No. 1 can be outlining by clicking the left mouse button or dragging the left mouse button. The outlining operation performed on displays No. 2, 3, and 4 can be outlining by clicking the left mouse button. The clicking outlining of displays No. 2, 3, and 4 requires multiple clicks of the left button to complete a contour, which is more laborious, while the dragging outlining of display No. 1 makes the experience smoother.
[0176] Optionally, Fig.11 is a schematic diagram of a view control according to an embodiment of the present invention, such as Fig.11 As shown, the View Control can provide controls for opening and hiding auxiliary windows; it can also provide a quick switch between display 1 and 2. For example, click Fig.11 The "1<->2" control in the window can quickly switch the display function of windows 1 and 2 in response to a click operation; you can click Fig.11 You can use the "Mask All" control in the Window to display the mask in all display windows, or you can use the "Show 3,4" control to display the mask in display windows 3 and 4.
[0177] Optionally, Fig.11A quick switching list of CT image window width and window position (windowing) and a scroll bar for precise contrast control can be provided. Basic mouse and keyboard operations can be performed, or finger touch operations can be performed to achieve quick navigation. For example, by changing the two-dimensional coordinates (slice), zooming in and out within a specific range (Scale), and translation up, down, left, and right can be achieved. It should be noted that no specific restrictions are imposed on the operation method here.
[0178] As an optional embodiment, the style of any mask to be displayed can be set individually through the mask display setting module (Show Mask Options).
[0179] Optionally, Fig.12 is a schematic diagram of a mask display setting module according to an embodiment of the present invention, such as Fig.12 As shown, multiple masks can be displayed simultaneously, and the style of each mask can be set separately, for example, Fig.12 As shown, the outline thickness, outline transparency, and mask transparency can be set by moving the cursor on the line.
[0180] As an optional embodiment, the three-dimensional connected domain of the loaded and displayed mask may be determined by a connected domain calculation and analysis module (Regions and comments).
[0181] In this embodiment, Fig.13 is a schematic diagram of a connected domain computing and analyzing module according to an embodiment of the present invention, such as Fig.13 As shown, all connected domains can be placed in the "Regions" list and sorted by category (label) size. When one of them is clicked, the view automatically switches to the selected region and displays the statistical information of the selected region, such as volume, density, spatial span, etc. You can use the Ctrl key and the left mouse button to directly select a block in the view display.
[0182] Optionally, the two-dimensional single-layer (slice) connected domain can be first calculated through an open source library (imantics), and then regularized and merged through adjacent space (adjacent slice) overlap detection, fusion algorithms, etc., so as to obtain a three-dimensional connected domain from bottom to top.
[0183] For example, in Fig.13 The connected domains 6-10 are sorted by label size and displayed in the connected domain calculation and analysis module. When the connected domain 7 is selected, it is regularized and merged through adjacent space (adjacent slice) overlap detection, fusion algorithm, etc. to obtain a three-dimensional connected domain: LOC(12, 176, 124, 14, 256, 200).
[0184] As an optional embodiment, the case can be annotated through the block annotation and text feedback module (Feedbacks andcmd).
[0185] Optionally, Fig.14 is a schematic diagram of a block annotation and text feedback module according to an embodiment of the present invention, such as Fig.14 As shown, you can select a block in the file (File) (for example, feedback.txt), you can comment on the selected block, and you only need to enter the content in the text box (comments) to automatically save it. The content in the text box can be saved to the specified file, which facilitates file transmission and quick viewing. The specified file can be a file in the Mask Dir folder (for example, Comnt.json file) or a file path for setting comment saves.
[0186] Optionally, if you want to provide feedback on the current case, you can use the "Feedbacks" function to set the feedback file name and content, and the software can also save it automatically.
[0187] As an optional embodiment, the mask outline can be drawn through a mask drawing module (Draw Mask).
[0188] Fig.15 is a schematic diagram of a mask delineation module according to an embodiment of the present invention, such as Fig.15 As shown, after setting the mask (Dst) to be outlined, you can select different categories (label). Different categories are distinguished by different digital numbers. Each category corresponds to a color. The color of the category can be modified through the settings of the configuration file.
[0189] For example, you can click the Start button and use the left mouse button to click or drag in the main display to complete the outline of the mask. After the mask is outlined, click the right mouse button to end the current mask outline; you can use the Erase function to trim the mask, or delete all mask annotations in the current slice; or, you can copy a single slice or all slice annotations from other masks.
[0190] Optionally, Dst in the mask drawing module is the destination mask for drawing (because multiple masks are opened at the same time, it is necessary to determine which mask to draw on); Save is manual saving, and the Dst mask in the software memory is immediately saved to the case mask directory on the hard disk; when you want to initialize from an existing mask, you can set the Src source mask, CopyAll is to copy all slices, and CopyOne is to copy only the current slice; Label and the input box on the right are the label numbers currently being drawn; Start / Stop share a button to start drawing / end drawing, and the button automatically changes the display mark according to the status; Erase is an erase button, and erase / end erasing share a button, and the button automatically changes the display mark according to the status; DelOne deletes the outline in the current slice; DelAll deletes the outline of all slices in the mask.
[0191] As an optional embodiment, the connected area may be processed by a mask block editing module (Copy mark by label).
[0192] In this embodiment, by setting the source mask (Src) and label, the destination mask (Dst) and label, it is possible to copy the annotations between masks and reassign them. Multiple destination labels can be set for efficient copying.
[0193] For example, Fig.16 is a schematic diagram of a mask block editing module according to an embodiment of the present invention, such as Fig.16 As shown, when the source mask (Src) input box starts with "region:", the function becomes a connected block copy. After selecting a block, the source mask is automatically updated.
[0194] Alternatively, if Fig.16 As shown, during the editing process, there are multiple masks in the system. Sometimes it is necessary to copy all the annotations of a specific label of a mask, or a specific connected block of a mask to the working Dst target mask. You can set the source mask and source label, the destination mask (Dst) and the destination label, and click the Copy button to copy between masks.
[0195] Optionally, there is a situation where the destination label may be different from the source label. In order to facilitate operation and reduce the problem of repeated modification of settings, multiple destination label boxes and corresponding Copy buttons are added. When the setting string in the Src input box starts with "region:", it can be automatically detected and the copy mode can be changed to connected domain copy. Click a connected block in the regions list or click the control key (Ctrl) and click a connected block displayed to automatically update the region setting in the source mask; click the Copy button to copy the connected block to the Dst mask and use the corresponding destination label.
[0196] As an optional embodiment, the case report may be processed by a case report automatic loading module.
[0197] Optionally, the user can set the case report file and the columns that he wants to display, and based on the set case report file and the columns that he wants to display, the current corresponding case information is automatically found and displayed in the auxiliary window.
[0198] As an optional embodiment, the configuration information in the input box may be saved and automatically loaded through an automatic saving and loading module.
[0199] Optionally, the configuration information in all user input boxes can be automatically saved through the automatic save and load module. When exiting, the information in the input box can be saved to the configuration file in the user directory; at the same time, the information in the configuration file can also be automatically loaded. For example, the name and color of the label can be set through the configuration file and automatically loaded at startup.
[0200] The embodiment of the present invention proposes a multi-phase multi-mask synchronous operation software assisted by image registration and multi-target automatic segmentation. The multi-phase registered CECT completes precise registration based on the DEEDS algorithm, pre-segmentation of the target to be labeled based on nnUNet semi-supervised self-learning training, synchronous linkage display of the registered CECT, independent setting of display style of multiple masks, mask block calculation and operation, efficient file management, and convenient labeling operation, so that one-click loading of multi-phase registered CT images and automatic pre-labeling can be realized, file management, block segmentation, lesion annotation, independent setting of display style of multiple masks, mask delineation, and mask block copying can be performed, so as to realize efficient and high-precision labeling, viewing, and correction of CT image masks.
[0201] In the embodiment of the present invention, a complete data management and mask annotation function is provided. Through the file management module, view control module, mask display setting module, connected domain calculation and analysis module, block annotation and text feedback module, mask delineation module, mask block editing module, case report automatic loading module, and configuration automatic saving and loading module, the problem of low processing efficiency of medical images in related technologies is overcome. The DEEDS registration and nnUNet semi-supervised self-learning algorithm adopted produce more accurate multi-phase CECT registration and initial segmentation of organs, blood vessels, and tumors, thereby improving the annotation efficiency and accuracy of the annotator.
[0202] In another optional embodiment, Fig.17 The block diagram shows the use of the above Figure 3 The computer terminal 30 (or mobile device) shown is an embodiment of a computing node in the computing environment 1701. Fig.17 is a structural block diagram of a computing environment according to an embodiment of the present invention, such as Fig.17 As shown, computing environment 1701 includes multiple computing nodes (such as servers) running on a distributed network (shown as 1710-1, 1710-2, ..., in the figure). Each computing node contains local processing and memory resources, and end users 1702 can remotely run applications or store data in computing environment 1701. Applications can be provided as multiple services 1720-1, 1720-2, 1720-3 and 1720-4 in computing environment 1701, representing services "A", "D", "E" and "H" respectively.
[0203] The end user 1702 can provide and access services through a web browser or other software application on the client, and in some embodiments, the end user 1702's provision and / or request can be provided to the entry gateway 1730. The entry gateway 1730 can include a corresponding agent to handle the provision and / or request for the service 1720 (one or more services provided in the computing environment 1701).
[0204] Service 1720 is provided or deployed according to various virtualization technologies supported by computing environment 1701. In some embodiments, service 1720 can be provided according to virtualization based on virtual machines (VMs), container-based virtualization, and / or similar methods. Virtual machine-based virtualization can be to simulate a real computer by initializing a virtual machine, and execute programs and applications without directly contacting any actual hardware resources. While virtual machines virtualize machines, according to container-based virtualization, containers can be started to virtualize the entire operating system (OS) so that multiple workloads can run on a single operating system instance.
[0205] In an embodiment based on container virtualization, several containers of service 1720 can be assembled into a POD (e.g., Kubernetes POD). Fig.17 As shown, service 1720-2 can be equipped with one or more PODs 1740-1, 1740-2, ..., 1740-N (collectively referred to as POD 1740). Each POD 1740 can include a proxy 1445 and one or more containers 1742-1, 1742-2, ..., 1742-M (collectively referred to as container 1742). One or more containers 1742 in POD 1740 process requests related to one or more corresponding functions of the service, and the proxy 1745 generally controls network functions related to the service, such as routing, load balancing, etc. Other services 1720 can also be accompanied by PODs similar to POD 1740.
[0206] During operation, executing a user request from an end user 1702 may require invoking one or more services 1720 in the computing environment 1701, and executing one or more functions of one service 1720 may require invoking one or more functions of another service 1720. Fig.17 As shown, service "A" 1720-1 receives a user request from end user 1702 from ingress gateway 1730, service "A" 1720-1 may call service "D" 1720-2, and service "D" 1720-2 may request service "E" 1720-3 to perform one or more functions.
[0207] The computing environment described above can be a cloud computing environment, where the allocation of resources is managed by the cloud service provider, allowing the development of functions without considering the implementation, adjustment or expansion of servers. The computing environment allows developers to execute code in response to events without building or maintaining complex infrastructure. Services can be divided into a set of functions that can be automatically and independently scaled, rather than expanding a single hardware device to handle potential loads.
[0208] In another optional embodiment, Fig.18 The block diagram shows the use of the above Figure 1 The computer terminal (or mobile device) shown is used as an embodiment of the service grid. Fig.18 is a structural block diagram of a service grid of an image processing method according to an embodiment of the present invention, such as Fig.18 As shown, the service grid 1800 is mainly used to facilitate secure and reliable communication between multiple microservices. Microservices refer to decomposing an application into multiple smaller services or instances, and distributing them on different clusters / machines to run.
[0209] like Fig.18As shown, the microservice may include an application service instance A and an application service instance B, which form a functional application layer of the service grid 1800. In one embodiment, the application service instance A runs in a machine / workload container group 1814 (POD) in the form of a container / process 1808, and the application service instance B runs in a machine / workload container group 1816 (POD) in the form of a container / process 1810.
[0210] In one implementation, application service instance A may be a product query service, and application service instance B may be a product ordering service.
[0211] like Fig.18 As shown, application service instance A and grid agent (sidecar) 1803 coexist in machine workload container group 1814, and application service instance B and grid agent 1805 coexist in machine workload container 1814. Grid agent 1803 and grid agent 1805 form the data plane layer (data plane) of service grid 1800. Among them, grid agent 1803 and grid agent 1805 are respectively running in the form of container / process 1804, container / process 1804 can receive request 1812 for commodity query service, grid agent 1806, and grid agent 1803 and application service instance A can communicate bidirectionally, and grid agent 1805 and application service instance B can communicate bidirectionally. In addition, grid agent 1803 and grid agent 1805 can also communicate bidirectionally.
[0212] In one implementation, all traffic of application service instance A is routed to a suitable destination through grid proxy 1803, and all network traffic of application service instance B is routed to a suitable destination through grid proxy 1805. It should be noted that the network traffic mentioned here includes, but is not limited to, Hyper Text Transfer Protocol (HTTP), Representational State Transfer (REST), high-performance, general-purpose open source framework (gRPC), open source in-memory data structure storage system (Redis), and the like.
[0213] In one embodiment, the function of extending the data plane layer can be implemented by writing a custom filter for the proxy (Envoy) in the service grid 1800. The service grid proxy configuration can be to enable the service grid to correctly proxy service traffic and achieve service intercommunication and service governance. Grid proxy 1803 and grid proxy 1805 can be configured to perform at least one of the following functions: service discovery, health checking, routing, load balancing, authentication and authorization, and observability.
[0214] like Fig.18 As shown, the service grid 1800 also includes a control plane layer. The control plane layer can be a group of services running in a dedicated namespace, and these services are hosted by a hosting control plane component 1801 in a machine / workload container group (machine / Pod) 1802. Fig.18 As shown, the managed control plane component 1801 communicates bidirectionally with the grid agent 1803 and the grid agent 1805. The managed control plane component 1801 is configured to perform some control management functions. For example, the managed control plane component 1801 receives telemetry data transmitted by the grid agent 1803 and the grid agent 1805, and can further aggregate the telemetry data. For these services, the managed control plane component 1801 can also provide a user-oriented application program interface (API) to more easily manipulate network behavior and provide configuration data to the grid agent 1803 and the grid agent 1805. It should be noted that for the aforementioned method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0215] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0216] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0217] Example 3
[0218] According to an embodiment of the present invention, there is also provided a method for implementing the above Figure 2 The medical image processing method and the medical image processing device are shown.
[0219] Fig.19 is a schematic diagram of a medical image processing device according to an embodiment of the present invention. Fig.19 As shown, the image processing device 1900 may include: an acquisition unit 1902 , a first conversion unit 1904 and a first processing unit 1906 .
[0220] The acquisition unit 1902 is used to acquire the original medical images scanned by the image scanning device at different phases, wherein the original medical images at different phases at least show the object to be detected, and the position of the object to be detected in the original medical images at different phases is not completely the same.
[0221] The first conversion unit 1904 is used to convert the original medical image into a target medical image, wherein the position of the object to be detected is the same in the target medical image at different phases.
[0222] The first processing unit 1906 is used to perform segmentation processing on the target medical image to obtain labeling information of the target medical image, wherein the labeling information is used to label the lesions of the object to be detected in the corresponding phase, and is used as a training sample to train an image prediction model, and the image prediction model is used to predict the labeling information of the image to be analyzed containing the object to be detected.
[0223] It should be noted that the acquisition unit 1902, the first conversion unit 1904 and the first processing unit 1906 correspond to steps S202 to S206 in Embodiment 1, and the three units and the corresponding steps implement the same examples and application scenarios, but are not limited to the contents disclosed in Embodiment 1. It should be noted that the above units, as part of the device, can be run in the computer terminal provided in Embodiment 1.
[0224] According to an embodiment of the present invention, there is also provided a method for implementing the above Figure 4 The medical image processing method and the medical image processing device are shown.
[0225] Fig. 20 FIG. 1 is a schematic diagram of another medical image processing device according to an embodiment of the present invention, and the device is applied to the interaction side. Fig. 20 As shown, the medical image processing device 2000 may include: a first display unit 2002 , a second conversion unit 2004 and a second display unit 2006 .
[0226] The first display unit 2002 is used to display the original medical images scanned by the image scanning device in different phases in different display areas of the operation interface, wherein the original medical images of different phases at least show the object to be detected, and the position of the object to be detected is not completely the same in the original medical image sequence of different phases.
[0227] The second conversion unit 2004 is used to respond to the conversion operation instruction on the operation interface and convert the original medical image into a target medical image, wherein the position of the object to be detected is the same in the target medical image at different phases.
[0228] The second display unit 2006 is used to display the annotation information of the target medical image on the operation interface, wherein the annotation information is obtained by segmenting the target medical image, and is used to annotate the lesions of the object to be detected in the corresponding phase, and is used as a training sample to train an image prediction model, and the image prediction model is used to predict the annotation information of the image to be analyzed containing the object to be detected.
[0229] It should be noted that the first display unit 2002, the second conversion unit 2004 and the second display unit 2006 correspond to steps S402 to S406 in Embodiment 1, and the three units and the corresponding steps implement the same examples and application scenarios, but are not limited to the contents disclosed in Embodiment 1. It should be noted that the above units, as part of the device, can be run in the computer terminal provided in Embodiment 1.
[0230] According to an embodiment of the present invention, there is also provided a method for implementing the above Figure 7 The medical image processing method and the medical image processing device shown can be applied to a virtual reality VR device or an augmented reality AR device, and the model can be used to perform predictive analysis on the images to be analyzed in the virtual reality VR device or the augmented reality AR device.
[0231] Fig.21 FIG. 1 is a schematic diagram of another medical image processing device according to an embodiment of the present invention. Fig.21As shown, the medical image processing device 2100 may include: a presentation unit 2102 , a third conversion unit 2104 , and a second processing unit 2106 .
[0232] The presentation unit 2102 is used to display the original medical images scanned by the image scanning device at different phases on the presentation screen of the virtual reality VR device or the augmented reality AR device, wherein the original medical images of different phases at least display the objects to be monitored and detected, and the positions of the objects to be detected are not completely the same in the original medical images of different phases.
[0233] The third conversion unit 2104 is used for the VR device or the AR device to convert the original medical image into a target medical image, wherein the position of the object to be detected is the same in the target medical image at different phases.
[0234] The second processing unit 2106 is used to drive the VR device or AR device to render and display the annotation information of the target medical image after segmenting the target medical image to obtain the annotation information of the target medical image, wherein the annotation information is used to annotate the lesions of the object to be detected in the corresponding phase, and is used as a training sample to train an image prediction model, and the image prediction model is used to predict the annotation information of the image to be analyzed containing the object to be detected.
[0235] It should be noted that the above-mentioned presentation unit 2102, the third conversion unit 2104 and the second processing unit 2106 correspond to steps S602 to S606 in the first embodiment, and the three units and the corresponding steps implement the same examples and application scenarios, but are not limited to the contents disclosed in the first embodiment. It should be noted that the above-mentioned units, as part of the device, can be run in the computer terminal provided in the first embodiment.
[0236] In the medical image processing device of this embodiment, the original medical image sequence obtained by scanning in different phases is aligned to obtain a target medical image sequence, thereby achieving more accurate observation of biological objects, and the obtained target medical image sequence (medical images of different phases) is segmented and processed to automatically generate annotation information for the medical images, thereby avoiding the need for pure manual outlining, thereby achieving the technical effect of improving the efficiency of image annotation for medical images and solving the technical problem of low efficiency in image annotation for medical images.
[0237] Example 4
[0238] The embodiment of the present invention can provide a computer terminal, which can be any computer terminal device in a computer terminal group. Optionally, in this embodiment, the computer terminal can also be updated to a terminal device such as a mobile terminal.
[0239] Optionally, in this embodiment, the computer terminal may be located in at least one network device among a plurality of network devices of the computer network.
[0240] In this embodiment, the above-mentioned computer terminal can execute the program code of the following steps in the medical image processing method of the application: obtaining the original medical images scanned by the image scanning device at different phases, wherein the original medical images of different phases at least show the object to be detected, and the positions of the object to be detected in the original medical images of different phases are not all the same; converting the original medical image into a target medical image, wherein the position of the object to be detected in the target medical images of different phases is the same; segmenting the target medical image to obtain the annotation information of the target medical image, wherein the annotation information is used to annotate the lesions of the object to be detected in the corresponding phase, and is used as a training sample for training to obtain an image prediction model, and the image prediction model is used to predict the annotation information of the image to be analyzed containing the object to be detected.
[0241] Optionally, Fig. 22 is a structural block diagram of a computer terminal according to an embodiment of the present invention. Fig. 22 As shown, the computer terminal 220 may include: one or more (only one is shown in the figure) processors, a memory, and a transmission device 2206.
[0242] The memory can be used to store software programs and modules, such as program instructions / modules corresponding to the medical image processing method and the medical image processing device in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned medical image processing method. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include a memory remotely arranged relative to the processor, and these remote memories can be connected to the terminal A via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0243] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: obtain the original medical images scanned by the image scanning device at different phases, wherein the original medical images of different phases at least show the object to be detected, and the positions of the object to be detected in the original medical images of different phases are not all the same; convert the original medical image into a target medical image, wherein the position of the object to be detected in the target medical images of different phases is the same; segment the target medical image to obtain the annotation information of the target medical image, wherein the annotation information is used to annotate the lesions of the object to be detected in the corresponding phase, and is used as a training sample for training to obtain an image prediction model, and the image prediction model is used to predict the annotation information of the image to be analyzed containing the object to be detected.
[0244] Optionally, the processor may also execute program codes of the following steps: determining in the original medical image sequence a first original medical image scanned by the image scanning device in the target phase to be monitored; and using the first original medical image as a reference, registering a second original medical image in the original medical image sequence except the first original medical image to obtain a target medical image.
[0245] Optionally, the processor may also execute program code of the following steps: using the three-dimensional coordinates of the object to be detected in the first original medical image as a reference, registering the three-dimensional coordinates of the object to be detected in the second original medical image to obtain a target medical image.
[0246] Optionally, the processor may also execute program codes of the following steps: calling an image segmentation model associated with a phase corresponding to the target medical image, performing segmentation processing on the target medical image, and obtaining annotation information of the target medical image.
[0247] Optionally, the processor may also execute the program code of the following steps: obtaining a sub-segmentation model based on training of medical image samples in the target phase to be monitored; inputting medical image samples in different phases except the target phase into the sub-segmentation model to obtain annotation information samples, wherein the annotation information in the annotation information samples is used to annotate the lesions of the object to be detected in different phases except the target phase; and obtaining an image segmentation model based on training of medical image samples in the target phase and the annotation information samples.
[0248] Optionally, the processor may also execute the program code of the following steps: adjusting the annotation information of the target medical image based on the annotation adjustment data, wherein the annotation adjustment data is acquired based on the adjustment operation instruction trigger; outputting the adjusted annotation information of the target medical image, wherein the adjusted annotation information of the target medical image is used to update the image prediction model.
[0249] Optionally, the processor may also execute program code of the following steps: loading a target medical image and / or annotation information of the target medical image from a target location to a data list, wherein the target location is used to store the target medical image and / or annotation information of the target medical image.
[0250] As an optional example, the processor can call the information and application stored in the memory through the transmission device to perform the following steps: display the original medical images scanned by the image scanning device in different phases in different display areas of the operation interface, wherein the original medical images of different phases at least show the object to be detected, and the positions of the object to be detected in the original medical image sequence of different phases are not all the same; in response to the conversion operation instruction acting on the operation interface, the original medical image is converted into a target medical image, wherein the position of the object to be detected in the target medical images of different phases is the same; the annotation information of the target medical image is displayed on the operation interface, wherein the annotation information is obtained by segmenting the target medical image, and is used to annotate the lesions of the object to be detected in the corresponding phase, and is used as a training sample to train an image prediction model, and the image prediction model is used to predict the annotation information of the image to be analyzed containing the object to be detected.
[0251] Optionally, the processor may also execute program codes of the following steps: responding to a contour adjustment operation instruction acting on the annotation information of the target medical image, acquiring contour adjustment data; displaying the annotation information adjusted by the contour adjustment data on the operation interface; and / or responding to a style adjustment instruction acting on the operation interface, displaying the annotation information adjusted by the style adjustment instruction on the operation interface.
[0252] Optionally, the processor may also execute program codes of the following steps: in response to a storage operation instruction on the operation interface, storing the target medical image and / or the annotation information of the target medical image to a target location; in response to a loading operation instruction on the operation interface, loading the target medical image and / or the annotation information of the target medical image from the target location to a data list displayed on the operation interface.
[0253] Optionally, the processor may also execute program codes of the following steps: in response to a connected domain calculation instruction for the annotation information of the target medical image, display the connected domain information of the annotation information of the target medical image on an operation interface, wherein the connected domain information is used to represent the three-dimensional connected area of the lesion area annotated by the annotation information on the object to be detected; in response to an annotation operation instruction for the annotation information of the target medical image, display the annotation information of the annotation information on the operation interface; in response to an operation instruction for copying the annotation information of the source medical image in the target medical image sequence, copy the annotation information of the source medical image to the target medical image in the target medical image sequence.
[0254] As an optional example, the processor can call the information and application stored in the memory through the transmission device to perform the following steps: displaying the original medical images scanned by the image scanning device in different phases on the presentation screen of the virtual reality VR device or the augmented reality AR device, wherein the original medical images of different phases at least display the object to be detected to be monitored, and the positions of the object to be detected in the original medical images of different phases are not all the same; the VR device or AR device converts the original medical image into a target medical image, wherein the position of the object to be detected is the same in the target medical images of different phases; after segmenting the target medical image to obtain the annotation information of the target medical image, the VR device or AR device is driven to render and display the annotation information of the target medical image, wherein the annotation information is used to annotate the lesions of the object to be detected in the corresponding phase, and is used as a training sample to train an image prediction model, and the image prediction model is used to predict the annotation information of the image to be analyzed containing the object to be detected.
[0255] The embodiment of the present invention obtains a target medical image sequence by aligning the original medical image sequence obtained by scanning at different phases, thereby achieving more accurate observation of biological objects, and performs segmentation processing on the obtained target medical image sequence (medical images at different phases), and automatically generates annotation information for the medical images, thereby avoiding the need for pure manual outlining, thereby achieving the technical effect of improving the efficiency of image annotation for medical images, and solving the technical problem of low efficiency in image annotation for medical images.
[0256] It can be understood by those skilled in the art that Fig. 22 The structure shown is for illustration only, and the computer terminal 220 may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a mobile Internet device (Mobile Internet Devices, MID), a PAD, or other terminal devices. Fig. 22 The structure of the electronic device is not limited. For example, the computer terminal 220 may also include Fig. 22 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Fig. 22 Different configurations are shown.
[0257] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0258] Example 4
[0259] The embodiment of the present invention further provides a computer-readable storage medium. Optionally, in this embodiment, the computer-readable storage medium can be used to store the program code executed by the medical image processing method provided in the first embodiment.
[0260] Optionally, in this embodiment, the above storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.
[0261] Optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps: acquiring original medical images scanned by an image scanning device at different phases, wherein the original medical images at different phases at least show the object to be detected, and the positions of the object to be detected in the original medical images at different phases are not all the same; converting the original medical images into target medical images, wherein the positions of the object to be detected in the target medical images at different phases are the same; performing segmentation processing on the target medical image to obtain annotation information of the target medical image, wherein the annotation information is used to annotate the lesions of the object to be detected in the corresponding phase, and is used as a training sample for training to obtain an image prediction model, and the image prediction model is used to predict the annotation information of the image to be analyzed containing the object to be detected.
[0262] Optionally, the above-mentioned computer-readable storage medium can also execute program codes for the following steps: determining in the original medical image sequence a first original medical image scanned by the image scanning device in the target phase to be monitored; taking the first original medical image as a reference, aligning a second original medical image in the original medical image sequence except the first original medical image to obtain a target medical image.
[0263] Optionally, the computer-readable storage medium may also execute program code for the following steps: using the three-dimensional coordinates of the object to be detected in the first original medical image as a reference, registering the three-dimensional coordinates of the object to be detected in the second original medical image to obtain a target medical image.
[0264] Optionally, the computer-readable storage medium may also execute program code for the following steps: calling an image segmentation model associated with a phase corresponding to the target medical image, performing segmentation processing on the target medical image, and obtaining annotation information of the target medical image.
[0265] Optionally, the computer-readable storage medium may also execute program codes for the following steps: obtaining a sub-segmentation model based on training of medical image samples in a target phase to be monitored; inputting medical image samples in different phases except the target phase into the sub-segmentation model to obtain annotation information samples, wherein the annotation information in the annotation information samples is used to annotate lesions of the object to be detected in different phases except the target phase; and obtaining an image segmentation model based on training of medical image samples in the target phase and the annotation information samples.
[0266] Optionally, the computer-readable storage medium may also execute program code for the following steps: adjusting the annotation information of the target medical image based on the annotation adjustment data, wherein the annotation adjustment data is acquired based on the adjustment operation instruction trigger; and outputting the adjusted annotation information of the target medical image, wherein the adjusted annotation information of the target medical image is used to update the image prediction model.
[0267] Optionally, the computer-readable storage medium may also execute program code for the following steps: loading a target medical image and / or annotation information of a target medical image from a target location to a data list, wherein the target location is used to store the target medical image and / or annotation information of the target medical image.
[0268] As an optional example, a computer-readable storage medium is configured to store program codes for executing the following steps: displaying original medical images scanned by an image scanning device at different phases in different display areas of an operation interface, respectively, wherein the original medical images of different phases at least show the object to be detected, and the positions of the object to be detected in the sequence of original medical images of different phases are not all the same; in response to a conversion operation instruction on the operation interface, converting the original medical image into a target medical image, wherein the position of the object to be detected in the target medical images of different phases is the same; displaying annotation information of the target medical image on the operation interface, wherein the annotation information is obtained by segmenting the target medical image, and is used to annotate the lesions of the object to be detected in the corresponding phase, and is used as a training sample to train an image prediction model, and the image prediction model is used to predict the annotation information of the image to be analyzed containing the object to be detected.
[0269] Optionally, the computer-readable storage medium may also execute program codes for the following steps: responding to a contour adjustment operation instruction acting on the annotation information of the target medical image, acquiring contour adjustment data; displaying the annotation information adjusted by the contour adjustment data on the operation interface; and / or responding to a style adjustment instruction acting on the operation interface, displaying the annotation information adjusted by the style adjustment instruction on the operation interface.
[0270] Optionally, the computer-readable storage medium may also execute program codes for the following steps: in response to a storage operation instruction on an operation interface, storing the target medical image and / or the annotation information of the target medical image to a target location; in response to a loading operation instruction on the operation interface, loading the target medical image and / or the annotation information of the target medical image from the target location to a data list displayed on the operation interface.
[0271] Optionally, the computer-readable storage medium may also execute program codes for the following steps: responding to a connected domain calculation instruction for the annotation information of the target medical image, and displaying the connected domain information of the annotation information of the target medical image on an operation interface, wherein the connected domain information is used to represent the three-dimensional connected area of the lesion area annotated by the annotation information on the object to be detected; responding to an annotation operation instruction for the annotation information of the target medical image, and displaying the annotation information of the annotation information on an operation interface; responding to an annotation operation instruction for the annotation information of the source medical image in the target medical image sequence, and copying the annotation information of the source medical image to the target medical image in the target medical image sequence.
[0272] As an optional example, a computer-readable storage medium is configured to store program code for executing the following steps: displaying original medical images scanned by an image scanning device at different phases on a presentation screen of a virtual reality VR device or an augmented reality AR device, wherein the original medical images at different phases at least display the object to be detected to be monitored, and the positions of the object to be detected in the original medical images at different phases are not all the same; the VR device or AR device converts the original medical image into a target medical image, wherein the position of the object to be detected is the same in the target medical images at different phases; after segmenting the target medical image to obtain annotation information of the target medical image, driving the VR device or AR device to render and display the annotation information of the target medical image, wherein the annotation information is used to annotate the lesions of the object to be detected in the corresponding phase, and is used as a training sample to train an image prediction model, and the image prediction model is used to predict the annotation information of the image to be analyzed containing the object to be detected.
[0273] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0274] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0275] In the several embodiments provided by the present invention, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0276] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0277] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0278] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0279] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for processing medical images, characterized in that: include: Acquire original medical images scanned by an image scanning device at different phases, wherein the original medical images at different phases at least show the object to be detected, and the positions of the object to be detected in the original medical images at different phases are not all the same; Converting the original medical image into a target medical image, wherein the position of the object to be detected is the same in the target medical images of different phases; Segmenting the target medical image to obtain annotation information of the target medical image, wherein the annotation information is used to annotate the lesions of the object to be detected in the corresponding phase and is used as a training sample to train an image prediction model, wherein the image prediction model is used to predict the annotation information of the image to be analyzed containing the object to be detected; The method further comprises: acquiring multiple data sets of the target medical image; training multiple sub-segmentation models based on the multiple data sets, wherein the multiple sub-segmentation models correspond to the multiple data sets one by one; cross-training other data sets among the multiple data sets except the data set corresponding to the sub-segmentation model based on the sub-segmentation models to obtain labeled information samples; using the data sets and the labeled information samples as training samples to train an image segmentation model, wherein the image segmentation model is used to perform segmentation processing on the target medical image; The method further includes: adjusting the annotation information of the target medical image based on the annotation adjustment data, wherein the annotation adjustment data is acquired based on the adjustment operation instruction trigger; outputting the adjusted annotation information of the target medical image, wherein the adjusted annotation information of the target medical image is used to update the image prediction model.
2. The method according to claim 1, characterized in that The original medical image sequence includes the original medical images scanned at different phases, wherein converting the original medical images into target medical images includes: Determining, in the original medical image sequence, a first original medical image scanned by the image scanning device in a target phase to be monitored; Taking the first original medical image as a reference, registering a second original medical image in the original medical image sequence except the first original medical image to obtain the target medical image.
3. The method according to claim 2, characterized in that The first original medical image and the second original medical image are three-dimensional medical images, wherein the first original medical image is used as a reference, and the second original medical image other than the first original medical image in the original medical image sequence is registered to obtain the target medical image, including: The three-dimensional coordinates of the object to be detected in the first original medical image are used as a reference, and the three-dimensional coordinates of the object to be detected in the second original medical image are aligned to obtain the target medical image.
4. The method according to claim 1, characterized in that: Segmenting the target medical image to obtain annotation information of the target medical image includes: The image segmentation model associated with the phase corresponding to the target medical image is called to perform segmentation processing on the target medical image to obtain annotation information of the target medical image.
5. The method according to claim 4, characterized in that The method further comprises: The sub-segmentation model is obtained by training based on medical image samples in the target phase to be monitored; Inputting the medical image samples in the phases other than the target phase in the different phases into the sub-segmentation model to obtain the annotation information samples, wherein the annotation information in the annotation information samples is used to annotate the lesions of the object to be detected in the phases other than the target phase in the different phases; The image segmentation model is trained based on the medical image samples in the target phase and the annotation information samples.
6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: The target medical image and / or the annotation information of the target medical image is loaded from a target position to a data list, wherein the target position is used to store the target medical image and / or the annotation information of the target medical image.
7. A method for processing medical images, characterized in that: include: Displaying original medical images scanned by the image scanning device at different phases in different display areas of the operation interface, wherein the original medical images at different phases at least show the object to be detected, and the position of the object to be detected in the sequence of original medical images at different phases is not entirely the same; In response to a conversion operation instruction on the operation interface, the original medical image is converted into a target medical image, wherein the position of the object to be detected is the same in the target medical images of different phases; Displaying the annotation information of the target medical image on the operation interface, wherein the annotation information is obtained by segmenting the target medical image, and is used to annotate the lesions of the object to be detected in the corresponding phase, and is used as a training sample to train an image prediction model, and the image prediction model is used to predict the annotation information of the image to be analyzed containing the object to be detected; The method further comprises: acquiring multiple data sets of the target medical image; training multiple sub-segmentation models based on the multiple data sets, wherein the multiple sub-segmentation models correspond to the multiple data sets one by one; cross-training other data sets among the multiple data sets except the data set corresponding to the sub-segmentation model based on the sub-segmentation models to obtain labeled information samples; using the data sets and the labeled information samples as training samples to train an image segmentation model, wherein the image segmentation model is used to perform segmentation processing on the target medical image; The method further includes: adjusting the annotation information of the target medical image based on the annotation adjustment data, wherein the annotation adjustment data is acquired based on the adjustment operation instruction trigger; outputting the adjusted annotation information of the target medical image, wherein the adjusted annotation information of the target medical image is used to update the image prediction model.
8. The method according to claim 7, characterized in that The method further comprises: Responding to a contour adjustment operation instruction acting on the annotation information of the target medical image, acquiring contour adjustment data; displaying the annotation information adjusted by the contour adjustment data on the operation interface; and / or In response to a style adjustment instruction acting on the operation interface, the annotation information adjusted by the style adjustment instruction is displayed on the operation interface.
9. The method according to claim 7, characterized in that: The method further comprises: In response to a storage operation instruction on the operation interface, storing the target medical image and / or the annotation information of the target medical image to a target location; In response to a loading operation instruction on the operation interface, the target medical image and / or the annotation information of the target medical image is loaded from the target position into a data list displayed on the operation interface.
10. The method according to claim 9, characterized in that The method further comprises at least one of the following: In response to a connected domain calculation instruction for the annotation information of the target medical image, the connected domain information of the annotation information of the target medical image is displayed on the operation interface, wherein the connected domain information is used to represent a three-dimensional connected region of the lesion region annotated by the annotation information on the object to be detected; In response to an annotation operation instruction for the annotation information of the target medical image, displaying the annotation information of the annotation information on the operation interface; In response to an instruction to copy the annotation information of the source medical image in the target medical image sequence, the annotation information of the source medical image is copied to the destination medical image in the target medical image sequence.
11. A method for processing medical images, characterized in that: include: Displaying original medical images scanned by an image scanning device at different phases on a presentation screen of a virtual reality VR device or an augmented reality AR device, wherein the original medical images at different phases at least display an object to be monitored, and the position of the object to be detected is not entirely the same in the original medical images at different phases; The VR device or AR device converts the original medical image into a target medical image, wherein the position of the object to be detected is the same in the target medical images of different phases; After segmenting the target medical image to obtain the annotation information of the target medical image, the VR device or the AR device is driven to render and display the annotation information of the target medical image, wherein the annotation information is used to annotate the lesions of the object to be detected in the corresponding phase, and is used as a training sample to train an image prediction model, and the image prediction model is used to predict the annotation information of the image to be analyzed containing the object to be detected; The method further comprises: the VR device or AR device acquires a plurality of data sets of the target medical image; training a plurality of sub-segmentation models based on the plurality of data sets, wherein the plurality of sub-segmentation models correspond one to one with the plurality of data sets; cross-training the other data sets among the plurality of data sets except the data set corresponding to the sub-segmentation model based on the sub-segmentation models to obtain annotated information samples; using the data sets and the annotated information samples as training samples, training an image segmentation model, wherein the image segmentation model is used to perform segmentation processing on the target medical image; The method further includes: adjusting the annotation information of the target medical image based on the annotation adjustment data, wherein the annotation adjustment data is acquired based on the adjustment operation instruction trigger; outputting the adjusted annotation information of the target medical image, wherein the adjusted annotation information of the target medical image is used to update the image prediction model.
12. A medical image processing system, characterized in that: include: A client is used to obtain original medical images scanned by an image scanning device at different phases, wherein the original medical images at different phases at least show the object to be detected, and the positions of the object to be detected in the original medical images at different phases are not all the same; convert the original medical images into target medical images, wherein the positions of the object to be detected in the target medical images at different phases are the same; segment the target medical images to obtain annotation information of the target medical images, wherein the annotation information is used to annotate the lesions of the object to be detected in the corresponding phases; The server obtains the annotation information from the client; uses the annotation information as a training sample to train an image prediction model, wherein the image prediction model is used to predict the annotation information of the image to be analyzed containing the object to be detected; The client is further used to: obtain multiple data sets of the target medical image; train multiple sub-segmentation models based on the multiple data sets, wherein the multiple sub-segmentation models correspond to the multiple data sets one by one; based on the sub-segmentation models, cross-train other data sets in the multiple data sets except the data set corresponding to the sub-segmentation model to obtain labeled information samples; use the data sets and the labeled information samples as training samples to train an image segmentation model, wherein the image segmentation model is used to perform segmentation processing on the target medical image; The client is also used to: adjust the annotation information of the target medical image based on the annotation adjustment data, wherein the annotation adjustment data is acquired based on the adjustment operation instruction trigger; output the adjusted annotation information of the target medical image, wherein the adjusted annotation information of the target medical image is used to update the image prediction model.
