Weather Forecasting Using ANFIS and ARIMA MODELS. A Case Study for Istanbul

Similar documents
Indian Weather Forecasting using ANFIS and ARIMA based Interval Type-2 Fuzzy Logic Model

CHAPTER 2 REVIEW OF LITERATURE

Comparative Study of ANFIS and ARIMA Model for Weather Forecasting in Dhaka

Weather Forecasting using Soft Computing and Statistical Techniques

Comparative Analysis of ANFIS, ARIMA and Polynomial Curve Fitting for Weather Forecasting

Estimation of Precipitable Water Vapor Using an Adaptive Neuro-fuzzy Inference System Technique

FORECASTING OF ECONOMIC QUANTITIES USING FUZZY AUTOREGRESSIVE MODEL AND FUZZY NEURAL NETWORK

MURDOCH RESEARCH REPOSITORY

A Hybrid Wavelet Analysis and Adaptive. Neuro-Fuzzy Inference System. for Drought Forecasting

USE OF FUZZY LOGIC TO INVESTIGATE WEATHER PARAMETER IMPACT ON ELECTRICAL LOAD BASED ON SHORT TERM FORECASTING

TIME SERIES ANALYSIS AND FORECASTING USING THE STATISTICAL MODEL ARIMA

ARTIFICIAL INTELLIGENCE MODELLING OF STOCHASTIC PROCESSES IN DIGITAL COMMUNICATION NETWORKS

MODELLING OF TOOL LIFE, TORQUE AND THRUST FORCE IN DRILLING: A NEURO-FUZZY APPROACH

INTERNATIONAL JOURNAL OF ENVIRONMENTAL SCIENCES Volume 2, No 1, Copyright 2010 All rights reserved Integrated Publishing Association

A Hybrid ARIMA and Neural Network Model to Forecast Particulate. Matter Concentration in Changsha, China

Chapter-1 Introduction

Improved the Forecasting of ANN-ARIMA Model Performance: A Case Study of Water Quality at the Offshore Kuala Terengganu, Terengganu, Malaysia

N. Sarikaya Department of Aircraft Electrical and Electronics Civil Aviation School Erciyes University Kayseri 38039, Turkey

A HYBRID MODEL OF SARIMA AND ANFIS FOR MACAU AIR POLLUTION INDEX FORECASTING. Eason, Lei Kin Seng (M-A ) Supervisor: Dr.

Forecasting Area, Production and Yield of Cotton in India using ARIMA Model

A Systematic and Simple Approach for Designing Takagi-Sugeno Fuzzy Controller with Reduced Data

A SEASONAL FUZZY TIME SERIES FORECASTING METHOD BASED ON GUSTAFSON-KESSEL FUZZY CLUSTERING *

Prediction of Seasonal Rainfall Data in India using Fuzzy Stochastic Modelling

ADAPTIVE NEURO-FUZZY INFERENCE SYSTEMS

A FUZZY NEURAL NETWORK MODEL FOR FORECASTING STOCK PRICE

Box-Jenkins ARIMA Advanced Time Series

ABSTRACT I. INTRODUCTION II. FUZZY MODEL SRUCTURE

COMPARISON OF CLEAR-SKY MODELS FOR EVALUATING SOLAR FORECASTING SKILL

Prediction of Hourly Solar Radiation in Amman-Jordan by Using Artificial Neural Networks

FORECASTING SUGARCANE PRODUCTION IN INDIA WITH ARIMA MODEL

Prediction of Monthly Rainfall of Nainital Region using Artificial Neural Network (ANN) and Support Vector Machine (SVM)

Forecasting the Prices of Indian Natural Rubber using ARIMA Model

Solar irradiance forecasting for Chulalongkorn University location using time series models

Time-Series analysis for wind speed forecasting

Dr SN Singh, Professor Department of Electrical Engineering. Indian Institute of Technology Kanpur

FORECASTING OF COTTON PRODUCTION IN INDIA USING ARIMA MODEL

