Improved blood vessel segmentation method and device based on shape constraint and edge indicator function

By introducing shape constraints and edge indication functions into the blood vessel segmentation method, combined with multi-scale Frangi filtering and variational methods, the problem of low segmentation accuracy of low-contrast blood vessel images is solved and a more efficient blood vessel segmentation effect is achieved.

CN118570476AActive Publication Date: 2024-08-30CHINA UNIV OF GEOSCIENCES (WUHAN)

Patent Information

Application Number
CN202410700499.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-08-30
Estimated Expiration
2044-05-31

AI Technical Summary

Technical Problem

Existing blood vessel segmentation methods are prone to over-segmentation and missed segmentation when faced with low-contrast and uneven blood vessel images. They require a large amount of calculation and are sensitive to initial contours and model parameters, resulting in low segmentation accuracy.

Method used

An improved method based on shape constraints and edge indicator functions is adopted, the initial contour is obtained through thresholded multi-scale Frangi filtering, adaptive prior constraint terms, adaptive edge indicator functions and data fitting terms are constructed, and the variation method and gradient descent flow are combined This method forms a fusion model of TM-Frangi filter to improve the accuracy and efficiency of blood vessel segmentation.

Benefits of technology

It significantly improves the accuracy and calculation efficiency of blood vessel segmentation, reduces the calculation amount of the model, enhances the edge indication ability, can adaptively adjust in different areas, promotes the curve to quickly return to the prior shape position, and reduces the calculation time and the number of iterations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570476A
    Figure CN118570476A
Patent Text Reader

Abstract

The invention discloses an improved blood vessel segmentation method and device based on shape constraint and an edge indicator function, and relates to the field of medical image segmentation. The improved blood vessel segmentation method based on the shape constraint and the edge indicator function mainly comprises the following steps: introducing adaptive shape prior constraint and a gradient indicator function into a local active contour model, extracting an initial contour from prior information, solving the model by using a variational method and a gradient descent flow method, and obtaining an initial contour of the local active contour model; and obtaining a final evolution curve and a segmentation result. According to the shape constraint and edge indicator function improvement-based blood vessel segmentation method and device provided by the invention, the segmentation precision can be well improved, and meanwhile, the calculation amount of the model can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of medical image segmentation, and more specifically, to a blood vessel segmentation method and device based on shape constraint and edge indicator function improvement. Background Art

[0002] In medical research, blood vessels play an extremely important role. The correct and rapid segmentation and extraction of blood vessels plays a vital auxiliary role in the diagnosis and treatment of various diseases. Among them, the most challenging work lies in the complex and slender structure of blood vessels and the uneven pixel intensity and fuzziness of blood vessel edges that appear during imaging.

[0003] The active contour model based on level set has become one of the commonly used methods in the segmentation field due to its unique advantages, among which the local active contour model based on local area information is the most representative. Since there is a certain difference in pixel grayscale value between the vascular area and the background area in the vascular image, this type of method uses the energy minimization method in the local range to minimize the pixel difference between the inner and outer areas of the evolution curve, thereby completing the segmentation of the vascular area.

[0004] Taking the localizing region (LR) model proposed by Lankton et al. (S. Lankton and A. Tannenbaum, Localizing Region-Based Active Contours, in IEEE Transactions on Image Processing, vol. 17, no. 11, pp. 2029-2039, Nov. 2008.) as an example, its energy functional is expressed as follows:

[0005]

[0006]

[0007]

[0008]

[0009]

[0010] Where F is some kind of internal energy term, which represents the rules followed by each point on the contour curve under a certain model. Classic segmentation models such as UM (Uniform Modeling) energy and MS (Mean Separation) energy can be used. B (x, y) is a piecewise function used to mask the local area Ω and multiply it by the regularized impulse function To ensure that only the contribution of points near the contour to the model is considered in the model evolution. ε represents the parameter that controls the effective width. is the internal force term of the curve, which is used to ensure the smoothness of the evolution curve. is a regularized step function. The free topological change of the curve is guaranteed by the level set function, which can be well applied to the extraction and segmentation of irregular and multi-target objects. At the same time, it has solid and sufficient mathematical theory as support, can well integrate other knowledge, and has good scalability.

[0011] However, most vascular images are low-contrast and uneven, and the local active contour model only considers the local area information of the image. When facing low-contrast areas, it is easy to have over-segmentation and missed segmentation, resulting in low segmentation accuracy. At the same time, it is necessary to calculate each local area during calculation, resulting in a large amount of calculation for this method. In addition, the local active contour model is sensitive to the initial contour and the setting of model parameters, and has poor applicability. Summary of the invention

[0012] The purpose of the present invention is to provide a blood vessel segmentation method and device based on shape constraints and edge indicator function improvements, which can effectively improve the segmentation accuracy while reducing the amount of model calculation.

