Next Article in Journal
The Impact of a New Arterial Intravascular Pump on Aorta Hemodynamic Surrounding: A Numerical Study
Next Article in Special Issue
Classification of Autism and Control Gait in Children Using Multisegment Foot Kinematic Features
Previous Article in Journal
Biomolecular Pathways of Cryoinjuries in Low-Temperature Storage for Mammalian Specimens
Previous Article in Special Issue
Predicting the Level of Respiratory Support in COVID-19 Patients Using Machine Learning
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Implementation of Predictive Algorithms for the Study of the Endarterectomy LOS

by
Teresa Angela Trunfio
1,*,
Anna Borrelli
2 and
Giovanni Improta
3,4
1
Department of Advanced Biomedical Sciences, University of Naples “Federico II”, 80131 Naples, Italy
2
“San Giovanni di Dio e Ruggi d’Aragona” University Hospital, 84121 Salerno, Italy
3
Department of Public Health, University of Naples “Federico II”, 80131 Naples, Italy
4
Interdepartmental Center for Research in Healthcare Management and Innovation in Healthcare (CIRMIS), University of Naples “Federico II”, 80131 Naples, Italy
*
Author to whom correspondence should be addressed.
Bioengineering 2022, 9(10), 546; https://doi.org/10.3390/bioengineering9100546
Submission received: 5 September 2022 / Revised: 4 October 2022 / Accepted: 7 October 2022 / Published: 12 October 2022
(This article belongs to the Special Issue Machine Learning for Biomedical Applications)

Abstract

:
Background: In recent years, the length of hospital stay (LOS) following endarterectomy has decreased significantly from 4 days to 1 day. LOS is influenced by several common complications and factors that can adversely affect the patient’s health and may vary from one healthcare facility to another. The aim of this work is to develop a forecasting model of the LOS value to investigate the main factors affecting LOS in order to save healthcare cost and improve management. Methods: We used different regression and machine learning models to predict the LOS value based on the clinical and organizational data of patients undergoing endarterectomy. Data were obtained from the discharge forms of the “San Giovanni di Dio e Ruggi d’Aragona” University Hospital (Salerno, Italy). R2 goodness of fit and the results in terms of accuracy, precision, recall and F1-score were used to compare the performance of various algorithms. Results: Before implementing the models, the preliminary correlation study showed that LOS was more dependent on the type of endarterectomy performed. Among the regression algorithms, the best was the multiple linear regression model with an R2 value of 0.854, while among the classification algorithms for LOS divided into classes, the best was decision tree, with an accuracy of 80%. The best performance was obtained in the third class, which identifies patients with prolonged LOS, with a precision of 95%. Among the independent variables, the most influential on LOS was type of endarterectomy, followed by diabetes and kidney disorders. Conclusion: The resulting forecast model demonstrates its effectiveness in predicting the value of LOS that could be used to improve the endarterectomy surgery planning.

1. Introduction

In recent years, public healthcare spending in Italy has increased significantly, reaching EUR 117 billion in 2019 [1]. For this reason, healthcare facilities have reduced hospital costs, which to date account for one-third of healthcare costs. Today, cost-effectiveness indicators play a significant role in the management and organization of care programs [2]. For process optimization, several techniques already popular in other settings have been implemented in healthcare sector [3,4,5,6]. Patient length of stay (LOS) is a significant factor contributing to healthcare costs; in fact, a short LOS is directly related to reduced costs [7].
The literature reports that the evaluation of LOS through advanced analytical techniques and artificial intelligence algorithms is the subject of numerous studies [8,9,10,11,12]. History has verified that some populations with high-grade carotid stenosis are at high risk of subsequent stroke [13]. Currently, vascular surgeons are aware of the influence of surgical planning on resource and cost due to the growing focus on the efficiency of medical procedures [14].
Different listed research studies [15,16,17,18] have validated the ability of endarterectomy to prevent stroke in both symptomatic and asymptomatic patients. As its efficacy in stroke prevention has been demonstrated, the number of such procedures could increase dramatically [19], where a standardized procedure concerns the removal of the accumulation of atheromatous plaque from the walls of an artery to reduce the long-term risk of stroke [16]. However, economic evaluations of this procedure, particularly of the postoperative phase, have not yet been fully addressed [20,21] and require further investigation into the factors that influence LOS after endarterectomy surgery [22]. In fact, a postoperative LOS of 2–4 days or more is generally associated with particular complications caused by the patient’s health condition; although the obvious drawback is that a 1-day LOS is often not achieved. Patients with complications cause financial loss to healthcare facilities due to the longer post-operative time and the greater healthcare expenditure [23]. Understanding the regulatory and control variables that influence the duration of postoperative LOS can be a strategy to facilitate the reduction of healthcare costs, although they vary according to the patient’s age, sex and comorbidities [21]. Identifying the factors that cause prolonged LOS is essential to improve the patient’s condition and reduce healthcare costs [22,24,25]. Several studies report advanced processing of cardiac data for diagnostic purposes [26,27,28,29,30,31] or to support the monitoring process [32,33]. The aim of the present work is to determine the factors associated with prolonged hospitalization following endarterectomy, using the clinical and organizational data collected at the “San Giovanni di Dio e Ruggi d’Aragona” University Hospital. In this study, we design a machine learning (ML)-based model for predicting LOS with the purpose of optimizing the LOS of patients undergoing endarterectomy. In addition, we evaluate and compare the effectiveness of different ML models in terms of different measures (e.g., R2, accuracy, precision, F-measure) to validate or reject the results obtained in our previous work [34], which focused on a subset of ML models for a limited number of years and variables without implementing any optimization process or studying the impact that selected independent variables have on LOS. With this study, it is possible to both understand the risk factors for prolonged LOS and build models that can predict these cases.