SOFT COMPUTING APPROACH FOR TIME SERIES PREDICTION

That s Hot: Predicting Daily Temperature for Different Locations

A Data-Driven Model for Software Reliability Prediction

A Soft Computing Approach for Fault Prediction of Electronic Systems

MCMC analysis of classical time series algorithms.

Time Series Analysis -- An Introduction -- AMS 586

Short-Term Load Forecasting Using ARIMA Model For Karnataka State Electrical Load

Modeling climate variables using time series analysis in arid and semi arid regions

Forecasting of Nitrogen Content in the Soil by Hybrid Time Series Model

Minitab Project Report - Assignment 6

LOAD FORECASTING APPLICATIONS for THE ENERGY SECTOR

Forecasting Exchange Rate Change between USD and JPY by Using Dynamic Adaptive Neuron-Fuzzy Logic System

Multi-output ANN Model for Prediction of Seven Meteorological Parameters in a Weather Station

Rainfall Prediction using Back-Propagation Feed Forward Network

Wavelet discrete transform, ANFIS and linear regression for short-term time series prediction of air temperature

Received: October 26,

Forecasting Network Activities Using ARIMA Method

EE-588 ADVANCED TOPICS IN NEURAL NETWORK

Short Term Load Forecasting using Neuro-fuzzy-Wavelet Approach

Short-term wind forecasting using artificial neural networks (ANNs)

Forecasting Precipitation Using SARIMA Model: A Case Study of. Mt. Kenya Region

Function Approximation through Fuzzy Systems Using Taylor Series Expansion-Based Rules: Interpretability and Parameter Tuning

MODELING INFLATION RATES IN NIGERIA: BOX-JENKINS APPROACH. I. U. Moffat and A. E. David Department of Mathematics & Statistics, University of Uyo, Uyo

FORECASTING YIELD PER HECTARE OF RICE IN ANDHRA PRADESH

Solar irradiance forecasting for Chulalongkorn University location using time series models

MODELING MAXIMUM MONTHLY TEMPERATURE IN KATUNAYAKE REGION, SRI LANKA: A SARIMA APPROACH

LONG TERM LOAD FORECASTING OF POWER SYSTEMS USING ARTIFICIAL NEURAL NETWORK AND ANFIS

HYBRID PREDICTION MODEL FOR SHORT TERM WIND SPEED FORECASTING

Frequency Forecasting using Time Series ARIMA model

Using Analysis of Time Series to Forecast numbers of The Patients with Malignant Tumors in Anbar Provinc

arxiv: v1 [stat.me] 5 Nov 2008

FERROMAGNETIC HYSTERESIS MODELLING WITH ADAPTIVE NEURO FUZZY INFERENCE SYSTEM


Chapter 12: An introduction to Time Series Analysis. Chapter 12: An introduction to Time Series Analysis

Empirical Approach to Modelling and Forecasting Inflation in Ghana

A Recommendation for Tropical Daily Rainfall Prediction Based on Meteorological Data Series in Indonesia

Comparing the Univariate Modeling Techniques, Box-Jenkins and Artificial Neural Network (ANN) for Measuring of Climate Index

Design of Time Series Model for Road Accident Fatal Death in Tamilnadu

Prashant Pant 1, Achal Garg 2 1,2 Engineer, Keppel Offshore and Marine Engineering India Pvt. Ltd, Mumbai. IJRASET 2013: All Rights are Reserved 356

Comparison of Fuzzy Logic and ANFIS for Prediction of Compressive Strength of RMC

Forecasting hotspots in East Kutai, Kutai Kartanegara, and West Kutai as early warning information

ANFIS Modelling of a Twin Rotor System

Forecasting Drought in Tel River Basin using Feed-forward Recursive Neural Network

Lesson 13: Box-Jenkins Modeling Strategy for building ARMA models

Application of Text Mining for Faster Weather Forecasting

Study on Modeling and Forecasting of the GDP of Manufacturing Industries in Bangladesh

5 Autoregressive-Moving-Average Modeling