[0013] The present invention provides a blood vessel segmentation method based on shape constraint and edge indicator function improvement, comprising the following steps: S1: acquiring a blood vessel image, performing noise reduction processing on the blood vessel image, and obtaining a blood vessel image to be segmented; S2: performing preprocessing by using a thresholded multi-scale Frangi filtering method according to the blood vessel image to be segmented, and obtaining an initial contour; S3: acquiring a local active contour model, and constructing an adaptive prior constraint item, an adaptive edge indicator function, a length regularization item, and a data fitting item of the local active contour model according to the initial contour; S4: acquiring an LR model using UM internal energy, and obtaining a fusion model based on TM-Frangi filtering according to the LR model using UM internal energy, the adaptive prior constraint item, the adaptive edge indicator function, the length regularization item, and the data fitting item of the local active contour model; S5: solving the fusion model based on TM-Frangi filtering by using a variational method and a gradient descent flow method, and obtaining a final evolution curve; S6: obtaining a segmentation result according to the final evolution curve and the blood vessel image.

[0014] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the improved blood vessel segmentation method based on shape constraints and edge indication functions are implemented.

[0015] The present invention also provides a computer device, including a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps of the improved blood vessel segmentation method based on shape constraints and edge indication functions are implemented.

[0016] The blood vessel segmentation method and device based on shape constraint and edge indicator function improvement provided by the present invention have the following beneficial effects:

[0017] 1. Proposing an edge indicator function with better indication effect: Under the two conditions that the edge indicator function is monotonically decreasing and the function is 0 when the independent variable tends to ∞, the present invention proposes an edge indicator function constructed with a negative logarithmic function with a more prominent change effect as the main body, which achieves a better indication effect, and further introduces regional information into it to obtain an adaptive edge indicator function that integrates regional information, so that it can adaptively adjust the weights in different areas of the image, thereby better improving the edge indication ability;

[0018] 2. Improved multi-scale Frangi filtering: The present invention obtains a vascular image with better enhancement effect by using a threshold multi-scale Frangi filtering (TM-Frangi filtering) method, and uses the TM-Frangi filtering method to perform rough extraction on the vascular image, and uses the rough extraction result as the initial contour and prior information for subsequent evolution;

[0019] 3. Introducing improved shape prior constraint information: Based on the traditional prior constraint terms, the present invention constructs an adaptive prior weight based on the difference between the local mean inside the evolution curve and the local mean inside the prior curve, so that the weight has a larger value when the curve deviates from the prior curve, pushing the curve to the position of the prior shape quickly, and the weight is reduced when the curve is near the prior shape, thereby better performing blood vessel segmentation. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:

[0021] Figure 1 It is a flow chart of the blood vessel segmentation method based on shape constraint and edge indicator function improvement provided by the present invention;

[0022] Figure 2 It is a schematic diagram of the processing process of the blood vessel segmentation method based on shape constraint and edge indicator function improvement provided by the present invention;

[0023] Figure 3 It is a blood vessel image and a multi-scale Frangi filtering processing result diagram provided by the present invention;

[0024] Figure 4It is a blood vessel image and a threshold processing result diagram thereof provided by the present invention;

[0025] Figure 5 It is a statistical graph of the areas of each connected region of the thresholded blood vessel image provided by the present invention;

[0026] Figure 6 is a blood vessel enhancement map provided by the present invention;

[0027] Figure 7 It is a priori shape curve graph obtained by edge extraction of the blood vessel enhancement image provided by the present invention;

[0028] Figure 8 It is a priori curve diagram obtained by using the adaptive weight parameters of the priori items provided by the present invention on different blood vessel images;

[0029] Fig. 9 is a comparison diagram of different edge indication functions provided by the present invention and their corresponding influence functions;

[0030] Fig.10 It is a comparison diagram of the changes of different edge stop functions and gradient amplitude thresholds provided by the present invention;

[0031] Fig.11 It is a comparison diagram of the indication effects of different threshold parameters provided by the present invention on blood vessel images;

[0032] Fig.12 is a comparison diagram of the segmentation results of each model provided by the present invention on the blood vessel image;

[0033] Fig.13 It is a comparison diagram of the average Dice coefficient of each model provided by the present invention and the average VOE coefficient of each model;

[0034] Fig.14 is a comparison chart of the average calculation time and average number of iterations of each model provided by the present invention;

[0035] Fig.15 The segmentation results obtained by setting the parameter ν provided by the present invention to 0.01-0.06 respectively;

[0036] Fig.16 It is a structural block diagram of the computer device provided by the present invention. DETAILED DESCRIPTION

[0037] In order to have a clearer understanding of the technical features, purposes and effects of the present invention, specific embodiments of the present invention are now described in detail with reference to the accompanying drawings.

[0038] Figure 1The schematic diagram of the blood vessel segmentation method based on shape constraint and edge indicator function improvement in this embodiment is shown. In this embodiment, the blood vessel segmentation method based on shape constraint and edge indicator function improvement includes the following steps:

[0039] S1: Acquire a blood vessel image, perform noise reduction on the blood vessel image, and obtain a blood vessel image to be segmented;

[0040] Specifically, the above-mentioned noise reduction process may be implemented by Gaussian filtering or median filtering;