2. Materials and Methods

The Complex Operative Unit (C.O.U.) of Cardiology of the “San Giovanni di Dio e Ruggi D’Aragona” University Hospital made it possible to carry out this study by providing the requested data. Specifically, the dataset was extracted from the hospital’s information system and contains 2243 records regarding patients who underwent endarterectomy surgery (ICD-9 codes equal to 38.1x) from 2010 to 2020. The information collected for each patient was: gender, age, main and secondary diagnoses, year of discharge, date of admission, date of discharge and date of surgical treatment. The dataset was prepared to make it compatible with the processing of ML algorithms. Subsequent regression and classification analysis was performed by considering the following as variables:
  • Gender (male/female);
  • Age;
  • Hypertension (yes/no);
  • Diabetes (yes/no);
  • Previous heart attack (yes/no);
  • Embolism (yes/no);
  • Hyperlipidaemia (yes/no);
  • Respiratory system disorders (yes/no);
  • Obesity (yes/no);
  • Kidney disorders (yes/no);
  • Cardiomyopathy (yes/no);
  • Rhythm abnormalities (yes/no);
  • Anemia (yes/no);
  • Personal history of allergies (yes/no);
  • Pre-operative LOS;
  • Type of endarterectomy (Indicates on which vessels the endarterectomy was performed: 1, vessels of the head and neck; 2, upper limb vessels; 3, aorta; and 4, lower limb vessels).
With this information, the regression and classification algorithms were applied to predict the total LOS. Figure 1 shows the distribution of the dichotomous variables, where 1/Yes indicates that comorbidity is present between the patient’s primary and secondary diagnoses while 0/No indicates that the patient has no such disorder.
For the variable year of discharge, the number of discharges for each year is shown in Table 1.
From the data shown in Table 1, it can be seen that with the exception of the year 2010, where the low number of cases was due to the initial adoption of the software, the lowest number of discharges occurred in 2020 due to the spread of the COVID-19 pandemic. Finally, the distribution according to the variable type of endarterectomy is shown in Table 2.
Table 2 shows that the most performed procedure was the procedure involving the head and neck vessels, followed by the procedure involving the lower limbs.
For continuous variables, the box plots are shown in Figure 2.
Google Colaboratory (Colab) Cloud Platform was used to implement regression and ML algorithms.

2.1. Regression and Machine Learning Algorithms

The purpose of this section is to study different regression and classification models to predict LOS value. Gender, age, hypertension, diabetes, previous heart attack, embolism, hyperlipidaemia, respiratory system disorders, obesity, kidney disorders, cardiomyopathy, rhythm abnormalities, anemia, allergies, pre-operative LOS and type of endarterectomy were used as input variables for the algorithms to predict the subjects’ LOS. Random forest (RF), multilayer perceptron (MLP), naïve Bayes (NB), support vector machine (SVM) and decision tree (DT) were the five different classification methods used. In particular, we chose these models because they are the most widely used in ML benchmark designs [35]. Next, the regression algorithms were implemented. In addition to multiple linear regression (MLR), random forest (RF) and decision tree (DT) were also used as regression algorithms.
The choice of these methods was motivated primarily by the desire to improve code quality and the performance of learning operations on the dataset. The classifiers used were all from the scikit-learn library, which is a ML library. Data mining methods available with significantly different architectures were chosen that allowed for a tuning operation of the parameters of the classifiers.
The dataset was randomly divided into two sections to assess the goodness of models and the accuracy value achieved, with the training data collecting 80% of the total data and the test data collecting the remaining 20%. The training phase was performed on the training dataset, while the testing phase was performed on the test set. Each model assigned a value to each input sample based on the pattern learned during the training phase.

2.2. Parameter Optimization and Cross-Validation for Classification Algorithms

The careful adjustment of parameters was made according to the individual properties of each classifier and the goodness of fit of the resulting model was evaluated. Based on its characteristics, each algorithm had appropriate parameters to be set. The infrastructure provided by scikit-learn was used to improve hyperparameters of the algorithms.
GridSearchCV was supported to determine the best model or parameters for a specific task. In particular, the estimator and the param_grid consisting of the name of the specific hyperparameter for that estimator, and the range of values within which it should be varied, were given as the input. Table 3 shows the arbitrarily selected values for each algorithm.
The exact distribution of the dataset between training and test data could influence the accuracy value reached by each classifier. The value recorded may have been determined by chance and thus is not indicative of the model’s level of quality. To ensure that the accuracy value was not erratic, but rather the accuracy value reached by the classifier, ten-fold cross-validation was used.
To begin, a single data pair (training, test) was constructed, divided into two parts using a training ratio parameter, and the classifier was applied. The dataset was then separated into ten folds using the CrossValidator tool, which were used as independent datasets for training and testing (cv = 10 partitions of data equal in size to 10 instances of learning, using 9 for training and 1 for testing). CrossValidator calculates the average evaluation metric for the models built by fitting the estimator to the 10 pairs of separate datasets (training, test) to evaluate a particular set of parameters. CrossValidator finally refits the estimator using the best set of parameters and the entire dataset to obtain the best output.

2.3. Voting Technique

