A surgical duration prediction method based on multimodal feature fusion

Through the multi-modal feature fusion surgery duration prediction method, using the cross-attention feature fusion module and the BERT model, the problem of inaccuracy and lack of versatility in the surgery duration prediction in the existing technology is solved, and the prediction of multiple surgery types and Accurate prediction of patient groups improves hospital resource utilization and patient satisfaction.

CN118711779BActive Publication Date: 2024-10-25YUNNAN UNITED VISION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411194847.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2024-10-25
Estimated Expiration
2044-08-29

AI Technical Summary

Technical Problem

Existing surgery duration prediction methods rely on manual experience and subjective judgment, lacking scientificity. Moreover, machine learning-based methods usually focus on specific specialty surgeries or patient groups and cannot effectively utilize multi-modal data, resulting in inaccurate predictions and lack of general applicability. sex.

Method used

A surgical duration prediction method based on multi-modal feature fusion is adopted. The pre-operative data is encoded through the feature initialization module, key features are extracted using the cross-attention feature fusion module, and prediction is performed through the multi-modal feature fusion and duration prediction module, combined with classification , numerical and text variables, using the pre-trained BERT model and multi-head attention mechanism for feature fusion.

Benefits of technology

It achieves a more scientific and accurate prediction of operation duration, which is suitable for a variety of operation types and patient groups, improves the accuracy and stability of prediction, reduces resource waste and patient anxiety, and improves hospital operation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118711779B_ABST
    Figure CN118711779B_ABST
Patent Text Reader

Abstract

The present invention relates to a method for predicting the duration of an operation based on multimodal feature fusion, and belongs to the field of digital medical technology. The present invention comprises the steps of: encoding and initializing preoperative data using a feature initialization module to obtain feature information of different modalities; learning and fusing features of different modalities through a cross-attention feature fusion module to extract key important features affecting the duration of the operation and obtain multimodal features; fusing multimodal features through a multimodal feature fusion and duration prediction module, and using the fused features to predict the duration of the operation. The present invention can make full use of multimodal data information to improve the accuracy and stability of prediction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method for predicting operation duration based on multimodal feature fusion, and belongs to the technical field of digital medicine. Background Art

[0002] The key to improving the overall utilization of medical resources in hospitals and increasing the hospital's surgical throughput is to improve the efficiency of operating room operations, and achieving this goal is inseparable from accurate prediction of surgical duration. Predicting accurate surgical duration before surgery through machine learning and artificial intelligence can help hospitals accurately allocate key resources such as operating rooms, medical equipment, and medical personnel for surgery, reducing the waste of precious medical resources; it can also make patients and their families mentally prepared for the duration of surgery, improve their understanding of surgery, reduce concerns about surgical uncertainty, and reduce anxiety and dissatisfaction among patients and their families.

[0003] At present, most hospitals usually estimate the duration of surgery manually by head nurses or surgeons. This estimation method often relies on their experience and subjective judgment, and does not provide a scientific and reasonable explanation for the uncertainty of surgery duration. Some studies use machine learning methods to predict surgery duration, but due to the limitations of the data they collect, many methods only predict the duration of specific specialized surgeries or the duration of surgery for specific surgical patient groups. Such duration prediction is incomplete and difficult to apply to other specialized surgeries and a wider range of patient groups; secondly, the medical data that can be used to predict surgery duration contains features of multiple modalities, and most surgery duration prediction methods are limited by the fact that the basic machine learning algorithms used cannot utilize multimodal data and cannot obtain more comprehensive information related to surgery duration through multimodal feature fusion.

[0004] In real-life scenarios, manual estimation of surgical duration is often affected by the historical experience and subjective judgment of medical staff, and is therefore often not objective and accurate enough, and it is difficult to scientifically analyze the specific factors that affect surgical duration. Existing surgical duration prediction solutions based on machine learning and artificial intelligence usually focus on a certain type of surgery or patient, lacking versatility; they also ignore the exploration of the relationship between various features in medical data, and lack the use of multimodal feature fusion technology to enhance prediction capabilities. Summary of the invention

[0005] In view of the above problems, the present invention provides a method for predicting surgical duration based on multimodal feature fusion, which can make full use of multimodal data information and improve the accuracy and stability of prediction.

