Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

Analysis of factors associated with extended recovery time after colonoscopy

  • Patrick C. Eschenfeldt,

    Roles Conceptualization, Formal analysis, Methodology, Software, Validation, Visualization, Writing – original draft, Writing – review & editing

    Affiliations Institute for Technology Assessment, Massachusetts General Hospital, Boston, MA, United States of America, Gastrointestinal Unit, Massachusetts General Hospital, Boston, MA, United States of America, Harvard Medical School, Boston, MA, United States of America

  • Uri Kartoun,

    Roles Conceptualization, Data curation, Formal analysis, Methodology, Software, Validation, Writing – review & editing

    Affiliation Center for Computational Health, IBM Research, Cambridge, MA, United States of America

  • Curtis R. Heberle,

    Roles Conceptualization, Data curation, Software, Writing – review & editing

    Affiliations Institute for Technology Assessment, Massachusetts General Hospital, Boston, MA, United States of America, Gastrointestinal Unit, Massachusetts General Hospital, Boston, MA, United States of America

  • Chung Yin Kong,

    Roles Conceptualization, Data curation, Formal analysis, Validation, Writing – review & editing

    Affiliations Institute for Technology Assessment, Massachusetts General Hospital, Boston, MA, United States of America, Harvard Medical School, Boston, MA, United States of America

  • Norman S. Nishioka,

    Roles Formal analysis, Validation, Writing – review & editing

    Affiliations Gastrointestinal Unit, Massachusetts General Hospital, Boston, MA, United States of America, Harvard Medical School, Boston, MA, United States of America

  • Kenney Ng,

    Roles Formal analysis, Supervision, Validation, Writing – review & editing

    Affiliation Center for Computational Health, IBM Research, Cambridge, MA, United States of America

  • Sagar Kamarthi,

    Roles Conceptualization, Formal analysis, Methodology, Supervision, Validation, Writing – original draft, Writing – review & editing

    Affiliation Northeastern University College of Engineering, Boston, MA, United States of America

  • Chin Hur

    Roles Conceptualization, Data curation, Formal analysis, Methodology, Supervision, Validation, Writing – original draft, Writing – review & editing

    chur@mgh.harvard.edu

    Affiliations Institute for Technology Assessment, Massachusetts General Hospital, Boston, MA, United States of America, Gastrointestinal Unit, Massachusetts General Hospital, Boston, MA, United States of America, Harvard Medical School, Boston, MA, United States of America

Abstract

Background & aims

A common limiting factor in the throughput of gastrointestinal endoscopy units is the availability of space for patients to recover post-procedure. This study sought to identify predictors of abnormally long recovery time after colonoscopy performed with procedural sedation. In clinical research, this type of study would be performed using only one regression modeling approach. A goal of this study was to apply various “machine learning” techniques to see if better prediction could be achieved.

Methods

Procedural data for 31,442 colonoscopies performed on 29,905 adult patients at Massachusetts General Hospital from 2011 to 2015 were analyzed to identify potential predictors of long recovery times. These data included the identities of hospital personnel, and the initial statistical analysis focused on the impact of these personnel on recovery time via multivariate logistic regression. Secondary analyses included more information on patient vitals both to identify secondary predictors and to predict long recoveries using more complex techniques.

Results

In univariate analysis, the endoscopist, procedure room nurse, recovery room nurse, and surgical technician all showed a statistically significant relationship to long recovery times, with p-value below 0.0001 in all cases. In the multivariate logistic regression, the most significant predictor of a long recovery time was the identity of the recovery room nurse, with the endoscopist also showing a statistically significant relationship with a weaker effect. Complex techniques led to a negligible improvement over simple techniques in prediction of long recovery periods.

Conclusion

The hospital personnel involved in performing a colonoscopy show a strong association with the likelihood of a patient spending an abnormally long time recovering from the procedure, with the most pronounced effect for the nurse in the recovery room. The application of more advanced approaches to improve prediction in this clinical data set only yielded modest improvements.

Introduction

