Abstract
Although wildfires represent a significant threat to Mediterranean ecosystems, many countries within the region still lack the required ground-based monitoring infrastructure for conventional predictive models. Morocco, classified as a country at moderate-to-high wildfire risk while remaining underrepresented in predictive modeling literature, provides a representative case of the environmental and data constraints encountered in Mediterranean settings. This study presents and evaluates a hybrid framework designed to support wildfire risk prediction in these environments. The framework combines Autoregressive Integrated Moving Average models for temporal trend extraction, Extreme Gradient Boosting for monthly fire count prediction, and Shapley Additive Explanations for model interpretability into an integrated workflow. The framework was applied to a national monthly series covering Morocco, with K-means clustering used to describe seasonal environmental regimes. On the test split, the hybrid model reached a mean absolute error of 27.74 fires per month, the lowest among the compared models, although the differences were within the uncertainty of the estimates and environment-only XGBoost had a lower RMSE. Shapley Additive Explanations showed that temperature, vegetation condition, and the ARIMA-derived feature jointly carried the largest share of the predictions. Predicted fire counts were converted into Low, Moderate, and High risk levels through a threshold-based classification scheme to provide an interpretable representation of model outputs. The results illustrate the feasibility of combining open-access data, machine learning, and explainable artificial intelligence into an integrated pipeline to facilitate proactive wildfire prevention and risk assessment in data-scarce environments.
1. Introduction
1.1. Background and Motivation
Wildfires are among the most destructive natural hazards affecting diverse Mediterranean countries, with approximately 50,000 fires burning between 600,000 and 900,000 hectares annually [1]. This study selected Morocco to serve as a representative case for these challenges, considering its classification as a moderate-to-high wildfire risk zone [2]. The country suffers an annual loss of northern forests equaling approximately 1185 hectares, amounting to 43% of the national total burned area [2], while remaining underrepresented in the modeling literature regardless of its documented vulnerability.
To address this gap, we reviewed predictive model suitability for data-scarce Mediterranean regions across three categories: spatial risk mapping, temporal forecasting, and fire spread simulation [3]. Following a comparative analysis of eight predictive models against three evaluation criteria (Section 2.1), the review recognized Extreme Gradient Boosting (XGBoost) as the most consistent model in terms of performance within the spatial risk mapping category and the Autoregressive Integrated Moving Average (ARIMA) model as the most appropriate approach for forecasting temporal variables under data-limited conditions [3]. The review further identified SHAP-(version 0.51.0) based interpretability as a necessary component of any operational framework, reasoning that wildfire risk predictions heavily influence decisions made by land managers and policymakers [3]. Explainability is therefore a design requirement that can allow each predicted risk level to be traced back to the environmental drivers behind it, validating engineering standards such as IEEE 7001-2021 that mandate transparency in autonomous systems and emergency response protocols like ISO 22324:2022 that require clear, understandable risk communication [4,5]. Additionally, the review identified freely available Moderate Resolution Imaging Spectroradiometer (MODIS) products as the main data source capable of supporting both models. Based on these findings, this study adopts a hybrid ARIMA-XGBoost-SHAP framework for wildfire risk assessment in data-scarce Mediterranean environments [3].
However, the proposed approach remained conceptual, without an evaluation of its implementation, predictive performance, and applicability under real operational conditions. This work fills that gap by presenting its full evaluation using Morocco as a representative Mediterranean case study, aiming to transform the conceptual framework into an operational predictive pipeline through the integration of a dataset exclusively from open-access sources covering Morocco from 2010 to 2023. The results assess its feasibility, predictive performance, limitations, and its potential as a decision-support tool for wildfire prevention and risk assessment instead of just a predictive modeling approach.
1.2. Contributions
The key contributions of this work are:
- •
- A feature-level ARIMA-XGBoost integration strategy;
- •
- An end-to-end implementation and evaluation of the proposed framework, intended to benefit not only Morocco but any similar Mediterranean region as well;
- •
- A replicable architecture presented in a clear step-by-step methodology, enabling its adaptation to other Mediterranean regions.
The paper is structured as follows: Section 2 elaborates on the systematic review that led to the modeling choices of this framework and covers related work on existing ARIMA-XGBoost architectures and the use of explainable artificial intelligence for decision support. Section 3 details the adopted methodology, including the different components of the predictive pipeline and their interactions, while Section 4 presents the results for each one. Section 5 discusses those results with regard to previous studies and considers their implications for other data-scarce Mediterranean regions. Section 6 concludes the paper and specifies directions for future work.
2. Related Work
Before presenting the adopted implementation, it is important to first present the reasoning behind the selection of the core models of the framework and to examine how similar approaches have been applied in earlier research. This section starts with a summary of the conducted comparative evaluation that led to the selection of ARIMA and XGBoost. It then reviews previous studies that cover different integration strategies of these two models. Finally, the section ends with a review of previous use cases of explainable artificial intelligence in emergency systems. These studies serve as the foundation for the design choices and the implementation approach adopted in this work.
2.1. Comparative Performance of Individual Prediction Models
The systematic review compared prediction models across spatial risk mapping, temporal forecasting, and fire spread simulation. To ensure a transparent evaluation of each model’s suitability, the authors established three evaluation criteria: predictive performance, data requirements, and adaptability to low-resource environments [3]. The results are summarized in Table 1, which represents the comparative assessment in the discussion of the original review.
Table 1.
Comparative evaluation of reviewed prediction models across pre-defined assessment criteria [3].
The spatial risk mapping category evaluated XGBoost and Frequency Ratio–Random Forest (FR-RF). XGBoost demonstrated strong predictive performance while only requiring a moderate amount of publicly available data, outperforming FR-RF across the evaluation criteria and ranking highest within its category [3].
The temporal forecasting category evaluated ARIMA, Long Short-Term Memory (LSTM), and AttentionFire_v1.0. The included studies demonstrated ARIMA’s low data requirements, reliance on a single point variable, and low computational demands, whereas LSTM and AttentionFire_v1.0 required considerably larger and more complex datasets, making them less suitable for the target environmental context of our study [3].
The fire spread simulation category assessed Cell2Fire, Eulerian Level Set Model of Fire spread (ELMFIRE), and the fire-coupled Weather Research and Forecasting model (WRF-Fire). While all three options demonstrated high predictive performance, none had the same balance between performance and practical applicability as XGBoost and ARIMA. Therefore, fire spread simulation models were not included in the proposed framework, leaving Cell2Fire as a promising candidate for future integration once locally calibrated fuel data become available [3].
Based on this synthesis, XGBoost and ARIMA were selected as the core models for the proposed framework. A detailed discussion of the review methodology and full model comparisons is available in [3].
2.2. Hybrid Architectures
Combining time-series forecasting with machine learning is growing as a popular approach for modeling complex environmental processes. Surprisingly, there is no standard strategy for integrating these components, and different integration methods can lead to different predictive outcomes. Studying these alternatives is therefore essential, as each offers its own advantages and disadvantages. This section presents and compares three distinct ARIMA-XGBoost architectures.
The first study adopted a parallel stacking strategy, where ARIMA and XGBoost were trained separately, each predicting the same target variable before combining their outputs. This approach was applied to groundwater level forecasting using data from an Italian aquifer [6]. The study included five standalone models: ARIMA, XGBoost, LightGBM, Random Forest, and Decision Trees. The results determined ARIMA and XGBoost to be the strongest standalone performers. Subsequently, each model’s prediction was combined with the others in a stacked ensemble. The hybrid achieved a mean absolute error of 0.271 and a root mean square error of 0.0406, outperforming both individual models on both metrics. However, despite the simplicity of this architecture, it assumes that each model has an independent contribution to the final prediction, which could highly influence the learning capacity of the model.
The second study followed a residual correction approach, covering the forecast of China’s energy supply security index across twelve indicators, including availability, affordability, environmental performance, and energy efficiency [7]. First, ARIMA was fitted to each indicator time series, and then its residuals were passed as the training target for the XGBoost model. The hybrid model achieved a mean absolute percentage error below 4.5% across all indicators, outperforming the standalone ARIMA model. However, this approach is based on the assumption that real-world time series have both linear and nonlinear information for XGBoost to learn the remaining patterns, which may not hold across all datasets.
The third study introduced Local Mean Decomposition (LMD) to decompose the WTI crude oil price series into product functions, which were subsequently classified as either stochastic or deterministic components [8]. While ARIMA was applied to the stochastic component, XGBoost integrated the reconstructed forecasts into a final output. The LMD-SD-ARIMA-XGBoost hybrid achieved a root mean square error of 0.1504 over a 20-day forecasting period, outperforming five alternative configurations. Although this approach demonstrates strong accuracy, it still requires an additional preprocessing step that could increase the complexity and potential sensitivity of the decomposition algorithm itself.
A common pattern can be observed across these distinct studies: model integration order is directly related to the target variable of the system. In the context of wildfire data in Mediterranean regions, environmental features consist of both strong seasonal structure and event-driven extremes. This mixed variability profile calls for an integration strategy where ARIMA and XGBoost serve complementary roles rather than duplicating predictive effort.
2.3. Explainable Artificial Intelligence for Decision Support
The “black-box” nature of machine learning models tends to reduce stakeholder confidence in their predictions. More importantly, understanding prediction outcomes is essential for a successful implementation of prevention systems managed by non-technical stakeholders. Explainable Artificial Intelligence (XAI) addresses this challenge by providing transparent and interpretable explanations of model predictions. Among XAI techniques, Shapley Additive exPlanations (SHAP) is one of the most widely adopted methods for model interpretability. The following section reviews its use across diverse systems.
In a study on ecological carbon sequestration, SHAP was able to complement predictive models by generating a detailed breakdown of the factors driving the produced predictions. The authors found that the correlation analysis and principal component analysis (PCA) were good at detecting broad environmental trends but failed to quantify the individual contribution of each included variable. In contrast, SHAP successfully quantified variable contributions, identifying a non-stomatal limitation mechanism in one functional group and a vapor pressure deficit threshold. Such discoveries would not have been made by solely relying on conventional statistical analyses [9].
In the structural health monitoring department, a study used SHAP to interpret XGBoost outputs [10]. As a result, SHAP ranking analysis identified spectral kurtosis as the most influential feature, followed by standard deviation and spectral centroid within the same frequency range [10]. These results were consistent with the known behavior of longitudinal wave resonance over void defects, thereby confirming the model’s ability to learn physically meaningful signal characteristics rather than superficial correlations [10].
The last study addressed the limited interpretability of machine learning models, which consequently reduces their usefulness for disaster management and decision-making systems [11]. The authors combined SHAP for global model interpretation with Local Interpretable Model-agnostic Explanations (LIME) for instance-level analysis. While SHAP identified the strongest wildfire susceptibility contributors [11], LIME generated explanations of individual predictions [11]. Together, these methods produced local and global explanations which improved the interpretability of the susceptibility models.
These studies demonstrate the impact of interpretability on machine learning models, from helping identify the variables driving model predictions to validating whether those relationships are physically meaningful.
3. Methodology
The framework detailed in this section serves as the predictive engine of a larger web-based decision-support system that provides wildfire risk visualization, multilingual user interaction, and SHAP-based explanations. However, this paper focuses only on the implementation of the predictive engine of the system.
3.1. Framework Overview
The previously reviewed ARIMA-XGBoost integration strategies implemented both models to predict the same target variable, either independently or in sequence. The architecture adopted in this study is designed around an environmental variable representing current fire count, and a temporal variable characterized by seasonal patterns and autocorrelation. Therefore, ARIMA is used to model the historical fire dynamics and generate a temporal feature that is passed to XGBoost as additional input, and the final prediction is produced by XGBoost alone. This separation of roles differs from the reviewed ones, introducing a feature-level integration strategy rather than a variation in existing ones. The complete pipeline is illustrated in Figure 1.
Figure 1.
End-to-end pipeline of the predictive framework for wildfire risk assessment in data-scarce Mediterranean environments.
The pipeline consists of three functional zones, starting at the input level, where data is integrated from different sources. Monthly fire counts and vegetation indices are obtained from MODIS and climate variables from NASA POWER, and then assembled into a unified dataset covering Morocco from 2010 to 2023. From this dataset, the framework follows two paths. The first is descriptive, using K-means clustering to characterize the seasonal environmental regimes of the dataset. The second path is the modeling zone, which begins with ARIMA temporal modeling. Stationarity is first assessed with the Augmented Dickey–Fuller (ADF) and Kwiatkowski–Phillips–Schmidt–Shin (KPSS) tests. The result sets the differencing order, which is applied only when the series is not stationary. ACF/PACF diagnostics are then applied to determine the remaining model parameters before it is fitted to the fire count series. The ARIMA-derived feature is subsequently added to the environmental variables and fed to XGBoost as input to predict the monthly fire count. In the output zone, the prediction serves two parallel processes. On one side, SHAP quantifies the contribution of each input feature to the prediction. On the other side, the predicted fire count is converted into a Low, Moderate, or High risk level through pre-defined thresholds to provide end users with an intuitive prediction explanation.
3.2. Data Collection and Integration
This study relies exclusively on open-access datasets. The final integrated dataset covers Morocco at a monthly resolution from January 2010 to December 2023, giving 168 consecutive monthly observations. Table 2 lists the variables, their sources, native spatial resolutions, and their respective roles in the pipeline.
Table 2.
Data sources.
Terrain elevation from the Shuttle Radar Topography Mission (SRTM, 30 m) was also considered. Since every variable is aggregated to one national value per month, elevation reduces to a single national mean of 287.04 m, obtained by averaging all SRTM pixels within Morocco’s boundaries. The obtained value is identical in every month and carries no information about the month-to-month variation in fire activity. Therefore, it was excluded from the study dataset.
3.2.1. MODIS Fire Detections
Fire count was derived from the MODIS MCD14ML active fire product by NASA’s Terra and Aqua satellites. MCD14ML detects active fires at an approximate spatial resolution of 1 km by identifying thermal anomalies in MODIS bands 21, 22, and 31 [12]. Monthly fire counts equal the total number of fire detections recorded each month within a rectangular study area covering Morocco (27–36° N, 13–1° W), with months without detections assigned a value of zero to preserve the continuous time series required for temporal modeling. The rectangle follows the national territory closely and omits only a small southern strip, with an expected negligible effect on the monthly series. This aggregation smooths over short-duration, high-intensity fire episodes within a month.
3.2.2. MODIS NDVI
Vegetation condition was derived from the MODIS MOD13A3 monthly Normalized Difference Vegetation Index (NDVI) product at a spatial resolution of 1 km. MOD13A3 provides monthly composites by selecting the highest-quality, least cloud-contaminated observation available within each month [13]. Complete monthly coverage was available throughout the study period, with no missing observations. Monthly NDVI was computed with NASA AppEEARS as the spatial mean over all valid 1 km pixels of the sample area covering Morocco, to produce a national estimate.
3.2.3. NASA POWER Climate Reanalysis
NASA’s Prediction of Worldwide Energy Resources (POWER) reanalysis dataset was used to extract mean monthly temperature (°C), total monthly precipitation (mm), and mean monthly wind speed (m/s) at a resolution of 0.5°. The POWER dataset has globally consistent, gap-free climate estimates derived from satellite observations and atmospheric modeling [14]. For each month, all POWER grid cells located within Morocco’s national boundaries (Natural Earth, 1:110 m, v5.1.1) were averaged to produce nation-scale estimates of the climate variables. This aggregation enabled complete temporal coverage throughout the study period.
3.2.4. Dataset Integration and Preprocessing
The multi-source dataset was formed in two stages. First, each source was reduced to one national value per calendar month. Second, the monthly series were aligned by year and month, resulting in one observation per calendar month (Table 3). Each observation contains the target variable (monthly fire count) and four environmental predictors: mean temperature, total precipitation, mean wind speed, and mean NDVI. The ARIMA-derived feature (ARIMA_trend) was added to these predictors in the first modeling stage, and the seasonal regime assignment was determined through clustering and stored for descriptive purposes. Additionally, the dataset was assessed for temporal gaps to satisfy the requirements for the temporal train-test split described in Section 3.2.5. Nevertheless, across all sources, the available data provide an aggregated view of underlying fire incidents. Sub-daily fire detections are aggregated into monthly totals, while zero-filled months merge ‘no data’ with ‘no activity’, defining the data scarcity context of this study and motivating the modeling approach presented in the upcoming sections. Table 3 shows the representative rows of the final dataset.
Table 3.
Representative rows of the final national monthly dataset (168 months).
3.2.5. Temporal Train-Test Split
To prevent data leakage, the dataset was split in chronological order using an 80/20 ratio. This approach ensured that the test period was long enough to cover at least one complete fire season. As a result, the first 135 months (January 2010–March 2021) were allocated to the training set, while the remaining 33 months (April 2021–December 2023) were allocated to the testing set, which was used strictly for the final evaluation.
3.2.6. Feature Analysis
The examination of the linear relationship between each predictor variable and the fire count was performed using Pearson correlation analysis. The results are illustrated in the correlation matrix in Figure 2.
Figure 2.
Pearson correlation matrix of predictor variables and fire count target.
The correlation matrix shows the moderate linear correlations between all the environmental predictors and the monthly fire count. The strongest positive correlation is shown by mean temperature (r = +0.69), consistent with the influence of higher temperature on fire occurrence. The strongest negative correlation is with NDVI (r = −0.65), consistent with the tendency of greener, less water-stressed vegetation to be associated with lower fire activity. Total precipitation has a moderate negative correlation (r = −0.33), and mean wind speed has a weak positive correlation (r = +0.19). Additionally, the correlation matrix reveals strong relationships between mean temperature and mean NDVI (r = −0.76), followed by mean temperature and mean wind speed (r = +0.57). These correlations reflect the common seasonal cycle of the variables and imply that contributions of the predictors cannot be fully separated.
3.3. Seasonal Regimes via K-Means Clustering
The national monthly dataset follows a pronounced seasonal cycle, with cool/wet months alternating with hot/dry months. K-means clustering is applied to characterize this seasonal environmental variability by grouping months with similar conditions into seasonal regimes, providing a description of the environmental information of the dataset.
3.3.1. Feature Standardization
Clustering was performed using the four environmental variables (temperature, precipitation, wind speed, and NDVI), each standardized through Z-score normalization (1):
where x is the original value, μ is the mean, and σ is the standard deviation. The standardization step is critical because the variables differ in both scale and measurement units. Scaling them to a common range ensures that each variable contributes equally to the clustering process and prevents variables with larger numerical values from disproportionately influencing the distance calculations.
3.3.2. Optimal K Selection
The number of clusters K was determined using both the Elbow Method and the Silhouette Score, both computed on the standardized training months. The Elbow Method evaluates cluster compactness by measuring the within-cluster sum of squared distances, while the Silhouette Score measures how each observation is separated from the neighboring cluster.
where Cj denotes the set of observations assigned to cluster j, x ∈ Cj is an individual observation, and ∥x − μ j∥2 represents the squared Euclidean distance between the observation and the centroid assigned to its cluster.
where a(i) is the average distance between observation i and all other observations within the same cluster, and b(i) is the average distance between observation i and the nearest neighboring cluster.
K was selected as the value with the highest Silhouette Score. Figure 3 illustrates the decrease in inertia from 293.6 at K = 2 to 233.3 at K = 3, and inertia then declines gradually, without a pronounced elbow, while the Silhouette Score is highest at K = 2 (0.418) and decreases for every larger K (Figure 4).
Figure 3.
Inertia as a function of the number of clusters K (Elbow Method).
Figure 4.
Silhouette Score as a function of the number of clusters K.
Therefore, K = 2 was selected as the optimal number of clusters.
3.3.3. Seasonal Regime Characterization
Because each observation is one national month, the two clusters describe types of months rather than geographic areas, and are referred to as seasonal regimes. Consequently, these regimes are not spatially fixed, and the assignment varies over time. Table 4 summarizes the regimes for the training months. The profiles were detected through the computation of the mean value of each environmental variable across all observations assigned to a given cluster.
Table 4.
Seasonal regime profiles.
Test months were standardized with the training means and standard deviations and assigned to the nearest training centroid. The regimes follow the calendar: November to April months belong to Regime 0 (with one exception in April) and June to September months to Regime 1, while May and October are transitional. Regime 1 contains 57 of the 135 training months but 74.7% of the training fire detections, with a mean of 43.4 fires per month, against 10.8 in Regime 0.
To visualize the separation between the clusters, we used principal component analysis (PCA) to produce a two-dimensional representation that facilitates the interpretation of the resulting cluster structure. Figure 5 illustrates the distribution of two regimes in the reduced space. The two regimes are mainly separated along the first component, such that Regime 1 lies on the positive side while Regime 0 lies on the negative side. Regime 1 forms a compact group, whereas Regime 0 is more dispersed along the second component. A small number of months lie close to the boundary between the two groups, which is consistent with the gradual transition between seasons.
Figure 5.
Visualization of the identified clusters using principal component analysis (PCA).
3.4. ARIMA Implementation
This section describes the implementation of the ARIMA model on the national monthly fire count series, including stationarity testing, parameter selection, and temporal feature extraction.
3.4.1. Stationarity Testing
ARIMA assumes that its input time series is stationary, meaning that its statistical properties, including the mean, variance, and autocorrelation structure, remain stable over time [15]. However, monthly fire counts in Morocco follow a pronounced annual cycle, with a peak in summer and low activity in winter, which a model cannot represent unless the cycle is handled explicitly. The seasonal component was therefore removed before testing by subtracting from each month’s count the mean fire count of the same calendar month, estimated on the training months only. Stationarity was assessed on the raw and the seasonally adjusted series with the Augmented Dickey–Fuller (ADF) test, whose null hypothesis is a unit root [16], and the Kwiatkowski–Phillips–Schmidt–Shin (KPSS) test, whose null hypothesis is stationarity [17]. The ADF test was evaluated at the 5% level (p < 0.05) and the KPSS test at the 10% level (critical value of 0.347), and a series was considered stationary when both tests agreed. Figure 6 illustrates the results.
Figure 6.
Stationarity assessment of the national monthly fire count series on the training split: raw series vs. seasonally adjusted series.
For the raw series, the ADF test did not reject the unit root (p = 0.161), while the KPSS statistic (0.036) was below the critical value (0.347), so the result is inconclusive. For the seasonally adjusted series, both tests supported stationarity (p < 0.001, KPSS statistic 0.126). This result indicates that differencing is not required (d = 0) once the seasonal component is accounted for.
3.4.2. Parameter Selection
The ARIMA(p,d,q) parameters were selected in three steps: the differencing order d, the autoregressive order p, and the moving average order q.
The differencing order d was chosen from the stationarity testing (Section 3.4.1). Differencing is applied only when the series is non-stationary, and since the seasonally adjusted series was stationary, d = 0.
The orders p and q describe short-term dependence between consecutive months. The autoregressive order p is the number of past observations used to predict the current month, and the moving average order q is the number of past prediction errors used for the same purpose. Since the series contains exactly one observation for each calendar month, lag k corresponds to the observation k calendar months earlier. Both orders were identified from the Autocorrelation Function (ACF) and Partial Autocorrelation Function (PACF) (Figure 7). The ACF measures the correlation between a time series and its previous values at different time lags, with a sharp cutoff indicating the presence of a moving average (MA) component of the corresponding order [15]. The PACF measures the correlation between a series and its lagged values after accounting for the effects of shorter lags, with a sharp cutoff indicating the order of the autoregressive (AR) component [15].
Figure 7.
ACF and PACF for the seasonally adjusted national monthly fire counts.
Because both functions cut off after lag 1, MA(1) and AR(1) were compared on the training months, together with ARMA(1,1), AR(2) and MA(2), each fitted with the calendar-month effects. MA(1) had the lowest AIC (1141.8) and BIC (1182.5), against 1144.1 and 1184.8 for AR(1). The margin over AR(1) is small, making the choice between the two not critical. Therefore, the selected model was ARIMA(0,0,1), which was fitted to the training months.
3.4.3. ARIMA_trend Feature Extraction
ARIMA_trend is the one-step-ahead prediction of the monthly fire count, obtained as follows. The model parameters were estimated once on the 135 training months and kept fixed. For each month t, the prediction uses only the observations up to month t − 1 and the calendar month of t. The same rule is applied to the training and test months, so the feature has the same meaning in both periods.
3.5. XGBoost Implementation
With XGBoost serving as the primary predictive model of this framework, it receives the full feature matrix assembled throughout the previous stages. The regressor is trained to predict monthly fire counts by learning the nonlinear relationships between the temporal baseline and environmental variables. This section details the configuration of this model.
The XGBoost hyperparameters were selected using the training months only. A random search evaluated 300 candidate settings from the ranges in Table 5, and each setting was evaluated by time-ordered cross-validation with five expanding-window folds, each validated on the 12 months following its training window. Settings were ranked by their mean absolute error (MAE), and the lowest (9.33) was retained. The search used a fixed random seed (42) and was implemented with scikit-learn (version 1.9.1) [18], using the RandomizedSearchCV and TimeSeriesSplit functions and the model with XGBoost (version 3.4.1).
Table 5.
XGBoost hyperparameter configuration.
These hyperparameters follow their definitions in the XGBoost documentation [19]. The learning rate shrinks the contribution of each tree, the maximum depth and the minimum child weight limit tree complexity, reg_lambda is the L2 regularization on leaf weights, and subsample and colsample_bytree set the fraction of rows and columns sampled for each tree. The squared error objective was used because the target variable is a continuous monthly count.
3.6. Interpretability Implementation
This section covers key design choices of this framework: SHAP-based interpretability analysis and threshold-based risk classification.
3.6.1. SHAP-Based Interpretability
Shapley Additive exPlanations (SHAP) is an explainable artificial intelligence technique based on cooperative game theory that measures the contribution of each feature to an individual model prediction [20]. For each prediction, SHAP expresses the model output as:
where ϕ0 is the expected model output over the training data, M is the number of features, and ϕi is the Shapley value associated with feature i. Each Shapley value is computed as:
where F is the complete set of features, S is a subset excluding feature i, v(S) is the model output obtained using only the features in S, and v(S∪{i}) − v(S) represents the marginal contribution of feature i.
SHAP values were computed with TreeSHAP, a particular SHAP implementation developed specifically for tree-based models [21]. Because SHAP shares credit among correlated features, features were also grouped, such that those with an absolute correlation of at least 0.7 in the training months were placed in the same group [22]. Features linked through such correlations form a single group, and the importance of a group is the mean absolute value of the sum of the SHAP values of its members.
3.6.2. Risk Classification
The conceived threshold-based classification scheme adheres to the international ISO 22324:2022 standard for the use of color-coded emergency information in public warning systems to ensure standard communication symbols [5]. The established thresholds are summarized in Table 6.
Table 6.
Risk classification thresholds.
The classification thresholds were derived from descriptive statistics of the monthly fire counts of the training set. The median of 13 and the mean of 24.5 fires per month indicate a right-skewed distribution, influenced by relatively few high-fire events, while most observations remained at low levels. Accordingly, the Low-risk threshold (y < 13) was defined using the median to represent typical background fire activity. The High-risk threshold (y ≥ 24.5) was set at the mean, such that only predictions exceeding the average level of fire activity were classified as High risk. Values between these two thresholds (13 ≤ y < 24.5) were assigned to the Moderate-risk category, representing the transition between Low- and High-risk conditions.
4. Results
This section presents the results and evaluation of each component of the implemented framework.
4.1. ARIMA Baseline Performance
An ARIMA(0,0,1) model was fitted separately to the 135 training months of the national monthly fire count series. Its performance on the 33 test months reached an MAE of 30.42 and an RMSE of 81.09 fires per month. Figure 8 shows the observed counts against these predictions over the full study period and over the test months.
Figure 8.
National monthly fire counts and ARIMA predictions: full period (left) and test period (right).
The model reproduces the seasonal cycle of fire activity, with the highest counts in the summer months, but it underestimates the exceptional month of July 2022. This month could not be anticipated from past observations and contributes most of the RMSE. ARIMA_trend closely follows the seasonal cycle, such that in the training months it correlates at 0.975 with the mean fire count of the corresponding calendar month.
4.2. Hybrid XGBoost Performance
The performance of the XGBoost model was assessed using the 33 test months. The hybrid model reached an MAE of 27.74 and an RMSE of 78.80 fires per month, against 6.4 and 10.2 on the training months (Figure 9).
Figure 9.
Hybrid model performance: observed and predicted monthly fire counts on the test set (left), and MAE and RMSE on the training and testing sets (right).
The predictions follow the seasonal cycle of fire activity in Morocco, and as with ARIMA, XGBoost seems to underestimate the exceptional month of July 2022. This single month explains most of the gap between the test and training errors and the large RMSE relative to MAE. Of the 33 test months, 19 belong to the hot/dry regime (Regime 1), which accounts for 99.5% of the squared error of the hybrid model.
To put these results in context, the hybrid was compared with the baselines and alternative architectures previously described in Section 2.2 (Table 7).
Table 7.
Test-set errors of all models on the test months.
The results show that the hybrid has an MAE that is 27% lower than the seasonal naïve forecast, and 11% lower than climatology. Compared with XGBoost on the environmental variables alone, adding ARIMA_trend lowers the MAE by 0.4 fires per month, while the RMSE is higher (78.80 against 74.84). The residual-correction and stacking architectures do not improve on the hybrid configuration (MAEs of 30.2 and 29.6). Nevertheless, the evidence for the contribution of ARIMA_trend is modest; a longer test period would be needed to confirm the advantage of the hybrid over the simpler alternatives.
4.3. Risk Threshold Results
Given the preliminary nature of the risk thresholds introduced in Section 3.6.2, the following results should be interpreted as an illustration of the framework’s ability to generate differentiated risk levels rather than as a validation of the proposed classification scheme. Table 8 summarizes the distribution of the predicted risk levels in the test set.
Table 8.
Risk classification distribution across the test set.
All test predictions matched one of the three risk categories. The High category contains the largest share of months (54.5%), followed by the Moderate (24.2%) and Low (21.2%) categories, indicating that the model identifies a considerable number of months associated with above-average fire activity.
These results do not validate the classification scheme because they were produced using the training data distribution instead of externally validated operational standards. They are therefore intended to illustrate the pipeline’s ability to distinguish between different levels of wildfire risk.
4.4. SHAP Feature Analysis Results
Figure 10 illustrates the distribution of the SHAP values across the test set.
Figure 10.
SHAP value distribution per feature across the test set.
The individual SHAP importances of temperature, NDVI, and ARIMA_trend cannot be interpreted separately because these features are strongly correlated in the training months (temperature and ARIMA_trend: r = +0.81, temperature and NDVI: r = −0.76, NDVI and ARIMA_trend: r = −0.75). SHAP shares the contribution of such features among them, and this split is sensitive to small changes in the model. Applying the grouping rule of Section 3.6.1 places these three features in one group, while precipitation and wind speed, whose correlations with the other features stay below the 0.7 threshold, remain separate. Stability was assessed with 30 refits of the model (Figure 11).
Figure 11.
Mean absolute SHAP of individual features (left) and of the feature groups (right).
Among the individual features, ARIMA_trend has the highest mean importance (9.25), followed by NDVI (6.19), precipitation (5.40), temperature (4.01), and wind speed (3.02). ARIMA_trend ranks first in 27 out of 30 refits and NDVI in the other three. The importances of ARIMA_trend, NDVI, and temperature vary noticeably between fits, which is consistent with a signal shared among correlated features. At the group level, the results are more stable; the group formed by temperature, ARIMA_trend, and NDVI ranks first in all 30 fits, with an importance of 16.07, followed by precipitation (5.40) and wind speed (3.02).
4.5. Overall Framework Evaluation
Table 9 summarizes the findings of each stage of the framework.
Table 9.
Summary of the evaluation outcomes.
5. Discussion
5.1. Interpretation of Findings
The clustering results show that the environmental record of the national series is organized mainly by the seasonal cycle, as the two regimes follow the calendar and separate the months in which fire activity concentrates from the rest. The separation is moderate, so the regimes describe a gradual seasonal transition rather than distinct classes. Since they are not inputs to either model, they do not affect the predictions, but they provide the seasonal context in which model errors can be read.
The modeling stages build on this seasonal structure. ARIMA alone (MAE 30.42) performs close to the monthly climatology (31.27) and below the XGBoost models, which agrees with the ranking of the review motivating this study (Table 1) [3]. In the training months, ARIMA_trend is close to the calendar-month mean (r = 0.975), so it mainly provides the seasonal temporal baseline, fulfilling its assigned feature generator role within the pipeline.
Passing this baseline to XGBoost gives the hybrid model, which reproduces the seasonal cycle and obtains the lowest MAE among the compared models, although the differences are within the uncertainty of the estimates (Table 7). Nevertheless, the evidence of the ARIMA_trend contribution is modest, as the hybrid’s MAE is only 0.4 fires per month lower than that of the environmental-only XGBoost model. The performance is encouraging for a framework built on 168 monthly values from open-access sources only, but the 33-month test period cannot resolve differences of this size. Therefore, evaluation on longer records and in other Mediterranean regions is needed to establish whether this ordering holds.
The errors of the hybrid model are concentrated in a single month. The gap between the training MAE (6.4) and test MAE (27.7) is largely due to July 2022, which both ARIMA and XGBoost underestimate (Section 4.1 and Section 4.2) and which contributes most of the RMSE. This indicates that the monthly temporal and environmental variables are insufficient to capture infrequent, high-magnitude fire events, and makes the RMSE-based comparisons sensitive to a single observation.
At the output stage, SHAP shows that the predictions are driven mainly by the combined seasonal group of temperature, NDVI, and ARIMA_trend, followed by precipitation and wind speed. This ordering is stable across seeds, whereas the split of importance within the group is not (Section 4.4). For the users of a decision-support system, this makes the model’s behavior transparent, as it shows which conditions the predictions respond to and allows them to judge whether a predicted risk level is plausible. As for the risk classification, it produces a differentiated distribution of predicted risk levels (Table 8). As discussed in Section 4.3, this distribution should not be interpreted as validation of the classification scheme, since the thresholds were derived from the same training data used to define them. This limitation highlights the need for future validation against externally established operational standards.
However, some limitations should be noted. First, the study period is short, comprising 168 monthly values, with a 33-month test period in which a single month (July 2022) accounts for most of the error and therefore limits the reliability of the evaluation. Second, the K = 2 selection follows the silhouette criterion based on this study’s dataset. The obtained regimes separate hot/dry and cool/wet months without isolating the transitional months of May and October. Given Morocco’s climatic heterogeneity [3], a longer and more varied record would better represent a third, intermediate regime.
Altogether, these findings support the feasibility of the proposed framework as a complete end-to-end pipeline. The seasonal regimes describe the environmental cycle, the ARIMA-derived feature provides the seasonal temporal baseline to the XGBoost predictions, and SHAP provides their interpretation at the group level. Returning to the gap that motivated this study (Section 1.1), the study addresses the gap in terms of feasibility and baseline performance, and sets out the evidence still needed.
5.2. Implications for Data-Scarce Mediterranean Regions
This study presents the implementation of the hybrid wildfire risk prediction framework. As such, it provides a reference for adaptation in other Mediterranean regions facing similar data limitations. The framework is described step by step so that it can be replicated and the results reveal that its performance is closely linked to the quality and temporal resolution of its input data. Consequently, regions with higher-resolution data could adopt the same structure and reassess its performance. Therefore, this framework should be viewed as a flexible foundation that can be adapted and refined as higher-quality data becomes available.
6. Conclusions and Future Work
This study implemented and evaluated a hybrid ARIMA-XGBoost-SHAP framework for wildfire risk assessment in Morocco using open-access data. The framework integrated temporal forecasting, machine learning, and explainable artificial intelligence into a single predictive pipeline applied to a national monthly series. The hybrid model achieved the lowest MAE among the evaluated alternatives, although its advantage over the environmental-only XGBoost model was marginal and did not extend to RMSE. Beyond predictive performance, SHAP provided interpretable insights into the contribution of environmental and temporal features, while the threshold-based classification illustrated how model outputs could be translated into differentiated fire-activity levels. Together, these findings support the potential for investigating the capabilities of the framework in other data-scarce Mediterranean regions, while highlighting the limitations imposed by data scarcity.
Future work will focus on extending the evaluation to longer time series, incorporating higher-resolution data, and validating the framework across other data-scarce Mediterranean countries facing comparable wildfire exposure.
Author Contributions
Conceptualization, I.L.; methodology, H.M.; software, I.L. and H.M.; validation, I.L. and H.M.; formal analysis, H.M.; investigation, H.M.; resources, I.L.; data curation, H.M.; writing—original draft preparation, H.M.; writing—review and editing, I.L., T.R. and H.M.; visualization, H.M.; supervision, I.L., T.R. and M.K.; project administration, I.L. and T.R.; funding acquisition, I.L. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by Al Akhawayn University in Ifrane, and the APC was funded by I.L., the corresponding author.
Data Availability Statement
The source datasets analyzed in this study are publicly available. MODIS MCD14ML active fire data were obtained from NASA FIRMS (https://firms.modaps.eosdis.nasa.gov/download/ (accessed on 20 January 2026)). MODIS MOD13A3 Version 6.1 NDVI data are available from the NASA LP DAAC (https://doi.org/10.5067/MODIS/MOD13A3.061). Monthly climate variables were obtained from the NASA POWER project (https://power.larc.nasa.gov/ (accessed on 20 January 2026)). Any further details can be shared upon reasonable request.
Acknowledgments
During the preparation of this manuscript, OpenAI’s GPT-6 was used for language refinement. The authors have reviewed and edited the output and take full responsibility for the content of this publication.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Tatli, H.; Türkeş, M. Climatological Evaluation of Haines Forest Fire Weather Index over the Mediterranean Basin. Meteorol. Appl. 2014, 21, 545–552. [Google Scholar] [CrossRef] [Scilit]
- Mohajane, M.; Costache, R.; Karimi, F.; Pham, Q.B.; Essahlaoui, A.; Nguyen, H.; Laneve, G.; Oudija, F. Application of Remote Sensing and Machine Learning Algorithms for Forest Fire Mapping in a Mediterranean Area. Ecol. Indic. 2021, 129, 107869. [Google Scholar] [CrossRef] [Scilit]
- Mrabet, H.; Latachi, I.; Rachidi, T.; Karim, M. A Critical Review of Wildfire Risk Prediction Models in Data-Scarce Mediterranean Environments. GeoHazards 2026, 7, 76. [Google Scholar] [CrossRef] [Scilit]
- IEEE Std 7001-2021; IEEE Standard for Transparency of Autonomous Systems. IEEE: New York, NY, USA, 2022.
- ISO 22324:2022; Security and Resilience—Emergency Management—Guidelines for Colour-Coded Alert. International Organization for Standardization: Geneva, Switzerland, 2022.
- George, J.; Yadav, J.; M V, P.; Alapatt, B.P.; Nair, A.M.; Baby, R. Improving Groundwater Forecasting Accuracy with a Hybrid ARIMA-XGBoost Approach. In Proceedings of the 3rd International Conference on Advances in Technology (ICONAT), Goa, India, 6–8 September 2024; IEEE: New York, NY, USA, 2024; pp. 1–6. [Google Scholar] [CrossRef] [Scilit]
- Li, P.; Zhang, J.-S. A New Hybrid Method for China’s Energy Supply Security Forecasting Based on ARIMA and XGBoost. Energies 2018, 11, 1687. [Google Scholar] [CrossRef] [Scilit]
- Nasir, J.; Aamir, M.; Iftikhar, S.; Albidah, A.B.; Alqasem, O.A.; Elwahab, M.E.A.; Khan, I.; Koh, W.S. A Novel Hybrid Approach to Forecasting Crude Oil Prices Using Local Mean Decomposition, ARIMA, and XGBoost. IEEE Access 2025, 13, 89140–89156. [Google Scholar] [CrossRef] [Scilit]
- Han, S.; Liu, Y.; Ji, P.; Gao, R.; Zhang, R.; Zhang, W.; Weng, J. Unveiling the Drivers of Carbon Sequestration in Baotou Shelterbelt Species: A Functional Group Perspective with XGBoost-SHAP Interpretation. iScience 2026, 29, 115613. [Google Scholar] [CrossRef] [Scilit]
- Wang, S.; Li, F.; Zhang, Z.; Hu, Z.; Bing, P.; Chen, Z.; Tan, L.; Xu, J.; Yuan, S.; Chen, G.; et al. Laser Ultrasonic Detection of Internal Void Defects in Concrete Based on XGBoost-SHAP. Constr. Build. Mater. 2026, 535, 146890. [Google Scholar] [CrossRef] [Scilit]
- Teke, A.; Kavzoglu, T. Explainable Artificial Intelligence to Unveil Intrinsic Characteristics of Conditioning Factors Governing Forest Fire Susceptibility. Int. Arch. Photogramm. Remote Sens. Spat. Inf. Sci. 2025, XLVIII-M-6-2025, 281–287. [Google Scholar] [CrossRef] [Scilit]
- Giglio, L.; Schroeder, W.; Justice, C.O. The Collection 6 MODIS Active Fire Detection Algorithm and Fire Products. Remote Sens. Environ. 2016, 178, 31–41. [Google Scholar] [CrossRef] [Scilit]
- Didan, K.; Barreto Munoz, A.; Solano, R.; Huete, A. MODIS Vegetation Index User’s Guide (MOD13 Series); Vegetation Index and Phenology Lab, University of Arizona: Tucson, AZ, USA, 2015. Available online: https://lpdaac.usgs.gov/documents/103/MOD13_User_Guide_V6.pdf (accessed on 15 January 2026).
- Stackhouse, P.W., Jr.; Zhang, T.; Westberg, W.; Barnett, A.J.; Bristow, T.; Macpherson, B.; Hoell, J.M. POWER Release 8 Methodology (Data Parameters, Sources, & Validation); Technical Report; NASA Langley Research Center: Hampton, VA, USA, 2018.
- Box, G.E.P.; Jenkins, G.M.; Reinsel, G.C.; Ljung, G.M. Time Series Analysis: Forecasting and Control, 5th ed.; Wiley: Hoboken, NJ, USA, 2015. [Google Scholar]
- Dickey, D.A.; Fuller, W.A. Distribution of the Estimators for Autoregressive Time Series with a Unit Root. J. Am. Stat. Assoc. 1979, 74, 427–431. [Google Scholar] [CrossRef] [Scilit]
- Kwiatkowski, D.; Phillips, P.C.B.; Schmidt, P.; Shin, Y. Testing the Null Hypothesis of Stationarity against the Alternative of a Unit Root: How Sure Are We That Economic Time Series Have a Unit Root? J. Econom. 1992, 54, 159–178. [Google Scholar] [CrossRef] [Scilit]
- Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; Blondel, M.; Prettenhofer, P.; Weiss, R.; Dubourg, V. Scikit-Learn: Machine Learning in Python. J. Mach. Learn. Res. 2011, 12, 2825–2830. [Google Scholar]
- XGBoost Developers. XGBoost Parameters. Available online: https://xgboost.readthedocs.io/en/stable/parameter.html (accessed on 10 November 2026).
- Lundberg, S.M.; Lee, S.-I. A Unified Approach to Interpreting Model Predictions. In Proceedings of the Advances in Neural Information Processing Systems 30 (NIPS 2017), Long Beach, CA, USA, 4–9 December 2017; Curran Associates Inc.: Red Hook, NY, USA, 2017; pp. 4766–4775. [Google Scholar]
- Lundberg, S.M.; Erion, G.; Chen, H.; DeGrave, A.; Prutkin, J.M.; Nair, B.; Katz, R.; Himmelfarb, J.; Bansal, N.; Lee, S.-I. From Local Explanations to Global Understanding with Explainable AI for Trees. Nat. Mach. Intell. 2020, 2, 56–67. [Google Scholar] [CrossRef] [Scilit]
- Dormann, C.F.; Elith, J.; Bacher, S.; Buchmann, C.; Carl, G.; Carré, G.; García Marquéz, J.R.; Gruber, B.; Lafourcade, B.; Leitão, P.J.; et al. Collinearity: A Review of Methods to Deal with It and a Simulation Study Evaluating Their Performance. Ecography 2013, 36, 27–46. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.