[0006] The technical solution of the present invention is: a method for predicting the duration of an operation based on multimodal feature fusion, and the specific steps of the method for predicting the duration of an operation based on multimodal feature fusion are as follows:

[0007] Step 1: Use the feature initialization module to encode and initialize the preoperative data to obtain feature information of different modalities;

[0008] Step 2: The features of different modalities are mutually learned and fused through the cross-attention feature fusion module to extract the key important features that affect the operation time and obtain multimodal features;

[0009] Step 3: Through the multimodal feature fusion and duration prediction module, the multimodal features are fused, and the fused features are used to predict the duration of the operation.

[0010] As a further solution of the present invention, Step 1 includes the following:

[0011] The preoperative data input into the feature initialization module include categorical variables, numerical variables and text variables; categorical variables and numerical variables belong to non-text features; text variables belong to text features;

[0012] (1) Categorical variables include surgeon ID, anesthesiologist ID, department ID, and surgical difficulty level. Categorical variables are encoded using one-hot encoding, where the values ​​of ordinal variables in the categorical variables are directly encoded with integer classification labels, and the size of the label itself indicates the relative relationship of these ordinal variables.

[0013] The ID in the categorical variable directly uses the categorical label of the ID as the encoding;

[0014] (2) Numerical variables include patient age, height, and weight; no additional coding is required for numerical variables;

[0015] (3) text variables included the name of the surgical procedure, coded as a number;

[0016] A pre-trained BERT model was used to encode text into digital vectors. During model training, the weights of BERT were fixed. These digital vectors reflect the semantic features of words, including part of speech, sentiment, and topic. A surgical procedure name contains tokens, each token can be embedded into a vector. To simplify the model and save computing time, the average value of these digital vectors is directly calculated, that is:

[0017] (1);

[0018] in is a vector of surgical procedure names, is the pre-trained BERT model, It is tokens, thus, we get a vector representing the name of the surgical procedure.

[0019] As a further solution of the present invention, the Step 2 includes:

[0020] The identities of anesthesiologists and clinical departments are represented by IDs, which are denoted as , and the non-text features are represented as , using ID Focusing on non-text features as queries ; The specific details are as follows:

[0021] First, a learnable affine transformation is used to obtain vector representations of queries, keys, and values. For a single numeric ID , which is fed into a simple linear layer to obtain a vector representation:

[0022] (2);

[0023] in is the weight matrix, is the bias vector; however, for all non-text features Using only the same linear layer for mapping is not appropriate because each element at different positions in the vector contains different meanings; therefore, a broadcasting mechanism is used to learn a unique affine transformation for each position:

[0024] (3);

[0025] in Represents non-text variables No. elements, express Length; The parameters of an affine transformation are given by and Given, for the sake of simplicity, this process is represented using matrix multiplication with broadcasting mechanism;

[0026] (4);

[0027] in and are the stacked weight and bias matrices respectively; Represents matrix multiplication with broadcasting;

[0028] The affine transformation process and key of the value V corresponding to each feature are the same, but their learnable parameters are independent of each other; finally, multi-head attention is used to derive the result vector, which combines the unique contributions of different anesthesiologists or clinical departments and the corresponding surgical conditions;

[0029] (5);

[0030] Such multi-head two cross attention blocks are used to calculate the initial fusion features of anesthesiologist ID and clinical department ID respectively. , and are recorded as the initial fusion features of the anesthesiologist ID and initial fusion features of clinical department ID .

[0031] As a further solution of the present invention, Step 3 includes the following:

[0032] Step 3.1. First, the original non-text feature 𝛽 is further refined through a set of fully connected layers and then combined with the vector of the surgical procedure name And the initial fusion features of the output anesthesiologist ID of the cross attention and initial fusion features of clinical department ID Fusion:

[0033] (6);

[0034] in, is the calculation function of the fully connected layer, represents the concatenation operation of feature vectors, is the concatenated vector;

[0035] Step 3.2: The above Step 3.1 combines the features of non-text modalities and text modalities to obtain a more comprehensive set of information related to predicting surgery duration. Finally, a set of fully connected networks is used to obtain Decoding surgery duration ;

[0036] (7).

[0037] The beneficial effects of the present invention are:

[0038] This paper proposes a new method for predicting surgery duration. While using a machine learning algorithm to objectively and scientifically predict surgery duration, a more accurate surgery duration prediction scheme suitable for various surgery types and patient groups is designed based on a multimodal feature fusion method. This will bring two advantages:

[0039] 1) Compared with manual estimation of surgery duration, the present invention can achieve a more scientific and accurate prediction of surgery duration, effectively reducing the overuse or idle waiting of medical resources such as operating rooms caused by inaccurate estimation of surgery duration, so that hospitals can operate more efficiently;

[0040] 2) Compared with other surgery duration prediction methods, this invention takes into account the differences in surgery types and patient groups in different clinical departments. By using neural networks and attention mechanisms, the effects of surgery types and patient groups on surgery duration caused by different departments are analyzed. This makes the surgery duration prediction method applicable to more surgery types and patient groups.

[0041] 3) The present invention uses multimodal feature fusion technology, which can obtain rich information from different data modalities, obtain more comprehensive and diverse features, better cope with changes and uncertainties in the data, and help improve the performance and representation of the model. Most other existing methods only use single modal features and have limited performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION

[0043] Example 1: Figure 1 As shown, a method for predicting surgical duration based on multimodal feature fusion is described, and the specific steps of the method are as follows:

[0044] Step 1, using a feature initialization module to encode and initialize the preoperative data to obtain feature information of different modalities; as a further solution of the present invention, the Step 1 includes the following:

[0045] The preoperative data input into the feature initialization module include categorical variables, numerical variables and text variables; categorical variables and numerical variables belong to non-text features; text variables belong to text features;

[0046] (1) Categorical variables include surgeon ID, anesthesiologist ID, department ID, surgical difficulty level, etc.; one-hot encoding is used for most categorical variables, and the remaining categorical variables are mainly ordinal variables (such as ASA score and surgical level) and ID (including anesthesiologist ID and department ID). The values ​​of ordinal variables are arranged in a specific order, so we can directly encode them with integer categorical labels. The size of the label itself indicates the relative relationship of these ordinal variables.

[0047] For the categorical variables ID, since a hospital may contain dozens of departments and hundreds of anesthesiologists, using one-hot encoding for these features will make the input too long and sparse. Therefore, we also directly use the categorical labels of these IDs as encodings, but they will be further processed in the subsequent cross-attention feature fusion module;

[0048] (2) Numerical variables include patient age, height, weight, etc., which can reflect the patient's physical condition; no additional coding is required for numerical variables;

[0049] (3) For text variables including surgical procedure names, they were coded into numbers to facilitate subsequent calculations;

[0050] A pre-trained BERT model was used to encode text into digital vectors. During model training, the weights of BERT were fixed. These digital vectors reflect the semantic features of words, such as part of speech, sentiment, topic, etc. A surgical procedure name contains tokens, each token can be embedded into a vector. To simplify the model and save computing time, the average value of these digital vectors is directly calculated, that is:

[0051] (1);

[0052] in is a vector of surgical procedure names, is the pre-trained BERT model, It is Tokens are obtained, thus obtaining a vector representing the name of the surgical procedure for subsequent calculations. This method makes full use of text information and improves the prediction ability of the model.

[0053] Step 2: The features of different modalities are mutually learned and fused through the cross-attention feature fusion module to extract the key important features that affect the operation time and obtain multimodal features;

[0054] As a further solution of the present invention, the Step 2 includes:

[0055] The identities of anesthesiologists and clinical departments are represented by IDs, which are denoted as , and the non-text features are represented as , using ID Focusing on non-text features as queries ; The specific details are as follows:

[0056] First, a learnable affine transformation is used to obtain vector representations of queries, keys, and values. For a single numeric ID , which is fed into a simple linear layer to obtain a vector representation:

[0057] (2);

[0058] in is the weight matrix, is the bias vector; however, for all non-text features Using only the same linear layer for mapping is not appropriate because each element at different positions in the vector contains different meanings; therefore, a broadcasting mechanism is used to learn a unique affine transformation for each position:

[0059] (3);

[0060] in Represents non-text variables No. elements, express Length; The parameters of an affine transformation are given by and Given, for the sake of simplicity, this process is represented using matrix multiplication with broadcasting mechanism;

[0061] (4);

[0062] in and are the stacked weight and bias matrices respectively; Represents matrix multiplication with broadcasting;