[0041] S2: According to the blood vessel image to be segmented, a thresholded multi-scale Frangi filtering method is used for preprocessing to obtain an initial contour;

[0042] Specifically, step S2 of the improved blood vessel segmentation method based on shape constraint and edge indicator function includes the following steps: S21: according to the blood vessel image to be segmented, a multi-scale Frangi filtering method is used to obtain a multi-scale Frangi filtering enhanced image; S22: according to a preset segmentation threshold, the multi-scale Frangi filtering enhanced image is threshold segmented and binarized to obtain a threshold processing result; S23: the threshold processing result is marked by an eight-neighborhood connection method to obtain a marked image; the connected areas in the marked image whose area is less than a preset area threshold are filtered out to obtain a blood vessel enhanced image; S24: the edge of the blood vessel enhanced image is extracted to obtain an initial contour, and the initial contour is used for a priori shape curve;

[0043] S3: obtaining a local active contour model, and constructing an adaptive prior constraint term, an adaptive edge indicator function, a length regularization term, and a data fitting term of the local active contour model according to the initial contour;

[0044] Specifically, step S3 of the above-mentioned improved blood vessel segmentation method based on shape constraint and edge indicator function includes the following steps: S31: obtaining a local active contour model, and constructing an adaptive prior constraint item of the local active contour model according to the initial contour, such as formula:

[0045]

[0046]

[0047]

[0048]

[0049] in, is an adaptive prior constraint, is the level set function corresponding to the evolution curve, is the level set function corresponding to the prior shape curve, Ω is the image domain, Ω y is the local image domain, H ε (·) is the regularized step function, represents the shape of the evolution curve, represents the prior shape of the evolution curve, η is the adaptive weight parameter of the prior term, exp[] is the natural exponential, m is the length of the image, n is the width of the image, s ij is the element in the i-th row and j-th column of the local grayscale mean matrix calculated under the current evolution curve, t ij is the i-th row and j-th column element in the local grayscale mean matrix calculated under the prior curve, S is the local grayscale mean matrix calculated under the current evolution curve, T is the local grayscale mean matrix calculated under the prior curve, B(x,y) is a piecewise function, and I is the vascular grayscale image;

[0050] S32: Construct an adaptive edge indicator function of a local active contour model, such as the formula:

[0051]

[0052]

[0053]

[0054] Among them, g is an adaptive edge indicator function based on a logarithmic function, ω is an adjustment parameter used to adjust the indication range of the indicator function, C is a normalized smoothed image gradient matrix, L is a gradient amplitude threshold, and c ij is the element in the i-th row and j-th column of the matrix C, κ is the minimum value, is the gradient operator, G σ is the Gaussian kernel function, I is the vascular grayscale image, max(.) is the maximum function, |.| is the absolute value, θ is a constant for controlling noise sensitivity, c1 is the grayscale mean of the curve inside the vascular grayscale image, c2 is the grayscale mean of the curve outside the vascular grayscale image, ζ is a constant for controlling the convergence speed of the curve;

[0055] S33: construct the length regularization term of the local active contour model;

[0056] S34: Construct the data fitting term of the local active contour model, such as the formula:

[0057]

[0058]

[0059]

[0060]

[0061]

[0062] in, is the data fitting term, is the regularized impulse function, Ω is the image domain, Ω y is the local image domain, B(x,y) is the piecewise function, F is the internal energy term, and F UM is the internal energy term using UM (Uniform Modeling) energy, H ε (.) is the regularized step function, I is the vascular grayscale image, s1 is the local grayscale mean of the curve inside the vascular grayscale image, s2 is the local grayscale mean of the curve outside the vascular grayscale image, is the regularized impulse function, ε is the parameter that controls the effective width of the regularized impulse function;

[0063] Specifically, step S33 of the above-mentioned improved blood vessel segmentation method based on shape constraint and edge indicator function specifically includes: constructing a length regularization term of the local active contour model, such as formula:

[0064]

[0065]

[0066] in, is the length regularization term, is the level set function, Ω is the image domain, is the gradient operator, is a step function, H ε (.) is the regularized step function, ε is the control Parameters for effective width;

[0067] S4: obtaining an LR model using UM internal energy, and obtaining a fusion model based on TM-Frangi filtering according to the LR model using UM internal energy, an adaptive prior constraint term of a local active contour model, an adaptive edge indicator function, a length regularization term, and a data fitting term;

[0068] Specifically, step S4 of the above-mentioned improved blood vessel segmentation method based on shape constraint and edge indicator function includes: obtaining an LR model using UM internal energy, and obtaining a fusion model based on TM-Frangi filtering according to the LR model using UM internal energy, an adaptive prior constraint term of the local active contour model, an adaptive edge indicator function, a length regularization term, and a data fitting term, as shown in the formula:

[0069]

[0070]

[0071]

