Classification and segmentation of ultrasound images of dialysis access and calculation method and medium of vascular stenosis rate

Through deep neural network and morphological processing methods, the blood vessel lumen segmentation and stenosis rate calculation are performed on the ultrasonic images of the dialysis access, which solves the problems of low efficiency and strong subjectivity in evaluating the stenosis rate of the dialysis access in the existing technology, and achieves fast and accurate Assessment of stenosis rate improves the support of hemodialysis treatment.

CN118470049BActive Publication Date: 2024-10-15SUZHOU INST OF BIOMEDICAL ENG & TECH CHINESE ACADEMY OF SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410912682.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-10-15
Estimated Expiration
2044-07-09

AI Technical Summary

Technical Problem

Existing dialysis access ultrasound image processing methods have problems of low efficiency and strong subjectivity when evaluating the stenosis rate of dialysis access. Especially for forearm radial artery-cephalic vein fistula (AVF), the traditional method is difficult to accurately calculate the length of the dialysis access stenosis rate. The axial diameter stenosis rate and short-axis area stenosis rate are affected by the operating proficiency of medical staff and the cost of equipment.

Method used

Using deep neural networks, especially the improved VLSC-Net architecture, combined with the Zhang-Sun refinement algorithm and morphological processing methods, the ultrasound images are segmented into vascular lumens and classified into stenosis types. By fitting the central axis and calculating the thickness of the narrowest point , automatically calculates the long-axis diameter and short-axis area stenosis rate of the dialysis pathway, reducing subjectivity and improving evaluation efficiency.

Benefits of technology

It achieves fast and accurate stenosis rate calculation of ultrasound images of dialysis pathways, improves the evaluation efficiency of medical staff, reduces the subjectivity of different doctors' evaluation of the same patient, and provides more reliable hemodialysis treatment support.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118470049B_ABST
    Figure CN118470049B_ABST
Patent Text Reader

Abstract

The present invention provides a method and medium for classifying and segmenting dialysis access ultrasound images and calculating vascular stenosis rate, including the steps of: inputting ultrasound images into a deep neural network to generate segmented images and stenosis types; extracting the skeleton of the vascular cavity from the segmented image; extracting points from the skeleton and fitting the points as the central axis of the cavity; calculating the narrowest position and the minimum diameter of the lumen; determining the thickness of the narrowest point by fitting the cavity before stenosis; calculating the long-axis diameter stenosis rate by the thickness of the narrowest point and the minimum diameter of the lumen; calculating the short-axis area stenosis rate by the thickness of the narrowest point, the minimum diameter of the lumen and the actual cavity area. The present invention can quickly calculate the stenosis rate in the DA ultrasound image of the dialysis patient, greatly improving the efficiency of medical staff's evaluation of the patient's DA, and this objective method eliminates the subjectivity of different doctors' evaluation of the same patient's DA, and can provide better hemodialysis treatment support for dialysis patients, thereby improving the quality of life of patients.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of ultrasonic image processing, and in particular to a method and medium for classifying and segmenting dialysis access ultrasonic images and calculating a vascular stenosis rate. Background Art

[0002] Hemodialysis is the main treatment for patients with end-stage renal disease, and a safe, reliable, and durable dialysis access (DA) is essential for achieving successful hemodialysis. However, in the forearm radial artery-cephalic vein fistula (AVF), which is the most widely used in clinical practice, stenosis of the dialysis access around the anastomosis is a common problem. When stenosis or thrombosis occurs, transluminal angioplasty or open surgery is required to ensure the patient's dialysis effect. Regular evaluation of the dialysis access is essential to prevent failure caused by stenosis and to meet the conditions for hemodialysis.

[0003] Traditional dialysis access inspection methods: According to the National Kidney Foundation-KDOQI (NKF-KDOQI), there are two methods for periodic inspection of dialysis access in dialysis patients, one is specific instrument inspection (ultrasound, CT, MRI), and the other is physical examination. Among the specific instrument inspections, CT and MRI are relatively expensive, and ultrasound is relatively inexpensive, but if high-quality images are required, more expensive ultrasound equipment or angiography is still required, which is invasive. In contrast, ultrasound is widely used in dialysis centers due to its non-invasiveness and cost-effectiveness. However, when evaluating the long-axis diameter stenosis rate (LDSR) and short-axis area stenosis rate (SASR) of the dialysis access, ultrasound operation may be slow, and the results may be affected by the proficiency of healthcare professionals. Physical examination depends largely on the subjective assessment of doctors and their clinical experience.

[0004] Traditional method for calculating dialysis access stenosis rate: In addition, the current method for calculating dialysis access stenosis rate is inspired by several technologies: the European Carotid Surgery Trial (ECST) method, the North American Carotid Symptomatic Resection Trial (NASCET) method, and the total carotid diameter (CC) method. Among them, the LDSR calculation formula of the ECST method is (1-MLD / B) × 100%, the LDSR calculation formula of the NASCET method is (1-MLD / C) × 100%, and the LDSR calculation formula of the CC method is (1-MLD / A) × 100%. Figure 1As shown, MLD is the minimum diameter of the lumen, C is the diameter of the lumen at the distal end, ST is the thickness at the narrowest point, B is the sum of MLD and ST, that is, the expected diameter at the narrowest position, and A is the lumen diameter at the proximal end. However, the formation of AVF is not natural. Factors such as the direction of blood vessels and hypertension lead to different shear forces in the veins, resulting in different degrees of expansion. This may cause the veins near the fistula to dilate and form stenosis at farther locations, giving them a "funnel-shaped" appearance (thinner at the proximal end and thicker at the distal end). Therefore, the NASCET method and the CC method are not applicable. Based on these observations, the present invention uses the ECST method to define the stenosis rate, which are LDSR and SASR, respectively. The calculation of LDSR strictly follows the LDSR calculation formula of the above-mentioned ECST method.