[0063] The affine transformation process and key of the value V corresponding to each feature are the same, but their learnable parameters are independent of each other; finally, multi-head attention is used to derive the result vector, which combines the unique contributions of different anesthesiologists or clinical departments and the corresponding surgical conditions;

[0064] (5);

[0065] Such multi-head two cross attention blocks are used to calculate the initial fusion features of anesthesiologist ID and clinical department ID respectively. , and are recorded as the initial fusion features of the anesthesiologist ID and initial fusion features of clinical department ID .

[0066] Step 3: Through the multimodal feature fusion and duration prediction module, the multimodal features are fused, and the fused features are used to predict the duration of the operation.

[0067] As a further solution of the present invention, Step 3 includes the following:

[0068] Step 3.1. First, the original non-text feature 𝛽 is further refined through a set of fully connected layers and then combined with the vector of the surgical procedure name And the initial fusion features of the output anesthesiologist ID of the cross attention and initial fusion features of clinical department ID Fusion:

[0069] (6);

[0070] in, is the calculation function of the fully connected layer, represents the concatenation operation of feature vectors, is the concatenated vector;

[0071] Step 3.2: The above Step 3.1 combines the features of non-text modalities and text modalities to obtain a more comprehensive set of information related to predicting surgery duration. Finally, a set of fully connected networks is used to obtain Decoding surgery duration ;

[0072] (7).

[0073] The present invention discloses a method for predicting the duration of an operation using an artificial intelligence algorithm, which involves three modules: feature initialization, cross-attention feature fusion module, and multimodal feature fusion and duration prediction module. The present invention first extracts the information we need from the preoperative data input by medical personnel, and initializes and encodes the feature information to facilitate model processing and understanding of these features. Secondly, the present invention designs a cross-attention feature fusion module, through which features of different modalities can learn and fuse from each other. More importantly, the present invention pays special attention to the key and important features that affect the duration of the operation in different departments through this module, improves the interpretability of the model, and facilitates the generalization of the model to the task of predicting the duration of the operation in other departments; finally, the model of the present invention uses the fused features through the multimodal feature fusion and duration prediction modules to predict the duration of the operation. This design enables the model to make full use of multimodal data information and improve the accuracy of the prediction.

[0074] The present invention proposes a method for predicting the duration of an operation, which uses a neural network and a deep learning algorithm to predict the duration of an operation based on pre-operative data, helping hospitals and medical staff to better plan and utilize surgical resources.

[0075] Different from other surgery duration prediction algorithms which are mostly targeted at specific specialized surgeries, the present invention designs a cross-attention feature fusion mode, using department information as the input of the module to force the model to pay more attention to the key important features that affect the surgery duration of the department, so that the model can be used for surgeries in more specialized departments.

[0076] The present invention adopts multimodal feature fusion technology. Unlike previous surgery duration prediction methods that mostly only focus on numerical preoperative data, the present invention also combines text modality data such as surgical procedure name and diagnosis results. The more complete modality makes the model's prediction more stable and accurate.

[0077] In order to illustrate the effect of the present invention, the present invention is compared with a variety of machine learning algorithms and deep learning algorithms on the data set we collected and constructed. The baseline models compared include four traditional machine learning methods such as linear regression (LR, LQR), kernel method (SVR), decision tree (DT) and ensemble learning method (GBT, RF, QRF, XGBoost, Bagging) and neural network (MLP, MDN). The evaluation indicators used include evaluation absolute error MAE, root mean square error RMSE, mean absolute percentage error MAPE and R 2 error.

[0078] Table 1 Comparison of the performance of different methods in predicting operation duration

[0079]

[0080] The results show that our method performs well on all evaluation criteria, surpassing all other models. When compared with the best performing linear model LQR, our method achieves 25.4% improvement on mean absolute error (MAE), 21.7% improvement on root mean square error (RMSE), and 25.4% improvement on mean absolute percentage error (MAPE). Compared with the kernel method SVR, our method improves by 16.0% on MAE, 16.1% on RMSE, and 15.2% on MAPE. Compared with the leading tree-structured algorithms (especially GBT), our method improves by 9.4% on MAE, 6.4% on RMSE, and 14.2% on MAPE. Compared with the best performing ensemble methods (such as XGBoost), our method improves by 4.6% on MAE, 5.9% on RMSE, and 6.0% on MAPE. Relative to multi-layer perceptron (MLP), our method improves by 14.5% on MAE, 13.9% on RMSE, and 13.9% on MAPE. Notably, tree models and ensemble learning models produce suboptimal results, while LQR and SVR perform poorly. Among the tested tree models, gradient boosted tree (GBT) performs well in terms of MAE and RMSE, while random forest (QRF) performs better in terms of MAPE, suggesting that QRF may be more effective for samples with shorter surgical times. In terms of regressors, LQR consistently outperforms SVR in all evaluation criteria. Overall, the experimental results confirm the superiority of our method over previous machine learning methods in surgery duration prediction, highlighting its effectiveness and the necessity of feature fusion on different evaluation metrics.