Each classifier has a higher level of accuracy in discriminating LOS than the others. Therefore, once the five classifiers had issued their predictions, a voting classifier (VC) used them to determine the majority class to assign to the tuple. For best results, the VC employed an ensemble technique based on majority policy. Once the predictions of the five classifiers have been gathered, the VC must use them to determine the majority class to assign to the tuple. Indeed, the VC made a prediction relating to the option that received more than half of the votes, assigning each sample the value expected by at least three of the classifiers.
There are two different types of VCs. Hard VCs classify input data according to the mode of all predictions by various classifiers, while soft VCs rank them according to probability. For the hard type, in determining the majority vote, it is possible to use constant weights or to assign different weights to the various classifiers. One way to determine these weights is to use the target metric, which in this case was accuracy.

3. Results

Before implementing the algorithms, a correlation study was carried out to investigate the relationship between the dependent and independent variables included in the dataset. Using the Python Data Analysis Library “Pandas,” Pearson’s correlation was implemented to calculate the pairwise correlation of columns, excluding NA/null values, of all variables presented. The result is shown in Figure 3.
Among the variables, with the exception of pre-operative LOS included in LOS by definition, it was the type of endarterectomy that had the highest correlation with LOS. The highest correlation coefficient of 0.63 was recorded between cardiomyopathy and previous heart attack.
The purpose of this paper is to identify the regression and classification algorithm to predict total LOS by achieving better results. First, regression models were implemented. Table 4 shows the performance of each model.
Among the algorithms, the best was the MLR model, with an R2 value greater than 0.8. Table 5 shows the parameters of the MLR model obtained using IBM SPSS Statistical Software v. 27.
Among the coefficients, the highest positive value was associated with the type of endarterectomy, followed by diabetes and kidney disorders. Finally, Figure 4 shows the difference, in graphical form, between the prediction (in red) and the actual value (in blue).
Next, the classification algorithms were implemented. To do this, the initially continuous LOS variable was divided into three groups as below:
  • Group 0: LOS ≤ 5;
  • Group 1: 5 < LOS ≤ 7;
  • Group 2: LOS > 7.
These values were derived in order to divide the dataset equally and facilitate the classification process. The baseline characteristics of the three groups are shown in Table 6.
The table shows that Group 2 was consisted of patients with diabetes, embolism and rhythm alteration, and most of those undergoing endarterectomy on lower extremity vessels.
We then proceeded to implement the classification algorithms. The accuracy of each algorithm is after cross-validation. In ML, accuracy is defined as the ratio of correct predictions to the number of data in the test set. These values, with the addition of the optimal parameters, are shown in Table 7.
Among the algorithms, the best performance was obtained with DT. Table 8 shows the complete metrics of this algorithm.
Precision is the ratio of correct predictions to total predictions for a given class, while recall (sensitivity) is the fraction between correct predictions for a given class and the total of cases in which it occurs. Accuracy reached a value maximum of 80%, while the highest value of precision was 95% in the third class. This high performance of the last class proves to be a strategic note because it allows us to derive more information on the most critical conditions characterized by prolonged LOS. The ROC curves for DT are reported in Figure 5.
The macro-average ROC curve area was equal to 0.85. Lastly, feature importance permutation was implemented to assess which independent variables most influenced the model. This procedure effectively breaks the link that exists between one of the independent variables and the dependent variable in order to identify how much the model depends on that particular feature. The importance of a feature was determined by evaluating how a model’s reference score (such as accuracy) changes using a corrupted version of the data on that specific variable. Figure 6 shows the importance ranking for DT.
As expected, pre-operative LOS was the variable that significantly affected total LOS, followed by type of endarterectomy and year of discharge. Combining the estimators together, using a ‘hard’ voting technique, an accuracy of 79% was obtained. Through a majority vote, a slightly lower accuracy was produced than the vote obtained from DT alone, which can be attributed to the fact that more classifiers misclassify the same instance than DT. Using the weights determined based on the level of accuracy, the model improves from a value of 0.795 to 0.797 approaching the expected value.
Having identified DT with the best classifier, it is possible to create a form on Google Colab with which healthcare personnel can enter input parameters and obtain the predicted total LOS. Figure 7 shows an example of a real case with a total LOS of 4 days.

4. Discussion