[0005] Deep learning ultrasound vascular image segmentation method: In recent years, deep learning technology has been widely used in image processing, especially in vascular segmentation. Smistad et al. used a simplified version of AlexNet to locate the position and size of blood vessels in real-time carotid ultrasound images, improving computational efficiency without affecting accuracy. Blanco et al. used a convolutional neural network reference in the polar coordinate system to segment the lumen and vascular contours in the polar coordinate domain. Mishra et al. divided the vascular segmentation problem into two sub-problems. First, a locally trained CNN identifies the area containing blood vessels; second, an unsupervised clustering method based on kmeans is used to segment the blood vessels from the local area. Neural network-based studies rarely use a single model to segment these two types. Polar coordinate-based methods require a large amount of data to construct multiple frames of ultrasound images, which hinders rapid screening and may be invasive.

[0006] Methods for calculating vascular parameters in images: In order to accurately quantify the severity of stenosis, the lumen diameter must be reliably calculated and a good estimate of the original healthy lumen size must be obtained. Janssen et al. used the two detected arterial contours to calculate the arterial centerline and then smoothed the axis. The vessel diameter was measured perpendicular to this centerline, and the corresponding reference diameter was obtained from these vessel diameters using linear regression. Stenosis parameters were calculated based on the correspondence between the diameter and the reference diameter. This linear regression-based method removes the calculation method of the relationship between the vessel direction and the reference diameter, which in some cases will cause the estimated original lumen boundary to be included in the actual lumen area. Wan et al. proposed a computer image-based method to accurately determine the grade of stenosis and designed an improved matching measure (MoM) model to accurately estimate the diameter of the vessel segment. The location and grade of stenosis were detected and calculated by calculating the local extreme points on the detrended residual diameter curve. However, since the MoM model requires Hessian-based enhancement, tubular artifacts may be enhanced, resulting in incorrect vascular skeleton extraction. Kelm et al. proposed a nonlinear regression method to directly estimate the cross-sectional area along the centerline of the vessel, extracting and evaluating the stenosis of each part of the vessel through the max-min-max triplet of baseline correction and smooth radius curve. This method will produce erroneous results for vascular interruptions generated during the shooting process. The end-to-end method that directly classifies the degree of stenosis cannot provide stenosis ratio results and lacks interpretability. Summary of the invention

[0007] In order to achieve the above-mentioned purpose and other advantages of the present invention, the first purpose of the present invention is to provide a method for classifying and segmenting a dialysis access ultrasound image and calculating a vascular stenosis rate, comprising the following steps:

[0008] The ultrasound image is input into a deep neural network to generate segmented images and stenosis types;

[0009] extracting a skeleton of a blood vessel lumen from the segmented image;

[0010] Extracting points from the skeleton, fitting the extracted points, and using the fitting results as the central axis of the cavity;

[0011] Calculate the narrowest position and the minimum diameter of the lumen along the direction perpendicular to the central axis;

[0012] According to the narrowest position, the thickness of the narrowest point is determined by fitting the cavity before the narrowing;

[0013] The stenosis rate of the long axis diameter of the dialysis access is calculated by the thickness at the narrowest point and the minimum diameter of the lumen;

[0014] The short-axis area stenosis rate of the dialysis passage is calculated by the thickness at the narrowest point, the minimum diameter of the lumen and the actual lumen area.

[0015] Furthermore, the deep neural network adopts an improved VLSC-Net architecture with U-Net as the backbone network, and the VLSC-Net architecture includes a coding branch, a decoding branch, and a classification branch, and the decoding branch and the classification branch share the coding branch; wherein,

[0016] The encoding branch is used to capture information details of the input ultrasound image;

[0017] The decoding branch is used to gradually upsample and refine the feature map for cavity segmentation;

[0018] The classification branch is used to summarize spatial information and perform narrow classification.

[0019] Furthermore, the skip connection between the encoding branch and the decoding branch introduces a feature enhancement mechanism.

[0020] Furthermore, the feature enhancement mechanism includes a spatial feature enhancement module, a channel feature enhancement module and an attention-aware feature enhancement module, and the attention-aware feature enhancement module includes the spatial feature enhancement module and the channel feature enhancement module; wherein,

[0021] The spatial feature enhancement module captures spatial relationships within the data by focusing on different parts of the input image;

[0022] The channel-wise feature enhancement module enhances feature maps by channels rather than spatial coordinates.

[0023] Furthermore, the first layer of the decoding branch uses a large convolution kernel to expand the receptive field, and the ConvNeXt method is adopted in the feature extraction module of each subsequent layer, and the first convolution-ReLU block is replaced by deep convolution. After the deep convolution, standard convolution is adopted, and each convolution layer adds a GELU activation function and a batch normalization layer.

