Ultrasonic microvascular imaging method and system based on singular value decomposition and Frangi filtering
Through the combination of singular value decomposition and Frangi filtering, the problem of difficulty in vascular extraction in ultrasound contrast images is solved, the image quality and microvascular network presentation effect are significantly improved, and more accurate and clear vascular structure enhancement of ultrasound contrast images is achieved.
Patent Information
- Application Number
- CN202410233542.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-01
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-03-01
AI Technical Summary
It is difficult to automatically extract blood vessels using Frangi filtering in existing ultrasound contrast images, mainly due to problems such as low signal-to-noise ratio, cross-overlapping of blood vessels and overlapping with other tissues, resulting in mislocalization of blood flow signals and low image quality.
Using ultrasonic microvascular imaging method based on singular value decomposition and Frangi filtering, clutter and background noise were eliminated through singular value decomposition filtering, and Frangi filtering was used to enhance the microvascular structure in the spatial domain, significantly suppressing clutter and background tissue in ultrasonic contrast images. Noise, improve image quality.
This achieves a more accurate microvascular network presentation and image quality improvement of ultrasound contrast images, significantly suppresses clutter and background noise, enhances the segmentation effect of microvascular structures, and improves imaging quality.
Smart Images

Figure CN118121233B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of medical ultrasonic imaging, and in particular relates to an ultrasonic microvascular imaging method and system based on singular value decomposition and Frangi filtering. Background Art
[0002] Existing Doppler ultrasound and power Doppler ultrasound help diagnose lesions by evaluating blood flow, but their imaging quality is easily affected by signal evaluation in low-frequency areas or patient motion.
[0003] Singular Value Decomposition (SVD) is an important technology in the field of medical ultrasound image processing, mainly used in signal noise reduction, image enhancement and feature extraction. The core idea of this technology is to use singular value decomposition to decompose the image into different feature components, so as to achieve the goals of noise suppression, information extraction and image optimization. In medical ultrasound imaging, this method can be used for tissue and clutter removal and motion estimation. Compared with the high-pass filter, the clutter filter based on singular values can better suppress clutter by utilizing the differences in speckle intensity and spatiotemporal characteristics of tissue and blood. After performing SVD filtering, tissue information is often retained in high singular values, while blood signals often exist in lower singular values due to their low scattering intensity and spatiotemporal coherence. Then, low-rank matrix separation is performed through the mapping relationship of singular values, thereby distinguishing tissue signals and blood flow signals.
[0004] In the prior art, the invention patent with application number CN202110125749.9 and patent name Ultrasonic microvascular imaging method based on random singular value decomposition and weighted L1 norm discloses that the microvascular area of the acquired ultrasonic microvascular imaging result is read, the weight parameter in the cost function and the prior diagonal sparse matrix are determined to increase the external weight of the microvascular, and then the projected gradient descent method is used to optimize the cost function to obtain the ultrasonic microvascular imaging result with the total variation regularizer added. This process can increase the external weight of the microvascular so as to better suppress the external noise of the microvascular. The singular value decomposition filter uses the spatiotemporal coherence of the signal to separate the microvascular blood flow from the tissue clutter, which can significantly suppress the clutter and background tissue noise in the ultrasound contrast image. However, since the singular value decomposition filter filters the signal according to the spatiotemporal correlation of the signal, some slow-flowing signals are easily judged as tissue signals and filtered out, which will cause erroneous interpretation of the image. For example, when the vascular wall is segmented according to the blood perfusion, the low-flow blood flow signal may be mislocated.
[0005] The multi-scale vascular enhancement filter based on Hessian matrix proposed by Frangi et al. enhances vascular structure and suppresses non-vascular structure by combining eigenvalue information in the scale space framework. Wang et al. proposed a vascular segmentation method based on adaptive multi-scale, which uses Hessian matrix to enhance thin blood vessels, and combines thick and thin blood vessels in CT images to construct a complete and clear vascular segmentation system. Marcan et al. proposed an automatic vascular segmentation method for MRI liver images based on Hessian filtering, which extracts vascular candidate regions from the image after vascular enhancement, determines the local threshold by Otsu algorithm, and uses adaptive threshold algorithm to extract vascular contours. However, it is very difficult to automatically extract blood vessels in contrast images using Frangi filtering, mainly due to the following reasons: low image signal-to-noise ratio; cross-overlap between blood vessels; overlap with other tissues, etc.
[0006] Therefore, there is an urgent need for a medical ultrasound imaging method to solve the problem of automatically extracting blood vessels in contrast-enhanced images using Frangi filtering, to further process ultrasound contrast-enhanced images, and to improve the quality of ultrasound contrast-enhanced images. Summary of the invention
[0007] The technical problem to be solved by the present invention is to provide an ultrasonic microvascular imaging method and system based on singular value decomposition and Frangi filtering in view of the deficiencies in the above-mentioned prior art. The method and system have a simple structure and a reasonable design. By truncating singular values, singular values that represent neither tissue information nor blood information are eliminated, the clutter and background tissue noise in the ultrasonic contrast-enhanced image are significantly suppressed, and the understanding of medical ultrasonic imaging is not affected. By Frangi filtering, a method for enhancing the microvascular structure in the spatial domain is realized, and the ultrasonic contrast-enhanced image can present more microvascular networks.
[0008] In order to solve the above technical problems, the technical solution adopted by the present invention is: an ultrasonic microvascular imaging method based on singular value decomposition and Frangi filtering, the method is implemented by a computer system, and is characterized in that it includes the following steps:
[0009] Step 1, obtaining the original ultrasound contrast image;
[0010] Step 2: Convert the original ultrasound contrast image into an image matrix A, A = (N X *N Z ,N t ), N X *N Z Represents the spatial information of the dataset, N t Represents the time information of the data set, and each element in the array represents the pixel value of the original image;
[0011] Step 3: Singular value decomposition filtering: Perform singular value decomposition on the image matrix A. The image matrix I obtained after singular value decomposition filtering is I = U·S'·V1 * , where U represents the spatial singular vector matrix, V1 * represents the time singular vector matrix, V1 * =V T , V1 * is the transposed matrix of matrix V, U and V are both orthogonal matrices, S' represents the reconstructed diagonal matrix obtained after singular value decomposition, and the elements on the diagonal of the reconstructed diagonal matrix S' are the singular values of matrix I;
[0012] The specific method is:
[0013] Step 301: Perform singular value decomposition on the image matrix A to decompose the image matrix into A = U·S·V1 * , where U represents the spatial singular vector matrix, S represents the diagonal matrix, the elements on the diagonal are singular values, V1 * represents the time singular vector matrix, V1 * =V T , U and V are both orthogonal matrices;
[0014] Step 302: Arrange the singular values of the diagonal matrix S in descending order, draw a singular value signal intensity energy curve, and select a tissue threshold T2 and a noise threshold T1 according to the singular value signal intensity energy curve;
[0015] Step 303, setting the singular values on the diagonal line of the diagonal matrix S between the noise threshold T1 and the tissue threshold T2 to 0, retaining the singular values greater than the noise threshold T1 and less than the tissue threshold T2, thereby reconstructing the diagonal matrix S';
[0016] Step 304, image reconstruction: The image matrix I obtained after singular value decomposition filtering is I=U·S'·V1 * ;
[0017] Step 4, Frangi filtering: construct the microvascular response function ν(σ) based on the Hessian matrix, σ represents the scale factor, screen the microvascular response function ν(σ) by non-maximum suppression, obtain the maximum response V of the microvascular response function ν(σ) under the current scale factor, judge the first eigenvalue λ1 and the second eigenvalue λ2 corresponding to the maximum response V, distinguish the vascular structure and the background area, and obtain the enhanced image;
[0018] Step 5: Calculate the R of the original image CT1 , R CN1 , R SN1 , calculate the R of the enhanced image CT2 , R CN2 , RSN2 ,like The enhanced image is considered to have reached the quality standard and the enhancement process is completed; otherwise, it goes to step 6, where R CT1 Represents the contrast ratio of the original image, R CN1 Represents the contrast-to-noise ratio of the original image, R SN1 Represents the signal-to-noise ratio of the original image, R CT2 represents the contrast tissue ratio of the enhanced image, R CN2 Represents the contrast-to-noise ratio of the enhanced image, R SN2 represents the signal-to-noise ratio of the enhanced image;
[0019] Step 6: Select a new singular value threshold. The new singular value thresholds include a new noise threshold T1' and a new tissue threshold T2', where θ represents the singular value step length, T1 represents the noise threshold, and T2 represents the tissue threshold;
[0020] Step 7: Increase the scale factor σ according to the step size, and determine whether the scale factor threshold interval [σ min , σ max ], if yes, go to step eight, otherwise return to step three;
[0021] Step 8: Determine whether the singular value threshold interval [T 11 , T 12 ] and [T 21 , T 22 ], where [T 11 , T 12 ] is the threshold interval of the new noise threshold T1', [T 21 , T 22 ] is the threshold interval of the new tissue threshold T2', if so, go to step nine, otherwise return to step three;
[0022] Step 9: Calculate the F(R) corresponding to each scale factor CT2 , R CN2 , R SN2 ), F(R CT2 , R CN2 , R SN2 ) represents R CT2 , R CN2 , R SN2 weight, select MAX{F(R CT2 , R CN2 , R SN2 )} corresponding to the enhanced image output.
[0023] The above-mentioned ultrasonic microvascular imaging method based on singular value decomposition and Frangi filtering is characterized in that: the "step 4, Frangi filtering" includes the following steps:
[0024] Step 401, calculating the Hessian matrix;
[0025] Step 402: construct a microvascular response function ν(σ) based on the Hessian matrix, where σ represents a scale factor;
[0026] Step 5. Non-maximum suppression of microvascular response function ν(σ): Iterate the scale factor, screen the microvascular response function ν(σ) by non-maximum suppression, and obtain the maximum response V of the microvascular response function ν(σ) under the current scale factor, V = max(ν(σ)), σ min ≤σ≤σ max , σ min represents the minimum scale factor of the correlation structure, σ max represents the maximum scale factor of the correlation structure;
[0027] Step 403: judge the first eigenvalue λ1 and the second eigenvalue λ2 corresponding to the maximum response V. If The grayscale value of the vascular structure should be higher than that of the background area; The grayscale value of the vascular structure should be lower than that of the background area; if there is no correlation between λ1 and λ2, it is considered that this pixel and its vicinity are located in the background area, and the enhancement function here is 0.
[0028] The above-mentioned ultrasonic microvascular imaging method based on singular value decomposition and Frangi filtering is characterized in that: the specific method of the "step 401, calculating the Hessian matrix" is: the Hessian matrix is calculated according to the formula Calculated, H represents the Hessian matrix, where I xx represents the second-order partial derivative of the image matrix I with respect to the function x, I yy represents the second-order partial derivative of the image matrix I with respect to the function y, I xy represents the second-order mixed partial derivative of the image matrix I with respect to the functions x and y, I(x,y) represents the gray value of the image matrix I at point (x,y), G(x,y,σ) represents the Gaussian function, represents, and σ represents the scale factor.
[0029] The above-mentioned ultrasonic microvascular imaging method based on singular value decomposition and Frangi filtering is characterized in that: the specific method of "constructing the microvascular response function ν(σ) based on the Hessian matrix" is: Where R b represents a ratio variable, The enhancement factor β represents R b The sensitivity threshold, S represents the Frobenius constant of the Hessian matrix, The enhancement coefficient C represents the sensitivity threshold of S.
[0030] The above-mentioned ultrasonic microvascular imaging method based on singular value decomposition and Frangi filtering is characterized in that: the computer calculates the Calculate the tissue contrast ratio R CT1 , contrast-to-noise ratio R CN1 and the signal-to-noise ratio R SN1 , where A contrast Represents the average amplitude of the signal in the contrast area, A tissue represents the average amplitude of the signal within the tissue area, σ contrast Represents the standard deviation of the signal in the comparison area, σ tissue Represents the standard deviation of the signal within the tissue area.
[0031] The above-mentioned ultrasonic microvascular imaging method based on singular value decomposition and Frangi filtering is characterized in that: the ultrasonic contrast imaging original image includes emitting ultrasonic waves to the biological tissue to be measured, generating an ultrasonic image based on the ultrasonic echo signal, the imaging method is ultrafast ultrasonic plane wave multi-angle composite imaging, the multi-angle is at least 3 angles, and the biological tissue to be measured includes human organs or phantom models.
[0032] The above-mentioned ultrasonic microvascular imaging method based on singular value decomposition and Frangi filtering is characterized in that the value range of σ is 1-6.
[0033] The ultrasonic microvascular imaging system based on singular value decomposition and Frangi filtering of the present invention is characterized by comprising:
[0034] An ultrasound contrast imaging module is configured to obtain an original ultrasound contrast image and convert the original ultrasound contrast image into an image matrix;
[0035] A singular value decomposition module is configured to perform singular value decomposition on an image matrix, reconstruct a diagonal matrix, and perform image reorganization based on the reconstructed diagonal matrix;
[0036] A Frangi filter module is configured to obtain a Hessian matrix, construct a microvascular response function based on the Hessian matrix, screen the microvascular response function ν(σ) by non-maximum suppression, and obtain a maximum response of the microvascular response function ν(σ);
[0037] The image enhancement module is configured to enhance the vascular structure of the original ultrasound contrast imaging image based on the first eigenvalue λ1 and the second eigenvalue λ2 corresponding to the maximum response.
[0038] The above-mentioned ultrasonic microvascular imaging system based on singular value decomposition and Frangi filtering is characterized in that: the ultrasonic contrast imaging module is used to transmit ultrasonic waves to the biological tissue to be measured, and generate ultrasonic images based on ultrasonic echo signals. The imaging method is ultrafast ultrasonic plane wave multi-angle composite imaging, and the multi-angle is at least 3 angles. The biological tissue to be measured includes human organs or phantom models.
[0039] Compared with the prior art, the present invention has the following advantages:
[0040] 1. The invention has a simple structure, reasonable design, and is easy to implement and operate.
[0041] 2. The present invention selects the tissue threshold T2 and the noise threshold T1 according to the singular value signal intensity energy curve, retains the singular values that are greater than the noise threshold T1 and less than the tissue threshold T2, and achieves the effect of truncating the singular values. The singular values of the first few rows are very large, indicating tissue information, and most of the singular values arranged in the back are very small, indicating blood information. Therefore, the singular values that neither represent tissue information nor blood information are eliminated, which significantly suppresses the clutter and background tissue noise in the ultrasound contrast image, and will not affect the understanding of medical ultrasound imaging.
[0042] 3. The present invention calculates the first eigenvalue λ1 and the second eigenvalue λ2 according to the Hessian matrix, and constructs the ratio variable R b , in order to distinguish the tubular structure from the disc structure, the plate structure and the spot structure in the image, and to realize the method of enhancing the microvascular structure in the spatial domain, the ultrasound contrast-enhanced image can present more microvascular networks.
[0043] In summary, the present invention has a simple structure and a reasonable design. By truncating singular values and eliminating singular values that represent neither tissue information nor blood information, the clutter and background tissue noise in ultrasound contrast-enhanced images are significantly suppressed, and the understanding of medical ultrasound imaging will not be affected. By Frangi filtering, a method for enhancing microvascular structure in the spatial domain is realized, and ultrasound contrast-enhanced images can present more microvascular networks.
[0044] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 The figure is a flow chart of the method of the present invention.
[0046] Figure 2 This is a flow chart of the singular value decomposition filtering method of the present invention.
[0047] Figure 3 This is a flow chart of the Frangi filtering method of the present invention.
[0048] Figure 4 Schematic diagram of the circuit of the system of the present invention.
[0049] Figure 5 The figure is a comparison diagram of the liver ultrasound contrast imaging based on the selection of the scale factor of the present invention.
[0050] Description of reference numerals:
[0051] 1—ultrasound contrast imaging module; 2—singular value decomposition module; 3—Frangi filtering module;
[0052] 4—Image enhancement module. DETAILED DESCRIPTION
[0053] The method of the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments of the present invention.
[0054] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0055] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0056] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0057] For ease of description, spatially relative terms such as "above", "above", "on the upper surface of", "above", etc. may be used here to describe the spatial positional relationship between a device or feature and other devices or features as shown in the figure. It should be understood that spatially relative terms are intended to include different orientations of the device in use or operation in addition to the orientation described in the figure. For example, if the device in the accompanying drawings is inverted, the device described as "above other devices or structures" or "above other devices or structures" will be positioned as "below other devices or structures" or "below other devices or structures". Thus, the exemplary term "above" can include both "above" and "below". The device can also be positioned in other different ways (rotated 90 degrees or in other orientations), and the spatially relative descriptions used here are interpreted accordingly.
[0058] To better illustrate the present invention, this embodiment is conducted in the following hardware environment: CPU: Intel(R) Core(TM) i5-9600K@3.70GHz, memory: 8G or 16G, graphics card: GeForce RTX 2080Ti, video memory 11G. Software environment: The software environment used is Python 3.7+PyTorch 1.6, and the experiment is conducted under Windows 10.
[0059] In fact, the scheme defined in this article is applicable to ultrasound images of all human organs or phantom models, that is, ultrasound images of all human organs or phantom models can use the scheme of this application to extract microvascular features to enhance the microvascular network in the image.
[0060] According to an embodiment of the present invention, a method embodiment of an ultrasound microvascular imaging method based on singular value decomposition and Frangi filtering is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0061] Figure 1 is a flow chart of an ultrasonic microvascular imaging method based on singular value decomposition and Frangi filtering according to an embodiment of the present invention, such as Figure 1 According to another aspect of the present invention, there is also provided an ultrasonic microvascular imaging method based on singular value decomposition and Frangi filtering. The method is implemented by a computer system and includes the following steps:
[0062] Step 1: Acquire an ultrasound contrast imaging image; the ultrasound contrast imaging image includes emitting ultrasound to the biological tissue to be measured, generating an ultrasound image based on the ultrasound echo signal, the imaging method is ultrafast ultrasound plane wave multi-angle composite imaging, the multi-angle is at least 3 angles, and the biological tissue to be measured includes a human organ or a phantom model.
[0063] In a possible embodiment, ultrasound waves are emitted to the biological tissue to be measured, and the echo data of the ultrasound waves are processed by beam synthesis, angle compounding, IQ demodulation and wall filtering to obtain an ultrasound image. The imaging method is ultrafast ultrasound plane wave multi-angle compound imaging, the multi-angle is at least 3 angles, and the biological tissue to be measured includes human organs or phantom models.
[0064] Step 2: Convert the ultrasound contrast image into an image matrix A, A = (N X *N Z ,N t ), N X *N Z Represents the spatial information of the dataset, N t It represents the time information of the data set, and each element in the matrix represents the pixel value of the image. It should be noted that the image matrix A is a Casorati matrix, which is a data matrix that uses both spatial and temporal information. It is suitable for plane wave technology. Each frame of synchronous spatial data is transformed into a column of the matrix, so the matrix contains both spatiotemporal information and temporal information.
[0065] Step 3: Singular value decomposition filtering: Perform singular value decomposition on the image matrix A. The image matrix I obtained after singular value decomposition filtering is I = U·S'·V1 * , where U represents the spatial singular vector matrix, V1 * represents the time singular vector matrix, V1 * =V T , V1 * is the transposed matrix of matrix V, U and V are both orthogonal matrices, S' represents the reconstructed diagonal matrix obtained after singular value decomposition, and the elements on the diagonal of the reconstructed diagonal matrix S' are the singular values of matrix I.
[0066] The specific method is as follows: Step 301, perform singular value decomposition on the image matrix A, decompose the matrix A into the form of three matrix products, and decompose the image matrix into A = U·S·V1 * , where U represents the spatial singular vector matrix, S represents the diagonal matrix, the elements on the diagonal are singular values, V1 * represents the time singular vector matrix, V1 * =V^T, U and V are both orthogonal matrices.
[0067] Any m×n matrix can be expressed as the product of three matrices through factor decomposition, namely, an m-order orthogonal matrix, an m×n diagonal matrix composed of non-negative diagonal elements arranged in descending order, and an n-order orthogonal matrix, which is called the singular value decomposition of the matrix. In this embodiment, U and V are both orthogonal matrices, S represents a diagonal matrix, and the elements on the diagonal are singular values, which indicate the energy size of the signal component.
[0068] Step 302: Arrange the singular values of the diagonal matrix S in descending order, draw a singular value signal strength energy curve, and select a tissue threshold T2 and a noise threshold T1 according to the singular value signal strength energy curve. The commonly used singular value decomposition in the singular value decomposition includes a compact form and a truncated form. The tissue threshold T2 and the noise threshold T1 are set to remove the rows corresponding to some singular values in the diagonal matrix S.
[0069] Step 303: Set the singular values on the diagonal line of the diagonal matrix S between the noise threshold T1 and the tissue threshold T2 to 0, and retain the singular values greater than the noise threshold T1 and less than the tissue threshold T2, thereby reconstructing the diagonal matrix S'.
[0070] In the diagonal matrix S, the elements on the diagonal are singular values, and the number of singular values decreases very quickly. In many cases, the sum of the first 10% or even 1% of the singular values accounts for more than 99% of the sum of all singular values.
[0071] After singular value decomposition of medical ultrasound imaging, tissue information is often retained in high singular values, while blood signals often exist in lower singular values due to their low scattering intensity and spatiotemporal coherence. Therefore, by retaining singular values greater than the noise threshold T1 and less than the tissue threshold T2, the effect of truncating the singular values is achieved, and the matrix S is compressed. Since only singular values that do not represent tissue information or blood information are removed, there is no effect on the information, so it is lossless compression.
[0072] Arrange the singular values of the diagonal matrix S in descending order. The singular values in descending order decrease rapidly as the number of rows increases. The singular values of the first few rows may be very large, indicating tissue information, and most of the singular values arranged in the back are already very small, indicating blood information. Therefore, eliminating the information corresponding to the middle singular values will not affect the understanding of medical ultrasound imaging.
[0073] Step 304, image reconstruction: The image matrix I obtained after singular value decomposition filtering is I=U·S'·V1 * .
[0074] Since only the most important singular values and their corresponding singular vectors are retained in the diagonal matrix S, the reconstructed diagonal matrix S' is obtained. The reconstructed diagonal matrix S' is combined with the spatial singular vector matrix U and the temporal singular vector matrix V1 *The compressed image matrix I is formed, and the image matrix obtained after the singular value decomposition filtering processing of the image matrix I fundamentally reduces the storage of the image without losing its most important visual data, and significantly suppresses the clutter and background tissue noise in the ultrasound contrast image, thereby achieving the goals of noise suppression and image optimization.
[0075] Step 4: Frangi filtering:
[0076] Step 401, calculate the Hessian matrix; the Hessian matrix is calculated according to the formula It is calculated that H represents the Hessian matrix at a pixel point (x, y) in the image matrix I, where I xx represents the second-order partial derivative of the Gaussian function G(x,y,σ) with respect to the function x, I yy represents the second-order partial derivative of the Gaussian function G(x,y,σ) with respect to the function y, I xy represents the second-order mixed partial derivative of the Gaussian function G(x,y,σ) with respect to the functions x and y, I(x,y) represents the grayscale value of the image matrix I at the point (x,y), G(x,y,σ) represents the Gaussian function, and σ represents the scale factor.
[0077] Frangi filtering is an edge detection and enhancement filtering algorithm based on the Hessian matrix. For an image, it only has two directions, X and Y, so the Hessian matrix is a binary matrix. In mathematics, the Hessian matrix is the square matrix of the second-order partial derivatives of a scalar function. Generally, the second-order derivative of the image matrix I can be directly taken, but this method has poor robustness and is easily affected by noise, so a Gaussian function is added before the second-order derivative is taken.
[0078] Step 402: construct a microvascular response function ν(σ) based on the Hessian matrix, where σ is the standard deviation of the Gaussian filter, also known as the scale factor.
[0079] Where R b represents a ratio variable, Both λ1 and λ2 are obtained according to the Hessian matrix. λ1 represents the first eigenvalue, λ2 represents the second eigenvalue, and the enhancement coefficient β represents R b The sensitivity threshold of β is β, and a larger β value makes the filter more sensitive to fine structures. Usually, the value of β is between 0.5 and 1. S represents the Frobenius constant of the Hessian matrix, The enhancement coefficient C represents the sensitivity threshold of S. Smaller C values result in more pixels being retained, while larger C values filter out smaller local structures. Typically, the value of C is between 10-4 to 10 -1 between.
[0080] The calculation formula of the first eigenvalue λ1 and the second eigenvalue λ2 of the Hessian matrix is: Where K = (f xx +f yy ) / 2,
[0081] According to the Hessian matrix, find its first eigenvalue λ1, the second eigenvalue λ2, and construct the ratio variable R b , to distinguish between tubular and disc-like structures, plate-like structures and spot-like structures in the image.
[0082] The first eigenvalue λ1 and the second eigenvalue λ2 are used to obtain the Frobenius constant S of the Hessian matrix and determine the filter size to avoid enhancing the low-contrast structure in the image.
[0083] The vascular network is a linear tree structure in the image, and the vascular network is usually described by a linear structure. For the enhancement of linear structures in vascular images, the microvascular response function ν(σ) is constructed by using the correspondence between the first eigenvalue λ1 and the second eigenvalue λ2 of the Hessian matrix and structures of different shapes to extract the linear structure and realize the method of enhancing the microvascular structure in the spatial domain. Through research based on this scheme, while removing background tissue noise and machine noise, the processed ultrasound contrast-enhanced images can present more microvascular networks and improve the image contrast.
[0084] Non-maximum suppression of the microvascular response function ν(σ): Iterate the scale factor, screen the microvascular response function ν(σ) through non-maximum suppression, mark all response values ν(σ) as unprocessed, find the maximum value in these data, and mark the maximum value and some data around it as processed to avoid repeated selection of adjacent similar maximum values. Repeat this process, and re-mark any response value that is larger than the previously marked maximum value until all response values are marked as processed. Obtain the maximum response V of the microvascular response function ν(σ) under the current scale factor, V=max(ν(σ)), V represents the maximum response of the microvascular response function ν(σ). σ min ≤σ≤σ max , σ min represents the minimum scale factor of the correlation structure, σ max Represents the maximum scale factor of the correlation structure.
[0085] First, the response of the vascular structure at each scale factor σ is obtained, and then the maximum value V of each response is selected to obtain the final enhancement result. When the scale factor σ is consistent with the diameter of the detected blood vessel, the response of the filter V reaches the maximum. The maximum response at the current scale is obtained by iterating the scale factor, and then the maximum response of the unified pixel at different scale factors is selected as the output value, V = max(ν(σ)). σ min , σ max They are the minimum and maximum scales of the relevant structure respectively. The first eigenvalue λ1 and the second eigenvalue λ2 can be adjusted by setting their values, thereby adjusting the coverage width range.
[0086] Due to the complexity of ultrasound imaging equipment and vascular network topology, vascular images inevitably have the characteristics of blur and low contrast, especially for tiny blood vessels and peripheral blood vessels, which are difficult to distinguish from the surrounding soft tissues, so the global structure of the blood vessels cannot be obtained. Therefore, before blood vessel segmentation, the blood vessels must be enhanced to highlight the vascular structure. Appropriate scale selection is the key to image enhancement.
[0087] like Figure 5 As shown in Figure 1, four groups of vascular scales were selected to compare the liver ultrasound contrast images. Figure 5 a, is a grayscale image. Figure 5 b is an ultrasound contrast image. Figure 5 c. When the scale factor ranges from 1 to 6, a wide range of blood vessel diameters can be detected, but only some large blood vessels can be enhanced. Figure 5 e. When the scale factor range is 2-3, since the diameter of the detected blood vessels is relatively thin, the smaller the scale factor, the better the enhancement effect on the small diameter blood vessels, resulting in the erroneous enhancement of image noise and tissue signals. Figure 5 d and Figure 5 As shown in FIG. 4 , when the scale factor ranges from 2 to 5, the image display effect is better than that of 4 to 5. While enhancing the thick blood vessels, the enhancement of microvessels is also strengthened. Therefore, the value range of σ is 1 to 6. The larger the range of the scale factor and the smaller the iteration step, the better the enhancement effect of blood vessels of various diameters can be taken into account. Therefore, 2 to 5 is preferred.
[0088] The first eigenvalue λ1 and the second eigenvalue λ2 corresponding to the maximum response V are judged. When λ2 is greater than λ1, it can be judged that the pixel is near a slender tubular structure. When λ2 is negative, the grayscale value of the vascular structure should be higher than the background area. The filter response value is set to 0, which appears as a white highlight on the image. It can be used to enhance the vascular structure in the image and effectively remove the tissue background of the ultrasound image. The grayscale value of the vascular structure should be lower than that of the background area, and the filter response value is set to -50, which is the black background tissue part on the ultrasound image. If there is no correlation between λ1 and λ2, it is considered that this pixel point and its vicinity are located in the background area, the enhancement function is set to 0, the filter response value is set to -50, and it is the black background tissue part on the ultrasound image.
[0089] The correspondence between the first eigenvalue λ1 and the second eigenvalue λ2 of the Hessian matrix of each pixel point of the image matrix I and structures of different shapes is analyzed to extract the vascular features in the image, thereby distinguishing blood vessels from noise points and enhancing the microvascular network in the image.
[0090] Step 5: Calculate the R of the original image CT1 , R CN1 , R SN1 , calculate the R of the enhanced image CT2 , R CN2 , R SN2 ,like The enhanced image is considered to have reached the quality standard and the enhancement process is completed. Otherwise, it goes to step 6, where R CT1 Represents the contrast ratio of the original image, R CN1 Represents the contrast-to-noise ratio of the original image, R SN1 Represents the signal-to-noise ratio of the original image, R CT2 represents the contrast tissue ratio of the enhanced image, R CN2 Represents the contrast-to-noise ratio of the enhanced image, R SN2 Represents the signal-to-noise ratio of the enhanced image.
[0091] The computer uses the formula Calculate the R of the original image CT1 , R CN1 , R SN1 , where R CT1 Represents the contrast ratio of the original image, R CN1 Represents the contrast-to-noise ratio of the original image, R SN1 Represents the signal-to-noise ratio of the original image, A contrast Represents the average amplitude of the signal in the contrast area of the original image, A tissue Represents the average amplitude of the signal in the tissue area of the original image, σ contrast Represents the standard deviation of the signal in the contrast area of the original image, σ tissue Represents the standard deviation of the signal within the tissue area of the original image.
[0092] R CT2 represents the contrast tissue ratio of the enhanced image, R CN2 Represents the contrast-to-noise ratio of the enhanced image, R SN2 Represents the signal-to-noise ratio of the enhanced image. CT2 , RCN2 , R SN2 Calculation method and R CT1 , R CN1 , R SN1 The calculation method is the same.
[0093] Step 6: Select a new singular value threshold. The new singular value thresholds include a new noise threshold T1' and a new tissue threshold T2', where θ represents the singular value step length, T1 represents the noise threshold, and T2 represents the tissue threshold;
[0094] Step 7: Increase the scale factor σ according to the step size, and determine whether the scale factor threshold interval [σ min , σ max ], if yes, go to step eight, otherwise return to step three;
[0095] Step 8: Determine whether the singular value threshold interval [T 11 , T 12 ] and [T 21 , T 22 ], where [T 11 , T 12 ] is the threshold interval of the new noise threshold T1', [T 21 , T 22 ] is the threshold interval of the new tissue threshold T2', if so, go to step nine, otherwise return to step three;
[0096] Step 9: Calculate the F(R) corresponding to each scale factor CT2 , R CN2 , R SN2 ), F(R CT2 , R CN2 , R SN2 ) represents R CT2 , R CN2 , R SN2 weight, select MAX{F(R CT2 , R CN2 , R SN2 )} corresponding to the enhanced image output.
[0097] R of the original image CT1 , R CN1 , R SN1 Used to illustrate the quality of the original image, R CT1 , R CN1 , R SN1 The larger the value, the better the image quality. CT2 , R CN2 , R SN2 Used to illustrate the quality of enhanced images, R CT2 , R CN2, R SN2 The larger the value, the better the image quality.
[0098] When the image quality does not meet the standard, reset the singular value threshold and scale factor to reconstruct the enhanced image. If the image quality requirements cannot be met even after searching the singular value threshold interval and scale factor threshold interval, then select the best quality image among the enhanced images for output display, that is, select MAX{F(R CT2 , R CN2 , R SN2 )} corresponding to the enhanced image output.
[0099] The idea of resetting the singular value threshold is to gradually increase the rows and columns that were originally to be deleted to increase the image information.
[0100] It should be noted that F(R CT2 , R CN2 , R SN2 )=ω1·R CT2 +ω2·R CN2 +ω3·R SN2 ω1+ω2+ω3=1 Figure 4 is a schematic diagram of an ultrasonic microvascular imaging system based on singular value decomposition and Frangi filtering according to an embodiment of the present invention, such as Figure 4 As shown, according to another aspect of an embodiment of the present invention, an ultrasound microvascular imaging system based on singular value decomposition and Frangi filtering is also provided, including: an ultrasound contrast imaging module 1, a singular value decomposition module 2, a Frangi filtering module 3 and an image enhancement module 4. The device is described in detail below.
[0101] The ultrasound contrast imaging module 1 is configured to obtain an ultrasound contrast original image and convert the ultrasound contrast original image into an image matrix. In a possible embodiment, the ultrasound contrast imaging module 1 transmits ultrasound to the biological tissue to be measured, and the echo data of the ultrasound is processed by beam synthesis, angle compounding, IQ demodulation and wall filtering to obtain an ultrasound image. And the ultrasound contrast image is converted into an image matrix. The imaging method is ultrafast ultrasound plane wave multi-angle compound imaging, the multi-angle is at least 3 angles, and the biological tissue to be measured includes human organs or phantom models.
[0102] The singular value decomposition module 2 is configured to perform singular value decomposition on the image matrix, reconstruct the diagonal matrix, and reconstruct the image based on the reconstructed diagonal matrix. In one possible embodiment, the singular value decomposition module 2 performs singular value decomposition on the image matrix A, decomposing the matrix A into the form of three matrix products, A = U·S·V1 *, by setting the singular value threshold, the rows corresponding to some singular values in the diagonal matrix S are removed, and the singular values greater than the noise threshold T1 and less than the tissue threshold T2 are retained, thereby reconstructing the diagonal matrix S'. The image matrix I obtained after singular value decomposition filtering is I = U·S'·V1 * .
[0103] The Frangi filter module 3 is configured to obtain the Hessian matrix, construct the microvascular response function based on the Hessian matrix, screen the microvascular response function ν(σ) by non-maximum suppression, and obtain the maximum response of the microvascular response function ν(σ). In one possible embodiment, the Frangi filter module 3 calculates the Hessian matrix based on the image matrix I, constructs the microvascular response function ν(σ) based on the Hessian matrix, iterates the scale factor σ, screens the microvascular response function ν(σ) by non-maximum suppression, and obtains the maximum response V of the microvascular response function ν(σ) under the current scale factor.
[0104] The image enhancement module 4 is configured to enhance the vascular structure of the original ultrasound contrast imaging image based on the first eigenvalue λ1 and the second eigenvalue λ2 corresponding to the maximum response.
[0105] According to another aspect of an embodiment of the present invention, there is also provided a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the ultrasonic microvascular imaging method based on singular value decomposition and Frangi filtering as described in any one of claims 1 to 7 are implemented.
[0106] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the ultrasonic microvascular imaging method based on singular value decomposition and Frangi filtering as described in any one of claims 1 to 7 are implemented.
[0107] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0108] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0109] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0110] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0111] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0112] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0113] The above description is only an embodiment of the present invention and does not limit the present invention in any way. Any simple modification, change and equivalent structural change made to the above embodiment based on the technical essence of the present invention still falls within the protection scope of the technical solution of the present invention.
Claims
1. An ultrasonic microvascular imaging method based on singular value decomposition and Frangi filtering, the method being implemented by a computer system and characterized by: The following steps are involved: Step 1, obtaining the original ultrasound contrast image; Step 2: Convert the original ultrasound contrast image into an image matrix A, A = (N X *N Z ,N t ), N X *N Z Represents the spatial information of the dataset, N t Represents the time information of the data set, and each element in the array represents the pixel value of the original image; Step 3: Singular value decomposition filtering: Perform singular value decomposition on the image matrix A. The image matrix I obtained after singular value decomposition filtering is I = U·S'·V1 * , where U represents the spatial singular vector matrix, V1 * represents the time singular vector matrix, V1 * =V T , V1 * is the transposed matrix of matrix V, U and V are both orthogonal matrices, S' represents the reconstructed diagonal matrix obtained after singular value decomposition, and the elements on the diagonal of the reconstructed diagonal matrix S' are the singular values of matrix I; the specific method is: Step 301: Perform singular value decomposition on the image matrix A to decompose the image matrix into A = U·S·V1 * , where U represents the spatial singular vector matrix, S represents the diagonal matrix, the elements on the diagonal are singular values, V1 * represents the time singular vector matrix, V1 * =V T , U and V are both orthogonal matrices; Step 302: Arrange the singular values of the diagonal matrix S in descending order, draw a singular value signal intensity energy curve, and select a tissue threshold T2 and a noise threshold T1 according to the singular value signal intensity energy curve; Step 303, setting the singular values on the diagonal line of the diagonal matrix S between the noise threshold T1 and the tissue threshold T2 to 0, retaining the singular values greater than the noise threshold T1 and less than the tissue threshold T2, thereby reconstructing the diagonal matrix S'; Step 304, image reconstruction: The image matrix I obtained after singular value decomposition filtering is I=U·S'·V1 * ; Step 4, Frangi filtering: construct the microvascular response function ν(σ) based on the Hessian matrix, σ represents the scale factor, screen the microvascular response function ν(σ) by non-maximum suppression, obtain the maximum response V of the microvascular response function ν(σ) under the current scale factor, judge the first eigenvalue λ1 and the second eigenvalue λ2 corresponding to the maximum response V, distinguish the vascular structure and the background area, and obtain the enhanced image; Step 5: Image quality assessment: Calculate the R of the original image CT1 , R CN1 , R SN1 , calculate the R of the enhanced image CT2 , R CN2 , R SN2 ,like The enhanced image is considered to have reached the quality standard and the enhancement process is completed; otherwise, it goes to step 6, where R CT1 Represents the contrast tissue ratio of the original image, R CN1 Represents the contrast-to-noise ratio of the original image, R SN1 Represents the signal-to-noise ratio of the original image, R CT2 represents the contrast tissue ratio of the enhanced image, R CN2 Represents the contrast-to-noise ratio of the enhanced image, R SN2 represents the signal-to-noise ratio of the enhanced image; Step 6: Select a new singular value threshold. The new singular value thresholds include a new noise threshold T1' and a new tissue threshold T2', where θ represents the singular value step length, T1 represents the noise threshold, and T2 represents the tissue threshold; Step 7: Increase the scale factor σ according to the step size, and determine whether the scale factor threshold interval [σ min , σ max ], if yes, go to step eight, otherwise return to step three; Step 8: Determine whether the singular value threshold interval [T 11 , T 12 ] and [T 21 , T 22 ], where [T 11 , T 12 ] is the threshold interval of the new noise threshold T1', [T 21 , T 22 ] is the threshold interval of the new tissue threshold T2', if so, go to step nine, otherwise return to step three; Step 9: Calculate the F(R) corresponding to each scale factor CT2 , R CN2 , R SN2 ), F(R CT2 , R CN2 , R SN2 ) represents R CT2 , R CN2 , R SN2 weight, select MAX{F(R CT2 , R CN2 , R SN2 )} corresponding to the enhanced image output.
2. The ultrasonic microvascular imaging method based on singular value decomposition and Frangi filtering according to claim 1, characterized in that: The "step 4, Frangi filtering" includes the following steps: Step 401, calculating the Hessian matrix; Step 402: construct a microvascular response function ν(σ) based on the Hessian matrix, where σ represents a scale factor; Step 5. Non-maximum suppression of microvascular response function ν(σ): Iterate the scale factor, screen the microvascular response function ν(σ) by non-maximum suppression, and obtain the maximum response V of the microvascular response function ν(σ) under the current scale factor, V = max(ν(σ)), σ min ≤σ≤σ max , σ min represents the minimum scale factor of the correlation structure, σ max represents the maximum scale factor of the correlation structure; Step 403: judge the first eigenvalue λ1 and the second eigenvalue λ2 corresponding to the maximum response V. If The grayscale value of the vascular structure should be higher than that of the background area, and the filter response value should be set to 0; The grayscale value of the vascular structure should be lower than that of the background area, and the filter response value is set to -50; if there is no correlation between λ1 and λ2, it is considered that this pixel and its vicinity are located in the background area, the enhancement function is set to 0, and the filter response value is set to -50, which appears as a black background tissue part on the ultrasound image.
3. The ultrasonic microvascular imaging method based on singular value decomposition and Frangi filtering according to claim 2, characterized in that: The specific method of "step 401, calculating the Hessian matrix" is: the Hessian matrix is calculated according to the formula Calculated, H represents the Hessian matrix, where I xx represents the second-order partial derivative of the image matrix I with respect to the function x, I yy represents the second-order partial derivative of the image matrix I with respect to the function y, I xy represents the second-order mixed partial derivative of the image matrix I with respect to the functions x and y, I(x,y) represents the grayscale value of the image matrix I at the point (x,y), G(x,y,σ) represents the Gaussian function, and σ represents the scale factor.
4. The ultrasonic microvascular imaging method based on singular value decomposition and Frangi filtering according to claim 2, characterized in that: The specific method of "constructing microvascular response function ν(σ) based on Hessian matrix" is: Where R b represents a ratio variable, The enhancement factor β represents R b The sensitivity threshold, S represents the Frobenius constant of the Hessian matrix, The enhancement coefficient C represents the sensitivity threshold of S.
5. The ultrasonic microvascular imaging method based on singular value decomposition and Frangi filtering according to claim 1, characterized in that: The computer uses the formula Calculate the tissue contrast ratio R CT1 , contrast-to-noise ratio R CN1 and the signal-to-noise ratio R SN1 , where A contrast Represents the average amplitude of the signal in the contrast area of the original image, A tissue Represents the average amplitude of the signal in the tissue area of the original image, σ contrast Represents the standard deviation of the signal in the contrast area of the original image, σ tissue Represents the standard deviation of the signal in the tissue area in the original image.
6. The ultrasonic microvascular imaging method based on singular value decomposition and Frangi filtering according to claim 1, characterized in that: The ultrasound contrast original image includes emitting ultrasound to the biological tissue to be measured, generating an ultrasound image based on the ultrasound echo signal, the imaging method is ultrafast ultrasound plane wave multi-angle composite imaging, the multi-angle is at least 3 angles, and the biological tissue to be measured includes human organs or phantom models.
7. The ultrasonic microvascular imaging method based on singular value decomposition and Frangi filtering according to claim 1, characterized in that: The value range of σ is 1-6.
8. An ultrasonic microvascular imaging system based on singular value decomposition and Frangi filtering, used to implement the ultrasonic microvascular imaging method based on singular value decomposition and Frangi filtering as claimed in any one of claims 1 to 7, characterized in that: include: An ultrasound contrast imaging module is configured to obtain an ultrasound contrast original image and convert the ultrasound contrast original image into an image matrix; A singular value decomposition module is configured to perform singular value decomposition on an image matrix, reconstruct a diagonal matrix, and perform image reorganization based on the reconstructed diagonal matrix; A Frangi filter module is configured to obtain a Hessian matrix, construct a microvascular response function based on the Hessian matrix, screen the microvascular response function ν(σ) by non-maximum suppression, and obtain a maximum response of the microvascular response function ν(σ); The image enhancement module is configured to enhance the blood vessel structure of the original ultrasound contrast imaging image based on the first eigenvalue λ1 and the second eigenvalue λ2 corresponding to the maximum response.
9. The ultrasonic microvascular imaging system based on singular value decomposition and Frangi filtering according to claim 8, characterized in that: The ultrasound contrast imaging module is used to transmit ultrasound to the biological tissue to be measured, and generate an ultrasound image based on the ultrasound echo signal. The imaging method is ultrafast ultrasound plane wave multi-angle composite imaging, and the multi-angle is at least 3 angles. The biological tissue to be measured includes human organs or phantom models.