[0072] in, is the fusion model based on TM-Frangi filtering, ν is the weight parameter of the local term, g is the adaptive edge indicator function, is the regularized impulse function, is the local data fitting term, is an adaptive prior constraint, is the length regularization term, Ω is the local image domain, B(x,y) is the piecewise function, H ε (.) is the regularized step function, I is the vascular grayscale image, s1 is the local grayscale mean of the curve inside the vascular grayscale image, s2 is the local grayscale mean of the curve outside the vascular grayscale image, is the gradient operator;

[0073] S5: Using the variational method and the gradient descent flow method, the fusion model based on TM-Frangi filtering is solved to obtain the final evolution curve;

[0074] Specifically, step S5 of the improved blood vessel segmentation method based on shape constraint and edge indicator function includes: S51: according to the fusion model based on TM-Frangi filter, the gradient descent flow equation is obtained by using the variational method, and the fusion model based on TM-Frangi filter is numerically calculated by using the finite difference upwind form to obtain the discretized iterative form of the gradient descent flow equation; S52: according to the discretized iterative form of the gradient descent flow equation, the evolution curve of each iteration is obtained; when the difference between the evolution curves of two adjacent iterations is greater than the preset threshold, return to step S3; when the difference between the evolution curves of two adjacent iterations is not greater than the preset threshold, the final evolution curve is obtained;

[0075] Specifically, step S51 of the improved blood vessel segmentation method based on shape constraint and edge indicator function specifically includes: according to the fusion model based on TM-Frangi filter, using the variational method to obtain the gradient descent flow equation, using the finite difference upwind form to numerically calculate the fusion model based on TM-Frangi filter, and obtaining the discretized iterative formula of the gradient descent flow equation, such as formula:

[0076]

[0077]

[0078]

[0079]

[0080]

[0081]

[0082]

[0083]

[0084]

[0085]

[0086]

[0087]

[0088]

[0089] in, is the level set function corresponding to the evolution curve, is the fusion model based on TM-Frangi filtering, g is the adaptive edge indicator function, is the regularized impulse function, div(.) is the divergence function, is the gradient operator, ν is the weight parameter of the local term of the LR model, μ1 is the data fitting term inside the curve, μ2 is the data fitting term outside the curve, η is the adaptive weight parameter of the prior term of the LR model, H ε (.) is the regularized step function, is the level set function corresponding to the prior shape curve, Ω y is the local image domain, B(x,y) is a piecewise function, I is the vascular grayscale image, s1 is the local grayscale mean of the curve inside the vascular grayscale image, s2 is the local grayscale mean of the curve outside the vascular grayscale image, D1 is the discrete format of the divergence operator combining forward difference and backward difference in the x direction, represents the backward difference, h represents the distance between grid points, represents forward difference, For the nth iteration S1 is Discrete format combining forward difference and central difference in the x direction, represents the central difference, D2 is the discrete format of the divergence operator combining the forward difference and the backward difference in the y direction, represents backward difference, represents the forward difference, S2 is Discrete format combining forward difference and central difference in the y direction, represents the central difference, n is the nth iteration, Δt is the iteration step, g i,j is the adaptive gradient indicator function;

[0090] S6: Obtain the segmentation result according to the final evolution curve and the vascular image.

[0091] In some embodiments, the above-mentioned blood vessel segmentation method based on shape constraint and edge indicator function improvement can also be implemented in the following manner.

[0092] like Figure 2 is a schematic diagram of a blood vessel segmentation method improved based on shape constraints and edge indicator functions. In this embodiment, the blood vessel segmentation method improved based on shape constraints and edge indicator functions includes the following steps:

[0093] (S1), input image

[0094] Input the image and read the blood vessel image for subsequent segmentation processing. When the image noise is obvious, Gaussian filtering or median filtering can also be used to perform certain noise reduction processing on the image to facilitate subsequent image processing.

[0095] (S2) Use TM-Frangi to preprocess the image and obtain the initial contour from it.

[0096] S2.1 Multiscale Frangi filtering

[0097] Depend on Figure 3 It can be seen that although the multi-scale Frangi filter can enhance blood vessel images of different thicknesses, the impurities in the background are inevitably enhanced at the same time, and it is not suitable to be directly used for the construction of prior items and the extraction of contours.

[0098] S2.2 TM-Frangi filtering and acquisition of initial contour

[0099] By comparing the grayscale histograms of the multi-scale Frangi filter enhancement images, we can see that the grayscale value of the blood vessel area can usually reach above 0.8, while the grayscale value of the tubular impurities in the background area is often lower than this value. Therefore, we can first perform threshold segmentation on the multi-scale Frangi filter, define the segmentation threshold as 0.8 and perform binarization processing, thus obtaining the following: Figure 4 result.

[0100] The threshold processing results are marked by eight-neighborhood connection, and the area of ​​each connected region is counted. Figure 4 Take the image (1) in the figure as an example for statistics. The results are as follows Figure 5 For the convenience of display, only the connected domains with an area of ​​more than 20 are counted in the figure.

[0101] In this embodiment, the area threshold is set to 100.

[0102] By processing the image using the above TM-Frangi filtering method, a more accurate vascular enhancement map F of the vascular image can be obtained, such as Figure 6 shown.

