Next Article in Journal
Video Suppression Head Impulses and Head Impulses Paradigms in Patients with Vestibular Neuritis: A Comparative Study
Next Article in Special Issue
Real-World Outcomes of Systemic Therapy in Japanese Patients with Cancer (Tokushukai REAl-World Data Project: TREAD): Study Protocol for a Nationwide Cohort Study
Previous Article in Journal
Caregiver Views on Prospective Use of Robotic Care in Helping Children Adapt to Hospitalization
Previous Article in Special Issue
Repositioning Drugs for Rare Diseases Based on Biological Features and Computational Approaches
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Integration of Machine Learning Algorithms and Discrete-Event Simulation for the Cost of Healthcare Resources

by
Abdulkadir Atalan
1,*,
Hasan Şahin
2 and
Yasemin Ayaz Atalan
3
1
Faculty of Engineering, Gaziantep Islam Science and Technology University, Gaziantep 27260, Turkey
2
Faculty of Engineering, Bursa Technical University, Bursa 16310, Turkey
3
Faculty of Engineering, Yozgat Bozok University, Yozgat 66000, Turkey
*
Author to whom correspondence should be addressed.
Healthcare 2022, 10(10), 1920; https://doi.org/10.3390/healthcare10101920
Submission received: 13 September 2022 / Revised: 27 September 2022 / Accepted: 28 September 2022 / Published: 30 September 2022
(This article belongs to the Special Issue Analysis of Healthcare Big Data and Health Informatics)

Abstract

:
A healthcare resource allocation generally plays a vital role in the number of patients treated (pnt) and the patient waiting time (wt) in healthcare institutions. This study aimed to estimate pnt and wt as output variables by considering the number of healthcare resources employed and analyze the cost of health resources to the hospital depending on the cost coefficient (δi) in an emergency department (ED). The integration of the discrete-event simulation (DES) model and machine learning (ML) algorithms, namely random forest (RF), gradient boosting (GB), and AdaBoost (AB), was used to calculate the estimation of the output variables depending on the δi of resources cost. The AB algorithm performed best in almost all scenarios based on the results of the analysis. According to the AB algorithm based on the δ0.0, δ0.1, δ0.2, and δ0.3, the accuracy data were calculated as 0.9838, 0.9843, 0.9838, and 0.9846 for pnt; 0.9514, 0.9517, 0.9514, and 0.9514 for wt, respectively in the training stage. The GB algorithm had the best performance value, except for the results of the δ0.2 (AB had a better accuracy at 0.8709 based on the value of δ0.2 for pnt) in the test stage. According to the AB algorithm based on the δ0.0, δ0.1, δ0.2, and δ0.3, the accuracy data were calculated as 0.7956, 0.9298, 0.8288, and 0.7394 for pnt; 0.8820, 0.8821, 0.8819, and 0.8818 for wt in the training phase, respectively. All scenarios created by the δi coefficient should be preferred for ED since the income provided by the pnt value to the hospital was more than the cost of healthcare resources. On the contrary, the wt estimation results of ML algorithms based on the δi coefficient differed. Although wt values in all ML algorithms with δ0.0 and δ0.1 coefficients reduced the cost of the hospital, wt values based on δ0.2 and δ0.3 increased the cost of the hospital.

1. Introduction

Resource allocation in healthcare services is a problematic issue in health institutions with a dynamic and complex structure. Hospital administrations have difficulties in terms of health management to carry out healthcare resource planning, especially in emergency departments (EDs) where there is no fixed number of patients or a certain patient arrival probability (in units that work without appointment) [1]. Due to the inability to correctly plan the healthcare resource allocation, many problems arise, such as patient waiting time ( w t ), the number of patients treated ( p n t ), and the cost of healthcare resources. In this study, a two-pronged solution was sought for the variation in the number of healthcare resources and the cost of the number of resources to the hospital to measure its effect on the ( p n t ), and ( w t ). In this study, this solution is provided by using the discrete-event simulation (DES) model and machine learning (ML) algorithms. A new method has emerged for estimation by using random forest (RF), gradient boosting (GB), and AdaBoost (AB) algorithms from ML algorithms, which extracts a wide variety of data attributes of parameters from the DES model.
By definition, DES is used to follow the activities by modeling the icons operating in a physical structure in the computer environment [2]. DES applications have a wide range of applications such as healthcare, energy, transportation, education, logistics, etc. Generally, the literature includes investigations of DES models for EDs. In this study, DES is modeled for the ED in a hospital, one of the most problematic units of the healthcare system because the events occurring in ED units are independent of one, and the next event is uncertain [3]. In addition, the fact that there are changes in the number of healthcare resources in EDs operating under the 24/7 working principle shows that it has a fluctuating structure.
The optimization of output parameters such as w t , length of stay (LOS), performance, and p n t was carried out by considering all combinations with the experimental design of the number of healthcare resources employed in the ED using the DES model in research [3]. In another study w t by 40% and p n t by 28% were increased by creating the DES model in ED [4]. Cimellaro et al. succeeded in reducing the w t by 96% for patients with yellow codes and 75% for patients with green codes who applied to the ED unit by developing a Monte Carlo simulation model [5]. Researchers have run with simulation models not only to improve p n t or w t data, but also to improve healthcare resource performance. A study aimed to increase the efficiency of ED by developing a DES model and enabled the productivity of physicians and nurses to exceed 90% and 78%, respectively [6].
The DES model allows the results to be obtained quickly and inexpensively by making the changes that are thought to be made in the real system in the computer environment. The fact that the changes made in the healthcare system are not easy, and the results of the changes are obtained in the long-term have led to the use of DES. In a study, a new nurse-focused DES modeling technique was applied to predict nurse workload and quality of care. This study concluded that as NPR (the number of patients assigned to a nurse) increased, the quality of care deteriorated, and the nursing workload increased [7]. Another study was conducted with DES models to monitor the changes made in the behavior and performance of a set of operational policies for the efficient use and management of a scarce resource such as the intensive care unit (ICU) for the smooth operation of a hospital [8]. A cost–benefit analysis was carried out to measure the cost to the hospital of changes in the number of healthcare resources utilizing the DES model [9]. Baril et al. concluded that giving nurses more responsibility (bulk prescriptions, reviewing patients) significantly reduced the average time of LOS with less financial effort than adding extra doctors using the DES model for validating how nurses can contribute to reducing overcrowding in EDs [10].
ML algorithms are mostly used in medical subjects, although DES models are often preferred by researchers in solving healthcare resource problems, which are a significant problem in healthcare management. Ali et al. mentioned the importance of integrating DES into ML concepts and tools to improve the design and use of ML frameworks, arguing that this integration is an essential method of overcoming the difficulties of dynamic systems structures [11]. DES and ML integration methods should be used for EDs, which are the dynamic and complex units of the healthcare system. The integration of DES and ML algorithms in terms of healthcare management was provided and p n t , w t and cost–benefit analyses were realized in this study.
ML, a subset of artificial intelligence (AI), has the ability to increase the accuracy of decisions through self-learning [12]. Today, ML algorithms are at the forefront of the methods used to draw conclusions and have the ability to predict data sets [13]. ML algorithms allow predictions for emerging situations using existing data, because ML algorithms are expressed as the science that gives the ability to learn automatically without programming exactly how to behave for each problem or system in the computer environment [14]. ML algorithms are also preferred in many areas such as business, healthcare, economy, production, and transportation. ML algorithms contain many algorithms that work according to different features.
Generally, ML models have been chosen to develop efficient decision support for health applications and to create an efficient decision support system [15]. In particular, these estimation approaches offer advantages in that they take into account nonlinear interactions of decision variables at a high rate among algorithms and obtain more stable estimation results [16]. We compared three different ML algorithms, including RF, GB, and AB, to find the most accurate model for the p n t and w t prediction data. The importance of the preferred prediction algorithms was also determined through the performance criteria of the ML models. In addition, these algorithms are preferred for accessing forecast data and providing forecasts, especially in structures with an uncertain (or stochastic) environment [17]. In the selected hospital unit in this study, these models were preferred in terms of fitting and evaluation since the characteristics of the time of arrival of the patients and the disease types were uncertain. We selected these models to represent a broad approach to the ML method along with the DES approach.
ML algorithms are the most important and trending method for innovation and predictive analytics in healthcare today to lead the digital healthcare transformation [18]. The authors of a study argued that ML is essential for making informed clinical decisions through insights from past data and for the core of evidence-based medicine [19]. Even if ML algorithms are used in many areas, positive results have been obtained by using ML algorithms in the field of healthcare, generally in medical subjects such as diagnosis, drug development, and treatment [20]. A study aimed to investigate using a support vector machine (SVM) from ML algorithms in predicting dementia and to validate its performance through statistical analysis [21]. Another study aimed to evaluate the completeness of reports of prognostic prediction models developed using ML methods in the field of oncology [22]. Ali and Aittokallio mentioned state-of-the-art ML methods for anticancer drug response modeling and prediction and better use of ML algorithms in high-dimensional multi-omics profiles with knowledge of targeted cancer pathways [23]. In another study, ML algorithms were developed to predict the response of cancer cell lines to drug therapy, quantified by IC50 (half maximal inhibitory concentration) values based on both the genomic characteristics of the cell lines and the chemical properties of the drugs under consideration [24]. ML algorithms have also been used on patients, healthcare resources, health life, patient safety, technologic innovation, health policies, etc., in the field of healthcare, apart from medical issues.
A study aimed to examine the usability of ML techniques to understand teamwork and behaviors related to healthcare management and patient safety and to contribute to the literature and research on collaboration in healthcare [25]. Another study discussed how developing an intelligent big data analytics platform based on ML and data integration principles is a new way to improve population healthcare management, value-based care, and upcoming challenges in healthcare [26]. Islam and Shamsuddin utilized the ML algorithms to develop a diagnostic system for patients with hypertension so that people can change their daily lifestyles to manage their condition [18]. Another study mentioned the application of ML to examine important issues such as fairness and transparency in healthcare modeling that directly impact operations and/or financial results in a hospital setting [27]. Gan reported on the overall value of prognostic reliability and principles of electronic healthcare management using ML techniques [28]. Another study described a population healthcare management tool based on ML algorithms, using administrative and socio-economic data for the early detection of high-risk patients [29].
Information on the objectives of some studies using the integration method of DES into ML algorithms in the healthcare field and the types of ML algorithms are given in Table 1.
ML algorithms should be used to measure the direct impact of healthcare resources on health service quality. One study used ML algorithms to understand the w t estimation behavior in two ED units by relating factors associated with w t estimation behavior and how it relates to patient flow modeling. At the same time, this study correlated the ML model with the DES technique, revealing that changing staffing patterns significantly reduced the overestimation of w t   [30]. A researcher developed a ML-guided DES model to improve the processing of healthcare referrals. In this study, an estimation module for the application processing system was included to plan and prioritize referrals, reducing the average application generation latency by approximately 50% [31]. Another study used DES and ML algorithms to minimize w t in the emergency room and maximize the percentage of units’ participation to improve ED efficiency in a public hospital in Iran [32]. In one study, ML and DES models were integrated to analyze critical team capacity in the emergency coordination center (ECC) [34]. Different research aimed at a study that included DES and ML management to design health pathways and evaluate the return on investment of implementation [35]. Another study tried to solve the simulations of agile software processes for healthcare information systems development using ML methods [36]. Kim et al. used DES and ML algorithms to explore optimal thresholds to effectively triage COVID-19 patients in situations with limited data availability and minimize mortality while preserving healthcare system capacity [33]. The approaches proposed in the present article, the p n t and w t estimation data, the cost of a certain coefficient of healthcare resource personnel, and the cost to the hospital were examined in detail by attaching DES and ML algorithms.
The rest of the paper is as follows: Section 2 explains the data used, the integration of DES and ML algorithms, and how data can be integrated into the concepts and tools of this integration. Section 3 of the research comprises the results of the method applied in the study. Section 4 includes the necessity of the developed method in terms of applications and the discussion about the numerical results. The last part consists of some thoughts about the conclusion of the study.