Research Article Weather Forecasting Using Sliding Window Algorithm

Estimation of Evapotranspiration Using Fuzzy Rules and Comparison with the Blaney-Criddle Method

MODELLING TIDE PREDICTION USING LINEAR MODEL AND ADAPTIVE NEURO FUZZY INFERENCE SYSTEM (ANFIS)IN SEMARANG, INDONESIA

Nonlinear System Identification Based on a Novel Adaptive Fuzzy Wavelet Neural Network

Deep Learning Architecture for Univariate Time Series Forecasting

A Matlab/Simulink Toolbox for Inversion of Local Linear Model Trees

Journal of of Computer Applications Research Research and Development and Development (JCARD), ISSN (Print), ISSN

Estimation of Pan Evaporation Using Artificial Neural Networks A Case Study

HydroClass TM. Separating meteorological and non-meteorological targets in Vaisala radar systems. Laura C. Alku 8th July 2014

Some details about the theoretical background of CarpatClim DanubeClim gridded databases and their practical consequences

Modeling of Hysteresis Effect of SMA using Neuro Fuzzy Inference System

Longshore current velocities prediction: using a neural networks approach

ARTIFICIAL NEURAL NETWORK WITH HYBRID TAGUCHI-GENETIC ALGORITHM FOR NONLINEAR MIMO MODEL OF MACHINING PROCESSES

Available online at ScienceDirect. Procedia Engineering 154 (2016 )

Forecasting USD/IQD Future Values According to Minimum RMSE Rate

A Wavelet Neural Network Forecasting Model Based On ARIMA

Time Series I Time Domain Methods

Transcription:

Aplinkos tyrimai, inžinerija ir vadyba, 2010. Nr. 1(51), P. 5 10 ISSN 1392-1649 Environmental Research, Engineering and Management, 2010. No. 1(51), P. 5 10 Weather Forecasting Using ANFIS and ARIMA MODELS. A Case Study for Istanbul Mehmet Tektaş Marmara University, Vocational School of Technical Sciences, Turkey (received in February, 2010, accepted in March, 2010) This paper presents a comparative study of statistical and neuro-fuzzy network models for forecasting the weather of Göztepe, İstanbul, Turkey. For developing the models, nine year data (2000-2008) comprising daily average temperature (dry-wet), air pressure, and wind-speed have been used. Adaptive Network Based Fuzzy Inference System (ANFIS) and Auto Regressive Moving Average (ARIMA) models have been applied. To ensure the effectiveness of ARIMA and ANFIS techniques, different models employing a different training and test data set have been tested. The criteria of performance evaluation are calculated for estimating and comparing the performances of ARIMA and ANFIS models. Hence, the paper explains briefly how neuro-fuzzy models can be formulated using different learning methods and then analyzes whether they can provide the required level of performance for a reliable model for practical weather forecasting. On the obtained the results the most suitable model and network structure are determined according to prediction performance, reliability and efficiency. The performance comparisons of ANFIS and ARIMA models due to MAE (Moving Average Error), RMSE- R 2 (Root-Mean-Square error) criteria, indicate that ANFIS yields better results. Key words: Weather forecasting, ARIMA, Adaptive Network Based Fuzzy Inference System (ANFIS). 1. Introduction Weather forecast systems are among the most complex equation systems that computer has to solve. A great quantity of data, coming from satellites, ground stations and sensors located around our planet send daily information that must be used to foresee the weather situation in next hours and days all around the world. Weather reports give forecast for next 24, 48 and 72 hours for wide areas (Pasero 2004). Weather forecasts provide critical information about future weather. There are various techniques involved in weather forecasting, from relatively simple observation of the sky to highly complex computerized mathematical models. Data recorded by a weather station at the prominent meteorological center of Göztepe, İstanbul have been used for the analysis and forecast applying ANFIS and ARIMA, they are evaluated and compared.. 2. Literature Review Weather forecasting has been one of the most challenging problems around the world because of both its practical value in meteorology and popular sphere for scientific research. Every sign points to the facts that there is a recognized need for accurate estimates of the temperature on a variety of temporal and spatial scales. Among scientific research works related to the weather forecasting some should be mentioned. Hu (1964) initiated the implementation of ANN, an important Soft Computing methodology in weather forecasting. Cook and Wolfe (1991) developed a neural network to predict the average air temperatures. Fuzzy logic can also be of great use in the atmospheric data analysis and prediction. Being capable of dealing with linguistic variables, this methodology can be utilized in analyzing atmospheric variables. Özelkan and Duckstein (1996) compared the performance of regression analysis and fuzzy logic in studying the relationship between monthly

