Skip to main content
PLOS One logoLink to PLOS One
. 2026 Apr 30;21(4):e0347866. doi: 10.1371/journal.pone.0347866

Enhancing the forecast accuracy of the daily number of patients arrivals in emergency department by hybrid ARIMAX-ANN algorithm

Hamed Tabesh 1, Ali AbbaszadehMozaffari 1, Zahra Ebnehoseini 2, Azadeh Saki 1,*
Editor: Youngsang Cho3
PMCID: PMC13132425  PMID: 42060670

Abstract

Accurate forecasting of daily arrivals in Emergency Departments (ED) is crucial for healthcare providers. This study incorporates a variety of factors, including meteorological and calendar influences, into the forecasting of ED patient arrivals. Due to the complex linear and nonlinear associations these factors have with ED arrivals, two hybrid algorithms were developing to enhance forecasting accuracy. These algorithms combine Auto-Regressive Integrated Moving Average (ARIMA) with Artificial Neural Network (ANN) methodologies, leveraging their strengths in handling linear and nonlinear relationships in patient arrival data. The first hybrid algorithm utilizes an ANN model with inputs comprising ARIMA-fitted values of the time series, ANN-fitted values of the ARIMA residuals, and ANN-fitted values of the time series, excluding nonlinear input features from ARIMA. The second hybrid approach combines ARIMA and ANN forecast values of the time series. Robust performance metrics were employ to validate the effectiveness of these hybrid algorithms, allowing for a clear comparison with standalone ARIMA, ANN, LSTM, and GLM forecasts at short, intermediate, long, and overall horizons. The overall accuracy indices for ARIMA, ANN, hybrid1, hybrid2, LSTM and GLM algorithms are RMSE = 37.43, 44.33, 39.33, 33.82, 55.53 and 34.96; ME = −16.38, 22.08, 13.93, 2.85, −36.24 and 5.65; SMAPE = 5.32, 6.57, 6.00, 5.18, 8.27, and 4.62, respectively. The hybrid2 algorithm demonstrates superior performance across short, intermediate, and overall horizons, while the ARIMAX model excels in long horizons characterized by low volatility. Although hybrid1 and ANN exhibit similar overall accuracy, the hybrid2 algorithm enhances accuracy indices specifically in the intermediate horizon, which is marked by high volatility. These findings significantly improve the predictive capabilities of existing algorithms and provide valuable insights for strategic decision-making in managing patient flow in emergency departments.

Introduction

Accurate forecasting of daily patient arrivals in Emergency Departments (EDs) is crucial for optimizing resource allocation, enhancing patient care, and improving operational efficiency. As healthcare systems face increasing demands, understanding patient flow becomes essential for delivering high-quality services. Effective forecasting allows EDs to anticipate peak periods, manage staffing needs, and ensure the availability of necessary medical supplies. By utilizing historical data, statistical algorithms, and machine learning techniques, healthcare providers can predict patient volumes with greater precision.

As the healthcare landscape continues to evolve, the importance of accurate forecasting in EDs remains paramount, making it a critical focus for healthcare administrators and policymakers. Data-driven forecasts provide valuable insights that empower decision-makers to optimize staffing levels, budget allocations, and infrastructure improvements. Analyzing historical data also aids in developing long-term strategies for capacity planning, facility expansion, and service offerings based on projected demand trends.

A variety of methods applied to forecast ED patient arrivals. Regression-based prediction methods identify correlations between outcomes and input features, such as calendar or meteorological factors. Time series-based methods treat patient numbers as a time series, forecasting future values based on past data. Additionally, AI-driven forecasting techniques, including artificial neural networks (ANNs), support vector machines, decision trees, and Bayesian networks, commonly employed.

Recent literature highlights the development and evaluation of various hybrid algorithms for forecasting in time series analysis, particularly in contexts where data exhibits both linear and nonlinear patterns. These hybrid approaches aim to enhance forecasting accuracy by integrating multiple modeling techniques.

Zhang (2003) introduced a hybrid ARIMA–ANN algorithm, positing that a time series can be decomposed into linear and nonlinear components. The ARIMAX model captures the linear part, while ANN models the residuals to account for nonlinearity, yielding forecasts as the sum of both components [1]. Babu et al. (2014) proposed an MA-filter-based hybrid ARIMA–ANN algorithm, which improves upon Zhang’s approach by decomposing time series into low and high volatility components, demonstrating superior accuracy [2]. However, Zhang’s model’s assumption of additive relationships may overlook interactions between components, potentially compromising performance [3].

Luo et al. (2017) developed a combinational forecasting algorithm for hospital outpatient visits, integrating seasonal ARIMA and exponential smoothing, which proved efficient for short-term forecasts [4]. Jilani et al. (2019) created a forecasting tool for UK emergency department (ED) attendance using historical data, comparing fuzzy time series with other algorithms and achieving acceptable accuracy for long-term predictions [5]. Yucesan et al. (2018) evaluated multiple methods, including ARIMA and ANN, for forecasting patient arrivals, finding that the ARIMA-ANN hybrid provided the best accuracy [6].

Erkamp et al. (2021) utilized a linear algorithm with feature selection to predict daily ED arrivals, omitting meteorological features due to their inaccuracy [7]. Vollmer et al. (2021) explored a predictive framework for hospital demand, revealing that generalized linear models often outperformed complex ensemble methods [8]. Rocha et al. (2021) tested various forecasting methods, concluding that recurrent neural networks and XGBoost yielded the most accurate forecasts [9]. Zhang et al. (2022) combined calendar and meteorological data with machine learning techniques to forecast patient arrivals, finding LSTM models superior for hourly predictions [10].

Tuominen et al. (2022) analyzed daily arrivals at a university hospital, employing advanced feature selection techniques and demonstrating that high-dimensional approaches can enhance predictive accuracy [11]. Gafni-Pappas et al. (2023) investigated forecasting methods for ED admissions across Spanish hospitals, finding ensemble methods to be particularly effective [12]. Iftikhar et al. (2023) developed a hybrid model for predicting mpox cases, showcasing its applicability to other infectious diseases [13]. Silva et al. (2023) reviewed predictive algorithms for ED visits, noting that while linear models were effective for short-term forecasts, machine learning methods offered greater stability across multiple horizons [14]. Jiang et al. (2023) conducted a meta-analysis of 35 articles, emphasizing the increasing use of AI-based algorithms and the importance of local calibration to improve forecasting accuracy in different ED contexts [15].

Overall, there has been a significant rise in research focusing on hybrid algorithms leveraging Artificial Intelligence for improving patient arrival forecasts in EDs [16]. Studies indicate that calendar features significantly influence ED arrivals, while meteorological factors may introduce uncertainty but are still relevant in some contexts.

While previous research has laid a strong foundation for time series forecasting in healthcare, significant limitations remain. When working with time series of ED arrivals, the problem of volatility, or heterogeneity in the variance of observations over time, is very common. Every explosion in the response has a cause. If we do not have a predictor variable to determine the explosion in the data, ARCH or GARCH models are suitable, but these models do not have long-term predictive power and tend towards the mean without any dispersion over intermediate or long-term horizons. Calendar events and meteorological conditions are significant drivers of surges in emergency department (ED) arrivals in Iran. Seasonal changes, holidays, and local festivities often lead to increased activity in healthcare facilities as people engage in various social gatherings and outdoor activities. For instance, during national holidays or religious observances, there tends to be a higher incidence of accidents and health-related issues, resulting in a spike in ED visits.

Additionally, meteorological factors such as extreme temperatures, rainfall, and air quality can profoundly impact public health. For example, during heatwaves, there is often an increase in heat-related illnesses, while heavy rains can lead to accidents or exacerbate respiratory conditions due to poor air quality.

Moreover, studies have shown that specific weather patterns, such as high humidity or sudden temperature fluctuations, can correlate with increased hospital admissions, particularly for vulnerable populations such as the elderly or those with pre-existing health conditions.

Understanding these dynamics is crucial for healthcare planning and resource allocation. By analyzing historical data on ED visits in relation to calendar events and weather conditions, healthcare providers can better anticipate patient influxes and ensure that adequate staff and resources are available to meet demand. This proactive approach can ultimately enhance patient care and improve outcomes in emergency situations.

The contribution of this study is centered on a systematic empirical evaluation of established forecasting approaches within a highly variable emergency department (ED) setting. Using data from Mashhad, Iran, the study examines how ARIMA-based, machine learning, and hybrid ARIMA–ANN configurations perform under conditions strongly influenced by calendar effects, religious events, tourism, and meteorological variability. A key aspect of the proposed framework is the integration of calendar and weather-related variables selected through the Maximal Information Coefficient (MIC), combined with multiple-testing–adjusted significance measures, to capture both linear and nonlinear associations. By assessing forecast accuracy and stability across short-, intermediate-, and long-term horizons, the study provides practical insights into how commonly used hybrid strategies can be adapted to support ED staffing and operational planning in environments characterized by extreme demand fluctuations.

To achieve precise forecasts, the study proposes a combination of ARIMA and ANN algorithms. Initially, the optimal ARIMAX model for linear relationships is identified using metrics such as Mean Square Error (MSE), Akaike Information Criterion (AIC), and Bayesian Information Criterion (BIC). Subsequently, the best ANN algorithm for capturing nonlinear relationships is determined based on the MSE index. The analysis reveals patterns of overestimation in ANN forecasts and underestimation in ARIMA forecasts across different time horizons.

Two hybrid algorithms are then developed to address the trade-offs between overestimations and underestimations across various time horizons. The first hybrid algorithm utilizes ANN inputs, which include ARIMA-fitted values, ANN-fitted values of the ARIMA residuals, and ANN-fitted values of the time series, while excluding certain nonlinear input features. The second hybrid approach combines ARIMA and ANN forecast values of the time series.

In addition to statistical, machine learning, and hybrid ARIMA–ANN approaches, a Long Short-Term Memory (LSTM) model is included as an exploratory baseline to provide a reference point for comparison with more established forecasting frameworks. The LSTM is not intended as a primary modeling contribution, but rather as a benchmark representing a widely used deep learning approach for time-series prediction.

Finally, the forecasting accuracies for daily ED patient arrivals across short, intermediate, and long horizons are compared between the hybrid algorithms and standalone ANN, ARIMAX, LSTM, and GLM algorithms, employing various accuracy metrics, including RMSE, MPE, MAE, MAPE, SMAPE, ME, and R-square. This comprehensive approach aims to enhance the accuracy of patient arrival forecasts, ultimately improving operational efficiency in emergency departments.

Materials and methods

Data and features

To demonstrate the efficiency of proposed hybrid algorithms, this study utilized the dataset sourced from the Health Information System (HIS) database of ED of Imam Reza hospital in Mashhad, a heavily burdened referral hospital for emergency cases in Northeast Iran. The dataset includes the daily count of patients referred to the emergency department over a span of three Iranian official calendar years: 1395, 1396, and 1397, corresponding to the period from 21 March 2016–18 March 2019. The authors had not access to information that could identify individual participants during or after data collection. Ethics of this Study approved at Research Ethics Committee of Mashhad University of Medical Sciences with the reference number: IR.MUMS.REC.1399.443.

Calendar features were from Iran’s official calendars, while meteorological features obtained from the website of the Meteorological Organization at https://data.irimo.ir/. The output was the daily number of patients referred to the emergency department, and the input features comprised calendar and meteorological attributes for each day. Calendar features encompassed year, month, day of the week, holidays and post-holiday periods, and calendar events. Daily meteorological features included average, minimum, and maximum temperature, average and maximum wind speed, average rainfall, average relative humidity, and sunny hours. There are no missing values in the output, the ED arrival data, or any of the input features.

Model training utilized the initial 1008 days (equivalent to 144 weeks) of available data. To evaluate the robustness of algorithms and forecasting accuracies, the remaining 84 days (12 weeks) were held out for testing. This standardized train/test partition was maintained uniformly across the evaluation of all algorithms: Artificial Neural Network (ANN), ARIMAX, proposed Hybrid models, Long Short-Term Memory (LSTM), and Generalized Linear Model (GLM).

Feature selection approach

To explore the association between input features and the number of arrivals in ED the Maximal Information Coefficient (MIC) used. The application of MIC for feature selection had a significant advancement. This nonparametric method allows for a comprehensive exploration of the relationships between input features and patient arrivals, accommodating nonlinear associations that traditional correlation methods might miss. Since the relation between the arrival of ED patients and input features may be nonlinear, it is not appropriate to use the Pearson correlation coefficient to explore the relationships [17]. The Maximum Information Coefficient (MIC) is utilized to identify the most relevant features in the ARIMA algorithms by assessing the strength of the relationships between meteorological and calendar features and the number of patient arrivals. Since many significant input features are highly correlated, it is not feasible to include all of them in the ARIMA model. Therefore, the input features selected in a forward manner based on their MIC values and adjusted p-values.

