SlideShare a Scribd company logo
Computer Engineering and Intelligent Systems                                                            www.iiste.org
ISSN 2222-1719 (Paper) ISSN 2222-2863 (Online)
Vol 3, No.5, 2012


        Minimum Weekly Temperature Forecasting using ANFIS
                                                 Pankaj Kumar
                        VCSG College of Horticulture, GBPUA&T, Pantnagar, Uttarakhand
                                           *pankaj591@gmail.com

Abstract
Temperature changes had a direct effect on crops. In the present study an adaptive neuro-fuzzy inference system
(ANFIS) has been used to model the relationship between maximum and minimum temperature data. Time series
data of weekly maximum temperature at a location is analyzed to predict the maximum temperature of the next week
at that location based on the weekly maximum temperatures for a span of previous n week referred to as order of
the input. Mean weekly maximum and mean weekly minimum temperature data of 10 years 1997 to 2006 (520
weeks) taken from regional center of Indian Meteorological Department at Dehradun, India. The objectives of
this paper are to develop prediction model and validate its ability to provide weekly temperature data.
Keywords: Minimum weekly temperature, ANFIS, forecasting

Introduction
Weather prediction is a complex process and a challenging task for researchers. It includes expertise in multiple
disciplines. The prediction of atmospheric parameters is essential for various applications. Some of them include
climate monitoring, drought detection, severe weather prediction, agriculture and production, planning in
energy industry, aviation industry, communication, pollution dispersal (Pal et al., 2003). Accurate prediction
of weather parameters is a difficult task due to the dynamic nature of atmosphere. Stochastic weather generators
have been proposed as one technique for simulating time series consistent with the current climate as well as for
producing scenarios of climate change. Various techniques like linear regression, auto regression, Multi-Layer
Perceptron, Radial Basis Function networks are applied to predict atmospheric parameters like temperature, wind
speed, rainfall, meteorological pollution etc.(Nayak et al,2004; and Nayak et al,200).It was found that the
non-linear operator equations governing the atmospheric system are the ones who can better understand the
dynamics of atmosphere.

Materials and Methods
Adaptive Neuro-Fuzzy Inference Systems (ANFIS)
Adaptive Neuro Fuzzy Inference System (ANFIS) is a fuzzy mapping algorithm that is based on
Tagaki-Sugeno-Kang (TSK) fuzzy inference system (Jang et al., 1997 and Loukas, 2001).ANFIS is integration
of neural networks and fuzzy logic and have the potential to capture the benefits of both these fields in a single
framework. ANFIS utilizes linguistic information from the fuzzy logic as well learning capability of an ANN for
automatic fuzzy if-then rule generation and parameter optimization.
      A conceptual ANFIS consists of five components: inputs and output database, a Fuzzy system generator, a
Fuzzy Inference System (FIS), and an Adaptive Neural Network. The Sugeno- type Fuzzy Inference System,
(Takagi and Sugeno, 1985) which is the combination of a FIS and an Adaptive Neural Network, was used in this
study for rainfall-runoff modeling. The optimization method used is      hybrid learning algorithms.
For a first-order Sugeno model, a common rule set with two fuzzy if-then rules is as follows:
Rule 1: If x1 is A1 and x2 is B1, then f1 = a1 x1+b1 x2 + c1.
Rule 2: If x1 is A2 and x2 is B2, then f2 = a2 x1+b2 x2 + c2.
where, x1 and x2 are the crisp inputs to the node and A1, B1, A2, B2 are fuzzy sets, ai, bi and ci (i = 1, 2) are the
coefficients of the first-order polynomial linear functions. Structure of a two-input first-order Sugeno fuzzy
model with two rules is shown in Figure 1 It is possible to assign a different weight to each rule based on the
structure of the system, where, weights w1 and w2 are assigned to rules 1 and 2 respectively.
and f = weighted average
The ANFIS consists of five layers (Jang, 1993), shown in Figure 1. The five layers of model are as follows:
  Layer1: Each node output in this layer is fuzzified by membership grade of a fuzzy set corresponding to each
input.




                                                         1
Computer Engineering and Intelligent Systems                                                                www.iiste.org
ISSN 2222-1719 (Paper) ISSN 2222-2863 (Online)
Vol 3, No.5, 2012

                                        O1,i = µAi (x1)                             i = 1, 2
                                        or
                                        O1,i = µBi-2 (x2)                           i = 3, 4                            (1)
                                                                                                                  th