[0103] Extract the edge of F and use it as the initial contour and prior shape curve for the segmentation process like Figure 7 shown.

[0104] (S3), constructing adaptive prior constraint terms, adaptive edge indicator functions, length regularization terms and data fitting terms;

[0105] (S31), Adaptive Prior Constraint Item

[0106] A prior constraint term that can adaptively adjust the prior weight is proposed, as shown in formula (3.2).

[0107]

[0108] In the formula, H ε (·) is the regularized step function, and They represent the shape of the evolution curve and the prior shape respectively; η is the adaptive weight parameter of the prior term, which is defined as follows:

[0109]

[0110] Among them, m and n are the length and width of the image, s ij is the element in the local grayscale mean matrix S calculated under the current evolution curve, t ij is the element in the local grayscale mean matrix T calculated under the priori curve, and its specific calculation is as follows:

[0111]

[0112]

[0113] pass Figure 8 From Table 1, we can clearly see the effect of the adaptive parameter η.

[0114] Table 1 Values ​​of parameter η under different images

[0115]

[0116] from Figure 8 From Table 1, we can see the influence of the adaptive weight parameter proposed in this embodiment on the curve evolution:

[0117] (S32), Adaptive Edge Indication Function

[0118] Commonly used indicator functions are as follows:

[0119]

[0120]

[0121]

[0122] The comparison method of the prior art performs quantitative comparison on the proposed edge indication function, limiting the maximum value of each g to 1. The comparison result is as follows: Fig. 9 As shown. Among them, is the influence function.

[0123] For an image after Gaussian filtering, the edge indication function proposed in this embodiment is defined as:

[0124]

[0125]

[0126] Among them, C is the normalized smooth gradient matrix, c ij is an element in the matrix C, and κ is a minimum value.

[0127] In order to further improve the indication effect, an adaptive edge indication function based on logarithmic function is proposed:

[0128]

[0129]

[0130]

[0131] Where γ is the adjustment parameter. When the evolution curve is far away from the edge of the target, the value of L will be much larger than ζ, and g will take a larger value at this time, and the edge indicator function will drive the curve to evolve rapidly; when the curve is at the boundary of the target, L≈ζ, and the image gradient value is large at this time, so g will take a smaller value, and a fine segmentation process can be performed.

[0132] Indicator function:

[0133]

[0134]

[0135] like Fig.10FIG. 1 is a comparison diagram of the changes of different edge stop functions and gradient amplitude thresholds provided by the present invention; according to the comparison method in the prior art, the mentioned g1, g2 and g are quantitatively compared, and the change image of the edge stop function and the gradient amplitude threshold L is drawn, as shown in FIG. Fig.11 shown.

[0136] The indication effect of g on the blood vessel image in this embodiment is compared with g2 and g0 with a constant gradient amplitude threshold parameter (i.e., the edge indication function proposed in formula 3.10). The results are as follows: Fig.12 shown.

[0137] (S33), length regularization term

[0138] The curve C(s) is expressed as a time-dependent function: C(s,t), where s represents the parameter of the curve, usually [0,1], and t is a non-negative number representing the evolution time of the curve. The energy functional E(C) of the curve can be expressed by loop integration:

[0139]

[0140] Through the variational level set method, the level set function is introduced as well as E(C) is transformed into Energy functional And through the variational method, we get The partial differential equation.

[0141] This method defines a special function Heaviside function:

[0142]

[0143] And there are:

[0144]

[0145] In this way, the energy functional (3.17) of the curve can be rewritten as a surface integral in the image domain Ω:

[0146]

[0147] Then the energy functional of the regional positioning model can be rewritten as the level set function In the form of:

[0148]

[0149] To facilitate actual calculations, and With regularized and It can be expressed approximately as:

[0150]

[0151]

[0152] The parameter ε is used to control The effective width.

[0153] (S34), data fitting term

[0154] When using UM energy as the internal energy term:

[0155]

[0156] Where s1 and s2 are expressed as:

[0157]

[0158]

[0159] (S4), fusion model

[0160] For the LR model using UM internal energy:

[0161]

[0162]

[0163]

[0164] Combined with the shape prior E in (3.2) above Auto-Shape As well as the edge indicator function g in (3.12), a fusion model FPLRE model based on TM-Frangi filtering is proposed:

[0165]

[0166] Where ν and η are the adaptive weight parameters of the local term and prior term of the LR model respectively.

[0167] The fusion model can systematically consider regional information, edge information, and prior information, and therefore has higher segmentation accuracy.

[0168] (S5) Use the variational method and gradient descent method to solve the model and determine whether the cutoff condition is met

[0169] The gradient descent flow equation obtained by the variational method is:

[0170]

[0171]

[0172] The FPLRE model is numerically calculated using the finite difference upwind form, and the discretized iterative formula of the gradient descent flow equation is obtained as follows:

[0173]

[0174]

[0175]

[0176]

[0177]

[0178] Where n is the nth iteration; h is the distance between grid points; Δt is the iteration step, which is used to control the speed of curve evolution: when Δt takes a small value, the curve evolves slowly and the iteration efficiency is low; when Δt takes a large value, the curve tends to oscillate at the edge or directly cross the target edge.

