Abstract

These days human beings are facing many environmental challenges due to frequently occurring drought hazards. It may have an effect on the country’s environment, the community, and industries. Several adverse impacts of drought hazard are continued in Pakistan, including other hazards. However, early measurement and detection of drought can provide guidance to water resources management for employing drought mitigation policies. In this paper, we used a multilayer perceptron neural network (MLPNN) algorithm for drought forecasting. We applied and tested MLPNN algorithm on monthly time series data of Standardized Precipitation Evapotranspiration Index (SPEI) for seventeen climatological stations located in Northern Area and KPK (Pakistan). We found that MLPNN has potential capability for SPEI drought forecasting based on performance measures (i.e., Mean Average Error (MAE), the coefficient of correlation (), and Root Mean Square Error (RMSE)). Water resources and management planner can take necessary action in advance (e.g., in water scarcity areas) by using MLPNN model as part of their decision-making.

1. Introduction

The demand of water has increased diversely due to expansion in agriculture, population, energy, and industrial zone. Many parts of the world suffered each year due to scarcity of water. Change in climatic condition and contamination in water play a key role in water scarcity, Aswathanarayana [1].

Drought can be recognized as disaster associated with climate that can have effect on a wide range of land. There are many factors that play a major role in drought occurrence including high wind, low relative humidity, temperature, and characteristics and duration of rain, intensity, and onset, Wilhite [2]. Drought can be one of the main sources in reducing freshwater flows and has huge impact on the planning and management of water resources.

Several tools have been used for the assessment of drought. Drought indices are one of the most commonly used tools for assessing the drought conditions around the world and few of them are as follows: Rainfall Anomaly Index (RAI), Van Rooy [3] and Decile Gibbs [4]; Crop Moisture Index (CMI), Palmer [5]; the Palmer Drought Severity Index (PDSI), Palmer [6]; Bhalme and Mooly Index (BMI), Bhalme and Mooley [7]; Surface Water Supply Index (SWSI), Shafer and Dezman [8]; Reclamation Drought Index (RDI), Weghorst [9]; Standardized Precipitation Index (SPI), McKee et al. [10]; and Standardized Precipitation Evapotranspiration Index (SPEI), Vicente-Serrano et al. [11]. Drought indices are efficient tools instead of making decision on raw data. In this study, we reviewed these drought indices to understand the appropriateness of each drought index.

Similar to drought assessment tools, several models have been developed for drought forecasting. Paulo and Pereira [12] applied Markov chain on SPI to characterize the stochasticity of drought and predict three months ahead drought class. Neural network is an information processing method, which adaptively determine pattern from data. Hypothetically, it has been exposed that, given a suitable number of nonlinear processing units, neural network can learn from, practice, and calculate approximately any complex function with greater accuracy [13, 14]. Kim and Valdés [15] forecasted drought using dyadic wavelet transforms and neural network. Mishra et al. [16] used SPI to compare the forecasting performance of Artificial Neural Network (ANN) and linear stochastic model in the Kangsabati River Basin, India. Bacanli et al. [17] investigated SPI and used Adaptive Neurofuzzy Inference System (ANFIS) for drought forecasting.

A few applications of ANN models in drought forecasting only comprised of Morid et al. [18]. Mishra and Desai [19] compared linear stochastic models (e.g., Autoregressive Integrated Moving Average (ARIMA), seasonal ARIMA, Recursive Multistep Neural Network (RMSNN), and Direct Multistep Neural Network (DMSNN)) for drought forecasting using SPI time series data of Kangsabati River Basin. They found that DMSNN is helpful in long-term drought forecasting; however, RMSNN is useful in short-term drought forecasting.

The log linear model is class of generalized linear models that can explore the relationships among categorical variables, Agresti [20]. Moreira et al. [21] used three-dimensional log linear model for drought forecasting and found it is a useful tool for temporary drought warning systems. Morid et al. [18] used ANN to predict the values of two drought indices, SPI and Effective Drought Index (EDI). A variety of different structures of ANNs were applied on SPI and EDI time series data with different time scale for several stations of Tehran (Iran). Both indices have values within 0.66–0.79 for 6-month time scale. However, it was shown that the EDI forecasted results were better to those of SPI in all lead times. Marj and Meijerink [22] purposed a model for forecasting agricultural drought based on Normalized Difference Vegetation Index (NDVI) by using Effective Climate Signal (EDS) and ANN approach. These models were applied at Ahar-Chay Basin in Azerbaijan Province. Their results show that, in spring, synthetic NDVI can be forecasted using ANN’s approach. Fathabadi et al. [23] used time series data of SPI and applied ANN and -Nearest Neighbor (KNN) models to forecast drought at five stations of Western Iran. Their results show that ANNs perform better than KNN for forecasting SPI values for 9- and 12-month time scale.