In a gastrointestinal endoscopy unit, a common limiting factor on the number of procedures that can be performed is the availability of space for patients to recover post-procedure. Although most patients recover and are discharged in under 70 minutes, in some cases patients require 100 minutes or more of recovery room time. It is, therefore, of significant interest to understand the factors that contribute to abnormally long recovery times. Possible explanations could include the difficulty of the endoscopy, the amount of sedation used, the duration of the procedure, and the staff involved in the procedure component or recovery portion. Such an understanding could inform procedure planning and point towards interventions which may improve both the patient experience and endoscopic throughput. The aim of this study was to identify predictors of extended recovery time after colonoscopy performed with procedural sedation. The impact of colonoscopy techniques on recovery time has been examined in several randomized controlled trials, particularly comparing different sedation methods [13], and patient characteristics impact the overall patient time commitment for a colonoscopy [4], but the present authors are not aware of previous studies linking colonoscopy recovery time to a wide variety of patient and procedure characteristics. Because studies have identified clinician characteristics and behaviors as significant predictors of patient outcomes in other situations [57], we focus on the identity of the personnel involved in the procedure as a major focus of our exploration.

Along with the identification of factors impacting recovery time, there may also be some utility in designing a system to predict at the end of a colonoscopy whether a particular patient will require an abnormally long recovery time. Such a system could be integrated into a broader operations management scheme for the endoscopy unit to maximize the efficient use of resources. The task of predicting an outcome from data can be approached in a classical statistical way or via a variety of more modern so-called “machine learning” methods. Previous research comparing simpler traditional and more complex machine learning approaches in medical applications has shown mixed results, with simple methods often but not always performing as well as more complex techniques [812]. The aim of this study was to compare various techniques for the prediction of long colonoscopy recovery times.

Materials and methods

Data collection

From 2011 to 2015, the MetaVision system was used to record both procedural and patient data about endoscopies performed at the Massachusetts General Hospital (MGH). The MetaVision system [13] is an anesthesia information management system that automatically records and documents patient vitals from various connected devices and provides an interface for physicians and nurses to enter additional data in real time, including administration of drugs and qualitative assessments of patient state. The system has been used to facilitate a variety of research projects and quality improvement efforts [1418]. Recorded patient data included limited demographic information and vital signs during the procedure. Other information included the names of the physician, nurse, and hospital staff involved in the procedure and the dosages of drugs given to the patient during the procedure. The precise times of events such as the start and end of the procedure, when drugs were administered, and when the patient was discharged were also recorded electronically. The institutional review board of Partners Healthcare approved the use of these data (protocol number 2016P002243), which were collected as part of standard clinical care.

Study population

During the observation window of October 3, 2011, to June 30, 2015, doctors performed 31,852 colonoscopies on adult patients at MGH, and the procedures were recorded in the MetaVision system. The recovery time was defined as the time between the recorded end of the procedure and the time the patient was discharged. Procedures for which an accurate recovery time could not be calculated based on the recorded data (n = 274) and for which the patient was not discharged on the same day that the procedure ended (n = 20) were excluded from analysis. Because standard practice at MGH during the observation window indicated the use of propofol only for colonoscopies performed under general anesthesia, procedures in which propofol was administered (n = 116) were also excluded. The final population analyzed was 31,442 colonoscopies involving 29,905 patients.

Statistical analysis

To determine predictors for unusually long recovery times, the distribution of recovery time in the study population was analyzed. The 80th percentile of recovery time was identified and used to define a long recovery. This definition of a long recovery was motivated by the operational impact of abnormally long recovery times on endoscopy units.

Initial potential predictors were selected to allow investigation of the impact of hospital personnel on the likelihood of a long recovery time. These covariates were the endoscopist who performed the procedure, the nurse in the procedure room, the surgical technician assisting on the procedure, and the nurse in the recovery room. In cases where multiple personnel filled a given role, the one entered into the primary field in the MetaVision database was selected. To determine if any differences between personnel was primarily shown by individual patterns in drug administration, total dosages throughout the procedure of fentanyl, meperidine, midazolam, diphenhydramine, and ondansetron were computed for each procedure. Patient gender, age, and American Society of Anesthesiologists (ASA) classification were included as potential confounders along with the year of the procedure.

For hospital personnel, individuals who did not participate in enough procedures (fewer than 50 for endoscopists and nurses, fewer than 20 for technicians) were grouped together as “other.” Additionally, gastroenterology fellows listed as primary endoscopists were grouped together, with a separate group for fellows who became full-time staff during the observation period. After these consolidations, there were 35 endoscopists, 74 procedure room nurses, 15 technicians, and 97 recovery room nurses. To explore the relationship between each of these groups and recovery time, the mean and median recovery time for each individual were computed, and one-way analysis of variance (ANOVA) was performed to examine the significance of the relationship.

