An Introduction to Parameterized IFAM Models with Applications...

26
An Introduction to Parameterized IFAM Models with Applications in Prediction Peter Sussner 1 Rodolfo Miyasaki 2 Marcos Eduardo Valle 3 1 Department of Applied Mathematics, University of Campinas, Campinas - SP, Brazil 2 Credit Planning and Management Department, Banco Itaú, São Paulo - SP, Brazil 3 Department of Mathematics, University of Londrina, Londrina - PR, Brazil 2009 IFSA World Congress 2009 EUSFLAT Conference Sussner, Miyasaki, and Valle () Parameterized IFAMs 2009 IFSA - 2009 EUSTLAT 1 / 24

Transcript of An Introduction to Parameterized IFAM Models with Applications...

Page 1: An Introduction to Parameterized IFAM Models with Applications …valle/PDFfiles/talk_IFSA09a.pdf · An Introduction to Parameterized IFAM Models with Applications in Prediction Peter

An Introduction to Parameterized IFAM Models withApplications in Prediction

Peter Sussner1 Rodolfo Miyasaki2 Marcos Eduardo Valle3

1Department of Applied Mathematics, University of Campinas, Campinas - SP, Brazil

2Credit Planning and Management Department, Banco Itaú, São Paulo - SP, Brazil

3Department of Mathematics, University of Londrina, Londrina - PR, Brazil

2009 IFSA World Congress2009 EUSFLAT Conference

Sussner, Miyasaki, and Valle () Parameterized IFAMs 2009 IFSA - 2009 EUSTLAT 1 / 24

Page 2: An Introduction to Parameterized IFAM Models with Applications …valle/PDFfiles/talk_IFSA09a.pdf · An Introduction to Parameterized IFAM Models with Applications in Prediction Peter

Subject of this Talk

Implicative fuzzy associative memories (IFAMs), can be used toimplement fuzzy rule-based systems. There are infinitely many IFAMs.

The problem:

Selecting the best IFAM for a given application.

Proposed solution:

We introduce a class of parameterized IFAMs and formulate anoptimization problem that yields the IFAM that best fits the given data.

We compare the performance of the resulting Yager IFAM with othertechniques in two problems in time series prediction.

Sussner, Miyasaki, and Valle () Parameterized IFAMs 2009 IFSA - 2009 EUSTLAT 2 / 24

Page 3: An Introduction to Parameterized IFAM Models with Applications …valle/PDFfiles/talk_IFSA09a.pdf · An Introduction to Parameterized IFAM Models with Applications in Prediction Peter

Organization of this talk

1 A Brief Introduction to Implicative Fuzzy Associative Memories

2 The Yager Class of Parameterized IFAMs

3 Applications of Yager IFAMs in Prediction

4 Concluding Remarks and Suggestions for Further Research

Sussner, Miyasaki, and Valle () Parameterized IFAMs 2009 IFSA - 2009 EUSTLAT 3 / 24

Page 4: An Introduction to Parameterized IFAM Models with Applications …valle/PDFfiles/talk_IFSA09a.pdf · An Introduction to Parameterized IFAM Models with Applications in Prediction Peter

Implicative Fuzzy Associative Memories (IFAMs) Fuzzy Associative Memories (FAMs)

Fuzzy Associative Memories (FAMs)

Fuzzy Associative Memories (FAMs):

Fuzzy systems that encode associations (x1, y1), . . . , (xp, yp),where xξ and yξ are fuzzy sets.

Max-T FAMs:

Given an fuzzy input pattern x, the output is given by

y = W(x) = (W ◦ x) ∨ θ .

where W is the synaptic weight matrix and θ is the threshold vector.

Max-T Product:

C = A ◦ B ⇔ cij =

k∨

ξ=1

T (aiξ, bξj) .

Sussner, Miyasaki, and Valle () Parameterized IFAMs 2009 IFSA - 2009 EUSTLAT 4 / 24

Page 5: An Introduction to Parameterized IFAM Models with Applications …valle/PDFfiles/talk_IFSA09a.pdf · An Introduction to Parameterized IFAM Models with Applications in Prediction Peter

Implicative Fuzzy Associative Memories (IFAMs) Implicative Fuzzy Learning

Implicative Fuzzy Associative Memories (IFAMs)

IFAMs = Max-T FAM + Implicative Fuzzy Learning

Implicative Fuzzy Learning (IFL):

Given associations (x1, y1), . . . , (xp, yp), define W and θ as

wij =

p∧

ξ=1

IT (xξj , yξ

i ) and θi =

p∧

ξ=1