Conventionally, hydrological variables, like monthly precipitation and temperature, have been widely modeled using different linear techniques, such as Autoregressive Moving Average (ARMA) Salas and Boes [24] and Seasonal Autoregressive Integrated Moving Average (SARIMA), Mishra and Desai [19]. The ANNs have showed outstanding ability in modeling and forecasting nonlinear and nonstationary time series data in water resources and hydrology, Goovaerts [25]. This main feature of ANN makes it an attractive method for drought forecasting, Morid et al. [18]. In recent years, due to this advantage, many researchers have applied ANN modeling approach in different fields [16, 18, 19, 21, 26].

In this study, due to the importance of drought forecasting, the capability of ANN model is evaluated by forecasting drought using multiscalar drought Index-SPEI at various climatic zones of Pakistan. The rest of the paper is organized as follows. The brief description about spatial domain and estimation method for SPEI are presented in Section 2. The neural network model for forecasting the drought index and its testing and validation are presented in Section 3. Finally, we concluded our results in Section 4.

2. Material and Methods

2.1. Study Area

Our study area is in Northern Area and KPK including capital territory of Pakistan. We collected monthly data on total rainfall and mean temperature from seventeen meteorological stations (Balakot, Kotli, Cherat, Chilas, Islamabad, Gupis, Peshawar, Saidu Sharif, Muzaffarabad, Bunji, DI Khan, Drosh, Garhi Dupatta, Dir, Gilgit, and Kakul) from 1975 to 2012. As these stations’ data are managed by the Pakistan Meteorological Department (PMD), Islamabad, we collected the data from the Karachi Data Processing Center via PMD. The selected locations represent fully precipitation regimes affecting the area where water is the main source for agriculture and hydropower for the flood plains in Pakistan. These stations have significant ecological role, including watershed and enhancing the lifespan of Tarbela Dam. This dataset contains catchments with minimum synthetic influences and have good hydrometric performance. In this paper, SPEI with four different time scales are calculated for each station.

2.2. Standardized Precipitation Evapotranspiration Index (SPEI)

Vicente-Serrano et al. [11] developed a new multiscalar drought index called SPEI, which is based on both temperature and precipitation data. The SPEI is an extension of the extensively used drought index called SPI. The SPEI is proposed to report both precipitation and Potential Evapotranspiration (PET) in determining drought.

Different equations are used to estimate PET values according to the nature of data that linked PET values with temperature data. The most commonly used procedures for calculating PET are Thornthwaite equation, Thornthwaite [29]; Penman equation, Allen et al. [30] and Allen and Pruitt [31]. In this study, Thornthwaite equation is used to estimate PET values. Estimation procedures for SPEI and SPI are similar. SPI uses only time series data of precipitation, recorded with different time scale as an input. However, the SPEI uses time series data on both precipitation and temperature. The procedure for estimation of SPEI is as follows:

In the above equation, is monthly temperature in degree Celsius and is heat index derived from 12-month index values calculated as a sum of 12-month index values , which is calculated as follows:

is a coefficient depending on , and is a correction coefficient computed as a function of the latitude and month. The difference between precipitation and PET provides a measure of water surplus or deficit for the month and this is compared over time and standardized to get the value of SPEI.

SPEI values were obtained by fitting the long-term record of difference between precipitation and PET for specified time interval of any location.

Vicente-Serrano et al. [11] used same classification criteria of drought as described by McKee et al. [10]. Table 1 shows the classification of SPEI values corresponding with climatic classes provided by McKee et al.

Sönmez et al. [32] used the Gamma distribution to investigate spatiotemporal variability in meteorological droughts at Turkey.

Mathematically, the SPEI is based on the cumulative probability distribution function of a given quantitative values of rainfall occurrence for a specific station.

In this study, we calculate SPEI values by standardizing different probability distributions (e.g., Gamma, Generalized Extreme Values Distribution, Log-Logistic Distribution, and Generalized Pareto Distribution) that fit the time series. Kolmogorov-Smirnov test, Justel et al. [33], and Anderson Darling test, Anderson and Darling [34], for goodness of measure are applied using Easy-Fit, Schittkowski [35], computer application before standardizing the most appropriate distribution. Detailed discussion on these goodness-of-fit tests is skipped in this section.