Univariate analyses of all selected variables were performed using the Mann-Whitney test for continuous variables and the Pearson χ2 test for categorical variables. Statistically significant variables with p < 0.05 were then entered into a multivariate logistic regression model. To account for the large number of possible values of personnel variables, individual personnel were sorted by mean recovery time and split into quintiles. These quintiles were entered as categorical variables in the multivariate model. All statistical analysis was performed using R version 3.4 [19].

Secondary factor identification

To identify factors associated with long recovery beyond those discussed above, a larger set of covariates was identified from the MetaVision database. Analysis of these variables was performed independently on subsets of the database split by the quintile of the recovery room nurse. Potential predictors were selected from all variables available in the MetaVision database by a preliminary scan for a significant relationship with long recovery times followed by stepwise logistic regression. Selected covariates included a variety of quantitative and qualitative measurements of the patient’s state during the procedure. Univariate analyses were performed using the procedure described above with statistically significant variables entered into a multivariate logistic regression. The results of these regression models for each quintile of recovery room nurse were compared to identify common trends.

Supplemental prediction models

In addition to the descriptive analysis, several more complex models were built with a specific goal of predicting whether a procedure would result in a long recovery time, even if the model was potentially less interpretable or did not directly identify important predictors. Because of the operational importance of avoiding abnormally long recovery times rather than analyzing variation in shorter times, classification models were built to predict such long times, rather than using regression models to directly predict recovery time itself. These models were trained on a randomly selected subset of 23,582 (75%) of the procedures and tested on the remaining 7,860 (25%). Note that for the predictive models, the personnel quintiles were defined based only on the training set. Models were evaluated by the area under the receiver operating characteristic (ROC) curve (AUC). One of these models was the multivariate logistic regression described above. Other models incorporated more variables from the MetaVision system, including the preliminary findings of the exam, the patient’s heart rate, diastolic and mean blood pressure, and the patient’s observed pain level and level of consciousness at the end of the procedure. These variables were selected from the set of all variables available in the MetaVision database by a two step process: first univariate statistical tests were performed for each variable and those without a significant relationship with long recovery times were discarded, then remaining variables were added one at a time into multivariate logistic regression models with the variable selected at each step determined by the model that achieved the highest AUC on the training set. The final set of variables was chosen to be the smallest set from this sequence for which adding the next variable resulted in a minimal increase in AUC.

This variable set was used to train a variety of models, described below. The selection of models chosen reflects a range of so-called “machine learning” methods with accessible implementations in R. The settings used for these methods generally followed implementation defaults except where intuition or preliminary experimentation on the training data suggested that tuning of parameters would have a significant impact on the performance of the model. For most such parameters cross-validation was used to select optimal values, with cross-validation settings selected to balance model performance and computation time.

Logistic regression.

Along with the multivariate logistic regression on the original variable set used in the descriptive analysis, a standard multivariate logistic regression was performed with the expanded variable set used for other prediction models.

Decision trees.

Three decision tree models were fit. First, using the R package tree [20], a model was fit using the default settings, splitting based on deviance. Then, using the R package rpart [21], a model was fit splitting on Gini impurity with the relative loss for a false negative selected to maximize AUC by 10-fold cross-validation on the training set. This loss weighting was performed to compensate for the imbalanced classes, and the value was selected from the set {0.5, 1, 5, 10, 50}. Cross-validation was performed with the R package caret [22]. Finally, a conditional inference tree model was fit using the default settings for the function ctree in the R package party [23].

Random forest.

Using the R package randomForest [24], a random forest model was fit with 2000 trees and otherwise using default settings. In particular the minimum size for terminal nodes in each tree was one.

Lasso regression.

Lasso regression was performed using the built-in function cv.glmnet from the R package glmnet [25], using 10-fold cross-validation to select the regularization parameter from the candidate sequence {e−10+0.015ii = 0, 1, … , 1000}. Adaptive lasso regression [26] was performed by using cv.glmnet to perform ridge regression to select weights using default cross-validation settings, with constant γ = 1. These weights are then used in another call to cv.glmnet to compute the adaptive lasso model, where 10-fold cross-validation selected the regularization parameter from candidate sequence {e−9+0.019ii = 0, 1, … , 1000}. For both lasso and adaptive lasso, model coefficients were extracted, with confidence intervals generated by bootstrapping, for qualitative assessment of variable importance. All covariates were standardized to mean zero and standard deviation one before fitting the model.

