WO2023137948A1 - Processing method and apparatus for analyzing fractional flow reserve on the basis of angiographic image - Google Patents

Processing method and apparatus for analyzing fractional flow reserve on the basis of angiographic image Download PDF

Info

Publication number
WO2023137948A1
WO2023137948A1 PCT/CN2022/097247 CN2022097247W WO2023137948A1 WO 2023137948 A1 WO2023137948 A1 WO 2023137948A1 CN 2022097247 W CN2022097247 W CN 2022097247W WO 2023137948 A1 WO2023137948 A1 WO 2023137948A1
Authority
WO
WIPO (PCT)
Prior art keywords
blood vessel
branch
diameter
target
image
Prior art date
Application number
PCT/CN2022/097247
Other languages
French (fr)
Chinese (zh)
Inventor
张碧莹
吴泽剑
王思瀚
马迪
裴旺
曹君
Original Assignee
乐普(北京)医疗器械股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 乐普(北京)医疗器械股份有限公司 filed Critical 乐普(北京)医疗器械股份有限公司
Publication of WO2023137948A1 publication Critical patent/WO2023137948A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0012Biomedical image inspection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/0464Convolutional networks [CNN, ConvNet]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/26Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20016Hierarchical, coarse-to-fine, multiscale or multiresolution image processing; Pyramid transform
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20084Artificial neural networks [ANN]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30004Biomedical image processing
    • G06T2207/30101Blood vessel; Artery; Vein; Vascular

Definitions

  • the invention relates to the technical field of data processing, in particular to a processing method and device for analyzing blood flow reserve fraction based on angiography images.
  • Fractional Flow Reserve refers to the ratio of the average intracoronary pressure at the distal end of the stenosis to the average aortic pressure at the coronary ostium in the state of maximum coronary artery congestion.
  • PCI percutaneous coronary intervention
  • the purpose of the present invention is to address the defects of the prior art, to provide a processing method, device, electronic equipment and computer-readable storage medium for analyzing blood flow reserve fraction based on angiographic images, to perform quantitative coronary angiography (QCA) analysis on the diameter of the coronary ostium, the diameter change sequence of the stenotic vessel segment, and the stenosis rate of the angiographic image of the coronary artery based on the image target detection and semantic segmentation model;
  • the artificial neural network (Artificial Neural Network, ANN) model is used to analyze the FFR based on the aforementioned QCA analysis results to obtain the corresponding FFR value.
  • the first aspect of the embodiment of the present invention provides a processing method for analyzing blood flow reserve fraction based on angiography images, the method comprising:
  • the first image is subjected to target detection and semantic segmentation processing of coronary inlet vessels and stenotic vessels, so as to obtain a target detection frame A and one or more target detection frames B on the first image;
  • each of the target detection frames A and B includes a section of blood vessel mask image, the detection target type corresponding to the target detection frame A is a coronary artery portal blood vessel type, and the detection target type corresponding to the target detection frame B is a stenotic segment blood vessel type;
  • the image target detection and semantic segmentation model includes a Mask R-CNN model
  • the image target detection and semantic segmentation model is specifically the Mask R-CNN model, it includes a feature extraction network layer, a region candidate network layer, a region alignment network layer and a region head network layer;
  • the feature extraction network layer is connected to the region candidate network layer, the region candidate network layer is connected to the region alignment network layer, and the region alignment network layer is connected to the region head network layer;
  • the feature extraction network layer is specifically composed of a five-level residual network and a corresponding five-level feature pyramid network;
  • the region candidate network layer includes a five-level region candidate network, corresponding to the five-level feature pyramid network; when implementing the five-level residual network, use the residual network ResNet-50 network structure to implement and use this as the backbone network of the feature extraction network layer;
  • the regional head network layer includes two sub-networks respectively: a target detection branch network and a target segmentation branch network; the target detection branch network is used to output the target detection frame A whose detection target type is a coronary inlet vessel type, and the target detection frame B whose detection target type is a stenotic segment blood vessel type; the target segmentation branch network is used to output the blood vessel mask image of the corresponding coronary inlet vessel in the target detection frame A, and output the corresponding blood vessel mask image of the narrow segment blood vessel in the target detection frame B.
  • the coronary artery entrance diameter analysis is performed on the blood vessel mask image of the target detection frame A to generate a corresponding coronary artery entrance diameter, which specifically includes:
  • the analysis of the stenotic vessel diameter and stenosis rate on the blood vessel mask image of each target detection frame B generates a corresponding first stenotic segment diameter sequence and first stenosis rate, specifically including:
  • the blood vessel branch where each target point P i is located on the first image is confirmed to generate a corresponding blood vessel branch C i , and according to all the first stenosis segment diameter sequences and the first stenosis rate corresponding to each of the blood vessel branches C i , as well as the target point diameter of the corresponding target point P i , and the coronary artery entrance diameter, a blood vessel branch feature extraction process is performed to generate a corresponding branch feature data sequence S i , and all obtained branch feature data sequences S i are sorted to obtain a branch feature data set D in (S 1 ... S i ...S n ), including:
  • the starting position of the blood vessel in the blood vessel mask image of the target detection frame A is used as the coronary artery inlet position; and according to the blood flow direction, the blood flow path from the coronary artery inlet position to each of the target points P i is used as the blood vessel branch C i corresponding to each of the target points P i ;
  • each of the blood vessel branches C i compose the corresponding branch feature data sequence S i with the coronary inlet diameter and the corresponding first branch stenosis segment diameter sequence, the first branch target diameter and the first branch maximum stenosis rate;
  • All the branch feature data sequences S i are sorted in ascending order of the target point index i, so as to obtain the branch feature data set D in (S 1 ... S i ... S n ).
  • the branch feature data set D in (S 1 ... S i ... S n ) is input into the preset artificial neural network ANN model for operation, and the branch operation result set D out (U 1 ... U i ... U n ) is output, specifically including:
  • All the branch operation results U i are sorted in ascending order of the target point index i, so as to obtain the branch operation result set D out (U 1 ... U i ... U n ).
  • the artificial neural network ANN model includes an input layer, one or more hidden layers and an output layer; the input layer includes a plurality of input layer nodes; each of the hidden layers includes a plurality of hidden layer nodes; the output layer includes an output layer node;
  • the input layer is used to input each segment data of the first data segment to the corresponding input layer node as a corresponding node output value
  • Each of the hidden layer nodes of the first hidden layer is fully connected with all the input layer nodes to form a corresponding first fully connected network; the first hidden layer is used to input the node output values of all the input layer nodes in the corresponding first fully connected network into a preset fully connected linear operation function to generate a corresponding first result, and input the first result into a preset activation function to perform operation to generate a corresponding second result, and use the second result as the node output value of the current hidden layer node;
  • Each of the hidden layer nodes of the next hidden layer is fully connected with all the hidden layer nodes of the previous hidden layer to form a corresponding second fully connected network; the next hidden layer is used to input the node output values of all the hidden layer nodes of the upper hidden layer in the corresponding second fully connected network into a preset fully connected linear operation function to generate a corresponding third result, and input the third result into a preset activation function to perform calculation to generate a corresponding fourth result, and use the fourth result as the node output of the current hidden layer node. value;
  • the output layer nodes of the output layer are fully connected with all the hidden layer nodes of the last hidden layer to form a corresponding third fully connected network; the output layer is used to input, on the output layer nodes, the node output values of all the hidden layer nodes of the last hidden layer in the corresponding third fully connected network into a preset fully connected linear operation function for operation to generate a corresponding fifth result, and input the fifth result into a preset activation function for operation to generate a corresponding sixth result, and use the sixth result as the branch operation result U i ;
  • the activation function used by the hidden layer and the output layer is a ReLU function by default.
  • the second aspect of the embodiment of the present invention provides a device for implementing the method described in the first aspect above, including: an acquisition module, an image object detection and semantic segmentation module, a quantitative coronary angiography analysis and processing module, a target point processing module, a blood vessel branch processing module, and a blood flow reserve processing module;
  • the obtaining module is used to obtain an angiographic image as a first image
  • the image target detection and semantic segmentation module is used to perform target detection and semantic segmentation processing of coronary inlet vessels and stenotic vessels on the first image based on a preset image target detection and semantic segmentation model, so as to obtain a target detection frame A and one or more target detection frames B on the first image; each of the target detection frames A and B includes a section of blood vessel mask image, the detection target type corresponding to the target detection frame A is a coronary artery blood vessel type, and the detection target type corresponding to the target detection frame B is a stenotic segment blood vessel type;
  • the quantitative coronary angiography analysis and processing module is used to analyze the coronary artery entrance diameter on the blood vessel mask image of the target detection frame A to generate a corresponding coronary artery entrance diameter; and analyze the stenotic segment blood vessel diameter and stenosis rate analysis on the blood vessel mask image of each target detection frame B to generate a corresponding first stenosis segment diameter sequence and first stenosis rate;
  • the target point processing module is used to use the blood flow reserve fraction analysis point marked by the user on the first image as the corresponding target point P i , and use the user's blood vessel diameter measurement result at the target point P i as the corresponding target point diameter; where 1 ⁇ i ⁇ n, n is the total number of measurement points;
  • the blood vessel branch processing module is used to confirm the blood vessel branch of each target point P i on the first image to generate a corresponding blood vessel branch C i , and perform blood vessel branch feature extraction processing according to all the first stenosis segment diameter sequences and the first stenosis rate corresponding to each of the blood vessel branch C i , the target point diameter of the corresponding target point Pi , and the coronary artery entrance diameter to generate a corresponding branch feature data sequence S i , and sort all the obtained branch feature data sequences S i to obtain a branch feature data set D in (S 1 ... S i ... S n );
  • the blood flow reserve fraction processing module is used to input the branch feature data set D in (S 1 ... S i ... S n ) into the preset artificial neural network ANN model for operation and output a branch operation result set D out (U 1 ... U i ... U n ); and output the operation result U i of each branch in the set as the analysis result of the corresponding target point P i .
  • the third aspect of the embodiment of the present invention provides an electronic device, including: a memory, a processor, and a transceiver;
  • the processor is configured to be coupled with the memory, read and execute instructions in the memory, so as to implement the method steps described in the first aspect above;
  • the transceiver is coupled to the processor, and the processor controls the transceiver to send and receive messages.
  • the fourth aspect of the embodiments of the present invention provides a computer-readable storage medium, the computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a computer, the computer executes the instructions of the method described in the first aspect above.
  • An embodiment of the present invention provides a processing method, device, electronic device, and computer-readable storage medium for analyzing blood flow reserve fraction based on angiographic images.
  • the angiographic image of the coronary artery is used to identify the coronary ostium vessel segment and the stenotic vessel segment, and perform QCA analysis on the diameter of the coronary ostium vessel segment, the diameter change sequence of the stenotic vessel segment, and the stenosis rate; FR value.
  • the invention not only avoids personal injury caused by intrusive measurement, but also greatly reduces measurement difficulty, and improves measurement safety and measurement efficiency.
  • FIG. 1 is a schematic diagram of a processing method for analyzing blood flow reserve fraction based on angiographic images provided by Embodiment 1 of the present invention
  • FIG. 2 is a block diagram of a processing device for analyzing blood flow reserve fraction based on angiographic images provided by Embodiment 2 of the present invention
  • FIG. 3 is a schematic structural diagram of an electronic device provided by Embodiment 3 of the present invention.
  • Embodiment 1 of the present invention provides a processing method for analyzing blood flow reserve based on angiographic images, as shown in FIG. 1 , a schematic diagram of a processing method for analyzing blood flow reserve based on angiographic images provided in Embodiment 1 of the present invention. This method mainly includes the following steps:
  • Step 1 acquiring an angiographic image as a first image.
  • the coronary angiography technique is to inject a contrast agent into the blood vessel of the measurement object and take an image of the process of the contrast agent passing through the coronary artery under X-ray;
  • the image data obtained by the coronary angiography technique is a coronary angiography image;
  • the angiography image in the current step defaults to a coronary angiography image in which the contrast agent filling effect is more obvious in a single coronary angiography process.
  • Step 2 Based on the preset image target detection and semantic segmentation model, the first image is subjected to target detection and semantic segmentation processing of coronary inlet vessels and stenotic vessels, so as to obtain a target detection frame A and one or more target detection frames B on the first image;
  • the target detection frame A and B both include a section of blood vessel mask image, the detection target type corresponding to the target detection frame A is the coronary inlet blood vessel type, and the detection target type corresponding to the target detection frame B is the stenotic segment blood vessel type;
  • the image target detection and semantic segmentation model is based on the neural network architecture of the Mask R-CNN model; when the image target detection and semantic segmentation model is specifically the Mask R-CNN model, its neural network structure can refer to the article "Mask R-CNN" published by the authors Kaiming He, Georgia Gkioxari, Piotr Doll'ar and Ross Girshick, including: feature extraction network layer, region candidate network (Region Propos al Network, RPN) layer, region alignment (Region Of Interest Align, ROI Align) network layer and region head (ROI HEAD) network layer; the feature extraction network layer is connected to the region candidate network layer, the region candidate network layer is connected to the region alignment network layer, and the region alignment network layer is connected to the region head network layer;
  • region candidate network Region Propos al Network, RPN
  • region alignment Region Of Interest Align, ROI Align
  • ROI HEAD region head
  • the feature extraction network layer of the embodiment of the present invention is specifically composed of a five-level residual network (Residual Network, ResNet) and a corresponding five-level feature pyramid network (Feature Pyramid Networks, FPN);
  • the region candidate network layer includes a five-level region candidate network, corresponding to the five-level feature pyramid network; when implementing a five-level residual network, the embodiment of the present invention uses the residual network ResNet-50 network structure to implement and use this as the backbone network of the feature extraction network layer;
  • the regional head network layer in the embodiment of the present invention includes two sub-networks: a target detection branch network and a target segmentation branch network; wherein, the target detection branch network is used to output a target detection frame A whose detection target type is a coronary inlet vessel type, and a target detection frame B whose detection target type is a stenotic blood vessel type; the target segmentation branch network is used to output a blood vessel mask (mask) image of a corresponding coronary inlet vessel in the target detection frame A, and output a blood vessel mask image of a corresponding stenotic blood vessel in the target detection frame B.
  • a target detection branch network is used to output a target detection frame A whose detection target type is a coronary inlet vessel type, and a target detection frame B whose detection target type is a stenotic blood vessel type
  • the target segmentation branch network is used to output a blood vessel mask (mask) image of a corresponding coronary inlet vessel in the target detection frame A, and output a blood vessel mask image of
  • Step 3 Analyzing the coronary artery entrance diameter on the blood vessel mask image of the target detection frame A to generate the corresponding coronary artery entrance diameter; and analyzing the stenotic vessel diameter and stenosis rate analysis on the blood vessel mask image of each target detection frame B to generate a corresponding first stenosis segment diameter sequence and first stenosis rate;
  • step 31 analyzing the coronary artery entrance diameter on the blood vessel mask image of the target detection frame A to generate a corresponding coronary artery entrance diameter;
  • Step 312 performing vessel edge and vessel centerline recognition on the current vessel mask image to generate corresponding current vessel edge and current centerline;
  • the blood vessel edge and the blood vessel centerline are identified on the current blood vessel mask image
  • all the image information in the target detection frame A where the current blood vessel mask image is located is firstly used as the first detection frame image; then, the first detection frame image is binarized to generate the first binary image; wherein, there are only two types of pixel values for all pixels on the first binary image: the foreground pixel value of the foreground pixel point, and the background pixel value of the background pixel point.
  • the foreground pixel value and the background pixel value can be defined by themselves during specific implementation;
  • the centerline of the current blood vessel mask image on the first binary image is extracted to generate the current centerline, specifically: create a connectivity judgment rule including multiple sub-rules for the connectivity of the blood vessel in advance, each sub-rule corresponds to one or more 3 ⁇ 3 pixel value template matrices, and each pixel value template matrix corresponds to a pixel arrangement structure that maintains connectivity; then traverse all the pixels covered by the current blood vessel mask image on the first binary image; The pixel values of the pixels in the eight domains of the current traversing pixel are extracted and combined with the pixel values of the currently traversing pixel to form a 3 ⁇ 3 pixel value matrix, which is recorded as the first matrix, and then one or more 3 ⁇ 3 pixel value template matrices of each sub-rule in the connectivity judgment rule are used to compare with the first matrix in turn; when comparing, if the first matrix completely matches
  • Step 313 mark the plurality of pixel points included in the current central line as corresponding first pixel points X 1,j in sequence;
  • Step 314 through each first pixel point X 1,j, make the intersection line segment with the edge of the current blood vessel to obtain a plurality of first intersection line segments; and select the length of the shortest first intersection line segment as the first pixel point blood vessel diameter L 1,j corresponding to the current first pixel point X 1,j ;
  • each first pixel point X 1,j The arrangement structure relationship of the pixels in its eight neighborhoods (upper left, upper, upper right, right, lower right, lower, lower left, left), each first pixel point X 1,j Make four straight lines: the first straight line (upper left-X 1,j - bottom left), second straight line (above - X 1,j -bottom), third straight line (upper right-X 1,j -bottom left) and the fourth straight line (right-X 1,j -left); extract the first, second, third and fourth straight lines and the intersection line segment of the current blood vessel edge as the corresponding first intersection line segment 1, 2, 3, 4; from the first intersection line segment 1, 2, 3, 4, extract the shortest as the first pixel point blood vessel diameter L 1,j ;
  • Step 315 performing mean value calculation on all obtained first pixel vessel diameters L 1,j to generate a coronary artery entrance diameter
  • Step 32 analyzing the vessel diameter and stenosis rate of the stenosis segment on the blood vessel mask image of each target detection frame B to generate a corresponding first stenosis segment diameter sequence and first stenosis rate;
  • step 321 using the blood vessel mask image of the current target detection frame B as the current blood vessel mask image;
  • Step 322 performing vessel edge and vessel centerline recognition on the current vessel mask image to generate corresponding current vessel edge and current centerline;
  • Step 323 mark the plurality of pixel points included in the current central line as corresponding second pixel points X 2,h in sequence;
  • Step 324 through each second pixel point X 2, h, make a plurality of second intersecting line segments with the current blood vessel edge; and select the length of the shortest second intersecting line segment as the second pixel point blood vessel diameter L 2 , h corresponding to the current second pixel point X 2, h ;
  • the embodiment of the present invention defaults that the diameter of the coronary artery from the coronary artery entrance to the end point of each branch should be a linear reduction process under normal conditions without stenosis of the middle segment of the blood vessel caused by the lesion.
  • the above-mentioned linear change function f(h) is a function for simulating this linear reduction process;
  • Step 326 according to the linear change function f(h), calculate the linear change diameter length corresponding to each second pixel point X 2,h to generate the corresponding second pixel point linear diameter L′ 2,h ,
  • the second pixel point linear diameter L′ 2,h is the normal blood vessel diameter corresponding to each second pixel point X 2,h under normal circumstances based on the above-mentioned linear change function f(h);
  • Step 327 according to the second pixel blood vessel diameter L 2,h and the second pixel linear diameter L′ 2,h , calculate the second pixel stenosis rate R 2,h corresponding to each second pixel X 2,h ,
  • the second pixel point blood vessel diameter L 2,h is the blood vessel diameter under actual conditions
  • the second pixel point linear diameter L′ 2,h is the theoretical blood vessel diameter under simulated normal conditions
  • the ratio of the actual diameter to the theoretical diameter can reflect the degree of blood flow through the second pixel point X 2,h , naturally It reflects the degree of blood flow obstruction of the second pixel point X 2,h , that is, the second pixel point stenosis rate R 2,h corresponding to the second pixel point X 2,h ;
  • Step 328 using the second pixel point blood vessel diameter L 2,h as the corresponding first stenosis segment diameter, sorting all the first stenosis segment diameters in ascending order according to the second pixel point index h, generating a sequence of first stenosis segment diameters corresponding to the current blood vessel mask image; and selecting the maximum value from all obtained second pixel point stenosis ratios R 2,h as the first stenosis rate corresponding to the current blood vessel mask image.
  • the first series of stenotic segment diameters reflects the diameters of blood vessels at various points on the blood vessel corresponding to the stenotic segment, and the first stenosis rate is the maximum stenosis rate on the blood vessel corresponding to the stenotic segment.
  • the feature of the former of these two processing methods is that the stenosis rate of each position on the centerline of the stenosis can be obtained while obtaining the first stenosis rate, and the feature of the latter is that the calculation method is simpler and faster because it does not need to output the stenosis rate of each position.
  • the above step 3 is the QCA analysis and processing process completed by using the image processing method, through which the analysis results of the coronary entrance diameter and all stenotic segment diameter sequences and stenosis ratios on the first image can be obtained.
  • the embodiment of the present invention can further measure the FFR value of the measurement point marked on the blood vessel in any stenotic segment on the first image through the subsequent steps 4-6.
  • Step 4 taking the fractional blood flow reserve analysis point marked by the user on the first image as the corresponding target point P i , and taking the user's blood vessel diameter measurement result at the target point P i as the corresponding target point diameter;
  • i is the index of the target point, 1 ⁇ i ⁇ n, and n is the total number of measurement points.
  • the target point P i is the blood flow reserve fraction measurement point of the stenotic segment marked by the user on the first image.
  • the measurement point is a position point on a certain segment of the blood vessel on the first image.
  • the user will mark the target point P i on the blood flow branch of the stenotic segment of the blood vessel that is a certain distance from the last stenotic segment of the branch.
  • the measurement result is also the corresponding target spot diameter.
  • Step 5 Confirm the vascular branch of each target point P i on the first image to generate the corresponding vascular branch C i , and perform vascular branch feature extraction processing according to all first stenotic segment diameter sequences and first stenosis ratios corresponding to each vascular branch C i , as well as the target point diameter of the corresponding target point P i , and the coronary artery entrance diameter to generate a corresponding branch feature data sequence S i , and sort all the obtained branch feature data sequences S i to obtain a branch feature data set D in (S 1 ... S i ... S n );
  • step 51 on the first image, taking the initial position of the blood vessel in the blood vessel mask image of the target detection frame A as the coronary artery inlet position; and according to the blood flow direction, taking the blood flow path from the coronary artery inlet position to each target point P i as the blood vessel branch C i corresponding to each target point P i ;
  • the blood vessel branch C i refers to a single blood flow path from the coronary inlet position to each target point P i position;
  • Step 52 classify the first stenotic segment diameter sequences of all target detection frames B passed by each blood vessel branch Ci into the corresponding first sequence set; and in each first sequence set, sort the first stenotic segment diameters of all the first stenotic segment diameter sequences according to the blood flow direction to obtain the corresponding first branch stenotic segment diameter sequence;
  • the vessel branch C i Only one target detection frame B is passed, and the corresponding first sequence set only includes the first stenosis diameter sequence of the unique target detection frame B, and the first branch stenosis diameter sequence is also the first stenosis diameter sequence of the unique target detection frame B; if from the coronary artery entrance position to the current target point P i A single blood flow path at the position passes through multiple narrow vessel segments, then the vessel branch C i After passing through multiple target detection frames B, the corresponding first sequence set includes the first stenotic segment diameter sequences of multiple target detection frames B.
  • the obtained first branch stenotic segment diameter sequence includes the current vessel branch C i From the position of the coronary artery entrance to the corresponding target point P i Vessel diameter change parameters of all stenotic vessels on the blood flow path at the position;
  • the embodiment of the present invention will also perform data shaping on it to ensure that its data length is consistent with the required length of the model;
  • Step 53 from the first stenosis rates of all target detection frames B passed by each blood vessel branch Ci , select the maximum value as the corresponding maximum stenosis rate of the first branch;
  • the maximum stenosis rate of the first branch is the maximum stenosis rate of the unique target detection frame B, that is, the first stenosis rate; if the number of target detection frames B passed by the blood vessel branch C i is not unique, then the maximum stenosis rate of the first branch should be the maximum value among the first stenosis rates of multiple target detection frames B, that is, the maximum stenosis rate on a single blood flow path corresponding to the blood vessel branch C i ;
  • Step 54 using the target diameter of the target point P i corresponding to each blood vessel branch C i as the corresponding first branch target diameter;
  • the diameter of the first branch target point corresponding to each vascular branch C i is actually the cross-sectional diameter of the blood vessel at the position of the target point P i at the end of the branch;
  • Step 55 for each vascular branch C i , compose the corresponding branch feature data sequence S i with the diameter of the coronary artery inlet, the corresponding first branch stenosis segment diameter sequence, the first branch target point diameter and the first branch maximum stenosis rate;
  • Step 56 sort all the branch feature data sequences S i in ascending order of the target point index i, so as to obtain the branch feature data set D in (S 1 ... S i ... S n ).
  • Step 6 input the branch feature data set D in (S 1 ... S i ... S n ) into the preset artificial neural network ANN model for operation and output the branch operation result set D out (U 1 ... U i ... U n ); and output the branch operation result U i in the set as the blood flow reserve fraction analysis result of the corresponding target point P i ;
  • step 61 inputting the branch feature data set D in (S 1 ... S i ... S n ) into the preset artificial neural network ANN model for operation and outputting the branch operation result set D out (U 1 ... U i ... U n );
  • step 611 dividing the branch feature data set D in (S 1 ... S i ... S n ) into n one-dimensional first data segments; each first data segment corresponds to a branch feature data sequence S i ;
  • Step 612 input each first data segment into the artificial neural network ANN model for calculation to obtain the corresponding branch calculation result U i ;
  • the artificial neural network ANN model includes an input layer, one or more hidden layers and an output layer; the input layer includes a plurality of input layer nodes; each hidden layer includes a plurality of hidden layer nodes; the output layer includes an output layer node;
  • the input layer is used for inputting each segment data of the first data segment into a corresponding input layer node as a corresponding node output value;
  • Each hidden layer node of the first hidden layer is fully connected with all input layer nodes to form a corresponding first fully connected network; the first hidden layer is used to input the node output values of all input layer nodes in the corresponding first fully connected network into a preset fully connected linear operation function to generate a corresponding first result, and input the first result to a preset activation function to generate a corresponding second result, and use the second result as the node output value of the current hidden layer node;
  • Each hidden layer node of the next hidden layer is fully connected with all hidden layer nodes of the previous hidden layer to form a corresponding second fully connected network; the hidden layer of the next layer is used to input the node output values of all hidden layer nodes of the previous hidden layer in the corresponding second fully connected network into a preset fully connected linear operation function to generate a corresponding third result, and input the third result into a preset activation function to perform operation to generate a corresponding fourth result, and use the fourth result as the node output value of the current hidden layer node;
  • the output layer nodes of the output layer are fully connected with all hidden layer nodes of the last hidden layer to form a corresponding third fully connected network; the output layer is used to input the node output values of all hidden layer nodes of the last hidden layer in the corresponding third fully connected network on the output layer nodes into a preset fully connected linear operation function for operation to generate a corresponding fifth result, and input the fifth result into a preset activation function for operation to generate a corresponding sixth result, and use the sixth result as the branch operation result U i ;
  • the activation function used by the hidden layer and the output layer defaults to the Rectified Linear Units (ReLU) function
  • Step 613 sort all the branch operation results U i according to the order of the target point index i from small to large, so as to obtain the branch operation result set D out (U 1 ... U i ... U n );
  • Step 62 output the operation result U i of each branch in the set as the fractional blood flow reserve analysis result of the corresponding target point P i .
  • the device may be a terminal device or a server implementing the method of the embodiment of the present invention, or a device connected to the above-mentioned terminal device or server to realize the method of the embodiment of the present invention.
  • the device may be a device or a chip system of the above-mentioned terminal device or server. As shown in FIG.
  • the device includes: an acquisition module 201 , an image target detection and semantic segmentation module 202 , a quantitative coronary angiography analysis and processing module 203 , a target point processing module 204 , a vessel branch processing module 205 and a blood flow reserve processing module 206 .
  • the obtaining module 201 is used to obtain an angiographic image as a first image.
  • the image target detection and semantic segmentation module 202 is used to perform target detection and semantic segmentation on the first image based on the preset image target detection and semantic segmentation model, so as to obtain a target detection frame A and one or more target detection frames B on the first image; both target detection frames A and B include a section of blood vessel mask image, and the detection target type corresponding to the target detection frame A is the coronary entrance blood vessel type, and the detection target type corresponding to the target detection frame B is the stenotic segment blood vessel type.
  • the quantitative coronary angiography analysis and processing module 203 is used to analyze the diameter of the coronary artery entrance on the blood vessel mask image of the target detection frame A to generate the corresponding coronary artery entrance diameter; and analyze the vessel diameter and stenosis rate of each target detection frame B to generate a corresponding first stenosis segment diameter sequence and first stenosis rate.
  • the target point processing module 204 is used to use the blood flow reserve fraction analysis point marked by the user on the first image as the corresponding target point P i , and use the user's blood vessel diameter measurement result at the target point P i as the corresponding target point diameter; where i is the target point index, 1 ⁇ i ⁇ n, and n is the total number of measurement points.
  • the blood vessel branch processing module 205 is used to confirm the blood vessel branch of each target point P i on the first image to generate the corresponding blood vessel branch C i , and perform blood vessel branch feature extraction processing according to all first stenosis segment diameter sequences and first stenosis rates corresponding to each blood vessel branch C i , the target point diameter of the corresponding target point P i , and the diameter of the coronary artery entrance to generate a corresponding branch feature data sequence S i , and sort all the obtained branch feature data sequences S i to obtain a branch feature data set D in (S 1 ... S i ... S n ).
  • the fractional blood flow reserve processing module 206 is used to input the branch feature data set D in (S 1 ... S i ... S n ) into the preset artificial neural network ANN model for calculation and output the branch operation result set D out (U 1 ... U i ... U n ); and output the operation result U i of each branch in the set as the analysis result of the blood flow reserve fraction of the corresponding target point P i .
  • the embodiment of the present invention provides a processing device for analyzing blood flow reserve fraction based on angiography images, which can execute the method steps in the above method embodiments, and its implementation principle and technical effect are similar, and will not be repeated here.
  • each module of the above device is only a division of logical functions, and may be fully or partially integrated into one physical entity or physically separated during actual implementation.
  • these modules can all be implemented in the form of calling software through processing elements; they can also be implemented in the form of hardware; some modules can also be implemented in the form of calling software through processing elements, and some modules can be implemented in the form of hardware.
  • the acquisition module may be a separate processing element, or may be integrated into a certain chip of the above-mentioned device.
  • it may also be stored in the memory of the above-mentioned device in the form of program code, and a certain processing element of the above-mentioned device calls and executes the function of the above determination module.
  • each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or an instruction in the form of software.
  • the above modules may be one or more integrated circuits configured to implement the above method, for example: one or more specific integrated circuits (Application Specific Integrated Circuit, ASIC), or, one or more digital signal processors (Digital Signal Processor, DSP), or, one or more field programmable gate arrays (Field Programmable Gate Array, FPGA) and the like.
  • ASIC Application Specific Integrated Circuit
  • DSP Digital Signal Processor
  • FPGA Field Programmable Gate Array
  • the processing element may be a general-purpose processor, such as a central processing unit (Central Processing Unit, CPU) or other processors that can call program codes.
  • CPU Central Processing Unit
  • these modules can be integrated together and implemented in the form of a System-on-a-chip (SOC).
  • SOC System-on-a-chip
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, all or part of the processes or functions described in accordance with the embodiments of the present invention will be generated.
  • the above-mentioned computers may be general-purpose computers, special-purpose computers, computer networks, or other programmable devices.
  • the above-mentioned computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the above-mentioned computer instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (such as infrared, wireless, bluetooth, microwave, etc.).
  • the above-mentioned computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media.
  • the above-mentioned usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, DVD), or a semiconductor medium (for example, a solid state disk (solid state disk, SSD)) and the like.
  • a magnetic medium for example, a floppy disk, a hard disk, or a magnetic tape
  • an optical medium for example, DVD
  • a semiconductor medium for example, a solid state disk (solid state disk, SSD)
  • FIG. 3 is a schematic structural diagram of an electronic device provided by Embodiment 3 of the present invention.
  • the electronic device may be the aforementioned terminal device or server, or may be a terminal device or server connected to the aforementioned terminal device or server to implement the method of the embodiment of the present invention.
  • the electronic device may include: a processor 301 (such as a CPU), a memory 302 , and a transceiver 303 ;
  • Various instructions may be stored in the memory 302 for completing various processing functions and realizing the methods and processing procedures provided in the above-mentioned embodiments of the present invention.
  • the electronic device involved in this embodiment of the present invention further includes: a power supply 304 , a system bus 305 and a communication port 306 .
  • the system bus 305 is used to realize the communication connection among the components.
  • the above-mentioned communication port 306 is used for connection and communication between the electronic device and other peripheral devices.
  • the system bus mentioned in FIG. 3 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus or the like.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the system bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
  • the communication interface is used to realize the communication between the database access device and other devices (such as client, read-write library and read-only library).
  • the memory may include random access memory (Random Access Memory, RAM), and may also include non-volatile memory (Non-Volatile Memory), such as at least one disk memory.
  • the above-mentioned processor can be a general-purpose processor, including a central processing unit CPU, a network processor (Network Processor, NP), etc.; it can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components.
  • a central processing unit CPU central processing unit
  • NP Network Processor
  • DSP digital signal processor
  • ASIC application-specific integrated circuit
  • FPGA field programmable gate array
  • embodiments of the present invention also provide a computer-readable storage medium, and instructions are stored in the storage medium, and when the storage medium is run on a computer, the computer executes the methods and processing procedures provided in the above-mentioned embodiments.
  • the embodiment of the present invention also provides a chip for running instructions, and the chip is used for executing the method and the processing procedure provided in the foregoing embodiments.
  • An embodiment of the present invention provides a processing method, device, electronic device, and computer-readable storage medium for analyzing blood flow reserve fraction based on angiographic images.
  • the angiographic images of coronary vessels are used to identify the coronary ostium vessel segment and the stenotic vessel segment, and perform QCA analysis on the diameter of the identified coronary ostium vessel segment, the diameter change sequence of the stenotic vessel segment, and the stenosis rate; when the user marks the FFR measurement point on the image, use the ANN model to analyze the FFR based on the aforementioned QCA analysis results to obtain the corresponding FFR value .
  • the invention not only avoids personal injury caused by intrusive measurement, but also greatly reduces measurement difficulty, and improves measurement safety and measurement efficiency.
  • the steps of the methods or algorithms described in connection with the embodiments disclosed herein may be implemented by hardware, software modules executed by a processor, or a combination of both.
  • the software module can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the technical field.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Computational Linguistics (AREA)
  • Radiology & Medical Imaging (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • Multimedia (AREA)
  • Medical Informatics (AREA)
  • Artificial Intelligence (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Apparatus For Radiation Diagnosis (AREA)

Abstract

Embodiments of the present invention relates to a processing method and apparatus for analyzing a fractional flow reserve on the basis of an angiographic image. The method comprises: acquiring an angiographic image as a first image; performing object detection and semantic segmentation processing of coronary entry blood vessels and stenotic segment blood vessels on the first image; performing coronary entry diameter analysis to generate a coronary entry diameter; performing stenotic segment blood vessel diameter and stenosis rate analysis to generate a first stenotic segment diameter sequence and a first stenosis rate; taking fractional flow reserve analysis points marked by a user as a targets Pi; confirming to generate corresponding blood vessel branches Ci, and performing blood vessel branch feature extraction to generate a branch feature data sequence and a branch feature data set; inputting the branch feature data set into an artificial neural network model for operation to output a branch operation result set; and outputting branch operation results in the set as fractional flow reserve analysis results of the targets. The present invention can reduce measurement difficulty and improve measurement safety and measurement efficiency.

Description

基于血管造影图像分析血流储备分数的处理方法和装置Processing method and device for analyzing blood flow reserve fraction based on angiography image
本申请要求于2022年1月20日提交中国专利局、申请号为202210067548.2、发明名称为“基于血管造影图像分析血流储备分数的处理方法和装置”的中国专利申请的优先权。This application claims the priority of the Chinese patent application with the application number 202210067548.2 and the title of the invention “Processing Method and Device for Analyzing Blood Flow Reserve Fraction Based on Angiographic Image” submitted to the China Patent Office on January 20, 2022.
技术领域technical field
本发明涉及数据处理技术领域,特别涉及一种基于血管造影图像分析血流储备分数的处理方法和装置。The invention relates to the technical field of data processing, in particular to a processing method and device for analyzing blood flow reserve fraction based on angiography images.
背景技术Background technique
血流储备分数(Fractional Flow Reserve,FFR)指在冠状动脉血管最大充血状态下的狭窄远端冠状动脉内平均压与冠状动脉口部主动脉平均压的比值。常规情况下,都是采用经皮冠状动脉介入治疗(Percutaneous Coronary Intervention,PCI)的测量方式获得FFR数值。但是这种测量方式不但操作复杂且还是一种侵入性测量手段,会对测量对象造成一定的身体损伤,具有一定的危险性。Fractional Flow Reserve (FFR) refers to the ratio of the average intracoronary pressure at the distal end of the stenosis to the average aortic pressure at the coronary ostium in the state of maximum coronary artery congestion. Under normal circumstances, the FFR value is obtained by the measurement method of percutaneous coronary intervention (PCI). However, this measurement method is not only complicated to operate, but also an invasive measurement method, which will cause certain physical damage to the measurement object and has certain risks.
发明内容Contents of the invention
本发明的目的,就是针对现有技术的缺陷,提供一种基于血管造影图像分析血流储备分数的处理方法、装置、电子设备及计算机可读存储介质,基于图像目标检测与语义分割模型对冠状动脉血管的血管造影图像进行冠脉口血管段与狭窄血管段识别,并对识别出的冠脉口血管段直径、狭窄血管段的直径变化序列和狭窄率进行定量冠状动脉造影(quantitative coronary  arteriography,QCA)分析;当用户在图像上标记出FFR测量点时,使用人工神经网络(Artificial Neural Network,ANN)模型基于前述QCA分析结果对FFR进行分析得到对应的FFR数值。通过本发明,不但可以避免侵入式测量带来的个人损伤,还可以大大降低测量难度,提高测量安全性和测量效率。The purpose of the present invention is to address the defects of the prior art, to provide a processing method, device, electronic equipment and computer-readable storage medium for analyzing blood flow reserve fraction based on angiographic images, to perform quantitative coronary angiography (QCA) analysis on the diameter of the coronary ostium, the diameter change sequence of the stenotic vessel segment, and the stenosis rate of the angiographic image of the coronary artery based on the image target detection and semantic segmentation model; When the FFR measurement point is marked on the above, the artificial neural network (Artificial Neural Network, ANN) model is used to analyze the FFR based on the aforementioned QCA analysis results to obtain the corresponding FFR value. Through the present invention, not only personal injury caused by intrusive measurement can be avoided, but also measurement difficulty can be greatly reduced, and measurement safety and measurement efficiency can be improved.
为实现上述目的,本发明实施例第一方面提供了一种基于血管造影图像分析血流储备分数的处理方法,所述方法包括:In order to achieve the above purpose, the first aspect of the embodiment of the present invention provides a processing method for analyzing blood flow reserve fraction based on angiography images, the method comprising:
获取血管造影图像作为第一图像;acquiring an angiographic image as a first image;
基于预设的图像目标检测与语义分割模型,对所述第一图像进行冠脉入口血管与狭窄段血管的目标检测和语义分割处理,从而在所述第一图像上得到一个目标检测框A以及一个或多个目标检测框B;所述目标检测框A、B内均包括一段血管掩膜图像,所述目标检测框A对应的检测目标类型为冠脉入口血管类型,所述目标检测框B对应的检测目标类型为狭窄段血管类型;Based on the preset image target detection and semantic segmentation model, the first image is subjected to target detection and semantic segmentation processing of coronary inlet vessels and stenotic vessels, so as to obtain a target detection frame A and one or more target detection frames B on the first image; each of the target detection frames A and B includes a section of blood vessel mask image, the detection target type corresponding to the target detection frame A is a coronary artery portal blood vessel type, and the detection target type corresponding to the target detection frame B is a stenotic segment blood vessel type;
对所述目标检测框A的所述血管掩膜图像进行冠脉入口直径分析生成对应的冠脉入口直径;并对各个所述目标检测框B的所述血管掩膜图像进行狭窄段血管直径与狭窄率分析生成对应的第一狭窄段直径序列和第一狭窄率;Analyzing the coronary artery inlet diameter on the blood vessel mask image of the target detection frame A to generate a corresponding coronary artery inlet diameter; and analyzing the stenotic segment blood vessel diameter and stenosis rate analysis on the blood vessel mask image of each target detection frame B to generate a corresponding first stenosis segment diameter sequence and first stenosis rate;
将用户在所述第一图像上标记的血流储备分数分析点作为对应的靶点P i,并将用户对所述靶点P i处的血管直径测量结果作为对应的靶点直径;其中,1≤i≤n,n为测量点总数; Taking the blood flow reserve analysis point marked by the user on the first image as the corresponding target point P i , and taking the user's measurement result of the blood vessel diameter at the target point P i as the corresponding target point diameter; where 1≤i≤n, n is the total number of measurement points;
对各个所述靶点P i在所述第一图像上所处的血管分支进行确认生成对应的血管分支C i,并根据各个所述血管分支C i对应的所有所述第一狭窄段直径序列和所述第一狭窄率、以及对应的所述靶点P i的所述靶点直径、以及所述冠脉入口直径进行血管分支特征提取处理生成对应的分支特征数据序列S i,并对得到的所有所述分支特征数据序列S i进行排序得到分支特征数据集合D in(S 1…S i…S n); Confirm the vascular branch of each target point P i on the first image to generate a corresponding vascular branch C i , and perform a vascular branch feature extraction process according to all the first stenotic segment diameter sequences and the first stenosis rate corresponding to each of the vascular branch C i , the target point diameter of the corresponding target point P i , and the coronary artery entrance diameter to generate a corresponding branch feature data sequence S i , and sort all the obtained branch feature data sequences S i to obtain a branch feature data set D in (S 1 ... S i ... S n );
将所述分支特征数据集合D in(S 1…S i…S n)输入预设的人工神经网络ANN模型进行运算输出分支运算结果集合D out(U 1…U i…U n);并将集合中各个分支运算 结果U i作为对应的所述靶点P i的血流储备分数分析结果进行输出。 Input the branch feature data set D in (S 1 ... S i ... S n ) into the preset artificial neural network ANN model for operation and output the branch operation result set D out (U 1 ... U i ... U n ); and output the operation result U i of each branch in the set as the analysis result of the blood flow reserve fraction of the corresponding target point P i .
优选的,所述图像目标检测与语义分割模型包括Mask R-CNN模型;Preferably, the image target detection and semantic segmentation model includes a Mask R-CNN model;
所述图像目标检测与语义分割模型具体为Mask R-CNN模型时,包括特征提取网络层、区域候选网络层、区域对齐网络层和区域头部网络层;When the image target detection and semantic segmentation model is specifically the Mask R-CNN model, it includes a feature extraction network layer, a region candidate network layer, a region alignment network layer and a region head network layer;
所述特征提取网络层与所述区域候选网络层连接,所述区域候选网络层与所述区域对齐网络层连接,所述区域对齐网络层与所述区域头部网络层连接;The feature extraction network layer is connected to the region candidate network layer, the region candidate network layer is connected to the region alignment network layer, and the region alignment network layer is connected to the region head network layer;
所述特征提取网络层具体由五级残差网络和对应的五级特征金字塔网络构成;所述区域候选网络层包括五级区域候选网络,与所述五级特征金字塔网络对应;在实现所述五级残差网络时,使用残差网络ResNet-50网络结构进行实现并以此作为所述特征提取网络层的骨干网络;The feature extraction network layer is specifically composed of a five-level residual network and a corresponding five-level feature pyramid network; the region candidate network layer includes a five-level region candidate network, corresponding to the five-level feature pyramid network; when implementing the five-level residual network, use the residual network ResNet-50 network structure to implement and use this as the backbone network of the feature extraction network layer;
所述区域头部网络层包括两个子网络分别为:目标检测分支网络和目标分割分支网络;所述目标检测分支网络用于输出检测目标类型为冠脉入口血管类型的所述目标检测框A,以及检测目标类型为狭窄段血管类型的所述目标检测框B;所述目标分割分支网络用于在所述目标检测框A中输出对应的冠脉入口血管的血管掩膜图像,以及在所述目标检测框B中输出对应的狭窄段血管的血管掩膜图像。The regional head network layer includes two sub-networks respectively: a target detection branch network and a target segmentation branch network; the target detection branch network is used to output the target detection frame A whose detection target type is a coronary inlet vessel type, and the target detection frame B whose detection target type is a stenotic segment blood vessel type; the target segmentation branch network is used to output the blood vessel mask image of the corresponding coronary inlet vessel in the target detection frame A, and output the corresponding blood vessel mask image of the narrow segment blood vessel in the target detection frame B.
优选的,所述对所述目标检测框A的所述血管掩膜图像进行冠脉入口直径分析生成对应的冠脉入口直径,具体包括:Preferably, the coronary artery entrance diameter analysis is performed on the blood vessel mask image of the target detection frame A to generate a corresponding coronary artery entrance diameter, which specifically includes:
将所述目标检测框A的所述血管掩膜图像作为当前血管掩膜图像;Using the blood vessel mask image of the target detection frame A as the current blood vessel mask image;
对所述当前血管掩膜图像进行血管边缘和血管中心线识别生成对应的当前血管边缘和当前中心线;Performing blood vessel edge and blood vessel centerline identification on the current blood vessel mask image to generate corresponding current blood vessel edges and current centerline;
将所述当前中心线包括的多个像素点,按序标记为对应的第一像素点X 1,j;其中,1≤j≤m 1,m 1为所述当前中心线的像素点总数;第一个第一像素点X 1,j=1为所述当前血管掩膜图像对应血管的血流流入点,最后一个第一像素点
Figure PCTCN2022097247-appb-000001
为所述当前血管掩膜图像对应血管的血流流出点;
The plurality of pixels included in the current centerline are sequentially marked as corresponding first pixel points X 1,j ; wherein, 1≤j≤m 1 , m 1 is the total number of pixels in the current centerline; the first first pixel point X 1,j=1 is the blood flow inflow point of the blood vessel corresponding to the current blood vessel mask image, and the last first pixel point
Figure PCTCN2022097247-appb-000001
The blood outflow point of the blood vessel corresponding to the current blood vessel mask image;
经过各个所述第一像素点X 1,j做与所述当前血管边缘的相交线段得到多个第一相交线段;并从中选择最短的所述第一相交线段的长度作为与当前第一像素点X 1,j对应的第一像素点血管直径L 1,jThrough each of the first pixel points X 1,j, do intersection line segments with the current blood vessel edge to obtain a plurality of first intersection line segments; and select the shortest length of the first intersection line segment as the first pixel point blood vessel diameter L 1,j corresponding to the current first pixel point X 1,j ;
对得到的所有所述第一像素点血管直径L 1,j进行均值计算生成所述冠脉入口直径。 Perform mean calculation on all obtained first pixel vessel diameters L 1,j to generate the coronary artery entrance diameter.
优选的,所述对各个所述目标检测框B的所述血管掩膜图像进行狭窄段血管直径与狭窄率分析生成对应的第一狭窄段直径序列和第一狭窄率,具体包括:Preferably, the analysis of the stenotic vessel diameter and stenosis rate on the blood vessel mask image of each target detection frame B generates a corresponding first stenotic segment diameter sequence and first stenosis rate, specifically including:
将当前目标检测框B的所述血管掩膜图像作为当前血管掩膜图像;Using the blood vessel mask image of the current target detection frame B as the current blood vessel mask image;
对所述当前血管掩膜图像进行血管边缘和血管中心线识别生成对应的当前血管边缘和当前中心线;Performing blood vessel edge and blood vessel centerline identification on the current blood vessel mask image to generate corresponding current blood vessel edges and current centerline;
将所述当前中心线包括的多个像素点,按序标记为对应的第二像素点X 2,h;其中,1≤h≤m 2,m 2为所述当前中心线的像素点总数;第一个第二像素点X 2,h=1为所述当前血管掩膜图像对应血管的血流流入点,最后一个第二像素点
Figure PCTCN2022097247-appb-000002
为所述当前血管掩膜图像对应血管的血流流出点;
The plurality of pixels included in the current centerline are sequentially marked as corresponding second pixel points X 2,h ; wherein, 1≤h≤m 2 , m 2 is the total number of pixels in the current centerline; the first second pixel point X 2,h=1 is the blood flow inflow point of the blood vessel corresponding to the current blood vessel mask image, and the last second pixel point
Figure PCTCN2022097247-appb-000002
The blood outflow point of the blood vessel corresponding to the current blood vessel mask image;
经过各个所述第二像素点X 2,h做与所述当前血管边缘的相交线段得到多个第二相交线段;并从中选择最短的所述第二相交线段的长度作为与当前第二像素点X 2,h对应的第二像素点血管直径L 2,hThrough each of the second pixel points X 2, h do intersection line segments with the current blood vessel edge to obtain a plurality of second intersection line segments; and select the length of the shortest second intersection line segment therefrom as the second pixel point blood vessel diameter L 2,h corresponding to the current second pixel point X 2,h ;
另,根据第二像素点血管直径L 2,h=1和第二像素点血管直径
Figure PCTCN2022097247-appb-000003
构建可以反映第一个第二像素点X 2,h=1到最后一个第二像素点
Figure PCTCN2022097247-appb-000004
的血管线性变化关系的线性变化函数f(h),
In addition, according to the second pixel blood vessel diameter L 2, h=1 and the second pixel blood vessel diameter
Figure PCTCN2022097247-appb-000003
The construction can reflect the first second pixel point X 2, h=1 to the last second pixel point
Figure PCTCN2022097247-appb-000004
The linear change function f(h) of the blood vessel linear change relationship,
f(h)=L 2,h=1+k*(h-1), f(h)=L 2,h=1 +k*(h-1),
Figure PCTCN2022097247-appb-000005
Figure PCTCN2022097247-appb-000005
并根据所述线性变化函数f(h),对各个所述第二像素点X 2,h对应的线性变化直径长度进行计算生成对应的第二像素点线性直径L′ 2,hAnd according to the linear change function f(h), calculate the linear change diameter length corresponding to each second pixel point X 2,h to generate the corresponding second pixel point linear diameter L′ 2,h ,
Figure PCTCN2022097247-appb-000006
Figure PCTCN2022097247-appb-000006
再根据所述第二像素点血管直径L 2,h和所述第二像素点线性直径L 2,h,计算各个所述第二像素点X 2,h对应的第二像素点狭窄率R 2,hThen according to the second pixel blood vessel diameter L 2,h and the second pixel linear diameter L 2,h , calculate the second pixel stenosis rate R 2 ,h corresponding to each second pixel X 2,h ,
Figure PCTCN2022097247-appb-000007
Figure PCTCN2022097247-appb-000007
将所述第二像素点血管直径L 2,h作为对应的第一狭窄段直径,并按第二像素点索引h从小到大的顺序对所有所述第一狭窄段直径进行排序,生成与所述当前血管掩膜图像对应的所述第一狭窄段直径序列;并从得到的所有所述第二像素点狭窄率R 2,h中选择最大值,作为与所述当前血管掩膜图像对应的所述第一狭窄率。 Using the second pixel point blood vessel diameter L 2,h as the corresponding first stenosis segment diameter, sorting all the first stenosis segment diameters in ascending order according to the second pixel point index h, generating the first stenosis segment diameter sequence corresponding to the current blood vessel mask image; and selecting the maximum value from all the obtained second pixel point stenosis rates R 2,h as the first stenosis rate corresponding to the current blood vessel mask image.
优选的,所述对各个所述靶点P i在所述第一图像上所处的血管分支进行确认生成对应的血管分支C i,并根据各个所述血管分支C i对应的所有所述第一狭窄段直径序列和所述第一狭窄率、以及对应的所述靶点P i的所述靶点直径、以及所述冠脉入口直径进行血管分支特征提取处理生成对应的分支特征数据序列S i,并对得到的所有所述分支特征数据序列S i进行排序得到分支特征数据集合D in(S 1…S i…S n),具体包括: Preferably, the blood vessel branch where each target point P i is located on the first image is confirmed to generate a corresponding blood vessel branch C i , and according to all the first stenosis segment diameter sequences and the first stenosis rate corresponding to each of the blood vessel branches C i , as well as the target point diameter of the corresponding target point P i , and the coronary artery entrance diameter, a blood vessel branch feature extraction process is performed to generate a corresponding branch feature data sequence S i , and all obtained branch feature data sequences S i are sorted to obtain a branch feature data set D in (S 1 ... S i …S n ), including:
在所述第一图像上,将所述目标检测框A的所述血管掩膜图像的血管起始位置作为冠脉入口位置;并按血流方向,将从所述冠脉入口位置到各个所述靶点P i的血流路径作为与各个所述靶点P i对应的所述血管分支C iOn the first image, the starting position of the blood vessel in the blood vessel mask image of the target detection frame A is used as the coronary artery inlet position; and according to the blood flow direction, the blood flow path from the coronary artery inlet position to each of the target points P i is used as the blood vessel branch C i corresponding to each of the target points P i ;
将各个所述血管分支C i途经的所有所述目标检测框B的所述第一狭窄段直径序列归入对应的第一序列集合;并在各个所述第一序列集合中,按血流方向对所有所述第一狭窄段直径序列的第一狭窄段直径进行全排序,得到对应的第一分支狭窄段直径序列; Classifying the first stenotic segment diameter sequences of all the target detection frames B passed by each of the blood vessel branches Ci into corresponding first sequence sets; and in each of the first sequence sets, sorting the first stenotic segment diameters of all the first stenotic segment diameter sequences according to the blood flow direction to obtain the corresponding first branch stenotic segment diameter sequences;
从各个所述血管分支C i途经的所有所述目标检测框B的所述第一狭窄率中,选择最大值作为对应的第一分支最大狭窄率; From the first stenosis rates of all the target detection frames B passed by each of the blood vessel branches Ci , select a maximum value as the corresponding maximum stenosis rate of the first branch;
将与各个所述血管分支C i对应的所述靶点P i的所述靶点直径作为对应的第一分支靶点直径; Taking the target diameter of the target point P i corresponding to each of the blood vessel branches C i as the corresponding first branch target diameter;
对各个所述血管分支C i,将所述冠脉入口直径以及对应的所述第一分支 狭窄段直径序列、所述第一分支靶点直径和所述第一分支最大狭窄率,组成对应的所述分支特征数据序列S iFor each of the blood vessel branches C i , compose the corresponding branch feature data sequence S i with the coronary inlet diameter and the corresponding first branch stenosis segment diameter sequence, the first branch target diameter and the first branch maximum stenosis rate;
按靶点索引i从小到大的顺序对所有所述分支特征数据序列S i进行排序,从而得到所述分支特征数据集合D in(S 1…S i…S n)。 All the branch feature data sequences S i are sorted in ascending order of the target point index i, so as to obtain the branch feature data set D in (S 1 ... S i ... S n ).
优选的,所述将所述分支特征数据集合D in(S 1…S i…S n)输入预设的人工神经网络ANN模型进行运算输出分支运算结果集合D out(U 1…U i…U n),具体包括: Preferably, the branch feature data set D in (S 1 ... S i ... S n ) is input into the preset artificial neural network ANN model for operation, and the branch operation result set D out (U 1 ... U i ... U n ) is output, specifically including:
将所述分支特征数据集合D in(S 1…S i…S n)划分为n个一维的第一数据片段;每个第一数据片段对应一个分支特征数据序列S iDividing the branch feature data set D in (S 1 ... S i ... S n ) into n one-dimensional first data segments; each first data segment corresponds to a branch feature data sequence S i ;
将各个所述第一数据片段,输入所述人工神经网络ANN模型进行运算得到对应的所述分支运算结果U iInput each of the first data fragments into the artificial neural network (ANN) model for calculation to obtain the corresponding branch calculation result U i ;
按靶点索引i从小到大的顺序对所有所述分支运算结果U i进行排序,从而得到所述分支运算结果集合D out(U 1…U i…U n)。 All the branch operation results U i are sorted in ascending order of the target point index i, so as to obtain the branch operation result set D out (U 1 ... U i ... U n ).
进一步的,所述人工神经网络ANN模型包括输入层、一层或多层隐藏层和输出层;所述输入层包括多个输入层节点;各个所述隐藏层包括多个隐藏层节点;所述输出层包括一个输出层节点;Further, the artificial neural network ANN model includes an input layer, one or more hidden layers and an output layer; the input layer includes a plurality of input layer nodes; each of the hidden layers includes a plurality of hidden layer nodes; the output layer includes an output layer node;
所述输入层用于将所述第一数据片段的各个片段数据输入对应的所述输入层节点作为对应的节点输出值;The input layer is used to input each segment data of the first data segment to the corresponding input layer node as a corresponding node output value;
第一层隐藏层的各个所述隐藏层节点分别与所有所述输入层节点全连接形成对应的第一全连接网络;所述第一层隐藏层用于在本层的各个所述隐藏层节点上,将对应的所述第一全连接网络中所有所述输入层节点的节点输出值输入预设的全连接线性运算函数中进行运算生成对应的第一结果,并将所述第一结果输入预设的激活函数中进行运算生成对应的第二结果,并将所述第二结果作为当前隐藏层节点的节点输出值;Each of the hidden layer nodes of the first hidden layer is fully connected with all the input layer nodes to form a corresponding first fully connected network; the first hidden layer is used to input the node output values of all the input layer nodes in the corresponding first fully connected network into a preset fully connected linear operation function to generate a corresponding first result, and input the first result into a preset activation function to perform operation to generate a corresponding second result, and use the second result as the node output value of the current hidden layer node;
下一层隐藏层的各个所述隐藏层节点分别与上一层隐藏层的所有所述隐藏层节点全连接形成对应的第二全连接网络;所述下一层隐藏层用于在本层的各个所述隐藏层节点上,将对应的所述第二全连接网络中所述上一层隐藏 层的所有所述隐藏层节点的节点输出值输入预设的全连接线性运算函数中进行运算生成对应的第三结果,并将所述第三结果输入预设的激活函数中进行运算生成对应的第四结果,并将所述第四结果作为当前隐藏层节点的节点输出值;Each of the hidden layer nodes of the next hidden layer is fully connected with all the hidden layer nodes of the previous hidden layer to form a corresponding second fully connected network; the next hidden layer is used to input the node output values of all the hidden layer nodes of the upper hidden layer in the corresponding second fully connected network into a preset fully connected linear operation function to generate a corresponding third result, and input the third result into a preset activation function to perform calculation to generate a corresponding fourth result, and use the fourth result as the node output of the current hidden layer node. value;
所述输出层的所述输出层节点与最后一层隐藏层的所有所述隐藏层节点全连接形成对应的第三全连接网络;所述输出层用于在所述输出层节点上,将对应的所述第三全连接网络中所述最后一层隐藏层的所有所述隐藏层节点的节点输出值输入预设的全连接线性运算函数中进行运算生成对应的第五结果,并将所述第五结果输入预设的激活函数中进行运算生成对应的第六结果,并将所述第六结果作为所述分支运算结果U iThe output layer nodes of the output layer are fully connected with all the hidden layer nodes of the last hidden layer to form a corresponding third fully connected network; the output layer is used to input, on the output layer nodes, the node output values of all the hidden layer nodes of the last hidden layer in the corresponding third fully connected network into a preset fully connected linear operation function for operation to generate a corresponding fifth result, and input the fifth result into a preset activation function for operation to generate a corresponding sixth result, and use the sixth result as the branch operation result U i ;
所述隐藏层和所述输出层使用的所述激活函数默认为ReLU函数。The activation function used by the hidden layer and the output layer is a ReLU function by default.
本发明实施例第二方面提供了一种实现上述第一方面所述的方法的装置,包括:获取模块、图像目标检测与语义分割模块、定量冠状动脉造影分析处理模块、靶点处理模块、血管分支处理模块和血流储备分数处理模块;The second aspect of the embodiment of the present invention provides a device for implementing the method described in the first aspect above, including: an acquisition module, an image object detection and semantic segmentation module, a quantitative coronary angiography analysis and processing module, a target point processing module, a blood vessel branch processing module, and a blood flow reserve processing module;
所述获取模块用于获取血管造影图像作为第一图像;The obtaining module is used to obtain an angiographic image as a first image;
所述图像目标检测与语义分割模块用于基于预设的图像目标检测与语义分割模型,对所述第一图像进行冠脉入口血管与狭窄段血管的目标检测和语义分割处理,从而在所述第一图像上得到一个目标检测框A以及一个或多个目标检测框B;所述目标检测框A、B内均包括一段血管掩膜图像,所述目标检测框A对应的检测目标类型为冠脉入口血管类型,所述目标检测框B对应的检测目标类型为狭窄段血管类型;The image target detection and semantic segmentation module is used to perform target detection and semantic segmentation processing of coronary inlet vessels and stenotic vessels on the first image based on a preset image target detection and semantic segmentation model, so as to obtain a target detection frame A and one or more target detection frames B on the first image; each of the target detection frames A and B includes a section of blood vessel mask image, the detection target type corresponding to the target detection frame A is a coronary artery blood vessel type, and the detection target type corresponding to the target detection frame B is a stenotic segment blood vessel type;
所述定量冠状动脉造影分析处理模块用于对所述目标检测框A的所述血管掩膜图像进行冠脉入口直径分析生成对应的冠脉入口直径;并对各个所述目标检测框B的所述血管掩膜图像进行狭窄段血管直径与狭窄率分析生成对应的第一狭窄段直径序列和第一狭窄率;The quantitative coronary angiography analysis and processing module is used to analyze the coronary artery entrance diameter on the blood vessel mask image of the target detection frame A to generate a corresponding coronary artery entrance diameter; and analyze the stenotic segment blood vessel diameter and stenosis rate analysis on the blood vessel mask image of each target detection frame B to generate a corresponding first stenosis segment diameter sequence and first stenosis rate;
所述靶点处理模块用于将用户在所述第一图像上标记的血流储备分数分 析点作为对应的靶点P i,并将用户对所述靶点P i处的血管直径测量结果作为对应的靶点直径;其中,1≤i≤n,n为测量点总数; The target point processing module is used to use the blood flow reserve fraction analysis point marked by the user on the first image as the corresponding target point P i , and use the user's blood vessel diameter measurement result at the target point P i as the corresponding target point diameter; where 1≤i≤n, n is the total number of measurement points;
所述血管分支处理模块用于对各个所述靶点P i在所述第一图像上所处的血管分支进行确认生成对应的血管分支C i,并根据各个所述血管分支C i对应的所有所述第一狭窄段直径序列和所述第一狭窄率、以及对应的所述靶点P i的所述靶点直径、以及所述冠脉入口直径进行血管分支特征提取处理生成对应的分支特征数据序列S i,并对得到的所有所述分支特征数据序列S i进行排序得到分支特征数据集合D in(S 1…S i…S n); The blood vessel branch processing module is used to confirm the blood vessel branch of each target point P i on the first image to generate a corresponding blood vessel branch C i , and perform blood vessel branch feature extraction processing according to all the first stenosis segment diameter sequences and the first stenosis rate corresponding to each of the blood vessel branch C i , the target point diameter of the corresponding target point Pi , and the coronary artery entrance diameter to generate a corresponding branch feature data sequence S i , and sort all the obtained branch feature data sequences S i to obtain a branch feature data set D in (S 1 ... S i ... S n );
所述血流储备分数处理模块用于将所述分支特征数据集合D in(S 1…S i…S n)输入预设的人工神经网络ANN模型进行运算输出分支运算结果集合D out(U 1…U i…U n);并将集合中各个分支运算结果U i作为对应的所述靶点P i的血流储备分数分析结果进行输出。 The blood flow reserve fraction processing module is used to input the branch feature data set D in (S 1 ... S i ... S n ) into the preset artificial neural network ANN model for operation and output a branch operation result set D out (U 1 ... U i ... U n ); and output the operation result U i of each branch in the set as the analysis result of the corresponding target point P i .
本发明实施例第三方面提供了一种电子设备,包括:存储器、处理器和收发器;The third aspect of the embodiment of the present invention provides an electronic device, including: a memory, a processor, and a transceiver;
所述处理器用于与所述存储器耦合,读取并执行所述存储器中的指令,以实现上述第一方面所述的方法步骤;The processor is configured to be coupled with the memory, read and execute instructions in the memory, so as to implement the method steps described in the first aspect above;
所述收发器与所述处理器耦合,由所述处理器控制所述收发器进行消息收发。The transceiver is coupled to the processor, and the processor controls the transceiver to send and receive messages.
本发明实施例第四方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机指令,当所述计算机指令被计算机执行时,使得所述计算机执行上述第一方面所述的方法的指令。The fourth aspect of the embodiments of the present invention provides a computer-readable storage medium, the computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a computer, the computer executes the instructions of the method described in the first aspect above.
本发明实施例提供了一种基于血管造影图像分析血流储备分数的处理方法、装置、电子设备及计算机可读存储介质,基于图像目标检测与语义分割模型对冠状动脉血管的血管造影图像进行冠脉口血管段与狭窄血管段识别,并对识别出的冠脉口血管段直径、狭窄血管段的直径变化序列和狭窄率进行QCA分析;当用户在图像上标记出FFR测量点时,使用ANN模型基于前述QCA分 析结果对FFR进行分析得到对应的FFR数值。通过本发明,不但避免了侵入式测量带来的个人损伤,还大大降低了测量难度,提高了测量安全性和测量效率。An embodiment of the present invention provides a processing method, device, electronic device, and computer-readable storage medium for analyzing blood flow reserve fraction based on angiographic images. Based on the image target detection and semantic segmentation model, the angiographic image of the coronary artery is used to identify the coronary ostium vessel segment and the stenotic vessel segment, and perform QCA analysis on the diameter of the coronary ostium vessel segment, the diameter change sequence of the stenotic vessel segment, and the stenosis rate; FR value. The invention not only avoids personal injury caused by intrusive measurement, but also greatly reduces measurement difficulty, and improves measurement safety and measurement efficiency.
附图说明Description of drawings
图1为本发明实施例一提供的一种基于血管造影图像分析血流储备分数的处理方法示意图;FIG. 1 is a schematic diagram of a processing method for analyzing blood flow reserve fraction based on angiographic images provided by Embodiment 1 of the present invention;
图2为本发明实施例二提供的一种基于血管造影图像分析血流储备分数的处理装置的模块结构图;FIG. 2 is a block diagram of a processing device for analyzing blood flow reserve fraction based on angiographic images provided by Embodiment 2 of the present invention;
图3为本发明实施例三提供的一种电子设备的结构示意图。FIG. 3 is a schematic structural diagram of an electronic device provided by Embodiment 3 of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部份实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Apparently, the described embodiments are only some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
本发明实施例一提供的一种基于血管造影图像分析血流储备分数的处理方法,如图1为本发明实施例一提供的一种基于血管造影图像分析血流储备分数的处理方法示意图所示,本方法主要包括如下步骤: Embodiment 1 of the present invention provides a processing method for analyzing blood flow reserve based on angiographic images, as shown in FIG. 1 , a schematic diagram of a processing method for analyzing blood flow reserve based on angiographic images provided in Embodiment 1 of the present invention. This method mainly includes the following steps:
步骤1,获取血管造影图像作为第一图像。 Step 1, acquiring an angiographic image as a first image.
这里,冠状动脉造影技术是将显影剂注入测量对象血管中并对X光下显影剂通过冠状动脉血管的过程进行影像拍摄;由冠状动脉造影技术获得的图像数据即为冠状动脉造影图像;当前步骤的血管造影图像默认为单次冠状动脉造影过程中显影剂充盈效果较为明显的冠状动脉造影图像。Here, the coronary angiography technique is to inject a contrast agent into the blood vessel of the measurement object and take an image of the process of the contrast agent passing through the coronary artery under X-ray; the image data obtained by the coronary angiography technique is a coronary angiography image; the angiography image in the current step defaults to a coronary angiography image in which the contrast agent filling effect is more obvious in a single coronary angiography process.
步骤2,基于预设的图像目标检测与语义分割模型,对第一图像进行冠脉入口血管与狭窄段血管的目标检测和语义分割处理,从而在第一图像上得到 一个目标检测框A以及一个或多个目标检测框B; Step 2. Based on the preset image target detection and semantic segmentation model, the first image is subjected to target detection and semantic segmentation processing of coronary inlet vessels and stenotic vessels, so as to obtain a target detection frame A and one or more target detection frames B on the first image;
其中,目标检测框A、B内均包括一段血管掩膜图像,目标检测框A对应的检测目标类型为冠脉入口血管类型,目标检测框B对应的检测目标类型为狭窄段血管类型;Wherein, the target detection frame A and B both include a section of blood vessel mask image, the detection target type corresponding to the target detection frame A is the coronary inlet blood vessel type, and the detection target type corresponding to the target detection frame B is the stenotic segment blood vessel type;
图像目标检测与语义分割模型的实现方式有多种,其中一种实现方式就是基于Mask R-CNN模型的神经网络架构进行实现;当图像目标检测与语义分割模型具体为Mask R-CNN模型时,其神经网络结构可参考由作者Kaiming He、Georgia Gkioxari、Piotr Doll′ar和Ross Girshick发表的文章《Mask R-CNN》,包括:特征提取网络层、区域候选网络(Region Proposal Network,RPN)层、区域对齐(Region Of Interest Align,ROI Align)网络层和区域头部(ROI HEAD)网络层;特征提取网络层与区域候选网络层连接,区域候选网络层与区域对齐网络层连接,区域对齐网络层与区域头部网络层连接;There are many ways to implement the image target detection and semantic segmentation model, one of which is based on the neural network architecture of the Mask R-CNN model; when the image target detection and semantic segmentation model is specifically the Mask R-CNN model, its neural network structure can refer to the article "Mask R-CNN" published by the authors Kaiming He, Georgia Gkioxari, Piotr Doll'ar and Ross Girshick, including: feature extraction network layer, region candidate network (Region Propos al Network, RPN) layer, region alignment (Region Of Interest Align, ROI Align) network layer and region head (ROI HEAD) network layer; the feature extraction network layer is connected to the region candidate network layer, the region candidate network layer is connected to the region alignment network layer, and the region alignment network layer is connected to the region head network layer;
本发明实施例的特征提取网络层具体由五级残差网络(Residual Network,ResNet)和对应的五级特征金字塔网络(Feature Pyramid Networks,FPN)构成;区域候选网络层包括五级区域候选网络,与五级特征金字塔网络对应;在实现五级残差网络时,本发明实施例使用残差网络ResNet-50网络结构进行实现并以此作为特征提取网络层的骨干网络;The feature extraction network layer of the embodiment of the present invention is specifically composed of a five-level residual network (Residual Network, ResNet) and a corresponding five-level feature pyramid network (Feature Pyramid Networks, FPN); the region candidate network layer includes a five-level region candidate network, corresponding to the five-level feature pyramid network; when implementing a five-level residual network, the embodiment of the present invention uses the residual network ResNet-50 network structure to implement and use this as the backbone network of the feature extraction network layer;
本发明实施例的区域头部网络层包括两个子网络分别为:目标检测分支网络和目标分割分支网络;其中,目标检测分支网络用于输出检测目标类型为冠脉入口血管类型的目标检测框A,以及检测目标类型为狭窄段血管类型的目标检测框B;目标分割分支网络用于在目标检测框A中输出对应的冠脉入口血管的血管掩膜(mask)图像,以及在目标检测框B中输出对应的狭窄段血管的血管掩膜图像。The regional head network layer in the embodiment of the present invention includes two sub-networks: a target detection branch network and a target segmentation branch network; wherein, the target detection branch network is used to output a target detection frame A whose detection target type is a coronary inlet vessel type, and a target detection frame B whose detection target type is a stenotic blood vessel type; the target segmentation branch network is used to output a blood vessel mask (mask) image of a corresponding coronary inlet vessel in the target detection frame A, and output a blood vessel mask image of a corresponding stenotic blood vessel in the target detection frame B.
步骤3,对目标检测框A的血管掩膜图像进行冠脉入口直径分析生成对应的冠脉入口直径;并对各个目标检测框B的血管掩膜图像进行狭窄段血管直径与狭窄率分析生成对应的第一狭窄段直径序列和第一狭窄率;Step 3: Analyzing the coronary artery entrance diameter on the blood vessel mask image of the target detection frame A to generate the corresponding coronary artery entrance diameter; and analyzing the stenotic vessel diameter and stenosis rate analysis on the blood vessel mask image of each target detection frame B to generate a corresponding first stenosis segment diameter sequence and first stenosis rate;
具体包括:步骤31,对目标检测框A的血管掩膜图像进行冠脉入口直径分析生成对应的冠脉入口直径;It specifically includes: step 31, analyzing the coronary artery entrance diameter on the blood vessel mask image of the target detection frame A to generate a corresponding coronary artery entrance diameter;
具体包括:步骤311,将目标检测框A的血管掩膜图像作为当前血管掩膜图像;It specifically includes: step 311, using the blood vessel mask image of the target detection frame A as the current blood vessel mask image;
步骤312,对当前血管掩膜图像进行血管边缘和血管中心线识别生成对应的当前血管边缘和当前中心线;Step 312, performing vessel edge and vessel centerline recognition on the current vessel mask image to generate corresponding current vessel edge and current centerline;
这里,对当前血管掩膜图像进行血管边缘和血管中心线识别时,首先将当前血管掩膜图像所在目标检测框A内的所有图像信息作为第一检测框图像;然后,对第一检测框图像进行二值化处理生成第一二值图;其中,第一二值图上的所有像素点的像素值只有两种:前景像素点的前景像素值,以及背景像素点的背景像素值,前景像素值和背景像素值可在具体实施时自行定义取值;Here, when the blood vessel edge and the blood vessel centerline are identified on the current blood vessel mask image, all the image information in the target detection frame A where the current blood vessel mask image is located is firstly used as the first detection frame image; then, the first detection frame image is binarized to generate the first binary image; wherein, there are only two types of pixel values for all pixels on the first binary image: the foreground pixel value of the foreground pixel point, and the background pixel value of the background pixel point. The foreground pixel value and the background pixel value can be defined by themselves during specific implementation;
然后,在第一二值图上对当前血管掩膜图像覆盖的所有像素点进行遍历,遍历时若当前遍历像素点的四邻域像素点范围内存在至少一个背景像素点则将当前遍历像素点作为血管边缘像素点,完成遍历后按顺时间或逆时针方向对所有血管边缘像素点进行连接就可得到当前血管掩膜图像的封闭血管边缘曲线也就是当前血管边缘;Then, traverse all the pixels covered by the current blood vessel mask image on the first binary image, if there is at least one background pixel in the four-neighborhood pixel range of the currently traversed pixel during traversal, then use the currently traversed pixel as the blood vessel edge pixel, and after completing the traversal, connect all the blood vessel edge pixels clockwise or counterclockwise to obtain the closed blood vessel edge curve of the current blood vessel mask image, that is, the current blood vessel edge;
另外,在不改变血管图像拓扑性质(血管的连通性)的前提下,基于拓扑细化方法对第一二值图上的当前血管掩膜图像进行中心线提取生成当前中心线,具体为:预先针对血管的连通性创建包括多个子规则的连通性判断规则,每个子规则对应一个或多个3×3的像素值模板矩阵,每个像素值模板矩阵对应一个保持连通性的像素排列结构;然后在第一二值图上对当前血管掩膜图像覆盖的所有像素点进行遍历;遍历时将当前遍历像素点的八领域像素点的像素值提取出来与当前遍历像素点的像素值构成一个3×3的像素值矩阵记为第一矩阵,再使用连通性判断规则中的每个子规则的一个或多个3×3像素值模板矩阵与第一矩阵进行依次比对;比对时,若第一矩阵与其中任一像素值模板矩阵完全匹配,则说明当前遍历像素点为保持邻域像素点连通性的关键像 素点,不能被删除,跳转到下一个像素点进行遍历;比对时,若第一矩阵与连通性判断规则中所有子规则的像素值模板矩阵都不匹配,说明当前遍历像素点不为保持邻域像素点连通性的关键像素点,可以被删除,对应的将其标记为可删除像素点;在对当前血管掩膜图像覆盖的所有像素点完成一次遍历之后,将标记为可删除像素点的像素点全部转换为背景像素点,由此就实现了一次在不破坏血管图像拓扑性质(血管的连通性)的前提下对当前血管掩膜图像进行拓扑细化的处理过程;在将当次所有可删除像素点转换为背景像素点之后,继续按上述步骤,对拓扑细化后的当前血管掩膜图像覆盖的所有像素点继续进行遍历,并在遍历时根据连通性判断规则的各个像素值模板矩阵判断各个遍历像素点是否为关键像素点,是否需要保留或标记为可删除像素点,并在当次遍历结束后将标记为可删除像素点的像素点全部转换为背景像素点;以此类推进行循环迭代,直到当次遍历结束后标记为可删除像素点的数量为0,说明当前血管掩膜图像已经无法进行进一步拓扑细化了,这个时候将当前血管掩膜图像中的剩余像素点按血流方向依次连接,连接得到的曲线就是当前中心线;In addition, under the premise of not changing the topological properties of the blood vessel image (connectivity of the blood vessel), based on the topology thinning method, the centerline of the current blood vessel mask image on the first binary image is extracted to generate the current centerline, specifically: create a connectivity judgment rule including multiple sub-rules for the connectivity of the blood vessel in advance, each sub-rule corresponds to one or more 3×3 pixel value template matrices, and each pixel value template matrix corresponds to a pixel arrangement structure that maintains connectivity; then traverse all the pixels covered by the current blood vessel mask image on the first binary image; The pixel values of the pixels in the eight domains of the current traversing pixel are extracted and combined with the pixel values of the currently traversing pixel to form a 3×3 pixel value matrix, which is recorded as the first matrix, and then one or more 3×3 pixel value template matrices of each sub-rule in the connectivity judgment rule are used to compare with the first matrix in turn; when comparing, if the first matrix completely matches any of the pixel value template matrices, it means that the currently traversing pixel is a key pixel to maintain the connectivity of neighboring pixels and cannot be deleted, and jumps to the next pixel for traversal; comparison , if the first matrix does not match the pixel value template matrix of all the sub-rules in the connectivity judgment rule, it means that the current traversal pixel is not a key pixel to maintain the connectivity of neighboring pixels and can be deleted, correspondingly marked as a deletable pixel; after completing a traversal of all the pixels covered by the current vascular mask image, all the pixels marked as deletable pixels are converted into background pixels, thus realizing a topological refinement of the current vascular mask image without destroying the topological properties (vascular connectivity) After converting all the deletable pixels into background pixels, continue to traverse all the pixels covered by the topologically thinned current blood vessel mask image according to the above steps, and judge whether each traversal pixel is a key pixel according to the pixel value template matrix of the connectivity judgment rule during traversal, and whether it needs to be reserved or marked as a deletable pixel, and after the end of the current traversal, all the pixels marked as deletable pixels are converted into background pixels; and so on until the end of the current traversal The number of pixels marked as deletable is 0, indicating that the current blood vessel mask image cannot be further topologically refined. At this time, the remaining pixels in the current blood vessel mask image are connected in sequence according to the blood flow direction, and the connected curve is the current center line;
步骤313,将当前中心线包括的多个像素点,按序标记为对应的第一像素点X 1,jStep 313, mark the plurality of pixel points included in the current central line as corresponding first pixel points X 1,j in sequence;
其中,1≤j≤m 1,m 1为当前中心线的像素点总数;第一个第一像素点X 1,j=1为当前血管掩膜图像对应血管的血流流入点,最后一个第一像素点X 1,j=m1为当前血管掩膜图像对应血管的血流流出点; Among them, 1≤j≤m 1 , m 1 is the total number of pixels of the current centerline; the first first pixel point X 1,j=1 is the blood flow inflow point of the blood vessel corresponding to the current blood vessel mask image, and the last first pixel point X 1,j=m1 is the blood flow outflow point of the blood vessel corresponding to the current blood vessel mask image;
步骤314,经过各个第一像素点X 1,j做与当前血管边缘的相交线段得到多个第一相交线段;并从中选择最短的第一相交线段的长度作为与当前第一像素点X 1,j对应的第一像素点血管直径L 1,jStep 314, through each first pixel point X 1,j, make the intersection line segment with the edge of the current blood vessel to obtain a plurality of first intersection line segments; and select the length of the shortest first intersection line segment as the first pixel point blood vessel diameter L 1,j corresponding to the current first pixel point X 1,j ;
这里,按各个第一像素点X 1,j与其八邻域(左上、上方、右上、右方、右下、下方、左下、左方)像素点的排列结构关系,过各个第一像素点X 1,j做四条直线:第一直线(左上-X 1,j-左下)、第二直线(上方-X 1,j-下方)、第三直 线(右上-X 1,j-左下)和第四直线(右方-X 1,j-左方);提取第一、第二、第三和第四直线与当前血管边缘的相交线段作为对应的第一相交线段1、2、3、4;从第一相交线段1、2、3、4中,提取最短的作为第一像素点血管直径L 1,jHere, according to each first pixel point X 1,jThe arrangement structure relationship of the pixels in its eight neighborhoods (upper left, upper, upper right, right, lower right, lower, lower left, left), each first pixel point X 1,jMake four straight lines: the first straight line (upper left-X 1,j- bottom left), second straight line (above - X 1,j-bottom), third straight line (upper right-X 1,j-bottom left) and the fourth straight line (right-X 1,j-left); extract the first, second, third and fourth straight lines and the intersection line segment of the current blood vessel edge as the corresponding first intersection line segment 1, 2, 3, 4; from the first intersection line segment 1, 2, 3, 4, extract the shortest as the first pixel point blood vessel diameter L 1,j;
步骤315,对得到的所有第一像素点血管直径L 1,j进行均值计算生成冠脉入口直径; Step 315, performing mean value calculation on all obtained first pixel vessel diameters L 1,j to generate a coronary artery entrance diameter;
这里,使用均值计算方式可以降低图像处理过程中的计算误差;Here, using the mean calculation method can reduce the calculation error in the image processing process;
步骤32,对各个目标检测框B的血管掩膜图像进行狭窄段血管直径与狭窄率分析生成对应的第一狭窄段直径序列和第一狭窄率;Step 32, analyzing the vessel diameter and stenosis rate of the stenosis segment on the blood vessel mask image of each target detection frame B to generate a corresponding first stenosis segment diameter sequence and first stenosis rate;
具体包括:步骤321,将当前目标检测框B的血管掩膜图像作为当前血管掩膜图像;It specifically includes: step 321, using the blood vessel mask image of the current target detection frame B as the current blood vessel mask image;
步骤322,对当前血管掩膜图像进行血管边缘和血管中心线识别生成对应的当前血管边缘和当前中心线;Step 322, performing vessel edge and vessel centerline recognition on the current vessel mask image to generate corresponding current vessel edge and current centerline;
步骤323,将当前中心线包括的多个像素点,按序标记为对应的第二像素点X 2,hStep 323, mark the plurality of pixel points included in the current central line as corresponding second pixel points X 2,h in sequence;
其中,1≤h≤m 2,m 2为当前中心线的像素点总数;第一个第二像素点X 2,h=1为当前血管掩膜图像对应血管的血流流入点,最后一个第二像素点
Figure PCTCN2022097247-appb-000008
为当前血管掩膜图像对应血管的血流流出点;
Among them, 1≤h≤m 2 , m 2 is the total number of pixels of the current center line; the first second pixel point X 2, h=1 is the blood flow inflow point of the blood vessel corresponding to the current blood vessel mask image, and the last second pixel point
Figure PCTCN2022097247-appb-000008
The blood outflow point of the blood vessel corresponding to the current blood vessel mask image;
步骤324,经过各个第二像素点X 2,h做与当前血管边缘的相交线段得到多个第二相交线段;并从中选择最短的第二相交线段的长度作为与当前第二像素点X 2,h对应的第二像素点血管直径L 2,hStep 324, through each second pixel point X 2, h, make a plurality of second intersecting line segments with the current blood vessel edge; and select the length of the shortest second intersecting line segment as the second pixel point blood vessel diameter L 2 , h corresponding to the current second pixel point X 2, h ;
这里,与步骤314近似,在此不做进一步赘述;Here, it is similar to step 314, and no further details are given here;
步骤325,根据第二像素点血管直径L 2,h=1和第二像素点血管直径
Figure PCTCN2022097247-appb-000009
构建可以反映第一个第二像素点X 2,h=1到最后一个第二像素点
Figure PCTCN2022097247-appb-000010
的血管线性变化关系的线性变化函数f(h),
Step 325, according to the second pixel blood vessel diameter L 2, h=1 and the second pixel blood vessel diameter
Figure PCTCN2022097247-appb-000009
The construction can reflect the first second pixel point X 2, h=1 to the last second pixel point
Figure PCTCN2022097247-appb-000010
The linear change function f(h) of the blood vessel linear change relationship,
f(h)=L 2,h=1+k*(h-1), f(h)=L 2,h=1 +k*(h-1),
Figure PCTCN2022097247-appb-000011
Figure PCTCN2022097247-appb-000011
这里,本发明实施例默认冠状动脉血管的直径从冠脉入口到各个分支结束点,在没有因病变导致的中间段血管狭窄的正常情况下应是一个线性减小的过程,上述线性变化函数f(h)即是用于模拟这种线性减小过程的函数;Here, the embodiment of the present invention defaults that the diameter of the coronary artery from the coronary artery entrance to the end point of each branch should be a linear reduction process under normal conditions without stenosis of the middle segment of the blood vessel caused by the lesion. The above-mentioned linear change function f(h) is a function for simulating this linear reduction process;
步骤326,根据线性变化函数f(h),对各个第二像素点X 2,h对应的线性变化直径长度进行计算生成对应的第二像素点线性直径L′ 2,hStep 326, according to the linear change function f(h), calculate the linear change diameter length corresponding to each second pixel point X 2,h to generate the corresponding second pixel point linear diameter L′ 2,h ,
Figure PCTCN2022097247-appb-000012
Figure PCTCN2022097247-appb-000012
这里,第二像素点线性直径L′ 2,h即是基于上述线性变化函数f(h)模拟出的在正常情况下各个第二像素点X 2,h应对应的正常血管直径; Here, the second pixel point linear diameter L′ 2,h is the normal blood vessel diameter corresponding to each second pixel point X 2,h under normal circumstances based on the above-mentioned linear change function f(h);
步骤327,根据第二像素点血管直径L 2,h和第二像素点线性直径L′ 2,h,计算各个第二像素点X 2,h对应的第二像素点狭窄率R 2,hStep 327, according to the second pixel blood vessel diameter L 2,h and the second pixel linear diameter L′ 2,h , calculate the second pixel stenosis rate R 2,h corresponding to each second pixel X 2,h ,
Figure PCTCN2022097247-appb-000013
Figure PCTCN2022097247-appb-000013
这里,第二像素点血管直径L 2,h为实际情况下的血管直径,第二像素点线性直径L′ 2,h为模拟正常情况下的理论血管直径,
Figure PCTCN2022097247-appb-000014
作为实际直径与理论直径的比值可以反映第二像素点X 2,h的血流通过程度,自然
Figure PCTCN2022097247-appb-000015
就反映出了第二像素点X 2,h的血流阻塞程度也即是第二像素点X 2,h对应的第二像素点狭窄率R 2,h
Here, the second pixel point blood vessel diameter L 2,h is the blood vessel diameter under actual conditions, and the second pixel point linear diameter L′ 2,h is the theoretical blood vessel diameter under simulated normal conditions,
Figure PCTCN2022097247-appb-000014
The ratio of the actual diameter to the theoretical diameter can reflect the degree of blood flow through the second pixel point X 2,h , naturally
Figure PCTCN2022097247-appb-000015
It reflects the degree of blood flow obstruction of the second pixel point X 2,h , that is, the second pixel point stenosis rate R 2,h corresponding to the second pixel point X 2,h ;
步骤328,将第二像素点血管直径L 2,h作为对应的第一狭窄段直径,并按第二像素点索引h从小到大的顺序对所有第一狭窄段直径进行排序,生成与当前血管掩膜图像对应的第一狭窄段直径序列;并从得到的所有第二像素点狭窄率R 2,h中选择最大值,作为与当前血管掩膜图像对应的第一狭窄率。 Step 328, using the second pixel point blood vessel diameter L 2,h as the corresponding first stenosis segment diameter, sorting all the first stenosis segment diameters in ascending order according to the second pixel point index h, generating a sequence of first stenosis segment diameters corresponding to the current blood vessel mask image; and selecting the maximum value from all obtained second pixel point stenosis ratios R 2,h as the first stenosis rate corresponding to the current blood vessel mask image.
这里,第一狭窄段直径序列反映出了对应狭窄段血管上的各点血管直径,第一狭窄率则是对应狭窄段血管上的最大狭窄率。Here, the first series of stenotic segment diameters reflects the diameters of blood vessels at various points on the blood vessel corresponding to the stenotic segment, and the first stenosis rate is the maximum stenosis rate on the blood vessel corresponding to the stenotic segment.
需要说明的是,在计算当前血管掩膜图像对应的第一狭窄率时,本发明实施例支持多种处理方式;其中一种由上述步骤327-328可知,先计算完整的狭窄率序列,再从中选取最大值作为第一狭窄率;另一种则是先从所有第二像素点血管直径L 2,h中选出最小值作为第二像素点最小血管直径L min,并将L min对 应的像素点索引y代入线性变化函数f(h=y)计算获得该像素点索引y对应的线性参考直径L′ 2,h=y,再将L min和L′ 2,h=y代入
Figure PCTCN2022097247-appb-000016
进行计算得到计算结果R,再将R作为第一狭窄率输出。这两种处理方式前者的特点是在得到第一狭窄率的同时还可以得到狭窄段中心线上各个位置的狭窄率,后者的特点因为不用输出各个位置的狭窄率所以其计算方式更简单、更快捷。
It should be noted that when calculating the first stenosis rate corresponding to the current blood vessel mask image, the embodiment of the present invention supports a variety of processing methods; one of them can be seen from the above steps 327-328, first calculate the complete stenosis rate sequence, and then select the maximum value as the first stenosis rate; the other is to first select the minimum value from all second pixel blood vessel diameters L 2,h as the second pixel minimum blood vessel diameter L min , and substitute the pixel index y corresponding to L min into the linear change function f(h=y) to calculate and obtain the pixel index The linear reference diameter L′ 2,h=y corresponding to y , and then substitute L min and L′ 2,h=y into
Figure PCTCN2022097247-appb-000016
Perform calculation to obtain a calculation result R, and then output R as the first stenosis rate. The feature of the former of these two processing methods is that the stenosis rate of each position on the centerline of the stenosis can be obtained while obtaining the first stenosis rate, and the feature of the latter is that the calculation method is simpler and faster because it does not need to output the stenosis rate of each position.
上述步骤3即是使用图像处理方法完成的QCA分析处理过程,通过该QCA分析处理过程可以得到第一图像上冠脉入口直径与所有狭窄段直径序列和狭窄率的分析结果。在此基础上,本发明实施例通过后续步骤4-6可进一步测量出第一图像上任意狭窄段血管上标记的测量点的FFR数值。The above step 3 is the QCA analysis and processing process completed by using the image processing method, through which the analysis results of the coronary entrance diameter and all stenotic segment diameter sequences and stenosis ratios on the first image can be obtained. On this basis, the embodiment of the present invention can further measure the FFR value of the measurement point marked on the blood vessel in any stenotic segment on the first image through the subsequent steps 4-6.
步骤4,将用户在第一图像上标记的血流储备分数分析点作为对应的靶点P i,并将用户对靶点P i处的血管直径测量结果作为对应的靶点直径; Step 4, taking the fractional blood flow reserve analysis point marked by the user on the first image as the corresponding target point P i , and taking the user's blood vessel diameter measurement result at the target point P i as the corresponding target point diameter;
其中,i为靶点索引,1≤i≤n,n为测量点总数。Among them, i is the index of the target point, 1≤i≤n, and n is the total number of measurement points.
这里,靶点P i即是用户在第一图像上标记的狭窄段血管血流储备分数测量点,该测量点为第一图像上某段血管上的位置点,常规情况下用户会在具有狭窄段血管的血流分支上距离该分支最后一个狭窄段血管一定距离的血管上标记靶点P i;用户完成靶点P i标记后,可通过第一图像上的图像标尺获得靶点P i所在位置的血管横截面直径,并将该血管横截面直径作为该靶点P i处的血管直径测量结果也即对应的靶点直径。 Here, the target point P i is the blood flow reserve fraction measurement point of the stenotic segment marked by the user on the first image. The measurement point is a position point on a certain segment of the blood vessel on the first image. Normally, the user will mark the target point P i on the blood flow branch of the stenotic segment of the blood vessel that is a certain distance from the last stenotic segment of the branch. The measurement result is also the corresponding target spot diameter.
步骤5,对各个靶点P i在第一图像上所处的血管分支进行确认生成对应的血管分支C i,并根据各个血管分支C i对应的所有第一狭窄段直径序列和第一狭窄率、以及对应的靶点P i的靶点直径、以及冠脉入口直径进行血管分支特征提取处理生成对应的分支特征数据序列S i,并对得到的所有分支特征数据序列S i进行排序得到分支特征数据集合D in(S 1…S i…S n); Step 5: Confirm the vascular branch of each target point P i on the first image to generate the corresponding vascular branch C i , and perform vascular branch feature extraction processing according to all first stenotic segment diameter sequences and first stenosis ratios corresponding to each vascular branch C i , as well as the target point diameter of the corresponding target point P i , and the coronary artery entrance diameter to generate a corresponding branch feature data sequence S i , and sort all the obtained branch feature data sequences S i to obtain a branch feature data set D in (S 1 ... S i ... S n );
具体包括:步骤51,在第一图像上,将目标检测框A的血管掩膜图像的血管起始位置作为冠脉入口位置;并按血流方向,将从冠脉入口位置到各个靶点P i的血流路径作为与各个靶点P i对应的血管分支C iIt specifically includes: step 51, on the first image, taking the initial position of the blood vessel in the blood vessel mask image of the target detection frame A as the coronary artery inlet position; and according to the blood flow direction, taking the blood flow path from the coronary artery inlet position to each target point P i as the blood vessel branch C i corresponding to each target point P i ;
这里,血管分支C i即是指从冠脉入口位置到各个靶点P i位置的单一血流路径; Here, the blood vessel branch C i refers to a single blood flow path from the coronary inlet position to each target point P i position;
步骤52,将各个血管分支C i途经的所有目标检测框B的第一狭窄段直径序列归入对应的第一序列集合;并在各个第一序列集合中,按血流方向对所有第一狭窄段直径序列的第一狭窄段直径进行全排序,得到对应的第一分支狭窄段直径序列; Step 52, classify the first stenotic segment diameter sequences of all target detection frames B passed by each blood vessel branch Ci into the corresponding first sequence set; and in each first sequence set, sort the first stenotic segment diameters of all the first stenotic segment diameter sequences according to the blood flow direction to obtain the corresponding first branch stenotic segment diameter sequence;
这里,若从冠脉入口位置到当前靶点P i位置的单一血流路径中只有一处狭窄段血管段,则该血管分支C i只途经了一个目标检测框B,对应的第一序列集合也就只包括这唯一目标检测框B的第一狭窄段直径序列,第一分支狭窄段直径序列也就是该唯一目标检测框B的第一狭窄段直径序列;若从冠脉入口位置到当前靶点P i位置的单一血流路径中经过了多个狭窄血管段,则该血管分支C i途经了多个目标检测框B,对应的第一序列集合也就包括多个目标检测框B的第一狭窄段直径序列,按血流方向对这多个第一狭窄段直径序列进行排序就实现了本步骤中的全排序过程,由此得到的第一分支狭窄段直径序列则包括了当前血管分支C i上从冠脉入口位置到对应靶点P i位置的血流路径上所有狭窄段血管的血管直径变化参数; Here, if from the coronary entrance position to the current target point P iThere is only one stenotic vessel segment in the single blood flow path at the position, then the vessel branch C iOnly one target detection frame B is passed, and the corresponding first sequence set only includes the first stenosis diameter sequence of the unique target detection frame B, and the first branch stenosis diameter sequence is also the first stenosis diameter sequence of the unique target detection frame B; if from the coronary artery entrance position to the current target point P iA single blood flow path at the position passes through multiple narrow vessel segments, then the vessel branch C iAfter passing through multiple target detection frames B, the corresponding first sequence set includes the first stenotic segment diameter sequences of multiple target detection frames B. Sorting these multiple first stenotic segment diameter sequences according to the blood flow direction realizes the full sorting process in this step. The obtained first branch stenotic segment diameter sequence includes the current vessel branch C iFrom the position of the coronary artery entrance to the corresponding target point P iVessel diameter change parameters of all stenotic vessels on the blood flow path at the position;
需要说明的是,在得到第一分支狭窄段直径序列之后,为便于后续模型计算本发明实施例还会对其进行数据整形保证其数据长度与模型所需长度一致;It should be noted that, after obtaining the diameter sequence of the narrow section of the first branch, in order to facilitate the subsequent model calculation, the embodiment of the present invention will also perform data shaping on it to ensure that its data length is consistent with the required length of the model;
步骤53,从各个血管分支C i途经的所有目标检测框B的第一狭窄率中,选择最大值作为对应的第一分支最大狭窄率; Step 53, from the first stenosis rates of all target detection frames B passed by each blood vessel branch Ci , select the maximum value as the corresponding maximum stenosis rate of the first branch;
这里,若血管分支C i途经的目标检测框B数量唯一,则第一分支最大狭窄率即是该唯一目标检测框B的最大狭窄率也就是第一狭窄率;若血管分支C i途经的目标检测框B数量不唯一,则第一分支最大狭窄率应为多个目标检测框B的第一狭窄率中的最大值,也就是该血管分支C i对应的单一血流路径上的最大狭窄率; Here, if the number of target detection frames B passed by the blood vessel branch C i is unique, the maximum stenosis rate of the first branch is the maximum stenosis rate of the unique target detection frame B, that is, the first stenosis rate; if the number of target detection frames B passed by the blood vessel branch C i is not unique, then the maximum stenosis rate of the first branch should be the maximum value among the first stenosis rates of multiple target detection frames B, that is, the maximum stenosis rate on a single blood flow path corresponding to the blood vessel branch C i ;
步骤54,将与各个血管分支C i对应的靶点P i的靶点直径作为对应的第一 分支靶点直径; Step 54, using the target diameter of the target point P i corresponding to each blood vessel branch C i as the corresponding first branch target diameter;
这里,各个血管分支C i对应的第一分支靶点直径实际就是该分支末端靶点P i所在位置的血管横截面直径; Here, the diameter of the first branch target point corresponding to each vascular branch C i is actually the cross-sectional diameter of the blood vessel at the position of the target point P i at the end of the branch;
步骤55,对各个血管分支C i,将冠脉入口直径以及对应的第一分支狭窄段直径序列、第一分支靶点直径和第一分支最大狭窄率,组成对应的分支特征数据序列S iStep 55, for each vascular branch C i , compose the corresponding branch feature data sequence S i with the diameter of the coronary artery inlet, the corresponding first branch stenosis segment diameter sequence, the first branch target point diameter and the first branch maximum stenosis rate;
这里,由冠脉入口直径、第一分支狭窄段直径序列、第一分支靶点直径和第一分支最大狭窄率组成分支特征数据序列S i的数据组合方式有多种,其中一种就是:分支特征数据序列S i=冠脉入口直径+第一分支狭窄段直径序列+第一分支靶点直径+第一分支最大狭窄率; Here, there are multiple ways of data combination of the branch feature data sequence S i composed of the coronary artery inlet diameter, the first branch stenosis segment diameter sequence, the first branch target point diameter and the first branch maximum stenosis rate, one of which is: branch feature data sequence S i =coronary artery inlet diameter+the first branch stenosis segment diameter sequence+the first branch target point diameter+the first branch maximum stenosis rate;
步骤56,按靶点索引i从小到大的顺序对所有分支特征数据序列S i进行排序,从而得到分支特征数据集合D in(S 1…S i…S n)。 Step 56, sort all the branch feature data sequences S i in ascending order of the target point index i, so as to obtain the branch feature data set D in (S 1 ... S i ... S n ).
步骤6,将分支特征数据集合D in(S 1…S i…S n)输入预设的人工神经网络ANN模型进行运算输出分支运算结果集合D out(U 1…U i…U n);并将集合中各个分支运算结果U i作为对应的靶点P i的血流储备分数分析结果进行输出; Step 6, input the branch feature data set D in (S 1 ... S i ... S n ) into the preset artificial neural network ANN model for operation and output the branch operation result set D out (U 1 ... U i ... U n ); and output the branch operation result U i in the set as the blood flow reserve fraction analysis result of the corresponding target point P i ;
具体包括:步骤61,将分支特征数据集合D in(S 1…S i…S n)输入预设的人工神经网络ANN模型进行运算输出分支运算结果集合D out(U 1…U i…U n); It specifically includes: step 61, inputting the branch feature data set D in (S 1 ... S i ... S n ) into the preset artificial neural network ANN model for operation and outputting the branch operation result set D out (U 1 ... U i ... U n );
具体包括:步骤611,将分支特征数据集合D in(S 1…S i…S n)划分为n个一维的第一数据片段;每个第一数据片段对应一个分支特征数据序列S iIt specifically includes: step 611, dividing the branch feature data set D in (S 1 ... S i ... S n ) into n one-dimensional first data segments; each first data segment corresponds to a branch feature data sequence S i ;
步骤612,将各个第一数据片段,输入人工神经网络ANN模型进行运算得到对应的分支运算结果U iStep 612, input each first data segment into the artificial neural network ANN model for calculation to obtain the corresponding branch calculation result U i ;
其中,人工神经网络ANN模型包括输入层、一层或多层隐藏层和输出层;输入层包括多个输入层节点;各个隐藏层包括多个隐藏层节点;输出层包括一个输出层节点;Wherein, the artificial neural network ANN model includes an input layer, one or more hidden layers and an output layer; the input layer includes a plurality of input layer nodes; each hidden layer includes a plurality of hidden layer nodes; the output layer includes an output layer node;
在人工神经网络ANN模型对输入的第一数据片段进行运算时:When the artificial neural network ANN model operates on the first input data segment:
输入层用于将第一数据片段的各个片段数据输入对应的输入层节点作为 对应的节点输出值;The input layer is used for inputting each segment data of the first data segment into a corresponding input layer node as a corresponding node output value;
第一层隐藏层的各个隐藏层节点分别与所有输入层节点全连接形成对应的第一全连接网络;第一层隐藏层用于在本层的各个隐藏层节点上,将对应的第一全连接网络中所有输入层节点的节点输出值输入预设的全连接线性运算函数中进行运算生成对应的第一结果,并将第一结果输入预设的激活函数中进行运算生成对应的第二结果,并将第二结果作为当前隐藏层节点的节点输出值;Each hidden layer node of the first hidden layer is fully connected with all input layer nodes to form a corresponding first fully connected network; the first hidden layer is used to input the node output values of all input layer nodes in the corresponding first fully connected network into a preset fully connected linear operation function to generate a corresponding first result, and input the first result to a preset activation function to generate a corresponding second result, and use the second result as the node output value of the current hidden layer node;
下一层隐藏层的各个隐藏层节点分别与上一层隐藏层的所有隐藏层节点全连接形成对应的第二全连接网络;下一层隐藏层用于在本层的各个隐藏层节点上,将对应的第二全连接网络中上一层隐藏层的所有隐藏层节点的节点输出值输入预设的全连接线性运算函数中进行运算生成对应的第三结果,并将第三结果输入预设的激活函数中进行运算生成对应的第四结果,并将第四结果作为当前隐藏层节点的节点输出值;Each hidden layer node of the next hidden layer is fully connected with all hidden layer nodes of the previous hidden layer to form a corresponding second fully connected network; the hidden layer of the next layer is used to input the node output values of all hidden layer nodes of the previous hidden layer in the corresponding second fully connected network into a preset fully connected linear operation function to generate a corresponding third result, and input the third result into a preset activation function to perform operation to generate a corresponding fourth result, and use the fourth result as the node output value of the current hidden layer node;
输出层的输出层节点与最后一层隐藏层的所有隐藏层节点全连接形成对应的第三全连接网络;输出层用于在输出层节点上,将对应的第三全连接网络中最后一层隐藏层的所有隐藏层节点的节点输出值输入预设的全连接线性运算函数中进行运算生成对应的第五结果,并将第五结果输入预设的激活函数中进行运算生成对应的第六结果,并将第六结果作为分支运算结果U iThe output layer nodes of the output layer are fully connected with all hidden layer nodes of the last hidden layer to form a corresponding third fully connected network; the output layer is used to input the node output values of all hidden layer nodes of the last hidden layer in the corresponding third fully connected network on the output layer nodes into a preset fully connected linear operation function for operation to generate a corresponding fifth result, and input the fifth result into a preset activation function for operation to generate a corresponding sixth result, and use the sixth result as the branch operation result U i ;
上述运算过程中,隐藏层和输出层使用的激活函数默认为线性整流(Rectified Linear Units,ReLU)函数;In the above operation process, the activation function used by the hidden layer and the output layer defaults to the Rectified Linear Units (ReLU) function;
步骤613,按靶点索引i从小到大的顺序对所有分支运算结果U i进行排序,从而得到分支运算结果集合D out(U 1…U i…U n); Step 613, sort all the branch operation results U i according to the order of the target point index i from small to large, so as to obtain the branch operation result set D out (U 1 ... U i ... U n );
步骤62,将集合中各个分支运算结果U i作为对应的靶点P i的血流储备分数分析结果进行输出。 Step 62 , output the operation result U i of each branch in the set as the fractional blood flow reserve analysis result of the corresponding target point P i .
图2为本发明实施例二提供的一种基于血管造影图像分析血流储备分数的处理装置的模块结构图,该装置可以为实现本发明实施例方法的终端设备 或者服务器,也可以为与上述终端设备或者服务器连接的实现本发明实施例方法的装置,例如该装置可以是上述终端设备或者服务器的装置或芯片系统。如图2所示,该装置包括:获取模块201、图像目标检测与语义分割模块202、定量冠状动脉造影分析处理模块203、靶点处理模块204、血管分支处理模块205和血流储备分数处理模块206。2 is a module structure diagram of a processing device for analyzing blood flow reserve fraction based on angiographic images provided by Embodiment 2 of the present invention. The device may be a terminal device or a server implementing the method of the embodiment of the present invention, or a device connected to the above-mentioned terminal device or server to realize the method of the embodiment of the present invention. For example, the device may be a device or a chip system of the above-mentioned terminal device or server. As shown in FIG. 2 , the device includes: an acquisition module 201 , an image target detection and semantic segmentation module 202 , a quantitative coronary angiography analysis and processing module 203 , a target point processing module 204 , a vessel branch processing module 205 and a blood flow reserve processing module 206 .
获取模块201用于获取血管造影图像作为第一图像。The obtaining module 201 is used to obtain an angiographic image as a first image.
图像目标检测与语义分割模块202用于基于预设的图像目标检测与语义分割模型,对第一图像进行冠脉入口血管与狭窄段血管的目标检测和语义分割处理,从而在第一图像上得到一个目标检测框A以及一个或多个目标检测框B;目标检测框A、B内均包括一段血管掩膜图像,目标检测框A对应的检测目标类型为冠脉入口血管类型,目标检测框B对应的检测目标类型为狭窄段血管类型。The image target detection and semantic segmentation module 202 is used to perform target detection and semantic segmentation on the first image based on the preset image target detection and semantic segmentation model, so as to obtain a target detection frame A and one or more target detection frames B on the first image; both target detection frames A and B include a section of blood vessel mask image, and the detection target type corresponding to the target detection frame A is the coronary entrance blood vessel type, and the detection target type corresponding to the target detection frame B is the stenotic segment blood vessel type.
定量冠状动脉造影分析处理模块203用于对目标检测框A的血管掩膜图像进行冠脉入口直径分析生成对应的冠脉入口直径;并对各个目标检测框B的血管掩膜图像进行狭窄段血管直径与狭窄率分析生成对应的第一狭窄段直径序列和第一狭窄率。The quantitative coronary angiography analysis and processing module 203 is used to analyze the diameter of the coronary artery entrance on the blood vessel mask image of the target detection frame A to generate the corresponding coronary artery entrance diameter; and analyze the vessel diameter and stenosis rate of each target detection frame B to generate a corresponding first stenosis segment diameter sequence and first stenosis rate.
靶点处理模块204用于将用户在第一图像上标记的血流储备分数分析点作为对应的靶点P i,并将用户对靶点P i处的血管直径测量结果作为对应的靶点直径;其中,i为靶点索引,1≤i≤n,n为测量点总数。 The target point processing module 204 is used to use the blood flow reserve fraction analysis point marked by the user on the first image as the corresponding target point P i , and use the user's blood vessel diameter measurement result at the target point P i as the corresponding target point diameter; where i is the target point index, 1≤i≤n, and n is the total number of measurement points.
血管分支处理模块205用于对各个靶点P i在第一图像上所处的血管分支进行确认生成对应的血管分支C i,并根据各个血管分支C i对应的所有第一狭窄段直径序列和第一狭窄率、以及对应的靶点P i的靶点直径、以及冠脉入口直径进行血管分支特征提取处理生成对应的分支特征数据序列S i,并对得到的所有分支特征数据序列S i进行排序得到分支特征数据集合D in(S 1…S i…S n)。 The blood vessel branch processing module 205 is used to confirm the blood vessel branch of each target point P i on the first image to generate the corresponding blood vessel branch C i , and perform blood vessel branch feature extraction processing according to all first stenosis segment diameter sequences and first stenosis rates corresponding to each blood vessel branch C i , the target point diameter of the corresponding target point P i , and the diameter of the coronary artery entrance to generate a corresponding branch feature data sequence S i , and sort all the obtained branch feature data sequences S i to obtain a branch feature data set D in (S 1 ... S i ... S n ).
血流储备分数处理模块206用于将分支特征数据集合D in(S 1…S i…S n)输入预设的人工神经网络ANN模型进行运算输出分支运算结果集合D out(U 1…U i…U n); 并将集合中各个分支运算结果U i作为对应的靶点P i的血流储备分数分析结果进行输出。 The fractional blood flow reserve processing module 206 is used to input the branch feature data set D in (S 1 ... S i ... S n ) into the preset artificial neural network ANN model for calculation and output the branch operation result set D out (U 1 ... U i ... U n ); and output the operation result U i of each branch in the set as the analysis result of the blood flow reserve fraction of the corresponding target point P i .
本发明实施例提供的一种基于血管造影图像分析血流储备分数的处理装置,可以执行上述方法实施例中的方法步骤,其实现原理和技术效果类似,在此不再赘述。The embodiment of the present invention provides a processing device for analyzing blood flow reserve fraction based on angiography images, which can execute the method steps in the above method embodiments, and its implementation principle and technical effect are similar, and will not be repeated here.
需要说明的是,应理解以上装置的各个模块的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且这些模块可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分模块通过处理元件调用软件的形式实现,部分模块通过硬件的形式实现。例如,获取模块可以为单独设立的处理元件,也可以集成在上述装置的某一个芯片中实现,此外,也可以以程序代码的形式存储于上述装置的存储器中,由上述装置的某一个处理元件调用并执行以上确定模块的功能。其它模块的实现与之类似。此外这些模块全部或部分可以集成在一起,也可以独立实现。这里所描述的处理元件可以是一种集成电路,具有信号的处理能力。在实现过程中,上述方法的各步骤或以上各个模块可以通过处理器元件中的硬件的集成逻辑电路或者软件形式的指令完成。It should be noted that it should be understood that the division of each module of the above device is only a division of logical functions, and may be fully or partially integrated into one physical entity or physically separated during actual implementation. And these modules can all be implemented in the form of calling software through processing elements; they can also be implemented in the form of hardware; some modules can also be implemented in the form of calling software through processing elements, and some modules can be implemented in the form of hardware. For example, the acquisition module may be a separate processing element, or may be integrated into a certain chip of the above-mentioned device. In addition, it may also be stored in the memory of the above-mentioned device in the form of program code, and a certain processing element of the above-mentioned device calls and executes the function of the above determination module. The implementation of other modules is similar. In addition, all or part of these modules can be integrated together, and can also be implemented independently. The processing element described here may be an integrated circuit with signal processing capability. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or an instruction in the form of software.
例如,以上这些模块可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(Application Specific Integrated Circuit,ASIC),或,一个或多个数字信号处理器(Digital Signal Processor,DSP),或,一个或者多个现场可编程门阵列(Field Programmable Gate Array,FPGA)等。再如,当以上某个模块通过处理元件调度程序代码的形式实现时,该处理元件可以是通用处理器,例如中央处理器(Central Processing Unit,CPU)或其它可以调用程序代码的处理器。再如,这些模块可以集成在一起,以片上系统(System-on-a-chip,SOC)的形式实现。For example, the above modules may be one or more integrated circuits configured to implement the above method, for example: one or more specific integrated circuits (Application Specific Integrated Circuit, ASIC), or, one or more digital signal processors (Digital Signal Processor, DSP), or, one or more field programmable gate arrays (Field Programmable Gate Array, FPGA) and the like. For another example, when one of the above modules is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (Central Processing Unit, CPU) or other processors that can call program codes. For another example, these modules can be integrated together and implemented in the form of a System-on-a-chip (SOC).
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实 现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行该计算机程序指令时,全部或部分地产生按照本发明实施例所描述的流程或功能。上述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。上述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,上述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线路(Digital Subscriber Line,DSL))或无线(例如红外、无线、蓝牙、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。上述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。上述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, all or part of the processes or functions described in accordance with the embodiments of the present invention will be generated. The above-mentioned computers may be general-purpose computers, special-purpose computers, computer networks, or other programmable devices. The above-mentioned computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the above-mentioned computer instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (such as infrared, wireless, bluetooth, microwave, etc.). The above-mentioned computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media. The above-mentioned usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, DVD), or a semiconductor medium (for example, a solid state disk (solid state disk, SSD)) and the like.
图3为本发明实施例三提供的一种电子设备的结构示意图。该电子设备可以为前述的终端设备或者服务器,也可以为与前述终端设备或者服务器连接的实现本发明实施例方法的终端设备或服务器。如图3所示,该电子设备可以包括:处理器301(例如CPU)、存储器302、收发器303;收发器303耦合至处理器301,处理器301控制收发器303的收发动作。存储器302中可以存储各种指令,以用于完成各种处理功能以及实现本发明上述实施例中提供的方法和处理过程。优选的,本发明实施例涉及的电子设备还包括:电源304、系统总线305以及通信端口306。系统总线305用于实现元件之间的通信连接。上述通信端口306用于电子设备与其他外设之间进行连接通信。FIG. 3 is a schematic structural diagram of an electronic device provided by Embodiment 3 of the present invention. The electronic device may be the aforementioned terminal device or server, or may be a terminal device or server connected to the aforementioned terminal device or server to implement the method of the embodiment of the present invention. As shown in FIG. 3 , the electronic device may include: a processor 301 (such as a CPU), a memory 302 , and a transceiver 303 ; Various instructions may be stored in the memory 302 for completing various processing functions and realizing the methods and processing procedures provided in the above-mentioned embodiments of the present invention. Preferably, the electronic device involved in this embodiment of the present invention further includes: a power supply 304 , a system bus 305 and a communication port 306 . The system bus 305 is used to realize the communication connection among the components. The above-mentioned communication port 306 is used for connection and communication between the electronic device and other peripheral devices.
在图3中提到的系统总线可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。该系统总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。通信接口用于实现数据库访问装置与 其他设备(例如客户端、读写库和只读库)之间的通信。存储器可能包含随机存取存储器(Random Access Memory,RAM),也可能还包括非易失性存储器(Non-Volatile Memory),例如至少一个磁盘存储器。The system bus mentioned in FIG. 3 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus or the like. The system bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The communication interface is used to realize the communication between the database access device and other devices (such as client, read-write library and read-only library). The memory may include random access memory (Random Access Memory, RAM), and may also include non-volatile memory (Non-Volatile Memory), such as at least one disk memory.
上述的处理器可以是通用处理器,包括中央处理器CPU、网络处理器(Network Processor,NP)等;还可以是数字信号处理器DSP、专用集成电路ASIC、现场可编程门阵列FPGA或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above-mentioned processor can be a general-purpose processor, including a central processing unit CPU, a network processor (Network Processor, NP), etc.; it can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components.
需要说明的是,本发明实施例还提供一种计算机可读存储介质,该存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述实施例中提供的方法和处理过程。It should be noted that the embodiments of the present invention also provide a computer-readable storage medium, and instructions are stored in the storage medium, and when the storage medium is run on a computer, the computer executes the methods and processing procedures provided in the above-mentioned embodiments.
本发明实施例还提供一种运行指令的芯片,该芯片用于执行上述实施例中提供的方法和处理过程。The embodiment of the present invention also provides a chip for running instructions, and the chip is used for executing the method and the processing procedure provided in the foregoing embodiments.
本发明实施例提供了一种基于血管造影图像分析血流储备分数的处理方法、装置、电子设备及计算机可读存储介质,基于图像目标检测与语义分割模型对冠状动脉血管的血管造影图像进行冠脉口血管段与狭窄血管段识别,并对识别出的冠脉口血管段直径、狭窄血管段的直径变化序列和狭窄率进行QCA分析;当用户在图像上标记出FFR测量点时,使用ANN模型基于前述QCA分析结果对FFR进行分析得到对应的FFR数值。通过本发明,不但避免了侵入式测量带来的个人损伤,还大大降低了测量难度,提高了测量安全性和测量效率。An embodiment of the present invention provides a processing method, device, electronic device, and computer-readable storage medium for analyzing blood flow reserve fraction based on angiographic images. Based on the image target detection and semantic segmentation model, the angiographic images of coronary vessels are used to identify the coronary ostium vessel segment and the stenotic vessel segment, and perform QCA analysis on the diameter of the identified coronary ostium vessel segment, the diameter change sequence of the stenotic vessel segment, and the stenosis rate; when the user marks the FFR measurement point on the image, use the ANN model to analyze the FFR based on the aforementioned QCA analysis results to obtain the corresponding FFR value . The invention not only avoids personal injury caused by intrusive measurement, but also greatly reduces measurement difficulty, and improves measurement safety and measurement efficiency.
专业人员应该还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本 发明的范围。Professionals should further realize that the units and algorithm steps of the examples described in the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to their functions in the above description. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
结合本文中所公开的实施例描述的方法或算法的步骤可以用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be implemented by hardware, software modules executed by a processor, or a combination of both. The software module can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the technical field.
以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above-mentioned specific implementation manners further describe the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above-mentioned descriptions are only specific implementation modes of the present invention, and are not used to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (10)

  1. 一种基于血管造影图像分析血流储备分数的处理方法,其特征在于,所述方法包括:A processing method for analyzing blood flow reserve fraction based on angiographic images, characterized in that the method comprises:
    获取血管造影图像作为第一图像;acquiring an angiographic image as a first image;
    基于预设的图像目标检测与语义分割模型,对所述第一图像进行冠脉入口血管与狭窄段血管的目标检测和语义分割处理,从而在所述第一图像上得到一个目标检测框A以及一个或多个目标检测框B;所述目标检测框A、B内均包括一段血管掩膜图像,所述目标检测框A对应的检测目标类型为冠脉入口血管类型,所述目标检测框B对应的检测目标类型为狭窄段血管类型;Based on the preset image target detection and semantic segmentation model, the first image is subjected to target detection and semantic segmentation processing of coronary inlet vessels and stenotic vessels, so as to obtain a target detection frame A and one or more target detection frames B on the first image; each of the target detection frames A and B includes a section of blood vessel mask image, the detection target type corresponding to the target detection frame A is a coronary artery portal blood vessel type, and the detection target type corresponding to the target detection frame B is a stenotic segment blood vessel type;
    对所述目标检测框A的所述血管掩膜图像进行冠脉入口直径分析生成对应的冠脉入口直径;并对各个所述目标检测框B的所述血管掩膜图像进行狭窄段血管直径与狭窄率分析生成对应的第一狭窄段直径序列和第一狭窄率;Analyzing the coronary artery inlet diameter on the blood vessel mask image of the target detection frame A to generate a corresponding coronary artery inlet diameter; and analyzing the stenotic segment blood vessel diameter and stenosis rate analysis on the blood vessel mask image of each target detection frame B to generate a corresponding first stenosis segment diameter sequence and first stenosis rate;
    将用户在所述第一图像上标记的血流储备分数分析点作为对应的靶点P i,并将用户对所述靶点P i处的血管直径测量结果作为对应的靶点直径;其中,1≤i≤n,n为测量点总数; Taking the fractional blood flow reserve analysis point marked by the user on the first image as the corresponding target point P i , and taking the measurement result of the blood vessel diameter at the target point P i by the user as the corresponding target point diameter; wherein, 1≤i≤n, n is the total number of measurement points;
    对各个所述靶点P i在所述第一图像上所处的血管分支进行确认生成对应的血管分支C i,并根据各个所述血管分支C i对应的所有所述第一狭窄段直径序列和所述第一狭窄率、以及对应的所述靶点P i的所述靶点直径、以及所述冠脉入口直径进行血管分支特征提取处理生成对应的分支特征数据序列S i,并对得到的所有所述分支特征数据序列S i进行排序得到分支特征数据集合D in(S 1…S i…S n); Confirm the vascular branch of each target point P i on the first image to generate a corresponding vascular branch C i , and perform a vascular branch feature extraction process according to all the first stenotic segment diameter sequences and the first stenosis rate corresponding to each of the vascular branch C i , the target point diameter of the corresponding target point P i , and the coronary artery entrance diameter to generate a corresponding branch feature data sequence S i , and sort all the obtained branch feature data sequences S i to obtain a branch feature data set D in (S 1 ... S i ... S n );
    将所述分支特征数据集合D in(S 1…S i…S n)输入预设的人工神经网络ANN模型进行运算输出分支运算结果集合D out(U 1…U i…U n);并将集合中各个分支运算结果U i作为对应的所述靶点P i的血流储备分数分析结果进行输出。 Input the branch feature data set D in (S 1 ... S i ... S n ) into the preset artificial neural network ANN model for operation and output the branch operation result set D out (U 1 ... U i ... U n ); and output the operation result U i of each branch in the set as the analysis result of the blood flow reserve fraction of the corresponding target point P i .
  2. 根据权利要求1所述的基于血管造影图像分析血流储备分数的处理方法,其特征在于,所述图像目标检测与语义分割模型包括Mask R-CNN模型;The processing method based on angiographic image analysis blood flow reserve fraction according to claim 1, wherein the image target detection and semantic segmentation model comprises a Mask R-CNN model;
    所述图像目标检测与语义分割模型具体为Mask R-CNN模型时,包括特征提取网络层、区域候选网络层、区域对齐网络层和区域头部网络层;When the image target detection and semantic segmentation model is specifically the Mask R-CNN model, it includes a feature extraction network layer, a region candidate network layer, a region alignment network layer and a region head network layer;
    所述特征提取网络层与所述区域候选网络层连接,所述区域候选网络层与所述区域对齐网络层连接,所述区域对齐网络层与所述区域头部网络层连接;The feature extraction network layer is connected to the region candidate network layer, the region candidate network layer is connected to the region alignment network layer, and the region alignment network layer is connected to the region head network layer;
    所述特征提取网络层具体由五级残差网络和对应的五级特征金字塔网络构成;所述区域候选网络层包括五级区域候选网络,与所述五级特征金字塔网络对应;在实现所述五级残差网络时,使用残差网络ResNet-50网络结构进行实现并以此作为所述特征提取网络层的骨干网络;The feature extraction network layer is specifically composed of a five-level residual network and a corresponding five-level feature pyramid network; the region candidate network layer includes a five-level region candidate network, corresponding to the five-level feature pyramid network; when implementing the five-level residual network, use the residual network ResNet-50 network structure to implement and use this as the backbone network of the feature extraction network layer;
    所述区域头部网络层包括两个子网络分别为:目标检测分支网络和目标分割分支网络;所述目标检测分支网络用于输出检测目标类型为冠脉入口血管类型的所述目标检测框A,以及检测目标类型为狭窄段血管类型的所述目标检测框B;所述目标分割分支网络用于在所述目标检测框A中输出对应的冠脉入口血管的血管掩膜图像,以及在所述目标检测框B中输出对应的狭窄段血管的血管掩膜图像。The regional head network layer includes two sub-networks respectively: a target detection branch network and a target segmentation branch network; the target detection branch network is used to output the target detection frame A whose detection target type is a coronary inlet vessel type, and the target detection frame B whose detection target type is a stenotic segment blood vessel type; the target segmentation branch network is used to output the blood vessel mask image of the corresponding coronary inlet vessel in the target detection frame A, and output the corresponding blood vessel mask image of the narrow segment blood vessel in the target detection frame B.
  3. 根据权利要求1所述的基于血管造影图像分析血流储备分数的处理方法,其特征在于,所述对所述目标检测框A的所述血管掩膜图像进行冠脉入口直径分析生成对应的冠脉入口直径,具体包括:The processing method for analyzing blood flow reserve fraction based on angiographic images according to claim 1, wherein the analysis of the coronary artery entrance diameter on the blood vessel mask image of the target detection frame A to generate a corresponding coronary artery entrance diameter specifically includes:
    将所述目标检测框A的所述血管掩膜图像作为当前血管掩膜图像;Using the blood vessel mask image of the target detection frame A as the current blood vessel mask image;
    对所述当前血管掩膜图像进行血管边缘和血管中心线识别生成对应的当前血管边缘和当前中心线;Performing blood vessel edge and blood vessel centerline identification on the current blood vessel mask image to generate corresponding current blood vessel edges and current centerline;
    将所述当前中心线包括的多个像素点,按序标记为对应的第一像素点X 1,j;其中,1≤j≤m 1,m 1为所述当前中心线的像素点总数;第一个第一像素点X 1,j=1为所述当前血管掩膜图像对应血管的血流流入点,最后一个第一像素点
    Figure PCTCN2022097247-appb-100001
    为所述当前血管掩膜图像对应血管的血流流出点;
    The plurality of pixels included in the current centerline are sequentially marked as corresponding first pixel points X 1,j ; wherein, 1≤j≤m 1 , m 1 is the total number of pixels in the current centerline; the first first pixel point X 1,j=1 is the blood flow inflow point of the blood vessel corresponding to the current blood vessel mask image, and the last first pixel point
    Figure PCTCN2022097247-appb-100001
    The blood outflow point of the blood vessel corresponding to the current blood vessel mask image;
    经过各个所述第一像素点X 1,j做与所述当前血管边缘的相交线段得到多 个第一相交线段;并从中选择最短的所述第一相交线段的长度作为与当前第一像素点X 1,X对应的第一像素点血管直径L 1,jThrough each of the first pixel points X 1,j, make a plurality of first intersecting line segments with the edge of the current blood vessel to obtain a plurality of first intersecting line segments; and select the shortest length of the first intersecting line segment as the first pixel point blood vessel diameter L 1,j corresponding to the current first pixel point X 1,X ;
    对得到的所有所述第一像素点血管直径L 1,j进行均值计算生成所述冠脉入口直径。 Perform mean calculation on all obtained first pixel vessel diameters L 1,j to generate the coronary artery entrance diameter.
  4. 根据权利要求1所述的基于血管造影图像分析血流储备分数的处理方法,其特征在于,所述对各个所述目标检测框B的所述血管掩膜图像进行狭窄段血管直径与狭窄率分析生成对应的第一狭窄段直径序列和第一狭窄率,具体包括:The processing method for analyzing blood flow reserve fraction based on angiographic images according to claim 1, wherein the analysis of the stenotic vessel diameter and stenosis rate on the blood vessel mask image of each target detection frame B generates a corresponding first stenotic segment diameter sequence and first stenosis rate, specifically comprising:
    将当前目标检测框B的所述血管掩膜图像作为当前血管掩膜图像;Using the blood vessel mask image of the current target detection frame B as the current blood vessel mask image;
    对所述当前血管掩膜图像进行血管边缘和血管中心线识别生成对应的当前血管边缘和当前中心线;Performing blood vessel edge and blood vessel centerline identification on the current blood vessel mask image to generate corresponding current blood vessel edges and current centerline;
    将所述当前中心线包括的多个像素点,按序标记为对应的第二像素点X 2,h;其中,1≤h≤m 2,m 2为所述当前中心线的像素点总数;第一个第二像素点X 2,h=1为所述当前血管掩膜图像对应血管的血流流入点,最后一个第二像素点
    Figure PCTCN2022097247-appb-100002
    为所述当前血管掩膜图像对应血管的血流流出点;
    The plurality of pixels included in the current centerline are sequentially marked as corresponding second pixel points X 2,h ; wherein, 1≤h≤m 2 , m 2 is the total number of pixels in the current centerline; the first second pixel point X 2,h=1 is the blood flow inflow point of the blood vessel corresponding to the current blood vessel mask image, and the last second pixel point
    Figure PCTCN2022097247-appb-100002
    The blood outflow point of the blood vessel corresponding to the current blood vessel mask image;
    经过各个所述第二像素点X 2,h做与所述当前血管边缘的相交线段得到多个第二相交线段;并从中选择最短的所述第二相交线段的长度作为与当前第二像素点X 2,h对应的第二像素点血管直径L 2,hThrough each of the second pixel points X 2, h do intersection line segments with the current blood vessel edge to obtain a plurality of second intersection line segments; and select the length of the shortest second intersection line segment therefrom as the second pixel point blood vessel diameter L 2,h corresponding to the current second pixel point X 2,h ;
    另,根据第二像素点血管直径L 2,h=1和第二像素点血管直径
    Figure PCTCN2022097247-appb-100003
    构建可以反映第一个第二像素点X 2,h=1到最后一个第二像素点
    Figure PCTCN2022097247-appb-100004
    的血管线性变化关系的线性变化函数f(h),
    In addition, according to the second pixel blood vessel diameter L 2, h=1 and the second pixel blood vessel diameter
    Figure PCTCN2022097247-appb-100003
    The construction can reflect the first second pixel point X 2, h=1 to the last second pixel point
    Figure PCTCN2022097247-appb-100004
    The linear change function f(h) of the blood vessel linear change relationship,
    f(h)=L 2,h=1+k*(h-1), f(h)=L 2,h=1 +k*(h-1),
    Figure PCTCN2022097247-appb-100005
    Figure PCTCN2022097247-appb-100005
    并根据所述线性变化函数f(h),对各个所述第二像素点X 2,h对应的线性变化直径长度进行计算生成对应的第二像素点线性直径L′ 2,hAnd according to the linear change function f(h), calculate the linear change diameter length corresponding to each second pixel point X 2,h to generate the corresponding second pixel point linear diameter L′ 2,h ,
    Figure PCTCN2022097247-appb-100006
    Figure PCTCN2022097247-appb-100006
    再根据所述第二像素点血管直径L 2,h和所述第二像素点线性直径L′ 2,h,计算各个所述第二像素点X 2,h对应的第二像素点狭窄率R 2,hThen, according to the second pixel blood vessel diameter L 2,h and the second pixel linear diameter L′ 2,h , calculate the second pixel stenosis rate R 2 ,h corresponding to each second pixel X 2,h ,
    Figure PCTCN2022097247-appb-100007
    Figure PCTCN2022097247-appb-100007
    将所述第二像素点血管直径L 2,h作为对应的第一狭窄段直径,并按第二像素点索引h从小到大的顺序对所有所述第一狭窄段直径进行排序,生成与所述当前血管掩膜图像对应的所述第一狭窄段直径序列;并从得到的所有所述第二像素点狭窄率R 2,h中选择最大值,作为与所述当前血管掩膜图像对应的所述第一狭窄率。 Using the second pixel point blood vessel diameter L 2,h as the corresponding first stenosis segment diameter, sorting all the first stenosis segment diameters in ascending order according to the second pixel point index h, generating the first stenosis segment diameter sequence corresponding to the current blood vessel mask image; and selecting the maximum value from all the obtained second pixel point stenosis rates R 2,h as the first stenosis rate corresponding to the current blood vessel mask image.
  5. 根据权利要求1所述的基于血管造影图像分析血流储备分数的处理方法,其特征在于,所述对各个所述靶点P i在所述第一图像上所处的血管分支进行确认生成对应的血管分支C i,并根据各个所述血管分支C i对应的所有所述第一狭窄段直径序列和所述第一狭窄率、以及对应的所述靶点P i的所述靶点直径、以及所述冠脉入口直径进行血管分支特征提取处理生成对应的分支特征数据序列S i,并对得到的所有所述分支特征数据序列S i进行排序得到分支特征数据集合D in(S 1…S i…S n),具体包括: The method for processing blood flow reserve fraction based on angiographic image analysis according to claim 1, wherein the blood vessel branch of each target point P i on the first image is confirmed to generate a corresponding blood vessel branch C i , and according to all the first stenotic segment diameter sequences and the first stenosis rate corresponding to each of the blood vessel branches C i , and the corresponding target point diameter of the target point Pi and the coronary artery entrance diameter, a blood vessel branch feature extraction process is performed to generate a corresponding branch feature data sequence S i , and all the obtained branch feature data are obtained. The sequence S i is sorted to obtain the branch feature data set D in (S 1 ... S i ... S n ), which specifically includes:
    在所述第一图像上,将所述目标检测框A的所述血管掩膜图像的血管起始位置作为冠脉入口位置;并按血流方向,将从所述冠脉入口位置到各个所述靶点P i的血流路径作为与各个所述靶点P i对应的所述血管分支C iOn the first image, the starting position of the blood vessel in the blood vessel mask image of the target detection frame A is used as the coronary artery inlet position; and according to the blood flow direction, the blood flow path from the coronary artery inlet position to each of the target points P i is used as the blood vessel branch C i corresponding to each of the target points P i ;
    将各个所述血管分支C i途经的所有所述目标检测框B的所述第一狭窄段直径序列归入对应的第一序列集合;并在各个所述第一序列集合中,按血流方向对所有所述第一狭窄段直径序列的第一狭窄段直径进行全排序,得到对应的第一分支狭窄段直径序列; Classifying the first stenotic segment diameter sequences of all the target detection frames B passed by each of the blood vessel branches Ci into corresponding first sequence sets; and in each of the first sequence sets, sorting the first stenotic segment diameters of all the first stenotic segment diameter sequences according to the blood flow direction to obtain the corresponding first branch stenotic segment diameter sequences;
    从各个所述血管分支C i途经的所有所述目标检测框B的所述第一狭窄率中,选择最大值作为对应的第一分支最大狭窄率; From the first stenosis rates of all the target detection frames B passed by each of the blood vessel branches Ci , select a maximum value as the corresponding maximum stenosis rate of the first branch;
    将与各个所述血管分支C i对应的所述靶点P i的所述靶点直径作为对应的第一分支靶点直径; Taking the target diameter of the target point P i corresponding to each of the blood vessel branches C i as the corresponding first branch target diameter;
    对各个所述血管分支C i,将所述冠脉入口直径以及对应的所述第一分支狭窄段直径序列、所述第一分支靶点直径和所述第一分支最大狭窄率,组成对应的所述分支特征数据序列S iFor each of the blood vessel branches C i , the coronary inlet diameter and the corresponding first branch stenosis segment diameter sequence, the first branch target point diameter and the first branch maximum stenosis rate are combined to form the corresponding branch characteristic data sequence S i ;
    按靶点索引i从小到大的顺序对所有所述分支特征数据序列S i进行排序,从而得到所述分支特征数据集合D in(S 1…S i…S n)。 All the branch feature data sequences S i are sorted in ascending order of the target point index i, so as to obtain the branch feature data set D in (S 1 ... S i ... S n ).
  6. 根据权利要求1所述的基于血管造影图像分析血流储备分数的处理方法,其特征在于,所述将所述分支特征数据集合D in(S 1…S i…S n)输入预设的人工神经网络ANN模型进行运算输出分支运算结果集合D out(U 1…U i…U n),具体包括: The processing method for analyzing blood flow reserve fractions based on angiographic images according to claim 1, wherein the branch feature data set D in (S 1 ... S i ... S n ) is input into a preset artificial neural network ANN model for calculation and output branch operation result set D out (U 1 ... U i ... U n ), specifically comprising:
    将所述分支特征数据集合D in(S 1…S i…S n)划分为n个一维的第一数据片段;每个第一数据片段对应一个分支特征数据序列S iDividing the branch feature data set D in (S 1 ... S i ... S n ) into n one-dimensional first data segments; each first data segment corresponds to a branch feature data sequence S i ;
    将各个所述第一数据片段,输入所述人工神经网络ANN模型进行运算得到对应的所述分支运算结果U iInput each of the first data fragments into the artificial neural network (ANN) model for calculation to obtain the corresponding branch calculation result U i ;
    按靶点索引i从小到大的顺序对所有所述分支运算结果U i进行排序,从而得到所述分支运算结果集合D out(U 1…U i…U n)。 All the branch operation results U i are sorted in ascending order of the target point index i, so as to obtain the branch operation result set D out (U 1 ... U i ... U n ).
  7. 根据权利要求6所述的基于血管造影图像分析血流储备分数的处理方法,其特征在于,The processing method for analyzing blood flow reserve fraction based on angiographic images according to claim 6, characterized in that,
    所述人工神经网络ANN模型包括输入层、一层或多层隐藏层和输出层;所述输入层包括多个输入层节点;各个所述隐藏层包括多个隐藏层节点;所述输出层包括一个输出层节点;The artificial neural network ANN model includes an input layer, one or more hidden layers and an output layer; the input layer includes a plurality of input layer nodes; each of the hidden layers includes a plurality of hidden layer nodes; the output layer includes an output layer node;
    所述输入层用于将所述第一数据片段的各个片段数据输入对应的所述输入层节点作为对应的节点输出值;The input layer is used to input each segment data of the first data segment to the corresponding input layer node as a corresponding node output value;
    第一层隐藏层的各个所述隐藏层节点分别与所有所述输入层节点全连接形成对应的第一全连接网络;所述第一层隐藏层用于在本层的各个所述隐藏层节点上,将对应的所述第一全连接网络中所有所述输入层节点的节点输出值输入预设的全连接线性运算函数中进行运算生成对应的第一结果,并将所 述第一结果输入预设的激活函数中进行运算生成对应的第二结果,并将所述第二结果作为当前隐藏层节点的节点输出值;Each of the hidden layer nodes of the first hidden layer is fully connected with all the input layer nodes to form a corresponding first fully connected network; the first hidden layer is used to input the node output values of all the input layer nodes in the corresponding first fully connected network into a preset fully connected linear operation function to generate a corresponding first result, and input the first result into a preset activation function to generate a corresponding second result, and use the second result as the node output value of the current hidden layer node on each of the hidden layer nodes of this layer;
    下一层隐藏层的各个所述隐藏层节点分别与上一层隐藏层的所有所述隐藏层节点全连接形成对应的第二全连接网络;所述下一层隐藏层用于在本层的各个所述隐藏层节点上,将对应的所述第二全连接网络中所述上一层隐藏层的所有所述隐藏层节点的节点输出值输入预设的全连接线性运算函数中进行运算生成对应的第三结果,并将所述第三结果输入预设的激活函数中进行运算生成对应的第四结果,并将所述第四结果作为当前隐藏层节点的节点输出值;Each of the hidden layer nodes of the next hidden layer is fully connected with all the hidden layer nodes of the previous hidden layer to form a corresponding second fully connected network; the next hidden layer is used to input the node output values of all the hidden layer nodes of the upper hidden layer in the corresponding second fully connected network into a preset fully connected linear operation function to generate a corresponding third result, and input the third result into a preset activation function to perform calculation to generate a corresponding fourth result, and use the fourth result as the node output value of the current hidden layer node. ;
    所述输出层的所述输出层节点与最后一层隐藏层的所有所述隐藏层节点全连接形成对应的第三全连接网络;所述输出层用于在所述输出层节点上,将对应的所述第三全连接网络中所述最后一层隐藏层的所有所述隐藏层节点的节点输出值输入预设的全连接线性运算函数中进行运算生成对应的第五结果,并将所述第五结果输入预设的激活函数中进行运算生成对应的第六结果,并将所述第六结果作为所述分支运算结果U iThe output layer nodes of the output layer are fully connected with all the hidden layer nodes of the last hidden layer to form a corresponding third fully connected network; the output layer is used to input, on the output layer nodes, the node output values of all the hidden layer nodes of the last hidden layer in the corresponding third fully connected network into a preset fully connected linear operation function for operation to generate a corresponding fifth result, and input the fifth result into a preset activation function for operation to generate a corresponding sixth result, and use the sixth result as the branch operation result U i ;
    所述隐藏层和所述输出层使用的所述激活函数默认为ReLU函数。The activation function used by the hidden layer and the output layer is a ReLU function by default.
  8. 一种用于实现权利要求1-7任一项所述的基于血管造影图像分析血流储备分数的处理方法步骤的装置,其特征在于,所述装置包括:获取模块、图像目标检测与语义分割模块、定量冠状动脉造影分析处理模块、靶点处理模块、血管分支处理模块和血流储备分数处理模块;A device for implementing the steps of the processing method for analyzing blood flow reserve based on angiographic image analysis according to any one of claims 1-7, wherein the device comprises: an acquisition module, an image target detection and semantic segmentation module, a quantitative coronary angiography analysis and processing module, a target point processing module, a blood vessel branch processing module, and a blood flow reserve processing module;
    所述获取模块用于获取血管造影图像作为第一图像;The obtaining module is used to obtain an angiographic image as a first image;
    所述图像目标检测与语义分割模块用于基于预设的图像目标检测与语义分割模型,对所述第一图像进行冠脉入口血管与狭窄段血管的目标检测和语义分割处理,从而在所述第一图像上得到一个目标检测框A以及一个或多个目标检测框B;所述目标检测框A、B内均包括一段血管掩膜图像,所述目标检测框A对应的检测目标类型为冠脉入口血管类型,所述目标检测框B对应 的检测目标类型为狭窄段血管类型;The image target detection and semantic segmentation module is used to perform target detection and semantic segmentation processing of coronary inlet vessels and stenotic vessels on the first image based on a preset image target detection and semantic segmentation model, so as to obtain a target detection frame A and one or more target detection frames B on the first image; each of the target detection frames A and B includes a section of blood vessel mask image, the detection target type corresponding to the target detection frame A is the coronary artery entrance blood vessel type, and the detection target type corresponding to the target detection frame B is the stenotic segment blood vessel type;
    所述定量冠状动脉造影分析处理模块用于对所述目标检测框A的所述血管掩膜图像进行冠脉入口直径分析生成对应的冠脉入口直径;并对各个所述目标检测框B的所述血管掩膜图像进行狭窄段血管直径与狭窄率分析生成对应的第一狭窄段直径序列和第一狭窄率;The quantitative coronary angiography analysis and processing module is used to analyze the coronary artery entrance diameter on the blood vessel mask image of the target detection frame A to generate a corresponding coronary artery entrance diameter; and analyze the stenotic segment blood vessel diameter and stenosis rate analysis on the blood vessel mask image of each target detection frame B to generate a corresponding first stenosis segment diameter sequence and first stenosis rate;
    所述靶点处理模块用于将用户在所述第一图像上标记的血流储备分数分析点作为对应的靶点P i,并将用户对所述靶点P i处的血管直径测量结果作为对应的靶点直径;其中,1≤i≤n,n为测量点总数; The target point processing module is used to use the blood flow reserve fraction analysis point marked by the user on the first image as the corresponding target point P i , and use the user's blood vessel diameter measurement result at the target point P i as the corresponding target point diameter; where 1≤i≤n, n is the total number of measurement points;
    所述血管分支处理模块用于对各个所述靶点P i在所述第一图像上所处的血管分支进行确认生成对应的血管分支C i,并根据各个所述血管分支C i对应的所有所述第一狭窄段直径序列和所述第一狭窄率、以及对应的所述靶点P i的所述靶点直径、以及所述冠脉入口直径进行血管分支特征提取处理生成对应的分支特征数据序列S i,并对得到的所有所述分支特征数据序列S i进行排序得到分支特征数据集合D in(S 1…S i…S n); The blood vessel branch processing module is used to confirm the blood vessel branch of each target point P i on the first image to generate a corresponding blood vessel branch C i , and perform blood vessel branch feature extraction processing according to all the first stenosis segment diameter sequences and the first stenosis rate corresponding to each of the blood vessel branch C i , the target point diameter of the corresponding target point Pi , and the coronary artery entrance diameter to generate a corresponding branch feature data sequence S i , and sort all the obtained branch feature data sequences S i to obtain a branch feature data set D in (S 1 ... S i ... S n );
    所述血流储备分数处理模块用于将所述分支特征数据集合D in(S 1…S i…S n)输入预设的人工神经网络ANN模型进行运算输出分支运算结果集合D out(U 1…U i…U n);并将集合中各个分支运算结果U i作为对应的所述靶点P i的血流储备分数分析结果进行输出。 The blood flow reserve fraction processing module is used to input the branch feature data set D in (S 1 ... S i ... S n ) into the preset artificial neural network ANN model to perform calculation and output a branch operation result set D out (U 1 ... U i ... U n ); and output each branch operation result U i in the set as the corresponding blood flow reserve fraction analysis result of the target point P i .
  9. 一种电子设备,其特征在于,包括:存储器、处理器和收发器;An electronic device, characterized in that it includes: a memory, a processor, and a transceiver;
    所述处理器用于与所述存储器耦合,读取并执行所述存储器中的指令,以实现权利要求1-7任一项所述的方法步骤;The processor is configured to be coupled to the memory, read and execute instructions in the memory, so as to implement the method steps described in any one of claims 1-7;
    所述收发器与所述处理器耦合,由所述处理器控制所述收发器进行消息收发。The transceiver is coupled to the processor, and the processor controls the transceiver to send and receive messages.
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机指令,当所述计算机指令被计算机执行时,使得所述计算机执行权利要求1-7任一项所述的方法的指令。A computer-readable storage medium, characterized in that the computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a computer, the computer executes the instructions of the method according to any one of claims 1-7.
PCT/CN2022/097247 2022-01-20 2022-06-07 Processing method and apparatus for analyzing fractional flow reserve on the basis of angiographic image WO2023137948A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210067548.2 2022-01-20
CN202210067548.2A CN116523813A (en) 2022-01-20 2022-01-20 Processing method and device for analyzing fractional flow reserve based on angiographic image

Publications (1)

Publication Number Publication Date
WO2023137948A1 true WO2023137948A1 (en) 2023-07-27

Family

ID=87347709

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/097247 WO2023137948A1 (en) 2022-01-20 2022-06-07 Processing method and apparatus for analyzing fractional flow reserve on the basis of angiographic image

Country Status (2)

Country Link
CN (1) CN116523813A (en)
WO (1) WO2023137948A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117197164A (en) * 2023-11-08 2023-12-08 中国医学科学院北京协和医院 Pipeline drainage basin calculating method and system for calculating myocardial blood vessel blood supply area
CN117274502A (en) * 2023-11-17 2023-12-22 北京唯迈医疗设备有限公司 Image processing method and device for assisting interventional operation

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104867147A (en) * 2015-05-21 2015-08-26 北京工业大学 SYNTAX automatic scoring method based on coronary angiogram image segmentation
US20180116533A1 (en) * 2015-04-27 2018-05-03 Coronary Technologies Sarl Computer-implemented method for identifying zones of stasis and stenosis in blood vessels
CN109493323A (en) * 2018-10-22 2019-03-19 北京师范大学 The dual determination method of coronary stenosis based on section deformation geological information
CN111657883A (en) * 2020-06-03 2020-09-15 北京理工大学 Coronary artery SYNTAX score automatic calculation method and system based on sequence radiography
CN111667456A (en) * 2020-04-28 2020-09-15 北京理工大学 Method and device for detecting vascular stenosis in coronary artery X-ray sequence radiography

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180116533A1 (en) * 2015-04-27 2018-05-03 Coronary Technologies Sarl Computer-implemented method for identifying zones of stasis and stenosis in blood vessels
CN104867147A (en) * 2015-05-21 2015-08-26 北京工业大学 SYNTAX automatic scoring method based on coronary angiogram image segmentation
CN109493323A (en) * 2018-10-22 2019-03-19 北京师范大学 The dual determination method of coronary stenosis based on section deformation geological information
CN111667456A (en) * 2020-04-28 2020-09-15 北京理工大学 Method and device for detecting vascular stenosis in coronary artery X-ray sequence radiography
CN111657883A (en) * 2020-06-03 2020-09-15 北京理工大学 Coronary artery SYNTAX score automatic calculation method and system based on sequence radiography

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117197164A (en) * 2023-11-08 2023-12-08 中国医学科学院北京协和医院 Pipeline drainage basin calculating method and system for calculating myocardial blood vessel blood supply area
CN117197164B (en) * 2023-11-08 2024-03-08 中国医学科学院北京协和医院 Pipeline drainage basin calculating method and system for calculating myocardial blood vessel blood supply area
CN117274502A (en) * 2023-11-17 2023-12-22 北京唯迈医疗设备有限公司 Image processing method and device for assisting interventional operation
CN117274502B (en) * 2023-11-17 2024-03-01 北京唯迈医疗设备有限公司 Image processing method and device for assisting interventional operation

Also Published As

Publication number Publication date
CN116523813A (en) 2023-08-01

Similar Documents

Publication Publication Date Title
WO2023137948A1 (en) Processing method and apparatus for analyzing fractional flow reserve on the basis of angiographic image
WO2023130663A1 (en) Coronary angiogram quantitative analysis method and apparatus based on angiogram video
WO2021169549A1 (en) Segmented naming system for lung trachea and blood vessel
US20220036561A1 (en) Method for image segmentation, method for training image segmentation model
CN111242933B (en) Retinal image artery and vein classification device, apparatus, and storage medium
WO2023130662A1 (en) Method and apparatus for screening diastolic and systolic images based on cardiac ultrasound video
CN111145173A (en) Plaque identification method, device, equipment and medium for coronary angiography image
CN112070067B (en) Scatter diagram classification method and device for photoplethysmograph signals
CN111986101B (en) Cerebrovascular map construction method
CN113011509B (en) Lung bronchus classification method and device, electronic equipment and storage medium
CN110348345B (en) Weak supervision time sequence action positioning method based on action consistency
CN114582470A (en) Model training method and device and medical image report labeling method
Bisla et al. Skin lesion segmentation and classification with deep learning system
WO2023130661A1 (en) Method and apparatus for processing two-dimensional spectral doppler echocardiographic image
CN111950408A (en) Finger vein image recognition method and device based on rule graph and storage medium
CN106548213A (en) Blood vessel recognition methodss and device
WO2022105735A1 (en) Coronary artery segmentation method and apparatus, electronic device, and computer-readable storage medium
CN114418976A (en) Analysis method and device of angiography image
CN112288718B (en) Image processing method and apparatus, electronic device, and computer-readable storage medium
CN110717916B (en) Pulmonary embolism detection system based on convolutional neural network
CN111292298A (en) Breast cancer pathological typing determination method, device and storage medium
WO2020199692A1 (en) Method and apparatus for screening predictive image features for cancer metastasis, and storage medium
CN114119645B (en) Method, system, device and medium for determining image segmentation quality
WO2021114626A1 (en) Method for detecting quality of medical record data and related device
Mayya et al. A novel medical support deep learning fusion model for the diagnosis of COVID-19

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22921379

Country of ref document: EP

Kind code of ref document: A1