McKee et al. [10] transformed Gamma distribution into a normal distribution by using inverse normal (Gaussian) function in order to calculate SPI values. To estimate the parameters of each distribution that fit well, different methods of parameter estimation are used. Table 2 shows probability distributions corresponding to the estimation method of parameters for each distribution.

The resulting parameters of each distribution are then used to derive Cumulative Distribution Function (CDF). For undefined values of , for example, in case of the Gamma distribution, the rainfall time series data may contain zero rainfall. The cumulative distribution of zero and nonzero rainfall is calculated by the following expression:where is the probability of zero rainfall.

If is the number of zeros present in a rainfall time series data, then is estimated by .

The distribution function of each probability distribution is than transformed into standard normal distribution to obtain SPTI values having zero mean and unit variance.

Following Mishra and Desai and McKee et al., the current study employed the approximate transformation provided by Abramowitz and Stegun [36] to transform the cumulative probability distribution into a standardized normal distribution, which are given as follows:forwhenand forwhenwhere

The average value of the SPEI is 0, and the standard deviation is 1. The SPEI is a standardized variable; therefore, it can be compared with other SPEI values over time and space. The SPEI value equal to 0 indicates a value corresponding to 50% of the cumulative probability of , according to a Log-Logistic Distribution.

3. Neural Network Forecasting

There are several methods for the development and implementation of neural network model of forecasting. In many applications, feedforward neural network topology with backpropagation learning algorithm was used, while some used variant of this. Several researchers described the problem in finding the appropriate network size for predicting real-world time series, Zhang et al. [37].

The MLPNN model is the most extensively used type of ANN’s approach for modeling hydrological data, Wang et al. [38]. MLP model belongs to a general class structure of ANN called feedforward neural network. A feedforward neural network is a basic type of neural network that is capable of approximating both continuous and integrable functions. Network architecture of MLP consists of neurons that grouped in layers.

In MLPNN model, all the input nodes are in one layer and hidden layer is distributed into one or more hidden layers. Figure 1 shows a general structure of simple feedforward network.

Suppose there are layers in MLP: first layer is called input, th layer is the output, and 2 to layers are hidden layers. Assume that there are neurons, where, .

Let and be the weight and th be the neuron, respectively, such that , where are the weights and is the external input for model.

Let be the output of the th neuron of th layer.

Also, let be the extra weight parameter that represent bias of th neuron of th layer such that includes .

That iswhere

For designing ANN architecture, one must determine the optimum number of the following layers:(i)The number of input layers(ii)The number of hidden layers(iii)The number of output layersFigure 2 illustrates general architecture of MLPNN model.

In this research, MLPNN model of ANNs was used for drought forecasting.

Detailed explanation MLPNN model and its selection of parameters is given in the following section.

3.1. Multilayer Perception Architecture

All neural networks have an input layer and an output layer; however, the number of hidden layers may vary. Basically, selection of these variables is domain-specific or depends on the problem. Many algorithms, such as the polynomial time algorithm, Roy et al. [39]; the pruning algorithm, Sietsma and Dow [40]; the canonical decomposition technique, Wang et al. [41]; and network information criterion, Murata et al. [26], have been proposed to find optimum structure of the network, but none of these methods guaranteed the optimal solution of the parameters for all types of forecasting problems.

Literature shows that there is no systematic way to investigate these problems. Many researchers adopted trial and error methodology for a specific problem which is the basic cause of inconsistency in ANN literature, Sheela and Deepa [42]. Zhang et al. [37] reported that there is not any structured model that identify which network structure would be the best. There are no hard and fast rules prevailing the correct structure of a neural network. Important factors such as the number of inputs, the number of hidden units, and the arrangement of these units into layers are often determined using trial and error methods or fixed in advance according to the subjective opinion of each individual designer, Fischer and Gopal [43].

The procedure for MLPNN consists of four parts:(i)Variable selection(ii)Formulations of training, testing, and validation(iii)Architecture(iv)Model verification and forecasting