Stepwise logistic regression.

Stepwise logistic models were built using the core R function step, fitting between an empty model and a model including all variables available to other models. Forward, backward, and bidirectional selection were performed, with the latter starting with the empty model.

Neural network.

A fully-connected single-layer feed-forward neural network was built using the R package nnet [27]. This package uses a sigmoid activation function and performs the training optimization via the “BFGS” quasi-Newton method as implemented in the core R function optim. Twice-repeated 5-fold cross-validation maximizing AUC via the R package caret was used to select the number of hidden nodes and decay parameter. The latter parameter penalizes large weights to avoid overfitting the model. The cross-validation selected the number of nodes from {10, 15, 30, 1.5m, 2m} where m is the number of variables in the model (including dummy variables replacing categorical variables) and the decay parameter from {0, 0.1, 5, 10, 100}. To allow the algorithm to run for all tested parameter combinations, the maximum allowed iterations and number of weights were increased to 20,000 and 3,000, respectively. All covariates were scaled and centered to be mean zero and standard deviation one before training the model.

Support vector machine.

A support vector machine with a radial basis kernel function was fit using the R package e1071 [28]. Twice-repeated 10-fold cross-validation minimizing classification error was performed using the e1071 function tune to select the kernel parameter γ from the set {0.001, 1, 10} and cost of constraint violation from the set {10−2, 101.5, 105}. Decision values were used to compute the AUC.

Results

For the 31,442 procedures analyzed in this study, median recovery time was 65 minutes (interquartile range (IQR) 53–80). A long recovery was defined as longer than 85 minutes; 5,718 (18.2%) procedures resulted in a long recovery time. Fig 1 presents a histogram of recovery time.

thumbnail
Fig 1. Histogram of recovery time with cumulative frequency.

Distribution of recovery time among studied population, showing definition of long recovery. For readability, the 71 (1.4%) procedures with recovery time above 200 minutes are excluded from the figure.

https://doi.org/10.1371/journal.pone.0199246.g001

Women were more likely than men to have a long recovery period. There was no difference in the median ages of the patients. Patients with ASA classification 2 were somewhat less likely to have a long recovery time than all other classes or those with no classification entered into the database. Procedures with a long recovery time were more likely to have been performed in the first two years of the study period. This matches an observed trend over time toward shorter recovery time; Fig 2 shows this general change over the study period. All four observed hospital personnel variables showed a significant relationship to whether recovery time was long or not. Total received dosage of all drugs also showed a significant relationship with long recovery times. This relationship appears to be driven by whether a patient received a particular drug more than by the dosage received. Patients with long recovery times were less likely to have received any dosage of fentanyl, but more likely to have received each of the other drugs in this study. Median dosages of drugs, when used at all, were similar between long recovery procedures and others. Note that drug usage patterns changed over the course of the study period; as shown in Fig 3, the percentage of procedures using meperidine decreased over the first year and the percentage using fentanyl increased concurrently reflecting a new recommended policy that was implemented during the study period. Table 1 summarizes univariate analyses.

thumbnail
Fig 2. Recovery time averaged by day.

Daily mean recovery time over the study period with a local regression (LOESS) fitted curve.

https://doi.org/10.1371/journal.pone.0199246.g002

thumbnail
Fig 3. Use of fentanyl and meperidine over time.

Daily percentage of procedures using fentanyl and meperidine over time, with LOESS fitted curves.

https://doi.org/10.1371/journal.pone.0199246.g003

The mean recovery time for individual endoscopists varied by 10 minutes from shortest to longest; 15 minutes for procedure room nurses, 8 minutes for technicians, and 31 minutes for recovery room nurses. The equivalent differences for median recovery time were 11 minutes for endoscopists, 15 minutes for procedure room nurses, 8 minutes for technicians, and 32 minutes for recovery room nurses. Fig 4 summarizes mean recovery time by personnel and similar figures for median recovery time and fraction of procedures with long recovery times are available in S1 and S2 Figs. ANOVA for each of the personnel variables shows that the means vary significantly by individual, with p-value less than 0.0001 in each case.