[0179] represents the central difference and is calculated as follows:

[0180]

[0181]

[0182] represents forward difference, represents backward difference, The calculation is as follows:

[0183]

[0184]

[0185] The calculation of is as follows:

[0186]

[0187]

[0188] The results of judgment Whether the cut-off condition S is met: If satisfied, output the result Otherwise, recalculate S31-S34.

[0189] (S6) Output segmentation results

[0190] Will The segmentation result is output and usually displayed on top of the vascular image to intuitively show the state of the vascular outline.

[0191] Effect after implementation:

[0192] Experimental environment:

[0193] The hardware conditions of the experiment of the present invention are: HP Pavilion Laptop 15-cc5xx, Intel(R) Core(TM) i5-7200U CPU@2.50GHz 2.71GHz, NVIDIA GeForce 940MX GPU, 8.00GB RAM; the software environment for implementing the active contour model is: Matlab R2021a.

[0194] Evaluation indicators:

[0195] The objective evaluation indicators of segmentation accuracy use the Dice (Dice similarity coefficient) coefficient and the VOE (Volumetric Overlap Error) coefficient to measure the quality of the segmentation results.

[0196] Parameter settings:

[0197] In the FPLRE model, the fixed parameters are set as follows:

[0198] The parameter ε=1 in formulas (2.4) and (2.5); the scale range in the multiscale Frangi filter is (0.5,2.5); K=1,κ=0.01 in formulas (3.6) and (3.10). The iteration cutoff condition S is set to 0.1; the grid point distance h=1 in formulas (3.34)-(3.37), and the iteration step length Δt=1 in formula (3.38).

[0199] The dynamic parameter ν needs to be adjusted according to different images to obtain the best segmentation result. Its value is within a range. For the FPLRE model, ν can be roughly 0.01-0.06. For the dynamic parameter ν in Table 2, the value given in the table is the optimal value, but other values ​​can also produce similar segmentation results, but with slight differences in details.

[0200] Table 2 Dynamic parameter settings for different experimental images in the FPLRE model

[0201]

[0202] Vascular image segmentation experiment:

[0203] This embodiment uses Fig.12 (a) is used for segmentation experiment of the blood vessel image; the segmentation results of the FPLRE model proposed in this embodiment are compared with those of TM-Frangi filtering, LR model, CVXB model, U-Net model, ABC model, HLFRA model and GLMF model on the above blood vessel image. The results are shown in FIG. Fig.12 As shown in the figure, the average values ​​of segmentation accuracy and computational efficiency of various models are shown in the form of a bar graph. Fig.13 and Fig.14 middle;

[0204] FPLRE model analysis:

[0205] For the FPLRE model, it ranks first in the average values ​​of both accuracy evaluation indicators, showing good segmentation results; and in terms of improving computational efficiency, the effect of the FPLRE model is more significant; on the other hand, the FPLRE model adds TM-Frangi information as a priori information item to the LR model, making the model adjustment more flexible and easier to select the parameter ν for the data fitting item. For ν, even if it is set to different values ​​within the parameter range, the segmentation accuracy of the model will not change too much; using Image2 as the experimental image, the parameter ν is set to 0.01-0.06, and the following is obtained: Fig.15 The Dice coefficients of the segmentation results under various parameters are listed in Table 3.

[0206] Table 3 Dice values ​​under different parameters

[0207]

[0208]

[0209] From the subjective evaluation and Dice coefficient, it can be seen that within the range of parameter values, the model can maintain a high segmentation accuracy, and the maximum accuracy difference is only 0.7%. Fig.12 As can be seen from (c), the prior information obtained by TM-Frangi filtering is more reliable, so the overall image segmentation accuracy is high. Even the lower value of segmentation accuracy, 90.26%, is higher than the 90.14% of the LR model.

[0210] In general, the FPLRE model proposed in the present invention provides a more flexible adjustment space for the parameter ν while ensuring high segmentation accuracy and high computational efficiency. In addition, the model provided by the present invention can accommodate various types of prior information and has good scalability. However, from another perspective, the segmentation result of the present invention depends to a certain extent on the accuracy of the prior information. Therefore, selecting appropriate prior information is critical for the present invention.

[0211] This embodiment provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the blood vessel segmentation method based on shape constraints and edge indicator functions are implemented. The storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.

[0212] This embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps of the improved blood vessel segmentation method based on shape constraints and edge indication functions are implemented.