M. Tektaş atmospheric circulation patterns and precipitation. Liu and Chandrasekar (2000) developed a fuzzy logic and neuro-fuzzy system for classification of a hydrometeor type based on polarimetric radar measurements where fuzzy logic was used to infer a hydrometeor type, and the neural network-learning algorithm was used for automatic adjustment of the parameters of the fuzzy sets in the fuzzy logic system according to the prior knowledge. 3. Data Analysıs And Case Study Characterıstıcs Data recorded by a weather station at a prominent meteorological center of Göztepe, İstanbul are used for the analysis in this study. Their initial analysis has shown that the most important weather parameters are the average temperature (dry and wet), wind-speed and pressure variables. These variables also represent a strong correlation with the other weather parameters. 3.1. Temperature Temperature, in general, can be measured to a higher degree of accuracy relative to any of the other weather variables. Historical temperature data recorded in the above-mentioned metereological center are used. The average temperatures in the period of nine years (2000-2008) are plotted in Figure 1. Fig. 2. Wind-speed in period 2000-2008 3.3. Pressure Barometric pressure changes with local weather conditions, making the barometric pressure an important and useful weather forecasting tool. High pressure zones are generally associated with fair weather, while low pressure zones are generally associated with poor weather. For forecasting purposes, the absolute barometric pressure value is generally less important than the change in the barometric pressure. In general, the rising pressure indicates improving weather conditions, while the falling pressure indicates deteriorating weather conditions.the pressures in the period of nine years (2000-2008) are plotted in Figure 3. Fig. 3. Pressure in period 2000-2008 Fig. 1. Average temperatures in period 2000-2008 3.2. Wind-Speed Wind is often considered as one of the most difficult meteorological parameters to forecast. It is significant in winter whether the temperature is low, which is roughly below 4.4 o C. When the temperature is below a freezing point, wind is a major factor determining the cooling rate. Figure 2 presents the wind-speed recorded in Göztepe, İstanbul between years 2000 and 2008. 4. The ANFIS Model ANFIS is an adaptive network that is functionally equivalent to a fuzzy inference system (Jang 1993), and referred to in literature as adaptive network based fuzzy inference system or adaptive neuro fuzzy inference sytem. ANFIS is perhaps the first integrated hybrid neuro-fuzzy model (Jang 1992) and its architecture is very similar that presented in Fig. 4. In the ANFIS model, crisp input series are converted to fuzzy inputs by developing membership functions for each input series. The membership function pattern used for the input series is of the Gaussian shape. The fuzzy inputs with their associated membership functions form the inputs to 6