thumbnail
Fig 4. Recovery time averaged by hospital staff.

Mean recovery time by hospital personnel with 95% confidence interval. Each point represents one individual or the aggregated data of individuals involved in a small number of procedures, as described in the methods section.

https://doi.org/10.1371/journal.pone.0199246.g004

In the multivariate regression model, the first quintile of each personnel variable, that is the quintile of individuals with the shortest average recovery time, was used as the baseline. For other categorical variables, the baseline was female gender, ASA class 1, and procedure year 2012. In this regression analysis, gender, age, years of service 2014 and 2015 were significant at a p-value of 0.0001 level, as were meperidine, diphenydramine, and ondansetron. All quintiles of endoscopist and recovery nurse were significant at a p-value of 0.0001 level. The odds ratios for all quintiles of recovery nurse are larger than for any quintile of endoscopist (or other personnel), and the odds ratios for the top two quintiles of recovery nurse are more than twice those associated with any other personnel. Drug dosages all have small odds ratios relative to recovery nurse and endoscopist. Table 2 summarizes multivariate regression results.

For each quintile of recovery room nurse, variables were selected from a broad set of quantitative and qualitative information recorded during the procedure. Univariate analysis selected 23 covariates for the first quintile, that is the 20% of nurses with the shortest average recovery time. For the second quintile, 30 variables were selected, 18 for the third quintile, 24 for the fourth, and 24 for the fifth quintile. In the multivariate regression models, 4 covariates had a p-value below 0.05 for all quintiles: patient consciousness at the end of the procedure, dosage of diphenhydramine and ondansetron, and endoscopist in the fifth quintile (with the first as the reference class). Of these covariates, patient consciousness displayed the greatest effect, with drowsy patients associated with approximately 1.5–2 times the number of long recoveries of alert patients. Some covariates were statistically significant predictors with a large effect for a subset of recovery nurse quintiles; patient pain level at the end of the procedure rated as anything other than no pain had odds ratio 6.92 (2.90, 15.58) for the first quintile, 6.54 (3.23, 13.31) for the second quintile, 3.30 (1.61, 6.56) for the third quintile, and 2.01 (1.04, 3.77) for the fourth quintile, but was not statistically significant for the fifth quintile with odds ratio 1.53 (0.83, 2.77) and p-value 0.16. All odds ratios for the multivariate logistic regressions on each nurse subset set can be found in S3 Table.

Predictive model comparison

Among all the predictive models, the neural network performed the best, achieving an AUC of 0.723 (0.710, 0.737) on the test set, compared to 0.722 (0.708, 0.736) for the multivariate logistic regression on the expanded variable set and 0.697 (0.682, 0.712) for the multivariate logistic regression on the original variable set described in Table 2. The single layer neural network chosen by cross-validation had 66 nodes in the hidden layer and regularization decay parameter equal to 10. Other models had comparable or worse performance on the test set. All model results are summarized in Table 3.

Table 3 includes performance on the training set as well as the test set; the former is included because a large gap between training and test performance can be indicative of overfitting for some models. For most models, the observed gap is relatively small, with the exception of the support vector machine and the random forest. Note, however, that perfect accuracy on the training set is expected for the random forest model because each tree is grown to a maximal size that will have only one training example per terminal node and thus will correctly classify any example which was selected by the bootstrapping for that tree. As more than half of the bootstrap samples will contain any given training example, all training examples will be properly classified by more than half of the trees and therefore properly classified by the forest. The support vector machine may be overfit to the training data because it was the most computationally intensive of our models and thus cross-validation selected from only a small subset of parameter values.

Among the variables added for the predictive models, the patient’s pain level at the end of the procedure has the largest effect in the logistic regression, with any pain level of at least 1 out of 10 having an odds ratio of 2.86 (2.01, 4.07) versus a pain level of zero in the trained logistic regression. Note that recovery room nurse remains the largest effect overall, with the fourth quintile vs. the first having odds ratio of 3.07 (2.68, 3.53) and the fifth vs. the first having odds ratio 5.41 (4.72, 6.22). Patient consciousness at the end of the procedure also has a strong association, with drowsy patients having an odds ratio of 1.71 (1.56, 1.88) versus alert patients and patients requiring stronger stimulation to arouse having an odds ratio of 2.22 (1.75, 2.81). Patient heart rate and blood pressure also show a statistically significant association with extended recovery times. All odds ratios for the multivariate logistic regression on the expanded variable set can be found in S2 Table. The lasso and adaptive lasso regressions led to similar qualitative results, with recovery room nurse still having the largest effect and pain and consciousness variables also showing a strong association.