[0213] like Fig.16As shown, the computer device may include: at least one processor 121, such as a CPU (Central Processing Unit), at least one communication interface 123, a memory 124, and at least one communication bus 122. Among them, the communication bus 122 is used to realize the connection and communication between these components. Among them, the communication interface 123 may include a display screen (Display), a keyboard (Keyboard), and the optional communication interface 123 may also include a standard wired interface and a wireless interface. The memory 124 may be a high-speed RAM memory (Random Access Memory, volatile random access memory) or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 124 may also be at least one storage device located away from the aforementioned processor 121. Among them, the memory 124 stores an application program, and the processor 121 calls the program code stored in the memory 124 to perform any of the above method steps. Among them, the communication bus 122 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The communication bus 122 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.16Only one line is used to represent it, but it does not mean that there is only one bus or one type of bus. Among them, the memory 124 may include a volatile memory (English: volatile memory), such as a random access memory (English: random-access memory, abbreviated: RAM); the memory may also include a non-volatile memory (English: non-volatile memory), such as a flash memory (English: flash memory), a hard disk drive (English: hard disk drive, abbreviated: HDD) or a solid-state drive (English: solid-state drive, abbreviated: SSD); the memory 124 may also include a combination of the above-mentioned types of memory. Among them, the processor 121 may be a central processing unit (English: central processing unit, abbreviated: CPU), a network processor (English: network processor, abbreviated: NP) or a combination of CPU and NP. Among them, the processor 121 may further include a hardware chip. The above-mentioned hardware chip may be an application-specific integrated circuit (English: application-specific integrated circuit, abbreviated: ASIC), a programmable logic device (English: programmable logic device, abbreviated: PLD) or a combination thereof. The PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof. Optionally, the memory 124 is also used to store program instructions. The processor 121 can call the program instructions to implement the improved blood vessel segmentation method based on shape constraints and edge indication functions as in this embodiment.

[0214] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the enlightenment of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the purpose of the present invention and the claims, which all fall within the protection of the present invention.

Claims

1. A blood vessel segmentation method based on shape constraint and edge indicator function improvement, characterized in that: The following steps are involved: S1: Acquire a blood vessel image, and perform noise reduction processing on the blood vessel image to obtain a blood vessel image to be segmented; S2: Preprocessing the blood vessel image to be segmented by using a thresholded multi-scale Frangi filtering method to obtain an initial contour; S3: obtaining a local active contour model, and constructing an adaptive prior constraint term, an adaptive edge indicator function, a length regularization term, and a data fitting term of the local active contour model according to the initial contour; S4: obtaining an LR model using UM internal energy, and obtaining a fusion model based on TM-Frangi filtering according to the LR model using UM internal energy, an adaptive prior constraint term of a local active contour model, an adaptive edge indicator function, a length regularization term, and a data fitting term; S5: using a variational method and a gradient descent flow method, solving the fusion model based on TM-Frangi filtering to obtain a final evolution curve; S6: Obtaining a segmentation result according to the final evolution curve and the blood vessel image.

2. The blood vessel segmentation method based on shape constraint and edge indicator function improvement according to claim 1, characterized in that: Step S2 includes the following steps: S21: according to the blood vessel image to be segmented, using a multi-scale Frangi filtering method, obtaining a multi-scale Frangi filtering enhanced image; S22: performing threshold segmentation and binarization processing on the multi-scale Frangi filter enhancement image according to a preset segmentation threshold to obtain a threshold processing result; S23: marking the threshold processing result by eight-neighborhood connection to obtain a marked image; filtering out the connected regions in the marked image whose area is smaller than a preset area threshold to obtain a blood vessel enhancement image; S24: performing edge extraction on the blood vessel enhancement image to obtain an initial contour, wherein the initial contour is used for a priori shape curve.

3. The blood vessel segmentation method based on shape constraint and edge indicator function improvement according to claim 1, characterized in that: Step S3 includes the following steps: S31: Obtain a local active contour model, and construct an adaptive priori constraint item of the local active contour model according to the initial contour, such as formula: in, is an adaptive prior constraint, is the level set function corresponding to the evolution curve, is the level set function corresponding to the prior shape curve, Ω is the image domain, Ω y is the local image domain, H ε (·) is the regularized step function, represents the shape of the evolution curve, represents the prior shape of the evolution curve, η is the adaptive weight parameter of the prior term, exp[] is the natural exponential, m is the length of the image, n is the width of the image, s ij is the element in the i-th row and j-th column of the local grayscale mean matrix calculated under the current evolution curve, t ij is the i-th row and j-th column element in the local grayscale mean matrix calculated under the prior curve, S is the local grayscale mean matrix calculated under the current evolution curve, T is the local grayscale mean matrix calculated under the prior curve, B(x,y) is a piecewise function, and I is the vascular grayscale image; S32: Construct an adaptive edge indicator function of a local active contour model, such as the formula: Among them, g is an adaptive edge indicator function based on a logarithmic function, ω is an adjustment parameter used to adjust the indication range of the indicator function, C is a normalized smoothed image gradient matrix, L is a gradient amplitude threshold, and c ij is the element in the i-th row and j-th column of the matrix C, κ is the minimum value, is the gradient operator, G σ is the Gaussian kernel function, I is the vascular grayscale image, max(.) is the maximum function, |.| is the absolute value, θ is a constant for controlling noise sensitivity, c1 is the grayscale mean of the curve inside the vascular grayscale image, c2 is the grayscale mean of the curve outside the vascular grayscale image, ζ is a constant for controlling the convergence speed of the curve; S33: construct the length regularization term of the local active contour model; S34: Construct the data fitting term of the local active contour model, such as the formula: in, is the data fitting term, is the regularized impulse function, Ω is the image domain, Ω y is the local image domain, B(x,y) is the piecewise function, F is the internal energy term, and F UM is the internal energy term using UM (Uniform Modeling) energy, H ε (.) is the regularized step function, I is the vascular grayscale image, s1 is the local grayscale mean of the curve inside the vascular grayscale image, s2 is the local grayscale mean of the curve outside the vascular grayscale image, is the regularized impulse function, and ε is a parameter that controls the effective width of the regularized impulse function.

