Medical image processing method, device, computer equipment and storage medium
Collect medical images through smart microscopes, identify stained cells and target interstitial areas, and calculate area ratios to determine immune cell content. This solves the problem of relying on reference image annotation that affects data accuracy in traditional methods, and improves the accuracy of medical data.
Patent Information
- Application Number
- CN202011400241.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-03
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-12-03
AI Technical Summary
Traditional medical image analysis methods rely on precise annotation of reference images, which affects data accuracy.
Collect medical images through a smart microscope, identify the stained cell area and the target interstitial area, and calculate the area ratio of the intersection area between the two to determine the immune cell content, avoiding the need to compare reference images.
It improves the accuracy of medical data calculation and reduces reliance on the accuracy of reference image annotation.
Smart Images

Figure CN112419295B
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a medical image processing method, apparatus, computer equipment and storage medium. Background Art
[0002] Medical images refer to images of the internal tissues of the human body or a part of the human body obtained in a non-invasive manner for medical treatment or medical research. After the medical image is acquired by medical equipment, the proportion of pixel blocks in specific cell areas in the medical image can be analyzed.
[0003] In traditional medical image analysis solutions, a professional scanner is usually used to scan pathology slides into WSI (Whole Slide Image, full-field digital pathology slice) images, and the specific cell area pixel blocks in the WSI image are compared with the reference image. Then, data is read from the data table corresponding to the reference image according to the comparison results. The data is the proportion of the specific cell area pixel blocks in the medical image. However, this method of medical image analysis is completely dependent on the accuracy of the annotation of the reference image, so whether the reference image is accurately annotated has a great impact on the accuracy of the data. Summary of the invention
[0004] Based on this, it is necessary to provide a medical image processing method, apparatus, computer equipment and storage medium to address the above technical problems, which can improve the accuracy of medical data obtained from medical image processing.
[0005] A medical image processing method, the method comprising:
[0006] Acquiring a medical image obtained by collecting a glass slide tissue;
[0007] Identifying a stained cell region image formed by cell staining of the slide tissue from the medical image;
[0008] identifying an interstitial region image of a target object in the medical image;
[0009] Extracting the stained cell region that intersects with the interstitial region image of the target object from the stained cell region image to obtain a stained immune cell region image;
[0010] The immune cell content is determined according to the ratio between the cell region area of the stained immune cell region image and the slide tissue area in the medical image.
[0011] A medical image processing device, comprising:
[0012] An acquisition module, used to acquire medical images obtained by collecting glass slide tissue;
[0013] A first recognition module is used to recognize a stained cell region image formed by cell staining of the slide tissue from the medical image;
[0014] A second recognition module, used to recognize an interstitial region image of a target object in the medical image;
[0015] An extraction module, used for extracting the stained cell region intersecting with the target interstitial region image in the stained cell region image, to obtain a stained immune cell region image;
[0016] The determination module is used to determine the immune cell content according to the ratio between the cell area of the stained immune cell area image and the slide tissue area in the medical image.
[0017] In one embodiment, the device further comprises:
[0018] An image processing module, used for performing white balance processing on the medical image to obtain a white balanced medical image;
[0019] The first recognition module is also used to extract features of the white balanced medical image through a first prediction model to obtain stained cell features formed by cell staining of the slide tissue; and perform image segmentation on the white balanced medical image according to the stained cell features to obtain a stained cell area image.
[0020] In one embodiment, the image processing module is further used to crop the white-balanced medical image according to a target size; perform denoising on the cropped white-balanced medical image; perform binarization on the denoised white-balanced medical image to obtain a binarized medical image;
[0021] The first recognition module is further used to extract features from the binary medical image through a first prediction model.
[0022] In one embodiment, the image processing module is used to perform white balance processing on the medical image to obtain a white balanced medical image;
[0023] The second recognition module is also used to detect the target area image in the white balance medical image; find the envelope of the detected target area image through the second prediction model to obtain the target envelope area image; fuse the white balance medical image and the target envelope area image to obtain the image contour between the target and the target interstitial tissue; determine the target interstitial area image based on the image contour.
[0024] In one embodiment, the medical image is obtained by collecting the slide tissue through an intelligent microscope; the device further comprises:
[0025] The acquisition module is also used to acquire the magnification information used by the intelligent microscope during the acquisition process;
[0026] An input module is used to input the magnification information into the first prediction model and the second prediction model in sequence, so that the first prediction model and the second prediction model obtain the pixel length corresponding to the magnification information, and adjust the length of each pixel of the white balanced medical image according to the pixel length.
[0027] In one embodiment, the acquisition module is also used to obtain input magnification information used by the intelligent microscope during the acquisition process; or, to calculate the pixel length of the medical image acquired by the intelligent microscope, and to search for magnification information that matches the calculated first pixel length; or, to calculate the image length of the medical image acquired by the intelligent microscope and the number of pixels at the image length, determine the second pixel length based on the image length and the number of pixels, and to search for magnification information that matches the second pixel length.
[0028] In one embodiment, the second recognition module is further used to input each region of interest block obtained by dividing the white balanced medical image into a second prediction model; perform target object detection on the input region of interest blocks through the second prediction model to obtain a corresponding region of interest probability map; splice the region of interest probability map to obtain the target object region probability map; perform target object region determination on the target object region probability map, and determine the target object envelope region image in the white balanced medical image according to the determination result.
[0029] In one embodiment, the second recognition module is further used to obtain a probability threshold; based on the probability threshold and the probability value corresponding to each pixel point in the target object area probability map, the target object area probability map is binarized to obtain a probability mapping result for each pixel point in the target object area probability map; and the target object envelope area image in the white balance medical image is obtained according to the probability mapping result for each pixel point in the target object area probability map.
[0030] In one embodiment, the second recognition module is further used to perform regional connectivity on the target object area image in the white balance medical image to obtain a target object connected area image; remove non-target object areas from the target object connected area image to obtain an updated target object connected area image; and perform morphological expansion on the updated target object connected area image to obtain a target object envelope area image.
[0031] In one embodiment, the device further comprises:
[0032] a marking module, used for marking, in the medical image, an image position that matches a stained immune cell position or a stained immune cell block position in the stained immune cell region image;
[0033] The output module is used to output the marked medical image and the immune cell content, so that the immune cell content is superimposed on the marked medical image for display.
[0034] In one embodiment, the stained cell region image is obtained by identifying a first prediction model; the first prediction model is obtained by processing a first initial prediction model; and the device further comprises:
[0035] A model processing module is used to obtain a medical image sample obtained by collecting a glass slide tissue sample; after the medical image sample is subjected to white balance processing, feature extraction is performed on the medical image sample subjected to white balance processing through the first initial prediction model to obtain a training stained cell feature formed by cell staining of the glass slide tissue sample; image segmentation is performed on the medical image sample subjected to white balance processing according to the training stained cell feature to obtain a training stained cell region image; and model parameters of the first initial prediction model are adjusted according to a loss value between the training stained cell region image and a corresponding stained cell region image label until the model converges.
[0036] In one embodiment, the target object interstitial region image is identified by a second prediction model; the second prediction model is obtained by processing the second initial prediction model; the model processing module is also used to detect the training target object region image in the medical image sample that has been white balanced; the envelope of the training target object region image is searched for by the second prediction model to obtain a training target object envelope region image; the training target object envelope region image and the medical image sample that has been white balanced are fused to obtain a training image contour between the target object and the target object interstitial region; based on the loss value between the training target object interstitial region image determined by the training image contour and the corresponding target object interstitial region image label, the model parameters of the second initial prediction model are adjusted until the model converges.
[0037] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0038] Acquiring a medical image obtained by collecting a glass slide tissue;
[0039] Identifying a stained cell region image formed by cell staining of the slide tissue from the medical image;
[0040] identifying an interstitial region image of a target object in the medical image;
[0041] Extracting the stained cell region that intersects with the interstitial region image of the target object from the stained cell region image to obtain a stained immune cell region image;
[0042] The immune cell content is determined according to the ratio between the cell region area of the stained immune cell region image and the slide tissue area in the medical image.
[0043] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0044] Acquiring a medical image obtained by collecting a glass slide tissue;
[0045] Identifying a stained cell region image formed by cell staining of the slide tissue from the medical image;
[0046] identifying an interstitial region image of a target object in the medical image;
[0047] Extracting the stained cell region that intersects with the interstitial region image of the target object from the stained cell region image to obtain a stained immune cell region image;
[0048] The immune cell content is determined according to the ratio between the cell region area of the stained immune cell region image and the slide tissue area in the medical image.
[0049] The above-mentioned medical image processing method, device, computer equipment and storage medium will form a stained cell area in the glass slide tissue after cell staining, so that the glass slide tissue can be collected by an intelligent microscope to obtain a medical image with distinguishable cell areas, without using a professional scanner to scan the glass slide tissue into a WSI image to identify the cell area. When the medical image obtained by collecting the glass slide tissue is obtained, the stained cell area in the glass slide tissue can be identified from the medical image to obtain a stained cell area image. When the target interstitial area image is identified from the medical image, the stained cell area image that intersects with the target interstitial area image is extracted from the stained cell area image, and then the ratio between the cell area area of the stained immune cell area image and the glass slide tissue area in the medical image is calculated, so there is no need to compare the WSI image obtained by scanning with a professional scanner with the reference image. Therefore, even if the annotation of the reference image is inaccurate, it will not affect the calculation result, thereby improving the accuracy of medical data calculation. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 is an application environment diagram of a medical image processing method in one embodiment;
[0051] Figure 2 is a schematic flow chart of a medical image processing method in one embodiment;
[0052] Figure 3a A schematic diagram of an image of a stained cell region in one embodiment;
[0053] Figure 3b is a schematic diagram of an interstitial region image of a target object in one embodiment;
[0054] Figure 4 A schematic diagram of a medical image for marking immune cell content in one embodiment;
[0055] Figure 5 is a schematic flow chart of a medical image processing method in another embodiment;
[0056] Figure 6 A schematic diagram of a process of obtaining a stained cell region image by using a first prediction model in one embodiment;
[0057] Figure 7a A schematic diagram of a medical image before white balance processing in an embodiment;
[0058] Figure 7b is a schematic diagram of a medical image after white balance processing in an embodiment;
[0059] Figure 8 A schematic diagram of a process for obtaining an interstitial region image of a target object by using a second prediction model in one embodiment;
[0060] Figure 9a is an image of a partial area of a white-balanced medical image in one embodiment;
[0061] Figure 9b An envelope area image of a target object obtained by identifying a target object in a partial area image of a white-balanced medical image in an embodiment;
[0062] Fig.9c It is a schematic diagram of dividing the target object area and the target object interstitial area in one embodiment;
[0063] Fig.10 A schematic diagram of a process of training a first initial prediction model to obtain a first prediction model in one embodiment;
[0064] Fig.11 A schematic diagram of a process of training a second initial prediction model to obtain a second prediction model in one embodiment;
[0065] Fig.12aA schematic diagram of training a stained cell region prediction model and a tumor stroma region prediction model in one embodiment;
[0066] Figure 12b It is a schematic diagram of obtaining the immune cell content through the stained cell region prediction model and the tumor stroma region prediction model in one embodiment;
[0067] Fig.13a is a schematic diagram of a breast tumor image before white balance processing in one embodiment;
[0068] Fig.13b is a schematic diagram of a breast tumor image after white balance processing in one embodiment;
[0069] Fig.14 is a structural block diagram of a medical image processing device in one embodiment;
[0070] Fig.15 is a structural block diagram of a medical image processing device in another embodiment;
[0071] Fig.16 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0072] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0073] Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.
[0074] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics and other technologies. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0075] Computer vision technology (CV) is a science that studies how to make machines "see". To put it more specifically, it refers to machine vision such as using cameras and computers to replace human eyes to identify and measure targets, and further perform graphic processing so that the computer processing becomes an image that is more suitable for human eye observation or transmission to instrument detection. As a scientific discipline, computer vision studies related theories and technologies, and attempts to establish an artificial intelligence system that can obtain information from images or multi-dimensional data. Computer vision technology usually includes image segmentation, image recognition, image semantic understanding, image retrieval, OCR, video processing, video semantic understanding, video content / behavior recognition, three-dimensional object reconstruction, 3D technology, virtual reality, augmented reality, simultaneous positioning and map construction, and other technologies, as well as common biometric recognition technologies such as face recognition and fingerprint recognition.
[0076] Machine Learning (ML) is a multi-disciplinary subject that involves probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, model learning and metric learning.
[0077] The solution provided in the embodiments of the present application involves artificial intelligence computer vision technology and machine learning technology, which is specifically described by the following embodiments:
[0078] The medical image processing method provided in this application can be applied to Figure 1 In the application environment shown. In the application environment, a smart microscope 102, a server 104 and a display device 106 are included. The method can be applied to the smart microscope 102 or the server 104. When the method is applied to the smart microscope 102, the smart microscope 102 collects the slide tissue to obtain a medical image, identifies the stained cell area image formed by cell staining of the slide tissue from the medical image, identifies the target interstitial area image in the medical image, extracts the stained cell area in the stained cell area image that intersects with the target interstitial area image, and obtains the stained immune cell area image; determines the immune cell content according to the ratio between the cell area area of the stained immune cell area image and the slide tissue area in the medical image, and then displays the immune cell content and the medical image output value display device 106 marked with the stained immune cells.
[0079] When applied to the server 104, the intelligent microscope 102 collects glass slide tissue to obtain a medical image. The server 104 obtains the medical image collected by the intelligent microscope 102, identifies the stained cell area image formed by cell staining of the glass slide tissue from the medical image, identifies the interstitial area image of the target object in the medical image, extracts the stained cell area in the stained cell area image that intersects with the interstitial area image of the target object, and obtains the stained immune cell area image; determines the immune cell content based on the ratio between the cell area area of the stained immune cell area image and the glass slide tissue area in the medical image, and then displays the immune cell content and the medical image output value display device 106 marked with the stained immune cells.
[0080] The smart microscope may be a medical microscope with a camera function, through which the slide tissue can be viewed and the slide tissue can be collected to obtain medical images. Optionally, the smart microscope may also perform image recognition on the collected medical images, for example, by deploying a neural network model in the smart microscope, such as a neural network model for predicting the image of the stained cell region and the image of the interstitial region of the target object, and the neural network model may be called a prediction model.
[0081] Server 104 can be an independent physical server or a server cluster composed of multiple physical servers. It can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), as well as big data and artificial intelligence platforms.
[0082] The display device 106 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a display screen, etc., but is not limited thereto.
[0083] The smart microscope 102, the server 104 and the display device 106 may be connected via Bluetooth, USB (Universal Serial Bus) or a network or other communication connection methods, and this application does not impose any limitation thereto.
[0084] In one embodiment, Figure 2 As shown, a medical image processing method is provided, which can be Figure 1 The smart microscope or server in the embodiment is executed, or the smart microscope and the server are executed in collaboration; in this embodiment, the method is performed by Figure 1 The server execution in is taken as an example to illustrate, including the following steps:
[0085] S202, obtaining a medical image obtained by collecting the slide tissue.
[0086] The slide may be a glass slide used to place biological tissue for observation under a microscope. The tissue may be various biological tissues, such as microbial tissue, plant tissue, animal tissue or human tissue.
[0087] Correspondingly, the slide tissue is a biological tissue placed on a slide, and the cell structure in the slide tissue can be observed through an intelligent microscope. The slide tissue can have specific characteristics, for example, the slide tissue can be a biological tissue with a certain pathological change, such as an animal or plant tissue with a specific pathological change, or a tumor tissue in a certain part of the human body. The slide tissue can be a stained biological tissue, and in the stained slide tissue, some cells will be stained. The stained cells are called stained cells, which can be visually distinguished from other unstained cells and non-cells. Multiple stained cells gather together to form a stained cell area.
[0088] In one embodiment, a server establishes a communication connection with an intelligent microscope. When the intelligent microscope acquires images of a slide tissue to obtain a medical image, the intelligent microscope can send the acquired medical image to the server in real time; and the server can receive the medical image sent by the intelligent microscope in real time. In addition, the intelligent microscope acquires video of the slide tissue to obtain a medical video, and then sends the medical video to the server in real time; the server can receive the medical video sent by the intelligent microscope in real time, and then parse the received medical video to obtain multiple medical images, and then extract at least one medical image from the multiple medical images for the medical image processing process.
[0089] After acquiring the medical image, the server may also perform a definition test on the acquired medical image to determine whether the definition of the medical image meets the set definition condition. If the definition does not meet the set definition condition, a medical image acquired by collecting the slide tissue is reacquired until the definition of the newly acquired medical image meets the definition condition, thereby avoiding the final calculation result being affected by low definition.
[0090] In one embodiment, the server can also perform artifact recognition on the acquired medical image to determine whether the medical image contains artifacts. If the medical image contains artifacts and the artifact degree value is greater than a preset threshold, the phase encoding direction is determined, and a phase encoding conversion instruction carrying the phase encoding direction is sent to the intelligent microscope, so that when the intelligent microscope collects image data containing glass slide tissue, the collected image data is encoded according to the phase encoding direction to obtain a new medical image, and then the new medical image is sent to the server, so that the server can use the new medical image to calculate the immune cell content.
[0091] Artifacts can refer to images that do not exist in the slide tissue itself but appear on the medical image during the acquisition or information processing process, which reduces the image quality. For example, during the image acquisition process, the position or shape of the slide tissue changes during each excitation, encoding and signal acquisition, resulting in phase errors and artifacts.
[0092] S204, identifying a stained cell region image formed by cell staining of the slide tissue from the medical image.
[0093] After some cells in the slide tissue are stained, a stained cell region will be formed in the slide tissue, and the number of the stained cell regions can be one or more. When the slide tissue is imaged, the stained cell region is presented in the medical image, and the server identifies the stained cell region from the medical image, thereby obtaining a stained cell region image. It can be understood that the stained cell region image is mainly an image of the stained cell region. In the stained cell region image, the stained cell region can be presented in a color different from the background, such as the stained cell region is white and the background is black, such as Figure 3a As shown; alternatively, the stained cell area in the stained cell area image can also be presented in other colors.
[0094] The stained cell region image may be a binary region image, the size of which is the same as that of the medical image.
[0095] In one embodiment, the server may perform image recognition on the medical image to identify the stained cell region in the slide tissue, thereby obtaining a stained cell region image.
[0096] In one embodiment, the server may divide the medical image into a plurality of pixel blocks, and then determine a probability block that each pixel block belongs to a stained cell region, wherein each pixel value in the probability block represents the probability that the pixel point in the corresponding pixel block matches the stained cell region; the determined probability blocks are spliced to obtain a probability image; and the medical image is segmented according to the probability image to obtain a stained cell region image.
[0097] Before segmenting the medical image, the server may perform white balance processing on the medical image, then segment the white-balanced medical image to obtain a plurality of pixel blocks, and obtain corresponding probability blocks based on the obtained pixel blocks. When performing image segmentation, the server may segment the medical image or the white-balanced medical image based on the probability image to obtain a stained cell region image.
[0098] In addition, after white balance processing, the server can also crop the white balance medical image, that is, crop the invalid area of the white balance medical image, such as the edge area of the image; then perform denoising processing on the cropped white balance medical image, and perform binarization processing on the denoised white balance medical image to obtain a binary medical image. Then, the binary medical image is divided to obtain a plurality of pixel blocks, and corresponding probability blocks are obtained based on the obtained pixel blocks. When performing image segmentation, the server can perform image segmentation on the medical image, the white balance medical image, or the binary medical image based on the probability image to obtain a stained cell area image.
[0099] S206, identifying an interstitial region image of the target object in the medical image.
[0100] The target object can be a target type of cell in the slide tissue, such as a diseased cell (such as a tumor cell) or a cell with a specific property. The target interstitial is the interstitial of the target object, that is, the liquid environment between multiple targets. For example, there is an intercellular matrix between cells, which is the liquid environment in which biological cells live.
[0101] The target interstitial region may refer to the target interstitial region in the slide tissue. When the slide tissue is imaged, the target interstitial region is presented in the medical image. The server identifies the target interstitial region from the medical image, thereby obtaining a target interstitial region image. It can be understood that the target interstitial region image mainly refers to an image of the target interstitial region. In the target interstitial region image, the target interstitial region may be presented in a color different from the background, such as the target interstitial region is white and the background is black, such as Figure 3b As shown; alternatively, the target object interstitial region in the target object interstitial region image may also be presented in other colors.
[0102] The target interstitial region image may be a binary region image, and its size is the same as that of the medical image.
[0103] In one embodiment, the server performs target detection on the acquired medical image to obtain a target area image of the medical image, which may refer to an area image of the target in the slide tissue in the medical image; then, the envelope is searched for the target area image to obtain a target envelope area image, and then the image contour between the target and the target stroma is determined based on the target envelope area image and the medical image, and the target stroma area image is determined based on the image contour.
[0104] Specifically, when detecting a target object or a target area image in a medical image, the target area image in the medical image can be detected based on an artificial intelligence detection method, such as using a pre-trained detection model to detect the target area image in the medical image.
[0105] S208, extracting the stained cell region that intersects with the target interstitial region image in the stained cell region image to obtain a stained immune cell region image.
[0106] In one embodiment, the server may superimpose the stained cell region image and the target object interstitial region image, and then calculate the intersection of the stained cell region in the stained cell region image and the target object interstitial region in the target object interstitial region image. The intersecting stained cell region is the stained immune cell region, thereby obtaining the stained immune cell region image.
[0107] For example, Figure 3a and Figure 3b As shown, Figure 3a The white part in the figure is the stained cell area. Figure 3b The white part in the figure is the interstitial area of the target. Figure 3a The white part and Figure 3b Find the intersection of the white parts in the figure, and the intersection area is the stained immune cell area.
[0108] S210, determining the immune cell content according to the ratio between the cell region area of the stained immune cell region image and the slide tissue area in the medical image.
[0109] The cell region area refers to the area of the stained immune cell region in the stained immune cell region image. The slide tissue area refers to the area of the slide tissue in the medical image, that is, the area of the slide tissue in the medical image within the image acquisition field of view during image acquisition. It should be noted that the area of the slide tissue that does not appear in the medical image or the image acquisition field of view will not be included in the above-mentioned slide tissue area.
[0110] The above-mentioned immune cell content refers to the content of immune cells in the slide tissue within the field of view of image acquisition.
[0111] Specifically, the server calculates the area of the stained immune cell region in the stained immune cell region image to obtain the cell region area; the server calculates the area of the slide tissue in the medical image to obtain the slide tissue area, and then calculates the ratio between the cell region area and the slide tissue area to obtain the immune cell content.
[0112] In one embodiment, the server marks the image position that matches the stained immune cell position or stained immune cell block position in the stained immune cell region image in the medical image; and outputs the marked medical image and immune cell content so that the immune cell content is superimposed on the marked medical image for display. Figure 4 As shown, the figure is a medical image with superimposed immune cell content. The area wrapped by the curve in the figure is the target area, and the other areas are the target interstitial areas. The darker area in the target interstitial area is the stained immune cell area, and the stained immune cell area is composed of multiple scattered small pieces (or small dots).
[0113] Specifically, after obtaining the immune cell content, the server can mark the image position that matches the stained immune cell position in the stained immune cell region image in the medical image in units of cells; output the marked medical image and the immune cell content so that the immune cell content is superimposed on the marked medical image for display. Alternatively, the server can also mark the image position that matches the stained immune cell block position in the stained immune cell region image in units of cell blocks in the medical image; output the marked medical image and the immune cell content so that the immune cell content is superimposed on the marked medical image for display. In addition, the server can also use the above two methods for marking at the same time to obtain a marked medical image.
[0114] In order to understand the above method more clearly and intuitively, the above method is described in combination with a specific application scenario. Here, it is assumed that the target is a tumor cell, and the target stroma is the tumor stroma. Figure 5 As shown, the above method specifically includes:
[0115] S502, the intelligent microscope collects images of the glass slide tissue at the tumor site to obtain a medical image of the tumor site.
[0116] S504, the server receives the medical image of the tumor site sent by the smart microscope.
[0117] S506, the server identifies a stained cell area image formed by cell staining of the slide tissue at the tumor site from the medical image.
[0118] Since the slide tissue at the tumor site is stained, the tumor cells and immune cells are stained, so the colors of the tumor cells and immune cells are different from the colors of other cells and components. Therefore, the server can identify the stained area through image recognition and obtain the stained cell area image. Figure 3a .
[0119] S508: The server identifies a tumor interstitial region image in the medical image.
[0120] The tumor interstitial region image can be referenced Figure 3b .
[0121] S510, the server extracts the stained cell region that intersects with the target interstitial region image in the stained cell region image to obtain a stained immune cell region image.
[0122] The above-mentioned stained immune cell area image is Figure 3a and Figure 3b The image formed by the intersection area of .
[0123] S512, the server determines the content of immune cells in the tumor region according to the ratio between the cell region area of the stained immune cell region image and the slide tissue area in the medical image.
[0124] The content of immune cells in the tumor region is the above-mentioned immune cell content. It should be noted that the immune cell content is the content of immune cells in the tumor region within the image acquisition field of view.
[0125] S514, the server marks the image position that matches the stained immune cell position or the stained immune cell block position in the stained immune cell region image.
[0126] S516, the server outputs the marked medical image and immune cell content.
[0127] S518, the display device superimposes the immune cell content on the marked medical image for display.
[0128] Among them, the display device superimposes the medical image showing the content of immune cells, which can be referred to Figure 4 , in the embodiment of this application scenario, Figure 4 The target interstitial region in the image is the tumor interstitial region, and the target region is the tumor region.
[0129] In the above embodiment, a stained cell region is formed in the cell-stained slide tissue, so that the slide tissue can be collected by an intelligent microscope to obtain a medical image with distinguishable cell regions, without using a professional scanner to scan the slide tissue into a WSI image to identify the cell region. When the medical image obtained by collecting the slide tissue is obtained, the stained cell region in the slide tissue can be identified from the medical image to obtain a stained cell region image. When the interstitial region image of the target object is identified from the medical image, the stained cell region image that intersects with the interstitial region image of the target object is extracted from the stained cell region image, and then the ratio between the cell region area of the stained immune cell region image and the slide tissue area in the medical image is calculated, so there is no need to compare the WSI image obtained by scanning with a professional scanner with the reference image. Therefore, even if the annotation of the reference image is inaccurate, it will not affect the calculation result, thereby improving the accuracy of medical data calculation.
[0130] In one embodiment, Figure 6 The steps to obtain an image of a stained cell area are as follows:
[0131] S602: Perform white balance processing on the medical image to obtain a white balanced medical image.
[0132] Among them, the medical image is white balanced, so that the stained part and the unstained part in the processed medical image can be more distinguished, such as Figure 7a and Figure 7b As shown, Figure 7a This is a part of a medical image before white balance processing. Figure 7b This is a part of the white balanced medical image obtained after white balance processing.
[0133] S604, extracting features from the white-balanced medical image using the first prediction model to obtain stained cell features formed by cell staining of the slide tissue.
[0134] The first prediction model is a neural network model for predicting the stained cell area, and the first prediction model can be a neural network model based on the Linknet segmentation algorithm. The neural network model based on the Linknet segmentation algorithm has fewer model parameters, a faster rate for feature extraction and image segmentation, and can also be implemented in devices with mid- and low-end processors. In addition, network models of other image segmentation algorithms can also be used.
[0135] In one embodiment, the server may input the white-balanced medical image into a first prediction model, the first prediction model extracts pixel features of the white-balanced medical image, and determines the probability that pixels in the white-balanced medical image belong to the stained cell region according to the pixel features to obtain a probability image, wherein the probability image is the stained cell feature.
[0136] Before the white balance medical image is input into the first prediction model, the server can also be divided into a plurality of pixel blocks, and then each pixel block is input into the first prediction model in sequence. The first prediction model extracts pixel features from each pixel block, determines the probability that the pixels of the corresponding pixel block belong to the stained cell area according to the extracted pixel features, and obtains a probability block; the obtained probability blocks are spliced to obtain a probability image.
[0137] In one embodiment, before performing feature extraction, the server may also crop the white-balanced medical image according to the target size; perform denoising on the cropped white-balanced medical image; and perform binarization on the denoised white-balanced medical image to obtain a binarized medical image. S604 may specifically include: the server performs feature extraction on the binarized medical image using the first prediction model to obtain stained cell features. The process of extracting features from the binarized medical image may refer to the above-mentioned step of extracting features from the white-balanced medical image.
[0138] In one embodiment, the server obtains the magnification information used by the intelligent microscope during the acquisition process; the magnification information is input into the first prediction model in sequence, so that the first prediction model obtains the pixel length corresponding to the magnification information, and adjusts the length of each pixel of the white balanced medical image according to the pixel length, so that the first prediction model can convert each pixel of the white balanced medical image into a pixel length that the model itself can process.
[0139] For the way to obtain the zoom information, you can refer to the following two methods:
[0140] Method 1: User input method.
[0141] Specifically, the server obtains input magnification information used by the smart microscope during the acquisition process. For example, the user reads the magnification information on the smart microscope and then inputs the magnification information to the server.
[0142] Method 2: image processing method.
[0143] Specifically, the server calculates the pixel length of the medical image collected by the smart microscope, and searches for the magnification information that matches the calculated first pixel length. This method directly calculates the pixel length of a single pixel, and then searches for matching magnification information based on the pixel length. For example, a 20x microscope corresponds to approximately 0.424μm / pixel, and a 10x microscope corresponds to approximately 0.848μm / pixel. Therefore, when the pixel length of a single pixel is read as 0.424μm / pixel, the magnification information that matches the pixel length can be found, that is, a 20x microscope; when the pixel length of a single pixel is read as 0.848μm / pixel, the magnification information that matches the pixel length can be found, that is, a 10x microscope.
[0144] In another embodiment, the server calculates the image length of the medical image captured by the intelligent microscope and the number of pixels under the image length, determines a second pixel length according to the image length and the number of pixels, and searches for magnification information matching the second pixel length.
[0145] S606, performing image segmentation on the white-balanced medical image according to the stained cell characteristics to obtain a stained cell region image.
[0146] Specifically, the server performs an image segmentation process through the first prediction model, that is, the first prediction model segments a feature region matching the stained cell feature in the white-balanced medical image, thereby obtaining a stained cell region image.
[0147] In the above embodiment, the medical image is first white balanced, so that the stained part and the unstained part in the processed medical image can be more distinguishable, so as to improve the accuracy of segmenting the white balanced medical image to obtain the stained cell area image, and then the accuracy of the immune cell content determined by combining the stained cell area image and the target object interstitial area image is also higher.
[0148] In one embodiment, Figure 8 As shown, the steps of obtaining the interstitial region image of the target object are as follows:
[0149] S802, performing white balance processing on the medical image to obtain a white balanced medical image.
[0150] Among them, the medical image is white balanced, so that the stained part and the unstained part in the processed medical image can be more distinguished, such as Figure 7a and Figure 7b As shown, Figure 7a This is a part of a medical image before white balance processing. Figure 7b This is a part of the white balanced medical image obtained after white balance processing.
[0151] S804: Detect the target area image in the white-balanced medical image.
[0152] The target object region may be the distribution range of the target object in the white-balanced medical image, such as the distribution range of tumor cells in the white-balanced medical image. Correspondingly, the target object region image may be an image composed of the target object region. In the target object region image, the color of the target object region may be white, and the other backgrounds may be black.
[0153] Specifically, the server can use an artificial intelligence-based target area detection method to detect the target area image in the white-balanced medical image. The artificial intelligence-based target area detection method is based on artificial intelligence, such as the target area detection based on a machine learning model. For example, the target area can be detected through various image segmentation algorithm models such as FCN (Fully Convolutional Networks) model, SegNet (A Deep Convolutional Encoder-Decoder Architecture for Image Segmentation, a deep convolutional encoding-decoding architecture for image segmentation) model, Linknet (Relational Embedding for Scene Graph, scene graph relational embedding) model, etc., to obtain the target area in the white-balanced medical image.
[0154] Specifically, when performing target object region detection on a white balanced medical image, an artificial intelligence-based target object region detection method, such as using a pre-trained detection model to perform target object region detection on a white balanced medical image, detects the target object region in the white balanced medical image and obtains a target object region image.
[0155] S806, searching for an envelope of the detected target area image through a second prediction model to obtain a target envelope area image.
[0156] Specifically, after detecting the target region in the white-balanced medical image by the target region detection method based on artificial intelligence, the server searches for an envelope for the target region. Specifically, the server can connect the target regions to find an envelope line that can include the target regions, and generate a target envelope region image based on the area surrounded by the envelope line. By searching for an envelope for the target region image, the influence of errors in the image processing process can be reduced, and an accurate target envelope region image can be obtained.
[0157] In a specific implementation, the server may connect the target object areas to obtain connected areas, and then remove the non-target object areas within the connected areas, thereby ensuring accurate target object recognition results within the connected areas. Finally, the server smoothes the connected areas from which the non-target object areas have been removed, such as by smoothing through morphological dilation to obtain an image of the target object envelope area with smooth edges. At the same time, morphological dilation is used to denoise smaller areas, thereby improving the accuracy of target object envelope area recognition and division.
[0158] In one embodiment, the server obtains the magnification information used by the intelligent microscope during the acquisition process; the magnification information is input into the second prediction model in sequence, so that the second prediction model obtains the pixel length corresponding to the magnification information, and adjusts the length of each pixel of the white balanced medical image according to the pixel length, so that the second prediction model can convert each pixel of the white balanced medical image into a pixel length that the model itself can process.
[0159] For the method of obtaining the zoom information in this embodiment, please refer to Figure 6 Two ways of obtaining zoom information in the embodiments.
[0160] S808, fusing the white balance medical image and the target object envelope area image to obtain an image contour between the target object and the target object matrix.
[0161] After obtaining the target object envelope area image, the target object envelope area image and the white balance medical image are fused to obtain the image contour between the target object and the target object interstitium, which overall shows the distribution of the target object and the target object interstitium in the white balance medical image. Specifically, the server can obtain the intersection between the target object area and the target object envelope area, and determine the intersection of the white balance medical image and the target object envelope area as the image contour. The image contour combines the detection results of the target object area detection of the white balance medical image and the target object area detection results of the white balance medical image based on artificial intelligence, which can effectively reduce the error influence in a single detection method, and the accuracy of the target object area contour detection and division is high.
[0162] S810, determining an interstitial region image of the target object based on the image contour.
[0163] The part within the image contour is the target object region, and the part outside the image contour is the target object interstitial region, so that the target object interstitial region can be determined according to the image contour, and the target object interstitial region image can be generated according to the target object interstitial region.
[0164] like Figure 9a , Figure 9b and Fig.9c , Figure 9a It is a partial area image of a white-balanced medical image; Figure 9b is the target envelope area image, the white part is the target envelope area, Figure 9a and Figure 9b To overlay; Fig.9c for Figure 9a and Figure 9b The superimposed result graph is Figure 9a and Figure 9b The intersection area is the target area (such as Fig.9c The area within the black curve of the intersection is the target interstitial area.
[0165] In the above embodiment, the medical image is firstly subjected to white balance processing, so that the stained part and the unstained part in the processed medical image can be more distinguished, so as to improve the accuracy of segmenting the white balanced medical image to obtain the interstitial region image of the target object, and then the accuracy of the immune cell content determined by combining the interstitial region image of the target object and the stained cell region image is also higher.
[0166] Regarding the step of searching for the envelope in S806, the envelope can be searched based on the following two methods:
[0167] Method 1: Search through probability graph.
[0168] In one embodiment, the above S806 may specifically include: the server inputs each region of interest block obtained by dividing the white balanced medical image into a second prediction model; performs target object detection on the input region of interest block through the second prediction model to obtain a corresponding region of interest probability map; splices the region of interest probability map to obtain a target object region probability map; performs target object region determination on the target object region probability map, and determines the target object envelope region image in the white balanced medical image according to the determination result.
[0169] In this embodiment, after the white-balanced medical image is divided into regions of interest, the target region detection model performs target region detection on each region of interest respectively, and the detection results corresponding to each region of interest are spliced to obtain the target region detection result corresponding to the white-balanced medical image. The regions of interest are obtained by dividing the white-balanced medical image into regions. For example, the white-balanced medical image can be divided into regions according to a preset size, thereby dividing the white-balanced medical image into several regions of interest, reducing the amount of data processed at a single time and improving the data processing efficiency. In specific implementation, the size of the region of interest can be set according to actual needs, and a fixed size can be directly set, such as 1000×1000 pixels.
[0170] Specifically, when the target object region detection is performed on the white-balanced medical image through the target object region detection model, the server obtains each region of interest obtained by region division processing of the white-balanced medical image. Among them, the region division of the region of interest can be realized when the white-balanced medical image is detected. In this case, when the white-balanced medical image is detected, the regions of interest obtained by the region division during the detection are directly obtained. The server inputs each region of interest into the target object region detection model to perform target object region detection, and obtains each region of interest probability map output by the target object region detection model. The region of interest probability map records the probability of the pixel point in the corresponding region of interest being detected as the target object region. The server splices the region of interest probability maps corresponding to each region of interest, and obtains the target object region probability map corresponding to the white-balanced medical image, thereby realizing the target object region detection of the white-balanced medical image.
[0171] In this embodiment, target object region detection is performed on the regions of interest respectively through the target object region detection model, and the detection results corresponding to the regions of interest are spliced to obtain the target object region detection results corresponding to the white balance medical image. This can reduce the amount of data processed by a single target object region detection, and can perform parallel processing on the regions of interest, which can effectively improve the processing efficiency of the target object region detection.
[0172] Specifically, the above-mentioned steps of performing target object area determination on the target object area probability map and determining the target object envelope area image in the white balanced medical image based on the determination result may specifically include: the server obtains a probability threshold; based on the probability threshold and the probability value corresponding to each pixel point in the target object area probability map, the target object area probability map is binarized to obtain the probability mapping result of each pixel point in the target object area probability map; and the target object envelope area image in the white balanced medical image is obtained based on the probability mapping result of each pixel point in the target object area probability map.
[0173] Among them, the probability threshold is pre-set according to actual needs, such as being set to 0.5, and the probability threshold is used to perform target object region determination on the target object region probability map, and determine the target object region in the white balance medical image according to the target object region determination. Specifically, after obtaining the target object region probability map output by the target object region detection model, the server obtains a preset probability threshold, and the probability threshold is used to perform binary mapping on the probability value of each pixel in the target object region probability map. The server performs probability binary mapping on the target object region probability map based on the probability threshold and the probability value corresponding to each pixel in the target object region probability map. Specifically, the server can compare the probability value corresponding to each pixel in the target object region probability map and the probability threshold, and perform probability binary mapping on each pixel according to the comparison result to obtain the probability mapping result of each pixel in the target object region probability map.
[0174] For example, if the probability threshold is 0.5, and the probability value of pixel A in the target region probability map is 0.8 and the probability value of pixel B is 0.2, the pixel value of pixel A is mapped to a white pixel value and the pixel value of pixel A is mapped to a black pixel value, thereby realizing the binary mapping of pixel A and pixel B. After traversing all the pixels, the binary mapping of the target region probability map is realized. After obtaining the probability mapping results of each pixel in the target region probability map, the server obtains the target region in the white-balanced medical image based on each probability mapping result. For example, the server can determine the pixel mapped to the target pixel value in each probability mapping result as the target pixel, and determine the target region in the white-balanced medical image based on all the target pixel points.
[0175] In this embodiment, the target object area probability map is probability-binarized by a preset probability threshold, so as to determine the target object area in the white-balanced medical image according to the probability mapping result of each pixel in the target object area probability map. The target object area and the target object interstitial area in the white-balanced medical image can be intuitively and accurately divided through the binary mapping, thereby ensuring the accuracy of the obtained target object interstitial area image.
[0176] Method 2: Search through connected domains.
[0177] In one embodiment, the above S806 may specifically include: performing regional connectivity on the target object region image in the white balance medical image to obtain a target object connected region image; removing the non-target object region from the target object connected region image to obtain an updated target object connected region image; performing morphological expansion on the updated target object connected region image to obtain a target object envelope region image. The non-target object region may refer to a region that is not a target object, and correspondingly, removing the non-target object region may refer to removing the non-target object region. For example, removing a region that is not a tumor cell.
[0178] In this embodiment, after the detected target area is connected, non-target objects in the connected area are removed, thereby filtering non-target objects within the range of the connected area, and then the edges of the connected area are smoothed by morphological expansion, and denoising is achieved for smaller areas on the edges of the connected area, thereby finding the envelope of the detected target area and obtaining a target envelope area image with high recognition and division accuracy.
[0179] Specifically, after detecting the target object area in the white-balanced medical image, the server performs regional connectivity on the target object area in the white-balanced medical image. Specifically, the target object area and the non-target area (i.e., the target object interstitial area) in the white-balanced medical image can be traversed through a filter of a preset size to connect the target object area in the white-balanced medical image through the filter to generate a target object connectivity area. The server then filters out the non-target objects within the generated target object connectivity area to ensure that the target object connectivity area is full of target objects. Specifically, the server removes the non-target object area within the target object connectivity area. For example, the server can directly update the non-target object area within the target object connectivity area to the target object area to obtain an updated target object connectivity area. The interior of the updated target object connectivity area is all the target object area. Furthermore, the server smoothes the edges of the updated target object connectivity area, specifically by performing morphological expansion on the updated target object connectivity area to obtain a target object envelope area image. By performing morphological expansion on the updated connected area of the target object, the edge of the updated connected area of the target object can be smoothed, and at the same time, effective denoising is performed on the smaller area at the edge of the updated connected area of the target object, further improving the recognition and division accuracy of the target object envelope area image.
[0180] In one embodiment, the stained cell region image is obtained by identifying a first prediction model; the first prediction model is obtained by processing a first initial prediction model; Fig.10 As shown, the step of processing the first initial prediction model may specifically include:
[0181] S1002, obtaining a medical image sample obtained by collecting a glass slide tissue sample.
[0182] In one embodiment, the server may obtain a medical image sample obtained by collecting a glass slide tissue sample from the sample library. In addition, the process of obtaining the medical image sample may refer to the obtaining method of S202 in the above embodiment.
[0183] S1004, after the medical image sample has been white balanced, feature extraction is performed on the white balanced medical image sample using a first initial prediction model to obtain training stained cell features formed by cell staining of the slide tissue sample.
[0184] S1006, performing image segmentation on the medical image sample that has been processed by white balance according to the training stained cell features to obtain a training stained cell region image.
[0185] Among them, the above steps S1004-S1006 can refer to S602-S606 in the above embodiment.
[0186] S1008, adjusting the model parameters of the first initial prediction model according to the loss value between the training stained cell region image and the corresponding stained cell region image label until the model converges.
[0187] In one embodiment, S1008 may specifically include: the server calculates the loss value between the training stained cell area image and the corresponding stained cell area image label, and then back-propagates the calculated loss value to each layer of the first initial prediction model to obtain the gradient of the parameters of each layer; adjusts the parameters of each layer in the first initial prediction model according to the gradient until the model converges to obtain the first prediction model.
[0188] In one embodiment, the server calculates the loss value between the training stained cell region image and the corresponding stained cell region image label according to the loss function, wherein the loss function can be any one of the following: mean square error, cross entropy loss function, L2Loss function and focal loss function.
[0189] In the above embodiment, when a medical image sample is acquired, a white balance process is performed on the medical image sample, so that the stained part and the unstained part in the processed medical image sample can be more distinguishable, so as to improve the accuracy of segmenting the white-balanced medical image sample to obtain a training stained cell region image. The first initial prediction model is trained with the processed medical image sample to obtain a training stained cell region image, and the model parameters of the first initial prediction model are adjusted according to the loss value between the training stained cell region image and the corresponding stained cell region image label to obtain the first prediction model. The first prediction model is used to identify the stained cell region image, thereby improving the accuracy of stained cell region identification and facilitating the calculation accuracy of the immune cell content.
[0190] In one embodiment, the interstitial region image of the target object is obtained by identifying the second prediction model; the second prediction model is obtained by processing the second initial prediction model; Fig.11 As shown, processing the second initial prediction model includes:
[0191] S1102, detecting the training target area image in the medical image sample that has been processed by white balance.
[0192] S1104, searching for an envelope of the training target object region image by using a second prediction model to obtain a training target object envelope region image.
[0193] S1106, fusing the training target object envelope area image and the medical image sample that has been processed by white balance to obtain a training image contour between the target object and the target object matrix.
[0194] For details of the above steps S1102 - S1106 , please refer to S802 - S810 in the above embodiment.
[0195] S1108, adjusting the model parameters of the second initial prediction model based on the loss value between the interstitial region image of the training target object determined by the training image contour and the corresponding interstitial region image label of the target object until the model converges.
[0196] In one embodiment, S1108 may specifically include: the server calculates the loss value between the interstitial region image of the training target object and the corresponding interstitial region image label of the target object, and then back-propagates the calculated loss value to each layer of the second initial prediction model to obtain the gradient of the parameters of each layer; adjusts the parameters of each layer in the second initial prediction model according to the gradient until the model converges to obtain the second prediction model.
[0197] In one embodiment, the server calculates the loss value between the interstitial region image of the training target object and the corresponding interstitial region image label of the target object according to the loss function, wherein the loss function can be any one of the following: mean squared error, cross entropy loss function, L2Loss function and focal loss function.
[0198] In the above embodiment, the second initial prediction model is trained with the processed medical image samples to obtain the training image contour, the training target interstitial region image is determined according to the training image contour, and based on the loss value between the training target interstitial region image and the corresponding target interstitial region image label, the model parameters of the second initial prediction model are adjusted to obtain the second prediction model, and the second prediction model is used to identify the target interstitial region image, thereby improving the accuracy of identifying the target interstitial region, which is beneficial to improving the calculation accuracy of the immune cell content.
[0199] It should be noted that the methods of the above embodiments are implemented on a server, and can also be implemented on a smart microscope. The specific execution process and method can refer to the methods of the above embodiments, such as the following application scenarios:
[0200] The present application also provides an application scenario, which applies the above-mentioned medical image processing method. Specifically, the application of the method in this application scenario is as follows:
[0201] In medicine, PD-L1 (programmed cell death-Ligand 1) expression in a population above 1% has a clinically significant improvement, so an objective, repeatable and accurate PD-L1 evaluation method is needed to assist diagnosis. This application is based on image analysis collected by an intelligent microscope, which can improve the current situation. This application predicts the proportion of immune cells (IC) in the tumor area through an intelligent microscope to obtain an IC value, which refers to the immune cell content in the above embodiment.
[0202] Among them, Fig.12a and Figure 12b As shown, Fig.12a is the model training process, Figure 12b This is the process of IC value estimation under the intelligent microscope. The following describes the model training process and IC value estimation process:
[0203] (1) Model training process
[0204] Input: breast tumor images and annotated images used for training. The annotated images include image labels for stained cell areas and image labels for tumor stroma areas.
[0205] Output: stained cell area prediction model, tumor stroma area prediction model.
[0206] The breast tumor images used in training and the breast tumor images collected by the intelligent microscope have a large difference in color temperature. Therefore, the breast tumor images used in training are white-balanced using a white balance algorithm, so that the breast tumor images used in training and the breast tumor images collected by the intelligent microscope are relatively consistent in color temperature, thereby achieving better prediction results. Among them, the breast tumor images used in training are WSI images scanned by a professional scanner.
[0207] Two models, the stained cell region prediction model and the tumor stroma region prediction model, were trained separately. The stained cell region prediction model was used to identify all stained regions (e.g. Figure 4 The darker areas in the middle can be used as reference for the identified stained cell areas. Figure 3a). Among these stained cell areas, it is necessary to remove the stained cells in the tumor area, leaving only the stained immune cells in the tumor interstitial area, wherein the stained cells in the tumor area are not immune cells, but tumor cells. Therefore, the present application also trains a second model, namely a tumor interstitial area prediction model, which is used to distinguish between the stained areas inside and outside the tumor, so that the tumor interstitial area can be obtained. The above two models use the Linknet segmentation algorithm. The network model using the Linknet segmentation algorithm can well balance the computational efficiency and accuracy, and can quickly and effectively perform inference while ensuring reliable accuracy.
[0208] For the breast tumor images used for training, image data of about 100 patients were used. For the stained cell region prediction model, 83 breast tumor images were used for training and 26 breast tumor images were used for validation. The image resolution and size were 1024×1024 pixels and 1.048μm / pixel, respectively, and the model segmentation accuracy was f1=0.86. For the tumor stroma region prediction model, 2700 breast tumor images were used for training and 250 breast tumor images were used for validation. The image resolution and size were 832×832 pixels and 0.848μm / pixel, respectively, and the model segmentation accuracy was f1=0.89.
[0209] (2) Predict the proportion of immune cells in the tumor area and obtain the IC value.
[0210] like Figure 12b As shown, input: breast tumor image after white balance processing; output: IC value judgment result.
[0211] First, the intelligent microscope is adjusted to obtain the field of view of a breast tumor area under the intelligent microscope, and the breast tumor image under the field of view is obtained, such as Fig.13a As shown. The breast tumor image in the current field of view is white-balanced, as Fig.13b As shown. In addition, it is necessary to obtain the magnification information used by the intelligent microscope when currently acquiring images. This magnification information can be automatically identified by the algorithm or entered manually. The main magnification information is 20x and 10x. The pixel length of the image corresponding to this magnification information is: 20x corresponds to 0.424μm / pixel, and 10x corresponds to 0.848μm / pixel. This information needs to be input into the stained cell area prediction model and the tumor stroma area prediction model, which is used for the model to convert the input breast tumor image into a pixel length that the model itself can handle.
[0212] Then, the IC region binarization image in the tumor interstitial region is obtained by respectively calculating the stained cell region and tumor interstitial region using the stained cell region prediction model and the tumor interstitial region prediction model. Then, the IC value in the current field of view can be calculated:
[0213] IC value = the area of the white area in the IC region binary image / the area of the breast tumor image under the circular field of view of the microscope.
[0214] Here, the white area of the IC region binary image can be realized by calculating the number of pixels. The actual physical meaning of the area of the breast tumor image under the circular field of view of the microscope refers to the area of the tumor region, so it is necessary to pre-select the field of view of a tumor region under the intelligent microscope.
[0215] According to the above two steps (1) and (2), the quantitative IC value of a single field of view of the tumor area of a slide of breast tumor PD-L1 (SP142) under an intelligent microscope can be obtained.
[0216] The above embodiments can achieve the following technical effects:
[0217] (1) The entire process uses an intelligent microscope to directly predict the IC value of breast tumor slides without scanning WSI images, which can effectively improve the accuracy of the IC value.
[0218] (2) It can obtain quantitative IC valuation results, avoiding the traditional solution of comparing the WSI image with the reference image and then searching for the matching IC value, thus avoiding the problem of inaccurate IC values caused by subjective factors.
[0219] It should be understood that although Figure 2 , 5 The steps in the flowcharts of , 6, 8, 10, and 11 are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 , 5 At least part of the steps in , 6, 8, 10, and 11 may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily one by one, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0220] In one embodiment, Fig.14As shown, a medical image processing device is provided, which can adopt a software module or a hardware module, or a combination of the two to become a part of a computer device. The device specifically includes: an acquisition module 1402, a first recognition module 1404, a second recognition module 1406, a determination module 1410 and a determination module 1410, wherein:
[0221] An acquisition module 1402 is used to acquire a medical image obtained by collecting a slide tissue;
[0222] The first recognition module 1404 is used to recognize the stained cell area image formed by cell staining of the slide tissue from the medical image;
[0223] The second recognition module 1406 is used to recognize the interstitial region image of the target object in the medical image;
[0224] A determination module 1410 is used to extract the stained cell region that intersects with the target interstitial region image in the stained cell region image to obtain a stained immune cell region image;
[0225] The determination module 1410 is used to determine the immune cell content according to the ratio between the cell area of the stained immune cell area image and the slide tissue area in the medical image.
[0226] In one embodiment, Fig.15 As shown, the device also includes:
[0227] A marking module 1412 is used to mark, in the medical image, an image position that matches a stained immune cell position or a stained immune cell block position in the stained immune cell region image;
[0228] The output module 1414 is used to output the marked medical image and the immune cell content so that the immune cell content is superimposed on the marked medical image for display.
[0229] In the above embodiment, a stained cell region is formed in the cell-stained slide tissue, so that the slide tissue can be collected by an intelligent microscope to obtain a medical image with distinguishable cell regions, without using a professional scanner to scan the slide tissue into a WSI image to identify the cell region. When the medical image obtained by collecting the slide tissue is obtained, the stained cell region in the slide tissue can be identified from the medical image to obtain a stained cell region image. When the interstitial region image of the target object is identified from the medical image, the stained cell region image that intersects with the interstitial region image of the target object is extracted from the stained cell region image, and then the ratio between the cell region area of the stained immune cell region image and the slide tissue area in the medical image is calculated, so there is no need to compare the WSI image obtained by scanning with a professional scanner with the reference image. Therefore, even if the annotation of the reference image is inaccurate, it will not affect the calculation result, thereby improving the accuracy of medical data calculation.
[0230] In one embodiment, Fig.15 As shown, the device also includes:
[0231] An image processing module 1416 is used to perform white balance processing on the medical image to obtain a white balanced medical image;
[0232] The first recognition module 1404 is further used to extract features of the white-balanced medical image through the first prediction model to obtain stained cell features formed by cell staining of the slide tissue; and to segment the white-balanced medical image according to the stained cell features to obtain a stained cell region image.
[0233] In one embodiment, the image processing module 1416 is further used to crop the white-balanced medical image according to the target size; perform denoising on the cropped white-balanced medical image; perform binarization on the denoised white-balanced medical image to obtain a binarized medical image;
[0234] In the above embodiment, the medical image is first white balanced, so that the stained part and the unstained part in the processed medical image can be more distinguishable, so as to improve the accuracy of segmenting the white balanced medical image to obtain the stained cell area image, and then the accuracy of the immune cell content determined by combining the stained cell area image and the target object interstitial area image is also higher.
[0235] The first recognition module 1404 is further configured to extract features from the binary medical image using a first prediction model.
[0236] In one embodiment, the image processing module 1416 is further used to perform white balance processing on the medical image to obtain a white balanced medical image;
[0237] The second recognition module 1406 is also used to detect the target area image in the white balance medical image; find the envelope of the detected target area image through the second prediction model to obtain the target envelope area image; fuse the white balance medical image and the target envelope area image to obtain the image contour between the target and the target interstitial area; determine the target interstitial area image based on the image contour.
[0238] In one embodiment, the medical image is obtained by collecting glass slide tissue through an intelligent microscope; Fig.15 As shown, the device also includes:
[0239] The acquisition module 1402 is also used to obtain the magnification information used by the intelligent microscope during the acquisition process;
[0240] Input module 1418 is used to input the magnification information into the first prediction model and the second prediction model in sequence, so that the first prediction model and the second prediction model obtain the pixel length corresponding to the magnification information, and adjust the length of each pixel of the white balanced medical image according to the pixel length.
[0241] In one embodiment, the acquisition module 1402 is also used to obtain input magnification information used by the intelligent microscope during the acquisition process; or, to calculate the pixel length of the medical image acquired by the intelligent microscope, and to search for magnification information that matches the calculated first pixel length; or, to calculate the image length of the medical image acquired by the intelligent microscope and the number of pixels under the image length, determine the second pixel length based on the image length and the number of pixels, and to search for magnification information that matches the second pixel length.
[0242] In one embodiment, the second recognition module 1406 is further used to input each region of interest block obtained by dividing the white balanced medical image into a second prediction model; perform target object detection on the input region of interest blocks through the second prediction model to obtain a corresponding region of interest probability map; splice the region of interest probability map to obtain a target object region probability map; perform target object region determination on the target object region probability map, and determine the target object envelope region image in the white balanced medical image according to the determination result.
[0243] In one embodiment, the second recognition module 1406 is also used to obtain a probability threshold; based on the probability threshold and the probability value corresponding to each pixel point in the target object area probability map, the target object area probability map is binarized to obtain a probability mapping result for each pixel point in the target object area probability map; and the target object envelope area image in the white balance medical image is obtained according to the probability mapping result for each pixel point in the target object area probability map.
[0244] In one embodiment, the second recognition module 1406 is further used to perform regional connectivity on the target object area image in the white balance medical image to obtain a target object connected area image; remove non-target object areas from the target object connected area image to obtain an updated target object connected area image; and perform morphological expansion on the updated target object connected area image to obtain a target object envelope area image.
[0245] In the above embodiment, the medical image is firstly subjected to white balance processing, so that the stained part and the unstained part in the processed medical image can be more distinguished, so as to improve the accuracy of segmenting the white balanced medical image to obtain the interstitial region image of the target object, and then the accuracy of the immune cell content determined by combining the interstitial region image of the target object and the stained cell region image is also higher.
[0246] In one embodiment, the stained cell region image is obtained by identifying a first prediction model; the first prediction model is obtained by processing a first initial prediction model; Fig.15 As shown, the device also includes:
[0247] The model processing module 1420 is used to obtain a medical image sample obtained by collecting a glass slide tissue sample; after the medical image sample is white balanced, feature extraction is performed on the white balanced medical image sample through the first initial prediction model to obtain a training stained cell feature formed by cell staining of the glass slide tissue sample; image segmentation is performed on the white balanced medical image sample according to the training stained cell feature to obtain a training stained cell region image; and model parameters of the first initial prediction model are adjusted according to a loss value between the training stained cell region image and a corresponding stained cell region image label until the model converges.
[0248] In the above embodiment, when a medical image sample is acquired, a white balance process is performed on the medical image sample, so that the stained part and the unstained part in the processed medical image sample can be more distinguishable, so as to improve the accuracy of segmenting the white-balanced medical image sample to obtain a training stained cell region image. The first initial prediction model is trained with the processed medical image sample to obtain a training stained cell region image, and the model parameters of the first initial prediction model are adjusted according to the loss value between the training stained cell region image and the corresponding stained cell region image label to obtain the first prediction model. The first prediction model is used to identify the stained cell region image, thereby improving the accuracy of stained cell region identification and facilitating the calculation accuracy of the immune cell content.
[0249] In one embodiment, the target object interstitial region image is identified by a second prediction model; the second prediction model is obtained by processing the second initial prediction model; the model processing module 1420 is also used to detect the training target object region image in the medical image sample that has been white balanced; the envelope of the training target object region image is searched for by the second prediction model to obtain the training target object envelope region image; the training target object envelope region image and the medical image sample that has been white balanced are fused to obtain the training image contour between the target object and the target object interstitial; based on the loss value between the training target object interstitial region image determined by the training image contour and the corresponding target object interstitial region image label, the model parameters of the second initial prediction model are adjusted until the model converges.
[0250] In the above embodiment, the second initial prediction model is trained with the processed medical image samples to obtain the training image contour, the training target interstitial region image is determined according to the training image contour, and based on the loss value between the training target interstitial region image and the corresponding target interstitial region image label, the model parameters of the second initial prediction model are adjusted to obtain the second prediction model, and the second prediction model is used to identify the target interstitial region image, thereby improving the accuracy of identifying the target interstitial region, which is beneficial to improving the calculation accuracy of the immune cell content.
[0251] For the specific definition of the medical image processing device, please refer to the definition of the medical image processing method above, which will not be repeated here. Each module in the above medical image processing device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0252] In one embodiment, a computer device is provided. The computer device may be a server. In addition, the computer device may be an intelligent microscope. The internal structure diagram thereof may be as follows: Fig.16 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store medical image data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a medical image processing method is implemented.
[0253] Those skilled in the art will understand that Fig.16 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0254] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0255] In one embodiment, a computer-readable storage medium is provided, storing a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0256] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in the above-mentioned method embodiments.
[0257] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0258] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0259] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A medical image processing method, characterized in that: The method comprises: Acquire a medical image obtained by collecting a glass slide tissue, and perform white balance processing on the medical image to obtain a white-balanced medical image; the medical image is obtained by collecting the glass slide tissue through an intelligent microscope; identifying, from the white-balanced medical image of the medical image, a stained cell region image formed by cell staining of the slide tissue by using a first prediction model; In the white-balanced medical image of the medical image, an interstitial region image of the target object is identified by a second prediction model; Extracting the stained cell region that intersects with the interstitial region image of the target object from the stained cell region image to obtain a stained immune cell region image; The immune cell content is determined according to the ratio between the cell region area of the stained immune cell region image and the slide tissue area in the medical image.
2. The method according to claim 1, characterized in that The step of identifying, from the white-balanced medical image of the medical image, a stained cell region image formed by cell staining of the slide tissue by using a first prediction model comprises: Extracting features from the white-balanced medical image using a first prediction model to obtain stained cell features formed by cell staining of the slide tissue; The white-balanced medical image is segmented according to the stained cell characteristics to obtain a stained cell region image.
3. The method according to claim 1, characterized in that The step of identifying the interstitial region image of the target object by using the second prediction model in the white balance image of the medical image includes: Detecting a target object area image in the white-balanced medical image; Finding the envelope of the detected target area image through a second prediction model to obtain a target envelope area image; Fusing the white-balanced medical image and the target envelope region image to obtain an image contour between the target and the target matrix; An interstitial region image of the target object is determined based on the image contour.
4. The method according to claim 3, characterized in that The method further comprises: Obtaining the magnification information used by the intelligent microscope during the acquisition process; The magnification information is input into the first prediction model and the second prediction model in sequence, so that the first prediction model and the second prediction model obtain the pixel length corresponding to the magnification information, and adjust the length of each pixel of the white balanced medical image according to the pixel length; the first prediction model is used to identify the stained cell area image from the white balanced medical image.
5. The method according to claim 4, characterized in that The step of obtaining the magnification information used by the intelligent microscope during the acquisition process includes: Obtaining input information about the magnification of the intelligent microscope used in the acquisition process; or, Calculating the pixel length of the medical image collected by the intelligent microscope, and searching for magnification information matching the calculated first pixel length; or, The image length of the medical image collected by the intelligent microscope and the number of pixels at the image length are calculated, a second pixel length is determined according to the image length and the number of pixels, and magnification information matching the second pixel length is searched.
6. The method according to claim 3, characterized in that The step of searching for an envelope of the detected target area image by using a second prediction model to obtain the target area image includes: Inputting each region of interest image block obtained by dividing the white-balanced medical image into a second prediction model; Performing target object detection on the input region of interest image block by using the second prediction model to obtain a corresponding region of interest probability map; The probability maps of the regions of interest are spliced to obtain the probability map of the target region; The target object region probability map is subjected to target object region determination, and the target object envelope region image in the white-balanced medical image is determined according to the determination result.
7. The method according to claim 6, characterized in that The step of performing target object region determination on the target object region probability map and determining the target object envelope region image in the white balance medical image according to the determination result includes: Get probability threshold; Based on the probability threshold and the probability value corresponding to each pixel in the target object region probability map, the target object region probability map is binarized to obtain a probability mapping result for each pixel in the target object region probability map; The target object envelope area image in the white-balanced medical image is obtained according to the probability mapping result of each pixel point in the target object area probability map.
8. The method according to claim 3, characterized in that The step of searching for an envelope of the detected target area image by using a second prediction model to obtain the target area image includes: Performing regional connectivity on the target object region image in the white-balanced medical image to obtain a target object connected region image; Removing non-target object regions from the target object connected area image to obtain an updated target object connected area image; The updated connected region image of the target object is morphologically expanded to obtain the envelope region image of the target object.
9. The method according to any one of claims 1 to 8, characterized in that: The method further comprises: In the medical image, marking an image position that matches a stained immune cell position or a stained immune cell block position in the stained immune cell region image; The marked medical image and the immune cell content are outputted so that the immune cell content is superimposed on the marked medical image for display.
10. The method according to any one of claims 1 to 8, characterized in that: The stained cell region image is obtained by identification by a first prediction model; the first prediction model is obtained by processing the first initial prediction model; the processing of the first initial prediction model includes: Acquiring a medical image sample obtained by collecting a glass slide tissue sample; After the medical image sample is subjected to white balance processing, feature extraction is performed on the medical image sample subjected to white balance processing by using the first initial prediction model to obtain training stained cell features formed by cell staining of the slide tissue sample; Performing image segmentation on the medical image sample that has been processed by white balance according to the training stained cell features to obtain a training stained cell region image; According to the loss value between the training stained cell region image and the corresponding stained cell region image label, the model parameters of the first initial prediction model are adjusted until the model converges.
11. The method according to claim 10, characterized in that The interstitial region image of the target object is obtained by identification by the second prediction model; the second prediction model is obtained by processing the second initial prediction model; the processing of the second initial prediction model includes: Detecting the training target area image in the medical image sample that has been processed by white balance; Searching for an envelope of the training target object region image by using a second prediction model to obtain a training target object envelope region image; Fusing the training target envelope area image and the medical image sample that has been white-balanced to obtain a training image contour between the target and the target interstitium; Based on the loss value between the interstitial region image of the training target object determined by the training image contour and the corresponding interstitial region image label of the target object, the model parameters of the second initial prediction model are adjusted until the model converges.
12. A medical image processing device, characterized in that: The device comprises: An acquisition module, used to acquire medical images obtained by collecting glass slide tissue; An image processing module, used for performing white balance processing on the medical image to obtain a white balanced medical image; A first recognition module is used to recognize, from the white-balanced medical image of the medical image, a stained cell region image formed by cell staining of the slide tissue by using a first prediction model; the medical image is obtained by collecting the slide tissue by using an intelligent microscope; A second recognition module, configured to recognize an interstitial region image of a target object in the white-balanced medical image of the medical image by using a second prediction model; An extraction module, used for extracting the stained cell region intersecting with the target interstitial region image in the stained cell region image, to obtain a stained immune cell region image; The determination module is used to determine the immune cell content according to the ratio between the cell area of the stained immune cell area image and the slide tissue area in the medical image.
13. The device according to claim 12, characterized in that The device also includes: The first recognition module is also used to extract features of the white balanced medical image through a first prediction model to obtain stained cell features formed by cell staining of the slide tissue; and perform image segmentation on the white balanced medical image according to the stained cell features to obtain a stained cell area image.
14. The device according to claim 12, characterized in that The device also includes: The first recognition module is also used to detect the target object area image in the white balance medical image; find the envelope of the detected target object area image through the second prediction model to obtain the target object envelope area image; fuse the white balance medical image and the target object envelope area image to obtain the image contour between the target object and the target object interstitial area; determine the target object interstitial area image based on the image contour.
15. The device according to claim 14, characterized in that The device also includes: The acquisition module is also used to acquire the magnification information used by the intelligent microscope during the acquisition process; An input module is used to input the magnification information into the first prediction model and the second prediction model in sequence, so that the first prediction model and the second prediction model obtain the pixel length corresponding to the magnification information, and adjust the length of each pixel of the white balanced medical image according to the pixel length; the first prediction model is used to identify the stained cell area image from the white balanced medical image.
16. The device according to claim 15, characterized in that The acquisition module is further used to acquire input magnification information used by the intelligent microscope during the acquisition process; or to calculate the pixel length of the medical image acquired by the intelligent microscope, and search for magnification information that matches the calculated first pixel length; Alternatively, the image length of the medical image collected by the intelligent microscope and the number of pixels at the image length are calculated, a second pixel length is determined according to the image length and the number of pixels, and magnification information matching the second pixel length is searched.
17. The device according to claim 14, characterized in that The second recognition module is further used to input each region of interest block obtained by dividing the white balance medical image into a second prediction model; perform target object detection on the input region of interest block through the second prediction model to obtain a corresponding region of interest probability map; and splice the region of interest probability map to obtain the target object region probability map; The target object region probability map is subjected to target object region determination, and the target object envelope region image in the white-balanced medical image is determined according to the determination result.
18. The device according to claim 17, characterized in that The second recognition module is also used to obtain a probability threshold; based on the probability threshold and the probability value corresponding to each pixel point in the target object area probability map, the target object area probability map is binarized to obtain a probability mapping result for each pixel point in the target object area probability map; and the target object envelope area image in the white balance medical image is obtained according to the probability mapping result for each pixel point in the target object area probability map.
19. The device according to claim 14, characterized in that The second recognition module is also used to perform regional connectivity on the target object area image in the white balance medical image to obtain a target object connected area image; remove non-target object areas from the target object connected area image to obtain an updated target object connected area image; and perform morphological expansion on the updated target object connected area image to obtain a target object envelope area image.
20. The device according to any one of claims 12 to 19, characterized in that The device also includes: a marking module, used for marking, in the medical image, an image position that matches a stained immune cell position or a stained immune cell block position in the stained immune cell region image; The output module is used to output the marked medical image and the immune cell content, so that the immune cell content is superimposed on the marked medical image for display.
21. The device according to any one of claims 12 to 19, characterized in that The stained cell region image is obtained by identification by a first prediction model; the first prediction model is obtained by processing a first initial prediction model; the device further comprises: A model processing module is used to obtain a medical image sample obtained by collecting a glass slide tissue sample; after the medical image sample is subjected to white balance processing, feature extraction is performed on the medical image sample subjected to white balance processing through the first initial prediction model to obtain a training stained cell feature formed by cell staining of the glass slide tissue sample; image segmentation is performed on the medical image sample subjected to white balance processing according to the training stained cell feature to obtain a training stained cell region image; and model parameters of the first initial prediction model are adjusted according to a loss value between the training stained cell region image and a corresponding stained cell region image label until the model converges.
22. The device according to claim 21, characterized in that The interstitial region image of the target object is obtained by identification by the second prediction model; the second prediction model is obtained by processing the second initial prediction model; The model processing module is further used to detect the training target area image in the medical image sample that has been processed by white balance; find the envelope of the training target area image through the second prediction model to obtain the training target envelope area image; Fusing the training target envelope area image and the medical image sample that has been white-balanced to obtain a training image contour between the target and the target interstitium; Based on the loss value between the interstitial region image of the training target object determined by the training image contour and the corresponding interstitial region image label of the target object, the model parameters of the second initial prediction model are adjusted until the model converges.
23. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 11 are implemented.
24. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.
25. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.