Where, x1 and x2 are the inputs to node i (i = 1, 2 for x1 and i = 3, 4 for x2) and x1 (or x2) is the input to the i node
and Ai (or Bi-2) is a fuzzy label.
Layer 2: Each node output in this layer represents the firing strength of a rule, which performs fuzzy, AND
operation. Each node in this layer, labeled Π, is a stable node which multiplies incoming signals and sends the
product out.
                          O2,i = Wi = µAi (x1) µBi (x2)                       i = 1, 2                                 (2)
Layer 3: Each node output in this layer is the normalized value of layer 2, i.e., the normalized firing strengths.


                                 O3i = Wi =     w    i                                   i =1, 2                        (3)
                                               w +w
                                                 1       2

Layer 4: Each node output in this layer is the normalized value of each fuzzy rule. The nodes in this layer are
adaptive. Here Wi is the output of layer 3, and {ai,bi,ci} are the parameter set. Parameters of this layer are
referred to as consequence or output parameters.
                                 O4i = Wi f i = Wi (ai x1 + bi x2 + ci )                     i=1,2                     (4)


Layer 5: The node output in this layer is the overall output of the system, which is the summation of all coming
signals.
                                                         2

                                           2
                                                         ∑W      i   fi
                                   Y = ∑ 1W i f i =      1
                                                             2                                                         (5)
                                                         ∑W  1
                                                                     i




In this way the input vector was fed through the network layer by layer. The two major phases for implementing
the ANFIS for applications are the structure identification phase and the parameter identification phase. The
structure identification phase involves finding a suitable number of fuzzy rules and fuzzy sets and a proper
partition feature space. The parameter identification phase involves the adjustment of the premise and
consequence parameters of the system.
         Optimizing the values of the adaptive parameters is of vital importance for the performance of the
adaptive system. Jang et al. (1997) developed a hybrid learning algorithm for ANFIS to approximate the
precise value of the model parameters. The hybrid algorithm, which is a combination of gradient descent and the
least-squares method, consists of two alternating phases: (1) in the backward pass, the error signals recursively
propagated backwards and the premise parameters are updated by gradient descent, and (2) least squares
method finds a proper set of consequent parameters (Jang et al., 1997). In premise parameters set for a given
fixed values, the overall output can be expressed as a linear combination of the consequent parameters.
                                    AX = B                                                                   (6)




                                                                          2
Computer Engineering and Intelligent Systems                                                         www.iiste.org
ISSN 2222-1719 (Paper) ISSN 2222-2863 (Online)
Vol 3, No.5, 2012




                                                 Figure 1.ANFIS architecture

Where, X is an unknown vector whose elements are the consequent parameters. A least squares estimator of X,
namely X*, is chosen to minimize the squared error ‖‫ ܺܣ‬െ ‫‖ܤ‬ଶ . Sequential formulas are employed to compute
the least squares estimator of X. For given fixed values of premise parameters, the estimated consequent
parameters are known to be globally optimal.

Study Area and Model Application
Study area
Mean weekly maximum and mean weekly minimum temperature data of 10 years from 1997 to 2006 (520
weeks) taken from regional center of I.M.D. at Dehradun, India. Dehradun lies between 30° 19′ 48″ N latitude
and 78° 3′ 36″ E longitudes and at an altitude of 733 meter having generally temperate climate. The area receives
an average annual rainfall of 2073.3 mm and average annual minimum temperature is 13.3 °C and average
annual maximum temperature is 27.8 °C respectively.

Model Application
After pre-processing of data set in desired time lag format, the selection of input and output variables for the
models were done by taking different sets of training data for various input and time lag combinations.
Combination for one week ahead predicting model with three input, one output was found best. For one week
ahead prediction model, 400 weeks data were used in training and 117 weeks data in testing period respectively.
The inputs for model were current week maximum mean weekly temperature Xmax(k), two week before
maximum mean weekly temperature Xmax(k-2) and two week back mean minimum weekly temperature data
Xmin(k-2) and result was current day mean weekly minimum temperature Xmin (k).




                                                             3