Weather Forecasting Using ANFIS and ARIMA MODELS. A Case Study for Istanbul the neural network. These fuzzy inputs are processed through a network of transfer functions at the nodes of different layers of the network to obtain fuzzy outputs with linear membership functions that are combined to obtain a single crisp output, as the ANFIS method permits only one output in the model. Data from January 2000 to June 2008 are used to train the network to apply a hybrid method whose membership functions and parameters keep changing until the weather forecast error is minimized. Then the resulting model is applied to the test data of the period from July 2008 to December 2008. Real and ANFIS system outputs related to the temperature forecasting are shown both for training and testing procedures in Fig.6. Fig. 4. Takagi Sugeno neuro-fuzzy system Realized ANFIS model; Number of nodes: 55, Number of linear parameters: 80, Number of nonlinear parameters: 32, Number of training data pairs: 3123, Number of checking data pairs: 164 and Number of fuzzy rules: 16 are obtained. Performance analysis of the ANFIS model is realized using MATLAB s Fuzzy Logic Toolbox and GUI editor.training performance of a realized model obtaining from 20,000 epoch both for chkerr and step size parameters are shown in Fig 5a and b. Fig. 6. Real and ANFIS system outputs related to tempature forecasting Performance analysis of the ANFIS model is realized using MATLAB s ANFIS Toolbox and GUİ editor. The regression results of training and testing procedures are shown in Fig.7. 1.665 1.66 1.655 1.65 1.645 1.64 1.635 1.63 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 Fig. 5.a. Chkerr parameters of Training performance Fig. 7. Regression results 0.25 0.2 5. The ARIMA MODEL 0.15 0.1 0.05 0 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 x 10 4 Fig. 5.b. Step size parameters of Training performance 7 In real world applications, many processes can be represented using the time series as follows: X(t-p), x(t-2),x(t-1),x(t) For making a prediction using time series, a great variety of approaches are available. Prediction of scalar time series { xˆ (n)} refers to the task of

M. Tektaş finding estimate xˆ (n + 1) of next future sample x(n+1) based on the knowledge of the history of time series, i.e. samples x(n), x(n-1) (Rank 2003) Linear prediction, where the estimate is based on a linear combination of N past samples, can be represented as below: xˆ (n N 1 + 1) = a.x( n i) i= 0 i with prediction coefficients, i=0,1, N-1. Introducing general nonlinear function f(.) n f (.) : R R applied to vector x(n)=[x(n), x (n-m),,x(n-(n-1))m] T of the past samples, nonlinear prediction approach α i xˆ (n + 1) =f(x(n)) (Rank 2003) is reached. Traditionally, a time series forecasting problem is tackled using linear techniques such as Auto Regressive Moving Average (ARMA) and Auto Regressive Integrated Moving Average (ARIMA) models popularized by Box and Jenkins (1976). General form of ARMA(p,q) model can be written as below: Fig. 8 Real and ARIMA system outputs related to tempature forecasting X t p q φ.x = θ ε = s r 1 t r = 0. t s s { t ε } Where is white noise. This process is stationary for appropriate φ, θ (Box and Jenkins 1976). General form of the ARIMA model is given by: Y t = a o + a İ=1,2,..p and j=0,1, q i.y t i + b j.e t j Fig. 9. Residual ACF and PACF corelograms of the ARIMA(2,1,1) model ARIMA(2,1,1) model and graph of residual terms are shown in Fig.10. Y t Where is a stationary stochastic process with non-zero average, a 0 - constant coefficient, e i - white noise disturbance term, a i represents autoregressive coefficients and b j denotes moving average coefficients. Performance analysis of the ARIMA model is done using the SPSS s package program. The Model obtained is ARIMA(2,1,1). Real and ARIMA system outputs related to tempature forecasting are in Fig.8. The estimate equation obtained by the Arima(2,1,1) model and its result parameters are as follows: Z=0.4805160257+Z t-1 (0.5054977403)+ Z t-2 (0.5054977403)+ 0.5770235918 ε t 1 R 2 =0,91 D-W=2.036871 AIC=4.349352 Accuracy of the ARIMA(2,1,1) model, ACF and PACF corelograms are examined and shown in Fig.9. Fig. 10. Graph of residual terms 8