yξi ,

where IT is the R-implication associated with T .

Sussner, Miyasaki, and Valle () Parameterized IFAMs 2009 IFSA - 2009 EUSTLAT 5 / 24

Page 6: An Introduction to Parameterized IFAM Models with Applications …valle/PDFfiles/talk_IFSA09a.pdf · An Introduction to Parameterized IFAM Models with Applications in Prediction Peter

Implicative Fuzzy Associative Memories (IFAMs) Examples of IFAMs

Some Examples of IFAMs

Gödel IFAM:

TM(x , y) = x ∧ y and IM(x , y) =

{

1, x ≤ y ,y , x > y .

Lukasiewicz IFAM:

TL(x , y) = 0 ∨ (x + y − 1) and IL(x , y) = 1 ∧ (y − x + 1) .

Remark:

The nilpotent minimum

TW (x , y) =

{

x ∧ y , x ∨ y = 1 ,0, otherwise.

does not yield an IFAM because its R-implications is not well defined!

Sussner, Miyasaki, and Valle () Parameterized IFAMs 2009 IFSA - 2009 EUSTLAT 6 / 24

Page 7: An Introduction to Parameterized IFAM Models with Applications …valle/PDFfiles/talk_IFSA09a.pdf · An Introduction to Parameterized IFAM Models with Applications in Prediction Peter

The Yager Class of Parameterized IFAMs Yager t-norms and R-implications

The classes of Yager t-norms and R-implications

Definition (Yager t-norm)

T d(x , y) = 1 −{

1 ∧[

(1 − x)d + (1 − y)d]1d

}

, d > 0 .

Definition (Yager R-implication)

Id(x , y) = 1 −{

0 ∨[

(1 − y)d − (1 − x)d]

}1d

, d > 0 .

Remark:

For d = 1, T d = TL (Lukasiewicz t-norm);

For d → 0, Td → TW (nilpotent minimum);

For d → ∞, Td → TM (minimum).

Sussner, Miyasaki, and Valle () Parameterized IFAMs 2009 IFSA - 2009 EUSTLAT 7 / 24

Page 8: An Introduction to Parameterized IFAM Models with Applications …valle/PDFfiles/talk_IFSA09a.pdf · An Introduction to Parameterized IFAM Models with Applications in Prediction Peter

The Yager Class of Parameterized IFAMs Yager IFAMs

Yager IFAMs

Yager IFAM = IFAM based on T d and Id

Recording Phase:

Given a set of associations {(x1, y1), . . . , (xp, yp)}, define W and θ as

wdij =

p∧

ξ=1

Id (xξj , yξ

i ) and θi =

p∧

ξ=1

yξi .

Recall Phase:

Given an input pattern x, the output is given by

y = Wd (x) = (W d ◦d x) ∨ θ .

Sussner, Miyasaki, and Valle () Parameterized IFAMs 2009 IFSA - 2009 EUSTLAT 8 / 24

Page 9: An Introduction to Parameterized IFAM Models with Applications …valle/PDFfiles/talk_IFSA09a.pdf · An Introduction to Parameterized IFAM Models with Applications in Prediction Peter

The Yager Class of Parameterized IFAMs Choosing the best Yager IFAM in Prediction Problems

Choosing the best Yager IFAM...

In the prediction problems that we will discuss, we have that

The input fuzzy set x is derived from a real-valued vector v;

The output fuzzy set y is defuzzified yielding a real-valued output

s = defuzz(y) .

Choosing the best Yager IFAM...

Given training patterns in the form (v1, s1), . . . , (vp, sp), derive fuzzysets xξ and yξ, and determine d > 0 that minimize the Euclideandistance between sξ and

sdξ = defuzz

(

Wd (xξ))

,

produced by the Yager IFAM for ξ = 1, . . . , p.

Sussner, Miyasaki, and Valle () Parameterized IFAMs 2009 IFSA - 2009 EUSTLAT 9 / 24

Page 10: An Introduction to Parameterized IFAM Models with Applications …valle/PDFfiles/talk_IFSA09a.pdf · An Introduction to Parameterized IFAM Models with Applications in Prediction Peter

The Yager Class of Parameterized IFAMs The Optimization Problem

The Optimization Problem...

Optimization problem:

Given training patterns in the form (v1, s1), . . . , (vp, sp), solve

{

minimize∥

∥s − sd∥

2subject to d > 0

where s = [s1, . . . , sp]T and sd = [sd1 , . . . , sd

p ]T .

Remark:

We used the routine FMINBND of MATLAB’s Optimization Toolbox todetermine a local minimum of the real-valued objective function

f (d) = ‖s − sd‖2 .

Sussner, Miyasaki, and Valle () Parameterized IFAMs 2009 IFSA - 2009 EUSTLAT 10 / 24

Page 11: An Introduction to Parameterized IFAM Models with Applications …valle/PDFfiles/talk_IFSA09a.pdf · An Introduction to Parameterized IFAM Models with Applications in Prediction Peter

Applications of Yager IFAMs in Prediction Prediction of Manpower Requirement in Steel Manufacturing

Prediction of Manpower Requirement

Problem (Choudhury et al., 2002):

Predict the manpower requirement in steel manufacturing industry inthe state of West Bengal, India.

We have linguistic values Ai , i = 1, . . . , 5, and fuzzy rules such as

If manpower of year n is Ai , then that of year n + 1 is Aj .

If W denotes a max-T FAM, the predicted manpower of year n + 1 is

sdn+1 = defuzz

(

Wd(An))

,

where defuzz(·) is the “mean of maxima” (MOM) and An is obtainedfuzzifying the manpower requirement of year n.

Sussner, Miyasaki, and Valle () Parameterized IFAMs 2009 IFSA - 2009 EUSTLAT 11 / 24

Page 12: An Introduction to Parameterized IFAM Models with Applications …valle/PDFfiles/talk_IFSA09a.pdf · An Introduction to Parameterized IFAM Models with Applications in Prediction Peter

Applications of Yager IFAMs in Prediction Prediction of Manpower Requirement in Steel Manufacturing

Plot of the Objective Function for this Problem

0 2 4 6 8 10150

155

160

165

170

175

180

185

190

195

The distance∥

∥s − sd∥

2 between the actual demand of manpower andthat predicted by the Yager IFAM as a function of d .

Sussner, Miyasaki, and Valle () Parameterized IFAMs 2009 IFSA - 2009 EUSTLAT 12 / 24

Page 13: An Introduction to Parameterized IFAM Models with Applications …valle/PDFfiles/talk_IFSA09a.pdf · An Introduction to Parameterized IFAM Models with Applications in Prediction Peter

Applications of Yager IFAMs in Prediction Prediction of Manpower Requirement in Steel Manufacturing

Comparison in Forecasting Manpower

1984 1986 1988 1990 1992 1994 19961100

1200

1300

1400

1500

1600

1700

1800

Year

Man

pow

er

Kosko‘s FAM and Lukasiewicz GFAMGodel IFAM and Max−min FAM with thresholdGoguen IFAMLukasiewicz IFAM and Yager IFAMARIMA1ARIMA2Actual

Sussner, Miyasaki, and Valle () Parameterized IFAMs 2009 IFSA - 2009 EUSTLAT 13 / 24

Page 14: An Introduction to Parameterized IFAM Models with Applications …valle/PDFfiles/talk_IFSA09a.pdf · An Introduction to Parameterized IFAM Models with Applications in Prediction Peter

Applications of Yager IFAMs in Prediction Prediction of Manpower Requirement in Steel Manufacturing

Comparison of FAMs and Statistical Models

MSE MAE MPEMethod (×105) (m3/s) (%)

Yager IFAM (d ∈ (0, 1]): 1.92 32.75 2.29Lukasiewicz IFAM: 1.92 32.75 2.29

Kosko’s FAM: 2.57 38.75 2.67Lukasiewicz GFAM: 2.57 38.75 2.67

Gödel IFAM: 2.89 38.58 2.73Max-min FAM/threshold: 2.89 38.58 2.73

Goguen IFAM: 3.14 42.75 2.99ARIMA2 9.36 83.55 5.48ARIMA1 23.26 145.25 9.79

Sussner, Miyasaki, and Valle () Parameterized IFAMs 2009 IFSA - 2009 EUSTLAT 14 / 24

Page 15: An Introduction to Parameterized IFAM Models with Applications …valle/PDFfiles/talk_IFSA09a.pdf · An Introduction to Parameterized IFAM Models with Applications in Prediction Peter

Applications of Yager IFAMs in Prediction Prediction of Manpower Requirement in Steel Manufacturing

Remarks:

This experiment indicates the utility of IFAMs for prediction problemand the validity of our approach for determining the best Yager IFAM.

Disadvantage:

This prediction problem does not include any test data!

Details can be found in:J.P. Choudhury, B. Sarkar, and S.K. Mukherjee. Forecasting ofEngineering Manpower Through Fuzzy Associative Memory NeuralNetwork with ARIMA: a Comparative Study, Neurocomputing,47:241-257, 2002.

Sussner, Miyasaki, and Valle () Parameterized IFAMs 2009 IFSA - 2009 EUSTLAT 15 / 24

Page 16: An Introduction to Parameterized IFAM Models with Applications …valle/PDFfiles/talk_IFSA09a.pdf · An Introduction to Parameterized IFAM Models with Applications in Prediction Peter

Applications of Yager IFAMs in Prediction Prediction of Average Monthly Streamflow of a Hydroeletric Plant

Prediction of Streamflow of a Hydroeletric Plant

Problem (Magalhães et al., 2004):

Forecast the monthly streamflow of a large hydroelectric plant, calledFurnas.

The predictions are used for simulation, optimization, anddecision-making purposes of the energy system.

A time series prediction problem can be formulated as follows:

Given samples sµ for µ = 1, . . . , q − 1, obtain an estimate sq for theactual sq based on a subset of the past values s1, . . . , sq−1.

Sussner, Miyasaki, and Valle () Parameterized IFAMs 2009 IFSA - 2009 EUSTLAT 16 / 24

Page 17: An Introduction to Parameterized IFAM Models with Applications …valle/PDFfiles/talk_IFSA09a.pdf · An Introduction to Parameterized IFAM Models with Applications in Prediction Peter

Applications of Yager IFAMs in Prediction Prediction of Average Monthly Streamflow of a Hydroeletric Plant

Description of the Approach

Our approach uses:

12 different models, one for each month of the year, due to theseasonality of the streamflow;

a fixed number of three antecedents, e.g., the values of January,February, and March to predict the streamflow of April.

Sussner, Miyasaki, and Valle () Parameterized IFAMs 2009 IFSA - 2009 EUSTLAT 17 / 24

Page 18: An Introduction to Parameterized IFAM Models with Applications …valle/PDFfiles/talk_IFSA09a.pdf · An Introduction to Parameterized IFAM Models with Applications in Prediction Peter

Applications of Yager IFAMs in Prediction Prediction of Average Monthly Streamflow of a Hydroeletric Plant

How to Predict a Time Series using a FAM Model

FAMs can used as follows to predict a time series:

1 Define fuzzy sets xξ and yξ that comprise some relevantinformation concerning the past values of the time series.

2 Store the associations (xξ, yξ) in the memory;3 Given an input xγ that takes into account some past values,

compute the output pattern yγ ;4 A defuzzification of W(xγ) yields the estimation sγ .

Sussner, Miyasaki, and Valle () Parameterized IFAMs 2009 IFSA - 2009 EUSTLAT 18 / 24

Page 19: An Introduction to Parameterized IFAM Models with Applications …valle/PDFfiles/talk_IFSA09a.pdf · An Introduction to Parameterized IFAM Models with Applications in Prediction Peter

Applications of Yager IFAMs in Prediction Prediction of Average Monthly Streamflow of a Hydroeletric Plant

How to Predict a Time Series using a FAM Model

These fours steps were performed as follows:

1 We used the subtractive clustering method to determine fuzzysets xξ and yξ with Gaussian-type membership functions fromstreamflow data from 1931 to 1990;

2 We stored the associations in a Yager IFAM Wd .3 The input pattern xγ corresponds to a “crisp” set;4 A defuzzification of Wd (xγ) using the centroid method yields sd

γ .

Sussner, Miyasaki, and Valle () Parameterized IFAMs 2009 IFSA - 2009 EUSTLAT 18 / 24

Page 20: An Introduction to Parameterized IFAM Models with Applications …valle/PDFfiles/talk_IFSA09a.pdf · An Introduction to Parameterized IFAM Models with Applications in Prediction Peter

Applications of Yager IFAMs in Prediction Prediction of Average Monthly Streamflow of a Hydroeletric Plant

How to Predict a Time Series using a FAM Model

These fours steps were performed as follows:

1 We used the subtractive clustering method to determine fuzzysets xξ and yξ with Gaussian-type membership functions fromstreamflow data from 1931 to 1990;

2 We stored the associations in a Yager IFAM Wd .3 The input pattern xγ corresponds to a “crisp” set;4 A defuzzification of Wd (xγ) using the centroid method yields sd

γ .

Choosing the best Yager IFAM:

As before, we generated the vectors s and sd using the training from1931-1990 to determine the best Yager IFAM for this problem.

Sussner, Miyasaki, and Valle () Parameterized IFAMs 2009 IFSA - 2009 EUSTLAT 18 / 24

Page 21: An Introduction to Parameterized IFAM Models with Applications …valle/PDFfiles/talk_IFSA09a.pdf · An Introduction to Parameterized IFAM Models with Applications in Prediction Peter

Applications of Yager IFAMs in Prediction Prediction of Average Monthly Streamflow of a Hydroeletric Plant

Plot of the Objective Function for this Problem

0 2 4 6 8 101.2

1.21

1.22

1.23

1.24

1.25

1.26

1.27x 10

4

d f(d)

4.35 1.20 × 104

1 1.23 × 104

Difference ≈ 300.

The distance∥

∥s − sd∥

2 between the actual streamflows and thatpredicted by the Yager IFAM as a function of d .

Sussner, Miyasaki, and Valle () Parameterized IFAMs 2009 IFSA - 2009 EUSTLAT 19 / 24

Page 22: An Introduction to Parameterized IFAM Models with Applications …valle/PDFfiles/talk_IFSA09a.pdf · An Introduction to Parameterized IFAM Models with Applications in Prediction Peter

Applications of Yager IFAMs in Prediction Prediction of Average Monthly Streamflow of a Hydroeletric Plant

The Streamflow Predictionfor the Furnas reservoir from 1991 to 1998.

1991 1992 1993 1994 1995 1996 1997 1998 19990

500

1000

1500

2000

2500

3000

3500

4000

Year

Str

eam

flow

Actual

Yager IFAM

Lukasiewicz IFAM

Sussner, Miyasaki, and Valle () Parameterized IFAMs 2009 IFSA - 2009 EUSTLAT 20 / 24

Page 23: An Introduction to Parameterized IFAM Models with Applications …valle/PDFfiles/talk_IFSA09a.pdf · An Introduction to Parameterized IFAM Models with Applications in Prediction Peter

Applications of Yager IFAMs in Prediction Prediction of Average Monthly Streamflow of a Hydroeletric Plant

Comparison of Prediction Models

MSE MAE MPEMethod (×105) (m3/s) (%)

Predictive fuzzy clustering 1.20 200 18Yager IFAM (d = 4.3568) 1.28 216 21

Lukasiewicz IFAM 1.27 229 24PARMA 1.85 280 28

Multi-layer perceptron 1.82 271 30Neuro-fuzzy network 1.73 234 20

PARMA - Periodic auto-regressive moving average model

Sussner, Miyasaki, and Valle () Parameterized IFAMs 2009 IFSA - 2009 EUSTLAT 21 / 24

Page 24: An Introduction to Parameterized IFAM Models with Applications …valle/PDFfiles/talk_IFSA09a.pdf · An Introduction to Parameterized IFAM Models with Applications in Prediction Peter

Applications of Yager IFAMs in Prediction Prediction of Average Monthly Streamflow of a Hydroeletric Plant

Remarks:

Some of the other methods were initialized by optimizing the numberof parameters for each monthly prediction.

The predictive fuzzy clustering method also takes advantages ofslopes information.

The Yager IFAM resulting from the minimization of MSE produced verysatisfactory predictions.

The Yager IFAM outperformed the Lukasiewicz IFAM in terms of MAEand MPE but produced an slightly higher MSE.

This fact may be due to overfitting to the training data.

Sussner, Miyasaki, and Valle () Parameterized IFAMs 2009 IFSA - 2009 EUSTLAT 22 / 24

Page 25: An Introduction to Parameterized IFAM Models with Applications …valle/PDFfiles/talk_IFSA09a.pdf · An Introduction to Parameterized IFAM Models with Applications in Prediction Peter

Concluding Remarks and Suggestions for Further Research Concluding Remarks

Concluding Remarks

This talk described:

First attempt of tackling the problem of selecting the best IFAM for agiven application;

Introduction of the the class of Yager parameterized IFAMs;

Formulation of optimization problem for determining the best IFAM;

Application of our approach to two prediction problems from theliterature.

Sussner, Miyasaki, and Valle () Parameterized IFAMs 2009 IFSA - 2009 EUSTLAT 23 / 24

Page 26: An Introduction to Parameterized IFAM Models with Applications …valle/PDFfiles/talk_IFSA09a.pdf · An Introduction to Parameterized IFAM Models with Applications in Prediction Peter

Concluding Remarks and Suggestions for Further Research Suggestions for Further Research

Suggestions for Further Research

Incorporate additional parameters into the optimization process;

Use validation and/or regularization techniques to avoid overfitting;

Investigate other classes of parameterized IFAMs.

Thank You!

Sussner, Miyasaki, and Valle () Parameterized IFAMs 2009 IFSA - 2009 EUSTLAT 24 / 24