A brachial plexus anesthesia puncture guidance method and system based on deep learning

Through the deep denoising autoencoder and multi-scale feature extraction module, combined with the domain generalization deep learning model, the problem of noise interference and scale difference in brachial plexus ultrasound images is solved, high-precision brachial plexus identification is achieved, and the cost is reduced. Training costs.

CN118570303BActive Publication Date: 2024-10-11南昌大学第一附属医院
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411049590.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2024-10-11
Estimated Expiration
2044-08-01

AI Technical Summary

Technical Problem

The existing technology has noise interference and scale differences in brachial plexus ultrasound images, which results in reduced model generalization capabilities and missing features, and requires a large number of data sets to train high-precision models, which consumes manpower and material resources.

Method used

A deep denoising autoencoder is used to remove noise, and a multi-scale feature extraction module and domain generalization deep learning model are constructed. Through deep learning model training and deployment, the position of the brachial plexus in the patient's brachial plexus ultrasound image is obtained.

Benefits of technology

Effectively remove noise, retain local detailed features and global information of the brachial plexus, use smaller-scale data sets to achieve high-precision brachial plexus identification, and reduce manpower and material costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570303B_ABST
    Figure CN118570303B_ABST
Patent Text Reader

Abstract

The present invention discloses a brachial plexus anesthesia puncture guidance method and system based on deep learning. The method comprises constructing a deep denoising autoencoder to denoise a brachial plexus ultrasound image, and using the denoised image to construct source domain and target domain data sets; constructing a multi-scale feature extraction module to obtain image features in the source domain and target domain data sets to train the constructed domain generalization deep learning model; deploying the deep denoising autoencoder, the multi-scale feature extraction module and the trained domain generalization deep learning model on a background server to obtain the position of the brachial plexus in an input brachial plexus ultrasound image of a patient; the present invention can effectively remove various noises in physiological data, retain the local detail features and global information of the brachial plexus in the brachial plexus ultrasound image, and the constructed domain generalization deep learning model only needs to be trained with a smaller-scale data set to achieve the effect of high brachial plexus recognition accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of brachial plexus anesthesia puncture, and specifically to a brachial plexus anesthesia puncture guidance method and system based on deep learning. Background Art

[0002] The anesthesia method of injecting local anesthetics around the brachial plexus trunk to produce nerve conduction block in the area it controls is called brachial plexus block anesthesia, which is one of the commonly used anesthesia methods in clinical practice. It is suitable for various surgeries on the hand, forearm, upper arm and shoulder. After the introduction of ultrasound imaging equipment into clinical use, especially in the field of anesthesia puncture, anesthesiologists need to undergo long-term professional ultrasound machine operation training to master ultrasound-guided anesthesia puncture. Therefore, there is an urgent need for an auxiliary technical means to assist anesthesiologists in using ultrasound-guided brachial plexus anesthesia puncture to quickly get started and accurately find the target position.

[0003] The Chinese invention patent with application number CN202010202046.7 proposes a multi-target recognition method and system for brachial plexus ultrasound images, which relates to the technical field of intelligent recognition of ultrasound images. The method includes the following steps: S1. Unify the size of the brachial plexus ultrasound image to be identified as the data to be identified; S2. Perform several convolution-downsampling operations on the data to be identified in sequence, and make the image obtained by each operation reduced by 2 times the size before the current operation to obtain a feature map; S3. Upsample the feature map through deconvolution and skip layer connection, connect the sampled features with the feature map obtained by the previous convolution-downsampling operation, and obtain several multi-scale feature maps; S4. For the multi-scale feature map with the largest size, generate feature maps with different receptive fields based on convolution operations with different dilation rates; S5. Combine the feature maps with different receptive fields with the feature maps obtained through convolution. The images generated by the product are subtracted and then connected in series to obtain a feature map matrix with different scale contrast features; S6, weights are assigned to each channel of the feature map matrix with different scale contrast features through self-attention calculation to obtain a weighted feature map matrix; S7, each pixel point in the weighted feature map matrix is ​​used as the center point to generate a region of interest, and after binary classification and bounding box regression of the region of interest, the selected region is aligned to a feature map of a fixed size; S8, the region of interest in the feature map aligned to a fixed size is classified, segmented, and detected by a bounding box, and then output to complete the multi-target recognition of brachial plexus ultrasound images.

[0004] The Chinese invention patent with application number CN202110668377.4 proposes a deep learning-based ultrasonic brachial plexus image recognition method, which involves the field of ultrasonic image intelligent recognition technology. The method includes the following steps: S1, obtain multiple ultrasonic nerve image data and preprocess them; S2, construct a labeled ultrasonic image data set required for training the neural network model; S3, divide the ultrasonic image data set into a training set and a test set in a ratio of 8:2, and expand and enhance the features of the ultrasonic images in the training set; S4, construct a squeeze-attention mechanism module SA and add it to the traditional convolution; S5, introduce the squeeze excitation module and the attention mechanism module in the V-net network to construct the SAV-net network model and train it; S6, load the trained SAV-net network model, input the test set for prediction to obtain the recognition result, and calculate the Dice coefficient based on the label.