Discussion

This retrospective cohort study of colonoscopies performed at MGH has identified several factors that are associated with undesirable long recovery times. One factor was the date of the procedure, as there was a general trend over time for recovery times to become shorter and long recoveries to become rarer. We believe this change to be at least in part caused by specific efforts of the endoscopy unit at MGH to increase throughput. These efforts included the director of endoscopy meeting with the endoscopy unit staff to highlight these goals a total of three times as well as the recommended change from meperidine to fentanyl for the majority of cases.

We also observed that women were significantly more likely than men to experience a long recovery time. While we were unable to perform an extensive evaluation of this effect, we do observe that gender was a significant predictor in the multivariate logistic regression on the expanded variable set described in S2 Table. This finding could be explored in future analyses.

Procedure characteristics associated with long recoveries included some non- intervenable patient characteristics such as gender and age, but some potentially actionable factors were also identified even after accounting for basic patient characteristics and the previously mentioned general trend over time. The most directly modifiable predictors with a statistically significant association with long recovery times were drug dosages, with patients receiving larger dosages of all drugs being consistently slightly more likely to require a long recovery time. This effect is observed both in the primary model and in the expanded model which adjusts for patient consciousness and pain at the end of the procedure, suggesting that the increased likelihood of long recovery from increased drug dosage is not entirely caused by the effect of drug dosage on patient state. This suggests that decreasing drug dosages may lead to a small decrease in long recovery times, but this analysis cannot and does not fully account for the impact of such dosage changes on patients, including effects which may counter the recovery time advantages of lower dosages.

While the drug dosage effect was statistically significant, the identity of the endoscopist performing the procedure and the nurse in the recovery room both showed a much larger effect. Recovery room nurses with the longest average recovery times were associated with 5 times as many long recovery procedures as those with the shortest average recovery times. The drastically greater variation between recovery room nurses than between other personnel suggests that interventions targeted at recovery room nurses may be more effective than those focusing on endoscopists’ behavior. The data used in this study are not adequate for informing most such interventions, as they do not capture nurse behavior in the recovery room or any nurse characteristics.

While the subset analysis performed by grouping procedures together by quintiles of recovery room nurse also does not provide insight into nurse behavior, it may demonstrate some interactions between nurses and other factors. For example, the effect of the most extreme endoscopists is relatively stable between nurse quintiles, suggesting this effect acts independently from the nurse effect. One effect that behaves differently is patient pain, which is statistically significant for the lower four quintiles of recovery room nurses but not for the fifth quintile. One possible explanation for this effect is that most nurses respond to patients who have been in pain by allowing or encouraging a longer recovery time but those in the fifth quintile are generally so much more likely to oversee longer recovery times that the presence or absence of pain doesn’t have an impact on their behavior. Some sort of direct observation or significantly more detailed data collection would likely be necessary to confirm any speculation on this question, or any similar questions about the relationship between nurse identity and long recoveries.

As we stated above, however, the dataset used in this study does contain additional procedural and patient data that may be useful for simple prediction of whether a patient leaving a completed procedure will experience a long recovery time. Our predictive models show that the most useful additional information for such predictions relates to the state of the patient at the end of the procedure; for example if they are in pain or are less than fully conscious. A prediction tool built from these data may be of some operational interest for endoscopic facilities. Our analysis applied various models to optimize prediction and demonstrated that there may be some advantage, albeit a small one, to complex “machine learning” techniques. However, using our data set, the much less computationally intensive multivariate logistic regression was essentially as effective as the neural network model. That the logistic regression and neural network models performed nearly identically when provided with the same features perhaps suggests that the relationships between those features in this dataset are well-modeled by the assumptions of logistic regression, or that the increased flexibility of the neural network does not capture any more complex relationships.

Future work

The most immediate avenue for future work beyond this analysis is to further clarify and understand the impact of recovery room nurses on long recovery times by more directly studying nurse behavior and identity. If a sufficiently detailed data set could be found this could be another retrospective data analysis, but more likely it would involve direct observation of nurses, whether as a research study or quality improvement endeavor at an endoscopy unit. Significant efforts to eliminate long recoveries should first identify recovery room nurses associated with long and short recovery times then analyze the characteristics and behaviors of those nurses to determine more specific causes of long recoveries. If differences in behavior can be correlated with recovery times and modifying or standardizing such behaviors is deemed appropriate for patient care, many long recovery times can potentially be eliminated.