Endarterectomy is a high-efficiency surgical treatment for stroke prevention that is becoming increasingly popular. Inpatient costs, on the other hand, are rising at a similar rate. Because LOS is such an important factor in the cost of endarterectomy, predicting this metric for patients can be a useful tool to prioritize quality improvement efforts and prepare sufficient resources.
In this study, the data of 2243 patients who underwent endarterectomy were collected at the Complex Operative Unit (C.O.U.) of Cardiology of the “San Giovanni di Dio e Ruggi D’Aragona” University Hospital of Salerno (Italy). Three different regression models and five different classification algorithms were performed to predict LOS considering different inputs, i.e., gender, age, hypertension, diabetes, previous heart attack, embolism, occlusion or stenosis, atherosclerosis, hyperlipidaemia, respiratory system disorders, obesity, kidney disorders, cardiomyopathy, rhythm abnormalities, anemia, allergies, pre-operative LOS, type of endarterectomy, and then compered their evaluation metrics.
Compared with the short paper, which analysed a subset of this dataset with a reduced number of variables, RF was not confirmed as the best algorithm, achieving generally lower accuracy performance [34]. The use of ML to predict total in-hospital LOS for medical patients has been assessed by several studies with different methodologies and results [36]. Examining the variables that influence LOS, Rodd et al. [26] show that diabetes mellitus is also a predictive factor in their study. In contrast to our study, Hernandez et al. [22] show how female sex is associated with prolonged LOS, but both highlight how there is no relationship with factors such as myocardial infarction or atrial fibrillation. Scala et al. [37], on the other hand, demonstrate how preoperative hospital stay is a strong predictor, partly because it is included in total LOS by definition. The type of endarterectomy, as evidenced by our study, also significantly influences LOS. Pollard et al. [38] mainly show the impact that a preliminary outpatient evaluation can have on preoperative LOS, but they also show the substantial differences between the lower extremity and carotid procedures. Finally, renal diseases, especially chronic renal failure, have been the subject of several studies. Sidawy et al. [39] highlight the importance, for these patients, of careful preoperative screening for possible cardiologic or pulmonary complications that could significantly affect LOS.
In the field of cardiology, several studies have been conducted to investigate the impact of patients’ clinical and demographic variables on LOS [40]. For example, Daghistani et al. [41] developed an application very similar to that discussed in this study, including several cardiology procedures in a smaller number of years of observation and analysis models. Other studies, however, are limited to the use of statistical analysis [19] or exclusively regression models [42] although on a larger number of clinical variables using medical records as a source. In addition, the use of alternative methods, such as carotid artery stenting (CAS), not considered here, is analysed. CAS is a less invasive procedure conducted under local anesthesia, less affected by the comorbidities of the patient, who is usually discharged the next day [43]. Randomized studies have shown that CAS has a slightly higher cost, however is acceptable by cost-effectiveness standards, and is associated with a higher risk of periprocedural stroke or death than endoarterectomy. This additional risk is related to an increase in nondisabling strokes occurring in people older than 70 years [44,45].
The strength of this study is that it is a large-scale analysis involving a considerable number of years of observation and variables, being able to compare the results of different ML algorithms. The high performance of classification models on the class with prolonged LOS demonstrates the benefits that a healthcare facility can gain from this type of implementation. The clinical implications are related not only to a field implementation of the models that could lead to more agile healthcare programming and planning, but also for a more in-depth study of the procedure under investigation. Identifying which variables most influence LOS could help healthcare management to identify possible risk factors or for the identification of protocols to be adopted on specific categories of patients.
The limitations of this work, as already anticipated, are mainly related to the source of the data. It was not possible to include clinical factors or to characterize in detail the degree of complexity of the diseases considered. In addition, the impact on the total LOS of any other procedures delivered during the same hospitalization and the effects caused by the COVID-19 pandemic were not considered. Finally, it should be pointed out that although our results are in line with what can be found in the literature, the fact that it is a single-center study limits the generalization of results, which could depend on factors related to the organization of the hospital and the surgeons performing the procedure.

5. Conclusions

Hospitals are significantly reducing costs, while public health spending in Italy has increased significantly. The length of stay (LOS) is a major factor in calculating public expenditure. In recent years, LOS after endarterectomy has increased significantly, causing an increase in public spending. For this reason, the present study was conducted to predict LOS using different machine learning algorithms. By comparing these algorithms, the one that can most accurately predict LOS can be identified.
Future directions include expanded data collection to increase the number of predictors and the overall dataset size in order to achieve a more accurate and efficient prediction model.

Author Contributions

Conceptualization, A.B. and G.I.; methodology, T.A.T.; validation, A.B. and G.I.; formal analysis, T.A.T.; investigation, T.A.T.; resources, A.B. and G.I.; data curation, T.A.T.; writing—original draft preparation, T.A.T.; writing—review and editing, A.B. and G.I.; visualization, T.A.T.; supervision, A.B. and G.I.; project administration, A.B. and G.I. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

In compliance with the Declaration of Helsinki and with the Italian Legislative Decree 211/2003, implementation of the 2001/20/CE directive. Furthermore, in compliance with the regulations of the Italian National Institute of Health, our study is not reported among those needing assessment by the Ethical Committee of the Italian National Institute of Health.

Informed Consent Statement

Since no patients/children were involved in the study, the signed informed consent form and ethical approval are not mandatory for these type of studies.

Data Availability Statement

The datasets generated and/or analysed during the current study are not publicly available for privacy reasons but are available from the corresponding author on reasonable request.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

LOSlength of stay
MLmachine learning
MLRmultiple linear regression
DTdecision tree
RFrandom forest
SVMsupport vector machine
MLPmultilayer perception
NBnaive Bayes
VCvoting classifier

