Intelligent nursing decision support system based on deep learning
Through an intelligent nursing decision support system based on deep learning, combined with BiLSTM-CRF and convolutional neural network to process text and image data, it solves the problem that traditional systems cannot utilize unstructured data, and achieves accurate capture and analysis of patient condition trends. Decision support improves the accuracy of clinical decision-making.
Patent Information
- Application Number
- CN202410580476.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-11
- Publication Date
- 2024-09-10
AI Technical Summary
Traditional nursing decision support systems cannot effectively utilize unstructured data and real-time dynamic data, and cannot integrate text data and image data to help doctors make reasonable decision support.
An intelligent nursing decision support system based on deep learning is designed, including a data collection module, a text processing module and an image processing module. The BiLSTM-CRF model processes text data and the convolutional neural network processes image data, and the results of the two are processed. Splice processing to provide decision support.
It can accurately capture patient condition trends reflected in text data and image data, help doctors make reasonable decision support based on balancing text and image data, and improve the accuracy of clinical decision-making.
Smart Images

Figure CN118629620A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of medical service technology, and specifically relates to an intelligent nursing decision support system based on deep learning. Background Art
[0002] With the development of medical technology, clinical decision support systems are becoming more and more important factors in patient care delivery. Clinical decision support systems can directly improve patient care outcomes and the performance of health care organizations. However, in practice, traditional nursing decision support systems mainly rely on structured clinical data, but underutilize unstructured data and real-time dynamic data, and cannot integrate text data and image data to help doctors make reasonable decision support. Therefore, how to develop an intelligent nursing decision support system to overcome the above problems in the prior art is a direction that technicians in this field need to further study. Summary of the invention
[0003] The purpose of the present invention is to provide an intelligent nursing decision support system based on deep learning, which can integrate text data and image data to help doctors make reasonable decision support.
[0004] The present invention provides an intelligent nursing decision support system based on deep learning, which comprises:
[0005] A data acquisition module, the data acquisition module is used to respectively acquire and input text data and image data of the patient;
[0006] A text processing module, the text processing module is used to read the data acquisition module and perform training and evaluation on the text data through a BiLSTM-CRF model;
[0007] An image processing module, the image processing module is used to read the data acquisition module and perform training and evaluation on the image data through a convolutional neural network;
[0008] A decision support module, wherein the decision support module is used to read the text processing module and the image processing module respectively, perform splicing processing on the training evaluation results of the text processing module and the image processing module, and obtain a nursing decision.
[0009] Preferably, the text processing module is used to perform model training and evaluation on the text data through the following steps:
[0010] Step 210: pre-processing the text data;
[0011] Step 220: construct a text training model including a bidirectional LSTM layer and a CRF layer, and train the text data based on the text training model.
[0012] Preferably, step 210 includes:
[0013] Step 211: performing data cleaning on the text data to remove irrelevant information in the text data;
[0014] Step 212: annotating the text data to form training text data;
[0015] Step 213: Perform word segmentation and vectorization processing on the training text data.
[0016] Preferably, step 220 includes:
[0017] Define the CRF layer loss function based on the following expression and optimize the global consistency of label sequence prediction;
[0018]
[0019] The t (y t ) is the emission score for label k at time step t, which is converted from h through a linear layer t Calculated, that is, s t (k) = W k ·h t +b k , the h t is the BiLSTM output at time step t, where and are the LSTM hidden states from left to right and from right to left respectively; W k and b k are the parameters that need to be learned;
[0020] Said is the transfer matrix from label y in the CRF layer t to y t+1 The transfer score is used to calculate the joint score of the label sequence; here, the label y is the output predicted by the model, and each y i Corresponding to x i Entity category label; here, x i The input of the model is a sequence of words or phrases in the text data;
[0021] The log(Z(X)) is the logarithm sum of the scores of all possible tag sequences; where Z(X) is a normalization factor, which is calculated based on the following expression:
[0022]
[0023] α t(j) is the sum of the scores of all possible sequences at the end of time step t at label j;
[0024] Initial condition: α t (j) = exp(s t (j)), i.e., the calculation of the first time step depends only on the initial emission score;
[0025] All α n (j) are added to obtain the Z(X).
[0026] Preferably, the image processing module is used to perform model training and evaluation on the image data through the following steps:
[0027] Step 310: pre-processing the image data;
[0028] Step 320: construct an image training model based on a convolutional neural network, and train the image data based on the image training model.
[0029] Preferably, step 310 includes:
[0030] Step 311: collecting image data reflecting the location of the patient's lesion from the hospital image database;
[0031] Step 312: annotating the image data to form training image data;
[0032] Step 213: normalize the training image data.
[0033] Preferably, step 320 includes:
[0034] Step 3211: The image data is forward propagated to the convolution layer, and features are extracted from the training image data using several convolution operations, where the convolution operations are defined as:
[0035]
[0036] is the weight matrix of the kth convolution kernel in the lth layer, is the corresponding bias term, A [l-1] is the output of the previous layer;
[0037] Step 3212: The image data is forward propagated to the activation layer, and the activation function ReLU is applied to introduce nonlinearity:
[0038]
[0039] The ReLU function is defined as max(0,x) and is applied element by element.
[0040] Step 3213: The image data is forward propagated to the pooling layer, and the feature dimension is reduced through maximum pooling to reduce the amount of calculation:
[0041]
[0042] Among them, MaxPool is the maximum pooling, which The local area takes the maximum value;
[0043] Step 3214: The image data is forward propagated to the fully connected layer, and the predicted probability is output through the softmax function:
[0044] A [L] =softmax(W [L] ·flatten(P [L-1] )+b [L] )
[0045] Among them, W L is the weight of the fully connected layer, b [L] is the bias of the fully connected layer, and the softmax function is used to normalize the output to a probability distribution;
[0046] Step 322: Use the cross entropy loss function to evaluate the difference between the model output and the true label:
[0047]
[0048] Among them, m is the number of samples, C is the number of categories, and y t,c is the true label of whether the tth sample belongs to class c, is the predicted probability corresponding to the model;
[0049] Step 323: Obtain the parameter gradient of the model based on back propagation calculation, wherein the parameter gradient includes:
[0050] The loss function L is relative to the weight W of the lth layer [l] The partial derivative of
[0051] And the loss function L relative to the bias b of the lth layer [l] The partial derivative of
[0052] Step 324: Update the weights and biases of the model based on the parameter gradient of the model obtained in step 323 to minimize the loss function;
[0053] Get the mapping from input data to predicted output based on the following expression:
[0054]
[0055]
[0056] Among them, the learning rate α is a hyperparameter used to control the step size of updating parameters in the direction of the loss gradient.
[0057] Preferably, the decision support module performs splicing processing on the training evaluation results of the text processing module and the image processing module and outputs a nursing decision through the following steps:
[0058] Step 410: Extract image feature vector F using convolutional neural network CNN , extract the sequence feature vector F by BiLSTM model BiLSTM ;
[0059] Step 420: The image feature vector F is expressed as CNN and the sequence feature vector F BiLSTM To splice:
[0060] F combined =concat(F CNN ,F BiLSTM )
[0061] Step 430: Through the fully connected layer, F is calculated based on the following expression combined Perform feature transformation:
[0062] F transformed =σ(WF combined +b)
[0063] Where W is the weight matrix of the fully connected layer, with a size of d out ×(d CNN +d BiLSTM ), d out is the dimension of the output feature; b is the bias vector, dimension d out , σ is the activation function;
[0064] Step 440: Based on F transformed Make nursing decisions.
[0065] Compared with the prior art, the present invention can accurately capture the patient's condition trend reflected by text data and image data, and help doctors make reasonable decision support based on a balance between text data and image data. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] Figure 1 This is a schematic diagram of the module structure of Example 1.
[0067] In the figure, the component names corresponding to the reference numerals are as follows:
[0068] 100. Data collection module; 200. Text processing module; 300. Image processing module; 400. Decision support module. DETAILED DESCRIPTION
[0069] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only an embodiment of a part of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention. The embodiments are described below in conjunction with the reference drawings.
[0070] See also Figure 1 , Example 1:
[0071] An intelligent nursing decision support system based on deep learning, comprising:
[0072] A data acquisition module 100, wherein the data acquisition module 100 is used to respectively acquire and input text data and image data of a patient;
[0073] A text processing module 200, the text processing module 200 is used to read the data acquisition module 100 and perform training and evaluation on the text data through a BiLSTM-CRF model;
[0074] An image processing module 300, the image processing module 300 is used to read the data acquisition module 100 and perform training and evaluation on the image data through a convolutional neural network;
[0075] The decision support module 400 is used to read the text processing module 200 and the image processing module 300 respectively, perform splicing processing on the training evaluation results of the text processing module 200 and the image processing module 300, and obtain decision support.
[0076] The following system is used to support the diagnosis of pneumonia:
[0077] The data collection module 100 is used to collect text data and image data through the hospital's information system. The text data includes the patient's electronic health record (EHR), including medical history and clinical notes. The image data includes the patient's chest X-ray image.
[0078] The text data module selects a bidirectional LSTM combined with a CRF (conditional random field) algorithm to train text data: the bidirectional LSTM layer is used to capture the contextual information in the text data. A CRF layer is superimposed on the BiLSTM output layer to optimize the global consistency of label sequence prediction. The bidirectional LSTM-CRF model can identify specific entities in the text and classify them into predefined categories by learning the contextual relationships in the text, so it can accurately identify and predict entities in unseen text. Among them,
[0079] The loop formula of the LSTM is as follows:
[0080] Forget gate: f t =σ(W f ·[h t-1 ,x t ]+b f )
[0081] Input gate: i t =σ(W i ·[h t-1 ,x t ]+b i )
[0082] Output gate: o t =σ(W o ·[h t-1 ,x t ]+b o )
[0083] New candidate values:
[0084] Final memory unit:
[0085] Final hidden state: h t =o t *tanh (C t )
[0086] Among them, x t is the input vector at time step t, h t-1 is the hidden state vector of the previous time step, C t-1 is the state of the memory cell at the previous time step, W is the weight matrix, b is the bias vector, and σ is the sigmoid activation function.
[0087] The CRF layer calculates the conditional probability P(y|X) of the label sequence. The CRF layer gives the hidden state h at each time step. t Afterwards, the entire sequence is scored using the following formula:
[0088]
[0089]
[0090] Among them, Score(X,y) is the score of the input sequence X and the label sequence y, T is the transfer matrix, is the hidden state h at time step i i Corresponding to label y i score.
[0091] The image data module selects a convolutional neural network (CNN) to train the image data.
[0092] CNN can automatically learn image features from medical images. These features are crucial for tasks such as classifying benign and malignant tumors and identifying fracture types. By using a pre-trained CNN model and fine-tuning it to fit a specific type of medical imaging data, the accuracy of the model in identifying new samples can be improved. This can help doctors make faster and more accurate diagnoses.
[0093] The operation of the convolutional layer can be expressed as:
[0094]
[0095] in, is the value of the feature map of layer l at position (i, j), is the bias term, is the convolution kernel parameter, is the value of position (i+m,j+n) on the input feature map of the (l-1)th layer. ReLU is an activation function, which is usually used to increase nonlinearity.
[0096] The pooling layer usually follows the convolutional layer to reduce the feature dimension and obtain more abstract features. Its operation can be simplified as follows:
[0097]
[0098] in, is the value on the feature map after pooling, is the value within the pooling window around the position (i, j), and s is the step size.
[0099] A fully connected layer is usually followed by a pooling layer to flatten the feature map into a vector and perform classification tasks:
[0100] y=softmax(W (L) ·x (l-1 )+b (L) )
[0101] Among them, y is the output category probability vector, W (L)and b (L) ) are the weights and biases of the fully connected layer, x (l-1) is the flattened feature vector, and the softmax function is used to normalize the output into a probability distribution.
[0102] In practice, the working process is as follows:
[0103] First, the text data module preprocesses the text data. The purpose of preprocessing is to ensure the quality of the text data and make the text data suitable for further analysis or machine learning modeling. It specifically includes:
[0104] The first step is data cleaning:
[0105] For missing values in text data, when there are too many missing values for a feature, you may choose to delete the entire feature. When the number of missing values is small, statistical methods (mean, median) or prediction models (such as K-nearest neighbor, regression, etc.) are used to fill the missing values. For outliers in text data, statistical methods are used for detection and processing:
[0106] Z-score: Where X is the observed value, μ is the mean, and σ is the standard deviation. Typically, Z scores over 3 or -3 are considered outliers.
[0107] IQR (interquartile range): IQR = Q3-Q1, where Q1 and Q3 are the first and third quartiles of the data, respectively. Typically, values outside of Q1-1.5×IQR or Q3+1.5×IQR are considered outliers.
[0108] The second step is to label the symptoms, diagnosis, treatment and other information in the text data to form training data.
[0109] The third step is word segmentation and vectorization: Use a medical-specific word segmentation tool to segment the text and use pre-trained medical domain word vectors for vectorization. Word segmentation refers to splitting the text into words or phrases. It also includes stem extraction or word form restoration: restoring words to their basic form.
[0110] At the same time, the image data module preprocesses the image data. The purpose of preprocessing is to ensure the quality of text data and make the text data suitable for further analysis or machine learning modeling. It specifically includes:
[0111] Image Collection: X-ray images of pneumonia patients were collected from the hospital's imaging database.
[0112] Image annotation: Radiologists annotate the images to confirm whether they are pneumonia and form training image data;
[0113] Normalization: Ensure that the image data is compared at the same scale. The normalization is specifically completed by the following formula:
[0114]
[0115] Among them, I is the original image data, μ is the mean of the image pixel values, and σ is the standard deviation. The processed image data will have a zero mean and unit variance.
[0116] On this basis, Gaussian filtering can also be used to reduce noise. The formula is:
[0117]
[0118] Among them, G(x) is a Gaussian function and σ is the standard deviation, which controls the width of the filter.
[0119] The text processing module 200 performs training evaluation on the text data through the BiLSTM-CRF model.
[0120] The model parameters and variables involved in training include:
[0121] Input sequence X = (x1, x2, ..., x n ), which is usually a sequence of words or phrases in text data. i Represents disease, drug name, etc.
[0122] Target label sequence Y = (y1, y2, ..., y n ), where each y i is the value corresponding to x i Entity category labels, such as "disease", "treatment method", etc.
[0123] BiLSTM Output
[0124] h t is the BiLSTM output at time step t, where and These are the LSTM hidden states from left to right and from right to left. These hidden states capture the contextual information and are the basis for calculating the emission score in the next step.
[0125] Launch Scores t (k), is the emission score for label k at time step t, obtained by a linear layer from h t Calculated, that is, s t (k) = W k ·h t +b k , where W k and b kare the parameters that need to be learned.
[0126] Transfer matrix T k,l It is the core component of the CRF layer and represents the score of transferring from label k to label l. These scores are model parameters that need to be learned during the training process and are used to calculate the joint score of the label sequence.
[0127] The loss function of the CRF layer is defined by the following expression:
[0128]
[0129] Among them, the launch score s t (y t ): This is the score output by the BiLSTM layer for the actual label y t ; Transfer score This is the transfer matrix of the CRF layer, from the label y t to y t+1 Normalization factor log(Z(X)): This is the logarithmic sum of the scores of all possible label sequences and is used to ensure that the model outputs a legal probability distribution.
[0130] Calculate the normalization factor Z(X):
[0131] The calculation of the normalization factor Z(X) involves the forward algorithm, which is a dynamic programming algorithm:
[0132]
[0133] α t (j): The sum of scores for all possible sequences ending at label j at time step t.
[0134] Initial condition: α t (j) = exp(s t (j)), i.e., the calculation of the first time step depends only on the initial emission score.
[0135] Final Z(X) calculation: In the last step of the sequence, all α n (j) Add them together to get Z(X).
[0136] The BiLSTM-CRF model can effectively identify medical-related entities in text, such as disease names, symptoms, drugs, and treatment processes. The above model combines the text sequence feature extraction capability of BiLSTM and the sequence annotation optimization capability of CRF, enabling the model to accurately identify complex medical terms and expressions while maintaining label sequence dependency.
[0137] The image processing module 300 trains the image data based on a convolutional neural network (CNN) as follows:
[0138] The image data is forward propagated to the convolution layer, and several convolution kernels are used to extract features from the input image. The convolution operation is defined as:
[0139]
[0140] in, is the weight matrix of the kth convolution kernel in the lth layer, is the corresponding bias term, A [l-1] is the output of the previous layer.
[0141] The image data is forward propagated to the activation layer, and an activation function, such as ReLU, is applied to introduce nonlinearity:
[0142]
[0143] The ReLU function is defined as max(0,x) and is applied element by element.
[0144] The image data is forward propagated to the pooling layer, and the feature dimension is reduced through maximum pooling or average pooling to reduce the amount of calculation:
[0145]
[0146] Among them, MaxPool can be the maximum pooling, which The local area takes the maximum value.
[0147] The image data is forward propagated to the fully connected layer: The fully connected layer outputs the predicted probability through the softmax layer:
[0148] A [L] =softmax(W [L] ·flatten(p [L-1] )+b [L] )
[0149] Among them, W L and b [L] are the weights and biases of the fully connected layer, respectively. The softmax function is used to normalize the output into a probability distribution.
[0150] Calculate the loss and use the cross entropy loss function to evaluate the difference between the model output and the true label:
[0151]
[0152] Among them, m is the number of samples, C is the number of categories, and y t,c is the true label of whether the tth sample belongs to class c, is the predicted probability corresponding to the model.
[0153] A method for calculating the gradient of each parameter (weight and bias) in a neural network based on backpropagation. These gradients are partial derivatives of the loss function with respect to each parameter, indicating how the loss changes as the parameters change. Specifically, they include:
[0154] and
[0155] is the loss function L relative to the weight W of the lth layer [l] Partial derivative of. Used to show the change of W [l] How will it affect the total loss, thus guiding how to adjust the weights to reduce the loss.
[0156] is the bias b of the loss function L relative to the lth layer [l] It is used to show the impact of small changes in bias on the total loss, and then guide how to adjust the bias to optimize model performance.
[0157] The gradients obtained from backpropagation are used to update the weights and biases of the model with the goal of minimizing the loss function. In this way, the model learns the mapping from input data to predicted outputs.
[0158]
[0159]
[0160] Represents the new weight W [l] It is the original weight minus the learning rate α multiplied by the gradient of the weight. The learning rate α is a hyperparameter that controls the step size of updating the parameters in the direction of the loss gradient. It is used to reduce the total loss of the model.
[0161] Represents the new bias b [l] It is the original bias minus the learning rate multiplied by the gradient of the bias. This is also to reduce the value of the loss function.
[0162] The process in which the decision module performs splicing processing on the training evaluation results of the text processing module 200 and the image processing module 300 and obtains decision support is as follows:
[0163] Step 1: Feature Extraction
[0164] Feature extraction using CNN
[0165] CNN is very effective for extracting features from image data or local areas. Assume that the input is image data X
[0166] FCNN =CNN(X)
[0167] Among them, F CNN Represents the features extracted from CNN.
[0168] Use BiLSTM to process text or time series data:
[0169] Let S be the sequence data: F BiLSTM =BilSTM(S)
[0170] Among them, F BiLSTM Represents the features extracted from BiLSTM.
[0171] Step 2: Feature fusion:
[0172] First, we assume that we have used CNN and BiLSTM to process image and sequence data respectively, and obtained two sets of features:
[0173] Image feature vector extracted by CNN.
[0174] Sequence feature vector extracted by BiLSTM.
[0175] Concatenate these two feature vectors:
[0176] F combined =concat(F CNN ,F BiLSTM )
[0177] The concat operation here simply puts the two feature vectors together end-to-end to form a longer feature vector. CNN The dimension is d CNN , F BiLSTM The dimension d BiLSTM , then F combined The dimension is d CNN +d BiLSTM .
[0178] Step 3: Feature transformation:
[0179] In order to further process the fused features and reduce the dimension, a fully connected layer is used to transform the features:
[0180] F transformed =σ(WF combined +b)
[0181] W is the weight matrix of the fully connected layer, with size d out ×(d CNN +d BiLSTM ), dout is the dimension of the output features.
[0182] b is the bias vector, dimension d out ;
[0183] σ is an activation function, such as ReLU or tanh, which is used to introduce nonlinearity and enhance the expressiveness of the model.
[0184] Step 4: Output for downstream tasks
[0185] The transformed feature F transformed Now it can be used for subsequent tasks such as classification, regression, or other types of learning tasks. These features combine information from both the image and the sequence, and therefore more fully reflect the characteristics of the input data.
[0186] The embodiments of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above embodiments. Even if various changes are made to the present invention, if these changes fall within the scope of the claims of the present invention and their equivalents, they still fall within the protection scope of the present invention.
Claims
1. An intelligent nursing decision support system based on deep learning, characterized in that: include: A data acquisition module, the data acquisition module is used to respectively acquire and input text data and image data of the patient; A text processing module, the text processing module is used to read the data acquisition module and perform training and evaluation on the text data through a BiLSTM-CRF model; An image processing module, the image processing module is used to read the data acquisition module and perform training and evaluation on the image data through a convolutional neural network; A decision support module, wherein the decision support module is used to read the text processing module and the image processing module respectively, perform splicing processing on the training evaluation results of the text processing module and the image processing module, and obtain decision support.
2. The intelligent nursing decision support system according to claim 1, characterized in that: The text processing module is used to perform training evaluation on the text data through the following steps: Step 210: pre-processing the text data; Step 220: construct a text training model including a bidirectional LSTM layer and a CRF layer, and train the text data based on the text training model.
3. The intelligent nursing decision support system according to claim 2, characterized in that: Step 210 includes: Step 211: performing data cleaning on the text data to remove irrelevant information in the text data; Step 212: annotating the text data to form training text data; Step 213: Perform word segmentation and vectorization processing on the training text data.
4. The intelligent nursing decision support system according to claim 3, characterized in that: Step 220 includes: Define the CRF layer loss function based on the following expression and optimize the global consistency of label sequence prediction; The t (y t ) is the emission score for label k at time step t, which is converted from h through a linear layer t Calculated, that is, s t (k) = W k ·h t +b k , the h t is the BiLSTM output at time step t, where and are the LSTM hidden states from left to right and from right to left respectively; W k and b k are the parameters that need to be learned; Said is the transfer matrix from label y in the CRF layer t to y t+1 The transfer score is used to calculate the joint score of the label sequence; here, the label y is the output predicted by the model, and each y i Corresponding to x i Entity category label; here, x i The input of the model is a sequence of words or phrases in the text data; The log(Z(X)) is the logarithm sum of the scores of all possible tag sequences; where Z(X) is a normalization factor, which is calculated based on the following expression: αt(j) is the sum of the scores of all possible sequences at the end of time step t with label j; Initial condition: α t (j) = exp(s t (j)), i.e., the calculation of the first time step depends only on the initial emission score; All α n (j) are added to obtain the Z(X).
5. The intelligent nursing decision support system according to claim 4, characterized in that: The image processing module is used to perform training evaluation on the image data through the following steps; Step 310: pre-processing the image data; Step 320: construct an image training model based on a convolutional neural network, and train the image data based on the image training model.
6. The intelligent nursing decision support system according to claim 5, characterized in that: Step 310 includes: Step 311: collecting image data reflecting the location of the patient's lesion from the hospital image database; Step 312: annotating the image data to form training image data; Step 213: normalize the training image data.
7. The intelligent nursing decision support system according to claim 6, characterized in that: Step 320 includes: Step 3211: The image data is forward propagated to the convolution layer, and features are extracted from the training image data using several convolution operations, where the convolution operations are defined as: is the weight matrix of the kth convolution kernel in the lth layer, is the corresponding bias term, A [l-1] is the output of the previous layer; Step 3212: The image data is forward propagated to the activation layer, and the activation function ReLU is applied to introduce nonlinearity: The ReLU function is defined as max(0,x) and is applied element by element. Step 3213: The image data is forward propagated to the pooling layer, and the feature dimension is reduced through maximum pooling to reduce the amount of calculation: Among them, MaxPool is the maximum pooling, which The local area takes the maximum value; Step 3214: The image data is forward propagated to the fully connected layer, and the predicted probability is output through the softmax function: A [L] =softmax(W [L] ·flatten(P [L-1] )+b [L] ) Among them, W L is the weight of the fully connected layer, b [L] is the bias of the fully connected layer, and the softmax function is used to normalize the output into a probability distribution; Step 322: Use the cross entropy loss function to evaluate the difference between the model output and the true label: Among them, m is the number of samples, C is the number of categories, and y t,c is the true label of whether the tth sample belongs to class c, is the predicted probability corresponding to the model; Step 323: Obtain the parameter gradient of the model based on back propagation calculation, wherein the parameter gradient includes: The loss function L is relative to the weight W of the lth layer [l] The partial derivative of And the loss function L relative to the bias b of the lth layer [l] The partial derivative of Step 324: Update the weights and biases of the model based on the parameter gradient of the model obtained in step 323 to minimize the loss function; Get the mapping from input data to predicted output based on the following expression: Among them, the learning rate α is a hyperparameter used to control the step size of updating parameters in the direction of the loss gradient.
8. The intelligent nursing decision support system according to claim 7, characterized in that: The decision support module performs splicing processing on the training evaluation results of the text processing module and the image processing module and obtains decision support through the following steps: Step 410: Extract image feature vector F using convolutional neural network CNN , extract the sequence feature vector F by BiLSTM model BiLSTM ; Step 420: The image feature vector F is expressed as CNN and the sequence feature vector F BiLSTM To splice: F combined =concat(F CNN ,F BiLSTM ) Step 430: Through the fully connected layer, F is calculated based on the following expression combined Perform feature transformation: F transformed =σ(WF combined +b) Where W is the weight matrix of the fully connected layer, with a size of d out ×(d CNN +d BiLSTM ), d out is the dimension of the output feature; b is the bias vector, dimension d out , σ is the activation function; Step 440: Based on F transformed Make nursing decisions.
Citation Information
Cited By
Image-text modal scrap steel metal element detection system based on cross attention
CN119380873A
A cross-attention-based image-text modal scrap metal element detection system
CN119380873B
Neurosurgical operation risk intelligent assessment system
CN119418914A
Intelligent decision support system for ear-nose-throat disease nursing
CN119833060A