4. The blood vessel segmentation method based on shape constraint and edge indicator function improvement according to claim 3, characterized in that: The step S33 specifically includes: constructing a length regularization term of the local active contour model, such as the formula: in, is the length regularization term, is the level set function, Ω is the image domain, is the gradient operator, is a step function, H ε (.) is the regularized step function, ε is the control Valid width parameters.

5. The segmentation method based on shape constraint and edge indicator function improvement according to claim 1, characterized in that: The step S4 includes: obtaining an LR model using UM internal energy, and obtaining a fusion model based on TM-Frangi filtering according to the LR model using UM internal energy, an adaptive prior constraint term of a local active contour model, an adaptive edge indicator function, a length regularization term, and a data fitting term, such as the formula: in, is the fusion model based on TM-Frangi filtering, ν is the weight parameter of the local term, g is the adaptive edge indicator function, is the regularized impulse function, is the local data fitting term, is an adaptive prior constraint, is the length regularization term, Ω is the local image domain, B(x,y) is the piecewise function, H ε (.) is the regularized step function, I is the vascular grayscale image, s1 is the local grayscale mean of the curve inside the vascular grayscale image, s2 is the local grayscale mean of the curve outside the vascular grayscale image, is the gradient operator.

6. The blood vessel segmentation method based on shape constraint and edge indicator function improvement according to claim 1, characterized in that: The step S5 comprises: S51: According to the fusion model based on TM-Frangi filtering, a gradient descent flow equation is obtained by using a variational method, and the fusion model based on TM-Frangi filtering is numerically calculated by using a finite difference upwind form to obtain a discretized iterative formula of the gradient descent flow equation; S52: According to the discretized iterative formula of the gradient descent flow equation, the evolution curve of each iteration is obtained; when the difference between the evolution curves of two adjacent iterations is greater than a preset threshold, return to step S3; when the difference between the evolution curves of two adjacent iterations is not greater than the preset threshold, the final evolution curve is obtained.

7. The blood vessel segmentation method based on shape constraint and edge indicator function improvement according to claim 1, characterized in that: The step S51 specifically includes: according to the fusion model based on TM-Frangi filtering, using the variational method to obtain the gradient descent flow equation, using the finite difference upwind form to numerically calculate the fusion model based on TM-Frangi filtering, and obtaining the discretized iterative formula of the gradient descent flow equation, such as formula: in, is the level set function corresponding to the evolution curve, is the fusion model based on TM-Frangi filtering, g is the adaptive edge indicator function, is the regularized impulse function, div(.) is the divergence function, is the gradient operator, ν is the weight parameter of the local term of the LR model, μ1 is the data fitting term inside the curve, μ2 is the data fitting term outside the curve, η is the adaptive weight parameter of the prior term of the LR model, H ε (.) is the regularized step function, is the level set function corresponding to the prior shape curve, Ω y is the local image domain, B(x,y) is a piecewise function, I is the vascular grayscale image, s1 is the local grayscale mean of the curve inside the vascular grayscale image, s2 is the local grayscale mean of the curve outside the vascular grayscale image, D1 is the discrete format of the divergence operator combining forward difference and backward difference in the x direction, represents the backward difference, h represents the distance between grid points, represents forward difference, For the nth iteration S1 is Discrete format combining forward difference and central difference in the x direction, represents the central difference, D2 is the discrete format of the forward difference and backward difference of the divergence operator in the y direction, represents backward difference, represents the forward difference, S2 is Discrete format combining forward difference and central difference in the y direction, represents the central difference, n is the nth iteration, Δt is the iteration step, g i,j is the adaptive gradient indicator function.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the improved blood vessel segmentation method based on shape constraints and edge indication functions as claimed in any one of claims 1 to 8 are implemented.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the improved blood vessel segmentation method based on shape constraint and edge indication function as claimed in any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Automatically initialized local active contour model heart and cerebral vessel segmentation method

    CN102982547A

  • CT image aorta automatic segmentation method and system based on level set

    CN113450256A

  • Infrared small target detection method and device, electronic equipment and storage medium

    CN116630615A

  • Gabor wavelet-fused multi-scale local level set ultrasonic image segmentation method

    US20230070200A1

  • Segmentation method for dissected aorta in CT image based on convolutional neural network

    WO2020001217A1

Cited By

  • Kidney stone three-dimensional coordinate determination method, system and device and storage medium

    CN120014055A