Another potential avenue for future work is to perform an analysis similar to this one focusing on patients who undergo endoscopy wholly without sedation, to see if the factors impacting their recovery time are different. Given appropriate data, similar analyses could also be performed for any procedures where recovery time is an outcome of interest.

Conclusion

In summary, we present the results of an analysis that used both more traditional biostatistical techniques and advanced machine learning methods to identify factors associated with a long post-procedure recovery time. Our study identifies potential factors, including potentially modifiable ones, that could aid in improving endoscopy unit efficiency. Our analysis also demonstrates that, at least with our data set, applying complex techniques instead of simpler and more traditional logistic regression did not provide a significant improvement in predicting long recovery times.

Supporting information

S1 Table. Personnel quintiles by recovery time.

Univariate analysis of the personnel quintile variables used in the multivariate regression.

https://doi.org/10.1371/journal.pone.0199246.s001

(PDF)

S2 Table. Multivariate regression results (expanded variable set).

Results of multivariate logistic regression on the expanded variable set.

https://doi.org/10.1371/journal.pone.0199246.s002

(PDF)

S3 Table. Multivariate regression results by RN quintile.

Results of multivariate logistic regression models for each quintile of recovery room nurse.

https://doi.org/10.1371/journal.pone.0199246.s003

(PDF)

S1 Fig. Recovery time averaged by hospital staff.

Median recovery time by hospital personnel with interquartile range. Each point represents one individual or the aggregated data of individuals involved in a small number of procedures, as described in the methods section.

https://doi.org/10.1371/journal.pone.0199246.s004

(PDF)

S2 Fig. Percentage of long recoveries by hospital staff.

Percentage of procedures with recovery time greater than 85 minutes by hospital personnel with Wilson confidence interval. Each point represents one individual or the aggregated data of individuals involved in a small number of procedures, as described in the methods section.

https://doi.org/10.1371/journal.pone.0199246.s005

(PDF)