The MICs and their p-values calculated by “minerva” package and the adjusted p-values for multiplicity by two multiplicity adjustment procedures calculated with coding in R4.4.2. The first is the Benjamini-Hoschberg FDR (BH-FDR) procedure, which assumes that the input features are independent. The second is the Modified FDR (M-FDR) procedure, which modified the BH-FDR procedure based on information theory for dependent features [18]. Since the input features in the present study are dependent, the second procedure was used for feature selection in the ARIMAX and GLM models, enabling a comparison of model performance with and without the Maximal Information Coefficient (MIC) in forward feature selection.

The ARIMA/ARIMAX algorithm

The Autoregressive Integrated Moving Average (ARIMA) model is a popular and powerful time series forecasting technique that can used to predict future values based on past observations. The ARIMAX (p, d, q, b) algorithm is a type of autoregressive integrated moving average (ARIMA) time series algorithm which include exogenous input features in decision-making and forecasting. The notation ARIMAX (p, d, q, b) refers to the specific characteristics of the algorithm:

Autoregressive (AR) terms: The parameter p represents the number of autoregressive terms in the algorithm. Autoregressive terms capture the relationship between an observation and a certain number of lagged observations.

Integrated (I) terms: The parameter d indicates the number of differences required to make a time series stationary in an integrated series.

Moving Average (MA) terms: The parameter q represents the number of moving average terms in the algorithm. Moving average terms capture the relationship between an observation and a random error term from a previous period.

Exogenous inputs (X): The parameter b represents the number of exogenous input terms in the algorithm. These are exogenous features where excluded of ARIMAX but are included as additional predictors in the algorithm.

∇dyt−mt=εt+∑i=1Pφi(yt−i−mt−i)+∑j=1qθjεt−j
mt=c+∑i=1bηi˙xit

Where yt is the number of ED patients at time t, ∇d is the differences of order d; which defined as

∇d= (1 − B)d

B is the backshift operator;

Byt = yt−1 , and Bkyt = yt−k

for instance:

∇2yt = (1 − B)2yt =(1 − 2B + B2 )yt = yt − 2yt−1 + yt−2

xit incorporates ith exogenous (input) feature, c is an unknown constant term, ηi˙ is the coefficient parameter of ith input feature, εt is independent random variables distributed as normal with mean 0 and variance σ2, φi (i = 0, 1,... p) are the algorithm parameters of Auto-Regressive (AR) part, and θj (j = 0, 1,...,q) are the algorithm parameters of Moving-Average(MA) part.

The ARIMAX fitting process involves several key steps. First, the stationarity condition checked using the Augmented Dickey-Fuller Test, where a p-value less than the significance level indicates stationarity. Next, the ARIMA parameters is determined using the Partial Autocorrelation Function (PACF) to identify the order of the autoregressive (AR), the Autocorrelation Function (ACF) to identify the order of the moving average (MA), and any required differencing. The AIC and BIC criteria are then used to find the optimal parameters for the AR, differencing (I), MA, and the number of exogenous input terms in the algorithm, with lower AIC/BIC values indicating a better algorithm fit. Finally, the forecast accuracy evaluated using three diagnostic statistics: Root Mean Squared Error (RMSE), Mean Error (ME), Mean Absolute Error (MAE), Mean Percentage Error (MPE), and Mean Absolute Percentage Error (MAPE), which are used to compare the forecast performance across different algorithms.

ANN algorithm

Artificial neural network (ANN) is one of the most widely used algorithms in approximating functions and predictions that has successful application in many areas especially time series algorithms. One of the greatest advantages of an ANN is its ability to approximate complex nonlinear relationship without prior assumptions about the nature of the data structure. The mathematical relationships between the output Yt and the inputs lagged values of the target feature or lagged values of the input features (Xt−1,…,Xt−p) can expressed as follows:

y^t=h(x)=∑j=1qwj.g(bi+∑i=1pwijxt−i)

Where wj are the weights connecting the hidden layer neurons to the output layer neuron, g is an activation function that introduces non-linearity into the algorithm, bi represents the bias term associated with the hidden layer neuron i, wij are the weights connecting the lagged input features of time t to the hidden layer neuron i, xt-j represents the lagged input features of time t, p and q are the number of input and hidden nodes respectively.

The formula calculates the weighted sum of the lagged inputs at time t, applies the activation function, and then computes the final output using the weights and biases. By including lagged values of the target feature or input features, the algorithm can capture the temporal dependencies in the time series data.

Typically, activation function is a sigmoidal or the hyperbolic tangent. These functions introduce non-linearity into the network, allowing it to learn and approximate complex non-linear relationships within the data. Sigmoid functions are smooth and continuously differentiable, making well-suited optimization algorithms. This function allows for efficient learning and updating of the network weights through gradient descent methods. Therefore, the sigmoid function used for activation function that shown as:

g(bi+∑i=1pwijxt−i)=11+exp(bi+∑i=1pwijxt−i)

Hence, the ANN algorithm fits a nonlinear functional mapping from the input features (Xt−1,…,Xt−p) to the future value yt.

In ANN, one of the important problems is to select an appropriate number of hidden nodes q and the dimension of the input vector. In practice, experiments are often conducted to select the appropriate values p and q by trial and error approach. After the network structure (p, q) is specified, then the parameters will be adjusted by some learning rules. Among the several learning algorithms available, the back-propagation (BP) used in this study.

ANN-ELM algorithm

Extreme Learning Machine (ELM) for time series forecasting is a fast and efficient neural network-based approach that leverages a single-layer feedforward neural network (SLFN) structure. The key idea behind ELM is that the input weights and hidden layer biases are randomly assigned and remain fixed during training, while only the output weights are learned, typically by solving a linear system using matrix pseudo-inversion.

Gradient function for feature importance in ANN

the gradient function approach for feature importance in Artificial Neural Networks (ANNs) is a powerful, model‑specific method to understand which input features most influence the network’s output.

In an ANN, the gradient measures how sensitive the model’s output is to changes in each input feature.

Mathematically, it’s the partial derivative of the loss function (L) with respect to each input variable xi:

∂L∂xi 

The derivative quantifies both the magnitude and direction of change in the model output resulting from infinitesimal variations in the input feature xi. Features exhibiting larger absolute gradient values are deemed more influential, as minor perturbations in these inputs induce greater changes in the output. To ensure comparability, the raw gradient magnitudes are generally normalized across all features, yielding their relative percentage contributions to the model prediction.

First proposed hybrid algorithm

Following ARIMAX and ANN algorithms the hybrid1 algorithm conducted based on the outputs of ARIMAX and ANN. Here is the steps of the hibrid1 algorithm.

A given time series ytconsidered as a function of the linear and nonlinear component as below:

yt=f(Lt,Nt1,Nt2,Xc)

Where Lt is the linear component, representing the fitted values from the ARIMAX, Nt1 is the first nonlinear component, estimated by fitting an ANN to the residuals of the ARIMAX, Nt2 is the second nonlinear component, derived from the fitted values of the ANN, Xc is the matrix of remaining exogenous input features that were not included in the ARIMAX.

The proposed algorithm involves the following steps:

1. Estimating the linear component Lt

Capture the linear component Lt by fitting the ARIMAX. This step aims to identify the linear patterns in the data and obtain the fitted values and residuals for use in subsequent steps.

2. Estimating the nonlinear component Nt1

Apply an ANN to the residuals of the ARIMAX. This step captures any nonlinear relationships that may exist and estimates the first nonlinear component Nt1.

3. Estimating the nonlinear component Nt2

Fit an ANN to capture the second nonlinear component  Nt2. This step focuses on modeling the nonlinear patterns through ANN and obtaining the fitted values for use in the final step.

4. Combine components and exogenous features

Fit an ANN that combines the fitted values from the previous steps  Lt, Nt1, and Nt2 along with the remaining exogenous input features Xc that were excluded from the ARIMAX.

Second proposed hybrid algorithm

This proposed hybrid algorithm based on the assumption that time series data may be linear and nonlinear components, therefore the forecasts could estimate by combining both linear and nonlinear forecast at time horizon h as follows:

yt+h=f(Lt+h,Nt+h)

Where:

Lt Represents the linear component, estimated using the ARIMAX.

Nt Represents the nonlinear component, estimated using an ANN.

Steps of the Hybrid Algorithm:

Step1: Estimating the linear component Lt+h

The ARIMAX fitted to the given time series yt to capture the linear patterns. The corresponding linear forecasts at the time horizon h L^t+h generated from this algorithm.

Step2: Estimating the nonlinear component Nt+h

An ANN fitted to the same time series yt to capture the nonlinear relationships that linear algorithms cannot adequately do. This results in the estimated nonlinear component forecast at the time horizon h, N^t+h.

Step3: Estimating the forecasts yt+h

The combined forecast at the time horizon h, y^t+h can obtained using the following equation:

y^t+h=(L^t+h+N^t+h)/2

This equation calculates the mean of the forecasts from both the linear and nonlinear components, providing a more robust forecast for the time series.

Fig 1, shows the schematic diagram of both Hybrid1 and Hybrid2, algorithms.

Fig 1. Schematic flowchart of the proposed hybrid algorithms.

Fig 1

GLM

Generalized Linear Models (GLMs) are a flexible framework for modeling various types of response variables, including those encountered in time series analysis. They extend traditional linear regression by allowing for response variables that have error distribution models other than a normal distribution. The response variable Y is assumed to follow a probability distribution from the exponential family (e.g., normal, binomial, Poisson, Negative Binomial). This allows GLMs to handle various types of data, such as counts, proportions, and continuous measurements. The relation between input features and a specific function of mean response (link function) is linear. Which allows the nonlinear regression between input features and outcome.

As the daily number of ED arrivals, Yt is a count response Poisson or negative binomial distributions are appropriate. So, the canonical link function is log and the model is,