[0005] However, the above technologies have the following limitations:

[0006] 1. The above technology will have electromagnetic interference noise and environmental noise when collecting ultrasound images of the patient's brachial plexus. The noisy ultrasound images of the brachial plexus will interfere with the training process of the deep learning model, making it difficult for the model to accurately capture the true distribution of the data, causing the model to learn incorrect patterns or rules during the training process, resulting in a decrease in the generalization ability of the model. The above technology does not perform noise reduction on the ultrasound images of the brachial plexus, which will reduce the generalization ability of the model.

[0007] 2. The scales of brachial plexus ultrasound images of different patients are different. The above technology ignores this problem, resulting in the extracted features lacking local details or global information of the brachial plexus.

[0008] 3. The brachial plexus ultrasound images of different patients are different. If you want to train an artificial intelligence model that can accurately identify the location of the brachial plexus in the patient's brachial plexus ultrasound image, you need a data set containing a large amount of data to achieve this. The above technologies all sacrifice manpower and material resources to obtain a high-precision prediction model. Summary of the invention

[0009] In view of the shortcomings of the prior art, the present invention provides a brachial plexus anesthesia puncture guidance method and system based on deep learning, which aims to solve the problems in the background technology.

[0010] To achieve the above object, the present invention provides the following technical solution: a brachial plexus anesthesia puncture guidance method based on deep learning, comprising the following steps:

[0011] Step S1: collecting ultrasound images of the patient's brachial plexus nerves, annotating the brachial plexus nerves in the ultrasound images of the brachial plexus nerves, and constructing an ultrasound image dataset using the annotated ultrasound images of the brachial plexus nerves;

[0012] Step S2: construct a deep denoising autoencoder to remove noise from the brachial plexus ultrasound image in the ultrasound image dataset;

[0013] The deep denoising autoencoder is composed of an encoder and a decoder, the encoder is composed of a first LSTM layer, a second LSTM layer, a first convolutional layer and an average pooling layer connected in sequence, and the decoder is composed of a second convolutional layer, a third LSTM layer and a fourth LSTM layer; the average pooling layer in the encoder is connected to the second convolutional layer in the decoder;

[0014] Step S3: constructing a source domain dataset and a target domain dataset using the denoised ultrasound image dataset, and taking each image in the source domain dataset and the target domain dataset as a sample;

[0015] Step S4: Construct a multi-scale feature extraction module, input the samples in the source domain dataset and the target domain dataset into the multi-scale feature extraction module respectively, and obtain the multi-scale feature map of the source domain samples And the multi-scale feature map of the target domain samples ;

[0016] The multi-scale feature extraction module consists of 6 convolutional layers and 1 maximum pooling layer, and is divided into four branches; the first branch of the multi-scale feature extraction module consists of the third convolutional layer and the sixth convolutional layer connected in sequence, the second branch consists of the fourth convolutional layer and the seventh convolutional layer connected in sequence, the third branch consists of the maximum pooling layer and the eighth convolutional layer connected in sequence, and the fourth branch consists of the fifth convolutional layer;

[0017] Step S5: Build a domain generalization deep learning model using multi-scale feature maps of source domain samples And the multi-scale feature map of the target domain samples Training domain generalization deep learning models;

[0018] Step S6: Deploy the deep denoising autoencoder, the multi-scale feature extraction module and the trained domain generalization deep learning model on the background server to obtain the position of the brachial plexus nerve in the input patient's brachial plexus nerve ultrasound image.

[0019] Furthermore, the specific process of using the deep denoising autoencoder to remove the noise of the brachial plexus ultrasound image in the ultrasound image dataset is as follows: Input to the encoder of the deep denoising autoencoder, ultrasound image of the brachial plexus After passing through the first LSTM layer, the second LSTM layer, the first convolutional layer and the average pooling layer, the deep feature map is output. , expressed as:

[0020] ;

[0021] ;

[0022] In the formula, is the first LSTM layer; is the second LSTM layer; is the first convolutional layer; is the output of the first convolutional layer; is the average pooling operation; is the weight matrix of the average pooling layer; is the bias of the average pooling layer;

[0023] The depth feature map Input decoder, deep feature map After passing through the second convolutional layer, the third LSTM layer, and the fourth LSTM layer, the denoised brachial plexus ultrasound image is output, that is, the patient's brachial plexus ultrasound image is reconstructed. , expressed as:

[0024] ;

[0025] ;

[0026] In the formula, is the third LSTM layer; is the second convolutional layer; is the output of the third LSTM layer; is the weight matrix of the fourth LSTM layer; is the bias of the fourth LSTM layer; It is the fourth LSTM layer.

