Ultrasound-based venous vessel identification method, device and equipment
Through the ultrasound-based vein identification method, U-shaped neural network and attention gate mechanism are used to identify the veins on the back of the hand, which solves the problem of manual blind puncture relying on experience in the existing technology, improves the robustness and accuracy of identification, and assists Venipuncture.
Patent Information
- Application Number
- CN202011021251.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-25
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-09-25
AI Technical Summary
In the existing technology, the success rate of artificial blind venous puncture depends on the experience of medical staff, and it is difficult to adapt to the deformation of blood vessels and changes in surrounding tissues, and has poor robustness.
An ultrasound-based vein recognition method is adopted. By acquiring ultrasound images of dorsal hand veins and using a U-shaped neural network for identification, combined with the residual module and attention gate mechanism, a preset vein recognition model is constructed to identify veins.
It improves the robustness and accuracy of vein identification, reduces dependence on the experience of medical staff, and assists in guiding venipuncture.
Smart Images

Figure CN112163506B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of blood vessel identification, and in particular relates to a method, device and equipment for vein vessel identification based on ultrasound. Background Art
[0002] Currently, venipuncture is still primarily performed blindly in medicine. This technique involves a nurse visually and palpating the vessel to be punctured, estimating the location of the puncture point and the angle of needle insertion, and then manually performing the puncture. The success rate of blind puncture relies heavily on the medical staff's experience and the condition of the patient's dorsum of the hand. Even experienced medical staff struggle to guarantee a successful puncture in patients with thick subcutaneous fat, vascular sclerosis, or small blood vessels. Training medical personnel capable of blind puncture also requires significant time and resources.
[0003] Therefore, how to assist in the identification of venous vessels, thereby guiding clinical puncture and reducing the reliance on medical staff's experience, has become a pressing technical challenge. To address this issue, existing technologies typically employ machine learning to identify vessels. Traditional machine learning methods primarily rely on threshold information about vessels and texture features of different tissues to identify their location and information.
[0004] However, the vascular features learned by this method are fixed and limited, and cannot adapt well to vascular deformation, changes in surrounding tissues, or changes in instruments and equipment, and have poor robustness. Summary of the Invention
[0005] In order to at least solve the above-mentioned problems existing in the prior art, the present invention provides an ultrasound-based venous vessel identification method, device and equipment to achieve venous vessel identification, adapt to vascular deformation, and have good robustness.
[0006] The technical solutions provided by the present invention are as follows:
[0007] In one aspect, a method for identifying veins based on ultrasound comprises:
[0008] Acquire an ultrasound image of the target person's dorsal hand vein;
[0009] Based on the target person's hand back vein ultrasound image and a preset vein vessel recognition model, the veins in the hand back vein ultrasound image are identified.
[0010] Optionally, the method for constructing the preset venous vessel recognition model includes:
[0011] Based on the ultrasound probe, a dorsal hand vein ultrasound image dataset is obtained;
[0012] Preprocessing the dorsal hand vein ultrasound image dataset according to preset processing rules to obtain a target dorsal hand vein ultrasound image dataset; the target dorsal hand vein ultrasound image dataset includes: a target training set, a target verification set, and a target test set;
[0013] Building a U-shaped neural network based on the target hand dorsal vein ultrasound image dataset;
[0014] Training the U-shaped neural network according to the target training set;
[0015] Based on the target training set and the target test set, the trained U-shaped neural network is tested and revised to obtain a target U-shaped neural network model.
[0016] Optionally, the U-shaped neural network includes: an encoding part and a decoding part; the encoding part includes: a residual module;
[0017] Each of the residual modules includes two convolutional layers; each of the convolutional layers includes a convolution unit, a batch normalization unit, and an activation function;
[0018] The residual module is used to directly add the feature map generated by the first convolutional layer and the feature map generated by the second convolutional layer, so that the convolution of the higher layer directly obtains the feature map generated by the lower layer.
[0019] Optionally, the encoding part further includes: a maximum pooling layer;
[0020] The maximum pooling layer is connected to the residual module;
[0021] The maximum pooling layer is used to scale the size of the feature map to 1 / 2 of the previous layer.
[0022] Optionally, the decoding part includes: an attention gate mechanism module;
[0023] The attention gate mechanism module is used to calculate the weight values of the blood vessel pixels and background pixels in the back of the hand vein ultrasound image, thereby increasing the weight of the blood vessel pixels and reducing the weight of the background pixels.
[0024] Optionally, the attention gate mechanism module is specifically used to:
[0025] Generate the feature weight matrix of the feature map of the corresponding coding block;
[0026] Connecting the feature weight matrix to the upsampled restored feature map channel;
[0027] The feature map of the current layer is generated through two 3*3 convolutional layers;
[0028] The feature map of the last layer is passed through an activation function, and the blood vessels in the dorsal hand vein ultrasound image are obtained through the U-shaped neural network.
[0029] Optionally, the U-shaped neural network is a U-shaped neural network in which both the encoding part and the decoding part have 5 layers.
[0030] In yet another aspect, an ultrasound-based venous vessel identification device includes: an acquisition module and an identification module;
[0031] The acquisition module is used to acquire an ultrasonic image of the dorsal hand vein of the target person;
[0032] The recognition module is used to identify the veins in the dorsal hand vein ultrasound image based on the dorsal hand vein ultrasound image of the target person and a preset vein recognition model.
[0033] Optionally, the preset venous vessel recognition model used in the recognition module is constructed through a model construction module, and the model construction module is used to: obtain a dorsal hand vein ultrasound image dataset based on an ultrasound probe; preprocess the dorsal hand vein ultrasound image dataset according to preset processing rules to obtain a target dorsal hand vein ultrasound image dataset; the target dorsal hand vein ultrasound image dataset includes: a target training set, a target verification set and a target test set; build a U-shaped neural network based on the target dorsal hand vein ultrasound image dataset; train the U-shaped neural network based on the target training set; test and revise the trained U-shaped neural network based on the target training set and the target test set to obtain a target U-shaped neural network model.
[0034] In another aspect, an ultrasound-based vein identification device includes: a processor, and a memory connected to the processor;
[0035] The memory is used to store a computer program, and the computer program is used to at least execute any one of the above-mentioned ultrasound-based vein identification methods;
[0036] The processor is configured to call and execute the computer program in the memory.
[0037] The beneficial effects of the present invention are:
[0038] The ultrasound-based vein recognition method, device and equipment provided by the embodiment of the present invention obtains an ultrasound image of the back of the hand vein of the target person; based on the ultrasound image of the back of the hand vein of the target person and a preset vein recognition model, the veins in the ultrasound image of the back of the hand vein are identified, so that the veins can be projected on the back of the hand of the target person through a projection component, or the veins can be displayed on a display screen to assist in guiding venous puncture. When constructing the preset vein recognition model, the present invention first uses Unet to identify the veins in the ultrasound image. Unlike the traditional full convolutional network, Unet uses long connections to connect the feature map generated by the encoding and the feature map restored by the corresponding decoding part using channel connections, which avoids feature loss in the downsampling process and improves the effectiveness of feature propagation. Secondly, the present invention uses a residual module to replace the traditional convolution in the encoding part of the pure Unet, which improves the reuse rate of the down-sampled feature map. At the same time, because the high-level network can directly obtain the feature map generated by the low-level network, it avoids problems such as network degradation or gradient explosion caused by network deepening. At the same time, the present invention adds an attention gate mechanism to the decoding part of Unet, so that the pixels belonging to the blood vessels are given higher weights, while non-target organs and backgrounds are identified equally, so that the network can more attentively identify the target organs during the restoration process, making the restored organs more accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0040] Figure 1 A schematic diagram of a flow chart of a method for identifying veins based on ultrasound provided in an embodiment of the present invention;
[0041] Figure 2 A schematic diagram of the structure of a residual module provided in an embodiment of the present invention;
[0042] Figure 3 A schematic diagram of the structure of an attention gate mechanism module provided by an embodiment of the present invention;
[0043] Figure 4 A schematic diagram of the structure of the target U-shaped neural network model provided by an embodiment of the present invention;
[0044] Figure 5 A schematic diagram of a simulation experiment provided by an embodiment of the present invention;
[0045] Figure 6A schematic structural diagram of an ultrasound-based vein identification device provided in an embodiment of the present invention;
[0046] Figure 7 A schematic diagram of the structure of an ultrasound-based vein identification device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0047] To make the objectives, technical solutions, and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail below. Obviously, the embodiments described are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other implementations obtained by those of ordinary skill in the art without inventive effort are within the scope of protection of the present invention.
[0048] In order to at least solve the technical problem raised in the present invention, an embodiment of the present invention provides an ultrasound-based vein identification method.
[0049] Figure 1 For a flow chart of a method for identifying veins based on ultrasound provided in an embodiment of the present invention, please refer to Figure 1 The method provided by the embodiment of the present invention may include the following steps:
[0050] S11. Acquire an ultrasound image of the dorsal hand vein of the target person;
[0051] S12. Based on the target person's hand back vein ultrasound image and a preset vein recognition model, identify the veins in the hand back vein ultrasound image.
[0052] In a specific implementation process, a patient who is to undergo venipuncture can be defined as a target person, and their veins can be identified according to the ultrasound-based vein identification method provided in the embodiment of the present application. An ultrasound image of the target person's back hand veins can be taken. To ensure the recognition effect, a clearer image of the back hand veins can be selected from multiple captured ultrasound images as the image of the vein to be identified. The ultrasound image of the back hand veins can be obtained using an ultrasound probe.
[0053] After determining the dorsal hand vein ultrasound image, the image is input into a pre-set vein recognition model to identify the veins in the dorsal hand vein ultrasound image. After the veins are identified, the projection component can project them onto the back of the target person's hand, or display them on a display screen to assist in guiding venipuncture.
[0054] In some embodiments, optionally, a method for constructing a preset venous vessel identification model includes:
[0055] Based on the ultrasound probe, a dorsal hand vein ultrasound image dataset is obtained;
[0056] According to the preset processing rules, the dorsal hand vein ultrasound image dataset is preprocessed to obtain the target dorsal hand vein ultrasound image dataset; the target dorsal hand vein ultrasound image dataset includes: a target training set, a target verification set, and a target test set;
[0057] Based on the target hand dorsal vein ultrasound image dataset, a U-shaped neural network was built;
[0058] According to the target training set, the U-shaped neural network is trained;
[0059] Based on the target training set and the target test set, the trained U-shaped neural network is tested and revised to obtain the target U-shaped neural network model.
[0060] For example, when building a model, first obtain a data set and use an ultrasound probe to obtain multiple dorsal hand vein ultrasound images of different people or the same person. The specific values are not limited here, and users can obtain them according to their needs. After obtaining multiple dorsal hand vein ultrasound images, select clear dorsal hand vein ultrasound images as the dorsal hand vein ultrasound image data set.
[0061] After obtaining a dorsal hand vein ultrasound image dataset, the dorsal hand vein ultrasound images in the dataset are preprocessed. Preset prediction rules may include: performing noise filtering and edge enhancement on the dataset, and then using bilateral filtering to enhance the difference between the ultrasound image background and the target organ to facilitate network model training and obtain the target dorsal hand vein ultrasound image dataset. The target dorsal hand vein ultrasound image dataset is then divided into a target training set, a target validation set, and a target test set in a ratio of 5:2:3. To increase the number of training sets for the network and avoid overfitting, the target test set is subjected to data enhancement operations such as rotation, translation, scaling, random occlusion, and horizontal flipping. The division ratios are merely examples in this embodiment and are not intended to be limiting.
[0062] After preprocessing the dorsal hand vein ultrasound image dataset, a U-shaped neural network is constructed based on the target dorsal hand vein ultrasound image dataset. In this embodiment, the U-shaped neural network has five layers in both the encoding and decoding parts. This is used as an example to illustrate the technical solution of this application. It is worth noting that the five layers here are merely an example and not a limitation.
[0063] In order to better identify blood vessel information in ultrasonic images, the present invention improves the encoding part.
[0064] In some embodiments, optionally, a U-shaped neural network includes: an encoding part and a decoding part; the encoding part includes: a residual module;
[0065] Each residual module includes two convolutional layers; each convolutional layer includes a convolution unit, a batch normalization unit, and an activation function;
[0066] The residual module is used to directly add the feature map generated by the first convolutional layer to the feature map generated by the second convolutional layer, so that the high-level convolution can directly obtain the feature map generated by the lower layer.
[0067] Figure 2 A schematic diagram of the structure of a residual module provided by an embodiment of the present invention.
[0068] In order to avoid the problems of gradient explosion and network degradation, the embodiment of the present invention improves the encoding part of the U-type neural network and replaces the traditional convolution with a residual module. Figure 2 , a residual module consists of two convolutional layers; each convolutional layer consists of a convolution (Conv) operation (i.e., a convolution unit) with a convolution kernel size of 3*3 and a padding value of 1, batch normalization (BatchNorm2d), and an activation function. In this embodiment, the activation function is the ReLU activation function, and its calculation formula is:
[0069]
[0070] In formula (1), x represents the input of the ReLU function, and f(x) represents the output of the ReLU activation function. Figure 2 The plus sign in represents direct addition of matrices. The residual module directly adds the feature maps generated by the first convolution to those generated by the second convolution, allowing higher-level convolutions to directly obtain feature maps generated by lower-level convolutions. This, to a certain extent, avoids problems such as network degradation and gradient explosion.
[0071] In some embodiments, optionally, the encoding part further includes: a maximum pooling layer;
[0072] The maximum pooling layer is connected to the residual module;
[0073] The maximum pooling layer is used to scale the size of the feature map to 1 / 2 of the previous layer.
[0074] In some embodiments, optionally, the decoding part includes: an attention gate mechanism module; the attention gate mechanism module is used to calculate the weight values of the blood vessel pixels and background pixels in the back of the hand vein ultrasound image, thereby increasing the weight of the blood vessel pixels and reducing the weight of the background pixels.
[0075] In some embodiments, an optional attention gate mechanism module is specifically configured to:
[0076] Generate the feature weight matrix of the feature map of the corresponding coding block;
[0077] Connect the feature weight matrix to the upsampled and restored feature map channels;
[0078] The feature map of the current layer is generated through two 3*3 convolutional layers;
[0079] The feature map of the last layer is passed through the activation function and the blood vessels in the dorsal hand vein ultrasound image are obtained through the U-shaped neural network.
[0080] Figure 3 A schematic diagram of the structure of an attention gate mechanism module provided by an embodiment of the present invention.
[0081] In order to make the network more focused on identifying the target organ when restoring the feature map, the decoding part of the U-shaped neural network is improved in this embodiment of the present invention. In this embodiment, the traditional convolution is combined with the attention gate mechanism. Figure 3 In the figure, g is the gating signal, which is the feature map from the next layer, and x is the feature map of the current layer. The attention gate mechanism first downsamples the feature x of the current layer to the same size as g, then performs matrix addition, and then performs nonlinear transformation using the relu activation function. Finally, the sigmoid function is used to calculate the weight value of each pixel, and then the weight value is multiplied by the current feature x, so that the pixels where the target organ is located receive higher weights, and the pixels where the background is located receive lower weights. This allows the network to more focusedly identify the target organ (blood vessel).
[0082] Figure 4 This is a schematic diagram of the structure of the target U-shaped neural network model provided by an embodiment of the present invention. Figure 4 Each encoding layer consists of a residual module and a max pooling layer. The convolution kernel size of the max pooling layer is 2x2 with a stride of 2. The function of the max pooling layer is to scale the size of the feature map to 1 / 2 of the previous layer. In this way, the convolution operation of this layer can achieve a larger receptive field. The decoding layer consists of upsampling and an attention gate mechanism. Upsampling uses the adjacent interpolation method to restore the feature map scaled to 1 / 2 to its original size. The operation process of the decoding block is to first use the attention gate mechanism to generate the feature weight matrix of the feature map of the corresponding encoding block, then connect the feature weight matrix with the feature map restored by upsampling, and then generate the feature map of the current layer through two 3*3 convolutions. Finally, the feature map of the last layer is passed through the sigomid activation function to obtain the output of the U-shaped neural network.
[0083] After the U-shaped neural network is constructed, it is trained. The pre-processed training set is put into the network and sequentially passes through five layers of residual coding blocks to extract the feature matrix of the image.
[0084] The U-shaped neural network model provided by the embodiment of the present invention has 5 layers for both encoding and decoding. The results obtained after five encodings are upsampled by 2 times through the decoding block. The result g obtained after upsampling is input into the attention gate module together with the feature map x generated by the corresponding encoding block to obtain the weighted feature map x'. After channel connection of x' and g, two convolution operations are performed to obtain the output of the current layer, which is then input to the next decoding block.
[0085] Among them, the relu function refers to the rectified linear function, which is a very commonly used activation function in artificial neural networks. Its formula is
[0086] Relu(x)=max(0,x) Formula (2)
[0087] The ReLU function requires less computation than functions like sigmoid, reducing network training time. It also reduces the output of some neurons to 0, increasing network sparsity and reducing the interdependence between network parameters. This, similar to data augmentation, prevents overfitting in network training.
[0088] Repeat the previous step to upsample the feature map to the size of the original image, and then use the activation function sigmoid to convert the feature map into a probability map of the same size as the original image.
[0089] The sigmoid formula used here is
[0090]
[0091] The formula for its derivative is
[0092]
[0093] The Sigmoid function has excellent symmetry, and its output range is (0, 1). As the input approaches positive and negative infinity, the function becomes smooth, making it insensitive to inputs exceeding a certain range. Because the output of the sigmoid function is between 0 and 1, the present invention selects the sigmoid function as the activation function of the output layer to determine whether the current pixel is a blood vessel.
[0094] In an embodiment of the present invention, a cross entropy cost function is used to compare the obtained probability distribution graph with the true label graph. The formula of the cross entropy cost function is:
[0095]
[0096] In formula (5), y represents the true label map, a represents the probability distribution map, and n is the number of collected samples.
[0097] After obtaining the cost function value, the gradient of each weight value is calculated according to the Adam gradient descent method to perform back propagation and update the value of each weight.
[0098] The Adam gradient descent algorithm combines the advantages of the two optimization algorithms, AdaGrad and RMSProp, and comprehensively considers the first-order moment estimation and the second-order moment estimation to calculate the update step size. Adam is not only simple to implement, computationally efficient, and has low memory requirements, but the update of parameters is not affected by the scaling of the gradient. At the same time, Adam's hyperparameters are well interpretable and usually do not require adjustment or only require a small amount of fine-tuning. In combination with the above points, the present invention uses the Adam gradient descent method.
[0099] Adam's gradient descent process is:
[0100] Vdw=β1Vdw+(1-β1)dw Formula (6)
[0101] Vdb=β1Vdb+(1-β1)db Formula (7)
[0102] Sdw=β2Sdw+(1-β2)dw 2 Formula (8)
[0103] Sdb=β2Sdb+(1-β2)db 2 Formula (9)
[0104]
[0105]
[0106]
[0107]
[0108]
[0109]
[0110] In formula (6-15), β1 and β2 are hyperparameters, with β1 set to 0.9 and β2 set to 0.999. W refers to the network weight, b refers to the offset, and t represents the current number of iterations. The initial values of Vdw, Vdb, Sdw, and Sdb are all 0. Vdw and Vdb are the first-order momentum of the weight w and offset b, respectively, which is the exponential moving average of the gradient direction at each moment. Sdw and Sdb are the second-order momentum of w and b, which is the sum of the squares of all gradient values up to the tth iteration. V′dw, V′db, S′dw, and S′db refer to the first-order momentum and second-order momentum after parameter correction at the tth iteration.
[0111] After training the network, test the network: put the training set into the U-shaped neural network in the same way as the test set, but without backpropagation, and compare the obtained results with the true label map (ground_truth). Figure 5 Schematic diagram of the simulation experiment provided by the embodiment of the present invention. Figure 5 It can be seen that the blood vessels identified by the method of the present application can be clearly displayed.
[0112] The ultrasound-based vein recognition method provided by an embodiment of the present invention obtains an ultrasound image of the veins on the back of the hand of a target person; based on the ultrasound image of the veins on the back of the hand of the target person and a preset vein recognition model, the veins in the ultrasound image of the veins on the back of the hand of the target person are identified, so that the veins can be projected on the back of the hand of the target person through a projection component, or the veins can be displayed on a display screen to assist in guiding venipuncture.
[0113] In an embodiment of the present invention, when constructing a preset venous vessel recognition model, the present invention first uses Unet to identify venous vessels in ultrasound images. Unlike traditional fully convolutional networks, Unet uses long connections to splice the feature map generated by encoding and the feature map restored by the corresponding decoding part using channel connections. This avoids feature loss during the downsampling process and improves the effectiveness of feature propagation.
[0114] Secondly, the present invention uses the residual module to replace the traditional convolution in the encoding part of the pure Unet, which improves the reuse rate of the down-sampling feature map. At the same time, since the high-level network can directly obtain the feature map generated by the low-level network, it avoids problems such as network degradation or gradient explosion caused by network deepening.
[0115] At the same time, the present invention adds an attention gate mechanism to the decoding part of Unet, so that the pixels belonging to the blood vessels are given higher weights, while non-target organs and backgrounds are identified equally, so that the network can more attentively identify the target organs during the restoration process, making the restored organs more accurate.
[0116] Based on a general inventive concept, an embodiment of the present invention further provides an ultrasound-based venous vessel identification device.
[0117] Figure 6 For a schematic diagram of the structure of an ultrasound-based vein identification device provided in an embodiment of the present invention, please refer to Figure 6 , the device provided by the embodiment of the present invention may include the following structures: an acquisition module 61 and an identification module 62;
[0118] An acquisition module 61 is used to acquire an ultrasonic image of the dorsal vein of a target person;
[0119] The recognition module 62 is configured to recognize the veins in the back of the hand vein ultrasound image based on the back of the hand vein ultrasound image of the target person and a preset vein recognition model.
[0120] Optionally, the preset vein recognition model based on the recognition module is constructed through a model construction module, and the model construction module is used to: obtain a dorsal hand vein ultrasound image dataset based on an ultrasound probe; preprocess the dorsal hand vein ultrasound image dataset according to preset processing rules to obtain a target dorsal hand vein ultrasound image dataset; the target dorsal hand vein ultrasound image dataset includes: a target training set, a target verification set and a target test set; build a U-shaped neural network based on the target dorsal hand vein ultrasound image dataset; train the U-shaped neural network based on the target training set; test and revise the trained U-shaped neural network based on the target training set and the target test set to obtain a target U-shaped neural network model.
[0121] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0122] The ultrasound-based vein identification device provided in an embodiment of the present invention obtains an ultrasound image of the veins on the back of the hand of a target person; based on the ultrasound image of the veins on the back of the hand of the target person and a preset vein identification model, the veins in the ultrasound image of the veins on the back of the hand of the target person are identified, so that the veins can be projected on the back of the hand of the target person through a projection component, or the veins can be displayed on a display screen to assist in guiding venipuncture.
[0123] Based on a general inventive concept, an embodiment of the present invention further provides an ultrasound-based vein identification device.
[0124] Figure 7 For a schematic diagram of the structure of an ultrasound-based vein identification device provided in an embodiment of the present invention, please refer to Figure 7An embodiment of the present invention provides an ultrasound-based vein identification device, including: a processor 71, and a memory 72 connected to the processor.
[0125] The memory 72 is used to store a computer program, which is used at least for the ultrasound-based vein identification method described in any one of the above embodiments;
[0126] The processor 71 is used to call and execute computer programs in the memory.
[0127] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any modifications or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present invention should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.
[0128] It can be understood that the same or similar parts of the above embodiments can be referenced to each other, and the contents not described in detail in some embodiments can refer to the same or similar contents in other embodiments.
[0129] It should be noted that, in the description of the present invention, the terms "first", "second", etc. are used for descriptive purposes only and should not be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, the meaning of "plurality" is at least two.
[0130] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may be performed out of the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention pertain.
[0131] It should be understood that various parts of the present invention can be implemented using hardware, software, firmware, or a combination thereof. In the above-described embodiments, multiple steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application-specific integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0132] Those skilled in the art will understand that all or part of the steps in the method of the above embodiment can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiment.
[0133] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing module, or each unit may exist physically separately, or two or more units may be integrated into a single module. The aforementioned integrated modules may be implemented in the form of hardware or in the form of software functional modules. If the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they may also be stored in a computer-readable storage medium.
[0134] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.
[0135] Throughout this specification, reference to terms such as "one embodiment," "some embodiments," "examples," "specific examples," or "some examples" means that a specific feature, structure, material, or characteristic described in conjunction with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
[0136] Although the embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are illustrative and are not to be construed as limitations on the present invention. A person skilled in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.
Claims
1. A method for identifying veins based on ultrasound. It is characterized in that include: Acquire the target person's back hand vein ultrasound image; Based on the dorsal hand vein ultrasound image of the target person and a preset vein blood vessel recognition model, identifying the vein blood vessels in the dorsal hand vein ultrasound image; The method for constructing the preset venous vessel recognition model includes: Based on the ultrasound probe, a dorsal hand vein ultrasound image dataset is obtained; Preprocessing the hand back vein ultrasound image dataset according to preset processing rules to obtain a target hand back vein ultrasound image dataset; the target hand back vein ultrasound image dataset includes: a target training set, a target verification set and a target test set; According to the target hand back vein ultrasound image data set, a U-shaped neural network is constructed; wherein the U-shaped neural network includes: an encoding part and a decoding part; the encoding part includes: a residual module; each of the residual modules includes: two convolutional layers; each of the convolutional layers includes: a convolution unit, a batch normalization unit and an activation function; the residual module is used to directly add the feature map generated by the first convolutional layer to the feature map generated by the second convolutional layer, so that the high-level convolution directly obtains the feature map generated by the lower layer; the encoding part also includes: a maximum pooling layer; the maximum pooling layer is connected to the residual module; the maximum pooling layer is used to scale the size of the feature map to 1 / 2 of the previous layer; The decoding part includes: an attention gate mechanism module; the attention gate mechanism module is used to calculate the weight values of the blood vessel pixels and background pixels in the back of the hand vein ultrasound image, so as to increase the weight of the blood vessel pixels and reduce the weight of the background pixels; the attention gate mechanism module is specifically used to: generate a feature weight matrix of the feature map of the corresponding coding block; connect the feature weight matrix with the feature map channel restored by upsampling; generate the feature map of the current layer through two 3*3 convolutional layers; pass the feature map of the last layer through the activation function, and obtain the blood vessels in the back of the hand vein ultrasound image through the U-shaped neural network; Training the U-shaped neural network according to the target training set; Based on the target training set and the target test set, the trained U-shaped neural network is tested and revised to obtain a target U-shaped neural network model.
2. The method according to claim 1, It is characterized in that The U-type neural network is a U-type neural network in which both the encoding part and the decoding part have 5 layers.
3. A venous vessel identification device based on ultrasound, It is characterized in that include: Acquisition module and identification module; The acquisition module is used to acquire the target person's back hand vein ultrasonic image; The recognition module is used to recognize the veins in the back of the hand vein ultrasound image based on the back of the hand vein ultrasound image of the target person and a preset vein recognition model; The preset venous vessel recognition model used in the recognition module is constructed by a model construction module, and the model construction module is used to: obtain a dorsal hand vein ultrasound image dataset based on an ultrasound probe; pre-process the dorsal hand vein ultrasound image dataset according to a preset processing rule to obtain a target dorsal hand vein ultrasound image dataset; the target dorsal hand vein ultrasound image dataset includes: a target training set, a target verification set, and a target test set; build a U-shaped neural network according to the target dorsal hand vein ultrasound image dataset; train the U-shaped neural network according to the target training set; test and revise the trained U-shaped neural network based on the target training set and the target test set to obtain a target U-shaped neural network model; the encoding part also includes: a maximum pooling layer; the maximum pooling layer is connected to the residual module; the maximum pooling layer is used to scale the size of the feature map to 1 / 2 of the previous layer; The U-shaped neural network includes: an encoding part and a decoding part; the encoding part includes: a residual module; each of the residual modules includes: two convolutional layers; each of the convolutional layers includes: a convolution unit, a batch normalization unit and an activation function; the residual module is used to directly add the feature map generated by the first convolutional layer to the feature map generated by the second convolutional layer, so that the high-level convolution directly obtains the feature map generated by the lower layer; The decoding part includes: an attention gate mechanism module; the attention gate mechanism module is used to calculate the weight values of blood vessel pixels and background pixels in the back of the hand vein ultrasound image, so as to increase the weight of the blood vessel pixels and reduce the weight of the background pixels; the attention gate mechanism module is specifically used to: generate a feature weight matrix of the feature map of the corresponding coding block; connect the feature weight matrix with the feature map channel of the upsampling restoration; generate the feature map of the current layer through two 3*3 convolutional layers; pass the feature map of the last layer through the activation function, and obtain the blood vessels in the back of the hand vein ultrasound image through the U-shaped neural network.
4. An ultrasound-based venous vessel identification device, It is characterized in that include: A processor, and a memory connected to the processor; The memory is used to store a computer program, and the computer program is used to at least execute the ultrasound-based venous vessel identification method according to any one of claims 1 to 2; The processor is used to call and execute the computer program in the memory.