og(E(Yt|xt)=β0˙+∑i=1pβi˙xit

Where xt is the set of p input features at time t, and xit is the ith input feature at time t. Also, the identity link function leads to ordinary regression:

E(Yt|xt)=β0˙+∑i=1pβi˙xit

However, the maximum likelihood estimations for the parameters are based on either Poisson or Negative Binomial distributions.

The choice between the Poisson and Negative Binomial distributions for count data depends on the significance of overdispersion. If overdispersion is significant, the Poisson distribution is not appropriate, and the Negative Binomial distribution should be used instead.

LSTM

Long Short-Term Memory (LSTM) networks are a type of recurrent neural network (RNN) specifically designed to model sequential data. Unlike traditional RNNs, which struggle with long-range dependencies due to issues like vanishing and exploding gradients, LSTMs are capable of learning and retaining information over extended periods. This makes them particularly effective for tasks involving time series prediction, natural language processing, and other applications where context from previous inputs is crucial.

The LSTM architecture consists of a series of memory cells, each containing three primary components: input gate, forget gate, and output gate. These gates regulate the flow of information, allowing the network to learn when to remember or forget information.

Input Gate: This gate determines how much of the new input information should be stored in the cell state. It takes the current input and the previous hidden state as input and applies a sigmoid activation function to produce values between 0 and 1. A value of 0 means “ignore this input”, while a value of 1 means “completely accept this input.”

Input Gate Activation:it=g(wi·[ht−1,xt]+bi)

Forget Gate: The forget gate decides what information from the previous cell state should be discarded. Similar to the input gate, it uses a sigmoid activation function to produce a value between 0 and 1 for each element in the cell state. This allows the model to forget irrelevant information selectively.

Forget Gate Activation:ft=g(wf·[ht−1,xt]+bf)

Output Gate: This gate controls what information from the cell state should be output to the next layer or time step. It uses both the current input and the previous hidden state to determine the output, applying a sigmoid function to filter the cell state.

Output Gate Activation:ot=g(wo·[ht−1,xt]+bo)

The cell state is the core component of the LSTM that carries information across time steps. It is updated at each time step based on the contributions from the input and forget gates. The update process can be described mathematically as follows

Candidate Cell State:C~t=g(wc·[ht−1,xt]+bc

Cell State Update:Ct=ft*Ct−1+it*C~t

Where, g is the sigmoid activation function, w represents the weight matrices, b represents the bias vectors for each gate, ht is the hidden state at time t, and xt is the set of input features at time t.

The LSTM hyperparameters—including the look‑back window length, number of hidden units, batch size, and training epochs—were selected within commonly adopted ranges reported in the literature and refined through preliminary experiments aimed at reducing validation error, rather than through exhaustive hyperparameter optimization. In addition, a limited sensitivity assessment was carried out during these preliminary trials to confirm that the selected configuration provides stable forecasting performance across reasonable variations of the main hyperparameters.

Accuracy indices

The forecast accuracies among ARIMAX, ANN, and hybrid algorithms compared using different Metric Distance Scaling (MDS) for estimating the dissimilarity between actual values and forecasting values. Suppose that δt is dissimilarity between actual and forecast values. It can be transformed to a distance with a monotonic function f, so:

dt≈f(δt)

A metric Distance Scaling (MDS) consider

f(δt)=α+βδt

Where:

α=0, β=1 → Absolute MDS 
α=0, β>1 → Ratio MDS
α≥0, β≥0 → Interval MDS

If δi is similarity rather than dissimilarity, then we need β<0.

The present study employed both Absolute and Ratio forms of MDS, assessed using a suite of standard accuracy indices. These metrics included: Mean Error (ME), Root Mean Square Error (RMSE), Mean Absolute Error (MAE), Mean Absolute Percentage Error (MAPE), Standardized Mean and Absolute Percentage Error (SMAPE). The definitions of all accuracy indices are provided below, where t denotes the forecasting day, yt = observed value on day t, ŷt = forecast value on day t, and t = 1,2, …, T.

The ME measures the mean of the forecast errors;

1T∑t=1T(yt−y^t)

2-RMSE calculates the square root of the mean of the squared differences between forecasts and actual values;

1T∑t=1T(yt−y^t)2

3-MAE computes the mean of the absolute differences between forecasts and actual values;

1T∑t=1T|yt−y^t|

4-MPE measures the mean percentage difference between forecasts and actual values;

1T∑t=1T(yt−y^t)yt×100

5-MAPE measures the mean of the absolute percentage difference between forecasts and actual values;

1T∑t=1T|(yt−y^t)yt|×100

6-SMAPE measures the weighted (standardized) mean of the absolute percentage difference between forecasts and actual values;

1T∑t=1T|yt−y^t|(|yt|+|y^t|)/2×100

7-R-Square measures the coefficient of determination of observed by forecasting values; The distance dt is fitted to the functionf(δt) using a least-squares (LS) loss function:

Lf=∑t=1T(dt−f(δt))2

This approach is referred to as Metric Least-Squares Scaling, and its goodness of fit can be evaluated using the coefficient of determination (R-Square).

8-Diebold-Mariano test

The Diebold-Mariano (DM) test is a statistical test used to compare the predictive accuracy of forecasting models. It’s particularly useful in time series analysis, where the goal is to determine the significance difference between actual values and forecasted values over a given period.

The test statistic for the DM test is calculated as follows:

DM=d―1T∑t=1T(dt−d―)2

Where dt is distance index, and d―, is the mean of dt for t = 1, 2, 3, …, T. If the calculated DM statistic exceeds the critical value from the standard normal distribution, it indicates that the forecast values differ significantly from the actual values.

Comparing these performance indices across different forecasting algorithms provides insights into the effectiveness of each approach for specific datasets. The measurement units of the time series influence the values of ME, RMSE, and MAE. While RMSE, MAE, MAPE, SMAPE and R-Square are always positive, ME and MPE can be positive or negative, indicating overestimation or underestimation in the forecast values, respectively. A near-zero ME or MPE does not necessarily indicate the best forecasting accuracy, as it may simply reflect a balance between positive and negative residuals. The MAPE, being unit-less, can used to compare the overall accuracy of different algorithms. The algorithm with the smallest MAPE value exhibits the best performance relative to the others. Evaluating all the indices is necessary to determine the strengths, weaknesses, and overall performance of the various forecasting algorithms.

The TSA, ANN, and hybrid TSA-ANN algorithms fitted to the ED patient arrivals data set by packages; “stats”, “nnfor”, “aTSA”, and “forecast” in R4.3.2, LSTM algorithm fitted in Python. All the R and Python codes of this study presented in S1 File and the data set attached in S2 File of supplementary materials.

Results

The Emergency Department (ED) at Imam Reza hospitals received 641511 patients during the 3-year study period. The variation in daily arrivals of ED patients is between 439 and 874with an average of 585.32 ± 69.44 arrivals per day, and the median, first and third quartiles were 579, and (530, 633), respectively. The number of ED patients remained relatively consistent across the years 1395, 1396, and 1397, with 214119, 216698, and 210694 visits, respectively.

Preliminary data analysis

Fig 2 shows the time series plot of ED patients (daily number of patient arrivals in ED) for three years of study. It shown in Fig 2 that at the Nowruz holidays, the first days of the New Year in the Iranian official calendar the ED patients have maximum and after these holidays the number of ED patients suddenly decreased and then gradually increased during the first semester of the year. With School openings at the beginning of the second semester of each year, the number of ED patients suddenly decreased again.

Fig 2. Time series plot of the patients arrivals in ED.

Fig 2

The data preprocessing on input features where included in these study categorized in MIC indices and graphical discovery. Table 1 summarizes the characteristics of the input features and presents their Maximal Information Coefficient (MIC) values, along with adjusted p-values from both the Benjamini-Hochberg (BH) and Modified False Discovery Rate (M-FDR) procedures, in relation to patient arrivals. The BH-FDR procedure identified all features as significant at α = 0.05 level, with the exception of the year feature (X1). This suggests that most features meaningfully contribute to predicting patient arrivals. In contrast, the M-FDR procedure identified only 12 significant features, indicating that different statistical methods can yield varying results regarding the relevance of predictors. The MIC values indicate the strength of association between each feature and patient arrivals.

Table 1. Characteristics of Input Features.

Input features Feature No. Label Description MIC M-adj.
p-value
BH-adj.
p-value
Calendar Features X1 Year Three years in Iranian official Calendar: 1395,1396,1397 0.08 1.00 0.10
X2 Semester Semester 1: Spring & Summer
Semester 2: Fall & Winter
0.37 0.00* 0.00*
X3 Month of Year 1:12, Based on Iranian official Calendar 0.37 0.00* 0.00*
X4 Day of Week 1: Sat, 2: Sun, 3: Mon, 4: Tue, 5: Wen, 6: Tur, and 7: Fri (Weekend) 0.1 0.14 0.01*
X5 Recode X4 0: Sun, Mon, and Tue
1: Tur, Fri, and Sat
0.16 0.04* 0.00*
X6 Holiday 0: No Holiday
1: Holiday
0.16 0.03* 0.00*
X7 After Holiday 0: No After Holiday
1: After Holiday
0.11 0.51 0.03*
X8 Calendar Events 0: No Event, 1: Islamic Traditions,
2: Ancient Traditions
0.16 0.06 0.00*
Meteorological Features X9 Max. Temperature Maximum Temperature (°C) in 24 Hours 0.37 0.00* 0.00*
X10 Min. Temperature Minimum Temperature (°C) in 24 Hours 0.35 0.00* 0.00*
X11 Average Temperature Mean of Temperatures (°C) in 24 Hours 0.38 0.00* 0.00*
X12 ∆Temperature Difference between Maximum and Minimum Temperature in 24 Hours 0.15 0.00* 0.00*
X13 Max. Wind Speed Maximum of Wind Speed (Km/h) in 24 Hours 0.15 0.00* 0.00*
X14 Average Wind Speed Mean of Wind Speeds (km/h) in
24 Hours
0.13 0.02* 0.00*
X15 Average Raining Mean of Raining (mm) in
24 Hours
0.13 0.28 0.01*
X16 Average Humidity Mean of Relative Humidity (%) in
24 Hours
0.26 0.00* 0.00*
X17 Sunny Hours Sunny Hours in 24 Hours 0.26 0.00* 0.00*

*Significance at α=0.05.

As shown in Table 1, significant calendar features include semester, month, and holiday status, which reflect temporal patterns in patient arrivals. For example, the semester and month features show MIC values of 0.37, indicating a robust association with patient arrivals. Daily meteorological features such as maximum temperature (X9) and average temperature (X11) also demonstrate strong associations, with MIC values of 0.37 and 0.38, respectively. These findings suggest that weather conditions significantly influence patient arrivals in emergency departments. The adjusted p-values from both BH and M-FDR procedures provide insights into the reliability of the identified features. Most features have significant adjusted p-values (<0.05), indicating strong statistical significance. By considering BF-FDR adjusted p-values except the year, all other 16 features have significance association with ED patient arrivals. While according to strong correlation between input features, M-FDR adjusted p-values detect 12 significant features.

Therefor Table 1 illustrates the importance of selecting relevant features for predictive modeling of patient arrivals. The use of MIC and adjusted p-values highlights the complex relationships between various calendar and meteorological factors, providing a comprehensive understanding of their impact on emergency department utilization.

Fig 3 illustrates the variability of emergency department (ED) patients according to calendar features. In the Iranian official calendar, the New Year coincides with the first day of spring, resulting in months that correspond to the seasonal changes of spring, summer, autumn, and winter. The data presented in Fig 3(1) indicates that the number of patients arriving at the ED is not constant throughout the months; at the first month of the year the median and the variation of ED patients arrival is maximum, and in following months the medians and variations decrease gradually. Fig 3(2) shows the number of ED patient’s arrivals in the first half of the year are significantly higher than in the second half. Fig 3(3) is the box-plot of patient arrivals by weekdays reveals an increase during the weekends (Thursday and Friday) and on the first day of the week (Saturday). To better presenting this trend, a new feature categorizing weekdays into two groups created, Fig 3(4). Furthermore, Fig 3(5) and Fig 3(6) show that patient numbers rise on vacations and the days following vacations. In the context of the Iranian calendar, two types of traditional events—ancient and religious—are noteworthy. Fig 3(7) indicate that the number of ED patients is generally higher on ancient tradition days compared to religious tradition days. Fig 3(8) shows consistency in patient arrivals during three years.

Fig 3. Box-plot of the ED patients by calendar features.

Fig 3

Fig 4 expands the data preprocessing by depicting the variation in ED patients based on meteorological features. Fig 4(1) suggests a positive relation between average temperature and the number of ED patients; as temperatures rise, patient arrivals increase. However, the relationship between the number of ED patients and the temperature difference (∆t, defined as the maximum temperature minus the minimum temperature) is not monotonic, Fig 4 (2). Specifically, the number of patients increases with ∆t up to 20°C, after which it begins to decline. Additionally, a similar trend observed with mean wind speed, where patient numbers increase with higher wind speeds up to 6 km/h and after which it declines Fig 4 (3). Conversely, Fig 4 (4) and Fig 4 (5) show a downward trend in the number of ED patients with increasing average rainfall and humidity over a 24-hour period. Finally, Fig 4 (6) indicates a consistent increase in patient arrivals with more hours of sunshine during the day.

Fig 4. Box-Plot of the ED patients by meteorological features.

Fig 4

Building the ARIMAX

The Augmented Dickey-Fuller (ADF) Test showed a unit root for a raw response. After the first difference in raw response, the ADF statistics were significant with p < 0.01, and the stationary condition achieved. Fig 1 shows the time series plot of raw response (daily number of patient arrivals in ED). The ACF and PACF plots to evaluate the autocorrelations and seasonal trends shown in Fig 5.

Fig 5. Sample ACF and PACF of daily number of ED patients.

Fig 5

The plots of sample ACF and PACF used for selecting the order of an ARIMA model. As shown in Fig 5(1), the time series has not stationary condition because the sample ACF series decays very slowly and has a weekly seasonal trend, the Fig 5(2), shows the first-order autocorrelation in raw data. Therefore, we differenced the original data once at first lag and the ACF and PACF plots shown in Figs 5(3) and 5(4). Based on these figures, following a first difference, the stationary condition achieved. The PACF indicates negligible seasonal autocorrelations that diminish at lags that are multiples of seven. Since the day of the week was an input feature, this seasonal pattern captured by this feature, negating the need for a seasonal order in the ARIMAX. After stepwise feature selection, only six significant features (X2, X5, X6, X7, X8, X11) remained in the final ARIMAX model due to dependency among input features. The results of the ARIMAX shows in Table 2.

Table 2. Results of ARIMAX.

Feature Unstandardized Standardized P-value
Coefficient S.E of Coefficient Coefficient S.E of Coefficient
AR1 0.862 0.031 0.863 0.032 0.000
MA1 −1.451 0.049 −1.466 0.05 0.000
MA2 0.455 0.047 0.471 0.048 0.000
X2 −35.413 10.391 −0.532 0.162 0.001
X5 19.396 2.823 0.308 0.044 0.000
X6 25.573 3.484 0.409 0.054 0.000
X7 24.039 3.448 0.377 0.054 0.000
X8 22.825 3.761 0.325 0.058 0.000
X11 3.368 0.395 0.055 0.006 0.000
X13 0.934 0.556 0.015 0.009 0.082

Building the ANN

The ANN-ELM built using a conventional back-propagation algorithm, with a single hidden layer. The ANN algorithm built with “nnfor” package in R4.3.2. The choice of ANN_ELM structure is concerned with determining input features and hidden nodes. A total of 17 calendar and meteorological features in Table 1, taken into account in the ANN. The number of hidden nodes was determined to be 40 by the package algorithm to optimize the algorithm based on the minimum RMSE loss function.

Feature importance analysis reveals substantial divergence between the ANN and ARIMAX models. In contrast to ARIMAX, which only identified average temperature (X11) as a significant meteorological predictor (Table 2), the ANN model places greater weight on meteorological factors than calendar factors. Notably, average humidity (X16) emerged as the most critical feature for the ANN (Fig. 6), despite its lack of significance in the ARIMAX framework.

Fig 6. Feature importance in ANN.

Fig 6

Building the first hybrid algorithm

Hybrid1 model was also an ANN built using the following input features; the fitted values of the ANN, the fitted values of the ARIMAX, the fitted values of the ANN on the residual of the ARIMAX, and the nine input features that excluded from the ARIMAX. To determine the number of hidden nodes, an automated approach according to the root mean squared error (RMSE) criterion performed. Finally, 40 hidden nodes selected for a hidden layer. As shown in Table 3, the forecast accuracy of this algorithm is better than ARIMA and ANN model for short and intermediate horizons.

Table 3. Comparing the accuracy of forecasting with ARIMA, ANN, two hybrid algorithms, LSTM and GLM.

Forecast Horizons Model Forecast Accuracy Indices Diebold-Mariano Test
R2 ME RMSE MAE MPE MAPE SMAPE DM p
Short:
1-28 days
ARIMA 0.08 −21.79 37.75 31.98 −4.2 6.1 5.91 3.75 0.001
ANN 0.01 10.84 39.28 31.41 1.76 5.53 5.67 1.50 0.156
Hybrid1 0.04 0.89 33.61 27.55 0.05 4.98 5.03 0.07 0.943
Hybrid2 0.03 −5.48 34.16 29.68 −1.11 5.45 5.43 0.92 0.367
LSTM 0.01 −43.24 58.14 49.68 −8.79 9.99 9.38 5.76 0.001
GLM 0.12 13.83 32.40 27.68 2.27 5.01 5.28 2.56 0.016
Intermediate: 29–56 days ARIMA 0.63 −28.44 45.78 34.26 −5.27 6.43 6.12 4.11 0.001
ANN 0.27 35.05 56.89 48.98 5.96 8.34 8.78 3.91 0.001
Hybrid1 0.53 9.86 41.73 35.04 1.86 6.22 6.33 0.99 0.331
Hybrid2 0.60 3.31 38.53 31.4 0.72 5.61 5.65 0.16 0.868
LSTM 0.16 −49.18 68.62 53.51 −9.75 10.61 9.8 6.80 0.001
GLM 0.44 15.96 42.55 33.92 2.36 5.89 5.13 1.40 0.173
Long:
57-84 days
ARIMA 0.37 1.09 26.13 21.13 0.15 3.94 3.94 0.15 0.884
ANN 0.33 20.35 33.41 28.21 3.66 5.11 5.27 3.94 0.001
Hybrid1 0.23 31.05 42.08 35.83 5.5 6.36 6.64 5.67 0.001
Hybrid2 0.36 10.72 27.94 23.87 1.95 4.39 4.47 2.06 0.049
LSTM 0.19 −16.3 34.09 29.6 −3.25 5.75 5.62 2.88 0.008
GLM 0.37 −12.83 28.39 24.34 −2.63 4.66 6.11 2.52 0.018
Overall:
1-84 days
ARIMA 0.32 −16.38 37.43 29.12 −3.1 5.49 5.32 4.53 0.001
ANN 0.44 22.08 44.33 36.2 3.79 6.33 6.57 5.11 0.001
Hybrid1 0.19 13.93 39.33 32.81 2.47 5.85 6.00 3.18 0.002
Hybrid2 0.32 2.85 33.82 28.32 0.52 5.15 5.18 0.49 0.629
LSTM 0.06 −36.24 55.53 44.26 −7.26 8.78 8.27 7.77 0.001
GLM 0.29 5.65 34.96 28.65 0.66 5.18 4.62 1.71 0.091

Building the second hybrid algorithm

Hybrid2 algorithm used of two separate ARIMAX and ANN algorithms. To obtain the forecast of hybrid2 algorithm the mean of forecasting values from ANN and ARIMAX algorithm calculated.

Fig 7 displays the forecasting plots for emergency department patients using ARIMA, ANN, and two hybrid ARIMA-ANN algorithms alongside actual data. Fig 7(1) shows that ARIMAX forecasts are generally tend to be underestimated, while Fig 7(2) reveals that ANN forecasts tend to be overestimated, with the forecasts from both hybrid algorithms Figs 7(3) and 7(4) falling between ARIMAX and ANN forecasts.

Fig 7. Comparing the forecasts of ARIMAX, ANN, two hybrid algorithms, LSTM, and GLM with actual data.

Fig 7

Building the LSTM

The Long Short-Term Memory (LSTM) network was implemented using Python with the TensorFlow/Keras library, utilizing the “LSTM”, “Dense”, and “Dropout” layers for its structure and regularization. The input configuration for the recurrent layer was defined with a shape of (30,17), representing a lookback window of 30 time steps across 17 input features. For optimization, the model was compiled using the Adam optimizer and the Mean Squared Error (MSE) loss function, a standard choice for regression problems. The network was subsequently trained for 50 epochs using a batch size of 30. Upon completion of training, the established model was employed to generate scaled predictions corresponding to the final 84 time steps isolated within the designated test set. The forecasting accuracy indices of this algorithm show in table 3.

Building the GLM

The GLM built using Negative-Binomial distribution for ED arrivals and identity link function. The GLM algorithm built with “MASS” package in R4.3.2. The choice of GLM structure is concerned with determining appropriate distribution function, link function, and input features. Among of 17 calendar and meteorological features in Table 1, forward feature selection according to MICs, taken into account in the GLM. The forecasting accuracy indices of this model show in Table 3.

Comparing the short, intermediate and long term forecast accuracies of algorithms

Table 3 presents the accuracy of forecasting of ARIMAX, ANN, two hybrid algorithms, LSTM, and GLM using seven accuracy indices across short, intermediate and long horizons. The analysis reveals the following key findings:

  1. Short horizon accuracy: The Hybrid1 algorithm achieved a SMAPE of 5.03, MAPE = 4.98 and an AME of 27.55, which are the best among the indices. Consequently, the Hybrid2 algorithm outperformed both the ARIMAX and ANN algorithms, demonstrating its effectiveness in capturing short-term patient arrival trends. Although the DM test does not indicate a significant difference between the observed and forecasted values produced by the ANN, Hybrid1, and Hybrid2, all accuracy indices—except R2—show that the Hybrid algorithms outperform the GLM. These results suggest that integrating features from both algorithms enhances forecasting precision in the short horizon.

  2. Intermediate horizon accuracy: The high volatility in ED patient arrivals was in this horizon and the forecasts of ANN and ARIMAX were completely different. The ME of ARIMAX was −28.44 (vigorous underestimation) and the ME of ANN was 35.05 (vigorous overestimation). In this horizon Hybrid2 algorithm with ME = 3.31, SMAPE = 5.65, and MAPE = 5.61 consistently outperformed all other algorithms. Although the DM test does not indicate a significant difference between the observed and forecasted values produced by the Hybrid1, Hybrid2, and GLM algorithms, all accuracy indices show that the Hybrid algorithms outperform the ANN, ARIMAX, LSTM, and GLM.

  3. Long horizon accuracy: The low volatility in ED patient arrivals was in this horizon, the ARIMAX algorithms demonstrated superior accuracy with ME = 1.09 and MAPE = SMAPE = 3.94 compared to other algorithms. At this forecasting horizon, although the accuracy indices of Hybrid2 are satisfactory, the DM test indicates a significant difference between the observed and forecasted values for all algorithms except ARIMAX.

  4. Overall accuracy: Over the multiple horizons of 0–12 weeks (84 days), the Hybrid2 algorithm demonstrated superior forecasting accuracy with ME = 2.82, SMAPE = 5.18 and MAPE = 5.15 compared to ARIMAX, ANN, Hybrid1, LSTM, and GLM. This indicates that Hybrid2 effectively captures overall patterns in patient arrivals. Across the overall forecasting horizon, although the DM test indicates no significant difference between the observed and forecasted values for the GLM model, the accuracy indices of the Hybrid2 algorithm demonstrate its superior performance. This consistent accuracy underscores the robustness of the Hybrid2 algorithm across varying forecasting horizons.

Discussion

The primary contribution of the present study lies in providing an accurate, context-driven empirical forecast of emergency department (ED) arrivals by building upon established ARIMA–ANN frameworks. It offers new evidence on the applicability and performance of these hybrid models in a highly volatile healthcare environment. Three aspects distinguish this work from previous studies; First, it delivers a comprehensive evaluation of hybrid time-series models in the context of Mashhad, Iran, where patient arrivals are strongly influenced by religious holidays, tourism, and diverse seasonal patterns. Second, use of the Maximal Information Coefficient (MIC) as a data-driven approach for selecting both calendar and meteorological predictors, ensuring that only meaningful exogenous variables are incorporated into the ARMAX model. Third, by analyzing forecast performance across short-, intermediate-, and long-term horizons, the study demonstrates how such combinations can improve the stability and operational usefulness of forecasts for emergency department (ED) management. Rather than proposing fundamentally new algorithms, this research advances practical understanding by adapting and validating hybrid forecasting strategies for a regional ED setting with high variability, thereby offering evidence-based guidance for data-informed healthcare planning and decision-making.

Accurate forecasts of future patients’ arrivals in emergency departments are necessary for health decision processes [18]. The present study specifically addresses the context of emergency departments in Iran, considering local factors and characteristics that may influence patient arrivals. Mashhad is the second largest city in Iran, many people travel to this city because of its religious and tourist attractions. For this reason, the number of referees to the emergency department suddenly increases during holidays and religious occasions, so the volatility in their time series data is extremely high. This city has really four seasons and the weather changes accordingly. The weather in spring is very nice for travel destinations but in summer, it has a hot month. At the half of the last month of summer, autumn comes with a cool breeze and then a cold and dry winter began. Therefore, this study emphasizes the inclusion of both calendar and meteorological features as significant predictors for patient arrivals [8–13,19]. The advanced statistical techniques for data preprocessing, including the use of MIC and modified FDR control procedures to adjust p-values for multiple comparisons is the highlights of this study. This nonparametric method allows for a comprehensive exploration of the relationships between input features and patient arrivals, accommodating nonlinear associations that traditional correlation methods might miss [10,20]. The role of MIC-based feature selection in this study should be interpreted with caution. MIC was applied exclusively to ARIMAX and GLM models to enhance model stability and interpretability by limiting the inclusion of highly dependent or weakly informative exogenous variables. In contrast, ANN and LSTM models were trained using the full set of calendar and meteorological features, leveraging their ability to handle complex and high-dimensional inputs. Consequently, the performance gains observed in hybrid models—particularly Hybrid2—cannot be attributed solely to MIC-based feature selection, but rather to the integration of complementary modeling structures and the statistical stabilization achieved through combining linear and nonlinear forecasts.

The results of this study offer strong evidence that standalone ARIMAX and ANN models lack sufficient accuracy, highlighting the need for hybrid forecasting algorithms to predict daily patient arrivals in Emergency Departments (ED). Combining Auto-Regressive Integrated Moving Average (ARIMA/ARIMAX) with Artificial Neural Networks (ANN) not only improves predictive accuracy but also tackles the complexities of patient arrival patterns affected by various external factors. These conclusions align with findings from earlier studies [14–16]. Compared to the hybrid algorithm proposed by Zhang et al. (2003), this algorithm offers greater flexibility in utilizing the residuals of ARIMAX. Since ARIMAX tends to underestimate forecasts, its residuals may exhibit potential bias. Consequently, incorporating forecasts based on the ANN algorithm into the ARIMAX residuals could not enhance the accuracy of the ARIMAX forecast for the current time series [1]. In our study, the kurtosis of the ARIMAX and ANN residuals, influenced by the exogenous input features, was not significantly greater than 3. Therefore, the hybrid approach proposed by Babu (2014), which suggests using an MA filter for high-low volatility decomposition in time series [2], is not suitable.

The performance of Hybrid2 Algorithm, which combines the strengths of both ARIMA and ANN, illustrates the advantages of utilizing hybrid approaches in time series forecasting. Traditional ARIMA algorithms are adept at capturing linear relationships within time series data, while ANN excels in capturing nonlinear patterns [1–3]. The importance of the input features for ARIMAX and ANN, illustrated in Figure..., reveals a complex relationship between these features and the raw time series data. Some of these relationships identified by ARIMAX, while ANN captured others. By combining these algorithms, the hybrid models can effectively address the intricate nature of patient arrivals, which frequently display both linear trends and nonlinear fluctuations due to seasonal variations, holidays, and other external factors [14–16].

The significant impact of calendar and meteorological features on patient arrivals highlights the necessity of incorporating contextual factors into forecasting algorithms. For instance, variations in weather conditions, such as extreme temperatures or precipitation, can influence the frequency of ED visits, as certain health issues may have exacerbated by specific weather patterns. Similarly, calendar events, including weekends, holidays, and local festivities, tend to affect patient behavior and demand for emergency services. This study underscores the importance of local context in predictive algorithms, suggesting that hospitals should tailor their algorithms to reflect the unique characteristics of their patient populations and regional influences, which supported by previous studies [14,16–20].

The implications of this research extend beyond theoretical advancements. The results offer practical solutions for healthcare administrators. Accurate forecasting of patient arrivals is crucial for optimizing resource allocation, staffing, and operational efficiency within emergency departments. By utilizing the proposed hybrid algorithms, hospitals can better anticipate fluctuations in patient volume, thereby enhancing their ability to manage peak times and reduce wait times. This proactive approach can lead to improved patient satisfaction and outcomes; as timely care is essential in emergency settings [14–22].

Despite the promising results, this study acknowledges certain limitations. The reliance on historical data from a specific timeframe may not capture sudden changes in patient behavior due to unforeseen circumstances, such as pandemics or public health crises. Therefore, continuous algorithm updating and recalibration will be necessary to maintain accuracy over time. Additionally, the complexity of the algorithms may pose challenges in terms of implementation for smaller healthcare facilities with limited resources and expertise in advanced analytics.

While this study provides a solid foundation for the application of hybrid forecasting algorithms in healthcare, several avenues for future research remain. Expanding the dataset to include additional features—such as socioeconomic indicators, public health trends, and historical patient data—could further enhance algorithm accuracy. Additionally, exploring the integration of machine learning techniques such as ensemble methods including ARIMA and other statistical methods yield to more robust predictive capabilities.

In summary, the results of this study provide strong evidence for the superiority of hybrid ARIMA-ANN algorithms in forecasting daily patient arrivals in Emergency Departments. The significant improvements in accuracy and reliability highlight the potential of these methodologies to transform healthcare analytics and support informed decision-making in emergency care settings.

Conclusion

This study demonstrates that both hybrid algorithms outperform the individual ARIMAX and ANN algorithms across all accuracy metrics. Notably, Hybrid2 achieves the highest overall performance, displaying the effectiveness of combining the strengths of ARIMAX and ANN to tackle the complexities of patient arrival patterns. The reduction in error metrics associated with the hybrid algorithms highlights their ability to enhance forecasting accuracy. By integrating both ARIMA and ANN methodologies, these algorithms are better position to capture the nuances of patient arrivals, leading to forecasts that are more reliable. This analysis suggests that adopting hybrid approaches can significantly improve forecasting efforts in healthcare settings, especially in emergency departments where accurate predictions are essential for resource allocation and patient care.

The analysis also revealed that both calendar and meteorological features are crucial in influencing patient arrivals. By incorporating these features into the forecasting algorithms, the hybrid models effectively captured the complexities and nonlinearities present in patient arrival data. This integration not only enhanced the predictive capabilities of the algorithms but also provided valuable insights into the factors affecting patient flow in the emergency department.

The implications of this research are significant for healthcare decision-makers. Accurate forecasting of patient arrivals is vital for optimizing staffing, managing medical supplies, and reducing wait times in emergency care settings. The proposed hybrid algorithms can serve as valuable tools for hospital administrators and policymakers, enabling informed decisions based on reliable forecasts. Utilizing short, intermediate, and long-term forecasts is crucial for optimizing staff rotations and schedules. By leveraging these diverse time horizons, organizations can ensure that they have the right number of staff available to meet varying demands throughout the day, week, or month. Short-term forecasts allow for immediate adjustments, while intermediate and long-term forecasts help in strategic planning and resource allocation.

Additionally, it is essential to account for influential factors that can change abruptly, such as weather conditions, public events, or unexpected surges in patient arrivals. These factors can significantly influence staffing needs and operational efficiency. Therefore, updating forecasts regularly in response to these changes is vital. Implementing a dynamic forecasting system that incorporates real-time data can enhance responsiveness and ensure that staffing levels remain aligned with actual demand.

Moreover, engaging with staff to gather insights on their availability and preferences can further refine scheduling practices. This collaborative approach not only improves staff satisfaction but also enhances overall service delivery. By integrating predictive analytics with flexible scheduling strategies, organizations can better navigate the complexities of staffing in a rapidly changing environment, ultimately leading to improved operational effectiveness and enhanced patient care. Furthermore, the study emphasizes the importance of local calibration in predictive algorithms. Given the variability in patient arrivals influenced by cultural, seasonal, and meteorological factors, algorithms must be tailor to reflect the specific characteristics of each healthcare facility. Future research should investigate the application of these hybrid algorithms in various geographical contexts and expand the dataset to include additional input features, such as socioeconomic factors and public health events.

Supporting information

S1 File. R and Python Codes.

(ZIP)

pone.0347866.s001.zip (5.8KB, zip)
S2 File. Integrated Data.

(CSV)

pone.0347866.s002.csv (70.7KB, csv)

Acknowledgments

This paper is an extension of MSc thesis of AAM under the supervision of AS at the Department of Epidemiology and Biostatistics, School of Health, Mashhad University of Medical Sciences.

Data Availability

The integrated time series of ED arrivals prepared for the current study are available at the S2 File.

Funding Statement

The author(s) received no specific funding for this work.

References

  • 1.Zhang GP. Time series forecasting using a hybrid ARIMA and neural network model. Neurocomputing. 2003;50:159–75. [Google Scholar]
  • 2.Babu CN, Reddy BE. A moving-average filter based hybrid ARIMA–ANN model for forecasting time series data. Appl Soft Comput. 2014;23:27–38. doi: 10.1016/j.asoc.2014.05.028 [DOI] [Google Scholar]
  • 3.Babu CN, Reddy BE. Performance comparison of four new ARIMA-ANN Prediction Models on Internet Traffic Data. JTIT. 2015;(1):67–75. doi: 10.26636/jtit.2015.1.780 [DOI] [Google Scholar]
  • 4.Luo L, Luo L, Zhang X, He X. Hospital daily outpatient visits forecasting using a combinatorial model based on ARIMA and SES models. BMC Health Serv Res. 2017;17(1):469. doi: 10.1186/s12913-017-2407-9 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.Jilani T, Housley G, Figueredo G, Tang P-S, Hatton J, Shaw D. Short and long term predictions of hospital emergency department attendances. Int J Med Inform. 2019;129:167–74. doi: 10.1016/j.ijmedinf.2019.05.011 [DOI] [PubMed] [Google Scholar]
  • 6.Yucesan M, Gul M, Celik E. A multi-method patient arrival forecasting outline for hospital emergency departments. Inter J Healthcare Manag. 2018;13(sup1):283–95. doi: 10.1080/20479700.2018.1531608 [DOI] [Google Scholar]
  • 7.Erkamp NS, van Dalen DH, de Vries E. Predicting emergency department visits in a large teaching hospital. Int J Emerg Med. 2021;14(1):34. doi: 10.1186/s12245-021-00357-6 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Vollmer MAC, Glampson B, Mellan T, Mishra S, Mercuri L, Costello C, et al. A unified machine learning approach to time series forecasting applied to demand at emergency departments. BMC Emerg Med. 2021;21(1):9. doi: 10.1186/s12873-020-00395-y [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Rocha CN, Rodrigues F. Forecasting emergency department admissions. Intell Data Analy. 2021;25(6):1579–601. doi: 10.3233/ida-205390 [DOI] [Google Scholar]
  • 10.Zhang Y, Zhang J, Tao M, Shu J, Zhu D. Forecasting patient arrivals at emergency department using calendar and meteorological information. Appl Intell (Dordr). 2022;52(10):11232–43. doi: 10.1007/s10489-021-03085-9 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Tuominen J, Lomio F, Oksala N, Palomäki A, Peltonen J, Huttunen H, et al. Forecasting daily emergency department arrivals using high-dimensional multivariate data: a feature selection approach. BMC Med Inform Decis Mak. 2022;22(1):134. doi: 10.1186/s12911-022-01878-7 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Gafni-Pappas G, Khan M. Predicting daily emergency department visits using machine learning could increase accuracy. Am J Emerg Med. 2023;65:5–11. doi: 10.1016/j.ajem.2022.12.019 [DOI] [PubMed] [Google Scholar]
  • 13.Iftikhar H, Daniyal M, Qureshi M, Tawaiah K, Ansah RK, Afriyie JK. A hybrid forecasting technique for infection and death from the mpox virus. Digit Health. 2023;9:20552076231204748. doi: 10.1177/20552076231204748 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Jiang S, Liu Q, Ding B. A systematic review of the modelling of patient arrivals in emergency departments. Quant Imag Med Surg. 2023;13(3):1957–71. doi: 10.21037/qims-22-268 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Silva E, Pereira MF, Vieira JT, Ferreira-Coimbra J, Henriques M, Rodrigues NF. Predicting hospital emergency department visits accurately: a systematic review. Int J Health Plann Manage. 2023;38(4):904–17. doi: 10.1002/hpm.3629 [DOI] [PubMed] [Google Scholar]
  • 16.Peláez-Rodríguez C, Torres-López R, Pérez-Aracil J, López-Laguna N, Sánchez-Rodríguez S, Salcedo-Sanz S. An explainable machine learning approach for hospital emergency department visits forecasting using continuous training and multi-model regression. Comput Methods Programs Biomed. 2024;245:108033. doi: 10.1016/j.cmpb.2024.108033 [DOI] [PubMed] [Google Scholar]
  • 17.Albanese D, Riccadonna S, Donati C, Franceschi P. A practical tool for maximal information coefficient analysis. Gigascience. 2018;7(4):1–8. doi: 10.1093/gigascience/giy032 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Rastaghi S, Saki A, Tabesh H. Modifying the false discovery rate procedure based on the information theory under arbitrary correlation structure and its performance in high-dimensional genomic data. BMC Bioinformatics. 2024;25(1):57. doi: 10.1186/s12859-024-05678-w [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.Samadbeik M, Staib A, Boyle J, Khanna S, Bosley E, Bodnar D, et al. Patient flow in emergency departments: a comprehensive umbrella review of solutions and challenges across the health system. BMC Health Serv Res. 2024;24(1):274. doi: 10.1186/s12913-024-10725-6 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Fan B, Peng J, Guo H, Gu H, Xu K, Wu T. Accurate forecasting of emergency department arrivals with internet search index and machine learning models: model development and performance evaluation. JMIR Med Inform. 2022;10(7):e34504. doi: 10.2196/34504 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Tabesh H, Karimi Z, Rastaghi S, Saki A. Quality control of hospitals and its effect on hospitalized fatality rate of COVID-19. Sci Rep. 2025;15(1):5024. doi: 10.1038/s41598-025-89658-x [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Hadianfar A, Rastaghi S, Saki A. Evaluation of the relative risk of COVID-19 mortality based on the number of hospitalizations in Iran using a log-linear distributed lag model. Iranian J Epidemiol. 2021;16(Special Issue):20–8. [Google Scholar]

Decision Letter 0

Youngsang Cho

23 Sep 2025

-->PONE-D-25-37594-->-->Comparison of ARIMAX, Artificial Neural Networks and Hybrid ARIMAX-ANN Algorithms for Forecasting the Daily Number of Patients Arrivals in Emergency Department-->-->PLOS ONE

Dear Dr. Saki,

Thank you for submitting your manuscript to PLOS ONE. After careful consideration, we feel that it has merit but does not fully meet PLOS ONE’s publication criteria as it currently stands. Therefore, we invite you to submit a revised version of the manuscript that addresses the points raised during the review process.

Please submit your revised manuscript by Nov 06 2025 11:59PM. If you will need more time than this to complete your revisions, please reply to this message or contact the journal office at plosone@plos.org. When you're ready to submit your revision, log on to https://www.editorialmanager.com/pone/ and select the 'Submissions Needing Revision' folder to locate your manuscript file.. When you're ready to submit your revision, log on to https://www.editorialmanager.com/pone/ and select the 'Submissions Needing Revision' folder to locate your manuscript file.

Please include the following items when submitting your revised manuscript:-->

  • A rebuttal letter that responds to each point raised by the academic editor and reviewer(s). You should upload this letter as a separate file labeled 'Response to Reviewers'.

  • A marked-up copy of your manuscript that highlights changes made to the original version. You should upload this as a separate file labeled 'Revised Manuscript with Track Changes'.

  • An unmarked version of your revised paper without tracked changes. You should upload this as a separate file labeled 'Manuscript'.

If you would like to make changes to your financial disclosure, please include your updated statement in your cover letter. Guidelines for resubmitting your figure files are available below the reviewer comments at the end of this letter.

If applicable, we recommend that you deposit your laboratory protocols in protocols.io to enhance the reproducibility of your results. Protocols.io assigns your protocol its own identifier (DOI) so that it can be cited independently in the future. For instructions see: https://journals.plos.org/plosone/s/submission-guidelines#loc-laboratory-protocols. Additionally, PLOS ONE offers an option for publishing peer-reviewed Lab Protocol articles, which describe protocols hosted on protocols.io. Read more information on sharing protocols at . Additionally, PLOS ONE offers an option for publishing peer-reviewed Lab Protocol articles, which describe protocols hosted on protocols.io. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols..

We look forward to receiving your revised manuscript.

Kind regards,

Youngsang Cho

Academic Editor

PLOS ONE

Journal requirements:

When submitting your revision, we need you to address these additional requirements.

1. Please ensure that your manuscript meets PLOS ONE's style requirements, including those for file naming. The PLOS ONE style templates can be found at

https://journals.plos.org/plosone/s/file?id=wjVg/PLOSOne_formatting_sample_main_body.pdf and

https://journals.plos.org/plosone/s/file?id=ba62/PLOSOne_formatting_sample_title_authors_affiliations.pdf

2. Please note that PLOS One has specific guidelines on code sharing for submissions in which author-generated code underpins the findings in the manuscript. In these cases, we expect all author-generated code to be made available without restrictions upon publication of the work. Please review our guidelines at https://journals.plos.org/plosone/s/materials-and-software-sharing#loc-sharing-code and ensure that your code is shared in a way that follows best practice and facilitates reproducibility and reuse.

3. Please include your full ethics statement in the ‘Methods’ section of your manuscript file. In your statement, please include the full name of the IRB or ethics committee who approved or waived your study, as well as whether or not you obtained informed written or verbal consent. If consent was waived for your study, please include this information in your statement as well.

4. If the reviewer comments include a recommendation to cite specific previously published works, please review and evaluate these publications to determine whether they are relevant and should be cited. There is no requirement to cite these works unless the editor has indicated otherwise.

Additional Editor Comments:

Reviewer #1:

This paper appears to be an attempt to propose an interesting model in the field of time series prediction, but it is not suitable for publication in its current state due to insufficient presentation of the problem definition, inadequate comparative experiments, limitations in performance evaluation, and lack of reproducibility.

In particular, it is essential to conduct a fair comparison with the latest time series models, clarify the hyperparameter optimisation process, introduce various performance metrics and statistical tests, and ensure the interpretability of variables. Additionally, the paper must present its applicability and research contribution in a more persuasive manner.

Therefore, this paper requires a major revision, and it is judged that it will only have publication value if the aforementioned issues are thoroughly addressed.

1. This paper aims to improve performance in specific prediction problems (time series-based), but it is unclear how it specifically fills the gap compared to existing research. It must be clarified whether it simply applies a new model or modifies an existing model, or whether it provides new insights in actual industrial/social applications. The motivation for ‘why this research is necessary’ is lacking.

2. The description of the data set's source, collection process, and preprocessing methods (missing value handling, outlier removal, normalisation, etc.) is insufficient. In particular, in time series prediction research, the periodicity, seasonality, and trend characteristics of the data are important, and the results of exploratory analysis (ACF, PACF, time series decomposition, etc.) should be presented. Otherwise, it is difficult to judge the validity of the modelling.

3. The paper mentions hyperparameter settings during model training, but the rationale is insufficient. It should clearly state whether the default values were used or whether methods such as grid search or Bayesian optimisation were applied. The performance of time series prediction models is sensitive to parameters such as learning rate, window size, and hidden dimension, so failure to address these systematically weakens the credibility of the research.

4. Only a few evaluation metrics such as RMSE or MAE were used, which are insufficient to adequately address model characteristics and problem definitions. It is necessary to present various metrics such as MAPE, SMAPE, and R² to verify prediction bias. In addition, statistical significance tests (e.g., Diebold-Mariano test) should be used to prove that the performance differences between models are meaningful.

5. The paper focuses solely on improving model performance, but does not analyse which variables (features) contributed significantly to the prediction. In particular, time series prediction research needs to strengthen its explanatory power through variable importance (feature importance) and attention weight visualisation when considering practical application. Simply stating that ‘the accuracy is high’ limits the academic and practical contributions.

6. The reproducibility is low because the experimental code, parameter details, and hardware/software environment are not specified. In particular, ensuring reproducibility is important in the latest time series model research, but this paper overlooks this point. At the very least, pseudocode, data split method (train/valid/test ratio), and random seed settings should be provided.

7. In the literature review, recent studies on deep learning models for time series prediction published in the last two to three years were not sufficiently cited. In particular, studies on Transformer-based prediction were omitted, which is a major flaw in clearly establishing the position of this study in academia.

8. Lack of discussion on how the model presented in the paper can be applied in actual industries, policies, or services. It is difficult to judge the application value based solely on the result that ‘prediction accuracy has improved.’

Reviewer #2:

This manuscript addresses a highly relevant and practice-oriented issue: forecasting daily patient arrivals in emergency departments (EDs) by combining time series and machine learning techniques. The integration of calendar and meteorological variables with both ARIMAX and ANN, along with the development of two hybrid algorithms, is a valuable contribution to healthcare operations research. The comparative evaluation across multiple horizons (short, intermediate, and long term) further enhances the practical applicability of the findings. That said, several conceptual and methodological issues should be addressed to maximize the clarity and impact of the study. The manuscript would benefit from a more structured framing of the literature review, stronger justification for benchmark model selection, clearer reporting of ANN architecture and hyperparameter optimization, and deeper interpretation of horizon-specific performance differences. Additionally, highlighting the unique contributions of this study—beyond confirming the established role of calendar and meteorological factors—would strengthen its significance.

- The manuscript cites a large number of related studies in the introduction; however, these references are presented in a rather descriptive manner, without offering a coherent narrative. Summarizing the common implications and insights of prior research, and explicitly linking their limitations to the distinctive contributions of this study, would make the introduction more structured and persuasive.

- The study proposes two hybrid models and compares them with ARIMA and ANN. However, alternative hybrid models proposed in previous studies, such as the MA-filter based hybrid ARIMA–ANN algorithm (Babu et al., 2014) and the fuzzy time series algorithm (Jilani et al., 2019), were not included as benchmarks. The rationale for excluding these models should be clarified in more detail.

- The manuscript mentions that 40 hidden nodes were used in the ANN model, but it is unclear whether the number of hidden layers was fixed at one. If a single hidden layer was adopted, was this the result of hyperparameter optimization or the authors’ discretion? Furthermore, discussing how ANN performance changes with different configurations of hidden layers and nodes would strengthen the robustness of the modeling approach.

- Figure 6 shows that the variable importance differs across ARIMAX and ANN, even when the same variables are used. An explanation of whether this difference stems from the contrast between linear and nonlinear approaches, or from other factors, would enhance the interpretability of the results.

- Typically, ANN analyses utilize a broad set of input variables to leverage its predictive capacity. In contrast, this study employed the Maximal Information Coefficient (MIC) approach for variable selection. Providing comparative evidence of model performance with and without the MIC approach would make the methodological contribution clearer.

- It remains unclear how the dataset was divided into training, validation, and testing sets, and whether repeated experiments were conducted to ensure robustness. Since data splitting strategies and hyperparameter tuning can significantly affect model performance, Table 2 alone may not provide sufficient evidence to conclude that one model is superior to another.

- The results show that the best-performing model differs by horizon: Hybrid1 performs best in the short horizon, whereas Hybrid2 performs better in the intermediate horizon. The reasons for these differences should be discussed in more depth. Additionally, from a practitioner’s perspective, guidance is needed on which model to use for short-, medium-, and long-term scheduling. If different models are to be applied depending on the time horizon, recommendations on how to integrate their outputs would be valuable.

- The finding that calendar and meteorological variables significantly influence patient arrivals is consistent with prior literature and may even be considered self-evident. The conclusion would be strengthened by emphasizing what is newly discovered in this study or highlighting its unique contributions beyond confirming established results.

[Note: HTML markup is below. Please do not edit.]

Reviewers' comments:

Reviewer's Responses to Questions

-->Comments to the Author

1. Is the manuscript technically sound, and do the data support the conclusions?

The manuscript must describe a technically sound piece of scientific research with data that supports the conclusions. Experiments must have been conducted rigorously, with appropriate controls, replication, and sample sizes. The conclusions must be drawn appropriately based on the data presented. -->

Reviewer #1: Yes

Reviewer #2: Yes

**********

-->2. Has the statistical analysis been performed appropriately and rigorously? -->

Reviewer #1: Yes

Reviewer #2: No

**********

-->3. Have the authors made all data underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data—e.g. participant privacy or use of data from a third party—those must be specified.requires authors to make all data underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data—e.g. participant privacy or use of data from a third party—those must be specified.-->

Reviewer #1: No

Reviewer #2: No

**********

-->4. Is the manuscript presented in an intelligible fashion and written in standard English?

PLOS ONE does not copyedit accepted manuscripts, so the language in submitted articles must be clear, correct, and unambiguous. Any typographical or grammatical errors should be corrected at revision, so please note any specific errors here.-->

Reviewer #1: Yes

Reviewer #2: Yes

**********

-->5. Review Comments to the Author

Please use the space provided to explain your answers to the questions above. You may also include additional comments for the author, including concerns about dual publication, research ethics, or publication ethics. (Please upload your review as an attachment if it exceeds 20,000 characters)-->

Reviewer #1: This paper appears to be an attempt to propose an interesting model in the field of time series prediction, but it is not suitable for publication in its current state due to insufficient presentation of the problem definition, inadequate comparative experiments, limitations in performance evaluation, and lack of reproducibility.

In particular, it is essential to conduct a fair comparison with the latest time series models, clarify the hyperparameter optimisation process, introduce various performance metrics and statistical tests, and ensure the interpretability of variables. Additionally, the paper must present its applicability and research contribution in a more persuasive manner.

Therefore, this paper requires a major revision, and it is judged that it will only have publication value if the aforementioned issues are thoroughly addressed.

1. This paper aims to improve performance in specific prediction problems (time series-based), but it is unclear how it specifically fills the gap compared to existing research. It must be clarified whether it simply applies a new model or modifies an existing model, or whether it provides new insights in actual industrial/social applications. The motivation for ‘why this research is necessary’ is lacking.

2. The description of the data set's source, collection process, and preprocessing methods (missing value handling, outlier removal, normalisation, etc.) is insufficient. In particular, in time series prediction research, the periodicity, seasonality, and trend characteristics of the data are important, and the results of exploratory analysis (ACF, PACF, time series decomposition, etc.) should be presented. Otherwise, it is difficult to judge the validity of the modelling.

3. The paper mentions hyperparameter settings during model training, but the rationale is insufficient. It should clearly state whether the default values were used or whether methods such as grid search or Bayesian optimisation were applied. The performance of time series prediction models is sensitive to parameters such as learning rate, window size, and hidden dimension, so failure to address these systematically weakens the credibility of the research.

4. Only a few evaluation metrics such as RMSE or MAE were used, which are insufficient to adequately address model characteristics and problem definitions. It is necessary to present various metrics such as MAPE, SMAPE, and R² to verify prediction bias. In addition, statistical significance tests (e.g., Diebold-Mariano test) should be used to prove that the performance differences between models are meaningful.

5. The paper focuses solely on improving model performance, but does not analyse which variables (features) contributed significantly to the prediction. In particular, time series prediction research needs to strengthen its explanatory power through variable importance (feature importance) and attention weight visualisation when considering practical application. Simply stating that ‘the accuracy is high’ limits the academic and practical contributions.

6. The reproducibility is low because the experimental code, parameter details, and hardware/software environment are not specified. In particular, ensuring reproducibility is important in the latest time series model research, but this paper overlooks this point. At the very least, pseudocode, data split method (train/valid/test ratio), and random seed settings should be provided.

7. In the literature review, recent studies on deep learning models for time series prediction published in the last two to three years were not sufficiently cited. In particular, studies on Transformer-based prediction were omitted, which is a major flaw in clearly establishing the position of this study in academia.

8. Lack of discussion on how the model presented in the paper can be applied in actual industries, policies, or services. It is difficult to judge the application value based solely on the result that ‘prediction accuracy has improved.’

Reviewer #2: This manuscript addresses a highly relevant and practice-oriented issue: forecasting daily patient arrivals in emergency departments (EDs) by combining time series and machine learning techniques. The integration of calendar and meteorological variables with both ARIMAX and ANN, along with the development of two hybrid algorithms, is a valuable contribution to healthcare operations research. The comparative evaluation across multiple horizons (short, intermediate, and long term) further enhances the practical applicability of the findings. That said, several conceptual and methodological issues should be addressed to maximize the clarity and impact of the study. The manuscript would benefit from a more structured framing of the literature review, stronger justification for benchmark model selection, clearer reporting of ANN architecture and hyperparameter optimization, and deeper interpretation of horizon-specific performance differences. Additionally, highlighting the unique contributions of this study—beyond confirming the established role of calendar and meteorological factors—would strengthen its significance.

- The manuscript cites a large number of related studies in the introduction; however, these references are presented in a rather descriptive manner, without offering a coherent narrative. Summarizing the common implications and insights of prior research, and explicitly linking their limitations to the distinctive contributions of this study, would make the introduction more structured and persuasive.

- The study proposes two hybrid models and compares them with ARIMA and ANN. However, alternative hybrid models proposed in previous studies, such as the MA-filter based hybrid ARIMA–ANN algorithm (Babu et al., 2014) and the fuzzy time series algorithm (Jilani et al., 2019), were not included as benchmarks. The rationale for excluding these models should be clarified in more detail.

- The manuscript mentions that 40 hidden nodes were used in the ANN model, but it is unclear whether the number of hidden layers was fixed at one. If a single hidden layer was adopted, was this the result of hyperparameter optimization or the authors’ discretion? Furthermore, discussing how ANN performance changes with different configurations of hidden layers and nodes would strengthen the robustness of the modeling approach.

- Figure 6 shows that the variable importance differs across ARIMAX and ANN, even when the same variables are used. An explanation of whether this difference stems from the contrast between linear and nonlinear approaches, or from other factors, would enhance the interpretability of the results.

- Typically, ANN analyses utilize a broad set of input variables to leverage its predictive capacity. In contrast, this study employed the Maximal Information Coefficient (MIC) approach for variable selection. Providing comparative evidence of model performance with and without the MIC approach would make the methodological contribution clearer.

- It remains unclear how the dataset was divided into training, validation, and testing sets, and whether repeated experiments were conducted to ensure robustness. Since data splitting strategies and hyperparameter tuning can significantly affect model performance, Table 2 alone may not provide sufficient evidence to conclude that one model is superior to another.

- The results show that the best-performing model differs by horizon: Hybrid1 performs best in the short horizon, whereas Hybrid2 performs better in the intermediate horizon. The reasons for these differences should be discussed in more depth. Additionally, from a practitioner’s perspective, guidance is needed on which model to use for short-, medium-, and long-term scheduling. If different models are to be applied depending on the time horizon, recommendations on how to integrate their outputs would be valuable.

- The finding that calendar and meteorological variables significantly influence patient arrivals is consistent with prior literature and may even be considered self-evident. The conclusion would be strengthened by emphasizing what is newly discovered in this study or highlighting its unique contributions beyond confirming established results.

**********

-->6. PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our For information about this choice, including consent withdrawal, please see our Privacy Policy..-->

Reviewer #1: No

Reviewer #2: No

**********

[NOTE: If reviewer comments were submitted as an attachment file, they will be attached to this email and accessible via the submission site. Please log into your account, locate the manuscript record, and check for the action link "View Attachments". If this link does not appear, there are no attachment files.]

While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, https://pacev2.apexcovantage.com/. PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Registration is free. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email PLOS at . PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Registration is free. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email PLOS at figures@plos.org. Please note that Supporting Information files do not need this step.. Please note that Supporting Information files do not need this step.

PLoS One. 2026 Apr 30;21(4):e0347866. doi: 10.1371/journal.pone.0347866.r002

Author response to Decision Letter 1


11 Dec 2025

Reviewer #1:

This paper appears to be an attempt to propose an interesting model in the field of time series prediction, but it is not suitable for publication in its current state due to insufficient presentation of the problem definition, inadequate comparative experiments, limitations in performance evaluation, and lack of reproducibility.

In particular, it is essential to conduct a fair comparison with the latest time series models, clarify the hyperparameter optimisation process, introduce various performance metrics and statistical tests, and ensure the interpretability of variables. Additionally, the paper must present its applicability and research contribution in a more persuasive manner.

Therefore, this paper requires a major revision, and it is judged that it will only have publication value if the aforementioned issues are thoroughly addressed.

1. This paper aims to improve performance in specific prediction problems (time series-based), but it is unclear how it specifically fills the gap compared to existing research. It must be clarified whether it simply applies a new model or modifies an existing model, or whether it provides new insights in actual industrial/social applications. The motivation for ‘why this research is necessary’ is lacking. Thank you for your valuable comment. We add in the previous research gaps and necessity of our research in lines 90-96 and 115-135 of introduction.

2. The description of the data set's source, collection process, and preprocessing methods (missing value handling, outlier removal, normalisation, etc.) is insufficient. In particular, in time series prediction research, the periodicity, seasonality, and trend characteristics of the data are important, and the results of exploratory analysis (ACF, PACF, time series decomposition, etc.) should be presented. Otherwise, it is difficult to judge the validity of the modelling. Thank you. There are no missing values in data set. And the outliers were not removed from data sets, because theses outliers are inherent behavior of the ED data set. The ACF and PACF show in Fig 5, and the periodicity and seasonality described in lines 553-563. Also there was no time trend (during years) to decomposition from time series before analysis.

3. The paper mentions hyperparameter settings during model training, but the rationale is insufficient. It should clearly state whether the default values were used or whether methods such as grid search or Bayesian optimisation were applied. The performance of time series prediction models is sensitive to parameters such as learning rate, window size, and hidden dimension, so failure to address these systematically weakens the credibility of the research. Thank you. We describe more in method section lines 281-285. “Extreme Learning Machine (ELM) for time series forecasting is a fast and efficient neural network-based approach that leverages a single-layer feedforward neural network (SLFN) structure. The key idea behind ELM is that the input weights and hidden layer biases are randomly assigned and remain fixed during training, while only the output weights are learned, typically by solving a linear system using matrix pseudo-inversion.

4. Only a few evaluation metrics such as RMSE or MAE were used, which are insufficient to adequately address model characteristics and problem definitions. It is necessary to present various metrics such as MAPE, SMAPE, and R² to verify prediction bias. In addition, statistical significance tests (e.g., Diebold-Mariano test) should be used to prove that the performance differences between models are meaningful. Thank you in advance for this valuable recommendation. We add all these indices in manuscript.

5. The paper focuses solely on improving model performance, but does not analyse which variables (features) contributed significantly to the prediction. In particular, time series prediction research needs to strengthen its explanatory power through variable importance (feature importance) and attention weight visualisation when considering practical application. Simply stating that ‘the accuracy is high’ limits the academic and practical contributions. Thank you. We add the results of ARIMAX in table1, and feature importance of ANN in Fig6. Also more details of variable importance in lines 572-577.

6. The reproducibility is low because the experimental code, parameter details, and hardware/software environment are not specified. In particular, ensuring reproducibility is important in the latest time series model research, but this paper overlooks this point. At the very least, pseudocode, data split method (train/valid/test ratio), and random seed settings should be provided. Thank you. We add all data and codes in supplementary files.

7. In the literature review, recent studies on deep learning models for time series prediction published in the last two to three years were not sufficiently cited. In particular, studies on Transformer-based prediction were omitted, which is a major flaw in clearly establishing the position of this study in academia. Thank you for your suggestion. Our literature review have two aspects: 1- hybride forecastying models 2- models for ED arrivals. We find and read this paper:

“Su, L., Zuo, X., Li, R., Wang, X., Zhao, H., & Huang, B. (2025). A systematic review for transformer-based long-term series forecasting. Artificial Intelligence Review, 58(3), 80.”

So, we find that this models are not popular in ED arrival forecasting.

8. Lack of discussion on how the model presented in the paper can be applied in actual industries, policies, or services. It is difficult to judge the application value based solely on the result that ‘prediction accuracy has improved.’ Thank you. This concerns added in lines 652-672 of discussion.

Reviewer #2:

This manuscript addresses a highly relevant and practice-oriented issue: forecasting daily patient arrivals in emergency departments (EDs) by combining time series and machine learning techniques. The integration of calendar and meteorological variables with both ARIMAX and ANN, along with the development of two hybrid algorithms, is a valuable contribution to healthcare operations research. The comparative evaluation across multiple horizons (short, intermediate, and long term) further enhances the practical applicability of the findings. That said, several conceptual and methodological issues should be addressed to maximize the clarity and impact of the study. The manuscript would benefit from a more structured framing of the literature review, stronger justification for benchmark model selection, clearer reporting of ANN architecture and hyperparameter optimization, and deeper interpretation of horizon-specific performance differences. Additionally, highlighting the unique contributions of this study—beyond confirming the established role of calendar and meteorological factors—would strengthen its significance.

- The manuscript cites a large number of related studies in the introduction; however, these references are presented in a rather descriptive manner, without offering a coherent narrative. Summarizing the common implications and insights of prior research, and explicitly linking their limitations to the distinctive contributions of this study, would make the introduction more structured and persuasive.

- The study proposes two hybrid models and compares them with ARIMA and ANN. However, alternative hybrid models proposed in previous studies, such as the MA-filter based hybrid ARIMA–ANN algorithm (Babu et al., 2014) and the fuzzy time series algorithm (Jilani et al., 2019), were not included as benchmarks. The rationale for excluding these models should be clarified in more detail. Thank you for your valuable comment. We add in the previous research gaps and necessity of our research in lines 90-96 and 115-135 of introduction. And revised the literature review accordingly.

- The manuscript mentions that 40 hidden nodes were used in the ANN model, but it is unclear whether the number of hidden layers was fixed at one. If a single hidden layer was adopted, was this the result of hyperparameter optimization or the authors’ discretion? Furthermore, discussing how ANN performance changes with different configurations of hidden layers and nodes would strengthen the robustness of the modeling approach. Thank you. We describe more in method section lines 281-285. “Extreme Learning Machine (ELM) for time series forecasting is a fast and efficient neural network-based approach that leverages a single-layer feedforward neural network (SLFN) structure. The key idea behind ELM is that the input weights and hidden layer biases are randomly assigned and remain fixed during training, while only the output weights are learned, typically by solving a linear system using matrix pseudo-inversion.

- Figure 6 shows that the variable importance differs across ARIMAX and ANN, even when the same variables are used. An explanation of whether this difference stems from the contrast between linear and nonlinear approaches, or from other factors, would enhance the interpretability of the results. Thank you. We add the results of ARIMAX in table1, and feature importance of ANN in Fig6. Also more details of variable importance in lines 572-577.

- Typically, ANN analyses utilize a broad set of input variables to leverage its predictive capacity. In contrast, this study employed the Maximal Information Coefficient (MIC) approach for variable selection. Providing comparative evidence of model performance with and without the MIC approach would make the methodological contribution clearer. Thank you. The feature selection by MIC were done in ARIMAX not ANN. All input features included in ANN.

- It remains unclear how the dataset was divided into training, validation, and testing sets, and whether repeated experiments were conducted to ensure robustness. Since data splitting strategies and hyperparameter tuning can significantly affect model performance, Table 2 alone may not provide sufficient evidence to conclude that one model is superior to another. Thank you. In lines 172-177 we add details of test and train data partitioning: Model training utilized the initial 1008 days (equivalent to 144 weeks) of available data. To evaluate the robustness of algorithms and forecasting accuracies, the remaining 84 days (12 weeks) were held out for testing. This standardized train/test partition was maintained uniformly across the evaluation of all algorithms: Artificial Neural Network (ANN), ARIMAX, proposed Hybrid models, Long Short-Term Memory (LSTM), and Generalized Linear Model (GLM). Also, we addressed all these concerns in the manuscript.

- The results show that the best-performing model differs by horizon: Hybrid1 performs best in the short horizon, whereas Hybrid2 performs better in the intermediate horizon. The reasons for these differences should be discussed in more depth. Additionally, from a practitioner’s perspective, guidance is needed on which model to use for short-, medium-, and long-term scheduling. If different models are to be applied depending on the time horizon, recommendations on how to integrate their outputs would be valuable. Thank you. It is recommended that the Hybrid 2 is reasonable at all horizons.

- The finding that calendar and meteorological variables significantly influence patient arrivals is consistent with prior literature and may even be considered self-evident. The conclusion would be strengthened by emphasizing what is newly discovered in this study or highlighting its unique contributions beyond confirming established results. Thank you. This concerns added in lines 652-672 of discussion, and in lines 729-735 of conclusion.

Attachment

Submitted filename: Response to reviewer.pdf

pone.0347866.s003.pdf (347.2KB, pdf)

Decision Letter 1

Youngsang Cho

19 Feb 2026

-->-->PONE-D-25-37594R1-->-->Enhancing the Forecast Accuracy of the Daily Number of Patients Arrivals in Emergency Department by Hybrid ARIMAX-ANN Algorithm-->-->PLOS One

Dear Dr. Saki,

Thank you for submitting your manuscript to PLOS ONE. After careful consideration, we feel that it has merit but does not fully meet PLOS ONE’s publication criteria as it currently stands. Therefore, we invite you to submit a revised version of the manuscript that addresses the points raised during the review process.-->

Especially, please revise the manuscript in light of the reviewer's comments regarding the clarification of research contribution and novelty, fairness in model comparison (experimental design), and the overstatement of the role of MIC-based feature selection.

Please submit your revised manuscript by Apr 05 2026 11:59PM. If you will need more time than this to complete your revisions, please reply to this message or contact the journal office at plosone@plos.org. When you're ready to submit your revision, log on to https://www.editorialmanager.com/pone/ and select the 'Submissions Needing Revision' folder to locate your manuscript file.. When you're ready to submit your revision, log on to https://www.editorialmanager.com/pone/ and select the 'Submissions Needing Revision' folder to locate your manuscript file.

Please include the following items when submitting your revised manuscript:

  • A letter that responds to each point raised by the academic editor and reviewer(s). You should upload this letter as a separate file labeled 'Response to Reviewers'.

  • A marked-up copy of your manuscript that highlights changes made to the original version. You should upload this as a separate file labeled 'Revised Manuscript with Track Changes'.

  • An unmarked version of your revised paper without tracked changes. You should upload this as a separate file labeled 'Manuscript'.

If you would like to make changes to your financial disclosure, please include your updated statement in your cover letter. Guidelines for resubmitting your figure files are available below the reviewer comments at the end of this letter.

-->If applicable, we recommend that you deposit your laboratory protocols in protocols.io to enhance the reproducibility of your results. Protocols.io assigns your protocol its own identifier (DOI) so that it can be cited independently in the future. For instructions see: https://journals.plos.org/plosone/s/submission-guidelines#loc-laboratory-protocols. Additionally, PLOS ONE offers an option for publishing peer-reviewed Lab Protocol articles, which describe protocols hosted on protocols.io. Read more information on sharing protocols at . Additionally, PLOS ONE offers an option for publishing peer-reviewed Lab Protocol articles, which describe protocols hosted on protocols.io. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols..

We look forward to receiving your revised manuscript.

Kind regards,

Youngsang Cho

Academic Editor

PLOS One

Journal Requirements:

If the reviewer comments include a recommendation to cite specific previously published works, please review and evaluate these publications to determine whether they are relevant and should be cited. There is no requirement to cite these works unless the editor has indicated otherwise.

Please review your reference list to ensure that it is complete and correct. If you have cited papers that have been retracted, please include the rationale for doing so in the manuscript text, or remove these references and replace them with relevant current references. Any changes to the reference list should be mentioned in the rebuttal letter that accompanies your revised manuscript. If you need to cite a retracted article, indicate the article’s retracted status in the References list and also include a citation and full reference for the retraction notice.

[Note: HTML markup is below. Please do not edit.]

Reviewers' comments:

Reviewer's Responses to Questions

-->Comments to the Author

1. If the authors have adequately addressed your comments raised in a previous round of review and you feel that this manuscript is now acceptable for publication, you may indicate that here to bypass the “Comments to the Author” section, enter your conflict of interest statement in the “Confidential to Editor” section, and submit your "Accept" recommendation.-->

Reviewer #1: All comments have been addressed

Reviewer #3: All comments have been addressed

**********

-->2. Is the manuscript technically sound, and do the data support the conclusions?

The manuscript must describe a technically sound piece of scientific research with data that supports the conclusions. Experiments must have been conducted rigorously, with appropriate controls, replication, and sample sizes. The conclusions must be drawn appropriately based on the data presented.-->

Reviewer #1: Yes

Reviewer #3: Yes

**********

-->3. Has the statistical analysis been performed appropriately and rigorously?-->

Reviewer #1: Yes

Reviewer #3: No

**********

-->4. Have the authors made all data underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data—e.g. participant privacy or use of data from a third party—those must be specified. requires authors to make all data underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data—e.g. participant privacy or use of data from a third party—those must be specified.-->

Reviewer #1: Yes

Reviewer #3: Yes

**********

-->5. Is the manuscript presented in an intelligible fashion and written in standard English?

PLOS ONE does not copyedit accepted manuscripts, so the language in submitted articles must be clear, correct, and unambiguous. Any typographical or grammatical errors should be corrected at revision, so please note any specific errors here.-->

Reviewer #1: Yes

Reviewer #3: Yes

**********

-->6. Review Comments to the Author

Please use the space provided to explain your answers to the questions above. You may also include additional comments for the author, including concerns about dual publication, research ethics, or publication ethics. (Please upload your review as an attachment if it exceeds 20,000 characters)-->

Reviewer #1: The authors have appropriately addressed and revised the comments. There are no further questions or requests for revisions.

Reviewer #3: The manuscript proposes two hybrid prediction algorithms combining ARIMAX and ANN to forecast daily Emergency Department (ED) visits. Since the first round of review, the authors have made significant efforts to address the comments by enhancing data descriptions, expanding performance metrics, and adding the Diebold–Mariano (DM) test. The overall quality and reproducibility of the manuscript have noticeably improved.

However, from the perspective of a second-round review, the study still faces fundamental weaknesses regarding methodological novelty, the fairness of the comparative experiments, and the theoretical justification for the hybrid structures. While the manuscript is approaching the "technical soundness" criteria of PLOS ONE, further refinement is necessary before a final decision can be made. I recommend a Major Revision (borderline between major and minor).

For more detail, Please confirm the attached file.

**********

-->7. PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our  For information about this choice, including consent withdrawal, please see our Privacy Policy..-->

Reviewer #1: No

Reviewer #3: No

**********

[NOTE: If reviewer comments were submitted as an attachment file, they will be attached to this email and accessible via the submission site. Please log into your account, locate the manuscript record, and check for the action link "View Attachments". If this link does not appear, there are no attachment files.]

To ensure your figures meet our technical requirements, please review our figure guidelines: https://journals.plos.org/plosone/s/figures

You may also use PLOS’s free figure tool, NAAS, to help you prepare publication quality figures: https://journals.plos.org/plosone/s/figures#loc-tools-for-figure-preparation.

NAAS will assess whether your figures meet our technical requirements by comparing each figure against our figure specifications.

-->-->

Attachment

Submitted filename: Reviewer Comments on PONE-D-25-37594R1.docx

pone.0347866.s004.docx (22.4KB, docx)
PLoS One. 2026 Apr 30;21(4):e0347866. doi: 10.1371/journal.pone.0347866.r004

Author response to Decision Letter 2


22 Feb 2026

Manuscript ID: PONE-D-25-37594R1

Dear Academic Editor of PLOS one,

Thank you for the opportunity to revise our work. We appreciate the valuable feedback from both reviewers and believe that addressing these comments will significantly improve the manuscript. We highlighted in blue all the revisions. And here is the point-by-point response to the reviewer comments.

Thanks a lot, and best regards,

Azadeh Saki (CA),

Associate Professor of Biostatistics, Department of Epidemiology and Biostatistics, School of Health, Mashhad University of Medical Sciences, Mashhad, Iran,

Mobile : +989163014565

E-mail : Sakia@mum.ac.ir; azadehsaki@yahoo.com

Reviewer comments:

The manuscript proposes two hybrid prediction algorithms combining ARIMAX and ANN to forecast daily Emergency Department (ED) visits. Since the first round of review, the authors have made significant efforts to address the comments by enhancing data descriptions, expanding performance metrics, and adding the Diebold–Mariano (DM) test. The overall quality and reproducibility of the manuscript have noticeably improved.

However, from the perspective of a second-round review, the study still faces fundamental weaknesses regarding methodological novelty, the fairness of the comparative experiments, and the theoretical justification for the hybrid structures. While the manuscript is approaching the "technical soundness" criteria of PLOS ONE, further refinement is necessary before a final decision can be made. I recommend a Major Revision (borderline between major and minor).

1. Clarification of Research Contribution and Novelty

- The authors repeatedly emphasize "two novel hybrid algorithms" as a primary contribution. However, both Hybrid 1 (residual modeling) and Hybrid 2 (simple averaging) appear to be minor variations or standard combinations found in existing ARIMA–ANN literature. Specifically, Hybrid 2 is a basic form of ensemble forecasting, which makes the term "novel algorithm" feel somewhat overstated. The true contribution of this paper lies in its empirical application:

• Testing these models in a specific high-variability context (Mashhad, Iran).

• Incorporating exogenous variables through MIC-based selection.

• Demonstrating how these combinations stabilize predictions across intermediate horizons.

- Tone down the use of "novel algorithm" in the Introduction and Conclusion. Instead, explicitly frame the work as a context-specific empirical study that provides practical insights into ED management.

Thank you for this advance recommendation. We improve the manuscript accordingly in introduction lines 104-125, and discussion section lines: 651-666.

2. Fairness in Model Comparison (Experimental Design)

- While the authors added LSTM and GLM as requested, the setup for LSTM seems insufficient compared to the proposed models. The LSTM is presented with a single fixed setting (lookback=30, epoch=50, batch=30) without mention of hyperparameter tuning or repeated trials. In contrast, the ARIMAX and ANN (ELM) components underwent detailed pre-analysis, such as MIC and FDR. This creates an asymmetric level of optimization, making it difficult to determine whether the hybrid model's superiority over LSTM is due to architectural advantages or simply a lack of tuning for the LSTM baseline.

- At a minimum, clarify that the LSTM serves as an exploratory baseline. Ideally, provide a brief sensitivity analysis or explain the range of tuning used for the comparative models.

Thank you for your valuable comment. We improve the manuscript accordingly in introduction, lines: 139-143, and methods section, lines: 397-403.

3. Overstating the Role of MIC-based Feature Selection

- MIC-based feature selection was applied to ARIMAX and GLM, but ANN and LSTM reportedly received all variables. Despite this, the manuscript often attributes the hybrid model's success primarily to MIC. It remains unclear whether the performance gain in Hybrid 2 stems from:

• The MIC-based selection process.

• The bias-offsetting effect between ARIMAX and ANN.

• The statistical stabilization inherent in simple averaging.

- Attribute the role of MIC specifically to "improving model interpretability and ARIMAX stability" rather than framing it as the sole driver of hybrid performance.

Thank you for your attention. We revise the manuscript accordingly in discussion section, lines: 676-691.

Attachment

Submitted filename: Reviewer Response.docx

pone.0347866.s005.docx (25.3KB, docx)

Decision Letter 2

Youngsang Cho

8 Apr 2026

Enhancing the Forecast Accuracy of the Daily Number of Patients Arrivals in Emergency Department by Hybrid ARIMAX-ANN Algorithm

PONE-D-25-37594R2

Dear Dr. Saki,

We’re pleased to inform you that your manuscript has been judged scientifically suitable for publication and will be formally accepted for publication once it meets all outstanding technical requirements.

Within one week, you’ll receive an e-mail detailing the required amendments. When these have been addressed, you’ll receive a formal acceptance letter and your manuscript will be scheduled for publication.

An invoice will be generated when your article is formally accepted. Please note, if your institution has a publishing partnership with PLOS and your article meets the relevant criteria, all or part of your publication costs will be covered. Please make sure your user information is up-to-date by logging into Editorial Manager at Editorial Manager® and clicking the ‘Update My Information' link at the top of the page. For questions related to billing, please contact  and clicking the ‘Update My Information' link at the top of the page. For questions related to billing, please contact billing support..

If your institution or institutions have a press office, please notify them about your upcoming paper to help maximize its impact. If they’ll be preparing press materials, please inform our press team as soon as possible -- no later than 48 hours after receiving the formal acceptance. Your manuscript will remain under strict press embargo until 2 pm Eastern Time on the date of publication. For more information, please contact onepress@plos.org.

Kind regards,

Youngsang Cho

Academic Editor

PLOS One

Additional Editor Comments (optional): Please assign a number to each equation and make sure to cite them in the corresponding paragraphs.

Acceptance letter

Youngsang Cho

PONE-D-25-37594R2

PLOS One

Dear Dr. Saki,

I'm pleased to inform you that your manuscript has been deemed suitable for publication in PLOS One. Congratulations! Your manuscript is now being handed over to our production team.

At this stage, our production department will prepare your paper for publication. This includes ensuring the following:

* All references, tables, and figures are properly cited

* All relevant supporting information is included in the manuscript submission,

* There are no issues that prevent the paper from being properly typeset

You will receive further instructions from the production team, including instructions on how to review your proof when it is ready. Please keep in mind that we are working through a large volume of accepted articles, so please give us a few days to review your paper and let you know the next and final steps.

Lastly, if your institution or institutions have a press office, please let them know about your upcoming paper now to help maximize its impact. If they'll be preparing press materials, please inform our press team within the next 48 hours. Your manuscript will remain under strict press embargo until 2 pm Eastern Time on the date of publication. For more information, please contact onepress@plos.org.

You will receive an invoice from PLOS for your publication fee after your manuscript has reached the completed accept phase. If you receive an email requesting payment before acceptance or for any other service, this may be a phishing scheme. Learn how to identify phishing emails and protect your accounts at https://explore.plos.org/phishing.

If we can help with anything else, please email us at customercare@plos.org.

Thank you for submitting your work to PLOS ONE and supporting open access.

Kind regards,

PLOS ONE Editorial Office Staff

on behalf of

Prof. Youngsang Cho

Academic Editor

PLOS One

Associated Data

    This section collects any data citations, data availability statements, or supplementary materials included in this article.

    Supplementary Materials

    S1 File. R and Python Codes.

    (ZIP)

    pone.0347866.s001.zip (5.8KB, zip)
    S2 File. Integrated Data.

    (CSV)

    pone.0347866.s002.csv (70.7KB, csv)
    Attachment

    Submitted filename: Response to reviewer.pdf

    pone.0347866.s003.pdf (347.2KB, pdf)
    Attachment

    Submitted filename: Reviewer Comments on PONE-D-25-37594R1.docx

    pone.0347866.s004.docx (22.4KB, docx)
    Attachment

    Submitted filename: Reviewer Response.docx

    pone.0347866.s005.docx (25.3KB, docx)

    Data Availability Statement

    The integrated time series of ED arrivals prepared for the current study are available at the S2 File.


    Articles from PLOS One are provided here courtesy of PLOS

    RESOURCES