The invention relates to a system and computer-implemented method for generating a predictive model for predicting a surgery duration. The invention further relates to a system and computer-implemented method for using the generated predictive model for predicting a surgery duration. The invention further relates to a computer-readable medium comprising instructions to perform any of the computer-implemented methods.
Hospitals and other health care institutions are facing capacity challenges, for example due to increased demand for care and shortage of healthcare workers. It is therefore of importance that resources such as operating rooms (OR), intensive care units (ICU), post anaesthesia care units (PACU) and general ward resources are efficiently used to be able to provide the timely care that patients require. To ensure the efficient use of these resources, it is common to plan the use of the resources in advance to ensure their timely availability for patients.
For example, it is known to plan surgeries in advance to know which resources will be allocated at which time. In such surgery planning, it is common to use a surgeon's average procedure time for their latest n patients as a booking time for future patients that require a similar procedure, with the number n being typically different for different hospitals. While this model may be quite simple and easily understood, the discrepancy (delta) between the planned and the actual surgery duration may be substantial.
Such discrepancies are highly undesirable as inaccurate surgery planning may endanger the health of patients. For example, inaccurate surgery planning may result in insufficient resources being available for patients which require acute surgery, or elective surgeries of patients having to be postponed even though sufficient resources would have been available. It is therefore desirable to obtain a predictive model which more accurately predicts surgery durations.
In a first aspect of the invention, a system is provided for generating a predictive model for predicting a surgery duration. The system comprises:
In a further aspect of the invention, a computer-implemented method is provided for generating a predictive model for predicting a surgery duration. The method comprises:
In a further aspect of the invention, a system is provided for using a predictive model to predict a surgery duration. The system comprises:
In a further aspect of the invention, a computer-implemented method is provided for using a predictive model to predict a surgery duration. The method comprises:
In a further aspect of the invention, a transitory or non-transitory computer-readable medium is provided, the computer-readable medium comprising data representing a computer program comprising instructions for causing a processor system to perform one or more of the methods described in this specification.
The above aspects of the invention involve generating and using a predictive model for predicting a duration of a surgery of a patient. In some aspects of the invention, the predictive model may be generated and used by one and the same system and/or method, while in other aspects of the invention, the predictive model may be generated by a system and/or method which is different from the system and/or method which subsequently uses the predictive model to predict surgery durations.
The predictive model may be generated using medical data which comprises records of surgeries. Such a record may for example be a record in a database pertaining to a particular surgery but may also be a row item in a log of surgeries. Typically, the records may pertain to actual surgeries having been performed in the past, e.g., in a hospital or other health care institution. The records may for example be specific to one particular hospital. For each or at least a subset of the surgeries, the medical data may indicate a type of the surgery and a duration of the surgery. Typically, the duration may be a measured duration of an actual surgery, and may be defined in any suitable manner, for example in minutes, or hours and minutes, or in a number of time blocks of, e.g., 5 or 10 or 15 or 20 minutes each, etc. The type of surgery may for example be indicated by one or more categorizations and/or by one or more labels. Such categorizations and labels may be mutually exclusive or may overlap. For example, one categorization or label may pertain to the medical specialty associated with the surgery, e.g., cardiothoracic surgery. Typically, the categorization or label may also indicate the type of surgery within a particular surgical specialty, e.g., in cardiothoracic surgery, whether the cardiothoracic surgery is a Coronary Artery Bypass Grafting (CABG) or an Aortic Valve Replacement (AVR). Another categorization or label may for example indicate whether the surgery is an elective surgery or an acute surgery.
In accordance with the above measures, a part of the medical data may be used as training data for machine learning. To identify relevant features for the machine learning, a feature selection technique may be applied to the training data to identify a set of features which is predictive of the surgery duration. Such features may at least comprise the type of surgery, and if the medical data contains additional (meta)data characterizing the surgery and/or the patient, one or more features from this additional (meta)data. Having identified a set of features, several predictive models may be trained using the features from the training data as input and the surgery duration as prediction target. Thereby, each predictive model may be trained to predict the surgery duration from the set of features. As also further discussed below, the predictive models may include at least a linear predictive model and a nonlinear predictive model.
Having trained the predictive models, the performance of each predictive model may then be evaluated. For that purpose, another part of the medical data may be used, which part may also be referred to as ‘second’ or ‘test’ part’ or as ‘test data’. The performance itself may be quantified by a performance metric which may be designed to characterize the time difference between the output of the predictive model, being the predicted surgery duration, and the actual surgery duration indicated in the medical data and may be designed to reward smaller or no differences between the actual surgery duration and the predicted surgery duration while penalizing larger differences.
Having quantified the performance of the predictive models, an ensemble model may be generated which may combine at least two of the predictive models. In the selection of the predictive models to be included in the ensemble model, the performance of each individual predictive model may be taken into account. For example, two of the best performing predictive models may be combined into one ensemble model. As is known per se, such an ensemble model may blend and/or aggregate predictions of individual models to obtain an ensemble prediction. The ensemble model may be output, e.g., in the form of model data, to be used to predict the surgery duration. For example, the ensemble model may be used in a surgical planning department to plan allocation of resources for upcoming surgeries in a hospital.
The above measures have the advantage that surgery durations may be more accurately predicted than conventionally, where typically a surgeon's average procedure time for their latest ten patients is used as a booking time for future procedures. Namely, the predictive models are trained on training data which includes at least the type of surgery, which has been found to be a relevant predictor for surgery duration. In particular, it was found that there are linear and nonlinear relations between features in the medical data and the surgery duration. By providing and training several predictive models on the features in the medical data, which models include at least a linear predictive model and a nonlinear predictive model, such linear and nonlinear relations may be modelled by the individual models. By combining individual models into an ensemble model, a single combined output may be obtained, which output may for example optimally combine linear and non-linear predictions. Advantageously, more accurate surgery planning may safeguard the health of patients, for example by ensuring that there are sufficient resources available for acute surgeries, or by avoiding that elective surgeries have to be postponed due to a presumed lack of resources.
Optionally, the performance metric characterises whether the time difference between the predicted surgery duration and the actual surgery duration is positive or negative and a degree of the difference. Conventionally, in data analysis, error measures such as the Root Mean Square Error (RMSE) and Mean Absolute Error (MAE) are used to quantify the performance of regression predictive models. However, these error measures are hard to interpret by non-expert users, such as clinical staff and planners, and may deter such users from actually using the predictive models. Further, these error measures cannot distinguish between positive and negative time difference. By defining and using a performance metric which characterizes the difference between a predicted surgery duration and the actual surgery duration in terms of actual time, e.g., in minutes or in number of time blocks, and by characterizing whether the difference is negative or positive, the performance metric is defined in a way which is not only relevant for the problem at hand but also well-understandable by clinical staff and planners.
Optionally, the performance metric categorizes the time difference into a number of categories, wherein the categories include at least a first category indicating that the predicted surgery duration exceeds the actual surgery duration by a first margin and a second category which indicates that the predicted surgery duration is less than the actual surgery duration by a second margin. By categorizing the performance into several categories, the performance metric takes into account that differences in prediction within a certain range may be considered equally (sub)optimal and may thus be seen as a single category for the purpose of performance evaluation. Advantageously, the performance characterization in several categories may be easier to interpret than the exact differences between actual and predicted surgery duration.
Optionally, in evaluating the performance, a positive time difference between the predicted surgery duration and the actual surgery duration is weighted differently than a negative time difference. From the perspective of patient health, it may be preferred to ensure that sufficient hospital resources are available for acute cases, and therefore, it may be preferred to overestimate rather than to underestimate surgery durations, as in the former case, planners may take action in advance to ensure that sufficient resources are available, while in the latter case, planners may trust that there are sufficient resources available but which may turn out not to be the case. By weighting a negative time difference between the actual surgery duration and the predicted surgery duration, e.g., an overestimation, differently than a positive time difference, this asymmetry may be taken into account. In other words, the performance metric may more heavily penalize an underestimation of the surgery duration by a certain amount than an overestimation of the duration by the same amount.
Optionally, the system further comprises a user interface subsystem comprising a user input interface to a user input device for receiving user input and a display output to a display for displaying output of the system, wherein the processor subsystem is configured to, using the user interface subsystem:
Optionally, the processor subsystem is configured to, using the user interface subsystem, enable the user to further evaluate the performance of the new predictive model using the performance metric.
Optionally, the processor subsystem is configured to:
In some embodiments, two or more ensemble models may be generated, which may each represent a different combination of predictive models. To be able to select one of the ensemble models for output, the performance of the ensemble models may be evaluated on yet another part of the medical data, which part is also referred to as a ‘third’ or ‘validation’ part or as ‘validation data’. Preferably, the same performance metric is used to evaluate the performance of the ensemble models as was previously used to evaluate the performance of the individual predictive models.
Optionally, a record in the medical data is further indicative of one or more of: an identity of a surgeon, a clinical role of a surgeon, a type of surgical procedure, a surgical urgency, a type of post-surgery bed, an average surgery duration for a type of surgical procedure for a surgeon, and a number of surgical procedures performed during the surgery. Each of these types of data may be used as a feature in the predictive model, e.g., for training and for subsequent use (inference). In this respect, it is noted that the input data during inference may equally comprise one or more of: an identity of a surgeon, a clinical role of a surgeon, a type of surgical procedure, a surgical urgency, a type of post-surgery bed, an average surgery duration for a type of surgical procedure for a surgeon, and a number of surgical procedures performed during the surgery.
Optionally, the medical data further comprises patient data of patients of the respective surgeries. Patient data may also be indicative of surgery duration and may therefore be used as input for training and later use (inference). In this respect, it is noted that the input data during inference may equally comprise patient data.
Optionally, the patient data is indicative of one or more of: an age, a gender, a body-mass index, an American Society of Anaesthesiology (ASA)-score, a number of medications taken, a number of comorbidities, and a creatine level, of a respective patient. Each of the types of data may be used as a feature in the predictive model for training and inference.
Optionally, the processor subsystem is configured to identify the set of features in the training data using multivariate inferential analysis, wherein the processor subsystem is further configured to use univariate inferential analysis as a filter to determine an input set of features to the multivariate inferential analysis, wherein the features of the input set of features are individually predictive of the surgery duration.
Optionally, the predictive models comprise one or more of: a linear regression-based model, a random forest-based model, and a gradient boosting-based model.
Optionally, a record in the medical data is indicative of whether a surgery is an elective surgery or an acute surgery, wherein the processor subsystem is configured to generate different predictive models for predicting the surgical duration of elective surgeries and for predicting the surgical duration of acute surgeries.
It will be appreciated by those skilled in the art that two or more of the embodiments, implementations, and/or optional aspects of the invention described in this specification may be combined in any way deemed useful.
Modifications and variations of the system, the computer-implemented method and/or the computer program product, which correspond to the described modifications and variations of another one of said entities, can be carried out by a person skilled in the art on the basis of the present description.
These and other aspects of the invention will be apparent from and elucidated further with reference to the embodiments described by way of example in the following description and with reference to the accompanying drawings, in which
It should be noted that the figures are purely diagrammatic and not drawn to scale. In the figures, elements which correspond to elements already described may have the same reference numerals.
The following list of reference numbers is provided for facilitating the interpretation of the drawings and shall not be construed as limiting the claims.
The system 100 is shown to comprise a data storage interface 120 to a data storage 20. In some embodiments, the data storage 20 may store medical data comprising records of surgeries. As also shown in
The system 100 is further shown to comprise a processor subsystem 140 configured to internally communicate with the data storage interface 120 via data communication 142, with a memory 160 via data communication 144 and with a user interface subsystem 180 via data communication 146. The memory 160 may for example be a volatile memory in which a computer program may be loaded which may cause the processor subsystem 140 to carry out functions which are described in this specification, for example in relation to generating a predictive model and/or to using the predictive model.
In some embodiments, the system 100 may comprise a user interface subsystem 180, which user interface subsystem may be configured to, during operation of the system 100, enable a user to interact with the system 100, for example using a graphical user interface. In particular, as also described elsewhere, the graphical user interface may enable the user to analyse the performance of predictive model(s). For that and other purposes, the user interface subsystem 180 is shown to comprise a user input interface 184 configured to receive user input data 82 from one or more user input devices 80 operable by the user. The user input devices 80 may take various forms, including but not limited to a keyboard, mouse, touch screen, microphone, etc.
In some embodiments, the processor subsystem 140 may be configured to, during operation of the system 100, generate a predictive model for predicting the surgery duration. For that purpose, the processor subsystem 140 may be configured to use a feature selection technique to identify a set of features in the training data 22, which set of features is predictive of the surgery duration, train a number of predictive models using the set of features in the training data as input and the surgery duration as prediction target, wherein the predictive models include at least a linear predictive model and a non-linear predictive model, and use the test data 24 to evaluate a performance of each the predictive models in predicting the surgery duration, wherein the evaluating of the performance comprises using a performance metric which characterises a time difference between a predicted surgery duration and an actual surgery duration. The processor subsystem 140 may be further configured to, based on the performance of the predictive models, generate an ensemble model which combines at least two of the predictive models and output the ensemble model so that it can be used by other systems and methods to predict the surgery duration.
In other embodiments, the processor subsystem 140 may alternatively or additionally be configured to, during operation of the system 100, use the predictive model in form of the ensemble model for inference purposes, namely, to predict the surgery duration from input data. In such embodiments, the processor subsystem 140 may be configured to, using the data storage interface 120, access model data representing the ensemble mode and input data indicative of at least a type of surgery, and to use the input data as input to the predictive model to obtain a prediction of the surgery duration as an output. The predicted surgery duration may for example be output by the system 100 on the display 60.
These and other operations of the system 100, and various optional aspects thereof, will be explained in more detail with reference to
In general, the system 100 may be embodied as, or in, a single device or apparatus. The device or apparatus may be a general-purpose device or apparatus, such as a workstation or a computer, but may also be application-specific, such as a patient monitor. The device or apparatus may comprise one or more microprocessors which may represent the processor subsystem, and which may execute appropriate software. The software may have been downloaded and/or stored in a corresponding memory, e.g., a volatile memory such as RAM or a non-volatile memory such as Flash. Alternatively, the functional units of the system, e.g., the input interface, the user interface subsystem, and the processor subsystem, may be implemented in the device or apparatus in the form of programmable logic, e.g., as a Field-Programmable Gate Array (FPGA). In general, each functional unit of the system 100 may be implemented in the form of a circuit. It is noted that the system 100 may also be implemented in a distributed manner, e.g., involving different devices or apparatuses. For example, the distribution may be in accordance with a client-server model, e.g., using a server and workstation. For example, the user input interface and the display output interface may be part of the workstation, while the processor subsystem may be a subsystem of the server. It is noted that various other distributions are equally conceivable.
The SDA may be configured to allow the performance of one or more predictive models to be analysed. In an exemplary workflow using the SDA, in a first step 230, an error may be quantified between an actual surgery duration and a surgery duration as predicted by a current predictive model, e.g., as used within the hospital or other health care institution. The current predictive model may for example be a predictive model which was previously generated using machine learning or may be a non-machine learned model which was generated based on heuristics. The error, which may elsewhere also be referred to as a delta, may be determined for surgeries for which the actual surgery duration is known, for example for a set of surgeries which were previously performed within a hospital, e.g., within the last month(s) or year(s). By way of example, the following example refers to a set of cardiothoracic surgeries performed within a particular timeframe and within one hospital, on which the systems and methods described in this specification were evaluated. The deltas may for example be evaluated for all surgeries within the set, or for relevant sub-categories of surgeries. For example, the performance evaluation may distinguish between elective and acute surgeries and/or between medical specialties.
The deltas may in general be expressed in various ways, for example as a Root Mean Square Error (RMSE) or Mean Absolute Error (MAE). However, while such error metrics are well-known in the field of data analysis, they are not intuitive for use by clinical staff and planners. Further, these error measures do not distinguish between positive and negative time deltas. Instead, or additionally, a performance metric may be used which characterises whether the time difference between the predicted surgery duration and the actual surgery duration is positive or negative, as well as a degree of the difference. For example, such a performance metric may categorize the time difference into a number of categories, as for example explained with reference to
With continued reference to
For example, as also shown in
With continued reference to
In a second step 212, features may be extracted from the medical data. For example, some types of features may characterize the surgery while other types of features may characterize the patient. Examples of the former type of features are given in Table 1 below, while examples of the latter type of features are given in Table 2 below. It is noted that typically, all features are available before the surgery is performed, e.g., at the point of surgery planning, and typically even before the patient is hospitalized.
After having extracted a set of features from the training data, the feature selection may be performed, by which a set of features may be selected from the larger set of extracted features, which set of features is most predictive of the surgery duration. For the feature selection, any known feature selection technique may be used. In a specific example, a two-step feature selection technique may be used. For example, the SDP may first perform univariate inferential analysis to investigate how well each of the extracted features can predict the surgery duration. Features that are not statistically significant predictors (e.g., p-values>0.05) may be dropped, see for example Table 3 below in which it is shown that gender is not a statistically significant predictor for surgery duration in this particular instance of medical data, i.e., this particular set of cardiothoracic surgeries.
Secondly, the SDP may perform multivariate inferential analysis, for example using the Boruta algorithm based on Random Forest ML technique, which may categorize features into important, tentative, and unimportant features. An example of the output of the Boruta algorithm is visualized in
With continued reference to
Having trained the predictive models, in a fourth step 216, a performance of each of the predictive models in predicting the surgery duration may be evaluated. For that purpose, a second part of the medical data may be used, which part may elsewhere also be referred to as test data. Such performance evaluation may for example make use of the traditional RMSE and MAE errors, which yield the performance numbers listed in Table 4 below, in which separate models were trained for elective and acute surgeries. Preferably, however, the performance evaluation comprises using a performance metric which characterises the time difference between the predicted surgery duration and the actual surgery duration. For example, the performance metric may indicate whether the difference between the predicted surgery duration and actual surgery duration is positive or negative and the magnitude of the difference. In some embodiments, the difference may also be categorized in several categories, e.g., as shown in
With continued reference to
Once the ensemble model(s) are generated, the SDA may again perform its steps 230-236 to quantify the performance improvement over the current predictive model. If there are multiple predictive models, for example a set of ensemble models or a combination of individual predictive models and ensemble models, the performance improvement may be evaluated for each of these models. For the performance evaluation, the aforementioned performance metric may be used which uses categorization with clinical meaning such as ‘behind-schedule’, ‘on time’, ‘ahead of schedule’. Additionally, or alternatively, known error metrics such as the RMSE/MAE may be used in the evaluation. In general, the performance evaluation may be on a third part of the medical data, which third part is elsewhere also referred to as validation data. The best performance model may then be selected for subsequent inferential use, for example for use as a predictor in actual surgery planning.
For the medical data of the set of cardiothoracic surgeries, the best predictive model for surgery duration of acute surgeries was an ensemble model, namely LM+GB blended by RF, highlighted in Table 5 below. This ensemble model reduced the number of surgeries ‘behind-schedule’ by 28% (from 60% to 32%) and increased the surgery ‘on-time’ by 15% (from 30% to 45%). The number of surgeries ‘ahead-of-schedule’ was increased by 13% (from 10% to 23%), which may be considered to be an acceptable trade-off.
The best predictive model for surgery duration of elective cardiothoracic surgeries was also an ensemble model, namely the combination of LM+RF+GB blended by LM, highlighted in Table 6. This ensemble model reduced the number of surgeries ‘behind-schedule’ by 9% (from 37% to 28%) and increased the surgery ‘on-time’ by 5% (from 33% to 38%). The number of surgeries ‘ahead-of-schedule’ was increased by 4% (from 30% to 34%), which again may be considered to be an acceptable trade-off.
The method 400 is shown to comprise, in an operation titled “ACCESSING MEDICAL DATA”, accessing 410 medical data as described elsewhere in this specification, and generating a predictive model for predicting the surgery duration by, in an operation titled “IDENTIFYING FEATURES IN MEDICAL DATA”, using a feature selection technique to identify 420 a set of features in training data, which set of features is predictive of the surgery duration, wherein the training data comprises a first part of the medical data, in an operation titled “TRAINING PREDICTIVE MODELS”, training 430 a number of predictive models using the set of features in the training data as input and the surgery duration as prediction target, wherein the predictive models include at least a linear predictive model and a non-linear predictive model, in an operation titled “EVALUATING PERFORMANCE OF PREDICTIVE MODELS”, using a second part of the medical data, evaluating 440 a performance of each the predictive models in predicting the surgery duration, wherein the evaluating of the performance comprises using a performance metric which characterises a time difference between a predicted surgery duration and an actual surgery duration, and in an operation titled “GENERATING AND OUTPUTTING ENSEMBLE MODEL”, based on the performance of the predictive models, generating 450 an ensemble model which combines at least two of the predictive models and outputting the ensemble model for use in predicting the surgery duration. It will be appreciated that in general, operations of method 400 of
The method may be implemented on a computer as a computer implemented method, as dedicated hardware, or as a combination of both. As also illustrated in
Examples, embodiments or optional features, whether indicated as non-limiting or not, are not to be understood as limiting the invention as claimed.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design many alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. Use of the verb “comprise” and its conjugations does not exclude the presence of elements or stages other than those stated in a claim. The article “a” or “an” preceding an element does not exclude the presence of a plurality of such elements. Expressions such as “at least one of” when preceding a list or group of elements represent a selection of all or of any subset of elements from the list or group. For example, the expression, “at least one of A, B, and C” should be understood as including only A, only B, only C, both A and B, both A and C, both B and C, or all of A, B, and C. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the device claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.
| Number | Date | Country | Kind |
|---|---|---|---|
| 22179583 | Jun 2022 | EP | regional |