[0027] Further, the specific process of step S3 is: first generate a length of The index sequence ; Random selection Fifty percent of the elements in the set are taken as the first element ,Will The remaining elements in the second element set ;in accordance with Select and reconstruct the patient's brachial plexus ultrasound image from the denoised ultrasound image dataset Composition of source domain dataset ;in accordance with Select and reconstruct the patient's brachial plexus ultrasound image from the denoised ultrasound image dataset Composing the target domain dataset ;

[0028] Setting up the source domain dataset Reconstructed ultrasound image of the brachial plexus in a patient Contains annotated brachial plexus, setting the target domain dataset Reconstructed ultrasound image of the brachial plexus in a patient The brachial plexus is not labeled.

[0029] Furthermore, the convolution kernel scale of the third convolution layer is 1×1, the convolution kernel scale of the sixth convolution layer is 7×7, and the convolution kernel scale of the seventh convolution layer is 5×5.

[0030] Furthermore, in step S4, the process of inputting the samples in the source domain dataset and the target domain dataset into the multi-scale feature extraction module for processing is as follows: Samples The calculation process after inputting the multi-scale feature extraction module is as follows:

[0031] ;

[0032] ;

[0033] ;

[0034] ;

[0035] ;

[0036] In the formula, is the third convolutional layer; is the fourth convolutional layer; is the fifth convolutional layer; is the sixth convolutional layer; is the seventh convolutional layer; is the eighth convolutional layer; is the maximum pooling layer, is the upsampling operation; for The output obtained after inputting the first branch of the multi-scale feature extraction module; for The output obtained after inputting the second branch of the multi-scale feature extraction module; for The output obtained after inputting the third branch of the multi-scale feature extraction module; for The output obtained after inputting the fourth branch of the multi-scale feature extraction module;

[0037] The target domain data set Samples The calculation process after inputting the multi-scale feature extraction module is as follows:

[0038] ;

[0039] ;

[0040] ;

[0041] ;

[0042] ;

[0043] In the formula, for The output obtained after inputting the first branch of the multi-scale feature extraction module; for The output obtained after inputting the second branch of the multi-scale feature extraction module; for The output obtained after inputting the third branch of the multi-scale feature extraction module; for The output obtained after inputting the fourth branch of the multi-scale feature extraction module.

[0044] Further, the convolutional layers in the multi-scale feature extraction module include the third convolutional layer, the fourth convolutional layer, the fifth convolutional layer, the sixth convolutional layer, the seventh convolutional layer and the eighth convolutional layer. After processing the samples in the source domain data set and the target domain data set, the patient's brachial plexus ultrasound image feature map is output, and additional pixels are added to the boundary of the patient's brachial plexus ultrasound image feature map, and the step size is used to control the movement speed of the convolution kernel of the convolution layer on the input. After adding additional pixels and using the step size to control the convolution kernel, the size of the patient's brachial plexus ultrasound image feature map output by the convolution layer is calculated by the following formula:

[0045] ;

[0046] In the formula, is the size of the characteristic image of the patient's brachial plexus ultrasound image; is the size of the convolution kernel; is the number of pixels filled; is the moving step length; The dimensions of the feature map of the patient’s brachial plexus ultrasound image output by the convolutional layer.

[0047] Furthermore, the domain generalization deep learning model is divided into two branches, which are arranged in parallel. The first branch is composed of a first attention encoder, and the second branch is composed of a second attention encoder and a target detection network connected in sequence; the first attention encoder and the second attention encoder have the same structure, both of which are composed of a multi-head attention layer, a residual calculation layer and a normalization layer connected in sequence; the target detection network is composed of a first fully connected layer, a second fully connected layer and a bounding box regression decoding layer connected in sequence.

[0048] Furthermore, the multi-scale feature map of the source domain samples is used And the multi-scale feature map of the target domain samples The specific process of training the domain generalization deep learning model is as follows: multi-scale feature maps of source domain samples And the multi-scale feature map of the target domain samples Input the first attention encoder and the second attention encoder respectively and Fusion is performed to obtain the source domain sample fusion feature map Fusion feature map with target domain samples , expressed as:

[0049] ;

[0050] ;

[0051] In the formula, Represents the attention calculation operation of the multi-head attention layer; Represents the residual calculation operation of the residual calculation layer; Represents the normalization calculation operation of the normalization layer;

[0052] The target detection network receives the target domain sample fusion feature map output by the second attention encoder , get The coordinates of the middle brachial plexus are expressed as:

[0053] ;

[0054] In the formula, and are the weight matrix and bias vector of the bounding box regression decoding layer respectively; yes The high-dimensional feature map obtained after the first and second fully connected layers; are the coordinates of the center of the bounding box.

[0055] Furthermore, the local maximum average loss function is adopted The domain generalization deep learning model is trained, expressed as:

[0056] ;