[0081] The specific implementation modes 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 implementation modes, and various changes can be made within the knowledge scope of ordinary technicians in this field without departing from the purpose of the present invention.

Claims

1. A method for predicting surgical duration based on multimodal feature fusion, characterized in that: The specific steps of the surgery duration prediction method based on multimodal feature fusion are as follows: Step 1: Use the feature initialization module to encode and initialize the preoperative data to obtain feature information of different modalities; Step 2: The features of different modalities are mutually learned and fused through the cross-attention feature fusion module to extract the key important features that affect the operation time and obtain multimodal features; Step 3: Through the multimodal feature fusion and duration prediction module, the multimodal features are fused, and the fused features are used to predict the duration of the operation; The Step 1 includes the following: The preoperative data input into the feature initialization module include categorical variables, numerical variables and text variables; categorical variables and numerical variables belong to non-text features; text variables belong to text features; (1) Categorical variables included surgeon ID, anesthesiologist ID, department ID, and surgical difficulty level; Categorical variables are encoded using one-hot encoding, where the values ​​of ordinal variables in the categorical variables are directly encoded with integer classification labels, and the size of the label itself indicates the relative relationship of these ordinal variables; The ID in the categorical variable directly uses the categorical label of the ID as the encoding; (2) Numerical variables include patient age, height, and weight; no additional coding is required for numerical variables; (3) text variables included the name of the surgical procedure, coded as a number; A pre-trained BERT model was used to encode text into digital vectors. During model training, the weights of BERT were fixed. These digital vectors reflect the semantic features of words, including part of speech, sentiment, and topic. A surgical procedure name contains tokens, each token can be embedded into a vector, and the average value of these digital vectors is directly calculated, that is: ; in, is a vector of surgical procedure names, is the pre-trained BERT model, It is tokens, thus, we get a vector representing the name of the surgical procedure; The Step 2 includes: The identities of anesthesiologists and clinical departments are represented by IDs, which are denoted as , and the non-text features are represented as , using ID Focusing on non-text features as queries ; The specific details are as follows: First, a learnable affine transformation is used to obtain vector representations of queries, keys, and values. For a single numeric ID , which is fed into a simple linear layer to obtain a vector representation: ; in is the weight matrix, is the bias vector; a broadcasting mechanism is used to learn a unique affine transformation for each position: ; in Represents non-text variables No. elements, express Length; The parameters of an affine transformation are given by and Given, use matrix multiplication with broadcast mechanism to represent this process; ; in and are the stacked weight and bias matrices respectively; Represents matrix multiplication with broadcasting; The affine transformation process and key of the value V corresponding to each feature are the same, but their learnable parameters are independent of each other; finally, multi-head attention is used to derive the result vector, which combines the unique contributions of different anesthesiologists or clinical departments and the corresponding surgical conditions; ; Such multi-head two cross attention blocks are used to calculate the initial fusion features of anesthesiologist ID and clinical department ID respectively. , and are recorded as the initial fusion features of the anesthesiologist ID and initial fusion features of clinical department ID ; The Step 3 includes the following: Step 3.

1. First, the original non-text feature 𝛽 is further refined through a set of fully connected layers and then combined with the vector of the surgical procedure name And the initial fusion features of the output anesthesiologist ID of the cross attention and initial fusion features of clinical department ID Fusion: ; in, is the calculation function of the fully connected layer, represents the concatenation operation of feature vectors, is the concatenated vector; Step 3.2: The above Step 3.1 combines the features of non-text modalities and text modalities to obtain a more comprehensive set of information related to predicting surgery duration. Finally, a set of fully connected networks is used to obtain Decoding surgery duration ; .