Computer Engineering and Intelligent Systems                                                                               www.iiste.org
ISSN 2222-1719 (Paper) ISSN 2222-2863 (Online)
Vol 3, No.5, 2012



                                          30
           Mean minimum weekly Temp (°C                                             Actual               Predicted

                                          25
                                     °




                                          20


                                          15


                                          10


                                           5


                                           0
                                                 1
                                                20
                                                39
                                                58
                                                77
                                                96
                                               115
                                               134
                                               153
                                               172
                                               191
                                               210
                                               229
                                               248
                                               267
                                               286
                                               305
                                               324
                                               343
                                               362
                                               381
                                               400
                                               419
                                               438
                                               457
                                                                                      Weeks



                                               Figure 2.Observed and predicted weekly temperature during training period
                                                  30
                                                                          Actual        Predicted

                                                                               25
                                               Mean minimum weekly Temp (°C)
                                                                         °




                                                                               20


                                                                               15


                                                                               10


                                                                                5


                                                                                0
                                                                                      1
                                                                                      6
                                                                                     11
                                                                                     16
                                                                                     21
                                                                                     26
                                                                                     31
                                                                                     36
                                                                                     41
                                                                                     46
                                                                                     51
                                                                                     56
                                                                                     61
                                                                                     66
                                                                                     71
                                                                                     76
                                                                                     81
                                                                                     86
                                                                                     91
                                                                                     96
                                                                                    101
                                                                                    106
                                                                                    111
                                                                                    116




                                                                                                 Weeks



                                                Figure 3.Observed and predicted weekly temperature during testing period




                                                                                             4
Computer Engineering and Intelligent Systems                                                           www.iiste.org
ISSN 2222-1719 (Paper) ISSN 2222-2863 (Online)
Vol 3, No.5, 2012



Result and Discussions
For this three inputs and one output model, four Bell-shaped Gauss types of membership functions were found
suitable and hybrid learning algorithms method was used for the optimization. To judge the predictive capability
of the developed methodology, based on ANFIS Model, the performance indicators show that root mean square
error value is 1.25 for training and 1.76 for testing period, Coefficient of variation is 0.077 for training period
and 0.109 for testing period and Coefficient of efficiency is 96.12 % for training and 91.63% for testing period.

Conclusions
The present study discusses the application and usefulness of adaptive neuro fuzzy inference system based
forecasting approach for forecasting of minimum weekly temperature. The visual observation based on the
graphical comparison between observed and predicted values and the qualitative performance assessment of the
model indicates that ANFIS can be used effectively for minimum weekly temperature forecasting.

Reference
T. M. Austin, E. Larson, and D. Ernst. Simple scalar: An infrastructure for computer system modeling.
IEEE Computer, 35(2):59–67, 2002.
J.-S. R. Jang. ANFIS: adaptive network-based fuzzy inference systems.IEEE Trans. Syst., Man Cybern,
23:665–685, 1993
J.S.R. Jang, C.T. Sun, and E. Mizutani .Neuro-Fuzzy and Soft Computing, A Computational Approach to
Learning and Machine Intelligence. Prentice Hall, NJ,USA ISBN 0-13-261066-3,1997.
B. Kim, J.H. Park, and B.S. Kim. Fuzzy logic model of Langmuir probe discharge data. Comput
Chem,26(6):573–581, 2002
Y.L. Loukas .Adaptive neuro-fuzzy inference system: an instant and architecture-free predictor for improved
QSAR studies.J Med Chem, 44(17):2772–2783, 2001
P.C. Nayak, K.P. Sudheer, D.M. Rangan and K.S. Ramasastri. A neuro-fuzzy computing technique for
modelling hydrological time series. J. Hydrology, 291: 52-66,2004.
P.C. Nayak, K.P. Sudheer , D.M. Rangan and K.S. Ramasastri. Short term flood forecasting with a
neurofuzzy model, Water Resources Research, 41:2517–2530, 2005
T. Takagi and M. Sugeno .Fuzzy identification of systems and its application to modeling and control. IEEE
Transactions on Systems, Man, and Cybernetics, 15:116–132,1985.
L.A. Zadeh. Fuzzy Sets.Information and Control, 8: 338-353,1965.
A. J.     Jones .New Tools in Non-linear Modeling and Prediction, Computational Management
Science,1(2):109-149, 2004.
N.R. Pal, S. Pal, J. Das, and K. Majumdar. SOFM-MLP: A Hybrid Neural Network for Atmospheric
Temperature Prediction, IEEE Transactions on Geoscience and Remote Sensing, 41:2783-2791,2003.




                                                        5
This academic article was published by The International Institute for Science,
Technology and Education (IISTE). The IISTE is a pioneer in the Open Access
Publishing service based in the U.S. and Europe. The aim of the institute is
Accelerating Global Knowledge Sharing.

More information about the publisher can be found in the IISTE’s homepage:
http://www.iiste.org


The IISTE is currently hosting more than 30 peer-reviewed academic journals and
collaborating with academic institutions around the world. Prospective authors of
IISTE journals can find the submission instruction on the following page:
http://www.iiste.org/Journals/

The IISTE editorial team promises to the review and publish all the qualified
submissions in a fast manner. All the journals articles are available online to the
readers all over the world without financial, legal, or technical barriers other than
those inseparable from gaining access to the internet itself. Printed version of the
journals is also available upon request of readers and authors.

IISTE Knowledge Sharing Partners

EBSCO, Index Copernicus, Ulrich's Periodicals Directory, JournalTOCS, PKP Open
Archives Harvester, Bielefeld Academic Search Engine, Elektronische
Zeitschriftenbibliothek EZB, Open J-Gate, OCLC WorldCat, Universe Digtial
Library , NewJour, Google Scholar

More Related Content

PDF
11.crop yield forecasting by adaptive neuro fuzzy inference system
PDF
Crop yield forecasting by adaptive neuro fuzzy inference system
PDF
Discrete-Chapter 02 Functions and Sequences
PDF
BINARY TREE SORT IS MORE ROBUST THAN QUICK SORT IN AVERAGE CASE
PDF
Principal Component Analysis for Tensor Analysis and EEG classification
PDF
Ijcatr03051008Implementation of Matrix based Mapping Method Using Elliptic Cu...
PDF
Composite Field Multiplier based on Look-Up Table for Elliptic Curve Cryptogr...
PDF
Domain Examination of Chaos Logistics Function As A Key Generator in Cryptogr...
11.crop yield forecasting by adaptive neuro fuzzy inference system
Crop yield forecasting by adaptive neuro fuzzy inference system
Discrete-Chapter 02 Functions and Sequences
BINARY TREE SORT IS MORE ROBUST THAN QUICK SORT IN AVERAGE CASE
Principal Component Analysis for Tensor Analysis and EEG classification
Ijcatr03051008Implementation of Matrix based Mapping Method Using Elliptic Cu...
Composite Field Multiplier based on Look-Up Table for Elliptic Curve Cryptogr...
Domain Examination of Chaos Logistics Function As A Key Generator in Cryptogr...

What's hot (20)

PDF
International Journal of Engineering Inventions (IJEI)
PDF
Introduction to Common Spatial Pattern Filters for EEG Motor Imagery Classifi...
PPTX
Linked CP Tensor Decomposition (presented by ICONIP2012)
PDF
Independent Component Analysis
PDF
D I G I T A L C O N T R O L S Y S T E M S J N T U M O D E L P A P E R{Www
PDF
Gaussian Processes: Applications in Machine Learning
PDF
Seq2grid aaai 2021
PPTX
Introduction to Neural Netwoks
PDF
Bab 4 dan bab 5 algebra and trigonometry
PDF
Efficiency of 128-bit Encryption and Decryption Process in Elgamal Method Usi...
PDF
211 738-1-pb
PDF
G029037043
PDF
D0111720
PDF
Gm2511821187
PDF
Fj25991998
PDF
Digital signal and image processing FAQ
PDF
Analysis of an Image Secret Sharing Scheme to Identify Cheaters
PDF
An RKHS Approach to Systematic Kernel Selection in Nonlinear System Identific...
PDF
Encryption Quality Analysis and Security Evaluation of CAST-128 Algorithm and...
International Journal of Engineering Inventions (IJEI)
Introduction to Common Spatial Pattern Filters for EEG Motor Imagery Classifi...
Linked CP Tensor Decomposition (presented by ICONIP2012)
Independent Component Analysis
D I G I T A L C O N T R O L S Y S T E M S J N T U M O D E L P A P E R{Www
Gaussian Processes: Applications in Machine Learning
Seq2grid aaai 2021
Introduction to Neural Netwoks
Bab 4 dan bab 5 algebra and trigonometry
Efficiency of 128-bit Encryption and Decryption Process in Elgamal Method Usi...
211 738-1-pb
G029037043
D0111720
Gm2511821187
Fj25991998
Digital signal and image processing FAQ
Analysis of an Image Secret Sharing Scheme to Identify Cheaters
An RKHS Approach to Systematic Kernel Selection in Nonlinear System Identific...
Encryption Quality Analysis and Security Evaluation of CAST-128 Algorithm and...
Ad

Similar to Minimum weekly temperature forecasting using anfis (20)

PDF
11.rainfall runoff modelling of a watershed
PDF
Ag04606202206
PDF
20320130406022
PDF
20320130406022
PPT
fghdfh
PDF
PDF
Anfis.rpi04
PDF
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
PDF
PREDICTION THE NUMBER OF PATIENTS AT DENGUE HEMORRHAGIC FEVER CASES USING ADA...
PDF
Adaptive network based fuzzy
PDF
The role of Dataset in training ANFIS System for Course Advisor
PDF
An Artificial Intelligence Approach to Ultra High Frequency Path Loss Modelli...
PDF
Intelligent Process Control Using Neural Fuzzy Techniques ~陳奇中教授演講投影片
PDF
Extraction of qrs complexes using automated bayesian regularization neural ne...
PDF
Extraction of qrs complexes using automated bayesian regularization neural ne...
PDF
Extraction of qrs complexes using automated bayesian regularization neural ne...
PDF
Extraction of qrs complexes using automated bayesian regularization neural ne...
PDF
An integrated mechanism for feature selection
11.rainfall runoff modelling of a watershed
Ag04606202206
20320130406022
20320130406022
fghdfh
Anfis.rpi04
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
PREDICTION THE NUMBER OF PATIENTS AT DENGUE HEMORRHAGIC FEVER CASES USING ADA...
Adaptive network based fuzzy
The role of Dataset in training ANFIS System for Course Advisor
An Artificial Intelligence Approach to Ultra High Frequency Path Loss Modelli...
Intelligent Process Control Using Neural Fuzzy Techniques ~陳奇中教授演講投影片
Extraction of qrs complexes using automated bayesian regularization neural ne...
Extraction of qrs complexes using automated bayesian regularization neural ne...
Extraction of qrs complexes using automated bayesian regularization neural ne...
Extraction of qrs complexes using automated bayesian regularization neural ne...
An integrated mechanism for feature selection
Ad

More from Alexander Decker (20)

PDF
Abnormalities of hormones and inflammatory cytokines in women affected with p...
PDF
A validation of the adverse childhood experiences scale in
PDF
A usability evaluation framework for b2 c e commerce websites
PDF
A universal model for managing the marketing executives in nigerian banks
PDF
A unique common fixed point theorems in generalized d
PDF
A trends of salmonella and antibiotic resistance
PDF
A transformational generative approach towards understanding al-istifham
PDF
A time series analysis of the determinants of savings in namibia
PDF
A therapy for physical and mental fitness of school children
PDF
A theory of efficiency for managing the marketing executives in nigerian banks
PDF
A systematic evaluation of link budget for
PDF
A synthetic review of contraceptive supplies in punjab
PDF
A synthesis of taylor’s and fayol’s management approaches for managing market...
PDF
A survey paper on sequence pattern mining with incremental
PDF
A survey on live virtual machine migrations and its techniques
PDF
A survey on data mining and analysis in hadoop and mongo db
PDF
A survey on challenges to the media cloud
PDF
A survey of provenance leveraged
PDF
A survey of private equity investments in kenya
PDF
A study to measures the financial health of
Abnormalities of hormones and inflammatory cytokines in women affected with p...
A validation of the adverse childhood experiences scale in
A usability evaluation framework for b2 c e commerce websites
A universal model for managing the marketing executives in nigerian banks
A unique common fixed point theorems in generalized d
A trends of salmonella and antibiotic resistance
A transformational generative approach towards understanding al-istifham
A time series analysis of the determinants of savings in namibia
A therapy for physical and mental fitness of school children
A theory of efficiency for managing the marketing executives in nigerian banks
A systematic evaluation of link budget for
A synthetic review of contraceptive supplies in punjab
A synthesis of taylor’s and fayol’s management approaches for managing market...
A survey paper on sequence pattern mining with incremental
A survey on live virtual machine migrations and its techniques
A survey on data mining and analysis in hadoop and mongo db
A survey on challenges to the media cloud
A survey of provenance leveraged
A survey of private equity investments in kenya
A study to measures the financial health of

Recently uploaded (20)

PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
Big Data Technologies - Introduction.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Encapsulation theory and applications.pdf
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
Spectroscopy.pptx food analysis technology
PPTX
Machine Learning_overview_presentation.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
Review of recent advances in non-invasive hemoglobin estimation
Spectral efficient network and resource selection model in 5G networks
Chapter 3 Spatial Domain Image Processing.pdf
Encapsulation_ Review paper, used for researhc scholars
NewMind AI Weekly Chronicles - August'25-Week II
Big Data Technologies - Introduction.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Encapsulation theory and applications.pdf
A comparative analysis of optical character recognition models for extracting...
Spectroscopy.pptx food analysis technology
Machine Learning_overview_presentation.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Per capita expenditure prediction using model stacking based on satellite ima...
Assigned Numbers - 2025 - Bluetooth® Document
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Digital-Transformation-Roadmap-for-Companies.pptx

Minimum weekly temperature forecasting using anfis

  • 1. Computer Engineering and Intelligent Systems www.iiste.org ISSN 2222-1719 (Paper) ISSN 2222-2863 (Online) Vol 3, No.5, 2012 Minimum Weekly Temperature Forecasting using ANFIS Pankaj Kumar VCSG College of Horticulture, GBPUA&T, Pantnagar, Uttarakhand *pankaj591@gmail.com Abstract Temperature changes had a direct effect on crops. In the present study an adaptive neuro-fuzzy inference system (ANFIS) has been used to model the relationship between maximum and minimum temperature data. Time series data of weekly maximum temperature at a location is analyzed to predict the maximum temperature of the next week at that location based on the weekly maximum temperatures for a span of previous n week referred to as order of the input. Mean weekly maximum and mean weekly minimum temperature data of 10 years 1997 to 2006 (520 weeks) taken from regional center of Indian Meteorological Department at Dehradun, India. The objectives of this paper are to develop prediction model and validate its ability to provide weekly temperature data. Keywords: Minimum weekly temperature, ANFIS, forecasting Introduction Weather prediction is a complex process and a challenging task for researchers. It includes expertise in multiple disciplines. The prediction of atmospheric parameters is essential for various applications. Some of them include climate monitoring, drought detection, severe weather prediction, agriculture and production, planning in energy industry, aviation industry, communication, pollution dispersal (Pal et al., 2003). Accurate prediction of weather parameters is a difficult task due to the dynamic nature of atmosphere. Stochastic weather generators have been proposed as one technique for simulating time series consistent with the current climate as well as for producing scenarios of climate change. Various techniques like linear regression, auto regression, Multi-Layer Perceptron, Radial Basis Function networks are applied to predict atmospheric parameters like temperature, wind speed, rainfall, meteorological pollution etc.(Nayak et al,2004; and Nayak et al,200).It was found that the non-linear operator equations governing the atmospheric system are the ones who can better understand the dynamics of atmosphere. Materials and Methods Adaptive Neuro-Fuzzy Inference Systems (ANFIS) Adaptive Neuro Fuzzy Inference System (ANFIS) is a fuzzy mapping algorithm that is based on Tagaki-Sugeno-Kang (TSK) fuzzy inference system (Jang et al., 1997 and Loukas, 2001).ANFIS is integration of neural networks and fuzzy logic and have the potential to capture the benefits of both these fields in a single framework. ANFIS utilizes linguistic information from the fuzzy logic as well learning capability of an ANN for automatic fuzzy if-then rule generation and parameter optimization. A conceptual ANFIS consists of five components: inputs and output database, a Fuzzy system generator, a Fuzzy Inference System (FIS), and an Adaptive Neural Network. The Sugeno- type Fuzzy Inference System, (Takagi and Sugeno, 1985) which is the combination of a FIS and an Adaptive Neural Network, was used in this study for rainfall-runoff modeling. The optimization method used is hybrid learning algorithms. For a first-order Sugeno model, a common rule set with two fuzzy if-then rules is as follows: Rule 1: If x1 is A1 and x2 is B1, then f1 = a1 x1+b1 x2 + c1. Rule 2: If x1 is A2 and x2 is B2, then f2 = a2 x1+b2 x2 + c2. where, x1 and x2 are the crisp inputs to the node and A1, B1, A2, B2 are fuzzy sets, ai, bi and ci (i = 1, 2) are the coefficients of the first-order polynomial linear functions. Structure of a two-input first-order Sugeno fuzzy model with two rules is shown in Figure 1 It is possible to assign a different weight to each rule based on the structure of the system, where, weights w1 and w2 are assigned to rules 1 and 2 respectively. and f = weighted average The ANFIS consists of five layers (Jang, 1993), shown in Figure 1. The five layers of model are as follows: Layer1: Each node output in this layer is fuzzified by membership grade of a fuzzy set corresponding to each input. 1
  • 2. Computer Engineering and Intelligent Systems www.iiste.org ISSN 2222-1719 (Paper) ISSN 2222-2863 (Online) Vol 3, No.5, 2012 O1,i = µAi (x1) i = 1, 2 or O1,i = µBi-2 (x2) i = 3, 4 (1) th Where, x1 and x2 are the inputs to node i (i = 1, 2 for x1 and i = 3, 4 for x2) and x1 (or x2) is the input to the i node and Ai (or Bi-2) is a fuzzy label. Layer 2: Each node output in this layer represents the firing strength of a rule, which performs fuzzy, AND operation. Each node in this layer, labeled Π, is a stable node which multiplies incoming signals and sends the product out. O2,i = Wi = µAi (x1) µBi (x2) i = 1, 2 (2) Layer 3: Each node output in this layer is the normalized value of layer 2, i.e., the normalized firing strengths. O3i = Wi = w i i =1, 2 (3) w +w 1 2 Layer 4: Each node output in this layer is the normalized value of each fuzzy rule. The nodes in this layer are adaptive. Here Wi is the output of layer 3, and {ai,bi,ci} are the parameter set. Parameters of this layer are referred to as consequence or output parameters. O4i = Wi f i = Wi (ai x1 + bi x2 + ci ) i=1,2 (4) Layer 5: The node output in this layer is the overall output of the system, which is the summation of all coming signals. 2 2 ∑W i fi Y = ∑ 1W i f i = 1 2 (5) ∑W 1 i In this way the input vector was fed through the network layer by layer. The two major phases for implementing the ANFIS for applications are the structure identification phase and the parameter identification phase. The structure identification phase involves finding a suitable number of fuzzy rules and fuzzy sets and a proper partition feature space. The parameter identification phase involves the adjustment of the premise and consequence parameters of the system. Optimizing the values of the adaptive parameters is of vital importance for the performance of the adaptive system. Jang et al. (1997) developed a hybrid learning algorithm for ANFIS to approximate the precise value of the model parameters. The hybrid algorithm, which is a combination of gradient descent and the least-squares method, consists of two alternating phases: (1) in the backward pass, the error signals recursively propagated backwards and the premise parameters are updated by gradient descent, and (2) least squares method finds a proper set of consequent parameters (Jang et al., 1997). In premise parameters set for a given fixed values, the overall output can be expressed as a linear combination of the consequent parameters. AX = B (6) 2
  • 3. Computer Engineering and Intelligent Systems www.iiste.org ISSN 2222-1719 (Paper) ISSN 2222-2863 (Online) Vol 3, No.5, 2012 Figure 1.ANFIS architecture Where, X is an unknown vector whose elements are the consequent parameters. A least squares estimator of X, namely X*, is chosen to minimize the squared error ‖‫ ܺܣ‬െ ‫‖ܤ‬ଶ . Sequential formulas are employed to compute the least squares estimator of X. For given fixed values of premise parameters, the estimated consequent parameters are known to be globally optimal. Study Area and Model Application Study area Mean weekly maximum and mean weekly minimum temperature data of 10 years from 1997 to 2006 (520 weeks) taken from regional center of I.M.D. at Dehradun, India. Dehradun lies between 30° 19′ 48″ N latitude and 78° 3′ 36″ E longitudes and at an altitude of 733 meter having generally temperate climate. The area receives an average annual rainfall of 2073.3 mm and average annual minimum temperature is 13.3 °C and average annual maximum temperature is 27.8 °C respectively. Model Application After pre-processing of data set in desired time lag format, the selection of input and output variables for the models were done by taking different sets of training data for various input and time lag combinations. Combination for one week ahead predicting model with three input, one output was found best. For one week ahead prediction model, 400 weeks data were used in training and 117 weeks data in testing period respectively. The inputs for model were current week maximum mean weekly temperature Xmax(k), two week before maximum mean weekly temperature Xmax(k-2) and two week back mean minimum weekly temperature data Xmin(k-2) and result was current day mean weekly minimum temperature Xmin (k). 3
  • 4. Computer Engineering and Intelligent Systems www.iiste.org ISSN 2222-1719 (Paper) ISSN 2222-2863 (Online) Vol 3, No.5, 2012 30 Mean minimum weekly Temp (°C Actual Predicted 25 ° 20 15 10 5 0 1 20 39 58 77 96 115 134 153 172 191 210 229 248 267 286 305 324 343 362 381 400 419 438 457 Weeks Figure 2.Observed and predicted weekly temperature during training period 30 Actual Predicted 25 Mean minimum weekly Temp (°C) ° 20 15 10 5 0 1 6 11 16 21 26 31 36 41 46 51 56 61 66 71 76 81 86 91 96 101 106 111 116 Weeks Figure 3.Observed and predicted weekly temperature during testing period 4
  • 5. Computer Engineering and Intelligent Systems www.iiste.org ISSN 2222-1719 (Paper) ISSN 2222-2863 (Online) Vol 3, No.5, 2012 Result and Discussions For this three inputs and one output model, four Bell-shaped Gauss types of membership functions were found suitable and hybrid learning algorithms method was used for the optimization. To judge the predictive capability of the developed methodology, based on ANFIS Model, the performance indicators show that root mean square error value is 1.25 for training and 1.76 for testing period, Coefficient of variation is 0.077 for training period and 0.109 for testing period and Coefficient of efficiency is 96.12 % for training and 91.63% for testing period. Conclusions The present study discusses the application and usefulness of adaptive neuro fuzzy inference system based forecasting approach for forecasting of minimum weekly temperature. The visual observation based on the graphical comparison between observed and predicted values and the qualitative performance assessment of the model indicates that ANFIS can be used effectively for minimum weekly temperature forecasting. Reference T. M. Austin, E. Larson, and D. Ernst. Simple scalar: An infrastructure for computer system modeling. IEEE Computer, 35(2):59–67, 2002. J.-S. R. Jang. ANFIS: adaptive network-based fuzzy inference systems.IEEE Trans. Syst., Man Cybern, 23:665–685, 1993 J.S.R. Jang, C.T. Sun, and E. Mizutani .Neuro-Fuzzy and Soft Computing, A Computational Approach to Learning and Machine Intelligence. Prentice Hall, NJ,USA ISBN 0-13-261066-3,1997. B. Kim, J.H. Park, and B.S. Kim. Fuzzy logic model of Langmuir probe discharge data. Comput Chem,26(6):573–581, 2002 Y.L. Loukas .Adaptive neuro-fuzzy inference system: an instant and architecture-free predictor for improved QSAR studies.J Med Chem, 44(17):2772–2783, 2001 P.C. Nayak, K.P. Sudheer, D.M. Rangan and K.S. Ramasastri. A neuro-fuzzy computing technique for modelling hydrological time series. J. Hydrology, 291: 52-66,2004. P.C. Nayak, K.P. Sudheer , D.M. Rangan and K.S. Ramasastri. Short term flood forecasting with a neurofuzzy model, Water Resources Research, 41:2517–2530, 2005 T. Takagi and M. Sugeno .Fuzzy identification of systems and its application to modeling and control. IEEE Transactions on Systems, Man, and Cybernetics, 15:116–132,1985. L.A. Zadeh. Fuzzy Sets.Information and Control, 8: 338-353,1965. A. J. Jones .New Tools in Non-linear Modeling and Prediction, Computational Management Science,1(2):109-149, 2004. N.R. Pal, S. Pal, J. Das, and K. Majumdar. SOFM-MLP: A Hybrid Neural Network for Atmospheric Temperature Prediction, IEEE Transactions on Geoscience and Remote Sensing, 41:2783-2791,2003. 5
  • 6. This academic article was published by The International Institute for Science, Technology and Education (IISTE). The IISTE is a pioneer in the Open Access Publishing service based in the U.S. and Europe. The aim of the institute is Accelerating Global Knowledge Sharing. More information about the publisher can be found in the IISTE’s homepage: http://www.iiste.org The IISTE is currently hosting more than 30 peer-reviewed academic journals and collaborating with academic institutions around the world. Prospective authors of IISTE journals can find the submission instruction on the following page: http://www.iiste.org/Journals/ The IISTE editorial team promises to the review and publish all the qualified submissions in a fast manner. All the journals articles are available online to the readers all over the world without financial, legal, or technical barriers other than those inseparable from gaining access to the internet itself. Printed version of the journals is also available upon request of readers and authors. IISTE Knowledge Sharing Partners EBSCO, Index Copernicus, Ulrich's Periodicals Directory, JournalTOCS, PKP Open Archives Harvester, Bielefeld Academic Search Engine, Elektronische Zeitschriftenbibliothek EZB, Open J-Gate, OCLC WorldCat, Universe Digtial Library , NewJour, Google Scholar