2. Methodology

The methodology of this study consisted of two main stages. First, the data of the input/output parameters considered for the study were derived from the DES model. Data preprocessing was performed to avoid missing or erroneous data in the data set, and descriptive statistics results were calculated, because attention was paid to the regular and completeness of the data for the high performance of ML algorithms and the accuracy of the prediction data. Then, ML algorithms were used to obtain the estimated values of the output parameters by making changes to the input parameters. A total of 14,812 patients regarding to w t and 216 days for the data of p n t were used for each input and output parameter. The flow chart of the proposed methodology for health performance measurement modeling and mapping in the study is shown in Figure 1.
Figure 1 is a conceptual diagram of the workflow for an ED system that derives patient data for ML algorithms with the DES method. After preprocessing and filtering the patient data in the DES model, the data were used for prediction data in ML algorithms. It is crucial to run the DES model accurately to increase the accuracy of the results of the ML algorithms and to minimize the error rates. In the patient data used in both DES and ML algorithms, specific data such as gender, age, patient ID, address, and ethical committee approval were not used.

2.1. Data Collection and Its Characteristics

In this study, the treatment/examination flow of the patients was investigated by measuring the values of seven parameters. The primary output variables of the ML and DES models were the number of patients treated ( p n t ) and the patient waiting time ( w t ), which are continuous variables. p n t and w t are generally two important parameters for the management of hospitals. These parameters can be added to many parameters such as patient satisfaction, utilization rate of resource, length of stay so on. However, these two output variables are the basis of all indicators of healthcare quality. The first five variables of the seven parameters were used as the inputs to predict the w t and p n t , the number of physicians ( p n ), the number of nurses ( n n ), the number of clerks ( c n ), the number of exam rooms or beds ( b n ), and the number of triage areas ( t n ). Since the minimum and maximum values of c n , and t n utilized in the ED were 1 and 2, two different integer values used for these input variables were binary. The computer-aided DES technique was used to calculate p n t and w t as output variables according to the values received by the sources of the ED unit of a hospital. There was no data property restriction for w t while actual and forecast data of p n t had integer properties. Table 2 shows the characteristics of the input and output variables in this study.

2.2. Discrete-Event Simulation

The DES method is the most important tool for tracking objects in the system since mathematical models contribute to a limited extent in dynamic and complex systems. DES models are frequently preferred in many areas such as healthcare, energy, transportation and logistics, and production. Before the DES model is created, workflow diagrams that reveal the movements of objects in the system according to a certain rule should be created. In the DES model developed for the ED unit of a hospital, a workflow (patient flow: the processes that a patient has from the time of admission to the hospital until the time of leaving the hospital) diagram was created for the objects to move in a certain order. Figure 2 shows the patient flowchart considered for this study.
In this study, Flexsim HCE software, which works with 3D and pick-and-drop logic, was used to monitor the health resources employed in the ED unit. The main reason the DES technique was preferred in this study is that it is easy and cheap to observe the effects of changes made in a health unit on the health institution and to calculate the results such as cost, time, and efficiency. In this study, the values of p n t and w t were calculated as a result of the changes in the number of healthcare resources in the DES model. Information about the healthcare resource type and number used for the DES model is given in Table 3. Healthcare resources are defined in the literature as two types: human and location-based. In the DES model, physicians, nurses, and clerks were described as human-based; waiting areas, exam rooms or beds, and triage areas were expressed as location-based. In this research, a human-based resource was used for a unit in other locations except for the waiting room in the DES model.
In the DES model, the durations of the processes are calculated with the distribution. Since the arrival time and disease type of the patient arriving at the ED unit are unknown, it is inevitable to use the data as a distribution. The expert fit module processed the data collected for the DES model in the simulation program, and the distribution of the data sets was calculated.
The DES model was converted into basic three-dimensional animation using Flexsim HC simulation software for accuracy assurance in this study. The validation process of model-compatible operations was observed by running the developed model animation, monitoring the existence of all ED sources and strategies, and verifying the working system of the real ED system. The data in the real system were obtained by keeping the health resources in the ED unit constant. In contrast, the data in the DES model were obtained according to the scenarios depending on the number of healthcare resources. The results of the validation of the DES model (comparison with the actual w t and p n t ) are given in Figure 3. The difference between the actual and DES data of p n t was computed as 3.63%. The actual and DES data include the w t of the patients in the hospital’s ED until the end of the treatment/examination procedures and the end of the check-out process. The difference between both data sets was calculated as approximately 5.304%.