[0024] Furthermore, the decoding branch includes five layers, the first layer of the decoding branch introduces the spatial feature enhancement module, the second and third layers of the decoding branch introduce the attention-aware feature enhancement module, and the fourth layer of the decoding branch introduces the channel feature enhancement module.

[0025] Furthermore, extracting the skeleton of the blood vessel cavity from the segmented image includes:

[0026] For the segmented image, a Zhang-Sun thinning algorithm is used to extract the skeleton of the blood vessel cavity;

[0027] The step of fitting the extracted points comprises:

[0028] The extracted points are fitted into a straight line using the least squares method as the central axis of the cavity.

[0029] Furthermore, the calculating of the narrowest position and the minimum diameter of the lumen along a direction perpendicular to the central axis comprises the following steps:

[0030] For each longitudinal image, a region of interest was selected;

[0031] Find the upper boundary points of the blood vessel lumen one by one in the region of interest, then find the lower boundary points along the direction perpendicular to the central axis, and use the line connecting the upper boundary points and the lower boundary points as the height of the blood vessel lumen at that position;

[0032] After traversing all points, search for the minimum value among all heights and its corresponding position to determine the narrowest position;

[0033] The upper boundary point and the lower boundary point of the narrowest position are connected to form the narrowest diameter, thereby obtaining the minimum diameter of the lumen.

[0034] Furthermore, the step of determining the thickness of the narrowest point by fitting the cavity before stenosis according to the narrowest position comprises the following steps:

[0035] Obtaining the x-coordinate of the boundary point of the narrowest position;

[0036] Extracting a plurality of continuous boundary points on both sides of the x-coordinate according to a first preset value and calculating a mean absolute error;

[0037] If the mean absolute error is greater than the error threshold, it is considered that there is stenosis at the boundary and the blood vessel boundary needs to be extracted;

[0038] Extracting a plurality of continuous boundary points in a first direction of the x-coordinate according to a second preset value; wherein the second preset value is greater than the first preset value;

[0039] Divide the newly obtained multiple continuous boundary points into two groups according to the midpoint, perform straight line fitting on the auxiliary lines of each group of points, and calculate the angle between the two auxiliary lines;

[0040] Determine whether the angle is greater than an angle threshold and whether the slope of the first direction auxiliary line is less than the slope of the second direction auxiliary line;

[0041] If yes, the midpoint is considered to be a cavity edge point that meets the criteria;

[0042] If not, discard the boundary point closest to the second direction, and obtain a new set of pixels by adding boundary points from the boundary to the first direction, and return to the step of dividing the newly obtained multiple continuous boundary points into two groups according to the midpoints to continue executing until the boundary edge is reached; wherein the second direction is opposite to the first direction;

[0043] If no cavity boundary point that meets the criteria can be found among all boundary points in the first direction of the narrowest point, the last pixel point of the boundary in the first direction of the narrowest point is used as the boundary point for straight line filling;

[0044] Obtain two edge pixel points of the upper boundary or the lower boundary by calculation;

[0045] Connect two edge pixel points of the upper boundary or the lower boundary to obtain the upper boundary or the lower boundary of the filled cavity respectively;

[0046] The diameter line extended from the narrowest point intersects with the upper boundary or lower boundary of the filled cavity to obtain the upper stenosis thickness or the lower stenosis thickness.

[0047] Furthermore, the calculation formula for the long axis diameter stenosis rate of the dialysis access is:

[0048] ,

[0049] Among them, MLD is the minimum diameter of the lumen, B is the expected diameter at the narrowest position, B is the sum of MLD and ST, and ST is the thickness of the narrowest point.

[0050] Furthermore, the calculation formula for the short axis area stenosis rate of the dialysis access is:

[0051] ,

[0052] ,

[0053] ,

[0054] in, is the number of pixels in the cavity area, is the pixel, lumen is the cavity segmentation map, is the area of ​​a single pixel, S is the actual cavity area, and N is the expected area of ​​the narrowest point, where N is calculated by the expected diameter of the narrowest position.

[0055] A second object of the present invention is to provide a computer-readable storage medium having program instructions stored thereon, wherein the program instructions implement the above method when executed.

[0056] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0057] The present invention provides a method and medium for classifying and segmenting dialysis access ultrasound images and calculating the vascular stenosis rate. First, an improved VLSC-Net with U-Net as the backbone network is used for image segmentation and feature extraction. The DA ultrasound image segmentation and classification model can automatically segment the ultrasound image of the DA lumen and classify the stenosis type (calcification, intimal hyperplasia); secondly, a morphological processing method is used to automatically calculate the stenosis rate of the segmented and classified lumen ultrasound image. The present invention can quickly calculate the stenosis rate in the DA ultrasound image of the dialysis patient, greatly improving the efficiency of medical staff's evaluation of the patient's DA, and this objective method eliminates the subjectivity of different doctors' evaluation of the same patient's DA, and can provide better hemodialysis treatment support for dialysis patients, thereby improving the quality of life of patients.

[0058] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention and implement it according to the contents of the specification, the following is a detailed description of the preferred embodiments of the present invention in conjunction with the accompanying drawings. The specific implementation of the present invention is given in detail by the following embodiments and their accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0060] Figure 1 This is a schematic diagram of the lumen of the dialysis access;