References

  1. 1. Ho WM, Yen CM, Lan CH, Lin CY, Yong SB, Hwang KL, et al. Comparison between the recovery time of alfentanil and fentanyl in balanced propofol sedation for gastrointestinal and colonoscopy: a prospective, randomized study. BMC Gastroenterology. 2012;12:164. pmid:23170921
  2. 2. Lazaraki G, Kountouras J, Metallidis S, Dokas S, Bakaloudis T, Chatzopoulos D, et al. Single use of fentanyl in colonoscopy is safe and effective and significantly shortens recovery time. Surgical Endoscopy. 2007;21(9):1631–1636. pmid:17762959
  3. 3. Sipe BW, Rex DK, Latinovich D, Overley C, Kinser K, Bratcher L, et al. Propofol versus midazolam/meperidine for outpatient colonoscopy: administration by nurses supervised by endoscopists. Gastrointestinal Endoscopy. 2002;55(7):815–825. pmid:12024134
  4. 4. Jonas DE, Russell LB, Sandler RS, Chou J, Pignone M. Patient time requirements for screening colonoscopy. The American Journal Of Gastroenterology. 2007;102(11):2401–2410. pmid:17608779
  5. 5. Beam AL, Kartoun U, Pai JK, Chatterjee AK, Fitzgerald TP, Shaw SY, et al. Predictive Modeling of Physician-Patient Dynamics That Influence Sleep Medication Prescriptions and Clinical Decision-Making. Scientific Reports. 2017;7:42282. pmid:28181568
  6. 6. Tsugawa Y, Newhouse JP, Zaslavsky AM, Blumenthal DM, Jena AB. Physician age and outcomes in elderly patients in hospital in the US: observational study. BMJ. 2017;357. pmid:28512089
  7. 7. Burns LR, Wholey DR. The Effects of Patient, Hospital, and Physician Characteristics on Length of Stay and Mortality. Medical Care. 1991;29(3):251–271. pmid:1997754
  8. 8. Austin PC, Tu JV, Ho JE, Levy D, Lee DS. Using methods from the data-mining and machine-learning literature for disease classification and prediction: a case study examining classification of heart failure subtypes. Journal Of Clinical Epidemiology. 2013;66(4):398–407. pmid:23384592
  9. 9. Lin CC, Ou YK, Chen SH, Liu YC, Lin J. Comparison of artificial neural network and logistic regression models for predicting mortality in elderly patients with hip fracture. Injury. 2010;41(8):869–873. pmid:20494353
  10. 10. Churpek MM, Yuen TC, Winslow C, Meltzer DO, Kattan MW, Edelson DP. Multicenter Comparison of Machine Learning Methods and Conventional Regression for Predicting Clinical Deterioration on the Wards. Critical care medicine. 2016;44(2):368–374. pmid:26771782
  11. 11. Wu J, Roy J, Stewart WF. Prediction Modeling Using EHR Data: Challenges, Strategies, and a Comparison of Machine Learning Approaches. Medical Care. 2010;48(6):S106. pmid:20473190
  12. 12. Dreiseitl S, Ohno-Machado L. Logistic regression and artificial neural network classification models: a methodology review. Journal of Biomedical Informatics. 2002;35(5):352–359. pmid:12968784
  13. 13. iMDsoft. MetaVision Anaesthesia;. Available from: http://www.imd-soft.com/about-us.
  14. 14. Ehrenfeld JM, Henneman JP, Peterfreund RA, Sheehan TD, Xue F, Spring S, et al. Ongoing Professional Performance Evaluation (OPPE) Using Automatically Captured Electronic Anesthesia Data. Joint Commission Journal on Quality and Patient Safety;38(2):73–80. pmid:22372254
  15. 15. Tambuyzer T, Guiza F, Boonen E, Meersseman P, Vervenne H, Hansen TK, et al. Heart rate time series characteristics for early detection of infections in critically ill patients. Journal of Clinical Monitoring and Computing. 2017;31(2):407–415. pmid:27039298
  16. 16. Veelo DP, van Berge Henegouwen MI, Ouwehand KS, Geerts BF, Anderegg MCJ, van Dieren S, et al. Effect of goal-directed therapy on outcome after esophageal surgery: A quality improvement study. PLOS ONE. 2017;12(3):e0172806. pmid:28253353
  17. 17. Wanderer JP, Charnin J, Driscoll WD, Bailin MT, Baker K. Decision Support Using Anesthesia Information Management System Records and Accreditation Council for Graduate Medical Education Case Logs for Resident Operating Room Assignments. Anesthesia & Analgesia. 2013;117(2):494–499.
  18. 18. Wanderer JP, Anderson-Dam J, Levine W, Bittner EA. Development and Validation of an Intraoperative Predictive Model for Unplanned Postoperative Intensive Care. Anesthesiology. 2013;119(3):516–524. pmid:23756454
  19. 19. R Core Team. R: A Language and Environment for Statistical Computing. 2017;.
  20. 20. Ripley B. tree: Classification and Regression Trees. 2016;.
  21. 21. Therneau T, Atkinson B, Ripley B. rpart: Recursive Partitioning and Regression Trees. 2017;.
  22. 22. Kuhn M. Building Predictive Models in R Using the caret Package. Journal of Statistical Software, Articles. 2008;28(5):1–26.
  23. 23. Hothorn T, Hornik K, Zeileis A. Unbiased Recursive Partitioning: A Conditional Inference Framework. Journal of Computational and Graphical Statistics. 2006;15(3):651–674.
  24. 24. Liaw A, Wiener M. Classification and Regression by randomForest. R News. 2002;2(3):18–22.
  25. 25. Friedman J, Hastie T, Tibshirani R. Regularization Paths for Generalized Linear Models via Coordinate Descent. Journal of Statistical Software. 2010;33(1):1–22. pmid:20808728
  26. 26. Zou H. The adaptive lasso and its oracle properties. Journal of the American Statistical Association. 2006;101(476):1418–1429.
  27. 27. Venables WN, Ripley BD. Modern Applied Statistics with S. 4th ed. New York: Springer; 2002. Available from: http://www.stats.ox.ac.uk/pub/MASS4.
  28. 28. Meyer D, Dimitriadou E, Hornik K, Weingessel A, Leisch F. e1071: Misc Functions of the Department of Statistics, Probability Theory Group (Formerly: E1071), TU Wien. 2017;.