scieee AI-readable full text Open interactive document viewer

Modelling tourism demand to Spain with machine learning techniques. The impact of forecast horizon on model selection

Claveria, Oscar,Torra Porras, Salvador,Monte Moreno, Enrique

Abstract

This study assesses the influence of the forecast horizon on the forecasting performance of several machine learning techniques. We compare the fo recastaccuracy of Support Vector Regression (SVR) to Neural Network (NN) models, using a linear model as a benchmark. We focus on international tourism demand to all seventeen regions of Spain. The SVR with a Gaussian radial basis function kernel outperforms the rest of the models for the longest forecast horizons. We also find that machine learning methods improve their forecasting accuracy with respect to linear models as forecast horizons increase. This results shows the suitability of SVR for medium and long term forecasting.

Full text

109 Revista de Economía Aplicada Número 72 (vol. XXIV), 2016, págs. 109 a 132 E A MODELLING TOURISM DEMAND TO SPAIN WITH MACHINE LEARNING TECHNIQUES. THE IMPACT OF FORECAST HORIZON ON MODEL SELECTION* OSCAR CLAVERIA SALVADOR TORRA University of Barcelona (UB) ENRIC MONTE Polytechnic University of Catalunya (UPC) This study assesses the influence of the forecast horizon on the forecasting performance of several machine learning techniques. We compare the fo recast accuracy of Support Vector Regression (SVR) to Neural Network (NN) mo - dels, using a linear model as a benchmark. We focus on international tourism demand to all seventeen regions of Spain. The SVR with a Gaussian radial basis function kernel outperforms the rest of the models for the longest forecast horizons. We also find that machine learning methods improve their forecasting accuracy with respect to linear models as forecast horizons increase. This results shows the suitability of SVR for medium and long term forecasting. Keywords: forecasting, tourism demand, Spain, support vector regression, neural networks, machine learning. JEL classification: C02, C22, C45, C63, E27, R11. T he increasing weight of the tourism industry in the gross domestic product of most countries regardless of economic fluctuations explains the growing interest in the sector from economic circles. Spain is one of the world’s most important destinations after China, France and the United States. The country received close to 65 million tourist arrivals in 2014. The Canary Islands, and were the regions that recorded a greater increase in the number of visitors, with rates above 10%. The steady growth of tourism demand in highlights the importance of correctly anticipating the number of arrivals for the tourism industry. (*) We would like to thank the Editor, Máximo Camacho, and two anonymous referees for their useful comments and suggestions. This work was supported by the Ministerio de Economía y Competitividad under the SpeechTech4All Grant (TEC2012-38939-C03-02). In recent years, machine learning (ML) techniques have attracted increasing attention for time series prediction [Hastie et al. (2009)]. ML is a field from Artificial Intelligence (AI), and has been central to pattern recognition. ML is based on the design of algorithms to infer structures from a given set of data. ML allows to deal with different problems, such as classification, clustering, and regression. Empirically, it has been proved that rough sets algorithms and fuzzy time series models are particularly indicated for short-term forecasting with limited data [Peng et al. (2014)], while Neural Network (NN) and Support Vector Machine (SVM) models are preferable for longer term predictions. The SVM technique was first developed for classification and pattern recognition (Burges, 1988). Xu et al. (2009) use SVMs to improve tourist expenditure classification for visitors to Hong Kong, and Li and Sun (2012) use a SVM-based firm failure prediction model to anticipate the failure of firms in the Chinese tourism industry. The initial idea has been extended to regression by using the support vectors for local approximation, allowing for non-linear regression estimation in the form of Support Vector Regression (SVR). SVR has been widely used for forecasting purposes in finance [Tay and Cao (2002); Kim (2003); Cao (2003); Pai and Lin (2005); Huang et al. (2005); Chen et al. (2006)] and other fields [Pai and Hong (2007); Guo et al. (2008); Hong (2011) and Zhang et al. (2012)]. Nevertheless, very few attempts have been made for tourism demand forecasting [Chen and Wang (2007); Hong et al. (2011); Wu et al. (2012) and Akin (2015)]. All these studies focus on one-step ahead forecasts at the national level. In this research, we design an experiment to evaluate the forecasting performance of several ML techniques by means of an iterated multi-step ahead forecasting comparison at the regional level. The main aim of this study is to analyze how the accuracy of SVR and NN predictions is influenced by the forecast horizon under consideration. In order to do so we focus on international tourism demand to all seventeen regions of. We use six different forecast horizons and several SVR and NN models, and a linear model as a baseline. This thorough comparison allows us to shed some light on the suitability of the SVR technique to forecast seasonal time series and tourism demand in particular. The study proceeds as follows. First, we review the literature on tourism demand forecasting with ML techniques. In the next section the different forecasting methods are described. The data set and the experimental settings are given in the following section. Then, results of the out-of-sample forecasting competition are discussed. Finally, the last section provides a summary of the implications and potential lines for future research. 1. LITERATURE REVIEW A growing body of literature has focused on tourism demand forecasting, but most research efforts apply either casual econometric models [Cortés-Jiménez and Blake (2011); Page et al. (2012) and Li et al. (2013)] or time series models [Chu (2009); Assaf et al. (2011); Gounopoulos et al. (2012) and Gunter and Önder (2015)]. See Song and Li (2008), Kim and Schwartz (2013), and Peng et al. (2014) for a thorough review of tourism demand forecasting studies. These studies note that the per- Revista de Economía Aplicada 110 formance of the forecasting models varies according to different factors, such as the frequency of the data, the country of origin, the destination, and the length of the forecast horizons. This lack of consensus regarding the most accurate model to forecast tourism demand, has led us to focus the study on data-driven approaches based on ML. The need for more accurate forecasts has led to an increasing use of ML techniques to obtain more refined predictions of tourist arrivals at the destination level. Goh et al. (2008) apply a rough sets approach to forecast U.S. and U.K. tourism demand for Hong Kong. Yu and Schwartz (2006) and Tsaur and Kuo (2011) use fuzzy time series models in predicting tourism demand in Taiwan. Wu et al. (2012) note that SVM-based modelling is more indicated to deal with tourism data characteristics. The authors compare the forecasting accuracy of different ML techniques (SVM and Gaussian process regression models) to and ARMA model using monthly tourist arrivals to Hong Kong from thirteen countries of origin from 1985 to 2008, and obtain the most accurate predictions with ML models. The SVM technique was originally introduced as a classification method following the idea of using a subset of the training samples, known as support vectors to represent the class boundaries in the classification problem (Cristianini and Shawe-Taylor, 2000). The use of these support vectors is related to the solution of an optimization problem that maximizes a margin between classes after a transformation of the data. The optimization problem yields a solution based on the samples aligned along the border between classes. SVMs are first applied to tourism demand forecasting by Pai and Hong (2005) and Hong (2006), who use a SVM models to forecast tourist arrivals to Barbados, obtaining better forecasting results that with NNs. Velásquez et al. (2010) also obtain better forecasts with SVMs than with MLP and ARIMA models for different time series, including monthly totals of international airline passengers. The original idea behind the SVM mechanism has recently been extended to regression analysis. The introduction of the Vapnik’s insensitive loss function, together with the use of genetic algorithms (GAs) for parameter selection, have recently led to increased use of SVRs. Chen and Wang (2007) incorporate a GA in a SVR and compare it to Back Propagation NN and ARIMA models to predict tourist arrivals to China, using quarterly data from 1985 to 2001, and finding evidence in favor of SVRs. Hong et al. (2011) compare a SVR with a hybrid chaotic algorithm to forecast annual tourist arrivals to Barbados, and also obtain more accurate forecasts than with ARIMA models. Akin (2015) compares the forecasting results of SVR to that of SARIMA and NN models to predict international monthly tourist arrivals to Turkey in 2011. By means of a novel approach to model selection based on decision trees, the author finds that SVR outperforms NNs in all cases but SARIMA models only when the slope feature is more prominent. The most widely used feed-forward NN topology in tourism demand forecasting is the multi-layer perceptron (MLP) [Claveria and Torra (2014); Teixeira and Fernandes (2014); Molinet et al. (2015) and Hassani et al. (2015)]. A special class of multi-layer feed-forward architecture with two layers of processing is the radial basis function (RBF) network. The first study to implement a RBF NN for forecasting tourism demand is that of Kon and Turner (2005), who use a RBF network model Modelling tourism demand to Spain with machine learning techniques... 111 to forecast arrivals to Singapore. Cang (2014) generates predictions of UK inbound tourist arrivals and combines them in non-linear models. Çuhadar, et al. (2014) compare the forecasting performance of RBF and MLP NNs. Claveria et al. (2015a) find that RBF networks provide better forecasting results than the MLP and Elman architectures. Molinet et al. (2015) propose using different periodicities as input variables in NN models for tourism demand forecasting. The authors obtain more precise forecasts for longer horizons than with ARIMA models. While most of the previous forecasting comparisons focus on one-step ahead predictions at the national level, in this study the forecasting performance of three SVR models is compared to that of two NN models by means of an iterated multistep ahead forecasting comparison. We assess the forecasting accuracy of the models for different forecast horizons at a regional level. In a recent study, Lehmann and Wohlrabe (2015) address some of the issues related to regional forecasting. There have been several studies on tourism in Spain at regional level [Aguiló et al. (2005); Bardolet and Sheldon (2008); Santana-Jiménez and Hernández (2011); Andrades-Caldito et al. (2013) and Sarrión-Gavilán et al. (2015)], but only a few regarding tourism demand forecasting. This research mostly focuses on two regions: the Balearic Islands and the Canary Islands. Regarding tourism demand forecasting to the Balearic Islands, Álvarez-Díaz and Rosselló-Nadal (2010) forecast British tourist arrivals using meteorological variables, Rosselló-Nadal (2001) predicts turning points in arrivals, Garín-Muñoz and Montero-Marín (2007) use a dynamic model with panel data, and Medeiros et al. (2008) develop a NN-GARCH model. With respect to the Canary Islands, Hernández-López and Cáceres-Hernández (2007) use a GA with a transition matrix to forecast tourists’ characteristics, Gil-Alana et al. (2008) models international monthly arrivals using different time-series approaches. The first attempt to use ML techniques for tourism demand forecasting in Spain is that of Palmer et al. (2006), who design a MLP neural network to forecast tourism expenditure in the Balearic Islands. The authors use quarterly data from 1986 to 2000, and find that MLP NN provide more accurate forecasts when data have been detrended and deseasonalized. This result coincides with that of Claveria et al. (2016), who analyse the effects of data pre-processing on the forecasting performance of NN models and find that the predictive accuracy of the models improves with seasonal adjusted data. In line with previous research by Pattie and Snyder (1996) and Burger et al. (2001), Palmer et al. (2006) also find that NNs are especially suitable for longterm forecasting, as long as data is pre-processed. In a recent study, Claveria et al. (2015b) design a multiple-input multiple-out- put NN framework to generate predictions for all visitor markets to a destination simultaneously. By using monthly data of tourist arrivals to Catalonia from 2001 to 2012, the authors generate forecasts for one, three and six months ahead with three different NN topologies and find that RBF NNs outperform the rest of the models. Revista de Economía Aplicada 112 2. FORECASTING MODELS The main contribution of this study to the previous literature on tourism demand forecasting is the evaluation of the performance of several ML techniques by means of an iterated multi-step ahead forecasting comparison. As most previous research focuses on one-step ahead predictions, in this study we design an experiment to assess how the forecast accuracy of the models is influenced by the forecast horizon under consideration. As ML techniques do not need to pre-process the data, we are able to compare the forecasting performance of three SVR models and two NN topologies using seasonal raw data. 2.1. Support Vector Regression The SVR mechanism proposed by Drucker et al. (1997) can be regarded as an extension of SVMs to construct data-driven and non-linear regressions. The original SVM algorithm was developed by Vapnik (1995) and Cortes and Vapnik (1995). The idea behind the technique of SVR is to define an approximation of the regression function within a ‘tube’ of radius ε such that its output is as near as possible to the desired output dt: Modelling tourism demand to Spain with machine learning techniques... 113 ωϕ () () =+fx x b tt [1] where xiis the input vector; ω is a weight vector; bis a constant. The parameters of the model are estimated by solving a convex optimization problem that uses as cost function the ε – insensitive loss function L ε : εε () =−− −≥ ⎧ ⎨ ⎪ ⎩ ⎪ ε Ldy d y , d y , 0 otherwise tt tt tt [2] The introduction of two positive slack variables ξ tand ξ t *allows to reformulate the SVR as an optimization problem: ∑ ωξξ ωϕ ε ξ ωϕ ε ξ ξ () () () ++ −−≤+ +−≤+ ⎧ ⎨ ⎪ ⎩ ⎪≥ () = Minimize C dxb xbd C 1 2 subjected to , 0 tt t ntt t ttt t 2* 1* * [3] The hyperparameter ε determines the allowed margin for the regression. The hyperparameter C determines the number of noisy samples that overlap with the tube that contains the regression function, and therefore can be considered as a regularization parameter. As a result, high values of this parameter do not allow for sudden changes in the slope of the regressed function. The selection of the hyperparameters ε and C is done by means of cross-validation. To solve [3], we can introduce two Lagrange multipliers and a kernel function K(xi, xt) in the decision function. In this study we use three different kernels: – Linear kernel (L-SVR) () =+Kxy ax y a,* 12 [4] – Polynomial kernel (P-SVR) ()( ) =+Kxy ax y a,* h 12 [5] – Gaussian RBF kernel (G-SVR) δ () () ( ) =− ⎡ ⎣ ⎢⎤ ⎦ ⎥ Kxy x y, exp 1 22 [6] Where a1and a2are constants, his the degree of the polynomial kernel, and δ 2 is the bandwidth of the Gaussian RBF kernel. For a comprehensive introduction to SVR see Cristianini and Shawe-Taylor (2000). Note that the nonlinearities on the kernels do not define the shape of the nonlinearities given by the regression function. The nonlinearities of the kernel function can be regarded as a similarity measure between the sample points and the support vectors (Cristianini and Shawe-Taylor, 2000). Therefore, the role of the kernel is to determine the set of support vectors along the margin that contribute to the final value. The final output consists of a linear combination of the values of the mapping using the kernel function of the test sample with each support vector: Revista de Economía Aplicada 114 ∑ ω () =+ = yKxxb, tiit i Nsv 1 _ [7] where N–sv is the number of support vectors of the model, ω iis the i-th element of weight vector ω , and K(xi, xt) is the kernel function that yields a similarity index of the input vector xiand the i-th support vector. 2.2. Neural Networks Neural networks emulate the processing of human neurological system to identify related spatial and temporal patterns from historical data. A complete summary on the use of NNs with forecasting purposes can be found in Zhang et al. (1998). In this study we use two different NN architectures: the RBF and the MLP. The RBF model can be specified as: ∑ ββ μσ () () () =+Σ =−− ⎛ ⎝ ⎜⎞ ⎠ ⎟ =− −− = ygx gx xexp 2 tj q jj ti jti ti j j p j 01 2 1 2 [8] Where {xt–i; i= 1, ..., p} and { β j; σ j; j= 1, ..., q}. The output vector is denoted by yt, xt–iis the input value, gjthe activation function, ujthe centroid vectors, β jthe weights, and σ jthe spread for neuron j. We denote qas the number of neurons in the hidden layer, which ranges from 5 to 30, increasing for longer forecast horizons. The MLP model is given by: ∑ ββ =+Σ+ ⎛ ⎝ ⎜⎞ ⎠ ⎟ =− = ygwxw tj q jijti i p j011 0 [9] Where {xt–i; i= 1, ..., p}, {wij; i= 1, ..., p; j = 1, ..., q}, { β j; j= 1, ..., q}. The weights connecting the input with the hidden layer are denoted by wij, while gis the non-linear function of the neurons in the hidden layer. The number of neurons is estimated by cross-validation. A complete summary on the implementation of NNs can be found in Haykin (2008). 3. DATA AND METHODOLOGY Data on international tourist arrivals to at a regional level are provided by the Spanish Statistical Office (National Statistics Institute – INE – www.ine.es). Data include the monthly number of foreign tourists arriving to each region (Autonomous Community) over the time period 1999:01 to 2014:03. As the main aim of this study is to assess the forecasting performance of ML techniques for different forecast horizons when using seasonal raw data, we use the level of the series, without any preprocessing on the original data. In Table 1 we present the number of international tourist arrivals and the frequency distribution of international tourist arrivals in 2013 by region. The main three destinations (Catalonia, the Balearic Islands and Andalusia) account for more than half (59%) of the total number of tourist arrivals to Spain. The first six destinations account for almost 90% of the total number of tourist arrivals, which corroborates that tourism demand is highly concentrated in very few regions. Modelling tourism demand to Spain with machine learning techniques... 115 Table 1: DISTRIBUTION OF THE FREQUENCY OF TOURIST ARRIVALS TO SPANISH REGIONS Year 2013 Tourist arrivals % % cumulated Catalonia 1.0281.308 24.95% 24.95% Balearic Islands 7.384.863 17.92% 42.87% Andalusia 6.330.745 15.36% 58.23% Canary Islands 6.044.595 14.67% 72.90% Madrid (Community) 4.054.804 9.84% 82.73% Valencia (Community) 2.701.118 6.55% 89.29% Basque Country 915.076 2.22% 91.51% Castilla-Leon 883.526 2.14% 93.65% Galicia 826.443 2.01% 95.66% Aragon 400.521 0.97% 96.63% Castilla-La Mancha 306.395 0.74% 97.37% Navarra 226.060 0.55% 97.92% Cantabria 201.297 0.49% 98.41% Murcia (Region) 196.098 0.48% 98.89% Asturias 189.320 0.46% 99.35% Extremadura 181.200 0.44% 99.78% La Rioja 88.621 0.22% 100.00% In Figure 1 we map the frequency distribution of international tourist arrivals to Spain by region. The first six destinations are marked in grey. We can see that all these regions, with the exception of Madrid, are located in coastal areas of the Mediterranean, showing the asymmetric concentration of tourism. Table 2 presents a descriptive analysis of the data. The Balearic Islands and Cata - lonia are the two regions with the highest peaks. While the Balearic Islands is the region with the highest dispersion in the arrival of tourists, the Canary Islands present the lowest coefficient of variation (CV), also known as relative standard deviation, which is a dimensionless measure of dispersion obtained as the ratio of the standard deviation to the mean and expressed as a percentage. This result may in part be explained by weather conditions, as in the the climate is mild and temperatures remain virtually constant throughout the year. The performance of the different models is assessed by means of an iterated multi-step ahead forecasting comparison. In order to be able to characterize correctly the performance of the ML methods, and to adjust the hyperparameters and the structure of the models, the database is divided into three subsets: – Training – From 1999:01 to 2006:12 – Validation – From 2007:01 to 2011:12 – Test – From 2012:01 to 2014:01 In applying ARMA models, only two subsets are used: the in-sample (from 1999:01 to 2011:12) and the out-of-sample periods (from 2012:01 to 2014:01). Initially, the first 52% monthly observations are selected as the training set, the next 33% as the validation set, and the last 15% as the test set. Note that the different sets do not overlap in time. Revista de Economía Aplicada 116 Figure 1: MEAN ANNUAL GROWTH RATE OF TOURIST ARRIVALS TO SPAIN BY REGION (1999-2013) Source: Own elaboration. The validation set is used to adjust the different parameters of the ML models. In the case of NNs, the validation set is used to determine the optimal stopping time for the training, and the topology of the network. In the case of SVR models, the validation set is used for selecting the hyperparameters. The test set is used to estimate the performance of forecasting models on unseen data (Bishop, 1995; Ripley, 1996). After the first step, the partition between train and test sets is done sequentially: as the prediction advances, forecasts are successively incorporated to the training database, leaving the validation set fixed. Therefore, for each forecast, the size of the test set decreases by one period, while the size of the training set increases by one period. In each iteration, models are retrained, and both the optimal structure and the parameters are obtained from the validation set. The forecasting accuracy of a SVR model depends in good measure on the value of the hyperparameters. Therefore, given the size of the sample, we do an exhaustive enumeration of all possible combinations to estimate the value of the hyperparameters, using as a selection criterion the performance on the validation set at each step. Regarding the NN models, once the topology of the models is specified, the estimation of the weights of the networks can be done by means of different algorithms. To avoid the possibility that the search for the optimum value of the parameters finishes in a local minimum, we use a multi-starting technique that initializes the NNs several times for different initial random values, trains the network and chooses the one with the best result on a validation database. All models are implemented using the ‘Scikit-learn’ Python module, which is an open source library that integrates a wide range of state-of-the-art ML algorithms (Pedregosa et al., 2011). Modelling tourism demand to Spain with machine learning techniques... 117 Table 2: DESCRIPTIVE ANALYSIS OF FOREIGN TOURIST ARRIVALS (1999:01-2014:03) Standard Coefficient Region Minimum Maximum Mean deviation of Variation Andalusia 182.848 770.987 453.843.7 160.241.8 35.3% Aragon 7.901 59.194 25.868.9 11.384.5 44.0% Asturias 2.029 33.714 11.783.5 7.546.5 64.0% Balearic Islands 23.446 1.387.491 509.102.3 423.971.4 83.3% Canary Islands 212.470 619.311 359.724.3 93.466.4 26.0% Cantabria 2.030 32.070 13.750.8 8.552.5 62.2% Castilla-Leon 18.128 134.683 62.450.4 30.444.4 48.7% Castilla-La Mancha 11.483 39.308 25.856.1 8.378.2 32.4% Catalonia 157.103 1.442.017 625.334.3 306.900.6 49.1% Valencia (Community) 80.377 322.857 171.155.0 52.886.8 30.9% Extremadura 4.618 31.558 12.443.7 4.502.2 36.2% Galicia 8.395 126.066 51.043.9 29.595.0 58.0% Madrid (Community) 135.249 469.760 279.640.7 78.578.3 28.1% Murcia (Region) 4.897 24.845 14.138.4 3.999.6 28.3% Navarra 2.592 35.152 12.748.8 7.444.7 58.4% Basque Country 14.388 142.644 51.169.5 25.532.1 49.9% La Rioja 983 15.657 6.224.5 3.534.6 56.8% Revista de Economía Aplicada 124 Table 4: FORECAST ACCURACY. PLAE (2013:03-2014:01) – ML VS. ARMA MODELS (continuation) Forecast horizon (h) L-SVR P-SVR G-SVR RBF NN MLP NN Castilla-Leon h= 1 0.182 0.273 0.364 0.182 0.273 h= 2 0.364 0.182 0.364 0.455 0.364 h= 3 0.455 0.455 0.545 0.545 0.545 h= 6 0.818 0.818 0.909 0.909 0.909 h= 12 0.909 0.727 0.909 0.909 0.818 Castilla-La Mancha h= 1 0.455 0.455 0.364 0.455 0.455 h= 2 0.545 0.727 0.545 0.545 0.636 h= 3 0.545 0.455 0.818 0.818 0.636 h= 6 0.727 0.545 0.727 0.818 0.727 h= 12 0.818 0.727 0.818 0.909 0.818 Catalonia h= 1 0.091 0.182 0.091 0.091 0.182 h= 2 0.182 0.182 0.182 0.273 0.091 h= 3 0.364 0.545 0.455 0.364 0.364 h= 6 0.727 0.636 0.727 0.727 0.818 h= 12 0.727 0.455 0.727 0.727 0.818 Valencia (Community) h= 1 0.091 0.091 0.091 0.091 0.182 h= 2 0.182 0.273 0.273 0.364 0.273 h= 3 0.545 0.545 0.545 0.545 0.545 h= 6 0.364 0.818 0.364 0.455 0.455 h= 12 0.636 0.091 0.636 0.182 0.727 Extremadura h= 1 0.182 0.091 0.091 0.182 0.091 h= 2 0.364 0.273 0.182 0.364 0.273 h= 3 0.545 0.545 0.182 0.455 0.727 h= 6 0.545 0.273 0.545 0.545 0.727 h= 12 0.909 0.364 0.909 0.818 0.818 Galicia h= 1 0.091 0.091 0.091 0.182 0.182 h= 2 0.364 0.091 0.455 0.364 0.364 h= 3 0.455 0.818 0.545 0.545 0.455 h= 6 0.818 0.909 0.818 0.909 0.909 h= 12 0.909 0.273 0.909 0.909 0.909 Modelling tourism demand to Spain with machine learning techniques... 125 Table 4: FORECAST ACCURACY. PLAE (2013:03-2014:01) – ML VS. ARMA MODELS (continuation) Forecast horizon (h) L-SVR P-SVR G-SVR RBF NN MLP NN Madrid (Community) h= 1 0.091 0.091 0.182 0.091 0.182 h= 2 0.273 0.273 0.273 0.273 0.273 h= 3 0.182 0.545 0.182 0.182 0.182 h= 6 0.182 0.182 0.182 0.182 0.273 h= 12 0.000 0.000 0.000 0.182 0.182 Murcia (Region) h= 1 0.091 0.182 0.091 0.182 0.364 h= 2 0.273 0.182 0.455 0.273 0.455 h= 3 0.273 0.455 0.364 0.364 0.364 h= 6 0.364 0.364 0.364 0.182 0.364 h= 12 0.455 0.182 0.636 0.545 0.636 Navarra h= 1 0.091 0.000 0.091 0.182 0.091 h= 2 0.273 0.182 0.273 0.273 0.273 h= 3 0.455 0.545 0.636 0.455 0.455 h= 6 0.727 0.455 0.727 0.636 0.818 h= 12 0.727 0.455 0.727 0.636 0.818 Basque Country h= 1 0.182 0.091 0.182 0.182 0.000 h= 2 0.182 0.273 0.182 0.273 0.182 h= 3 0.455 0.364 0.364 0.364 0.455 h= 6 0.545 0.636 0.545 0.545 0.636 h= 12 0.091 0.091 0.091 0.273 0.091 La Rioja h= 1 0.273 0.000 0.182 0.182 0.182 h= 2 0.273 0.364 0.455 0.182 0.182 h= 3 0.545 0.727 0.545 0.636 0.636 h= 6 0.636 0.455 0.818 0.818 0.818 h= 12 0.727 0.545 0.818 0.636 0.909 Note: The PLAE ratio measures the proportion of out-of-sample periods with lower absolute errors than the baseline model (ARMA model). Values below 0.5 indicate that the baseline model displays a higher number of lower absolute forecast errors than the model under evaluation for the out-of-sample period. To test whether the reduction in MAPE is statistically significant between the best three models, in Table 5 we present the results of the Diebold-Mariano (DM) statistic of predictive accuracy (Diebold and Mariano, 1995). The null hypothesis of the test is that the difference between the two competing series is non-significant. A negative sign of the statistic implies that the second model has bigger forecasting errors. Revista de Economía Aplicada 126 Table 5: DM LOSS-DIFFERENTIAL TEST STATISTIC FOR PREDICTIVE ACCURACY 12 months ahead forecasts G-SVR vs. P-SVR G-SVR vs. MLP NN Andalusia -4.004 -1.728 Aragon -1.590 0.819 Asturias -2.596 -0.083 Balearic Islands -1.408 -1.728 Canary Islands -2.318 2.365 Cantabria -1.604 -0.476 Castilla-Leon -4.432 -1.157 Castilla-La Mancha -1.692 -2.022 Catalonia -1.164 0.588 Valencia (Community) -5.674 0.944 Extremadura -3.136 -0.388 Galicia -6.461 0.503 Madrid (Community) -11.628 -0.834 Murcia (Region) -2.184 0.672 Navarra -3.682 0.051 Basque Country -2.903 -0.278 La Rioja -2.490 -1.063 Note: Diebold-Mariano test statistic with NW estimator. Null hypothesis: the difference between the two competing series is non-significant. A negative sign of the statistic implies that the second model (P-SVR, MLP NN) has bigger forecasting errors. The 5% level critical value is 2.028. Significant values in bold. When comparing the forecast accuracy of the G-SVR against that of the other two models that yielded the lowest MAPE values, we find that the G-SVR shows a significant improvement over the P-SVR in most regions, but the improvements over the MLP NN are not significant. These results confirm previous research by Hong (2006) and Chen and Wang (2007), who obtain better forecasting results with SVM-based models than with NNs for tourist arrivals to Barbados and China respectively. Velásquez et al. (2010) also obtain better predictions with SVMs than with MLP NNs. Notwithstanding, we find that the improvements in terms of MAPE of SVR models with respect to MLP networks are not statistically significant. Finally in Table 6 we present a summary of the MAPE values. The results show that while linear models are preferable for short-term forecasting, ML techniques are more suitable for long-term prediction. From three-month ahead on, both SVR and NN models outperform ARMA models. In this experiment all ML techniques have been specified so as to use only one temporal lag for concatenation, as opposed to linear models which were set to select the optimal number of AR and MA terms by means of the Akaike information criterion (AIC). The implementation of a model criterion to identify the best suited specification regarding the number of lags in ML methods would allow to perform equivalent forecasting comparisons to linear models. Modelling tourism demand to Spain with machine learning techniques... 127 Table 6: FORECAST ACCURACY – SUMMARY OF MAPE VALUES BY TECHNIQUE Forecast horizon (h) Mean Median Linear models (ARMA models) h= 1 0.325 0.200 h= 2 0.472 0.315 h= 3 0.713 0.425 h= 6 0.727 0.457 h= 12 0.661 0.349 Support Vector Regression (SVR models) h= 1 0.903 0.464 h= 2 0.974 0.473 h= 3 0.619 0.401 h= 6 0.416 0.360 h= 12 0.402 0.318 Neural Networks (RBF and MLP) h= 1 0.655 0.420 h= 2 0.751 0.428 h= 3 0.707 0.413 h= 6 0.424 0.342 h= 12 0.389 0.299 Note: Lowest values for each type of technique in bold. To summarize, the overall forecasting performance of all methods improves for longer forecast horizons. Regarding the different techniques we obtain slightly better predictions with SVR models than with NNs. Nevertheless, not all SVRs show the same performance. The SVR with a Gaussian RBF kernel outperforms the rest of the models, especially for mid and long-term forecasts. This result is indicative that the data is clustered along the margins that surround the regression function in the SVR model. The fact that the data is clustered instead of spread in the input space, also explains the lower performance of the polynomial kernel. As Gaussian RBF kernels are the most prevalent choice for SVR-based forecasting (Smola and Schölkopf, 1998), and are also easy to implement, our results suggest the potential of this SVR model for tourism demand forecasting. These findings also highlight the importance of properly selecting the kind of kernel function when using SVR models with forecasting purposes. 5. SUMMARY AND CONCLUSIONS As more accurate predictions become essential for effective policy planning, new forecasting methods provide room for improvement. Artificial intelligence methods based on machine learning such as Support Vector Regressions and Artificial Neural Networks have attracted increasing interest to refine the predictions in the tourism industry. SVR and NN are flexible techniques that admit a wide array of models. The main purpose of this study is to assess the forecasting performance of Support Vector Regression for tourism demand prediction and seasonal forecasting. With this aim we assess the influence on the prediction accuracy of the different techniques as forecast horizons increase. Three different SVR models based on different kernel functions and two alternative NN architectures have been used to generate predictions of international tou - rism demand to all seventeen regions of Spain. By means of several forecast accuracy measures, the different ML techniques have been evaluated with respect to a linear model used as a baseline. The forecasting out-of-sample comparison shows that the SVR with a Gaussian RBF kernel outperforms the rest of the models in most cases. The statistically significant improvement in terms of forecast accuracy with respect to other SVR models illustrates the importance of not overlooking the parameter and kernel function selection for SVR modeling. Another interesting finding is that ML methods improve their forecasting performance with respect to linear stochastic models as forecast horizons increase. While NN models show the best performance for intermediate forecast horizons, SVR models tend to yield the best predictions for the longer time horizons. This result suggests that the optimal forecasting methodology depends on the time horizon of the predictions. In this sense future research should focus on developing a model selection criterion dependent on different forecast horizons. This research contributes to the economic literature and to the tourism industry by shedding some light on the most appropriate SVR model to predict seasonal time series and tourism demand. A question that requires to be examined in further detail is the implementation of model selection criteria for ML techniques that would allow to refine AI-based predictions. The comparison of SVR to alternative ML techniques such as Gaussian process regression is also left for future research. Revista de Economía Aplicada 128 E A REFERENCES Aguiló, E., Riera, A. and Rosselló, J. (2005): The short-term price effect of a tourist tax through a dynamic demand model: The Case of the Balearic Islands. Tourism Management, n. 26, pp. 359-365. Álvarez-Díaz, M. and Rosselló-Nadal, J. (2010): Forecasting British tourist arrivals in the Balearic Islands using meteorological variables. Tourism Economics, n. 16, pp. 153-168. Akin, M. (2015): A novel approach to model selection in tourism demand modeling. Tourism Management, n. 48, pp. 64-72. Andrades-Caldito, L., Sánchez-Rivero, M. and Pulido-Fernández, J.I. (2013): Differentiating Competitiveness through Tourism Image Assessment. An Application to Andalusia (Spain). Journal of Travel Research, n. 52, pp. 68-81. Assaf, A.G., Barros, C.P. and Gil-Alana, L.A. (2011): Persistence in the Short- and Long-Term Tourist Arrivals to Australia. Journal of Travel Research, n. 50, pp. 213-229. Bardolet, E. and Sheldon, P.J. (2008): Tourism in Archipelagos and the Balearics. Annals of Tourism Research, n. 35, pp. 900-923. Bishop, C.M. (1995): Neural Networks for Pattern Recognition. Oxford University Press: Oxford. Burger, C., Dohnal, M., Kathrada, M. and Law, R. (2001): A practitioners guide to time-series methods for tourism demand forecasting: A case study of Durban, South Africa. Tourism Management, n. 22, pp. 403-409. Burges, C.J.C. (1988): A Tutorial on Support Vector Machines for Pattern Recognition. Data Mining and Knowledge Discovery, n. 2, pp. 121-167. Cang, S. (2014): A Comparative Analysis of Three Types of Tourism Demand Forecasting Models: Individual, Linear Combination and Non-Linear Combination. International Journal of Tourism Research, n. 16, pp. 596-607. Cao, L. (2003): Support Vector Machines Experts for Time Series Forecasting. Neurocomputing, n. 51, pp. 321-339. Chen, K.Y. and Wang, C.H. (2007): Support Vector Regression with Genetic Algorithms in Forecasting Tourism Demand. Tourism Management, n. 28, pp. 215-226. Chen, W.H., Shih, J.Y. and Wu, S. (2006): Comparison of Support-Vector Machines and Back Propagation Neural Networks in Forecasting the Six Major Asian Stock Markets. International Journal of Electronic Finance, n. 1, pp. 49-67. Chu, F.L. (2009): Forecasting tourism demand with ARMA-based methods. Tourism Mana - gement, n. 30, pp. 740-751. Claveria, O. and Torra, S. (2014): Forecasting Tourism Demand to Catalonia: Neural Networks vs. Time Series Models. Economic Modelling, n. 36, pp. 220-228. Claveria, O., Monte, E. and Torra, S. (2015a): Tourism Demand Forecasting with Neural Networks Models: Different Ways of Treating Information. International Journal of Tourism Research, n. 17, pp. 492-500. Claveria, O., Monte, E. and Torra, S. (2015b): A New Forecasting Approach for the Hospitality Industry. International Journal of Contemporary Hospitality Management, n. 27, pp. 1520-1538. Claveria, O., Monte, E. and Torra, S. (2016): Data Pre-Processing for Neural Network-based Forecasting: Does it Really Matter? Technical and Economic Development of Economy, Forthcoming. Cortes, C. and Vapnik, V. (1995): Support-Vector Networks. Machine Learning, n. 20, pp. 273- 297. Cortés-Jiménez, I. and Blake, A. (2011): Tourism Demand Modeling by Purpose of Visit and Nationality. Journal of Travel Research, n. 50, pp. 408-416. Modelling tourism demand to Spain with machine learning techniques... 129 Cowles, A. and Jones, H. (1937): Some A Posteriori Probabilities in Stock Market Action. Econometrica, n. 5, pp. 280-294. Cristianini, N. and Shawe-Taylor, J. (2000): An Introduction to Support Vector Machines and Other Kernel-based Learning Methods. Cambridge University Press: Cambridge. Çuhadar, M., Cogurcu, I. and Kukrer, C. (2014): Modelling and Forecasting Cruise Tourism Demand to zmir by Different Artificial Neural Network Architectures. International Journal of Business and Social Research, n. 4, pp. 12-28. Diebold, F.X. and Mariano, R. (1995): Comparing predictive accuracy. Journal of Business and Economic Statistics, n. 13, pp. 253-263. Drucker, H., Burges, C.J.C., Kaufman, L., Smola, A. and Vapnik, V. (1997): Support Vector Regression Machines. In: M. Mozer, M. Jordan and T. Petsche (eds.), Advances in Neural Information Processing Systems, vol. 9 (pp. 155-161). MIT Press: Cambridge, MA. Garín-Muñoz, T. and Montero-Martín, L.F. (2007): Tourism in the Balearic Islands: A dynamic model for international demand using panel data. Tourism Management, n. 28, pp. 1224-1235. Gil-Alana, L.A., Cunado, J. and De Gracia, F.P. (2008): Tourism in the Canary Islands: Forecasting Using Several Seasonal Time Series Models. Journal of Forecasting, n. 27, pp. 621-636. Goh, C., Law, R. and Mok, H.M. (2008): Analyzing and Forecasting Tourism Demand: A Rough Sets Approach. Journal of Travel Research, n. 46, pp. 327-338. Gounopoulos, D., Petmezas, D. and Santamaria, D. (2012): Forecasting Tourist Arrivals in Greece and the Impact of Macroeconomic Shocks from the Countries of Tourists’ Origin. Annals of Tourism Research, n. 39, pp. 641-666. Gunter, U. and Önder, I. (2015): Forecasting International City Tourism Demand for Paris: Accuracy of Uni- and Multivariate Models Employing Monthly Data. Tourism Management, n. 46, pp. 123-135. Guo, X., Sun, L., Li, G. and Wang, S. (2008): A Hybrid Wavelet Analysis and Support Vector Machines in Forecasting Development of Manufacturing. Expert Systems with Applications, n. 35, pp. 415-422. Hassani, H., Webster, A., Silva, E.S. and Heravi, S. (2015): Forecasting U.S. Tourist Arrivals Using Optimal Singular Spectrum Analysis. Tourism Management, n. 46, pp. 322-335. Hastie, T., Tibshirani, R. and Friedman, J. (2009): The Elements of Statistical Learning. Data Mining, Inference and Prediction. Springer: New York. Haykin, S. (2008): Neural Networks and Learning Machines (3rd Edition). Prentice Hall: New Jersey. Hernández-López, M. and Cáceres-Hernández, J.J. (2007): Forecasting Tourists’ Characteristics by a Genetic Algorithm with a Transition Matrix. Tourism Management, n. 28, pp. 290-297. Hong, W.C. (2006): The Application of Support Vector Machines to Forecast Tourist Arrivals in Barbados: an Empirical Study. International Journal of Management, n. 23, pp. 375-385. Hong, W.C. (2011): Traffic Flow Forecasting by Seasonal SVR with Chaotic Simulated Annealing Algorithm. Neurocomputing, n. 74, pp. 2096-2107. Hong, W., Dong, Y., Chen, L. and Wei, S. (2011): SVR with Hybrid Chaotic Genetic Algorithms for Tourism Demand Forecasting. Applied Soft Computing, n. 11, pp. 1881-1890. Huang, W., Nakamori, Y. and Wang, S.Y. (2005): Forecasting Stock Market Movement Direction with Support Vector Machine. Computers & Operations Research, n. 32, pp. 2513-2522. Kim, K. (2003): Financial Time Series Forecasting Using Support Vector Machines. Neurocomputing, n. 55, pp. 307-319. Revista de Economía Aplicada 130 Kim, D. and Schwartz, Y. (2013): The Accuracy of Tourism Forecasting and Data Characteristics: A Meta-analytical Approach. Journal of Hospitality Marketing and Management, n. 22, pp. 349-374. Kon, S. and Turner, L.L. (2005): Neural Network Forecasting of Tourism Demand. Tourism Economics, n. 11, pp. 301-328. Lehmann, R. and Wohlrabe, K. (2015): Forecasting GDP at the Regional Level with Many Predictors. German Economic Review, n. 16, pp. 226-254. Li, H. and Sun, J. (2012): Forecasting Business Failure: The Use of Nearest-neighbour Support Vectors and Correcting Imbalanced Samples – Evidence from the Chinese Hotel Industry. Tourism Management, n. 33, pp. 622-634. Li, G., Song, H., Cao, Z. and Wu, D.C. (2013): How Competitive is Hong Kong against its Competitors? An Econometric Study. Tourism Management, n. 36, pp. 247-256. Lin, H.L., Liu, M.L., Tseng, Y.H. and Su, Y.W. (2011): Taiwan’s International Tourism: A Time Series Analysis with Calendar Effects and Joint Outlier Adjustments. International Journal of Tourism Research, n. 13, pp. 1-16. Medeiros, M.C., McAleer, M., Slottje, D., Ramos, V. and Rey-Maquieira, J. (2008): An Alternative Approach to Estimating Demand: Neural Network Regression with Conditional Volatility for High Frequency Air Passenger Arrivals. Journal of Econometrics, n. 147, pp. 372-383. Molinet, T., Molinet, J.A., Betancourt, M.E., Palmer, A. and Montaño, J.J. (2015): Models of Artificial Neural Networks Applied to Demand Forecasting in Nonconsolidated Tourist Destinations. Methodology: European Journal of Research Methods for the Behavioral and Social Sciences. Forthcoming. Page, S., Song, H. and Wu, D.C. (2012): Assessing the Impacts of the Global Economic Crisis and Swine Flu on Inbound Tourism Demand in the United Kingdom. Journal of Travel Research, n. 51, pp. 142-153. Pai, P.F. and Hong, W.C. (2005): An Improved Neural Network Model in Forecasting Arrivals. Annals of Tourism Research, n. 32, pp. 1138-1141. Pai, P.F. and Hong, W.C. (2007): A Recurrent Support Vector Regression Model in Rainfall Forecasting. Hydrological Processes, n. 21, pp. 819-827. Pai, P.F. and Lin, C.S. (2005): A Hybrid ARIMA and Support Vector Machines Model in Stock Price Forecasting. Omega, n. 33, pp. 497-505. Palmer, A., Montaño, J.J. and Sesé, A. (2006): Designing an Artificial Neural Network for Forecasting Tourism Time-Series. Tourism Management, n. 27, pp. 781-790. Pattie, D.C. and Snyder, J. (1996): Using a neural network to forecast visitor behavior. Annals of Tourism Research, n. 23, pp. 151-164. Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., Blondel, M., Prettenhofer, P., Weiss, R., Dubourg, V., Vanderplas, J., Passos, A., Cournapeau, D., Bru - cher, M., Perrot, M. and Duchesnay, E. (2011): Scikit-learn: Machine Learning in Python. Journal of Machine Learning Research, n. 12, pp. 2825-2830. Peng, B., Song, H. and Crouch, G.I. (2014): A Meta-analysis of International Tourism Demand Forecasting and Implications for Practice. Tourism Management, n. 45, pp. 181-193. Ripley, B.D. (1996): Pattern Recognition and Neural Networks. Cambridge University Press: Cambridge. Rosselló-Nadal, J. (2001): Forecasting Turning Points in International Visitor Arrivals in the Balearic Islands. Tourism Economics, n. 7, pp. 365-380. Santana-Jiménez, Y. and Hernández, J.M. (2011): Estimating the Effect of Overcrowding on Tourist Attraction: The Case of Canary Islands. Tourism Management, n. 32, pp. 415-425. Modelling tourism demand to Spain with machine learning techniques... 131 Sarrión-Gavilán, M.D., Benítez-Márquez, M.D. and Mora-Rangel, E.O. (2015): Spatial distribution of tourism supply in Andalusia. Tourism Management, n. 15, pp. 29-45. Smola, A.J. and Schölkopf, B. (1998): A Tutorial on Support Vector Regression. Royal Holloway College: London, UK. Song, H. and Li, G. (2008): Tourism Demand Modelling and Forecasting – A Review of Recent Research. Tourism Management, n. 29, pp. 203-220. Tay, Feh and Cao, L. (2001): Application of Support Vector Machines in Financial Time Series Forecasting. Omega, n. 29, pp. 309-317. Teixeira, J.P. and Fernandes, P.O. (2014): Tourism Time Series Forecast – Different ANN Architectures with Time Index Input. Procedia Technology, n. 5, pp. 445-454. Tsaur, R. and Kuo, T. (2011): The Adaptive Fuzzy Time Series Model with an Application to Taiwan’s Tourism Demand. Expert Systems with Applications, n. 38, pp. 9164-9171. Vapnik, V.N. (1995): The Nature of Statistical Learning. Springer-Verlag: New York. Velásquez, J.D., Olaya, Y. and Franco, C.J. (2010): Time Series Prediction Using Support Vector Machines. Revista Chilena de Ingeniería, n. 18, pp. 64-75. Wu, Q., Law, R. and Xu, X. (2012): A Spare Gaussian Process Regression Model for Tourism Demand Forecasting in Hong Kong. Expert Systems with Applications, n. 39, pp. 4769-4774. Xu, X., Law, R. and Wu, T. (2009): Support Vector Machines with Manifold Learning and Probabilistic Space Projection for Tourist Expenditure Analysis. International Journal of Computational Intelligence Systems, n. 2, pp. 17-26. Yu, G. and Schwartz, Z. (2006): Forecasting Short Time-Series Tourism Demand with Artificial Intelligence Models. Journal of Travel Research, n. 45, pp. 194-203. Zhang, G., Putuwo, B.E. and Hu, M.Y. (1998): Forecasting with Artificial Neural Networks: The State of the Art. International Journal of Forecasting, n. 14, pp. 35-62. Fecha de recepción del original: Versión final: RESUMEN El presente estudio evalúa la influencia de los horizontes predictivos sobre la precisión de las predicciones obtenidas mediante técnicas de inteligencia artificial basadas en aprendizaje automático. Para ello se compara la capacidad predictiva de diferentes modelos de Regresión de Soporte Vectorial (RSV) y de Redes Neuronales (RNA) con un modelo lineal utilizado como referencia. El análisis se centra en la demanda de turismo extranjero en España a nivel regional. La RSV entrenada con un kernel de función de base radial gaussiana supera al resto de modelos para las predicciones a más largo plazo. También se encuentra que los métodos de aprendizaje automático mejoran su capacidad predictiva con respecto a los modelos lineales a medida que aumenta el horizonte de predicción. Este resultado pone de manifiesto la idoneidad de la RSV para la predicción a medio y largo plazo. Palabras clave: predicción, demanda turística, España, regresión de soporte vectorial, redes neuronales artificiales, técnicas de aprendizaje automático. Clasificación JEL: C02, C22, C45, C63, E27, R11. Revista de Economía Aplicada 132