[0061] Figure 2 The process of the method for classifying and segmenting the dialysis access ultrasound image and calculating the vascular stenosis rate of Example 1 is as follows Figure 1 ;

[0062] Figure 3 The process of the method for classifying and segmenting the dialysis access ultrasound image and calculating the vascular stenosis rate of Example 1 is as follows Figure 2 ;

[0063] Figure 4 Schematic diagram of the structure of SFE, AFE and CFE in Example 1;

[0064] Figure 5 This is a diagram of the VLSC-Net architecture of Example 1;

[0065] Figure 6 This is a schematic diagram of calculating the narrowest position and the minimum diameter of the lumen in Example 1;

[0066] Figure 7 Schematic diagram of the minimum lumen diameter calculation process of Example 1;

[0067] Figure 8 This is a schematic diagram of the calculation process of the thickness at the narrowest point in Example 1;

[0068] Fig. 9 The narrowest point thickness calculation flow chart of Example 1;

[0069] Fig.10 Schematic diagram of the calculation process of the long axis diameter stenosis rate in Example 1;

[0070] Fig.11 Schematic diagram of the calculation process of short-axis area stenosis rate in Example 1;

[0071] Fig.12 is a schematic diagram of an electronic device of Example 2;

[0072] Fig.13 This is a schematic diagram of the storage medium of Example 3. DETAILED DESCRIPTION

[0073] The present invention is further described below in conjunction with the accompanying drawings and specific implementation methods. It should be noted that, under the premise of no conflict, the various embodiments or technical features described below can be arbitrarily combined to form a new embodiment.

[0074] In the following description, suffixes such as "component" or "unit" used to indicate elements are used only to facilitate the description of the present invention, and have no specific meanings by themselves. Therefore, "component" or "unit" may be used mixedly.

[0075] Example 1

[0076] A method for classifying and segmenting dialysis access ultrasound images and calculating vascular stenosis rate, such as Figure 2 , Figure 3 As shown, the following steps are included:

[0077] S1, input the ultrasound image into the deep neural network to generate the segmented image and stenosis type;

[0078] In this embodiment, the deep neural network uses an improved VLSC-Net architecture with U-Net as the backbone network to automatically segment the vascular cavity and classify the stenosis in the long and short axis ultrasound images. Specifically, VLSC-Net receives an unprocessed 2D ultrasound image as input and generates segmentation results and stenosis types. The VLSC-Net architecture includes an encoding branch, a decoding branch, and a classification branch. In order to effectively utilize the extracted features, the decoding branch and the classification branch share the encoding branch;

[0079] The encoding branch is used to capture the information details of the input ultrasound image;

[0080] The decoding branch is used to gradually upsample and refine the feature map for cavity segmentation;

[0081] The classification branch is used to summarize spatial information and perform narrow classification.

[0082] In this embodiment, the encoding branch uses a large-core convolutional layer to capture the information details of the input image; the decoding branch uses a dual convolutional block, which includes two consecutive convolutional layers, to gradually upsample and refine the feature map for cavity segmentation; the classification branch applies a global average pooling layer to summarize spatial information, and then connects two fully connected layers for stenosis classification. Specifically, the input ultrasound image is first encoded by the encoding branch, and the generated feature map is used to generate a segmentation map through the decoding branch and to classify stenosis through the classification branch.

[0083] In this embodiment, the segmentation part of VLSC-Net contains five layers. The first layer uses a large convolution kernel to expand the receptive field, for example, the first layer uses a large 7×7 convolution kernel to expand the receptive field instead of using two consecutive convolution-ReLU blocks. In the feature extraction module of each subsequent layer, the ConvNeXt method is used to replace the first convolution-ReLU block with a deep convolution, for example, replace the first convolution-ReLU block with a 7×7 deep convolution, and use a standard convolution after the deep convolution, for example, followed by a 3×3 standard convolution, and each convolution layer adds GELU activation and batch normalization.

[0084] In order to further enhance the feature representation, the skip connection between the encoding branch and the decoding branch introduces a feature enhancement mechanism.

[0085] The feature enhancement mechanism aims to improve the expressiveness of the neural network, enabling the model to focus on relevant features and improve its robustness. The feature enhancement mechanism includes spatial feature enhancement (SFE) module, channel feature enhancement (CFE) module and attention-aware feature enhancement (AFE) module, which are introduced in each jump connection of the VLSC-Net architecture.

[0086] The spatial feature enhancement module captures spatial relationships within the data by focusing on different parts of the input image, aiming to improve the quality and reliability of the spatial information captured in the feature map. It is particularly suitable for tasks that require accurate preservation of spatial context, such as image segmentation.

[0087] The channel-wise feature enhancement module enhances feature maps by channels rather than spatial coordinates, and assigns weights to different channels based on global statistics. The principle is that not all feature channels are equally important for learning representations for a specific task, and some may be more important than others in a specific context.

[0088] The attention-aware feature enhancement module includes a spatial feature enhancement module and a channel feature enhancement module, emphasizing the importance of spatial and channel information.