[0057] In the formula, Indicates Source domain dataset samples; Indicates Target domain dataset samples; An operator for finding the magnitude of a vector; is the kernel function; for The weight value of the source domain dataset sample; For the The weight value of the target domain dataset sample; is the length of the source domain dataset.

[0058] A brachial plexus anesthesia puncture guidance system based on deep learning, applied to a brachial plexus anesthesia puncture guidance method based on deep learning, comprising:

[0059] An image collection module is used to collect ultrasound images of the patient's brachial plexus nerves, annotate the brachial plexus nerves in the ultrasound images of the brachial plexus nerves, and construct an ultrasound image data set using the annotated ultrasound images of the brachial plexus nerves;

[0060] A noise removal module is used to construct a deep denoising autoencoder to remove noise from brachial plexus ultrasound images in ultrasound image datasets;

[0061] A data set construction module is used to construct a source domain data set and a target domain data set using the denoised ultrasound image data set, and each image in the source domain data set and the target domain data set is used as a sample;

[0062] A feature map extraction module is used to construct a multi-scale feature extraction module, and samples in the source domain data set and the target domain data set are respectively input into the multi-scale feature extraction module to obtain a multi-scale feature map of the source domain samples and a multi-scale feature map of the target domain samples;

[0063] A model training module is used to build a domain generalization deep learning model, and train the domain generalization deep learning model using multi-scale feature maps of source domain samples and multi-scale feature maps of target domain samples;

[0064] The deployment module is used to deploy the deep denoising autoencoder, the multi-scale feature extraction module, and the trained domain generalization deep learning model on the background server to obtain the position of the brachial plexus in the input patient's brachial plexus ultrasound image.

[0065] Compared with the existing technology, the present invention has the following beneficial effects: in view of the problem that the noise in the ultrasound image of the patient's brachial plexus nerve will affect the generalization ability of the model, the present invention constructs a deep denoising autoencoder to effectively remove various noises in the physiological data; in view of the problem that the collected ultrasound images of the patient's brachial plexus nerve are of different scales, a multi-scale feature fusion module is constructed to effectively retain the local detail features and global information of the brachial plexus nerve in the ultrasound image of the brachial plexus nerve; in view of the problem that the existing technology requires a large amount of data to train the model, which consumes a lot of manpower and material resources, a domain generalization deep learning model is constructed, which can achieve the effect of high accuracy in brachial plexus recognition by using a smaller-scale data set for training. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] Figure 1 It is a flow chart of the steps of the present invention.

[0067] Figure 2 Schematic diagram of the deep denoising autoencoder structure of the present invention.

[0068] Figure 3 It is a schematic diagram of the structure of the multi-scale feature extraction module of the present invention.

[0069] Figure 4 Schematic diagram of the domain generalization deep learning model structure of the present invention.

[0070] Figure 5 Schematic diagram of the attention autoencoder structure of the present invention.

[0071] Figure 6 Schematic diagram of the target detection network structure of the present invention.

[0072] Figure 7 It is a schematic diagram of the system structure of the present invention. DETAILED DESCRIPTION

[0073] like Figure 1 As shown, the present invention provides a technical solution: a brachial plexus anesthesia puncture guidance method based on deep learning, comprising the following steps:

[0074] Step S1: collecting ultrasound images of the patient's brachial plexus nerves, annotating the brachial plexus nerves in the ultrasound images of the brachial plexus nerves, and constructing an ultrasound image dataset using the annotated ultrasound images of the brachial plexus nerves.

[0075] The specific process of step S1 is: the ultrasonic instrument probe is placed horizontally from the lower neck and the outer side of the thyroid gland of different patients, and is slid downward to scan to the supraclavicular area, so as to obtain an ultrasonic image of the brachial plexus showing the anterior scalene muscle, the middle and posterior scalene muscle, and the intermuscular groove segment of the brachial plexus nerve, and the brachial plexus nerve in the ultrasonic image of the brachial plexus nerve is manually labeled, and the ultrasonic image dataset is constructed using the manually labeled ultrasonic images of the brachial plexus nerve.

[0076] Step S2: construct a deep denoising autoencoder to remove noise from the brachial plexus ultrasound image in the ultrasound image dataset.

[0077] The deep denoising autoencoder consists of an encoder and a decoder. The encoder consists of a first LSTM layer, a second LSTM layer, a first convolutional layer, and an average pooling layer connected in sequence. The decoder consists of a second convolutional layer, a third LSTM layer, and a fourth LSTM layer. The average pooling layer in the encoder is connected to the second convolutional layer in the decoder. Figure 2 shown.

[0078] The specific process of deep denoising autoencoder to remove the noise of brachial plexus ultrasound image in ultrasound image dataset is as follows: Input to the encoder of the deep denoising autoencoder, ultrasound image of the brachial plexus After passing through the first LSTM layer, the second LSTM layer, the first convolutional layer and the average pooling layer, the deep feature map is output. , which can be expressed as:

[0079] (1);

[0080] (2);

[0081] In the formula, is the first LSTM layer; is the second LSTM layer; is the first convolutional layer; is the output of the first convolutional layer; is the average pooling operation; is the weight matrix of the average pooling layer; is the bias of the average pooling layer.

[0082] The depth feature map Input decoder, deep feature map After passing through the second convolutional layer, the third LSTM layer, and the fourth LSTM layer, the denoised brachial plexus ultrasound image is output, that is, the patient's brachial plexus ultrasound image is reconstructed. , which can be expressed as:

[0083] (3);

[0084] (4);

[0085] In the formula, is the third LSTM layer; is the second convolutional layer; is the output of the third LSTM layer; is the weight matrix of the fourth LSTM layer; is the bias of the fourth LSTM layer; It is the fourth LSTM layer.

[0086] Step S3: Use the denoised ultrasound image dataset to construct a source domain dataset and a target domain dataset, and take each image in the source domain dataset and the target domain dataset as a sample.

[0087] The specific process of step S3 is: first generate a length The index sequence ; Random selection Fifty percent of the elements in the set are taken as the first element ,Will The remaining elements in the second element set ;in accordance with Select and reconstruct the patient's brachial plexus ultrasound image from the denoised ultrasound image dataset Composition of source domain dataset ;in accordance with Select and reconstruct the patient's brachial plexus ultrasound image from the denoised ultrasound image dataset Composing the target domain dataset ; Among them, set the source domain dataset Reconstructed ultrasound image of the brachial plexus in a patient Contains manually annotated brachial plexus, setting the target domain dataset Reconstructed ultrasound image of the brachial plexus in a patient The manually annotated brachial plexus is not included.

[0088] Step S4: Construct a multi-scale feature extraction module, input the samples in the source domain dataset and the target domain dataset into the multi-scale feature extraction module respectively, and obtain the multi-scale feature map of the source domain samples And the multi-scale feature map of the target domain samples .

[0089] like Figure 3 As shown, the multi-scale feature extraction module consists of 6 convolutional layers and 1 maximum pooling layer, and is divided into four branches; the first branch of the multi-scale feature extraction module consists of the third convolutional layer and the sixth convolutional layer connected in sequence, the second branch consists of the fourth convolutional layer and the seventh convolutional layer connected in sequence, the third branch consists of the maximum pooling layer and the eighth convolutional layer connected in sequence, and the fourth branch consists of the fifth convolutional layer.

[0090] Among them, the convolution kernel scale of the third convolution layer is 1×1, the convolution kernel scale of the sixth convolution layer is 7×7, and the convolution kernel scale of the seventh convolution layer is 5×5.

[0091] The source domain data is concentrated in Samples The calculation process after inputting the multi-scale feature extraction module is as follows:

[0092] (5);

[0093] (6);

[0094] (7);

[0095] (8);

[0096] (9);

[0097] In the formula, is the third convolutional layer; is the fourth convolutional layer; is the fifth convolutional layer; is the sixth convolutional layer; is the seventh convolutional layer; is the eighth convolutional layer; is the maximum pooling layer; is the upsampling operation; for The output obtained after inputting the first branch of the multi-scale feature extraction module; for The output obtained after inputting the second branch of the multi-scale feature extraction module; for The output obtained after inputting the third branch of the multi-scale feature extraction module; for The output obtained after inputting the fourth branch of the multi-scale feature extraction module.

[0098] The target domain data set Samples The calculation process after inputting the multi-scale feature extraction module is as follows:

[0099] (10);

[0100] (11);

[0101] (12);

[0102] (13);

[0103] (14);

[0104] In the formula, for The output obtained after inputting the first branch of the multi-scale feature extraction module; for The output obtained after inputting the second branch of the multi-scale feature extraction module; for The output obtained after inputting the third branch of the multi-scale feature extraction module; for The output obtained after inputting the fourth branch of the multi-scale feature extraction module.

[0105] Among them, the process of the convolution layers (the third convolution layer, the fourth convolution layer, the fifth convolution layer, the sixth convolution layer, the seventh convolution layer and the eighth convolution layer) in the multi-scale feature extraction module processing samples in the source domain dataset and the target domain dataset can be expressed as:

[0106] (15);

[0107] In the formula, It represents the feature map of the patient's brachial plexus ultrasound image output after the convolution layer in the multi-scale feature extraction module at position The value at Represents the pixel coordinates of the patient's brachial plexus ultrasound image feature map; is the convolution kernel Middle position The weight value of is the sample at the input convolutional layer On, with Centered on the convolution kernel of The corresponding elements, Represent the convolution kernels The number of rows and columns.

[0108] In order to control the size of the patient's brachial plexus ultrasound image feature map output by the convolution layer and avoid the loss of boundary information, the present invention adds additional pixels to the boundary of the patient's brachial plexus ultrasound image feature map, and uses the step size to control the movement speed of the convolution kernel of the convolution layer on the input. After adding additional pixels and using the step size to control the convolution kernel, the size of the patient's brachial plexus ultrasound image feature map output by the convolution layer can be calculated by the following formula:

[0109] (16);

[0110] In the formula, is the size of the characteristic image of the patient's brachial plexus ultrasound image; is the size of the convolution kernel; is the number of pixels filled; is the moving step length; The dimensions of the feature map of the patient’s brachial plexus ultrasound image output by the convolutional layer.

[0111] Among them, the maximum pooling layer in the multi-scale feature extraction module The specific process of processing samples in the source domain dataset and the target domain dataset is as follows: first, for each channel of the input sample, traverse the entire sample; second, for each pooling window, find the maximum value in the window; then, use the found maximum value as the output pixel value at the corresponding position; finally, repeat the above process until all channels and all possible pooling window positions are traversed; after the above steps, the output size calculation formula of the maximum pooling layer is as follows:

[0112] (17);

[0113] (18);

[0114] In the formula, is the output height of the maximum pooling layer; is the output width of the maximum pooling layer; is the height of the input of the maximum pooling layer; is the input width of the maximum pooling layer; is the height of the pooling window; is the width of the pooling window; is the vertical step size of the pooling window; is the horizontal stride of the pooling window.

[0115] Step S5: Build a domain generalization deep learning model using multi-scale feature maps of source domain samples And the multi-scale feature map of the target domain samples Training domain-generalizing deep learning models.

[0116] Among them, the domain generalization deep learning model is divided into two branches, and the two branches are arranged in parallel. The first branch is composed of the first attention encoder, and the second branch is composed of the second attention encoder and the target detection network connected in sequence, such as Figure 4 shown.

[0117] Among them, the first attention encoder and the second attention encoder have the same structure, both of which are composed of a multi-head attention layer, a residual calculation layer and a normalization layer connected in sequence, such as Figure 5 As shown in Figure 2, the target detection network consists of a first fully connected layer, a second fully connected layer, and a bounding box regression decoding layer connected in sequence, as shown in Figure 2. Figure 6 shown.

[0118] Adopting multi-scale feature maps of source domain samples And the multi-scale feature map of the target domain samples The specific process of training the domain generalization deep learning model is as follows: multi-scale feature maps of source domain samples And the multi-scale feature map of the target domain samples Input the first attention encoder and the second attention encoder respectively and Fusion is performed to obtain the source domain sample fusion feature map Fusion feature map with target domain samples , which can be expressed as:

[0119] (19);

[0120] (20);

[0121] In the formula, Represents the attention calculation operation of the multi-head attention layer; Represents the residual calculation operation of the residual calculation layer; Represents the normalization operation of the normalization layer.

[0122] Among them, the target detection network receives the target domain sample fusion feature map output by the second attention encoder , get The coordinates of the middle brachial plexus can be expressed as:

[0123] (twenty one);

[0124] In the formula, and are the weight matrix and bias vector of the bounding box regression decoding layer respectively; yes The high-dimensional feature map obtained after the first and second fully connected layers; are the coordinates of the center of the bounding box.

[0125] Using the local maximum average loss function The domain generalization deep learning model is trained, and the local maximum average loss function can effectively measure the difference between the source domain fusion feature vector and the target domain fusion feature vector. The calculation formula is as follows:

[0126] (twenty two);

[0127] In the formula, Indicates Source domain dataset samples; Indicates Target domain dataset samples; An operator for finding the magnitude of a vector; is the kernel function; For the The weight value of the source domain dataset sample; For the The weight value of the target domain dataset sample; is the length of the source domain dataset.

[0128] Step S6: Deploy the deep denoising autoencoder, the multi-scale feature extraction module and the trained domain generalization deep learning model on the background server to obtain the position of the brachial plexus nerve in the input patient's brachial plexus nerve ultrasound image.

[0129] like Figure 7 As shown, a brachial plexus anesthesia puncture guidance system based on deep learning is applied to a brachial plexus anesthesia puncture guidance method based on deep learning, including:

[0130] An image collection module is used to collect ultrasound images of the patient's brachial plexus nerves, annotate the brachial plexus nerves in the ultrasound images of the brachial plexus nerves, and construct an ultrasound image data set using the annotated ultrasound images of the brachial plexus nerves;

[0131] A noise removal module is used to construct a deep denoising autoencoder to remove noise from brachial plexus ultrasound images in ultrasound image datasets;

[0132] A data set construction module is used to construct a source domain data set and a target domain data set using the denoised ultrasound image data set, and each image in the source domain data set and the target domain data set is used as a sample;

[0133] A feature map extraction module is used to construct a multi-scale feature extraction module, and samples in the source domain data set and the target domain data set are respectively input into the multi-scale feature extraction module to obtain a multi-scale feature map of the source domain samples and a multi-scale feature map of the target domain samples;

[0134] A model training module is used to build a domain generalization deep learning model, and train the domain generalization deep learning model using multi-scale feature maps of source domain samples and multi-scale feature maps of target domain samples;

[0135] The deployment module is used to deploy the deep denoising autoencoder, the multi-scale feature extraction module, and the trained domain generalization deep learning model on the background server to obtain the position of the brachial plexus in the input patient's brachial plexus ultrasound image.

[0136] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A brachial plexus anesthesia puncture guidance method based on deep learning, characterized in that: The steps include: Step S1: collecting ultrasound images of the patient's brachial plexus nerves, annotating the brachial plexus nerves in the ultrasound images of the brachial plexus nerves, and constructing an ultrasound image dataset using the annotated ultrasound images of the brachial plexus nerves; Step S2: construct a deep denoising autoencoder to remove noise from the brachial plexus ultrasound image in the ultrasound image dataset; The deep denoising autoencoder is composed of an encoder and a decoder, the encoder is composed of a first LSTM layer, a second LSTM layer, a first convolutional layer and an average pooling layer connected in sequence, and the decoder is composed of a second convolutional layer, a third LSTM layer and a fourth LSTM layer; the average pooling layer in the encoder is connected to the second convolutional layer in the decoder; Step S3: constructing a source domain dataset and a target domain dataset using the denoised ultrasound image dataset, and taking each image in the source domain dataset and the target domain dataset as a sample; Step S4: Construct a multi-scale feature extraction module, input the samples in the source domain dataset and the target domain dataset into the multi-scale feature extraction module respectively, and obtain the multi-scale feature map of the source domain samples And the multi-scale feature map of the target domain samples ; The multi-scale feature extraction module consists of 6 convolutional layers and 1 maximum pooling layer, and is divided into four branches; the first branch of the multi-scale feature extraction module consists of the third convolutional layer and the sixth convolutional layer connected in sequence, the second branch consists of the fourth convolutional layer and the seventh convolutional layer connected in sequence, the third branch consists of the maximum pooling layer and the eighth convolutional layer connected in sequence, and the fourth branch consists of the fifth convolutional layer; Step S5: Build a domain generalization deep learning model using multi-scale feature maps of source domain samples And the multi-scale feature map of the target domain samples Training domain generalization deep learning models; Step S6: deploying a deep denoising autoencoder, a multi-scale feature extraction module, and a trained domain generalization deep learning model on a background server to obtain the position of the brachial plexus nerve in the input brachial plexus nerve ultrasound image of the patient; The specific process of using deep denoising autoencoder to remove the noise of brachial plexus ultrasound images in ultrasound image dataset is as follows: Input to the encoder of the deep denoising autoencoder, ultrasound image of the brachial plexus After passing through the first LSTM layer, the second LSTM layer, the first convolutional layer and the average pooling layer, the deep feature map is output. , expressed as: ; ; In the formula, is the first LSTM layer; is the second LSTM layer; is the first convolutional layer; is the output of the first convolutional layer; is the average pooling operation; is the weight matrix of the average pooling layer; is the bias of the average pooling layer; The depth feature map Input decoder, deep feature map After passing through the second convolutional layer, the third LSTM layer, and the fourth LSTM layer, the denoised brachial plexus ultrasound image is output, that is, the patient's brachial plexus ultrasound image is reconstructed. , expressed as: ; ; In the formula, is the third LSTM layer; is the second convolutional layer; is the output of the third LSTM layer; is the weight matrix of the fourth LSTM layer; is the bias of the fourth LSTM layer; is the fourth LSTM layer; The specific process of step S3 is: first generate a length The index sequence ; Random selection Fifty percent of the elements in the set are taken as the first element ,Will The remaining elements in the second element set ;in accordance with Select and reconstruct the patient's brachial plexus ultrasound image from the denoised ultrasound image dataset Composition of source domain dataset ;in accordance with Select and reconstruct the patient's brachial plexus ultrasound image from the denoised ultrasound image dataset Composing the target domain dataset ; Setting up the source domain dataset Reconstructed ultrasound image of the brachial plexus in a patient Contains annotated brachial plexus, setting the target domain dataset Reconstructed ultrasound image of the brachial plexus in a patient The brachial plexus is not labeled; In step S4, the process of inputting the samples in the source domain dataset and the target domain dataset into the multi-scale feature extraction module for processing is as follows: Samples The calculation process after inputting the multi-scale feature extraction module is as follows: ; ; ; ; ; In the formula, is the third convolutional layer; is the fourth convolutional layer; is the fifth convolutional layer; is the sixth convolutional layer; is the seventh convolutional layer; is the eighth convolutional layer; is the maximum pooling layer, is the upsampling operation; for The output obtained after inputting the first branch of the multi-scale feature extraction module; for The output obtained after inputting the second branch of the multi-scale feature extraction module; for The output obtained after inputting the third branch of the multi-scale feature extraction module; for The output obtained after inputting the fourth branch of the multi-scale feature extraction module; The target domain data set Samples The calculation process after inputting the multi-scale feature extraction module is as follows: ; ; ; ; ; In the formula, for The output obtained after inputting the first branch of the multi-scale feature extraction module; for The output obtained after inputting the second branch of the multi-scale feature extraction module; for The output obtained after inputting the third branch of the multi-scale feature extraction module; for The output obtained after inputting the fourth branch of the multi-scale feature extraction module; The domain generalization deep learning model is divided into two branches, which are arranged in parallel. The first branch is composed of a first attention encoder, and the second branch is composed of a second attention encoder and a target detection network connected in sequence. The first attention encoder and the second attention encoder have the same structure, and both are composed of a multi-head attention layer, a residual calculation layer, and a normalization layer connected in sequence. The target detection network is composed of a first fully connected layer, a second fully connected layer, and a bounding box regression decoding layer connected in sequence. Adopting multi-scale feature maps of source domain samples And the multi-scale feature map of the target domain samples The specific process of training the domain generalization deep learning model is as follows: multi-scale feature maps of source domain samples And the multi-scale feature map of the target domain samples Input the first attention encoder and the second attention encoder respectively and Fusion is performed to obtain the source domain sample fusion feature map Fusion feature map with target domain samples , expressed as: ; ; In the formula, Represents the attention calculation operation of the multi-head attention layer; Represents the residual calculation operation of the residual calculation layer; Represents the normalization calculation operation of the normalization layer; The target detection network receives the target domain sample fusion feature map output by the second attention encoder , get The coordinates of the middle brachial plexus are expressed as: ; In the formula, and are the weight matrix and bias vector of the bounding box regression decoding layer respectively; yes The high-dimensional feature map obtained after the first and second fully connected layers; is the center coordinate of the bounding box; Using the local maximum average loss function The domain generalization deep learning model is trained, expressed as: ; In the formula, Indicates Source domain dataset samples; Indicates Target domain dataset samples; An operator for finding the magnitude of a vector; is the kernel function; for The weight value of the source domain dataset sample; For the The weight value of the target domain dataset sample; is the length of the source domain dataset.