References

  1. Italian Ministry of Economy and Finance, General Accounting Office. Rapporto N. 7: Il Monitoraggio della Spesa Sanitaria; Italian Ministry of Economy and Finance: Roma, Italy, 2020.
  2. Subak, L.L.; Caughey, A.B. measuring cost-effectiveness of surgical procedures. Clin. Obstet. Gynecol. 2000, 43, 551–560. [Google Scholar] [CrossRef] [PubMed]
  3. Improta, G.; Scala, A.; Trunfio, T.A.; Guizzi, G. Application of Supply Chain Management at Drugs Flow in an Italian Hospital District. J. Phys. Conf. Ser. 2021, 1828, 012081. [Google Scholar] [CrossRef]
  4. Di Laura, D.; D’Angiolella, L.; Mantovani, L.; Squassabia, G.; Clemente, F.; Santalucia, I.; Improta, G.; Triassi, M. Efficiency measures of emergency departments: An Italian systematic literature review. BMJ Open Qual. 2021, 10, e001058. [Google Scholar] [CrossRef]
  5. Cesarelli, G.; Montella, E.; Scala, A.; Raiola, E.; Triassi, M.; Improta, G. DMAIC Approach for the Reduction of Healthcare-Associated Infections in the Neonatal Intensive Care Unit of the University Hospital of Naples ‘Federico II’. In European Medical and Biological Engineering Conference; Springer: Cham, Switzerland, 2020; pp. 414–423. [Google Scholar]
  6. Ferraro, A.; Centobelli, P.; Cerchione, R.; Cicco, M.V.D.; Montella, E.; Raiola, E.; Triassi, M.; Improta, G. Implementation of lean practices to reduce healthcare associated infections. Int. J. Healthc. Technol. Manag. 2020, 18, 51–72. [Google Scholar] [CrossRef]
  7. Stephen, A.; Berger, D. Shortened length of stay and hospital cost reduction with implementation of an accelerated clinical care pathway after elective colon resection. Surgery 2003, 133, 277–282. [Google Scholar] [CrossRef]
  8. Trunfio, T.A.; Maria Ponsiglione, A.; Ferrara, A.; Borrelli, A.; Gargiulo, P. A comparison of different regression and classification methods for predicting the length of hospital stay after cesarean sections. In Proceedings of the 2021 5th International Conference on Medical and Health Informatics, Kyoto, Japan, 14–16 May 2021. [Google Scholar]
  9. Morton, A.; Marzban, E.; Giannoulis, G.; Patel, A.; Aparasu, R.; Kakadiaris, I.A. A Comparison of Supervised Machine Learning Techniques for Predicting Short-Term In-Hospital Length of Stay among Diabetic Patients. In Proceedings of the 2014 13th International Conference on Machine Learning and Applications, Detroit, MI, USA, 3–6 December 2014; pp. 428–431. [Google Scholar] [CrossRef]
  10. Trunfio, T.A.; Borrelli, A.; Improta, G. Is It Possible to Predict the Length of Stay of Patients Undergoing Hip-Replacement Surgery? Int. J. Environ. Res. Public Health 2022, 19, 6219. [Google Scholar] [CrossRef] [PubMed]
  11. Trunfio, T.A.; Scala, A.; Giglio, C.; Rossi, G.; Borrelli, A.; Romano, M.; Improta, G. Multiple regression model to analyse the total LOS for patients undergoing laparoscopic appendectomy. BMC Med. Inform. Decis. Mak. 2022, 22, 141. [Google Scholar] [CrossRef] [PubMed]
  12. Trunfio, T.A.; Scala, A.; Borrelli, A.; Sparano, M.; Triassi, M.; Improta, G. Application of the Lean Six Sigma approach to the study of the LOS of patients who undergo laparoscopic cholecystectomy at the San Giovanni di Dio and Ruggi d’Aragona University Hospital. In 2021 5th International Conference on Medical and Health Informatics (ICMHI 2021); Association for Computing Machinery: New York, NY, USA, 2021; pp. 50–54. [Google Scholar] [CrossRef]
  13. Roederer, G.O.; Langlois, Y.E.; Jager, K.A.; Primozich, J.F.; Beach, K.W.; Phillips, D.J.; Strandness, D.E., Jr. The natural history of carotid arterial disease in asymptomatic patients with cervical bruits. Stroke 1984, 15, 605–613. [Google Scholar] [CrossRef] [PubMed]
  14. Calligaro, K.D.; Dougherty, M.J.; Raviola, C.A.; Musser, D.J.; DeLaurentis, D.A. Impact of clinical pathways on hospital costs and early outcome after major vascular surgery. J. Vasc. Surg. 1995, 22, 649–660. [Google Scholar] [CrossRef] [Green Version]
  15. Kadwa, A.M.; Robbs, J.V. Carotid endarterectomy in Durban-the first 10 years. S. Afr. Med. J. 1993, 83, 249–252. [Google Scholar]
  16. North American Symptomatic Carotid Endarterectomy Trial Collaborators. Beneficial effect of carotid endarterectomy in symptomatic patients with high-grade carotid stenosis. N. Engl. J. Med. 1991, 325, 445–453. [Google Scholar] [CrossRef]
  17. Seeger, J.M. Clinical Curriculum and Educational Objectives for Vascular Surgery. Available online: https://surgery.duke.edu/sites/default/files/2022-04/VascularSurgeryProgramHandbookandCurriculum2016-17.pdf (accessed on 5 July 2022).
  18. Biller, J.; Feinberg, W.M.; Castaldo, J.E.; Whittemore, A.D.; Harbaugh, R.E.; Dempsey, R.J.; Caplan, L.R.; Kresowik, T.F.; Matchar, D.B.; Toole, J.F.; et al. Guidelines for carotid endarterectomy: A statement for healthcare professionals from a special writing group of the stroke council, American Heart Association. Stroke 1998, 29, 554–562. [Google Scholar] [CrossRef] [Green Version]
  19. Ho, K.J.; Madenci, A.L.; McPhee, J.T.; Semel, M.E.; Bafford, R.A.; Nguyen, L.L.; Ozaki, C.K.; Belkin, M. Contemporary predictors of extended postoperative hospital length of stay after carotid endarterectomy. J. Vasc. Surg. 2014, 59, 1282–1290. [Google Scholar] [CrossRef] [Green Version]
  20. Back, M.R.; Harward, T.R.; Huber, T.S.; Carlton, L.M.; Flynn, T.C.; Seeger, J.M. Improving the cost-effectiveness of carotid endarterectomy. J. Vasc. Surg. 1997, 26, 456–462. [Google Scholar] [CrossRef] [Green Version]
  21. Glaser, J.; Kuwayama, D.; Stone, D.; Schanzer, A.; Eldrup-Jorgensen, J.; Powell, R.; Stanley, A.; Nolan, B. Factors that determine the length of stay after carotid endarterectomy represent opportunities to avoid financial losses. J. Vasc. Surg. 2014, 60, 966–972. [Google Scholar] [CrossRef] [Green Version]
  22. Hernandez, N.; Salles-Cunha, S.X.; Daoud, Y.A.; Dosick, S.M.; Whalen, R.C.; Pigott, J.P.; Seiwert, A.J.; Russell, T.E.; Beebe, H.G. Factors related to short length of stay after carotid endarterectomy. Vasc. Endovasc. Surg. 2002, 36, 425–437. [Google Scholar] [CrossRef]
  23. Darling Iii, R.C.; Kreienberg, P.B.; Roddy, S.P.; Paty, P.S.; Chang, B.B.; Lloyd, W.E.; Shah, D.M. Analysis of the effect of asymptomatic carotid atherosclerosis study on the outcome and volume of carotid endarterectomy. Cardiovasc. Surg. 2000, 8, 436–440. [Google Scholar] [CrossRef]
  24. Roddy, S.P.; Estes, J.M.; Kwoun, M.O.; O’donnell, T.F.; Mackey, W.C. Factors predicting prolonged length of stay after carotid endarterectomy. J. Vasc. Surg. 2000, 32, 550–554. [Google Scholar] [CrossRef] [Green Version]
  25. Scala, A.; Trunfio, T.A.; Borrelli, A.; Ferrucci, G.; Triassi, M.; Improta, G. Modelling the hospital length of stay for patients undergoing laparoscopic cholecystectomy through a multiple regression model. In 2021 5th International Conference on Medical and Health Informatics (ICMHI 2021); Association for Computing Machinery: New York, NY, USA, 2021; pp. 68–72. [Google Scholar] [CrossRef]
  26. Ponsiglione, A.M.; Amato, F.; Romano, M. Multiparametric investigation of dynamics in fetal heart rate signals. Bioengineering 2021, 9, 8. [Google Scholar] [CrossRef]
  27. Ponsiglione, A.M.; Cosentino, C.; Cesarelli, G.; Amato, F.; Romano, M. A Comprehensive Review of Techniques for Processing and Analyzing Fetal Heart Rate Signals. Sensors 2021, 21, 6136. [Google Scholar] [CrossRef]
  28. Ponsiglione, A.M.; Cesarelli, G.; Amato, F.; Romano, M. Optimization of an artificial neural network to study accelerations of foetal heart rhythm. In Proceedings of the 2021 IEEE 6th International Forum on Research and Technology for Society and Industry (RTSI), Naples, Italy, 6–9 September 2021; pp. 159–164. [Google Scholar] [CrossRef]
  29. Cesarelli, M.; Romano, M.; Bifulco, P.; Improta, G.; D’Addio, G. An application of symbolic dynamics for FHRV assessment. Stud. Health Technol. Inform. 2012, 180, 123–127. [Google Scholar]
  30. Ponsiglione, A.M.; Romano, M.; Amato, F. A Finite-State Machine Approach to Study Patients Dropout from Medical Examinations. In Proceedings of the 2021 IEEE 6th International Forum on Research and Technology for Society and Industry (RTSI), Naples, Italy, 6–9 September 2021; pp. 289–294. [Google Scholar] [CrossRef]
  31. Sahoo, S.; Dash, M.; Behera, S.; Sabut, S. Machine Learning Approach to Detect Cardiac Arrhythmias in ECG Signals: A Survey. IRBM 2020, 41, 185–194. [Google Scholar] [CrossRef]
  32. Romano, M.; Bifulco, P.; Improta, G.; Faiella, G.; Cesarelli, M.; Clemente, F.; D’Addio, G. Symbolic dynamics in cardiotocographic monitoring. In Proceedings of the E-Health and Bioengineering Conference (EHB 2013), Iasi, Romania, 21–23 November 2013. [Google Scholar]
  33. Cesarelli, M.; Romano, M.; Bifulco, P.; Improta, G.; D’Addio, G. Prognostic decision support using symbolic dynamics in CTG monitoring. Stud. Health Technol. Inform. 2013, 186, 140–144. [Google Scholar]
  34. De Lauri, C.; Angela Trunfio, T.; Colella, Y.; Lombardi, A.; Borrelli, A.; Gargiulo, P. Investigating the impact of age, gender, and comorbid conditions on the prolonged length of stay after endarterectomy. In Proceedings of the 2021 International Symposium on Biomedical Engineering and Computational Biology, Nanchang, China, 13–15 August 2021. [Google Scholar]
  35. Moscato, V.; Picariello, A.; Sperlí, G. A benchmark of machine learning approaches for credit score prediction. Expert Syst. Appl. 2021, 165, 113986. [Google Scholar] [CrossRef]
  36. Bacchi, S.; Tan, Y.; Oakden-Rayner, L.; Jannes, J.; Kleinig, T.; Koblar, S. Machine learning in the prediction of medical inpatient length of stay. Intern. Med. J. 2022, 52, 176–185. [Google Scholar] [CrossRef]
  37. Scala, A.; Trunfio, T.A.; De Coppi, L.; Rossi, G.; Borrelli, A.; Triassi, M.; Improta, G. Regression models to study the total LOS related to valvuloplasty. Int. J. Environ. Res. Public Health 2022, 19, 3117. [Google Scholar] [CrossRef]
  38. Pollard, J.B.; Garnerin, P.H.; Dalman, R.L. Use of outpatient preoperative evaluation to decrease length of stay for vascular surgery. Anesth. Analg. 1997, 85, 1307–1311. [Google Scholar] [CrossRef]
  39. Sidawy, A.N.; Aidinian, G.; Johnson, O.N., III; White, P.W.; DeZee, K.J.; Henderson, W.G. Effect of chronic renal insufficiency on outcomes of carotid endarterectomy. J. Vasc. Surg. 2008, 48, 1423–1430. [Google Scholar] [CrossRef]
  40. Alsinglawi, B.; Alnajjar, F.; Mubin, O.; Novoa, M.; Alorjani, M.; Karajeh, O.; Darwish, O. Predicting length of stay for cardiovascular hospitalizations in the intensive care unit: Machine learning approach. In Proceedings of the 2020 42nd Annual International Conference of the IEEE Engineering in Medicine & Biology Society (EMBC), Montreal, QC, Canada, 20–24 July 2020. [Google Scholar]
  41. Daghistani, T.A.; Elshawi, R.; Sakr, S.; Ahmed, A.M.; Al-Thwayee, A.; Al-Mallah, M.H. Predictors of in-hospital length of stay among cardiac patients: A machine learning approach. Int. J. Cardiol. 2019, 288, 140–147. [Google Scholar] [CrossRef]
  42. van Gaal, S.; Alimohammadi, A.; Yu, A.Y.; Karim, M.E.; Zhang, W.; Sutherland, J.M. Accurate classification of carotid endarterectomy indication using physician claims and hospital discharge data. BMC Health Serv. Res. 2022, 22, 379. [Google Scholar] [CrossRef] [PubMed]
  43. Roffi, M.; Mukherjee, D.; Clair, D.G. Carotid artery stenting vs. endarterectomy. Eur. Heart J. 2009, 30, 2693–2704. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  44. Müller, M.D.; Lyrer, P.; Brown, M.M.; Bonati, L.H. Carotid artery stenting versus endarterectomy for treatment of carotid artery stenosis. Cochrane Database Syst. Rev. 2020. [Google Scholar] [CrossRef]
  45. Gahremanpour, A.; Perin, E.C.; Silva, G. Carotid artery stenting versus endarterectomy: A systematic review. Tex. Heart Inst. J. 2012, 39, 474. [Google Scholar]