[0089] Since the first layer of the segmentation part of VLSC-Net has a relatively higher resolution and fewer channels, the SFE module is introduced. The AFE module is introduced in the second and third layers because they have more complex spatial and channel information. The CFE module is added in the fourth layer, where the feature map has a low resolution and a large number of channels. The structures of the SFE module, AFE module, and CFE module are shown in Figure 2. Figure 4 As shown in (b), (c), and (a), the architecture of VLSC-Net is as follows Figure 5 shown.

[0090] In the CFE module, the input features of dimension W × H × 1 are first processed in a global average pooling layer to set the initial weights for each channel, resulting in a 1×1×C-dimensional tensor. The initial weights then pass through two fully connected layers with ReLU and Sigmoid activation functions. The resulting weights are then multiplied by the original input channel by channel. These processes can be described by the following mathematical expressions:

[0091] ,

[0092] Among them, f CFE (X) and X represent the output and input respectively, GAP and FC represent the global average pooling layer and the fully connected layer respectively. and They are Sigmoid and ReLU activation functions, and the operator " ” stands for channel-by-channel multiplication.

[0093] In the SFE module, the input features are first processed by a 3×3 convolutional layer with a ReLU activation function, followed by a 3×3 depthwise separable convolutional layer with a Sigmoid activation function. The resulting features are then element-wise multiplied with the original input features. Therefore, it can be expressed as:

[0094] ,

[0095] in, and Represent the traditional convolutional layer and the depthwise convolutional layer with a core size of 3×3, respectively. The operator “ ” stands for element-wise multiplication.

[0096] The AFE module contains CFE and SFE submodules, whose features are connected to the original input. Then, a 1×1 convolutional layer with Mish activation function is used to fuse the information. In order to prevent the gradient from disappearing, residual connection is also used. The final expression of the AFE module can be expressed as follows:

[0097] ,

[0098] in, represents a concatenation operation, while "BN" represents a convolutional layer. The operators "BN" and "+" represent batch normalization and element-wise addition, respectively. The ReLU activation function in the original AFE module has been replaced by the Mish activation function because it can retain small negative outputs, making the optimization more effective.

[0099] The stenosis rate of DA is calculated by morphological processing of the lumen segmented image, which specifically includes the following steps:

[0100] S2, extracting the skeleton of the vascular lumen from the segmented image;

[0101] When calculating the diameter and stenosis ratio of DA, if the diameters on both sides of the long axis of the vessel are different, it is necessary to first determine the central axis of the lumen. Therefore, this axis may not be horizontal along the x-axis. Figure 7 Taking (a) as an example, for the processed segmented image, the Zhang-Sun thinning algorithm is used to extract the skeleton of the vascular cavity, such as Figure 7 As shown in (b).

[0102] S3, extracting points from the skeleton, fitting the extracted points, and using the fitting results as the central axis of the cavity;

[0103] In this embodiment, the least square method is used to fit these points into a straight line as the central axis of the cavity, such as Figure 7 As shown in (c).

[0104] S4. Calculate the narrowest position and the minimum diameter of the lumen along the direction perpendicular to the central axis; Figure 6 As shown, the specific steps include:

[0105] S41. For each longitudinal image, select a region of interest (ROI), such as Figure 7 As shown in (d), it can focus on narrow locations and reduce the amount of calculation;

[0106] S42, searching for upper boundary points of the blood vessel lumen one by one in the region of interest, and then searching for lower boundary points along a direction perpendicular to the central axis, and using a line connecting the upper boundary points and the lower boundary points as the height of the blood vessel lumen at that position;

[0107] S43. After traversing all points, search for the minimum value among all heights and its corresponding position, such as Figure 7 As shown in (e) and (f), determine the location of the narrowest point;

[0108] S44, connect the upper boundary point and the lower boundary point of the narrowest position to form the narrowest diameter, such as Figure 7 As shown in (g) and (h), the minimum diameter of the lumen is obtained, that is, Figure 1 MLD in.