2.3. Machine Learning Models

For this study, three ML algorithms, including RF, GB, and AB algorithms were utilized to predict the p n t and w t in different circumstances. Additionally, p n t and w t were estimated depending on the costs of healthcare resources using the classification features of the ML algorithms used in this study. The training and test data ratio was defined as 85%/15% for ML algorithms used to predict the data of the response variables. The cross-validation number of the ML algorithms was set as 10-fold layered for the prediction data. ML algorithms were utilized using orange software environment, open access, and phyton infrastructure, and prediction results were obtained. The algorithm created on the orange software of ML algorithms is shown in Figure 4. A detailed explanation of each algorithm is given in the following sections.

2.3.1. Random Forest (RF)

The RF model is a regression tree model that uses bootstrapping aggregation and randomization of predictors to provide a highly accurate prediction result [37]. RF needs to use a set of decision trees to reduce the output variances of the trees [38]. The RF model shows high performance in models with a few random decision trees combined. The approximation values that add up by averaging the estimates and the number of input parameters are much higher [39]. An RF model was constructed by setting the randomly selected features and the number of trees to 5 and 10–2000, respectively.

2.3.2. Gradient Boosting (GB)

GB model is a robust ML algorithm that shows high-performance success in practical applications in different fields such as energy, healthcare, economy, etc. This model can be highly customized according to some demands of the application, as well as being learned according to loss functions. For this reason, both loss function and basic learning models can be determined optionally in this model [40]. A single decision tree method may not be optimal for approximating smooth functions such as a linear trend since a single decision tree usually predicts the dependent/independent variable relationship with a constant value. For this reason, the GB model was preferred in this study to remove this limitation, increase the effect of the inputs on the output variable, and ultimately ensure the accuracy of the forecast data [41]. A GB model was created by hyper-features setting the randomly selected number of features: 100, the number of trees: 3, learning rates: 0.100, depth of individual trees: 3, not split subsets smaller than: 2, and the fraction of training instances: 1.00.

2.3.3. AdaBoost (AB)

The AB algorithm was the first practical augmentation algorithm introduced by Freund and Schapire in 1996 [42]. The AB model is one of the most important and influential ML classification algorithms in reinforcement, computer vision, and pattern recognition because of its high generalization ability, fast performance, and low application complexity [43]. AB provides better accuracy than the decision tree when the number of class labels in the study dataset is considered to be two [44]. A GB model was created by hyper-features setting the number of estimators: 50, base estimator: tree, learning rates: 1.000, regression loss function: linear, and classification algorithm: SAMME.R (type of algorithm that uses probability estimates to update the additive model). Hastie et al. mathematically created SAMME and Algorithm 1, SAMME.R algorithms structures as follows [45]:
Algorithm 1. SAMME Algorithm
  Step 1. Initialize the observation weights w i = 1 n ,   i = 1 , 2 , ,   n .
  Step 2. For m = 1   t o   M :
  Step 2.1. fit a classifier T ( m ) ( x ) to the training data using weights w i .
  Step 2.2. compute:
   e r r ( m ) = i = 1 n w i ( c i T ( m ) ( x i ) ) / i = 1 n w i .
  Step 2.3. compute:
   α ( m ) = l o g 1 e r r ( m ) e r r ( m ) + l o g ( K 1 ) .
  Step 2.4. set:
   w i w i . e x p ( α ( m ) ( c i T ( m ) ( x i ) ) ,   i = 1 ,   2 ,   ,   n .
  Step 2.5. re-normalize w i .
  Step 3. Output
   C ( x ) = a r g m a x k m = 1 M ( α ( m ) ( T ( m ) ( x ) = k ) .
  SAMME.R algorithm:
  Step 1. Initialize the observation weights w i = 1 n ,   i = 1 , 2 , ,   n .
  Step 2. For m = 1   t o   M :
  Step 2.1. fit a classifier T ( m ) ( x )
  to the training data using weights w i .
  Step 2.2. obtain the weighted class probability estimates:
   P k ( m ) ( x ) = P r o b w ( c = k x ) ,   k = 1 ,   2 ,   ,   K
  Step 2.3. set:
   h k ( m ) (x)(K1) ( log p k m ( x ) 1 / K k log p k ( m ) ( x ) ) ,k=1,2,,K.
  Step 2.4. set:
   w i w i . e x p   ( K 1 K y i T l o g p ( m ) ( x i ) ,   i = 1 ,   2 ,   ,   n .
  Step 2.5. re-normalize w i .
  Step 3. Output
   C ( x ) = a r g m a x k m = 1 M h k ( m ) ( x ) .
where the input (predictor) variable is denoted as x i and the response (output) variable value is symbolized as c i in a finite set. These two variables are defined for the training dataset. C ( x ) is defined as the misclassification error rate. The best performance in this model is achieved with the lowest misclassification error rate. A weak multi-class classifier is represented as T ( x ) . The α ( m ) symbol ensures that the weights of the training samples are updated in the direction of the signs. The y denotes the two-class classification setting in y = ( ( c = 1 ) ( c = 2 ) )     { 1 ,   1 }. y was considered two-class since Friedman et al. established a relationship between the two-class AB algorithm and the exponential loss function [46]. An h k ( m ) ( x ) is expressed as an improved estimate by minimizing the loss at each x .

2.4. Healthcare Resources Cost

Naturally, the resources employed in a business or institution have a cost to the business. Likewise, the resources utilized in health institutions should have a cost to the healthcare unit. The initial cost ( c o s t 0.0 ) of healthcare resources to a healthcare unit is given in the following Equation (1):
c o s t 0.0 = [ n r r r ] s r = { ( p n , n n ,   c n ,   b n ,   t n ,   } , n r = { 1 ,   2 ,   3 ,   ,   n } s = { 1 , 2 , s } ,    
where the healthcare resource type is represented by r . The n r the symbol indicates the number of the same resource type working in a unit. The scenarios that occur as a result of the changes in the number of healthcare resources in a unit are expressed with s . In case of a one-unit increase in healthcare resource expenses, there must be a constant coefficient ( δ i ) in addition to Equation (1). So, Equation (2) is formed as follows:
c o s t k = δ i [ n r r r ] s k = { 0.1 ,   0.2 ,   0.3 ,   0.4 ,   ,   k } δ i = { > 0 = { i | i > 0 }
Equation (3) has been considered since the changes in healthcare resource costs will be based on previous costs,
c o s t k = δ i [ n r r r ] s + c o s t k 1
As a result of these developed equations, the effect on the estimated values of p n t and w t in an ED unit were determined. Although the constant coefficient is the most influential parameter on the output variables, different coefficients were applied for each healthcare resource. After the initial coefficient ( δ 0 ) values were determined for each healthcare resource, a certain percentage increase was achieved for each c o s t k . The coefficient values that were effective in the cost of healthcare resources to the ED unit are given in Table 4.
The results obtained in these equations (closed form), which belong to a dynamic and complex structure, can only be accepted as estimates. The main reason for this situation is that the values of the processes and patient admission rates of the ED unit contain statistical and stochastic expressions. As a result of these equations, the estimated values of p n t and w t were obtained by running scenarios with multipliers in ML algorithms. Equations (4) and (5) were constructed as follows to show the relationship between the cost of the current situation ( c o s t p n t c ) to the hospital and the cost with a coefficient affecting the healthcare resource cost ( c o s t p n t s ) for p n t :
c o s t p n t s = p n t ( p n + n n + c n + b n + t n )
c o s t p n t s = p n t δ i ( p n + n n + c n + b n + t n ) ,   i = { 0.0 ,   0.1 ,   0.2 ,   0.3 }
Equations (6) and (7) were created as follows to express the cost of w t to the hospital according to the current situation ( c o s t w t c ) and the ML algorithms of the cost depending on the δ i coefficient of healthcare resources ( c o s t w t s ):
c o s t w t c = w t p n t ( p n + n n + c n + b n + t n )
c o s t w t s = w t p n t δ i ( p n + n n + c n + b n + t n ) ,   i = { 0.0 ,   0.1 ,   0.2 ,   0.3 }

2.5. Model Metrics

The performance metrics are needed to measure the consistency and validity of the numerical results of ML algorithms. At the same time, these criteria are defined as statistical test criteria used to measure the effectiveness of ML algorithms during the testing and training phase [47]. The estimation data of ML algorithms are considered according to performance measures. The four performance measures are given below:
Root mean square error (RMSE):
R M S E = i = 1 N ( x a x ˜ e ) 2 N
Mean squared error (MSE):
M S E = 1 N i = 1 N ( x a x ˜ e ) 2
Mean Absolute Error (MAE):
M A E = 1 N i = 1 N | x a x ˜ e |
Correlations Coefficient (R):
R 2 1 = i = 1 N [ x a x ˜ e x a x ¯ e ] 2
where the data size of the data set (observations) used for the testing and training phases is represented by N. The actual values are denoted by x a . The symbols of x ˜ e and x ¯ e represent the value of estimated and the average of actual values, respectively.

3. Results and Discussion

The RF, AB, and GB algorithms were utilized to predict the p n t and w t using the dataset of hospitalized patients in ED. A coefficient value affecting healthcare resource costs was used to derive the forecast data in ML algorithms. A total of 85% of the output data were used for training the models, and the remaining 15% of the data set was used to evaluate the estimation performance of the developed models. The comparison was performed between the initial data and the data obtained depending on the coefficient value.

3.1. Statistical Results

According to the ML model with the best output value performance, correlation results were evaluated with input variables. Table 5 shows the correlation values between the input and output variables as a result of the changes made in the coefficient affecting the healthcare resource cost. The correlation values have positive or negative values, indicating that the input variables have a positive or negative effect on the output variables. As a result of the changes in the amount of coefficient, it was observed that there was a fluctuating relationship between the output parameters and the input variables.

3.2. The Results of the Performance Evaluation

Each estimation algorithm tested had different values for each statistical measure during the evaluation phase. These values were interpreted for each ML algorithm. Accuracy (R2), MSE, RMSE, and MAE are the most emphasized statistical measures for comparison purposes in ML algorithms. The predictive models, RF, GB, and AB were evaluated using 10-fold layered cross-validation. The performance results of the preferred ML algorithms are shown in Table 6. Performance results of ML algorithms are handled differently according to two output variables. In addition, the performance values of each ML model were calculated for the training and testing sections.
For p n t , the AB algorithm represented the best accuracy with 98.38% and 98.17% in the training and testing phases. RF and GB exposed 97.03% and 96.72% accuracy in the training phase and 95.39% and 95.02% in the testing phase, respectively. For w t , the GB and RF algorithms had the lowest accuracy values of 92.05% and 92.75%. The AB algorithm reported a better accuracy of 94.92% in the training phase. While the AB and GB performance values were the same as in the training stage in the testing phase, it was observed that there was a slight change in the RF performance value. For two output variables, the AB algorithm had the lowest error values as well as having the best accuracy value in both phases.
The measurement performance values of the ML algorithms for p n t and w t based on δ i are given in Table 7. The AB algorithm provided the best accuracy performance value for both output variables in the testing and training phases. According to the AB algorithm based on the coefficients δ 0.0 , δ 0.1 , δ 0.2 , and δ 0.3 , the accuracy data were calculated as 0.9838, 0.9843, 0.9838, and 0.9846 for p n t ; 0.9514, 0.9517, 0.9514, and 0.9514 for w t in the training phase, respectively. In the test phase, the GB algorithm had the best performance value, except for the results of the δ 0.2 coefficient (the AB algorithm had the better accuracy at 0.8709 based on the value of δ 0.2 for p n t ). According to the AB algorithm based on the coefficients δ 0.0 , δ 0.1 , δ 0.2 , and δ 0.3 , the accuracy data were calculated as 0.7956, 0.9298, 0.8288, and 0.7394 for p n t ; 0.8820, 0.8821, 0.8819, and 0.8818 for w t in the training phase, respectively.
Considering the statistical measurements with high percentages of accuracy and minimized margins of error in forecasting models, it emerged that the AB algorithm was more suitable than other algorithms. However, the estimation data of all three models for the two output variables are discussed in the follow-up of this section.

3.3. The Estimated Number of Patients Treated ( p n t )

Balanced class weights were used for the prediction data of the RF, GB, and AB algorithms. The estimated data values obtained from these models were very close to each other. In addition to the health resource numbers of each algorithm, the estimated values were calculated according to the four scenarios created for health resource cost performance evaluations.
The number of patients treated is generally defined as an output parameter in healthcare systems. In this study, p n t was considered an output parameter. Figure 5 shows the p n t based on the current situation and the estimation data obtained from the ML algorithms. There were fluctuations in the data obtained by running the DES model in the present case and the data obtained from the ML algorithms. Changes in the number of healthcare resources employed and the cost values of healthcare resources caused this situation to arise in the ED unit.
Among the prediction data of three different algorithms, the values of the AB algorithm contained values closer to the real data. It was observed that approximately 83 patients were treated, with a 0.218 MSE, 0.047 RMSE, 0.031 MAE in the training phase, and 2.740 MSE, 0.163 RMSE, 0.121MAE in the testing phase deviation of the average estimation data of the AB algorithm compared to the actual data. The prediction data of the RF and GB algorithms had an increase of 12% and 13%, respectively, compared to the actual data. The RF and GB algorithms had the highest p n t based on the δ 0.3 coefficient. The AB algorithm is preferred over RF and GB algorithms since the statistical performance values of the AB algorithm are better than other algorithms. In general, it was observed that the average p n t increased as the cost coefficients of healthcare resources of all three algorithms increased. However, since the cost increase in the employment of healthcare resources was less than the income provided by the p n t , it was understood that the cost of healthcare resources does not impose a burden on the hospital. Figure 6 shows the cost of a patient to the hospital according to the coefficient scenarios of the ML algorithms.
Despite the increase in the cost of healthcare resources according to the δ 0.2 coefficient of the EU algorithm, the increase in the p n t was evaluated as the breakeven point of the cost of this scenario to the hospital. The cost of healthcare resources remained below the cost of the hospital with the increase in the number of patients treated according to the δ 0.3 coefficient of all three ML algorithms. The δ 0.3 coefficient of the AB algorithm provided the best cost performance of other algorithms.

3.4. The Estimated Waiting Times ( w t )

Patient waiting times ( w t ) resulting from overcrowding in an ED unit were considered one of the output parameters of this study. Although there are many reasons for w t , the performance of healthcare resources or the number of employments had a significant impact. The estimation values of the ML algorithms are shown in Figure 7 to calculate the estimated data of the patient w t and the p n t by measuring the cost–performance relationship in the ED unit. According to the ML algorithms based on the δ 0.2 coefficient, a significant decrease was observed in the w t . The lowest value of w t was provided by the GB algorithm based on the δ 0.3 coefficient. The maximum w t value was realized by the RF algorithm based on the δ 0.0 coefficient. Fluctuations in the value of w t also affect the cost to the hospital.
Changes in w t according to healthcare resource cost coefficients are shown in Figure 8. There was a positive trend in the prediction w t data of ML algorithms based on the coefficients of δ 0.0 and δ 0.1 . The same situation was observed in the estimation data of the RF algorithm based on the δ 0.2 coefficient. w t are generally considered as costs. In this case, the cost of algorithms with high w t at the hospital should be evaluated. However, there was a decrease in w t based on the δ 0.2 and δ 0.3 coefficients, meaning the cost of the waiting period at the hospital increased.
It turns out that there was an inverse relationship between w t , unlike the cost of patient treatment to the hospital, depending on the coefficient scenarios. In other words, the increase in the cost of the employed healthcare resources to the hospital and the decrease in the w t made it more costly to the hospital in total.

4. Discussions

This study presents that DES and ML algorithms can be used under a certain scenario to determine the p n t and w t from the dataset of hospitalized patients in ED. It has been demonstrated by this study that DES and ML algorithms can be very useful for calculating the estimated data of the generated scenarios and output variables. The DES model was created for the ED model of a hospital and the effects of the number and types of healthcare resources employed in the ED on p n t and w t , as well as the p n t and w t values with the DES model were calculated. In the DES model, the data of patient arrival rates, the time of check-in and check-out, triage, examination by the nurses, and examination by the physicians were entered as distribution. Since the patients’ arrival to the ED unit of a hospital has different patient types and the duration of their appearance, the values of these parameters should be considered according to a distribution, not an integer or a certain ratio/time (such as a patient arrives every 10 min, treatment times 15 min, etc.). The DES model and ML algorithms were integrated since it is impossible to obtain p n t and w t estimation data in the DES model due to changes in healthcare resource costs.
Based on the results, it was observed that ML algorithms, RF, GB, and AB, with different properties, gave satisfactory results for the cost calculations of healthcare resources proposed in estimating, p n t and w t . The results of the AB model, which offers the highest accuracy and the least margin of error, and other models were shared. Knowing that ML algorithms play an essential role in training data and memory footprints in obtaining statistical results, test and training datasets were run on models with 85–15%.
The results of this research on the p n t and w t prediction outputs of classification accuracy have proven that the AB algorithm is the best choice for a classification accuracy above 98%. The classification accuracy of other algorithms was calculated as over 96% (RF with 97.03%, and GB with 96.72). Although RF and GB achieved slightly lower classification accuracies than the AB algorithm, the accuracy rates of the prediction data of both were high. Average accuracy rates of RF, GB, and AB algorithms were calculated as 88.25%, 89.07%, and 89.70%, respectively. After all, what is common to all used classifiers is their high accuracy and low error rate. For increased accuracy and low error rates, the data used in the DES model must be correct, and the DES model needs to run correctly.
The cost analysis relationship between the output values of healthcare resource costs and the data obtained from the DES model and ML algorithms was also examined. According to the cost analysis of the results of ML algorithms based on the δ i coefficient, it was determined that p n t increased with the increase in the healthcare resource cost coefficient for p n t . Since the income provided by the p n t value was more than the healthcare resource cost, all scenarios created by the δ i coefficient can be preferred. However, this does not apply to w t . The w t estimation results of ML algorithms based on the δ i coefficient differed. While the costs of w t values to the hospital were low in all ML algorithms with δ 0.0 and δ 0.1 coefficients, the cost of the hospital was increased by the w t values provided by ML algorithms based on δ 0.2 and δ 0.3 coefficients. However, the level of w t values of ML algorithms based on this coefficient was lower than the current w t level. As a result, fluctuations in the number of healthcare resources and cost coefficient in the cost analysis had a positive effect on the p n t value, while the oscillations had a negative effect on the w t value. The estimated data of p n t and w t were expressed as % of the results of the scenarios derived from the change in the cost coefficients of the healthcare resources. The developed method aimed to maximize the p n t number and minimize the w t amount among the findings of this study. Maximizing the p n t value and based on the data in the current system, the RF_3 algorithm provided 29.64% improvement. The GB_2 algorithm provided 26.89% improvement for w t , and the minimum value of w t was obtained with this algorithm. Figure 9 expresses the percentage differences of fluctuation in the estimation data of ML algorithms based on the δ i of healthcare resources.
In the present research, the average w t of a patient until the completion of all processes related to treatment/examination was calculated as 26.89% based on the GB algorithm. One study showed that with the integration of the DES and ML algorithms (Artificial Neural Network and Genetic Algorithm), the w t for the triage process approached the minimum, and the w t for a patient’s screening process was reduced from 158 min to 97 min (improvement of 62%). However, w t for other processes, such as doctor or nurse exams and check-in and check-out procedures, were not included in this study [32]. Another study used ML methods to estimate w t for patients in two emergency departments using data from more than 250 patients, resulting in a 24.85% improvement in w t based on the first scenario [30]. Lin et al. reduced the w t from 75.01 min to 68.39 min in patients with pupillary dilation and from 47.26 min to 44.54 min in patients without pupil dilation using RF and gradient boosting machine (GBM) algorithms [48]. Pak et al. reduced the number of patients with w t greater than 30 min by more than 42% with the predictive data using the quantile regression ML model [49]. A study using Logistic Regression, Extreme Gradient Boosting, Natural Gradient Boosting, SVM, and Decision Tree ML models reduced LOS by 12.3 min ( w t reduction was achieved indirectly) from a general hospital’s emergency department in South Korea [50]. In terms of estimating p n t , ML models are often used to estimate the number of patients for a disease type. Researchers mostly use DES models for p n t estimation. Alkhamis et al. developed the DES model and provided a 28% increase in the p n t [4]. Another study showed a 12% increase in p n t for high-volume colonoscopy screening using the DES technique under different scenarios [51]. Our study resulted in a 29.64% increase in p n t with the number of available healthcare resources and minimum cost.
On the whole, a method has been developed by applying the resource–cost–performance relationship, which is widely discussed in the healthcare system. In this study, the compatibility of ML algorithms with the DES model has been demonstrated by a numerical case study. In the proposed method, the cost-efficiency analysis process will inevitably provide detailed and tangible results in healthcare management, and this study will present cost recommendations for future periods.

5. Conclusions

Estimating unpredictable situations such as w t , disease type, and patient arrival times in healthcare is closely related to ML algorithms. In ML algorithms, a certain output parameter estimation can be obtained when a data set is trained and tested with an appropriate ML algorithm. This kind of method makes a vital contribution to preventing the cases created by uncertain situations, especially by the healthcare experts. A second method that helps to predict uncertain situations is DES models designed in computer environment. In the healthcare system, which has a complex and dynamic structure, DES models provide great convenience to its users. This study delivered the integration of ML and DES models, and with these two models, accurate and sharp prediction data were obtained in advance of uncertain situations in the healthcare system in a fast and inexpensive way.
The main contribution of this study is the presentation of an important approach using ML and DES models to predict p n t and w t alongside traditional methods. This study represents the development of prediction models that use RF, GB, and AB machine learning algorithms to predict p n t and w t in light of the results obtained in the DES model using the dataset of patients arriving at the ED and compares the model performances. In addition, the effect of healthcare resource costs on p n t and w t and the cost to the hospital was analyzed with this compatible integration. This proposed approach provides an early estimation of the results obtained in determining the number of healthcare resources and the changes to be made in resource cost policies.

Author Contributions

Conceptualization, A.A., H.Ş.; methodology, A.A, Y.A.A.; software, A.A.; validation, A.A., H.Ş.; formal analysis, A.A.; investigation, H.Ş.; resources, A.A., Y.A.A.; data curation, A.A.; writing—original draft preparation, H.Ş.; writing—review and editing, H.Ş., Y.A.A.; visualization, A.A.; supervision, A.A., Y.A.A.; All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Nahhas, A.; Awaldi, A.; Reggelin, T. Simulation and the Emergency Department Overcrowding Problem. Procedia Eng. 2017, 178, 368–376. [Google Scholar] [CrossRef]
  2. Guimarães, A.M.C.; Leal, J.E.; Mendes, P. Discrete-event simulation software selection for manufacturing based on the maturity model. Comput. Ind. 2018, 103, 14–27. [Google Scholar] [CrossRef]
  3. Atalan, A.; Dönmez, C.C. Optimizing experimental simulation design for the emergency departments. Braz. J. Oper. Prod. Manag. 2020, 17, 1–13. [Google Scholar] [CrossRef]
  4. Ahmed, M.A.; Alkhamis, T.M. Simulation optimization for an emergency department healthcare unit in Kuwait. Eur. J. Oper. Res. 2009, 198, 936–942. [Google Scholar] [CrossRef]
  5. Cimellaro, G.P.; Malavisi, M.; Mahin, S. Using Discrete Event Simulation Models to Evaluate Resilience of an Emergency Department. J. Earthq. Eng. 2017, 21, 203–226. [Google Scholar] [CrossRef]
  6. Bal, A.; Ceylan, C.; Taçoğlu, C. Using value stream mapping and discrete event simulation to improve efficiency of emergency departments. Int. J. Healthc. Manag. 2017, 10, 196–206. [Google Scholar] [CrossRef]
  7. Qureshi, S.M.; Purdy, N.; Mohani, A.; Neumann, W.P. Predicting the effect of nurse–patient ratio on nurse workload and care quality using discrete event simulation. J. Nurs. Manag. 2019, 27, 971–980. [Google Scholar] [CrossRef]
  8. Hasan, I.; Bahalkeh, E.; Yih, Y. Evaluating intensive care unit admission and discharge policies using a discrete event simulation model. Simulation 2020, 96, 501–518. [Google Scholar] [CrossRef]
  9. Atalan, A. A cost analysis with the discrete-event simulation application in nurse and doctor employment management. J. Nurs. Manag. 2022, 30, 733–741. [Google Scholar] [CrossRef]
  10. Baril, C.; Gascon, V.; Vadeboncoeur, D. Discrete-event simulation and design of experiments to study ambulatory patient waiting time in an emergency department. J. Oper. Res. Soc. 2019, 70, 2019–2038. [Google Scholar] [CrossRef]
  11. Capocchi, L.; Santucci, J.-F.; Zeigler, B.P. Discrete Event Modeling and Simulation Aspects to Improve Machine Learning Systems. In Proceedings of the 2018 4th International Conference on Universal Village (UV), Boston, MA, USA, 21–24 October 2018; IEEE: Piscataway, NJ, USA, 2018; pp. 1–6. [Google Scholar]
  12. Mekov, E.; Miravitlles, M.; Petkov, R. Artificial intelligence and machine learning in respiratory medicine. Expert Rev. Respir. Med. 2020, 14, 559–564. [Google Scholar] [CrossRef]
  13. Zhou, Q.; Lu, S.; Wu, Y.; Wang, J. Property-Oriented Material Design Based on a Data-Driven Machine Learning Technique. J. Phys. Chem. Lett. 2020, 11, 3920–3927. [Google Scholar] [CrossRef]
  14. Sah, S. Machine Learning: A Review of Learning Types. Artif. Intell. Robot. 2020, preprints. [Google Scholar] [CrossRef]
  15. Shailaja, K.; Seetharamulu, B.; Jabbar, M.A. Machine Learning in Healthcare: A Review. In Proceedings of the 2018 Second International Conference on Electronics, Communication and Aerospace Technology (ICECA), Coimbatore, India, 29–31 March 2018; IEEE: Piscataway, NJ, USA, 2018; pp. 910–914. [Google Scholar]
  16. Raita, Y.; Goto, T.; Faridi, M.K.; Brown, D.F.M.; Camargo, C.A.; Hasegawa, K. Emergency department triage prediction of clinical outcomes using machine learning models. Crit. Care 2019, 23, 64. [Google Scholar] [CrossRef]
  17. Ceylan, Z.; Atalan, A. Estimation of healthcare expenditure per capita of Turkey using artificial intelligence techniques with genetic algorithm-based feature selection. J. Forecast. 2021, 40, 279–290. [Google Scholar] [CrossRef]
  18. Islam, M.M.; Shamsuddin, R. Machine learning to promote health management through lifestyle changes for hypertension patients. Array 2021, 12, 100090. [Google Scholar] [CrossRef]
  19. Siddique, S.; Chow, J.C.L. Machine Learning in Healthcare Communication. Encyclopedia 2021, 1, 220–239. [Google Scholar] [CrossRef]
  20. Rajula, H.S.R.; Verlato, G.; Manchia, M.; Antonucci, N.; Fanos, V. Comparison of conventional statistical methods with machine learning in medicine: Diagnosis, drug development, and treatment. Medicina 2020, 56, 455. [Google Scholar] [CrossRef]
  21. Battineni, G.; Chintalapudi, N.; Amenta, F. Machine learning in medicine: Performance calculation of dementia prediction by support vector machines (SVM). Inform. Med. Unlocked 2019, 16, 100200. [Google Scholar] [CrossRef]
  22. Dhiman, P.; Ma, J.; Navarro, C.A.; Speich, B.; Bullock, G.; Damen, J.A.; Kirtley, S.; Hooft, L.; Riley, R.D.; Van Calster, B.; et al. Reporting of prognostic clinical prediction models based on machine learning methods in oncology needs to be improved. J. Clin. Epidemiol. 2021, 138, 60–72. [Google Scholar] [CrossRef]
  23. Ali, M.; Aittokallio, T. Machine learning and feature selection for drug response prediction in precision oncology applications. Biophys. Rev. 2019, 11, 31–39. [Google Scholar] [CrossRef]
  24. Menden, M.P.; Iorio, F.; Garnett, M.; McDermott, U.; Benes, C.H.; Ballester, P.J.; Saez-Rodriguez, J. Machine Learning Prediction of Cancer Cell Sensitivity to Drugs Based on Genomic and Chemical Properties. PLoS ONE 2013, 8, e61318. [Google Scholar] [CrossRef]
  25. Aufegger, L.; Bicknell, C.; Soane, E.; Ashrafian, H.; Darzi, A. Understanding health management and safety decisions using signal processing and machine learning. BMC Med. Res. Methodol. 2019, 19, 121. [Google Scholar] [CrossRef]
  26. López-Martínez, F.; Núñez-Valdez, E.R.; García-Díaz, V.; Bursac, Z. A Case Study for a Big Data and Machine Learning Platform to Improve Medical Decision Support in Population Health Management. Algorithms 2020, 13, 102. [Google Scholar] [CrossRef]
  27. Anderson, D.; Bjarnadottir, M.V.; Nenova, Z. Machine Learning in Healthcare: Operational and Financial Impact. In Innovative Technology at the Interface of Finance and Operations; Springer: Berlin/Heidelberg, Germany, 2022; pp. 153–174. [Google Scholar]
  28. Gan, C.L. Prognostics and Health Management of Electronics: Fundamentals, Machine Learning, and the Internet of Things. Life Cycle Reliab. Saf. Eng. 2020, 9, 225–226. [Google Scholar] [CrossRef]
  29. Panicacci, S.; Donati, M.; Profili, F.; Francesconi, P.; Fanucci, L. Trading-Off Machine Learning Algorithms towards Data-Driven Administrative-Socio-Economic Population Health Management. Computers 2020, 10, 4. [Google Scholar] [CrossRef]
  30. Gartner, D.; Padman, R. Machine learning for healthcare behavioural OR: Addressing waiting time perceptions in emergency care. J. Oper. Res. Soc. 2020, 71, 1087–1101. [Google Scholar] [CrossRef]
  31. Mahyoub, M.A. Improving Health Referral Processing Using Machine-Learning-Guided Simulation: A Care Management Setting Case Study. Master’s Thesis, State University of New York, Binghamton, NY, USA, 2020. [Google Scholar]
  32. Hosseini_Shokouh, S.; Mohammadi, K.; Yaghoubi, M. Optimization of Service Process in Emergency Department Using Discrete Event Simulation and Machine Learning Algorithm. Arch. Acad. Emerg. Med. 2022, 10, e44. [Google Scholar]
  33. Kim, J.; Lim, H.; Ahn, J.-H.; Lee, K.H.; Lee, K.S.; Koo, K.C. Optimal Triage for COVID-19 Patients Under Limited Health Care Resources with a Parsimonious Machine Learning Prediction Model and Threshold Optimization Using Discrete-Event Simulation: Development Study. JMIR Med. Inform. 2021, 9, e32726. [Google Scholar] [CrossRef]
  34. Olave-Rojas, D.; Nickel, S. Modeling a pre-hospital emergency medical service using hybrid simulation and a machine learning approach. Simul. Model. Pract. Theory 2021, 109, 102302. [Google Scholar] [CrossRef]
  35. Elbattah, M.; Molloy, O.; Zeigler, B.P. Designing care pathways using simulation modeling and machine learning. In Proceedings of the 2018 Winter Simulation Conference (WSC), Gothenburg, Sweden, 9–12 December 2018; IEEE: Piscataway, NJ, USA, 2018; pp. 1452–1463. [Google Scholar]
  36. Košinár, M.; Štrba, R. Simulations of Agile Software Processes for Healthcare Information Systems Development Based on Machine Learning Methods. IFAC Proc. Vol. 2013, 46, 175–180. [Google Scholar] [CrossRef]
  37. Rigatti, S.J. Random Forest. J. Insur. Med. 2017, 47, 31–39. [Google Scholar] [CrossRef] [PubMed]
  38. Wang, L.; Liu, Z.-P.; Zhang, X.-S.; Chen, L. Prediction of hot spots in protein interfaces using a random forest model with hybrid features. Protein Eng. Des. Sel. 2012, 25, 119–126. [Google Scholar] [CrossRef] [PubMed]
  39. Xu, W.; Zhang, J.; Zhang, Q.; Wei, X. Risk prediction of type II diabetes based on random forest model. In Proceedings of the 2017 Third International Conference on Advances in Electrical, Electronics, Information, Communication and Bio-Informatics (AEEICB), Chennai, India, 27–28 February 2017; IEEE: Piscataway, NJ, USA, 2017; pp. 382–386. [Google Scholar]
  40. Natekin, A.; Knoll, A. Gradient boosting machines, a tutorial. Front. Neurorobot. 2013, 7, 21. [Google Scholar] [CrossRef] [PubMed]
  41. Touzani, S.; Granderson, J.; Fernandes, S. Gradient boosting machine for modeling the energy consumption of commercial buildings. Energy Build. 2018, 158, 1533–1543. [Google Scholar] [CrossRef]
  42. Schapire, R.E. Explaining AdaBoost. In Empirical Inference; Springer: Berlin/Heidelberg, Germany, 2013; pp. 37–52. [Google Scholar]
  43. Vezhnevets, A.; Vezhnevets, V. Modest AdaBoost-teaching AdaBoost to generalize better. In Proceedings of the Graphicon, Novosibirsk, Russia, 20–24 June 2005; Volume 12, pp. 987–997. [Google Scholar]
  44. Pandey, P.; Prabhakar, R. An analysis of machine learning techniques (J48 & AdaBoost)-for classification. In Proceedings of the 2016 1st India International Conference on Information Processing (IICIP), Delhi, India, 12–14 August 2016; IEEE: Piscataway, NJ, USA, 2016; pp. 1–6. [Google Scholar]
  45. Hastie, T.; Rosset, S.; Zhu, J.; Zou, H. Multi-class adaboost. Stat. Interface 2009, 2, 349–360. [Google Scholar] [CrossRef]
  46. Breiman, L.; Friedman, J.H.; Olshen, R.A.; Stone, C.J. Classification and Regression Trees; Wadsworth Publishing: Belmont, CA, USA, 1984; ISBN 9781315139470. [Google Scholar]
  47. Ahmad, S.; Kalra, A.; Stephen, H. Estimating soil moisture using remote sensing data: A machine learning approach. Adv. Water Resour. 2010, 33, 69–80. [Google Scholar] [CrossRef]
  48. Lin, W.-C.; Goldstein, I.H.; Hribar, M.R.; Sanders, D.S.; Chiang, M.F. Predicting Wait Times in Pediatric Ophthalmology Outpatient Clinic Using Machine Learning. In Proceedings of the AMIA Annual Symposium Proceedings, Washington, DC, USA, 16–20 November 2019. [Google Scholar]
  49. Pak, A.; Gannon, B.; Staib, A. Predicting waiting time to treatment for emergency department patients. Int. J. Med. Inform. 2021, 145, 104303. [Google Scholar] [CrossRef]
  50. Kim, E.; Han, K.S.; Cheong, T.; Lee, S.W.; Eun, J.; Kim, S.J. Analysis on Benefits and Costs of Machine Learning-Based Early Hospitalization Prediction. IEEE Access 2022, 10, 32479–32493. [Google Scholar] [CrossRef]
  51. Berg, B.; Denton, B.; Nelson, H.; Balasubramanian, H.; Rahman, A.; Bailey, A.; Lindor, K. A Discrete Event Simulation Model to Evaluate Operational Performance of a Colonoscopy Suite. Med. Decis. Mak. 2010, 30, 380–387. [Google Scholar] [CrossRef]
Figure 1. The flow chart of DES and ML models.
Figure 1. The flow chart of DES and ML models.
Healthcare 10 01920 g001
Figure 2. Patient flow chart created for the DES model.
Figure 2. Patient flow chart created for the DES model.
Healthcare 10 01920 g002
Figure 3. Verifying the output of the DES model.
Figure 3. Verifying the output of the DES model.
Healthcare 10 01920 g003
Figure 4. The flowchart of the ML algorithms of the study.
Figure 4. The flowchart of the ML algorithms of the study.
Healthcare 10 01920 g004
Figure 5. The estimated p n t based on the (a) RF algorithm ( δ 0.0 for R F 0 , δ 0.1 for R F 1 , δ 0.2 for R F 2 for R F 3 ), (b) GB algorithm ( δ 0.0 for G B 0 , δ 0.1 for G B 1 , δ 0.2 for G B 2 , δ 0.3 for G B 3 ) (c) AB algorithm ( δ 0.0 for A B 0 , δ 0.1 for A B 1 , δ 0.2 for A B 2 , δ 0.3 for A B 3 ).
Figure 5. The estimated p n t based on the (a) RF algorithm ( δ 0.0 for R F 0 , δ 0.1 for R F 1 , δ 0.2 for R F 2 for R F 3 ), (b) GB algorithm ( δ 0.0 for G B 0 , δ 0.1 for G B 1 , δ 0.2 for G B 2 , δ 0.3 for G B 3 ) (c) AB algorithm ( δ 0.0 for A B 0 , δ 0.1 for A B 1 , δ 0.2 for A B 2 , δ 0.3 for A B 3 ).
Healthcare 10 01920 g005
Figure 6. Cost of a patient to hospital according to δ i -based ML algorithms.
Figure 6. Cost of a patient to hospital according to δ i -based ML algorithms.
Healthcare 10 01920 g006
Figure 7. The value of w t based on the (a) RF algorithm ( δ 0.0 for R F 0 , δ 0.1 for R F 1 , δ 0.2 for R F 2 for R F 3 ), (b) GB algorithm ( δ 0.0 for G B 0 , δ 0.1 for G B 1 , δ 0.2 for G B 2 , δ 0.3 for G B 3 ) (c) AB algorithm ( δ 0.0 for A B 0 , δ 0.1 for A B 1 , δ 0.2 for A B 2 , δ 0.3 for A B 3 ).
Figure 7. The value of w t based on the (a) RF algorithm ( δ 0.0 for R F 0 , δ 0.1 for R F 1 , δ 0.2 for R F 2 for R F 3 ), (b) GB algorithm ( δ 0.0 for G B 0 , δ 0.1 for G B 1 , δ 0.2 for G B 2 , δ 0.3 for G B 3 ) (c) AB algorithm ( δ 0.0 for A B 0 , δ 0.1 for A B 1 , δ 0.2 for A B 2 , δ 0.3 for A B 3 ).
Healthcare 10 01920 g007
Figure 8. The cost to the hospital of the average w t is based on the δ i coefficient.
Figure 8. The cost to the hospital of the average w t is based on the δ i coefficient.
Healthcare 10 01920 g008
Figure 9. The fluctuation in the forecast data of ML algorithms based on the cost coefficient.
Figure 9. The fluctuation in the forecast data of ML algorithms based on the cost coefficient.
Healthcare 10 01920 g009
Table 1. Studies related to the field of health management used by the DES model–ML algorithm.
Table 1. Studies related to the field of health management used by the DES model–ML algorithm.
ReferenceUnitML AlgorithmsThe Purpose(s) of the Problem
[30]EDNaïve Bayes, Bayesian Networks, classification TreesExamining patient satisfaction, waiting time estimation,
[31]Hospitals, RCUKNN, neural network, Decision Tree, Random Forest, Support Vector MachineImproving health referrals processing
[32]EDArtificial Neural Network algorithm, Genetic AlgorithmMinimizing patients’ waiting time, the percentage of units’ engagement to enhance the ED efficiency
[33]General *XGBoost, Logistic RegressionDiscovering optimal thresholds to effectively triage COVID-19 patients, minimizing death rates while preserving health system capacity.
[34]ECCGeneralized Linear Model, Multivariate Adaptive Regression Splines, Random Forest, Support Vector Machine, Decision TreeAnalyzing critical crew capacity
[35]HCUK-Means AlgorithmTo design health pathways and evaluate the return on investment of implementation
[36]General *Neural Network,Development of healthcare information systems
This researchEDRandom Forest, Gradient Boosting, AdaBoost Estimation   of   p n t   and   w t ,
analysis of healthcare resources cost
Abbreviations: ECC, emergency coordination center; HCU, Hip fracture care unit; KNN, K-Nearest neighbor algorithm; RCU, the referral creation unit, * General issues related to the health system.
Table 2. The statistical characteristics of the input and output variables.
Table 2. The statistical characteristics of the input and output variables.
Features p n n n c n b n t n p n t w t
StatusInputInputInputInputInputOutputOutput
Data TypeNumeric *Numeric *Binary **Numeric *Binary **Numeric *Numeric
Mean2.0002.0001.5002.0001.50068.5700.579
SE Mean0.0560.0560.0340.0560.0342.55000.024
StDev0.8180.8180.5010.8180.50137.5500.358
Variance0.6700.6700.2510.6700.2511409.90.128
CoefVar40.9240.9233.4140.9233.4154.76061.78
Minimum1.0001.0001.0001.0001.0009.00000.098
Median2.0002.0001.5002.0001.50068.0000.539
Maximum3.0003.0002.0003.0002.000149.001.530
Skewness0.0000.0000.0000.0000.0000.21000.510
Kurtosis−1.510−1.510−2.020−1.510−2.020−0.950−0.720
* Integer, ** binary: [1,2], and integer.
Table 3. Healthcare resources employed in the ED unit and their characteristics.
Table 3. Healthcare resources employed in the ED unit and their characteristics.
StaffGenderQuantityTypeResponsible Process Process Distribution
PhysiciansFemale/Male3Human-baseddiagnosis/examination/treatmentUniform (10.0, 30.0, 0.0)
NursesFemale/Male3Human-basedassisting the doctor,
to follow the patient,
provide control,
triage process,
perform additional operations *
Triangular (3.0, 15.0, 5.0)
ClerksFemale/Male2Human-basedcheck-in/check-outUniform (3.0, 5.0, 0.0)
Beds or Exam Rooms-5Location-basedthe area reserved for the patient during the treatment or examination processTriangular (3.0, 15.0, 5.0) ** Uniform (10.0, 30.0, 0.0)
Triage areas and equipment-2Location-basedthe area where the patient’s first health check is provided, and the values are measuredTriangular (3.0, 15.0, 5.0)
Waiting Room-1 (Limit: 50 seats)Location-basedthe area where patients wait until health resources become availableTriangular (0.0, 0.18, 1.68) ***
* Injection, serum, medicine support, providing extra information, etc. ** the duration of the procedures performed by the nurses. *** hr.
Table 4. α i values that affect the cost of the unit healthcare resource to the ED unit.
Table 4. α i values that affect the cost of the unit healthcare resource to the ED unit.
Parameters p n n n c n b n t n %Cumulative %
δ 0.0 1.000.800.600.500.400.001.00
δ 0.1 1.200.960.720.600.480.201.20
δ 0.2 1.561.250.940.780.620.301.30
δ 0.3 2.341.871.401.170.940.501.50
Sum6.104.883.663.052.441.005.00
Table 5. Correlation values between variables according to the δ i values.
Table 5. Correlation values between variables according to the δ i values.
δ i ValuesFeature 1Feature 2Feature 3 R p n t   R w t  
δ 0.0 p n   p n t w t 0.844−0.726
n n   p n t w t 0.372−0.540
b n   p n t w t 0.328−0.293
c n   p n t w t −0.015−0.246
t n   p n t w t −0.2110.232
δ 0.1   p n   p n t w t 0.777−0.682
n n   p n t w t 0.456−0.538
b n   p n t w t 0.381−0.397
c n   p n t w t −0.218−0.247
t n   p n t w t −0.2100.227
δ 0.2   p n   p n t w t 0.722−0.622
n n   p n t w t 0.559−0.584
b n   p n t w t 0.299−0.381
c n   p n t w t −0.261−0.225
t n   w t −0.2010.201
δ 0.3   p n   p n t w t 0.774−0.627
n n   p n t w t 0.424−0.351
b n   p n t w t 0.367−0.506
c n   p n t w t −0.275−0.281
t n   p n t w t −0.2010.218
Table 6. Values of measurement performances of ML algorithms for p n t and w t .
Table 6. Values of measurement performances of ML algorithms for p n t and w t .
OutputsAlgorithmTraining DatasetTesting Dataset
MSERMSEMAER2MSERMSEMAER2
p n t RF0.4022 *0.0634 *0.0463 *0.97030.7830 *0.0885 *0.0699 *0.9539
GB0.4433 *0.0666 *0.0511 *0.96720.8457 *0.0920 *0.0721 *0.9502
AB0.2185 *0.0467 *0.0307 *0.98380.3107 *0.0557 *0.0385 *0.9817
w t RF0.00890.09430.07040.92750.00960.09810.07320.9216
GB0.00980.09880.07460.92050.00980.09880.07460.9205
AB0.00620.07890.05660.94920.00620.07890.05660.9492
Consider MSE, RMSE, and ME as %, * per 100 patients.
Table 7. Values of measurement performances of ML algorithms for p n t and w t based on δ i .
Table 7. Values of measurement performances of ML algorithms for p n t and w t based on δ i .
Outputs δ i   Values AlgorithmTraining DatasetTesting Dataset
MSERMSEMAER2MSERMSEMAER2
p n t δ 0.0 RF0.41940.06480.04660.96903.33970.18270.13950.7620
GB0.44330.06660.05110.96722.86900.16940.13150.7956
AB0.21850.04670.03070.98383.79990.19490.14910.7292
δ 0.1 RF0.40860.06390.04460.97091.44270.12010.08910.8972
GB0.43900.06630.04980.96870.98570.09930.07590.9298
AB0.22070.04700.03060.98431.69230.13010.09150.8794
δ 0.2 RF0.42730.06540.04660.96842.93330.17130.13870.7910
GB0.44330.06660.05110.96722.40270.15500.12850.8288
AB0.21850.04670.03070.98381.81170.13460.09450.8709
δ 0.3 RF0.41270.06420.04600.97066.25460.25010.21160.5543
GB0.43900.06630.04980.96875.70070.23880.20680.5938
AB0.21600.04650.03070.98463.65740.19120.15060.7394
w t RF0.00890.09440.06900.93000.01500.12260.09170.8818
GB0.00940.09720.07380.92580.01500.12250.09290.8820
AB0.00620.07870.05710.95140.01930.13900.09960.8482
δ 0.1 RF0.00860.09300.06920.93200.01630.12760.09480.8720
GB0.00940.09720.07380.92580.01500.12250.09290.8821
AB0.00610.07840.05780.95170.01970.14030.10040.8454
δ 0.2 RF0.00850.09230.06660.93310.01620.12720.09390.8728
GB0.00940.09720.07380.92580.01500.12250.09290.8819
AB0.00620.07870.05710.95140.01930.13900.09960.8482
δ 0.3 RF0.00830.09140.06770.93440.01510.12310.09280.8810
GB0.00940.09720.07380.92580.01500.12250.09290.8818
AB0.00620.07870.05710.95140.01930.13900.09960.8482
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Atalan, A.; Şahin, H.; Atalan, Y.A. Integration of Machine Learning Algorithms and Discrete-Event Simulation for the Cost of Healthcare Resources. Healthcare 2022, 10, 1920. https://doi.org/10.3390/healthcare10101920

AMA Style

Atalan A, Şahin H, Atalan YA. Integration of Machine Learning Algorithms and Discrete-Event Simulation for the Cost of Healthcare Resources. Healthcare. 2022; 10(10):1920. https://doi.org/10.3390/healthcare10101920

Chicago/Turabian Style

Atalan, Abdulkadir, Hasan Şahin, and Yasemin Ayaz Atalan. 2022. "Integration of Machine Learning Algorithms and Discrete-Event Simulation for the Cost of Healthcare Resources" Healthcare 10, no. 10: 1920. https://doi.org/10.3390/healthcare10101920

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