Method and storage medium for obtaining aorta based on deep learning
Through the method based on deep learning, the problems of many human factors, poor consistency, and slow extraction speed in obtaining aortic images in the existing technology are solved, and the accurate extraction and high robustness of aortic images are achieved, with high clinical promotion value.
Patent Information
- Application Number
- CN202080100603.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-06-29
- Filing Date
- 2020-11-30
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-11-30
AI Technical Summary
Acquiring aorta images in the existing technology has problems such as many human factors, poor consistency, and slow extraction speed.
Using a method based on deep learning, the deep learning model is trained by obtaining the slice database of the aortic layer and non-aortic layer, extracting the feature data of CT sequence images, and generating an aortic image, including removing the lungs, descending aorta, The spine and ribs are binarized, and the Hough detection algorithm and grayscale histogram analysis are used to obtain the slice data of the aorta.
It achieves accurate extraction of aortic images, improves robustness and accuracy of calculation results, and has high clinical promotion value.
Smart Images

Figure CN115769252B_ABST
Abstract
Description
Background Art
[0002] Cardiovascular disease is the leading cause of death in the industrialized world. The main form of cardiovascular disease is caused by the chronic accumulation of fatty substances in the inner tissue layer of the arteries supplying the heart, brain, kidneys and lower limbs. Progressive coronary artery disease limits blood flow to the heart. Due to the lack of accurate information provided by current non-invasive tests, many patients require invasive catheter procedures to evaluate coronary blood flow. Therefore, there is a need for non-invasive methods to quantify blood flow in human coronary arteries to evaluate the functional significance of possible coronary artery disease. Reliable evaluation of arterial capacity will therefore be important for treatment planning to address patient needs. Recent studies have shown that hemodynamic properties, such as blood flow reserve fraction (FFR), are important indicators for determining the best treatment for patients with arterial disease. Conventional evaluation of blood flow reserve fractions uses invasive catheterization to directly measure blood flow properties, such as pressure and flow rate. However, these invasive measurement techniques are risky for patients and can cause significant costs to the health care system.
[0003] Computed tomography arterial angiography is a computer tomography technique for visualizing arterial blood vessels. For this purpose, a beam of X-rays is passed from a radiation source through a region of interest in the patient's body to obtain projection images.
[0004] In the prior art, the use of empirical values to obtain aortic images has the problems of many human factors, poor consistency, and slow extraction speed. Summary of the invention
[0005] The present invention provides a method and storage medium for acquiring an aorta based on deep learning, so as to solve the problems in the prior art of using empirical values to acquire an aorta image, such as many human factors, poor consistency and slow extraction speed.
[0006] To achieve the above objectives, in a first aspect, the present application provides a method for acquiring an aorta based on deep learning, comprising:
[0007] Acquire a slice database of an aortic layer and a slice database of a non-aortic layer;
[0008] Performing deep learning on the slice database of the aortic layer and the slice database of the non-aortic layer respectively to obtain a deep learning model;
[0009] Acquiring a CT sequence image to be processed or three-dimensional data of a CT sequence image;
[0010] Extracting feature data of the CT sequence images or three-dimensional data of the CT sequence images to be processed;
[0011] An aortic image is acquired from the CT sequence images according to the deep learning model and the feature data.
[0012] Optionally, in the above-mentioned method for acquiring the aorta based on deep learning, the method for acquiring the slice database of the aorta layer and the slice database of the non-aorta layer includes:
[0013] removing new images of the lungs, descending aorta, spine, and ribs from the CT image;
[0014] Slicing from the top layer of the new image to obtain a two-dimensional image group;
[0015] Binarizing the two-dimensional image group to obtain a binary image group;
[0016] generating an aorta image according to each group of the binary images;
[0017] The slice data of the aorta layer is generated according to the aorta image, and the remaining slice data is the slice data of the non-aorta layer, so as to obtain a slice database of the aorta layer and a slice database of the non-aorta layer.
[0018] Optionally, in the above-mentioned method for acquiring the aorta based on deep learning, the method of performing binarization processing on the two-dimensional image group to obtain the binary image group includes:
[0019] Set the crown tree grayscale threshold Q 冠1 ;according to Binarization is performed on each slice of the new image from which the lungs, descending aorta, spine, and ribs are removed, and impurity points in the new image are removed to obtain the binary image group;
[0020] Where m is a positive integer, Q m represents the grayscale value corresponding to the m-th pixel point PO, and P(m) represents the pixel value corresponding to the m-th pixel point PO.
[0021] Optionally, in the above-mentioned method for acquiring the aorta based on deep learning, the method for generating an aorta image according to each group of the binary images includes:
[0022] Creating a search engine list for each layer of the slices in the binary image group;
[0023] Searching for circles in each layer of slices, comparing the number of pixels in the search engine list of each layer with the radius of the circle, and finding the center point of the circle that meets the conditions;
[0024] If a qualifying center point cannot be found, the center point of the slice in the next layer is searched.
[0025] Optionally, in the above-mentioned method for acquiring the aorta based on deep learning, the method for removing the new image of the lungs, descending aorta, spine, and ribs from the CT image includes:
[0026] Obtain a three-dimensional database of CT sequence images;
[0027] Draw a grayscale histogram of each group of the CT sequence images;
[0028] Along the direction from the end point M to the origin O of the grayscale histogram, sequentially obtain the volume of each grayscale value area from point M to point M-1, point M to point M-2, until the volume of each grayscale value area from point M to point O is obtained; obtain the volume ratio V of each grayscale value area to the total volume of the area from point M to point O;
[0029] According to medical knowledge and CT imaging principles, the lung grayscale threshold Q is set. 肺 ; If the gray value in the gray histogram is less than Q 肺 , then remove the image corresponding to the gray value to obtain the first image with the lung tissue removed;
[0030] Acquire the heart center of gravity and spine center of gravity corresponding to each group of CT sequence images according to the first image;
[0031] Acquire the descending aorta image of each set of CT sequence images according to the heart center of gravity and the spine center of gravity;
[0032] The lungs, descending aorta, spine, and ribs are removed from the CT image to obtain a new image.
[0033] Optionally, in the above-mentioned method for acquiring the aorta based on deep learning, the method for acquiring the heart center of gravity and the spine center of gravity corresponding to each group of CT sequence images according to the first image includes:
[0034] If V=b, then pick up the starting point corresponding to the gray value area, project the starting point onto the CT three-dimensional image, obtain the three-dimensional image of the heart area, pick up the physical center of gravity of the three-dimensional image of the heart area, which is the heart center of gravity P2; wherein b represents a constant, 0.2<b<1;
[0035] If V=a, pick up the starting point corresponding to the gray value area, project the starting point onto the CT three-dimensional image, obtain the three-dimensional image of the bone area, and pick up the physical center of gravity of the three-dimensional image of the bone area, which is the center of gravity of the spine P1; wherein a represents a constant, 0<a<0.2.
[0036] Optionally, in the above-mentioned method for acquiring the aorta based on deep learning, the method for acquiring the descending aorta image of each set of CT sequence images according to the heart center of gravity and the spine center of gravity includes:
[0037] According to medical knowledge and CT imaging principles, the lung grayscale threshold Q is set. 肺 ;
[0038] If the gray value in the gray histogram is less than Q 肺 , then remove the image corresponding to the grayscale value to obtain a first image with lung tissue removed;
[0039] Projecting the heart's center of gravity P2 onto the first image to obtain the heart's center O1;
[0040] Set the descending aorta grayscale threshold Q 降 , performing binarization processing on the first image;
[0041] According to the distance between the descending aorta and the heart center O1, and the distance between the spine and the heart center O1, a circle corresponding to the descending aorta is obtained;
[0042] An aorta image is acquired from the CT image.
[0043] Optionally, in the above-mentioned method for acquiring the aorta based on deep learning, the descending aorta grayscale threshold Q is set 降 , a method for performing binarization processing on the first image includes:
[0044] The gray value in the first image is greater than the descending aorta gray value threshold Q 降 The pixel point PO is calculated to obtain the average gray value of the pixel point PO.
[0045] Slice the first image layer by layer starting from the bottom layer to obtain a first two-dimensional slice image group;
[0046] according to Binarization is performed on the first image to remove impurity points in the first image to obtain a binary image, where k is a positive integer, Q k represents the grayscale value corresponding to the k-th pixel point PO, and P(k) represents the pixel value corresponding to the k-th pixel point PO.
[0047] Optionally, in the above-mentioned method for acquiring the aorta based on deep learning, the method for acquiring the circle corresponding to the descending aorta according to the distance between the descending aorta and the heart center O1, and the distance between the spine and the heart center O1, comprises:
[0048] Set the radius threshold of the circle formed by the descending aorta to the edge of the heart to r 阈 ;
[0049] According to the distance between the descending aorta and the heart being smaller than the distance between the spine and the heart, acquiring the approximate area of the spine and the approximate area of the descending aorta;
[0050] According to the approximate area of the descending aorta, the error pixels are removed to obtain the descending aorta image, which is the circle corresponding to the descending aorta.
[0051] Optionally, in the above-mentioned method for acquiring the aorta based on deep learning, the method for acquiring the approximate area of the spine and the approximate area of the descending aorta according to the distance between the descending aorta and the heart being smaller than the distance between the spine and the heart comprises:
[0052] If the radius of the circle obtained by the Hough detection algorithm is r>r 阈 , then this circle is the circle corresponding to the spine, and the center and radius of this circle are not recorded, which is the approximate area of the spine;
[0053] If the Hough detection algorithm obtains the radius of the circle r≤r 阈 , then this circle may be the circle corresponding to the descending aorta. Record the center and radius of this circle, which is the approximate area of the descending aorta.
[0054] Optionally, in the above-mentioned method for acquiring the aorta based on deep learning, the method for removing error pixels according to the approximate area of the descending aorta to obtain the descending aorta image, that is, the circle corresponding to the descending aorta includes:
[0055] The center and radius of the circle in the approximate area of the descending aorta are screened to remove circles with large center deviations between adjacent slices, that is, to remove error pixels, to form a seed point list of the descending aorta and obtain the descending aorta image.
[0056] Optionally, in the above-mentioned method for acquiring the aorta based on deep learning, the method for extracting feature data of the CT sequence images or three-dimensional data of the CT sequence images to be processed includes:
[0057] Draw a grayscale histogram of the CT sequence images to be processed;
[0058] Get gray value greater than Q 降 The average gray value of the pixel
[0059] Slicing the CT sequence images in layers to obtain a two-dimensional slice image group;
[0060] According to the average gray value Performing binarization processing on the images in the two-dimensional slice image group to obtain a plurality of binarized images;
[0061] Starting from the top layer, the connected domain of each binary image and the center C of the quasi-circle corresponding to the connected domain are obtained in turn. k , Area S k , radius of quasi-circle R k , and the distance C between the centers of two adjacent layers k -C (k-1) , the center of each slice C k The distance C from the center of the top layer C1 k -C1, and the area M of all pixels whose pixel points in the layer are greater than 0 and whose pixel points in the previous layer are equal to 0 k and filter area H k , where k represents the k-th slice, k ≥ 1;
[0062] The center C of the quasi-circle corresponding to the connected domain k , distance C k -C (k -1 ) , Area S k 、M k , H k , radius of quasi-circle R k , and the distance L between two adjacent layers k- ( k-1) As feature data.
[0063] Optionally, in the above-mentioned method for acquiring an aorta based on deep learning, the method for acquiring an aorta image from the CT sequence images according to the deep learning model and the feature data includes:
[0064] Analyzing the characteristic data according to the deep learning model to obtain descending aorta data;
[0065] expanding the descending aorta data;
[0066] Multiplying the expanded descending aorta data with the original CT image data, and calculating the gradient of each pixel point to obtain gradient data;
[0067] Extracting gradient edges according to the gradient data;
[0068] subtracting the gradient edge from the dilated descending aorta data;
[0069] Generate a seed point list according to the center of the quasi-circle;
[0070] Connected regions are extracted according to the seed point list to obtain a descending aorta image.
[0071] Optionally, the above-mentioned method for obtaining the aorta based on deep learning, starting from the top layer, sequentially obtains the connected domain of each of the binary images, and the center C of the quasi-circle corresponding to the connected domain k , Area S k , radius of quasi-circle R k , and the distance L between two adjacent layers k- (k-1 ) , where k represents the k-th layer of slicing. The method includes:
[0072] Using the Hough detection algorithm, starting from the top layer, three layers of slices are detected in sequence, and a center and a radius are obtained from each layer of the slices to form three circles respectively;
[0073] Remove the points with large deviations from the three circle centers to obtain the descending aorta seed point P1;
[0074] Obtain the connected domain A1 of the layer where the seed point P1 is located;
[0075] Obtain the centroid of the connected domain A1 as the center C1 of the quasi-circle, and obtain the area S1 of the connected domain A1 and the radius R1 of the quasi-circle;
[0076] Taking C1 as the seed point, obtaining the connected domain A2 of the layer where the seed point P1 is located;
[0077] Expand the connected domain A1 to obtain an expanded area D1, and remove the portion overlapping with the expanded area D1 from the connected domain A2 to obtain a connected domain A2';
[0078] Set the volume threshold V of the connected domain 阈 , if the volume V2 of the connected domain A2' is less than V 阈 , remove the points that are too far away from the center C1 of the previous layer, and then obtain the filtering area H k , the center of gravity of the connected domain A2' is used as the center C2 of the quasi-circle, and the area S2 of the connected domain A2 and the radius R2 of the quasi-circle are obtained;
[0079] Repeat the method of the connected domain A2 to obtain the connected domain of each binary image and the center C of the quasi-circle corresponding to the connected domain. k , Area S k , radius of quasi-circle R k , and the distance C between the centers of two adjacent layers k -C (k -1 ) , the center of each slice C k The distance C from the center of the top layer C1 k -C1.
[0080] In a second aspect, the present application provides a computer storage medium, and when the computer program is executed by a processor, the above-mentioned method of acquiring the aorta based on deep learning is implemented.
[0081] The beneficial effects of the solution provided in the embodiment of the present application include at least:
[0082] The present application provides a method for acquiring the aorta based on deep learning. A deep learning model is acquired based on feature data and a database, and an aortic image is acquired through the deep learning model. The method has the advantages of good extraction effect and high robustness, and the calculation results are accurate, and has high promotion value in clinical practice. BRIEF DESCRIPTION OF THE DRAWINGS
[0083] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0084] Figure 1 A flowchart of the method for acquiring the aorta based on deep learning in this application;
[0085] Figure 2 This is a flow chart of S100 of this application;
[0086] Figure 3 This is a flowchart of S110 of this application;
[0087] Figure 4 This is a flowchart of S116 of this application;
[0088] Figure 5 This is the flowchart of S1164 of this application;
[0089] Figure 6 This is the flowchart of S1165 of this application;
[0090] Figure 7 This is a flowchart of S140 of this application;
[0091] Figure 8 This is a flow chart of S400 of the present application;
[0092] Fig. 9 This is a flow chart of S450 of this application;
[0093] Fig.10 This is a flow chart of S500 of the present application. DETAILED DESCRIPTION
[0094] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the specific embodiments of the present invention and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0095] The following will disclose multiple embodiments of the present invention with drawings. For the purpose of clear description, many practical details will be described together in the following description. However, it should be understood that these practical details should not be used to limit the present invention. That is, in some embodiments of the present invention, these practical details are not necessary. In addition, for the purpose of simplifying the drawings, some conventional structures and components will be depicted in a simple schematic manner in the drawings.
[0096] In the prior art, the use of empirical values to obtain aortic images has the problems of many human factors, poor consistency, and slow extraction speed.
[0097] In order to solve the above problems, this application provides a method for obtaining the aorta based on deep learning, such as Figure 1 As shown, including:
[0098] S100, such as Figure 2 As shown, obtaining a slice database of the aortic layer and a slice database of the non-aortic layer includes:
[0099] S110, such as Figure 3 As shown in the figure, the new image with lungs, descending aorta, spine and ribs removed from the CT image includes:
[0100] S111, acquiring a three-dimensional database of CT sequence images;
[0101] S112, drawing a grayscale histogram of each group of CT sequence images;
[0102] S113, along the direction from the end point M to the origin O of the grayscale histogram, sequentially obtain the volume of each grayscale value area from point M to point M-1, point M to point M-2, until the volume of each grayscale value area from point M to point O is obtained; obtain the ratio V of the volume of each grayscale value area to the volume of the total area from point M to point O;
[0103] S114, according to medical knowledge and CT imaging principles, set the lung gray threshold Q 肺 ; If the gray value in the gray histogram is less than Q 肺 , then remove the image corresponding to the gray value to obtain the first image with the lung tissue removed;
[0104] S115, acquiring the heart center of gravity and the spine center of gravity corresponding to each group of CT sequence images according to the first image, including:
[0105] If V=b, pick up the starting point corresponding to the gray value area, project the starting point onto the CT three-dimensional image, obtain the three-dimensional image of the heart area, pick up the physical center of gravity of the three-dimensional image of the heart area, which is the heart center of gravity P2; wherein b represents a constant, 0.2<b<1;
[0106] If V=a, pick up the starting point corresponding to the gray value area, project the starting point onto the CT three-dimensional image, obtain the three-dimensional image of the bone area, pick up the physical center of gravity of the three-dimensional image of the bone area, which is the center of gravity of the spine P1; where a represents a constant, 0<a<0.2;
[0107] S116, such as Figure 4 As shown, the descending aorta images of each set of CT sequence images are obtained according to the heart center and the spine center, including:
[0108] S1161, according to medical knowledge and CT imaging principles, set the lung gray threshold Q 肺 ;
[0109] S1162: If the gray value in the gray histogram is less than Q 肺 , then remove the image corresponding to the gray value to obtain the first image with the lung tissue removed;
[0110] S1163, projecting the heart's center of gravity P2 onto the first image to obtain the heart's center O1;
[0111] S1164, such as Figure 5 As shown, the descending aorta grayscale threshold Q is set 降 , binarization processing is performed on the first image, including:
[0112] S11641, obtaining a gray value in the first image greater than the descending aorta gray value threshold Q 降 Pixel point PO, calculate the average gray value of pixel point PO
[0113] S11642, starting from the bottom layer of the first image, layer-by-layer slicing to obtain a first two-dimensional slice image group;
[0114] S11643, according to The slice image of the first image is binarized to remove the impurity points in the first image to obtain a binary image, where k is a positive integer, Q k represents the grayscale value corresponding to the k-th pixel point PO, and P(k) represents the pixel value corresponding to the k-th pixel point PO.
[0115] S1165, such as Figure 6 As shown, according to the distance between the descending aorta and the heart center O1, and the distance between the spine and the heart center O1, the circle corresponding to the descending aorta is obtained, including:
[0116] S11651, set the radius threshold of the circle from the descending aorta to the edge of the heart to r 阈 ;
[0117] S11652, based on the distance between the descending aorta and the heart being shorter than the distance between the spine and the heart, obtaining the approximate area of the spine and the approximate area of the descending aorta, including:
[0118] If the radius of the circle obtained by the Hough detection algorithm is r>r 阈 , then this circle is the circle corresponding to the spine, and the center and radius of this circle are not recorded, which is the approximate area of the spine;
[0119] If the Hough detection algorithm obtains the radius of the circle r≤r 阈 , then this circle may be the circle corresponding to the descending aorta. Record the center and radius of this circle, which is the approximate area of the descending aorta.
[0120] S11653, according to the approximate area of the descending aorta, remove the error pixels and obtain the circle corresponding to the descending aorta, including:
[0121] The centers and radii of circles in the approximate area of the descending aorta are screened, and circles with large center deviations between adjacent slices are removed, that is, error pixels are removed to form a seed point list of the descending aorta and obtain the descending aorta image; the descending aorta image is obtained from the CT image.
[0122] S117, removing the lungs, descending aorta, spine, and ribs from the CT image to obtain a new image.
[0123] S120, slicing starts from the top layer of the new image to obtain a two-dimensional image group;
[0124] S130, performing binarization processing on the two-dimensional image group to obtain a binarized image group, including:
[0125] Set the crown tree grayscale threshold Q 冠1 ;according to Each slice of the new image without lungs, descending aorta, spine, and ribs is binarized to remove impurities in the new image and obtain a binary image group; where m is a positive integer, Q m represents the grayscale value corresponding to the m-th pixel point PO, and P(m) represents the pixel value corresponding to the m-th pixel point PO.
[0126] S140, such as Figure 7 As shown, an aorta image is generated according to each set of binary images, including:
[0127] S141, establishing a search engine list for each slice in the binary image group;
[0128] S142, searching for circles in each slice layer, comparing the number of pixels in the search engine list of each layer with the radius of the circle, and finding a center point that meets the conditions;
[0129] S143, if a circle center point that meets the conditions cannot be found, search for a circle center point of a slice of the next layer.
[0130] S150, generating slice data of the aorta layer according to the aorta image, and the remaining slice data are slice data of the non-aorta layer, and obtaining a slice database of the aorta layer and a slice database of the non-aorta layer.
[0131] By first screening out the center of gravity of the heart and the center of gravity of the spine, locating the positions of the heart and spine, and then acquiring the descending aorta image based on the positions of the heart and spine, the amount of calculation is reduced, the algorithm is simple, easy to operate, the calculation speed is fast, the design is scientific, and the image processing is accurate.
[0132] S200, performing deep learning on the slice database of the aorta layer and the slice database of the non-aorta layer respectively to obtain a deep learning model;
[0133] S300, acquiring a CT sequence image to be processed or three-dimensional data of a CT sequence image;
[0134] S400, such as Figure 8 As shown, extracting feature data of the CT sequence images to be processed or the three-dimensional data of the CT sequence images includes:
[0135] S410, drawing a grayscale histogram of the CT sequence image to be processed;
[0136] S420, obtaining a gray value greater than Q 降 The average gray value of the pixel
[0137] S430, performing layered slicing on the CT sequence images to obtain a two-dimensional slice image group;
[0138] S440, based on the average gray value The images in the two-dimensional slice image group are all binarized to obtain a plurality of binarized images;
[0139] S450, such as Fig. 9 As shown, starting from the top layer, the connected domain of each binary image and the center C of the quasi-circle corresponding to the connected domain are obtained in turn. k , Area S k , radius of quasi-circle R k, and the distance C between the centers of two adjacent layers k -C (k-1) , the center of each slice C k Distance C from the center of the top C1 circle k -C1, and the area M of all pixels whose pixels in the layer are greater than 0 and whose pixels in the previous layer are equal to 0 k and filter area H k , where k represents the k-th slice, k ≥ 1; the center of the quasi-circle corresponding to the connected domain is C k , distance C k -C (k -1 ) , Area S k 、M k , H k , radius of quasi-circle R k , and the distance L between two adjacent layers k- ( k-1) As characteristic data, it includes:
[0140] S451, using the Hough detection algorithm, starting from the top layer, detect three slices in sequence, obtain a center and a radius from each slice, and form three circles respectively;
[0141] S452, removing the points with large deviations from the three circle centers to obtain the descending aorta seed point P1;
[0142] S453, obtaining the connected domain A1 of the layer where the seed point P1 is located;
[0143] S454, obtaining the centroid of the connected domain A1 as the center C1 of the quasi-circle, and obtaining the area S1 of the connected domain A1 and the radius R1 of the quasi-circle;
[0144] S455, taking C1 as the seed point, obtaining the connected domain A2 of the layer where the seed point P1 is located;
[0145] S456, dilate the connected domain A1 to obtain the dilated region D1, and remove the portion overlapping with the dilated region D1 from the connected domain A2 to obtain the connected domain A2';
[0146] S457, setting the volume threshold V of the connected domain 阈 , if the volume V2 of the connected domain A2' is less than V 阈 , remove the points that are too far away from the center C1 of the previous layer, and then obtain the filtering area H k , the centroid of the connected domain A2' is taken as the center C2 of the quasi-circle, and the area S2 of the connected domain A2 and the radius R2 of the quasi-circle are obtained;
[0147] S458, repeat the method of connected domain A2 to sequentially obtain the connected domain of each binary image and the center C of the quasi-circle corresponding to the connected domaink , Area S k , radius of quasi-circle R k , and the distance C between the centers of two adjacent layers k -C (k-1) , the center of each slice C k The distance C from the center of the top layer C1 k -C1.
[0148] S500, such as Fig.10 As shown, the aortic image is obtained from the CT sequence images according to the deep learning model and feature data, including:
[0149] S510, analyzing the feature data according to the deep learning model to obtain aorta data;
[0150] S520, dilated aorta data;
[0151] S530, multiplying the expanded aorta data with the original CT image data, and calculating the gradient of each pixel point to obtain gradient data;
[0152] S540, extracting gradient edges according to the gradient data;
[0153] S550, subtracting the gradient edge from the dilated aorta data;
[0154] S560, generating a seed point list according to the center of the quasi-circle;
[0155] S570, extracting connected regions according to the seed point list to obtain an aorta image.
[0156] The present application provides a computer storage medium, and when the computer program is executed by a processor, the above-mentioned method for acquiring the aorta based on deep learning is implemented.
[0157] It is known to those skilled in the art that various aspects of the present invention may be implemented as a system, method or computer program product. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, resident software, microcode, etc.), or an implementation combining hardware and software aspects, which may be collectively referred to herein as a "circuit", "module" or "system". In addition, in some embodiments, various aspects of the present invention may also be implemented in the form of a computer program product in one or more computer-readable media, which contains computer-readable program code. The implementation of the method and / or system of an embodiment of the present invention may involve performing or completing a selected task manually, automatically, or in a combination thereof.
[0158] For example, the hardware for performing the selected tasks according to the embodiments of the present invention can be implemented as a chip or circuit. As software, the selected tasks according to the embodiments of the present invention can be implemented as multiple software instructions executed by a computer using any appropriate operating system. In an exemplary embodiment of the present invention, one or more tasks according to the exemplary embodiments of the method and / or system as described herein are performed by a data processor, such as a computing platform for executing multiple instructions. Optionally, the data processor includes a volatile storage for storing instructions and / or data and / or a non-volatile storage for storing instructions and / or data, for example, a magnetic hard disk and / or a removable medium. Optionally, a network connection is also provided. A display and / or a user input device, such as a keyboard or a mouse, is also optionally provided.
[0159] Any combination of one or more computer-readable media may be used. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples (non-exhaustive list) of computer-readable storage media would include the following:
[0160] An electrical connection with one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0161] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0162] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0163] For example, any combination of one or more programming languages can be used to write a computer program code for performing operations for various aspects of the present invention, including object-oriented programming languages such as Java, Smalltalk, C++ and conventional process programming languages, such as "C" programming language or similar programming languages. The program code can be executed completely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on the remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network--including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., utilizing an Internet service provider to connect through the Internet).
[0164] It should be understood that each box in the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, so as to produce a machine, so that when these computer program instructions are executed by the processor of the computer or other programmable data processing device, a device is generated to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0165] These computer program instructions may also be stored in a computer-readable medium, which causes a computer, other programmable data processing apparatus, or other device to operate in a specific manner, so that the instructions stored in the computer-readable medium produce an article of manufacture including instructions for implementing the functions / actions specified in one or more blocks in the flowchart and / or block diagram.
[0166] Computer program instructions may also be loaded onto a computer (e.g., a coronary artery analysis system) or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other apparatus to produce a computer-implemented process, such that the instructions executed on the computer, other programmable apparatus, or other apparatus provide a process for implementing the functions / actions specified in the flowchart and / or one or more block diagram blocks.
[0167] The above specific examples of the present invention further illustrate the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for acquiring aorta based on deep learning, characterized in that: include: Acquire a slice database of an aortic layer and a slice database of a non-aortic layer; Performing deep learning on the slice database of the aortic layer and the slice database of the non-aortic layer respectively to obtain a deep learning model; Acquiring a CT sequence image to be processed or three-dimensional data of a CT sequence image; Extracting feature data of the CT sequence images or three-dimensional data of the CT sequence images to be processed; Acquire an aortic image from the CT sequence images according to the deep learning model and the feature data; The method for extracting feature data of the CT sequence images or three-dimensional data of CT sequence images to be processed comprises: Draw a grayscale histogram of the CT sequence images to be processed; Set the descending aorta grayscale threshold Q 降 , get gray value greater than Q 降 The average gray value of the pixel Slicing the CT sequence images in layers to obtain a two-dimensional slice image group; According to the average gray value Performing binarization processing on the images in the two-dimensional slice image group to obtain a plurality of binarized images; Starting from the top layer, the connected domain of each binary image and the center C of the quasi-circle corresponding to the connected domain are obtained in turn. k , Area S k , radius of quasi-circle R k , and the distance C between the centers of two adjacent layers k -C (k -1 ) , the center of each slice C k The distance C from the center of the top layer C1 k -C1, and the area M of all pixels whose pixel points in the layer are greater than 0 and whose pixel points in the previous layer are equal to 0 k and filter area H k , where k represents the k-th slice, k ≥ 1; The center C of the quasi-circle corresponding to the connected domain k , distance C k -C (k -1 ) , Area S k 、M k , H k , radius of quasi-circle R k , and the distance L between two adjacent layers k- ( k-1) As feature data; Starting from the top layer, the connected domain of each binary image and the center C of the quasi-circle corresponding to the connected domain are obtained in turn. k , Area S k , radius of quasi-circle R k , and the distance C between the centers of two adjacent layers k -C (k -1 ) , the center of each slice C k The distance C from the center of the top layer C1 k -C1, and the area M of all pixels whose pixel points in the layer are greater than 0 and whose pixel points in the previous layer are equal to 0 k and filter area H k , where k represents the k-th slice, and the methods where k ≥ 1 include: Using the Hough detection algorithm, starting from the top layer, three layers of slices are detected in sequence, and a center and a radius are obtained from each layer of the slices to form three circles respectively; Remove the points with large deviations from the three circle centers to obtain the descending aorta seed point P1; Obtain the connected domain A1 of the layer where the seed point P1 is located; Obtain the centroid of the connected domain A1 as the center C1 of the quasi-circle, and obtain the area S1 of the connected domain A1 and the radius R1 of the quasi-circle; Taking C1 as the seed point, obtaining the connected domain A2 of the layer where the seed point P1 is located; Expand the connected domain A1 to obtain an expanded area D1, and remove the portion overlapping with the expanded area D1 from the connected domain A2 to obtain a connected domain A2'; Set the volume threshold V of the connected domain 阈 , if the volume V2 of the connected domain A2' is less than V 阈 , remove the points that are too far away from the center C1 of the previous layer, and then obtain the filtering area H k , the center of gravity of the connected domain A2' is used as the center C2 of the quasi-circle, and the area S2 of the connected domain A2 and the radius R2 of the quasi-circle are obtained; Repeat the method of the connected domain A2 to obtain the connected domain of each binary image and the center C of the quasi-circle corresponding to the connected domain. k , Area S k , radius of quasi-circle R k , and the distance C between the centers of two adjacent layers k -C (k -1 ) , the center of each slice C k The distance C from the center of the top layer C1 k -C1.
2. The method for acquiring aorta based on deep learning according to claim 1, characterized in that: The method for obtaining a slice database of an aortic layer and a slice database of a non-aortic layer comprises: After removing the lungs, descending aorta, spine, and ribs from the CT image, a new image is obtained; Slicing from the top layer of the new image to obtain a two-dimensional image group; Binarizing the two-dimensional image group to obtain a binary image group; generating an aorta image according to each group of the binarized images; The slice data of the aorta layer is generated according to the aorta image, and the remaining slice data is the slice data of the non-aorta layer, so as to obtain a slice database of the aorta layer and a slice database of the non-aorta layer.
3. The method for acquiring aorta based on deep learning according to claim 2, characterized in that: The method of performing binarization processing on the two-dimensional image group to obtain a binary image group includes: Set the crown tree grayscale threshold Q 冠1 ;according to Binarization is performed on each slice of the new image from which the lungs, descending aorta, spine, and ribs are removed, and impurity points in the new image are removed to obtain the binary image group; Where m is a positive integer, Q m represents the grayscale value corresponding to the m-th pixel point PO, and P(m) represents the pixel value corresponding to the m-th pixel point PO.
4. The method for acquiring aorta based on deep learning according to claim 2, characterized in that: The method for generating an aorta image according to each group of the binary images comprises: Creating a search engine list for each layer of the slices in the binary image group; Searching for circles in each layer of slices, comparing the number of pixels in the search engine list of each layer with the radius of the circle, and finding the center point of the circle that meets the conditions; If a qualifying center point cannot be found, the center point of the slice in the next layer is searched.
5. The method for acquiring aorta based on deep learning according to claim 1, characterized in that: The method for removing the new image of the lungs, the descending aorta, the spine, and the ribs from the CT image comprises: Obtain a three-dimensional database of CT sequence images; Draw a grayscale histogram of each group of the CT sequence images; Along the direction from the end point M to the origin O of the grayscale histogram, sequentially obtain the volume of each grayscale value area from point M to point M-1, point M to point M-2, until the volume of each grayscale value area from point M to point O is obtained; obtain the volume ratio V of each grayscale value area to the total volume of the area from point M to point O; According to medical knowledge and CT imaging principles, the lung grayscale threshold Q is set. 肺 ; If the gray value in the gray histogram is less than Q 肺 , then remove the image corresponding to the gray value to obtain the first image with the lung tissue removed; Acquire the heart center of gravity and spine center of gravity corresponding to each group of CT sequence images according to the first image; Acquire the descending aorta image of each set of CT sequence images according to the heart center of gravity and the spine center of gravity; The lungs, descending aorta, spine, and ribs are removed from the CT image to obtain a new image.
6. The method for acquiring aorta based on deep learning according to claim 5, characterized in that: The method of acquiring the heart center of gravity and the spine center of gravity corresponding to each group of CT sequence images according to the first image comprises: If V=b, then pick up the starting point corresponding to the gray value area, project the starting point onto the CT three-dimensional image, obtain the three-dimensional image of the heart area, pick up the physical center of gravity of the three-dimensional image of the heart area, which is the heart center of gravity P2; wherein b represents a constant, 0.2<b<1; If V=a, pick up the starting point corresponding to the gray value area, project the starting point onto the CT three-dimensional image, obtain the three-dimensional image of the bone area, and pick up the physical center of gravity of the three-dimensional image of the bone area, which is the center of gravity of the spine P1; wherein a represents a constant, 0<a<0.
2.
7. The method for acquiring aorta based on deep learning according to claim 6, characterized in that: The method for acquiring the descending aorta image of each set of CT sequence images according to the heart center of gravity and the spine center of gravity comprises: According to medical knowledge and CT imaging principles, the lung grayscale threshold Q is set. 肺 ; If the gray value in the gray histogram is less than Q 肺 , then remove the image corresponding to the grayscale value to obtain a first image with lung tissue removed; Projecting the heart's center of gravity P2 onto the first image to obtain the heart's center O1; Set the descending aorta grayscale threshold Q 降 , performing binarization processing on the first image; According to the distance between the descending aorta and the heart center O1, and the distance between the spine and the heart center O1, a circle corresponding to the descending aorta is obtained; A descending aorta image is acquired from the CT image.
8. The method for acquiring aorta based on deep learning according to claim 7, characterized in that: The descending aorta grayscale threshold Q is set 降 , a method for performing binarization processing on the first image includes: The gray value in the first image is greater than the descending aorta gray value threshold Q 降 The pixel point PO is calculated to obtain the average gray value of the pixel point PO. Slice the first image layer by layer starting from the bottom layer to obtain a first two-dimensional slice image group; according to Binarization is performed on the first image to remove impurity points in the first image to obtain a binary image, where k is a positive integer, Q k represents the grayscale value corresponding to the k-th pixel point PO, and P(k) represents the pixel value corresponding to the k-th pixel point PO.
9. The method for acquiring aorta based on deep learning according to claim 8, characterized in that: The method for obtaining the circle corresponding to the descending aorta according to the distance between the descending aorta and the heart center O1, and the distance between the spine and the heart center O1, comprises: Set the radius threshold of the circle formed by the descending aorta to the edge of the heart to r 阈 ; According to the distance between the descending aorta and the heart being smaller than the distance between the spine and the heart, acquiring the approximate area of the spine and the approximate area of the descending aorta; According to the approximate area of the descending aorta, the error pixels are removed to obtain the descending aorta image, which is the circle corresponding to the descending aorta.
10. The method for acquiring aorta based on deep learning according to claim 9, characterized in that: The method for obtaining the approximate area of the spine and the approximate area of the descending aorta according to the distance between the descending aorta and the heart being smaller than the distance between the spine and the heart comprises: If the radius of the circle obtained by the Hough detection algorithm is r>r 阈 , then this circle is the circle corresponding to the spine, and the center and radius of this circle are not recorded, which is the approximate area of the spine; If the Hough detection algorithm obtains the radius of the circle r≤r 阈 , then this circle may be the circle corresponding to the descending aorta. Record the center and radius of this circle, which is the approximate area of the descending aorta.
11. The method for acquiring aorta based on deep learning according to claim 10, characterized in that: The method for acquiring an aorta image from the CT sequence images according to the deep learning model and the feature data includes: Analyzing the characteristic data according to the deep learning model to obtain aorta data; expanding the aorta data; Multiplying the expanded aorta data with the original CT image data, and calculating the gradient of each pixel point to obtain gradient data; Extracting gradient edges according to the gradient data; subtracting the gradient edge from the dilated aorta data; Generate a seed point list according to the center of the quasi-circle; Connected regions are extracted according to the seed point list to obtain an aorta image.
12. A computer storage medium, characterized in that: When the computer program is executed by a processor, the method for acquiring the aorta based on deep learning as described in any one of claims 1 to 11 is implemented.