Figure 1. Distribution of dichotomous features in the dataset. For each comorbidity considered, the graph shows, out of the total number of subjects included in the study, the portion of patients with that comorbidity in blue, and the portion of patients without that comorbidity in orange.
Figure 1. Distribution of dichotomous features in the dataset. For each comorbidity considered, the graph shows, out of the total number of subjects included in the study, the portion of patients with that comorbidity in blue, and the portion of patients without that comorbidity in orange.
Bioengineering 09 00546 g001
Figure 2. Box plots for continuous variables. The graph shows, for the continuous variables included in the study (age, pre-operative LOS and LOS), the median of the data (the middle line in the box), the mean of the distribution (the x in the box) the 25th and 75th quantiles (the bottom and top of the box), the interquartile range (IQR) (length of the box), the expected 1.5-fold variation in the data from IQR from the top and bottom (the lines extending from the box) and the outliers. The table below briefly shows the value of mean and standard deviation of the distribution of each variable.
Figure 2. Box plots for continuous variables. The graph shows, for the continuous variables included in the study (age, pre-operative LOS and LOS), the median of the data (the middle line in the box), the mean of the distribution (the x in the box) the 25th and 75th quantiles (the bottom and top of the box), the interquartile range (IQR) (length of the box), the expected 1.5-fold variation in the data from IQR from the top and bottom (the lines extending from the box) and the outliers. The table below briefly shows the value of mean and standard deviation of the distribution of each variable.
Bioengineering 09 00546 g002
Figure 3. Correlation study. The diagram shows for each variable (row) the Pearson correlation value relative to all other variables included in the study (columns). In addition to the result obtained, each cell takes on a color ranging from brown (0) to dark green (1) depending on the correlation value returned, following the color gradations reported by the colored bar to the right of the chart.
Figure 3. Correlation study. The diagram shows for each variable (row) the Pearson correlation value relative to all other variables included in the study (columns). In addition to the result obtained, each cell takes on a color ranging from brown (0) to dark green (1) depending on the correlation value returned, following the color gradations reported by the colored bar to the right of the chart.
Bioengineering 09 00546 g003
Figure 4. MLR output –Real value (blue) vs. prediction (red) for each observation in the test set.
Figure 4. MLR output –Real value (blue) vs. prediction (red) for each observation in the test set.
Bioengineering 09 00546 g004
Figure 5. ROC curves. Figure shows: the ROC curve for each class, the micro and macro average ROC curves, and the “no benefit” line (black discontinuous line) representing a causal classifier with area = 0.5.
Figure 5. ROC curves. Figure shows: the ROC curve for each class, the micro and macro average ROC curves, and the “no benefit” line (black discontinuous line) representing a causal classifier with area = 0.5.
Bioengineering 09 00546 g005
Figure 6. Result of permutation feature importance.
Figure 6. Result of permutation feature importance.
Bioengineering 09 00546 g006
Figure 7. Module created for manual input of input data that returns the prediction of total LOS as output.
Figure 7. Module created for manual input of input data that returns the prediction of total LOS as output.
Bioengineering 09 00546 g007
Table 1. Discharge distribution of patients undergoing endarterectomy included in the study by year.
Table 1. Discharge distribution of patients undergoing endarterectomy included in the study by year.
Year of Discharge20102011201220132014201520162017201820192020
N° of discharges60286252222246222215196185208151
Table 2. Distribution of the number of discharges for endarterectomy patients included in the study according to the type of endarterectomy.
Table 2. Distribution of the number of discharges for endarterectomy patients included in the study according to the type of endarterectomy.
Type of endarterectomy1234
N° of discharges209743139
Table 3. Selected values of each hyperparameter for the chosen ML algorithms.
Table 3. Selected values of each hyperparameter for the chosen ML algorithms.
AlgorithmsHyperparameters
SVM‘kernel’: (‘linear’, ‘rbf’), ‘C’: [1, 10, 100], cv = 10
RF‘n_estimators’: [5, 10, 15, 20], ‘max_depth’: [2, 5, 7, 9], cv = 10
DT‘max_depth’: range(3, 20), cv = 10
MLP‘hidden_layer_sizes’: [(50, 50, 50), (50, 100, 50), (100,)], ‘activation’: [‘tanh’, ‘relu’], ‘solver’: [‘sgd’, ‘adam’], ‘alpha’: [0.0001, 0.05],’ learning_rate’: [‘constant’,’adaptive’], cv = 10
NB‘var_smoothing’: np.logspace(0, −9, num = 100), cv = 10
Table 4. Results of regression analysis. R-squared, R-squared adjusted and root mean square error (RMSE) are reported for each model.
Table 4. Results of regression analysis. R-squared, R-squared adjusted and root mean square error (RMSE) are reported for each model.
MLRRFDT
R-squared0.8450.7820.584
R-squared adjusted0.8400.7750.571
RMSE2.2172.6283.630
Table 5. MLR parameters: regression coefficients, t-test and p-value.
Table 5. MLR parameters: regression coefficients, t-test and p-value.
Unstandardized CoefficientsStandardized Coefficientstp−Value *
BStd. ErrorBeta
Intercept17.66338,9360.4540.650
Age0.0070.0070.0121.0300.303
Gender0.0630.1160.0060.5390.590
Pre−operative LOS1.0130.0150.78166.6330.000
Hypertension−0.0030.1130.000−0.0290.977
Diabetes0.3480.1170.03429810.003
Previous heart attack0.0690.1840.0060.3770.707
Embolism0.2140.4070.0070.5270.598
Hyperlipidaemia−0.0950.113−0.010−0.8470.397
Respiratory system disorders0.0710.1170.0070.6070.544
Obesity−0.0230.364−0.001−0.0620.950
Kidney disorders0.5150.1880.0312.7450.006
Cardiomyopathy−0.1190.151−0.012−0.7890.430
Rhythm abnormalities−0.2310.218−0.012−1.0620.288
Anemia−0.1890.426−0.005−0.4440.657
Allergies−0.0600.241−0.003−0.2500.803
Year of discharge−0.0080.019−0.005−0.4030.687
Type of endarterectomy1.1460.0940.17412.1520.000
* p-value is statistically significant as p≤ 0.05.
Table 6. Baseline characteristics of the three groups identified.
Table 6. Baseline characteristics of the three groups identified.
VariablesLOSp-Value *
Group 0
N = 652
Group 1
N = 805
Group 2
N = 786
Age71.8 ± 7.972.1 ± 8.071.8 ± 8.80.754
Gender
04145235360.152
1238282250
Pre-operative LOS1.2 ± 0.62.8 ± 0.97.1 ± 0.20.000
Hypertension
04144984430.013
1238307343
Diabetes
04555535040.046
1197252282
Previous heart attack
05546586320.334
1108147154
Embolism
06457977390.000
17847
Hyperlipidaemia
03294304640.004
1323375322
Respiratory system disorders
04315265050.758
1221279281
Obesity
06317897720.151
1211614
Kidney disorders
06027317000.103
1507486
Cardiomyopathy
04405455060.302
1212260280
Rhythm abnormalities
06147587180.041
1384768
Anemia
06387927760.429
1141310
Allergies
06177587450.852
1354741
Year of discharge
20101027230.179
20118710396
20127210674
2013598381
20146084102
2015747276
2016597878
2017636766
2018555971
2019588169
2020554650
Type of endarterectomy
16437896650.000
2310
3003
4615118
* p-value is statistically significant as p ≤ 0.05.
Table 7. Accuracy and best parameters of the selected ML algorithms.
Table 7. Accuracy and best parameters of the selected ML algorithms.
AlgorithmsAccuracyBest Parameters
RF0.77‘max_depth’: 9, n_estimators’: 15
MLP0.78‘activation’: ‘tanh’, ‘alpha’: 0.05, ‘hidden_layer_sizes’: (100), ‘learning_rate’: ‘constant’, ‘solver’: ‘adam’
NB0.73‘var_smoothing’: 0.001
SVM0.79‘C’: 10, ‘kernel’: ‘linear’
DT0.80‘max_depth’: 5
VC0.79‘voting technique’: hard, ‘weights’: None
Table 8. Evaluation metrics (precision, recall and F1-score) for each class with the best algorithm DT.
Table 8. Evaluation metrics (precision, recall and F1-score) for each class with the best algorithm DT.
AlgorithmsClassPrecisionRecallF1-Score
DT00.780.820.80
10.710.790.75
20.950.780.86
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Trunfio, T.A.; Borrelli, A.; Improta, G. Implementation of Predictive Algorithms for the Study of the Endarterectomy LOS. Bioengineering 2022, 9, 546. https://doi.org/10.3390/bioengineering9100546

AMA Style

Trunfio TA, Borrelli A, Improta G. Implementation of Predictive Algorithms for the Study of the Endarterectomy LOS. Bioengineering. 2022; 9(10):546. https://doi.org/10.3390/bioengineering9100546

Chicago/Turabian Style

Trunfio, Teresa Angela, Anna Borrelli, and Giovanni Improta. 2022. "Implementation of Predictive Algorithms for the Study of the Endarterectomy LOS" Bioengineering 9, no. 10: 546. https://doi.org/10.3390/bioengineering9100546

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop