Figures
Abstract
The increasing demand for elephant healthcare in Thailand underscores the need for efficient resource management in veterinary hospitals. Treating sick elephants requires substantial medical inputs, and without accurate workload forecasting, hospitals risk shortages in staff, equipment, and medications, potentially compromising care quality. This study evaluated six time-series forecasting models— Autoregressive Integrated Moving Average and its seasonal model (ARIMA/SARIMA), Exponential Smoothing (ETS), Trigonometric, Box-Cox ARMA Trend Seasonality (TBATS), Neural Network Time Series Regression (NNTR), Prophet, and Extreme Gradient Boosting (XGBoost)—to predict monthly workloads at two major elephant hospitals: the National Elephant Institute (NEI) hospital in northern Thailand and the Department of Livestock Development (DLD) hospital in the northeast. Historical admission data spanning five years (NEI) and nine years (DLD) were analyzed. The ETS model achieved the highest accuracy at NEI, outperforming all other models by effectively capturing its stable and seasonal caseload patterns. In contrast, the NNTR model performed best at DLD, where it accommodated irregular fluctuations likely driven by external factors. Forecasts for 2025 suggested a consistent caseload at NEI (28–31 cases/month) and a declining trend at DLD, with the lowest projection in September. Although patient volume was low, each case demanded disproportionately high resources, justifying the need for anticipatory planning. This study provides the first demonstration that multi-model time-series forecasting can generate actionable insights using sparse, real-world data from wildlife hospitals. By embedding predictive analytics into routine operations, it offers a novel, scalable framework to support data-driven decision-making in endangered species care.
Citation: Kosaruk W, Punyapornwithaya V, Thitaram C, Ueangpaibool P, Hirannithithamrong N (2025) Time-series analysis for forecasting monthly workload at two elephant hospitals in Thailand. PLoS One 20(12): e0337825. https://doi.org/10.1371/journal.pone.0337825
Editor: Michael Döllinger, University Hospital Eriangen at Friedrich-Alexander-University Erlangen-Numberg, GERMANY
Received: April 4, 2025; Accepted: November 13, 2025; Published: December 30, 2025
Copyright: © 2025 Kosaruk et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: The raw admission data used in this study cannot be publicly deposited due to privacy and regulatory restrictions. Access to these restricted data can be requested through a non-author institutional contact: Research Administration, Academic Service, and International Relations Section Faculty of Veterinary Medicine, Chiang Mai University Email: saraban_vet@cmu.ac.th The analytical R code and forecasting workflow are openly available at 10.5281/zenodo.16734811.
Funding: This study was partially supported by Chiang Mai University. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript. No additional external funding was received for this study.
Competing interests: The authors have declared that no competing interests exist.
1. Introduction
The Asian elephant (Elephas maximus) holds profound cultural and ecological importance in Thailand and is classified as Endangered by the IUCN [1,2]. Within the country, two distinct populations exist: a wild population of approximately 3,126−3,341 individuals inhabiting fragmented forests with ongoing human-elephant conflict, and a captive population of about 3,783 elephants integrated into human-managed society [2,3]. Captive elephants are central to Thailand’s wildlife-based tourism industry, attracting millions of international visitors and contributing substantial economic values [1,4]. To safeguard their health and welfare, the Thai government has established specialized elephant hospitals that serve as critical infrastructure for veterinary care [1,5].
The National Elephant Institute (NEI) hospital, founded in 1993 by the Forest Industry Organization (FIO), remains the primary referral center for elephants in the northern Thailand [5]. NEI provides both mobile and admission-based care to an estimated captive population of 1,278 elephants [5,6]. In northeastern Thailand, the Department of Livestock Development (DLD) operates another major elephant hospital in Surin province, home to approximately 722 captive elephants (Unpublished data, Department of Provincial Administration of Thailand, 2024). This population is deeply rooted in regional cultural traditions, with local communities historically engaged in elephant handling [7]. Like NEI, the DLD hospital provides both mobile and inpatient services, primarily for complex or critical cases. These two hospitals collectively manage 20–100 new admissions per year, with monthly peaks reaching up to 30 cases. During periods of high demand, they frequently operate near full capacity, underscoring the need for robust caseload forecasting to optimize staffing, treatment preparation, and resource allocation.
Providing medical care for elephants requires substantial medical resources. For instance, daily fluid maintenance for an adult elephant may reach 200 liters [8], compared to just 2–3 liters for an adult large-breed dog [9]. Disease conditions such as Elephant Endotheliotropic Herpesvirus Hemorrhagic Disease (EEHV-HD), a fatal infectious disease in young calves, exhibited seasonal peaks (June-July) in Thailand and place disproportionate strain on hospital resources [10–12]. Likewise, gastrointestinal conditions especially colic, are linked to seasonal roughage quality, suggesting that environmental factors may play a significant role in elephant health [13,14]. These recurring, resource-intensive cases demand forward-looking systems to support continuous, high-quality care.
Despite these challenges, elephant hospitals in Thailand currently operate under reactive case-by-case models with limited use of predictive tools. This constrains their ability to anticipate seasonal fluctuations, plan for critical case surges, and maintain consistent medical provisioning. To address this gap, time-series forecasting offers a solution framework to predict hospital workload trends, optimize hospital operations and resource distribution [15–19]. In human health systems, time-series forecasting is widely used to anticipate hospital admissions and optimize healthcare delivery [16,17,20–23]. However, its use in veterinary medicine remains limited [24–26], and applications in zoo and wildlife hospitals are largely unexplored. Although elephant hospitals serve fewer patients than human facilities, the high per-patient cost and the species’ conservation significance make proactive forecasting no less critical. In addition, proactive forecasting is particularly relevant for recurring, high-cost conditions such as EEHV-HD and colic, commonly seen in Thai captive elephants, which often drive intense medical resource requirements.
This study applies six time-series models to predict monthly workloads at two major elephant hospitals in Thailand (NEI and DLD). Historical admission records were analyzed to identify workload patterns and compare model performance across two settings with distinct caseload structures. The models include Autoregressive Integrated Moving Average (ARIMA) and Seasonal ARIMA (SARIMA) [17,27], Exponential Smoothing (ETS) [20,21], Trigonometric, Box-Cox transformation, ARMA errors, Trend, and Seasonal components (TBATS) [20], Neural Network Time Series Regression (NNTR) [28], Prophet [29], and Extreme Gradient Boosting (XGBoost) [30]. While elephant hospital datasets are inherently small due to the rarity of hospitalizations, this study demonstrates that robust forecasting remains feasible and informative. To our knowledge, this is the first study to systematically evaluate and compare multiple forecasting models using sparse, real-world data from wildlife hospitals, offering a novel tool for strategic care planning. By integrating predictive analytics into elephant hospital workflows, this approach could enable a shift from reactive care to proactive planning, supporting resource allocation, staffing, and preparedness in endangered species healthcare.
2. Materials and methods
2.1. Study sites and data sources
This study analyzed historical elephant admission data from two major government-operated elephant hospitals in Thailand: 1) NEI hospital in northern Thailand (managed by FIO; coordinates 18°21’25.2“N 99°14’52.1”E) and 2) DLD hospital in northeastern Thailand (managed by the National Institute of Elephant Research and Health Service; coordinates 14°46’28.8”N 103°26’09.3”E). NEI hospital, located in a forested area, can accommodate up to 20 elephants at a time. Its spacious, nature-integrated layout allows stable cases to be housed beyond the core hospital unit when needed. In contrast, DLD hospital is situated in a constrained urban area and can manage no more than three elephants concurrently.
Historical data availability constrained our dataset selection. Hospital records spanning five and nine consecutive years were analyzed for NEI (year 2020–2024, N = 467) and DLD (year 2016–2024, N = 198), respectively. These study periods were chosen because record-keeping prior to 2016 (DLD) and 2020 (NEI) was predominantly paper-based and inconsistent; thus, we focused on the years with the most complete and reliable data for analysis.
Individual case data included admission and discharge dates, diagnosis, demographics (age, sex, and camp origin), and treatment outcomes. Preventive care visits and cases with incomplete records were excluded to ensure data consistency. Data was analyzed separately in two elephant hospitals. Monthly “active cases” were computed based on admission-discharge intervals, proportionally allocated across months to reflect real-time workload. All data were anonymized prior to analysis. Data processing involved digitization, verification, and categorical coding. All analyses and modeling were conducted in R (version 4.0.0).
2.2. Forecasting workflow
The time-series forecasting workflow (Fig 1) consisted of four key steps: 1) decomposition of time-series data into trend and seasonal components, 2) development of forecasting models, 3) evaluation and selection of the best-performing model based on accuracy metrics, and 4) forecasting the monthly hospital workload for January to December 2025.
ARIMA = Auto Regressive Integrated Moving Average model, SARIMA = Seasonal ARIMA model, ETS = Exponential Smoothing model, TBATS = Trigonometric, Box-Cox transformation, ARMA errors, Trend, and Seasonal components model, NNTR = Neural Network Time Series Regression, Prophet = Prophet model, XGBoost = Extreme Gradient Boosting, MAE = Mean Absolute Error, RMSE = Root Mean Square Error, MASE = Mean Absolute Scaled Error.
2.3. Time-series decomposition and seasonality testing
Descriptive statistic was calculated using the dplyr package [31], reported as mean ± standard error of mean (SE). For model development, each hospital dataset was divided into training set (NEI: 2020–2023; DLD: 2016–2023) and a test set (January to December 2024). To explore underlying temporal patterns, an additive decomposition of the monthly workload was performed using the stats package in R [32]. Each time-series was separated into trend, seasonal, and residual components. Formal assessment of seasonality was conducted using Ollech and Webel’s combined seasonality test (WO-test) from the seastests package [33], with a significance threshold of P < 0.01.
To further characterize the underlying structure of each dataset, statistical comparisons between NEI and DLD hospital data were conducted. Descriptive comparisons included age, length of stay (LOS), and active monthly caseloads. Welch’s t-test and Wilcoxon rank-sum test were used for continuous variables (e.g., age, LOS), while variance differences in monthly caseloads were assessed using Levene’s test. Additionally, autocorrelation patterns were explored using autocorrelation function (ACF) plots to assess temporal dependencies.
2.4. Model descriptions
Six time-series models were employed to predict the monthly hospital workload at both study sites. These forecasting models were chosen to cover diverse analytical approaches. Classical statistical methods (ARIMA/SARIMA, ETS, TBATS) were selected to handle linear and seasonal patterns, while machine learning-based methods (NNTR, Prophet, XGBoost) were included to capture potential non-linear relationships and more complex data structures.
ARIMA and SARIMA: The Autoregressive Integrated Moving Average (ARIMA) or the Seasonal ARIMA (SARIMA) models [22] were utilized for modeling both trend and seasonal patterns. To ensure the appropriate model selection, the WO-test was conducted prior to analysis. If significant, the SARIMA model was used; otherwise, the ARIMA model was applied.
The ARIMA model is defined as:
where represents autoregressive coefficients, θ represents moving average coefficients, d denotes the differencing order,
is the error term at time t [34].
SARIMA model extends ARIMA by incorporating seasonal components. SARIMA model can be defined as: , where P, D, and Q represent the seasonal autoregressive, differencing, and moving average terms, respectively, and s denotes the seasonal period (e.g., 12 for monthly data) [35]. These models were implemented using the auto.arima() function from the focastHybrid package in R [36].
Exponential Smoothing (ETS) model [23]: the ETS model estimates trends and seasonal patterns by applying weighted averages that assign more importance to recent observations, making it effective for datasets with stable or slowly evolving patterns. The ETS model can be expressed as: , where
,
, and
represent the error, trend, and seasonality components, respectively, which can be combined additively or multiplicatively based on the data characteristics [37]. ETS was implemented using the ets() function in R [36].
Trigonometric, Box-Cox transformation, ARMA errors, Trend, and Seasonal components (TBATS) model [20]: TBATS accommodates complex seasonal patterns, including those with multiple seasonality or irregular trends. This model decomposes the time series into trigonometric representations of seasonality, applies a Box-Cox transformation for variance stabilization, and models residual errors using autoregressive moving average (ARMA) processes. The model expressed as:
where is the observed value at time t after applying the Box-Cox transformation with parameter ω, which stabilizes variance and ensures linearity,
represents the trend component,
consists of seasonal components modeled using trigonometric functions, and
captures any remaining errors after accounting for the trend and seasonality using ARMA structure [38]. The model was fitted using the tbats() function from the forecast package in R [36].
Neural Network Time Series Regression (NNTR) model [20,39]: This model used a feed-forward neural network with one hidden layer, selecting lagged input variables based on the partial autocorrelation function (PACF) to represent key temporal dependencies [40]. Although NNTR lacks a mathematical formula, its architecture can be represented algorithmically as:
where represent the activation functions of each layer,
are the learned weights,
are the input features, and
is the error term. The NNTR model was implemented using the nnetar() function in R [36]. Bootstrapping was applied to generate the 95% confidence interval for the model predictions.
Prophet [29]: This model decomposes the time series into three components: trend (), seasonality
, and holidays or events
, represented as
, where
denotes the error term. While designed for datasets with seasonality, Prophet’s flexibility in trend modeling allows it to perform well even in datasets with no evident seasonal patterns [41]. The model was implemented using the prophet package in R [42], with default priors adjusted to match the characteristics of the data.
Extreme Gradient Boosting (XGBoost) [30]: This machine learning algorithm was applied to capture complex, non-linear relationships in the data. It uses an ensemble of decision trees, with each tree corrects the errors of the previous one. The final prediction is expressed as:
where represents the
-th tree, and
are the input variables. XGBoost excels in handling non-linear trends, interactions among variables, and datasets with zero-inflated or irregular counts. In this study, time-lagged features were generated to capture temporal dependencies, and the optimal parameters of the XGBoost model were determined through grid search. Bootstrapping was also applied to estimate the 95% confidence interval. The implementation was performed using the xgboost package in R [43].
2.5. Model evaluation and forecasting
All models were trained on pre-2024 data (NEI: 2020–2023; DLD: 2016–2023) and tested on 2024 data. Forecast accuracy was evaluated using three metrics: Mean Absolute Error (MAE), Root Mean Squared Error (RMSE) and Mean Absolute Scaled Error (MASE). MAE measures simple average errors; RMSE penalizes larger errors more significantly; MASE provides a scale-independent error measure, comparing model forecasts against a naïve benchmark. The best-performing model for each hospital (lowest error matrices) was retrained on the full dataset and used to forecast monthly workload for January-December 2025.
3. Results
3.1. Descriptive and time-series components
From January 2020 and December 2024, a total of 467 elephant cases were admitted to NEI elephant hospital. Of these, 258 (55.25%) were males (mean age: 32.92 ± 1.62 years, range: 1 day-68 years), and 209 (44.75%) were females (mean age: 34.25 ± 1.25 years, range: 3 months-68 years). Admission primarily included integumentary issues (N = 131, 28.05%), gastrointestinal problems (N = 119, 25.48%), ocular disorders (N = 65, 13.92%), and musculoskeletal conditions (N = 47, 10.06%). Less frequent conditions were elephant endotheliotropic herpesvirus hemorrhagic disease (EEHV-HD, N = 19, 4.06%), reproductive issues (N = 16, 3.43%), toxicity (N = 15, 3.21%), dental/oral problems (N = 10, 2.14%), and urinary/renal disorders (N = 6, 1.28%), respiratory and neurological conditions (each N = 3, 0.64%), and metabolic/endocrine disorders (N = 2, 0.43%). Additionally, miscellaneous conditions such as weakness and inappetence accounted for 31 admissions (6.63%). The monthly workload at NEI hospital averaged 30.43 ± 0.10 cases (range: 28–31 active cases per month).
The DLD hospital admitted 198 individual elephants between January 2016 and December 2024, including 81 males (40.91%, mean age: 19.20 ± 2.09 years, range: 4 days-76 years) and 117 females (59.09%, mean age: 24.94 ± 1.69 years, range: 1–80 years). The leading cause of admission was gastrointestinal issues (N = 80, 40.40%), followed by integumentary problems (N = 43, 21.72%), musculoskeletal disorders (N = 20, 10.10%), and ocular conditions (N = 11, 5.55%). Other medical issues included EEHV-HD (N = 7, 3.53%), toxicity (N = 6, 3.03%) and miscellaneous conditions (N = 14, 7.07%). Additionally, 17 elephants (8.64%) were clinically healthy, accompanying sick individuals and utilizing hospital resources. The monthly workload at DLD hospital averaged 18.68 ± 1.13 cases (range: 0–31 cases per month).
Descriptive and statistical comparisons between hospitals confirmed structural differences between datasets (S1 Table). Elephants at NEI were significantly older and had shorter but more regular stays, while DLD exhibited highly variable monthly caseloads and minimal autocorrelation (S1 Fig), reflecting stochastic admission patterns.
The decomposition of the monthly workload at NEI and DLD elephant hospitals is shown in Fig 2. NEI elephant hospital showed a relatively stable workload pattern, with minor fluctuations and consistent seasonal peaks occurring regularly throughout the study period. Trend analysis indicated relatively stable workload levels, while the seasonal component showed a consistent annual cycle confirmed by significant WO-test results (P < 0.01). Conversely, DLD hospital workloads displayed greater variability, with fluctuating trends and no statistically significant seasonality (WO-test, P > 0.01).
3.2. Model performance
The performance of six forecasting models (ARIMA/SARIMA, ETS, TBATS, NNTR, Prophet, XGBoost) was evaluated using error metrics on training and testing datasets for each hospital (Table 1; Fig 3 and Fig 4). The ETS model consistently achieved the lowest forecasting errors (MAE, RMSE, MASE) at NEI hospital, demonstrating superior linear and seasonal forecasting capability. Thus, ETS was selected as the final model for NEI hospital. For DLD elephant hospital, the NNTR model provided superior predictive performance, effectively capturing non-linear patterns and demonstrating strong generalizability during testing. Consequently, NNTR was chosen as the optimal forecasting model for DLD hospital.
Auto Regressive Integrated Moving Average model and Seasonal ARIMA (ARIMA/SARIMA), Exponential Smoothing model (ETS), Trigonometric, Box-Cox transformation, ARMA errors, Trend, and Seasonal components model (TBATS), Neural Network Time Series Regression (NNTR), Prophet, and Extreme Gradient Boosting (XGBoost). The yellow area represented 95% confidence intervals.
Auto Regressive Integrated Moving Average model and Seasonal ARIMA (ARIMA/SARIMA), Exponential Smoothing model (ETS), Trigonometric, Box-Cox transformation, ARMA errors, Trend, and Seasonal components model (TBATS), Neural Network Time Series Regression (NNTR), Prophet, and Extreme Gradient Boosting (XGBoost). The yellow area represented 95% confidence intervals.
3.3. Workload forecasting
The ETS model forecasted NEI hospital’s monthly workload for January-December 2025 (Fig 5). Predicted monthly admissions averaged 30.44 ± 0.23 cases, with the highest workload in January (31.07 cases), and lowest in February (28.39 cases). Monthly admissions thereafter remained stable, ranging from 29.96 to 31.02 cases.
The light blue area represented the 95% confidence intervals.
For DLD hospital, the NNTR model forecasted an average monthly workload of 13.71 ± 0.47 cases in 2025 (Fig 6). The forecast showed a peak in January (18.27 cases), a sharp decline in February (14.49 cases), followed by a gradual decrease reaching its lowest point in September (12.04 cases). Admissions rose slightly again in October (12.83 cases), peaked in November (13.87 cases), and decreased in December (12.59 cases).
The light blue area represented the 95% confidence intervals generated using bootstrapping methods.
4. Discussion
This study presents a novel application of predictive analytics in captive Asian elephant healthcare, demonstrating that it is both feasible and informative to forecast monthly hospital admissions using sparse, real-world datasets. By systematically evaluating six time-series models across two elephant hospitals in Thailand—NEI (north) and DLD (northeast)— which exhibited contrasting patterns in disease prevalence, seasonality, and caseload dynamics. NEI showed consistent seasonal trends, best modeled by ETS, while DLD displayed irregular fluctuations, more accurately captured by NNTR. These differences underscore the importance of tailoring forecasting approaches to the specific data structure of each setting. Importantly, this study provides one of the first demonstrations that predictive forecasting frameworks, common in human health systems, can be effectively adapted for wildlife hospitals that manage few patients but require disproportionately high resource use per case. By demonstrating that robust, model-driven forecasts are possible even with limited datasets, and can directly inform hospital-level decision-making in conservation settings. This approach offers tangible value in optimizing staffing, supply chains, and emergency preparedness in endangered species care.
4.1. Hospital-specific caseload patterns
NEI’s stable workload reflects its role as both a referral center and long-term care facility. The hospital manages approximately 125 elephants, most of which are geriatric and previously employed in the logging industry before transitioning into tourism roles [1,4]. This results in a high prevalence of chronic degenerative conditions, including osteoarthritis, weakness, or persistent wounds, requiring prolonged treatment and continuous medical oversight. In December 2024, 23 elephants were under treatment at NEI, of which 13 were from the FIO, six from the Department of National Parks (DNP), and one from the Royal Elephant Stable (RES), and only three from external tourist facilities. These institutional affiliations contribute to NEI’s consistent caseload and align with the superior performance of ETS, which is well-suited to structed, stable datasets.
In contrast, DLD hospital does not maintain a resident elephant population but primarily serves elephants owned by local communities. Its fluctuating monthly workload appears influenced by external factors, particularly elephant relocation and care-seeking behavior. During the COVID-19 pandemic (mid-2021 to early 2022), many elephants were returned from tourism camps to home provinces, especially Surin, due to nationwide lockdowns and travel restrictions [7,14]. This shift coincided with a temporary surge in admissions, reaching up to 30 cases per month over a 10-month span in 2022. As restrictions lifted and tourism resumed, DLD’s workload declined accordingly [14]. Furthermore, Surin province hosts another facility—The Elephant Kingdom Hospital—operated by the Zoological Park Organization. Located in Baan Ta Klang, Thailand’s largest elephant village [7], it offers more convenient access than DLD, which is situated approximately 100 km away. These overlapping services and geographic considerations likely influence owner preferences and hospital utilization patterns. Such findings emphasize the need for deeper examination of admission dynamics across facilities, including seasonal movement, informal care practices, and regional access barriers. Collectively, the contrasting model performances reflect fundamental differences in the patient demographics (e.g., more geriatric chronic cases at NEI), regional elephant management (tourism vs. private ownership), and healthcare-seeking behaviors.
4.2. Seasonal disease trends
Seasonal analysis showed a clear pattern in hospital admissions at NEI, but no distinct seasonality at DLD. These differences likely reflect regional variation in elephant use and management. In northern Thailand, elephants are heavily involved in the tourism-related activities such as feeding, bathing, and riding [1,44]. In contrast, elephants in Surin and nearby provinces are predominantly privately owned, allowing owners greater flexibility to engage them in cultural ceremonies, breeding programs, and live social media broadcasts [7]. These divergent activity patterns may influence both the timing and nature of health issues requiring hospital care.
Although trend and seasonal analyses were based on total active cases, variation in seasonal disease patterns was evident between hospitals, despite similar dominant health issues. In both NEI and DLD, integumentary and gastrointestinal disorders were most common. However, at NEI, integumentary cases peaked in December-January, aligning with the peak tourism season in northern Thailand [44,45]. This pattern likely reflects increased elephant workload during high visitor periods, consistent with previous findings linking skin lesion to intensive tourist interactions [46]. Gastrointestinal cases showed a bimodal seasonal peak: hospitalizations rose in April–May (late dry season), likely due to poor-quality forage increasing colic risk [12,13], and again in July–August (mid-rainy season), potentially linked to elevated soil ingestion during foraging [47,48]. EEHV-HD cases occurred year-round but peaked in February and July, partially aligned with national trends reported by Yun et al. [10], where highest incidence occurred during Thailand’s climatic transition from hot-humid to rainy conditions.
Unlike NEI, the DLD elephant hospital did not display clear seasonal patterns in admissions, suggesting either a more uniform distribution of health issues or differences in management and reporting practices. The absence of seasonality may not reflect true epidemiological uniformity, but rather underreporting. In Surin, many mahouts manage non-severe conditions at home, rather than seeking hospital care—often due to distance, cost, or convenience—mirroring trends observed in Myanmar [49,50]. As a result, hospital records likely underrepresent milder cases and may obscure seasonal fluctuations. Additionally, Surin has lower tourism traffic than northern Thailand, reducing the influence of seasonal visitor peaks on elephant workload and injury rates [44,51,52]. At DLD, gastrointestinal disorders remained the most common issues, with modest increases observed in April (N = 14), October (N = 10), and November (N = 9). The April rise corresponds with the dry season, when elephants are often tethered in dry fields and may experience inconsistent feeding. The post-harvest peak in October-November likely reflects overconsumption of rice straw in paddies, increasing colic risk [53]. No strong seasonal trends were found for integumentary or EEHV-HD cases. Wound-related conditions may be managed privately or through mobile veterinary clinics [5,51], while EEHV-HD cases may go unrecorded due to early mortality or empirical treatment with antivirals at home [7,54]. These findings highlight the limitation of relying solely on hospital-based surveillance and underscore the need for broader, long-term datasets to accurately assess seasonal trends in elephant health.
4.3. Model interpretability
Model comparison showed that ETS performed best for NEI, while NNTR outperformed other models at DLD. ETS was well-suited to NEI’s stable, seasonal admission trends [20,55], whereas NNTR effectively captured the irregular and non-linear fluctuations observed at DLD [15,19,56]. Other models, including ARIMA/SARIMA, performed less favorably, likely due to their dependence on strong seasonality assumptions [18,35], which were absent at DLD and only moderately present in NEI’s five-year dataset. TBATS, though designed for complex seasonal patterns [20,38], did not enhance predictive accuracy beyond ETS, possibly because NEI’s seasonality was already sufficiently captured. Prophet, which incorporates trend and holiday effects [29,41], showed only moderate accuracy and struggled with short-term variations. XGBoost, a machine-learning approach, failed to outperform classical models, likely due to the small dataset size and absence of external predictors such as climate variables or management interventions [20,57,58]. These findings highlight the importance of aligning model selection with the underlying structure of each dataset, rather than defaulting to complex algorithms without justification.
4.4. Forecast implications and systemic gaps
Despite differences in historical trends, the forecasted workload patterns at NEI and DLD diverged notably. NEI’s projected caseload remained stable throughout 2025, suggesting consistent demand for long-term care, likely reflecting its role in managing resident elephants and complex chronic cases. A slight dip in February aligned with observed seasonal lulls, potentially linked to reduced tourist activity during the warmer months [44,51]. In contrast, DLD’s workload showed a gradual decline, with the lowest caseload forecasted in September. This trend does not correspond to observed seasonal peaks, implying reduced hospital utilization rather than a shift in disease burden. One possible explanation is the seasonal migration of working elephants, as mahouts often relocate for labor or return home during rice harvesting in October-November. Additionally, some cases may be treated in the field, bypassing hospital records. These dynamics may contribute to underreporting during certain periods. The downward trend in DLD forecasts highlights the need to explore whether this reflects a true decline in caseload or changes in care-seeking behavior, accessibility, or data completeness. These gaps highlight the importance of triangulating hospital data with field-level surveillance to refine forecasting accuracy. Importantly, even in resource-limited veterinary contexts, forecasting holds practical utility. Projections can inform medication procurement schedules, guide staffing needs during peak periods, and support facility preparedness. The ability to shift from reactive to anticipatory logistics is especially valuable in endangered species care, where treatment delays can be fatal and resource shortages can jeopardize animal welfare.
4.5. Limitations and future directions
Several limitations should be acknowledged. First, only admission-based hospital data were analyzed. Cases managed via mobile clinics and during routine health checks (e.g., blood collection, deworming) were excluded, potentially underestimating true healthcare demand. Second, data availability differed between sites (five years for NEI, nine for DLD), limiting model comparability and trend detection. This discrepancy stem from reliance on paper-based records which introduced risks of missing or incomplete data and affecting historical accuracy. Third, the sample size remains modest due to the rarity of elephant hospitalization, which may constrain model generalizability. Despite these limitations, meaningful insights were obtained, reinforcing the value of digitalization and centralized record systems for wildlife health monitoring to improve data quality and support reliable forecasting.
Future research should integrate external variables such as local management practices, tourist seasonality, and climatic conditions to improve model robustness. Including mobile clinic data and expanding coverage across additional elephant hospitals would enhance workload estimation and epidemiological surveillance. However, model performance must be reassessed with each expanded dataset. Establishing a centralized national elephant database would support more generalizable forecasting frameworks, contribute to proactive healthcare planning, and align with conservation goals under One Health and welfare-centered approaches.
5. Conclusion
This study demonstrated that time-series forecasting, while traditionally applied in high-volume human health settings, can be effectively adapted to wildlife hospitals with low patient volume but high per-case resource demands. By evaluating six forecasting models across two major elephant hospitals in Thailand (NEI and DLD), we identified hospital-specific caseload dynamics and optimal model performance tailored to each context. The stable, seasonal pattern caseload at NEI was best captured by the ETS model, reflecting its role in chronic, long-term care. In contrast, the irregular admissions at DLD, more accurately modeled by NNTR, underscored the influence of external factors such as tourism, owner-driven care-seeking, and local access barrier. Our findings emphasize the critical importance of selecting forecasting models that align with the temporal structure and operational realities of each hospital. Crucially, this study provides the first demonstration that meaningful, actionable forecasts can be generated from sparse, real-world datasets in endangered species care. These predictions offer operational value by informing staffing plans, guiding medical supply procurement, and strengthening emergency readiness. As such, this work serves as a first template for data-driven planning in wildlife hospitals, an area previously unsupported by forecasting science. To improve forecasting robustness and generalizability, future research should incorporate broader variables such as mobile clinic data, climatic conditions, seasonal tourism patterns, and elephant movement dynamics. Expanding digital health infrastructure and establishing a centralized national database would further enhance real-time monitoring, resource sharing, and long-term planning. As the veterinary care of captive wildlife becomes increasingly complex, the integration of predictive analytics into hospital systems offers a scalable, conservation-aligned strategy to improve both animal welfare and healthcare system resilience.
Supporting information
S1 Fig. Autocorrelation function (ACF) plots of monthly active caseloads at NEI (left) and DLD (right) elephant hospitals.
NEI showed sustained positive autocorrelation across short lags, consistent with underlying seasonal or cyclical workload patterns. In contrast, DLD displayed weak or no autocorrelation, indicating stochastic or irregular admission dynamics.
https://doi.org/10.1371/journal.pone.0337825.s001
(PDF)
S1 Table. Statistical comparison between NEI and DLD hospital datasets.
https://doi.org/10.1371/journal.pone.0337825.s002
(PDF)
Acknowledgments
We would like to thank Dr. Warangkana Langkapin and Dr. Janjeera Kaew-Ek for their kind support.
References
- 1. Bansiddhi P, Brown JL, Thitaram C, Punyapornwithaya V, Nganvongpanit K. Elephant tourism in Thailand: A review of animal welfare practices and needs. J Appl Anim Welf Sci. 2019;1–14.
- 2.
Williams C, Tiwari SK, Goswami VR, De Silva S, Kumar A, Baskaran N, et al. Elephas maximus: The IUCN Red List of Threatened Species 2020: e.T7140A45818198. International Union for Conservation of Nature; 2020.
- 3. Menon V, Tiwari SKR. Population status of Asian elephants (Elephas maximus) and key threats. Int Zoo Yb. 2019;53(1):17–30.
- 4. Bansiddhi P, Brown JL, Thitaram C, Punyapornwithaya V, Somgird C, Edwards KL. Changing trends in elephant camp management in northern Thailand and implications for welfare. PeerJ. 2018;6.
- 5. Angkawanish T, Boonprasert K, Homkong P, Sombutputorn P, Mahasawangkul S, Keratimanochaya T. Elephant health status in Thailand: the role of mobile elephant clinic and elephant hospital. Gajah. 2009;31:6.
- 6. Pla-Ard M, Sukmasuang R, Uthairasmee S. Some population characteristics and viability of captive Asian elephant (Elephas maximus) in Thailand. Biodivers J. 2022;23(2).
- 7. Kittisirikul N, Bangkaew N, Phimpraphai W, Sripiboon S. Unlocking insights: Mahout’s perceptions and practices in managing Elephant Endotheliotropic Herpesvirus (EEHV) infection among captive Asian elephants in Surin province, Thailand. PLoS One. 2024;19(11):e0295869. pmid:39531434
- 8. Chharang D, Choudhary S, Karnani M. Digestive physiology, microbial ecology and nutritional requirement of Asian elephants. Intas Polivet. 2020;21(2).
- 9. Pardo M, Spencer E, Odunayo A, Ramirez ML, Rudloff E, Shafford H. 2024 AAHA Fluid Therapy Guidelines for Dogs and Cats. J Am Anim Hosp Assoc. 2024;60(4):131–63.
- 10. Yun Y, Sripiboon S, Pringproa K, Chuammitri P, Punyapornwithaya V, Boonprasert K, et al. Clinical characteristics of elephant endotheliotropic herpesvirus (EEHV) cases in Asian elephants (Elephas maximus) in Thailand during 2006-2019. Vet Q. 2021;41(1):268–79. pmid:34511026
- 11. Boonprasert K, Yun Y, Kosaruk W, Towiboon P, Tankaew P, Punyapornwithaya V, et al. A Longitudinal Study of Hematology and Stress Biomarker Profiles in Young Asian Elephants (Elephas Maximus) in Relation to Elephant Endotheliotropic Herpesvirus (EEHV) in Thailand. Animals (Basel). 2021;11(9):2530. pmid:34573496
- 12. Kosaruk W, Brown JL, Towiboon P, Punyapornwithaya V, Pringproa K, Thitaram C. Measures of Oxidative Status Markers in Relation to Age, Sex, and Season in Sick and Healthy Captive Asian Elephants in Thailand. Animals (Basel). 2023;13(9):1548. pmid:37174585
- 13. Greene W, Dierenfeld ES, Mikota S. A review of Asian and African elephant gastrointestinal anatomy, physiology and pharmacology. J Zoo Aquar Res. 2019;7(1):1–14.
- 14. Supanta J, Brown JL, Bansiddhi P, Thitaram C, Punyapornwithaya V, Khonmee J. Effect of the COVID-19 pandemic and international travel ban on elephant tourist camp management in northern Thailand. Front Vet Sci. 2022;9:1038855. pmid:36532337
- 15. Zhou L, Zhao P, Wu D, Cheng C, Huang H. Time series model for forecasting the number of new admission inpatients. BMC Med Inform Decis Mak. 2018;18(1):39. pmid:29907102
- 16. Ordu M, Demir E, Tofallis C. A comprehensive modelling framework to forecast the demand for all hospital services. Int J Health Plann Manage. 2019;34(2):e1257–71. pmid:30901132
- 17. 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. pmid:28693579
- 18. Punyapornwithaya V, Mishra P, Sansamur C, Pfeiffer D, Arjkumpa O, Prakotcheo R. Time-Series Analysis for the Number of Foot and Mouth Disease Outbreak Episodes in Cattle Farms in Thailand Using Data from 2010–2020. Viruses. 2022;14(7):1367.
- 19. Punyapornwithaya V, Arjkumpa O, Buamithup N, Kuatako N, Klaharn K, Sansamur C, et al. Forecasting of daily new lumpy skin disease cases in Thailand at different stages of the epidemic using fuzzy logic time series, NNAR, and ARIMA methods. Prev Vet Med. 2023;217:105964. pmid:37393704
- 20. Perone G. Comparison of ARIMA, ETS, NNAR, TBATS and hybrid models to forecast the second wave of COVID-19 hospitalizations in Italy. Eur J Health Econ. 2022;23(6):917–40. pmid:34347175
- 21. Wolff J, Klimke A, Marschollek M, Kacprowski T. Forecasting admissions in psychiatric hospitals before and during Covid-19: a retrospective study with routine data. Sci Rep. 2022;12(1):15912. pmid:36151267
- 22. Kim K-R, Park J-E, Jang I-T. Outpatient forecasting model in spine hospital using ARIMA and SARIMA methods. J Hosp Manag Health Policy. 2020;4:20–20.
- 23.
Andellini M, Bassanelli E, Faggiano F, Esposito MT, Marino S, Ritrovato M. Forecasting hospital performances using a hybrid ETS-ARIMA algorithm. In: 2021 IEEE International Workshop on Metrology for Industry 40 & IoT (MetroInd40&IoT) [Internet]. Rome, Italy: IEEE; 2021 [cited 2024 Sep 17]. p. 42–7. Available from: https://ieeexplore.ieee.org/document/9488500/
- 24. Thomas RP, Greening SS, Hill KE. Mortality, incidence and seasonality of canine and feline patients treated with tick antiserum in three far North Queensland veterinary clinics from 2000 to 2020. Aust Vet J. 2022;100(12):579–86. pmid:36081249
- 25. Nolan TJ, Smith G. Time series analysis of the prevalence of endoparasitic infections in cats and dogs presented to a veterinary teaching hospital. Vet Parasitol. 1995;59(2):87–96. pmid:7483240
- 26.
Pratyaksa H, Permanasari AE, Fauziati S, Fitriana I. ARIMA implementation to predict the amount of antiseptic medicine usage in veterinary hospital. In: 2016 1st International Conference on Biomedical Engineering (IBIOMED) [Internet]. Yogyakarta, Indonesia: IEEE; 2016 [cited 2025 Feb 27]. p. 1–4. Available from: http://ieeexplore.ieee.org/document/7869815/
- 27. Yang P, Cheng P, Zhang N, Luo D, Xu B, Zhang H. Statistical machine learning models for prediction of China’s maritime emergency patients in dynamic: ARIMA model, SARIMA model, and dynamic Bayesian network model. Front Public Health. 2024;12:1401161.
- 28. Jiang S, Xiao R, Wang L, Luo X, Huang C, Wang JH. Combining Deep Neural Networks and Classical Time Series Regression Models for Forecasting Patient Flows in Hong Kong. IEEE Access. 2019;7:118965–74.
- 29. Duarte D, Faerman J. Comparison of Time Series Prediction of Healthcare Emergency Department Indicators with ARIMA and Prophet. In: 9th International Conference on Computer Science, Engineering and Applications (ICCSEA 2019) [Internet]. Aircc publishing Corporation; 2019 [cited 2025 Jan 29]. p. 123–33. Available from: http://aircconline.com/csit/papers/vol9/csit91810.pdf
- 30. Mateo J, Rius-Peris JM, Maraña-Pérez AI, Valiente-Armero A, Torres AM. Extreme gradient boosting machine learning method for predicting medical treatment in patients with acute bronchiolitis. Biocybernet Biomed Eng. 2021;41(2):792–801.
- 31.
Wickham H, François R, Henry L, Müller K, Vaughan D. dplyr: A Grammar of Data Manipulation [Internet]. 2014 [cited 2025 Jan 29]. 1.1.4 p. Available from: https://CRAN.R-project.org/package=dplyr
- 32.
R Core Team. R: A language and environment for statistical computing. R Foundation for Statistical Computing [Internet]. Vienna, Austria. 2013 [cited 2025 Jan 29]. Available from: https://www.rdocumentation.org/packages/stats/versions/3.6.2
- 33.
Ollech D. seastests: Seasonality Tests [Internet]. 2019 [cited 2025 Jan 29]. 0.15.4 p. Available from: https://CRAN.R-project.org/package=seastests
- 34. Nau R. Mathematical structure of ARIMA models. Duke University Online Article. 2014;1:1–8.
- 35. Punyapornwithaya V, Thanapongtharm W, Jainonthee C, Chinsorn P, Sagarasaeranee O, Salvador R. Time series analysis and forecasting of the number of canine rabies confirmed cases in Thailand based on national-level surveillance data. Front Vet Sci. 2023;10:1294049.
- 36.
Shaub D, Ellis P. forecastHybrid: Convenient Functions for Ensemble Time Series Forecasts [Internet]. 2016 [cited 2025 Jan 31]. 5.0.19 p. Available from: https://CRAN.R-project.org/package=forecastHybrid
- 37.
Hyndman R, Koehler AB, Ord JK, Snyder RD. Forecasting with Exponential Smoothing: The State Space Approach. Springer Science & Business Media; 2008. 360 p.
- 38.
Guo Z, Gong H, Li Y, Tao C, Zhou L. Time series analysis and prediction of scarlet fever incidence trends in Jiangsu Province, China: using ARIMA and TBATS models [Internet]. 2022 [cited 2025 Jan 29]. Available from: https://www.researchsquare.com/article/rs-2259096/v1
- 39. Rasouli S, Tabesh H, Etminani K. A study of input variable selection to artificial neural network for predicting hospital inpatient flows. BJAST. 2016;18(4):1–8.
- 40. Wichard JD. An adaptive forecasting strategy with hybrid ensemble models. In: 2016 International Joint Conference on Neural Networks (IJCNN) [Internet]. Vancouver, BC, Canada: IEEE; 2016 [cited 2025 Jan 29]. p. 1495–8. Available from: http://ieeexplore.ieee.org/document/7727375/
- 41. Aditya Satrio CB, Darmawan W, Nadia BU, Hanafiah N. Time series analysis and forecasting of coronavirus disease in Indonesia using ARIMA model and PROPHET. Procedia Comput Sci. 2021;179:524–32.
- 42.
Taylor S, Letham B. prophet: Automatic Forecasting Procedure [Internet]. 2017 [cited 2025 Jan 31]. 1.0 p. Available from: https://CRAN.R-project.org/package=prophet
- 43.
Chen T, He T, Benesty M, Khotilovich V, Tang Y, Cho H, et al. xgboost: Extreme Gradient Boosting [Internet]. 2014 [cited 2025 Jan 31]. 1.7.8.1 p. Available from: https://CRAN.R-project.org/package=xgboost
- 44. Kosaruk W, Brown JL, Plangsangmas T, Towiboon P, Punyapornwithaya V, Silva-Fletcher A. Effect of tourist activities on fecal and salivary glucocorticoids and immunoglobulin A in female captive Asian elephants in Thailand. Animals. 2020;10(10):1928.
- 45. Norkaew T, Brown JL, Thitaram C, Bansiddhi P, Somgird C, Punyapornwithaya V, et al. Associations among tourist camp management, high and low tourist seasons, and welfare factors in female Asian elephants in Thailand. PLoS One. 2019;14(6):e0218579. pmid:31206564
- 46. Bansiddhi P, Nganvongpanit K, Brown JL, Punyapornwithaya V, Pongsopawijit P, Thitaram C. Management factors affecting physical health and welfare of tourist camp elephants in Thailand. PeerJ. 2019;7:e6756. pmid:31086730
- 47. Suriyong S, Sringarm K, Krittigamas N, Bansiddhi P. A Study of the Feed Management Practices of Private Elephant Camps in Chiangmai Province. VIS. 2023;21(3):945–58.
- 48. Boonprasert K, Srivorakul S, Monchaivanakit N, Langkaphin W, Sripiboon S, Janyamethakul T, et al. Characterizations of Elephant Endotheliotropic Herpesvirus Type 1A and 4 Co-Infections in Asian Elephant (Elephas maximus) Calves. Vet Sci. 2024;11(4):147. pmid:38668415
- 49. Franco Dos Santos DJ, Berger V, Cristofari R, Htut W, Nyein UK, Aung HH, et al. Seasonal variation of health in Asian elephants. Conserv Physiol. 2020;8(1):coaa119. pmid:33408865
- 50. Ukonaho S, Berger V, Franco Dos Santos DJ, Htut W, Aung HH, Nyeing UK, et al. Seasonal variation in molecular and physiological stress markers in Asian elephants. Conserv Physiol. 2023;11(1):coad029. pmid:38026806
- 51. Kosaruk W, Brown JL, Towiboon P, Pringproa K, Punyapornwithaya V, Tankaew P, et al. Seasonal patterns of oxidative stress markers in captive Asian elephants in Thailand and relationships to elephant endotheliotropic herpesvirus shedding. Front Vet Sci. 2023;10:1263775.
- 52. Norkaew T, Brown JL, Bansiddhi P, Somgird C, Thitaram C, Punyapornwithaya V, et al. Influence of season, tourist activities and camp management on body condition, testicular and adrenal steroids, lipid profiles, and metabolic status in captive Asian elephant bulls in Thailand. PLoS One. 2019;14(3):e0210537. pmid:30865634
- 53. Khadpekar Y, Selvaraj I, Sha AA, Kamalanathan M. Clinical management of intestinal impaction and colic in an Asian elephant. Gajah. 2020;51:26–30.
- 54. Boonprasert K, Punyapornwithaya V, Tankaew P, Angkawanish T, Sriphiboon S, Titharam C, et al. Survival analysis of confirmed elephant endotheliotropic herpes virus cases in Thailand from 2006 - 2018. PLoS One. 2019;14(7):e0219288. pmid:31276571
- 55. Kuan MM. Applying SARIMA, ETS, and hybrid models for prediction of tuberculosis incidence rate in Taiwan. PeerJ. 2022;10:e13117.
- 56.
Wang Y, Chen R, Wang Y, Liu P, Guan Z. Time series neural network-based analysis of hospital material prediction under infectious disease epidemic [Internet]. 2022 [cited 2025 Feb 27]. Available from: https://www.researchsquare.com/article/rs-2304394/v1
- 57. Lv C-X, An S-Y, Qiao B-J, Wu W. Time series analysis of hemorrhagic fever with renal syndrome in mainland China by using an XGBoost forecasting model. BMC Infect Dis. 2021;21(1):839. pmid:34412581
- 58. Yin H, Sharma B, Hu H, Liu F, Kaur M, Cohen G, et al. Predicting the Climate Impact of Healthcare Facilities Using Gradient Boosting Machines. Clean Environ Syst. 2024;12:100155. pmid:38444563