[0109] In order to meet the calculation requirements of the European Carotid Surgery Trial (ECST) method, after obtaining the diameter of the narrowest point, it is necessary to calculate the thickness of the stenosis (i.e. Figure 1 The long-axis diameter stenosis ratio (LDSR) was derived from the ST in the uterus.

[0110] S5. According to the narrowest position, the thickness of the narrowest point is determined by fitting the cavity before the narrowing; Fig. 9 , Fig.10 As shown, the specific steps include:

[0111] Get the x coordinate of the boundary point at the narrowest position;

[0112] Extracting a plurality of continuous boundary points on both sides of the x-coordinate according to a first preset value and calculating the mean absolute error;

[0113] If the mean absolute error is greater than the error threshold, it is considered that there is stenosis at the boundary and the vascular boundary needs to be extracted;

[0114] Extracting a plurality of continuous boundary points in a first direction of the x-coordinate according to a second preset value; wherein the second preset value is greater than the first preset value;

[0115] Divide the newly obtained multiple continuous boundary points into two groups according to the midpoint, perform straight line fitting on the auxiliary lines of each group of points, and calculate the angle between the two auxiliary lines;

[0116] Determine whether the angle is greater than an angle threshold and whether the slope of the first direction auxiliary line is less than the slope of the second direction auxiliary line;

[0117] If so, the midpoint is considered to be a compliant cavity edge point;

[0118] If not, discard the boundary point closest to the second direction, and obtain a new set of pixels by adding boundary points from the boundary to the first direction, and return to the step of dividing the newly obtained multiple continuous boundary points into two groups according to the midpoints until the boundary edge is reached; wherein the second direction is opposite to the first direction;

[0119] If no cavity boundary point that meets the criteria can be found among all boundary points in the first direction of the narrowest point, the last pixel point of the boundary in the first direction of the narrowest point is used as the boundary point for straight line filling;

[0120] The two edge pixel points of the upper boundary or the lower boundary are calculated through the above steps;

[0121] Connect two edge pixel points of the upper boundary or the lower boundary to obtain the upper boundary or the lower boundary of the filled cavity respectively;

[0122] The diameter line extended from the narrowest point intersects with the upper boundary or lower boundary of the filled cavity to obtain the upper stenosis thickness or the lower stenosis thickness.

[0123] by Figure 8 Taking (a) as an example, extract the x coordinate of the upper boundary point at the narrowest position, and then extract 30 consecutive upper boundary points on each side, such as Figure 8 As shown in (b). The mean absolute error (MAE) is calculated for these 60 points. If the MAE is greater than 1 ( Figure 8 In (b), it is considered that the upper boundary is narrowed and the vascular boundary needs to be extracted. On the contrary, it is considered that there is no narrowing on the upper boundary ( Figure 8 In (c), it is not necessary to extract the vascular boundary. In the case where the vascular boundary needs to be extracted, 60 consecutive upper boundary points are first selected on the left side of the upper boundary point at the narrowest position, and these 60 points are divided into two groups of 30 points on each side of the midpoint ( Figure 8 In (b), a straight line is fitted to the auxiliary lines of each set of points and the angle between the two auxiliary lines is calculated.

[0124] If the angle between the two auxiliary lines is greater than 8 degrees (the most suitable angle between the two auxiliary lines can be obtained through experiments) and the slope of the left auxiliary line is less than the slope of the right auxiliary line (note that the origin pixel position of the image is in the upper left corner), then the midpoint of these 60 points is considered to be a cavity edge point that meets the standard ( Figure 8 (f) and (g)). If this criterion is not met ( Figure 8 In (d) and (e)), the rightmost upper boundary point of the 60 points is discarded, and a new set of 60 pixels is obtained by adding an upper boundary point to the left of the upper boundary. Repeat the above steps until the upper boundary edge is reached. If no boundary point that meets the criteria is found among all the points on the upper boundary to the left of the narrow point, the last pixel point on the left upper boundary is determined as the boundary point for straight line filling. The same steps are used to find the edge pixel point on the right side of the upper boundary. The standard is changed to that the angle between the two auxiliary lines is greater than 8 degrees and the slope of the left auxiliary line is greater than the slope of the right auxiliary line ( Figure 8 Connect the two edge pixels of the upper or lower boundary to obtain the upper or lower boundary of the filled cavity ( Figure 8In (j) and (k), these are the boundaries of the normal cavity. The method for finding the edge pixels of the lower boundary is the same as that for finding the edge pixels of the upper boundary. Figure 8 middle The figure shows the case where the final boundary point is identified as the edge point on the left side of the lower boundary. In this particular case, since no boundary points meeting the specified criteria were found on the left side of the lower boundary, this indicates that the cavity is relatively unobstructed. The process of edge filling is as follows Fig. 9 Extending the diameter line from the red mark at the narrowest point to intersect the filling boundary of the normal cavity represented by the blue line produces a green line representing the upper or lower stenosis thickness. Adding the upper and lower stenosis thicknesses (i.e. Figure 1 The ST in the middle of the tube is then compared with the minimum diameter of the lumen (i.e. Figure 1 The normal cavity diameter at the narrowest point is obtained by adding the MLD in Figure 1 B in.

[0125] S6. Calculate the long-axis diameter stenosis rate of the dialysis pathway by the thickness at the narrowest point and the minimum diameter of the lumen. This embodiment adopts the LDSR calculation method of the ECST method. The calculation formula for the long-axis diameter stenosis rate of the dialysis pathway is:

[0126] ,

[0127] Among them, MLD is the minimum diameter of the lumen, B is the expected diameter at the narrowest position, B is the sum of MLD and ST, and ST is the thickness of the narrowest point.

[0128] by Fig.10 For example, Fig.10 In (d), the calculated upper stenosis thickness is 1.44 mm, the lower stenosis thickness is 1.17 mm, the minimum lumen diameter is 1.75 mm, and the long axis diameter stenosis rate of the dialysis pathway is 59.9%.

[0129] To ensure the completeness of DA examination, short-axis area stenosis rate (SASR) is also an important evaluation index. Usually, the short-axis image of DA is circular, such as Fig.11 As shown. The missing long-axis diameter needs to be supplemented to calculate the long-axis stenosis. This diameter can be used to calculate the expected cross-sectional area of ​​DA at the short-axis stenosis. The segmented image of the vascular lumen was obtained using VLSC-Net, and a morphological opening operation was performed to eliminate noise. In the processed short-axis image, S7, the short-axis area stenosis rate of the dialysis access was calculated by the thickness of the narrowest point, the minimum diameter of the lumen, and the actual lumen area. The calculation formula is:

[0130] ,

[0131] ,

[0132] ,

[0133] in, is the number of pixels in the cavity area, is the pixel, lumen is the cavity segmentation map, is the area of ​​a single pixel, S is the actual cavity area, and N is the expected area of ​​the narrowest point, which is calculated by the expected diameter B at the narrowest position. The area of ​​a single pixel is .

[0134] by Fig.11 For example, Fig.11 The calculated stenosis area in (d) is 5.47 mm 2 The normal area of ​​blood vessels is 14.92 mm 2 The short-axis area stenosis rate of the dialysis access was 63.3%.

[0135] This embodiment can quickly calculate the stenosis rate in the DA ultrasound image of the dialysis patient within 164ms, greatly improving the efficiency of medical staff in evaluating the patient's DA. This objective method eliminates the subjectivity of different doctors' evaluation of the same patient's DA, and can provide better hemodialysis treatment support for dialysis patients, thereby improving the patients' quality of life.

[0136] Example 2

[0137] An electronic device, such as Fig.12 As shown, it includes: a memory on which program codes are stored; a processor connected to the memory, and when the program codes are executed by the processor, a method for classifying and segmenting dialysis access ultrasound images and calculating vascular stenosis rate is implemented. For a detailed description of the method, reference can be made to the corresponding description in the above method embodiment, which will not be repeated here.

[0138] Example 3

[0139] A computer readable storage medium such as Fig.13 As shown, program instructions are stored thereon, and when the program instructions are executed, a method for classifying and segmenting dialysis access ultrasound images and calculating vascular stenosis rate is implemented. For a detailed description of the method, reference may be made to the corresponding description in the above method embodiment, and no further description is given here.

[0140] The number of devices and processing scales described here are used to simplify the description of the present invention. Applications, modifications and variations of the present invention will be obvious to those skilled in the art.

[0141] Although the embodiments of the present invention have been disclosed as above, they are not limited to the applications listed in the specification and implementation modes. They can be fully applied to various fields suitable for the present invention. For those familiar with the art, additional modifications can be easily implemented. Therefore, without departing from the general concept defined by the claims and the scope of equivalents, the present invention is not limited to the specific details and the illustrations shown and described herein.

[0142] The apparatus, electronic device, non-volatile computer storage medium and method provided in the embodiments of this specification correspond to each other, and therefore, the apparatus, electronic device and non-volatile computer storage medium also have similar beneficial technical effects as the corresponding method. Since the beneficial technical effects of the method have been described in detail above, the beneficial technical effects of the corresponding apparatus, electronic device and non-volatile computer storage medium will not be repeated here.

[0143] Those skilled in the art also know that, in addition to implementing the controller in a purely computer-readable program code, the controller can be made to implement the same function in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, such a controller can be considered as a hardware component, and the devices for implementing various functions included therein can also be considered as structures within the hardware component. Or even, the devices for implementing various functions can be considered as both software units for implementing the method and structures within the hardware component.

[0144] The systems, devices or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. For the convenience of description, the above devices are described separately by functions in various units. Of course, when implementing one or more embodiments of this specification, the functions of each unit can be implemented in the same or more software and / or hardware.

[0145] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, the embodiments of this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0146] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0147] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0148] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0149] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0150] The specification may be described in the general context of computer-executable instructions executed by a computer, such as program units. Generally, program units include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communications network. In a distributed computing environment, program units may be located in local and remote computer storage media, including storage devices.

[0151] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0152] The above description is only an embodiment of this specification and is not intended to limit one or more embodiments of this specification. For those skilled in the art, one or more embodiments of this specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of this specification shall be included in the scope of the claims of one or more embodiments of this specification.

Claims

1. A method for classifying and segmenting dialysis access ultrasound images and calculating vascular stenosis rate, characterized in that: The following steps are involved: The ultrasound image is input into a deep neural network to generate segmented images and stenosis types; extracting a skeleton of a blood vessel lumen from the segmented image; Extracting points from the skeleton, fitting the extracted points, and using the fitting results as the central axis of the cavity; Calculate the narrowest position and the minimum diameter of the lumen along the direction perpendicular to the central axis; According to the narrowest position, the thickness of the narrowest point is determined by fitting the cavity before the narrowing; The stenosis rate of the long axis diameter of the dialysis access is calculated by the thickness at the narrowest point and the minimum diameter of the lumen; Calculate the short-axis area stenosis rate of the dialysis access by the thickness at the narrowest point, the minimum diameter of the lumen and the actual lumen area; Determining the thickness of the narrowest point by fitting the cavity before stenosis according to the narrowest position comprises the following steps: Obtaining the x-coordinate of the boundary point of the narrowest position; Extracting a plurality of continuous boundary points on both sides of the x-coordinate according to a first preset value and calculating a mean absolute error; If the mean absolute error is greater than the error threshold, it is considered that there is stenosis at the boundary and the blood vessel boundary needs to be extracted; Extracting a plurality of continuous boundary points in a first direction of the x-coordinate according to a second preset value; wherein the second preset value is greater than the first preset value; Divide the newly obtained multiple continuous boundary points into two groups according to the midpoint, perform straight line fitting on the auxiliary lines of each group of points, and calculate the angle between the two auxiliary lines; Determine whether the angle is greater than an angle threshold and whether the slope of the first direction auxiliary line is less than the slope of the second direction auxiliary line; If yes, the midpoint is considered to be a cavity edge point that meets the criteria; If not, discard the boundary point closest to the second direction, and obtain a new set of pixels by adding boundary points from the boundary to the first direction, and return to the step of dividing the newly obtained multiple continuous boundary points into two groups according to the midpoints to continue executing until the boundary edge is reached; wherein the second direction is opposite to the first direction; If no cavity boundary point that meets the criteria can be found among all boundary points in the first direction of the narrowest point, the last pixel point of the boundary in the first direction of the narrowest point is used as the boundary point for straight line filling; Obtain two edge pixel points of the upper boundary or the lower boundary by calculation; Connect two edge pixel points of the upper boundary or the lower boundary to obtain the upper boundary or the lower boundary of the filled cavity respectively; The diameter line extended from the narrowest point intersects with the upper boundary or lower boundary of the filled cavity to obtain the upper stenosis thickness or the lower stenosis thickness.

2. The method for classifying and segmenting dialysis access ultrasound images and calculating vascular stenosis rate according to claim 1, characterized in that: The deep neural network adopts an improved VLSC-Net architecture with U-Net as the main network. The VLSC-Net architecture includes a coding branch, a decoding branch, and a classification branch. The decoding branch and the classification branch share the coding branch. The encoding branch is used to capture information details of the input ultrasound image; The decoding branch is used to gradually upsample and refine the feature map for cavity segmentation; The classification branch is used to summarize spatial information and perform narrow classification.

3. The method for classifying and segmenting dialysis access ultrasound images and calculating vascular stenosis rate according to claim 2, characterized in that: The skip connection between the encoding branch and the decoding branch introduces a feature enhancement mechanism.

4. The method for classifying and segmenting dialysis access ultrasound images and calculating vascular stenosis rate according to claim 3, characterized in that: The feature enhancement mechanism includes an attention-aware feature enhancement module, and the attention-aware feature enhancement module includes a spatial feature enhancement module and a channel feature enhancement module; wherein, The spatial feature enhancement module captures spatial relationships within the data by focusing on different parts of the input image; The channel-wise feature enhancement module enhances feature maps by channels rather than spatial coordinates.

5. The method for classifying and segmenting dialysis access ultrasound images and calculating vascular stenosis rate according to claim 4, characterized in that: The first layer of the decoding branch uses a large convolution kernel to expand the receptive field, and the ConvNeXt method is used in the feature extraction module of each subsequent layer. The first convolution-ReLU block is replaced by a deep convolution, and a standard convolution is used after the deep convolution. A GELU activation function and a batch normalization layer are added to each convolution layer.

6. The method for classifying and segmenting dialysis access ultrasound images and calculating vascular stenosis rate according to claim 5, characterized in that: The decoding branch comprises five layers, the first layer of the decoding branch introduces the spatial feature enhancement module, the second and third layers of the decoding branch introduce the attention-aware feature enhancement module, and the fourth layer of the decoding branch introduces the channel feature enhancement module.

7. The method for classifying and segmenting dialysis access ultrasound images and calculating vascular stenosis rate according to claim 1, characterized in that: The step of extracting the skeleton of the vascular cavity from the segmented image comprises: For the segmented image, a Zhang-Sun thinning algorithm is used to extract the skeleton of the blood vessel cavity; The step of fitting the extracted points comprises: The extracted points are fitted into a straight line using the least squares method as the central axis of the cavity.

8. The method for classifying and segmenting dialysis access ultrasound images and calculating vascular stenosis rate according to claim 1, characterized in that: Calculating the narrowest position and the minimum diameter of the lumen along a direction perpendicular to the central axis comprises the following steps: For each longitudinal image, a region of interest was selected; Find the upper boundary points of the blood vessel lumen one by one in the region of interest, then find the lower boundary points along the direction perpendicular to the central axis, and use the line connecting the upper boundary points and the lower boundary points as the height of the blood vessel lumen at that position; After traversing all points, search for the minimum value among all heights and its corresponding position to determine the narrowest position; The upper boundary point and the lower boundary point of the narrowest position are connected to form the narrowest diameter, thereby obtaining the minimum diameter of the lumen.

9. The method for classifying and segmenting dialysis access ultrasound images and calculating vascular stenosis rate according to claim 1, characterized in that: The calculation formula of the long axis diameter stenosis rate of the dialysis access is: , Among them, MLD is the minimum diameter of the lumen, B is the expected diameter at the narrowest position, B is the sum of MLD and ST, and ST is the thickness of the narrowest point.

10. The method for classifying and segmenting dialysis access ultrasound images and calculating vascular stenosis rate according to claim 9, characterized in that: The calculation formula of the short axis area stenosis rate of the dialysis access is: , , , in, is the number of pixels in the cavity area, is the pixel, lumen is the cavity segmentation map, is the area of ​​a single pixel, S is the actual cavity area, and N is the expected area of ​​the narrowest point, where N is calculated by the expected diameter of the narrowest position.

11. A computer-readable storage medium, characterized in that: Program instructions are stored thereon, and when the program instructions are executed by a computer, the method according to any one of claims 1 to 10 is implemented.