2. A brachial plexus anesthesia puncture guidance method based on deep learning according to claim 1, characterized in that: The convolution kernel scale of the third convolution layer is 1×1, the convolution kernel scale of the sixth convolution layer is 7×7, and the convolution kernel scale of the seventh convolution layer is 5×5.

3. A brachial plexus anesthesia puncture guidance method based on deep learning according to claim 2, characterized in that: The convolutional layers in the multi-scale feature extraction module include the third convolutional layer, the fourth convolutional layer, the fifth convolutional layer, the sixth convolutional layer, the seventh convolutional layer and the eighth convolutional layer. After processing the samples in the source domain dataset and the target domain dataset, the feature map of the ultrasound image of the patient's brachial plexus nerve is output, and additional pixels are added to the boundary of the feature map of the ultrasound image of the patient's brachial plexus nerve, and the step size is used to control the movement speed of the convolution kernel of the convolution layer on the input. After adding additional pixels and using the step size to control the convolution kernel, the size of the feature map of the ultrasound image of the patient's brachial plexus nerve output by the convolution layer is calculated by the following formula: ; In the formula, is the size of the characteristic image of the patient's brachial plexus ultrasound image; is the size of the convolution kernel; is the number of pixels filled; is the moving step length; The dimensions of the feature map of the patient’s brachial plexus ultrasound image output by the convolutional layer.

4. A brachial plexus anesthesia puncture guidance system based on deep learning, applied to the brachial plexus anesthesia puncture guidance method based on deep learning according to any one of claims 1 to 3, characterized in that: include: An image collection module is used to collect ultrasound images of the patient's brachial plexus nerves, annotate the brachial plexus nerves in the ultrasound images of the brachial plexus nerves, and construct an ultrasound image data set using the annotated ultrasound images of the brachial plexus nerves; A noise removal module is used to construct a deep denoising autoencoder to remove noise from brachial plexus ultrasound images in ultrasound image datasets; A data set construction module is used to construct a source domain data set and a target domain data set using the denoised ultrasound image data set, and each image in the source domain data set and the target domain data set is used as a sample; A feature map extraction module is used to construct a multi-scale feature extraction module, and samples in the source domain data set and the target domain data set are respectively input into the multi-scale feature extraction module to obtain a multi-scale feature map of the source domain samples and a multi-scale feature map of the target domain samples; A model training module is used to build a domain generalization deep learning model, and train the domain generalization deep learning model using multi-scale feature maps of source domain samples and multi-scale feature maps of target domain samples; The deployment module is used to deploy the deep denoising autoencoder, the multi-scale feature extraction module, and the trained domain generalization deep learning model on the background server to obtain the position of the brachial plexus in the input patient's brachial plexus ultrasound image.