Current research employed the MLPNN model by using Zaitun time series software. Following Lipae et al. [44], the selection of variable is based on software. This employs that choosing variable for training, testing, and validation is done by software itself. Application of same methodological structure can be found in Babić et al. [45]; Lipae et al. [44]; Kadiyala and Kumar [46]. However, the risk of overfitting of the MLPNN was taken by early stopping condition. As we used iterative method for training a learner, this stopping condition fits better the data with each iteration. There are two basic rules of stopping condition (i.e., mean square error value and mean square error change). These rules help give guidance about the number of iterations running before the initialization of overfitting of learner, Prechelt [47]. In Zaitun time series software, one can find stopping condition in neural network analysis form. Several models are applied and tested with various combinations of layers (i.e., input layer, hidden layer, and output layer) and four activation functions (i.e., semilinear, sigmoid bipolar sigmoid, and the hyperbolic tangent function). Following Gowda and Mayya [48], the parameters of the ANN architecture in terms of learning rate, momentum, bias, the number of hidden neurons, and the activation constant were considered. Trial and error procedure was adopted to choose the optimal value of each structured parameter of network model. The developed ANN model consists of 3 layers that are input, hidden, and output of 30 neurons, 8 neurons, and 1 neuron, respectively. For verification of forecast model, the residuals series were tested and plotted to examine whether the series is uncorrelated or not. If the residuals revealed to be uncorrelated, the selected model is then applied to forecast drought indices. We found that sigmoid function is best for each drought index for one-month scale data based on the criterion of mean square error. Momentum of 0.5 and training epoch of 10000 were set. The input vector consists of previous 30 values of each index. After selection of the appropriate parameter of ANN, the forecasted model for each of the indices is then validated on 20% of data. Validation of forecasted model is done based on performance measures: MAE, the correlation coefficient (), and RMSE.

3.2. Results and Discussion

In this study, time series data on observed SPEI with different time scale are computed by standardizing the probability distribution that describes well behavior of difference between precipitation and evapotranspiration using Abramowitz and Stegun [36] approach. After computing the drought indices, the multilayer perceptron model was used to describe the method of forecasting the quantitative values of SPEI for each selected stations of our study area. Each forecasted model was evaluated by considering the correlation coefficient (), RMSE, and MAE. Time series data of observed SPEI with 1-, 3-, 6-, and 12-month time scale at selected stations are compared with predicted values of SPEI.

Figures 3, 4, 5, and 6 show graphical representation of historical observed values and predicted values of SPEI with different time scale of stations (e.g., Astor and Balakot). Table 3 shows results of MLPNN model summaries for 1-, 3-, 6-, and 12-month time scale SPEI values of each study station.

The model is potentially able to predict drought condition by using SPEI values with different time scale. The excellence of the forecast is reflected in the correlation coefficient between observed and estimated time series, the RMSE and MAE.

The accuracy of the selected model in all stations for each index is good in terms of correlation between observed and predicted SPEI values. From each observatory, correlation coefficient ranges lie in the interval 0.887 to 0.987 for SPEI-1, 0.876 to 0.994 for SPEI-3, 0.876 to 0.994 for SPEI-6, and 0.780 to 0.970 for SPEI-12. Figure 7 shows actual and forecasted plots for stations (e.g., Astor, Balakot, Chilas, and Dir). Results show that ANN modeling works extremely well for forecasting SPEI values with different time scale; however, for Balakot station, deviations are apparent between observed and predicted values of SPEI-12 and correlation coefficient is 0.780.

By using forecasted quantities of drought indices as input, model can be used to predict further by a multistep approach. No evidence was found about significant deviation between observed and predicted values of drought index for all indices.

4. Conclusion

In this study, multilayer perceptron neural network (MLPNN) algorithm is used for nonlinear drought forecasting of monthly time series data of average temperature and total precipitation that recorded from seventeen synoptic stations of Northern Area and KPK (Pakistan) from 1975 to 2012. SPEI values were estimated by fitting appropriate probability distribution of difference between precipitation and PET. We found that the MLPNN model is convenient for operational purposes (i.e., water resources and management) as variation between input data of observed and predicted SPEI values is not high.

Outcomes associated with the study show that ANNs have the power to capture the variation in selected drought indices with one-month time scale. Water resources and management planner may take help from the developed neural network model to take action in advance to know about where water scarcity is increasing owing to insufficient rainfall in a particular region that may lead to drought condition.

Ethical Approval

The manuscript is prepared in accordance with the ethical standards of the responsible committee on human experimentation and with the latest version (2008) of Helsinki Declaration of 1975.

Disclosure

The manuscript is prepared by using secondary data.

Conflicts of Interest

The authors declared that there are no conflicts of interest.

Acknowledgments

The authors extend their appreciation to the Deanship of Scientific Research at King Saud University for funding this work through Research Group no. RG-1437-027.