Weather Forecasting Using ANFIS and ARIMA MODELS. A Case Study for Istanbul 6. Discussions and Test Results In this study, four inputs and one output were used to forecast the tempature in the ANFIS model. 5% of the data were used in testing and 95% of data were used in a training process. The same data were used by ARIMA(2,1,1) method to evaluate performance criteria. The performance comparisons of the ANFI and ARIMA models due to MAE,RMSE,R 2 CRİTERİA are shown in Tables1.a and.b. Table.1. a. Performance comparison of ANFIS and ARIMA models MAE RMSE ANFIS ARIMA ANFIS ARIMA Training Data 1.2552 1.523 1.6312 2.075 Test Data 1.3212 1.178 1.7176 1.709 Table.1. b. Performance comparison of ANFIS and ARIMA models R 2 ANFIS 0.9802 ARIMA 0.91 As can be understood from Tables 1.a and b., compared to the ARIMA, the ANFIS due to MAE,RMSE,R 2 criteria gives better results. 7. Conclusions ANFIS has gained a great popularity in timeseries prediction because of its simplicity and reliability. The performance of ANFIS and ARIMA is compared. Compared to the ARIMA, the ANFIS can more efficiently capture dynamic behavior of the weather temperature, resulting in a more compact and natural internal representation of the temporal information contained in the weather profile. References Box,G.E.P. and G.M.Jenkins, 1976.Time Series Analysis : Forecasting and Control. Holden Day Inc. San Francisco,CA. Cook, D.F. and Wolfe, M.L., 1991, A backpropagation neural network to predict average air temperatures, AI Applications, 5, p.p.40-46 H. Liu and V. Chandrasekar, Classification of Hydrometeor Type Based on Multiparameter Radar Measurements: Development of a Fuzzy Logic and Neuro Fuzzy Systems and In-situ Verification, J. Atmos. Ocean Tech., Vol. 17, p.p.140-164, 2000. Hu, M.J.C., 1964, Application of ADALINE system to weather forecasting, Technical Report, Stanford Electron. Jang, J.S.R. (1993). ANFIS: Adaptive networkbased fuzzy inference system. IEEE Trans. Syst., Man, Cybern., 23, p.p.665 685. Jang.R, Neuro-Fuzzy Modeling: Architectures, Analyses and Applications, Ph.D. Thesis, University of California, Berkeley, 1992. Ozelkan, E. C., F. Ni, and L. Duckstein, 1996: Relationship between monthly atmospheric circulation patterns and precipitation: Fuzzy logic and regression approaches. Water Resour. Res., 32, p.p.2097 2103. Pasero,E., Moniaci,W, ClMSA 2004 - IEEE lntemanonal Conference on Compumional Intelligence for Measurement System and Applications,Boston. MA, USA, 14-16 July 2004 Artificial Neural Networks for Meteorological Nowcast Rank,E.,2003.Application of Bayesian trained RBF Networks to nonlinear time-series modeling. Signal Processing, 83: p.p.1393-1410. Assoc. prof. Mehmet Tektaş at the Marmara University, Vocational School of Technical Sciences. Research Areas: Fuzzy Logic,Artificial Neural Networks,Forecasting, Statistic, Optimization Adress: Marmara University, Vocational School of Technical Sciences, 34722 Istanbul, Turkey. Tel: +902164182504 Fax: +902164182505 E-mail: tektas@marmara.edu.tr 9

M. Tektaş Orų prognozavimas ANFIS ir ARIMA modeliais. Stambulo pavyzdys Mehmet Tektaş Marmara universitetas, Profesinė techninių mokslų mokykla, Stambulas, Turkija (gauta 2010 m. vasario mėn.; atiduota spaudai 2010 m. kovo mėn.) Straipsnyje pateikiama lyginamoji orų prognozavimo statistinių ir neuroninių neraiškiųjų (angl. neurofuzzy) tinklų analizė. Sudarant modelius, naudoti devynių metų (2000 2008 m.) Stambulo duomenys: vidutinė dienos temperatūra, oro slėgis ir vėjo greitis. Taikyti adaptyviosios neuroninės-neraiškiosios išvedimo sistemos (ANFIS) ir autoregresinio integruoto slankiųjų vidurkių metodo (ARIMA) modeliai. Atlikta ANFIS ir ARIMA modelių lyginimo analizė pagal MAE ir RMSE- R 2 kriterijus rodo, kad ANFIS patikimesnis. 10