Sugeno-style Fuzzy Inference and ANFIS...Tugas2 Buatlah aproksimasifuzzy darifungsiy = f(x) = -2x...

29
Sugeno-style Fuzzy Inference and ANFIS Teny Handhayani

Transcript of Sugeno-style Fuzzy Inference and ANFIS...Tugas2 Buatlah aproksimasifuzzy darifungsiy = f(x) = -2x...

Page 1: Sugeno-style Fuzzy Inference and ANFIS...Tugas2 Buatlah aproksimasifuzzy darifungsiy = f(x) = -2x –x2 GunakanmetodeANFIS 0 30 45 60 VH 75 Fig. 4.12. Membership function of weight

Sugeno-style Fuzzy Inference andANFIS

Teny Handhayani

Page 2: Sugeno-style Fuzzy Inference and ANFIS...Tugas2 Buatlah aproksimasifuzzy darifungsiy = f(x) = -2x –x2 GunakanmetodeANFIS 0 30 45 60 VH 75 Fig. 4.12. Membership function of weight

Kategori Berat Badan

Page 3: Sugeno-style Fuzzy Inference and ANFIS...Tugas2 Buatlah aproksimasifuzzy darifungsiy = f(x) = -2x –x2 GunakanmetodeANFIS 0 30 45 60 VH 75 Fig. 4.12. Membership function of weight

Kategori Umur

Page 4: Sugeno-style Fuzzy Inference and ANFIS...Tugas2 Buatlah aproksimasifuzzy darifungsiy = f(x) = -2x –x2 GunakanmetodeANFIS 0 30 45 60 VH 75 Fig. 4.12. Membership function of weight

Latihan

Data

Fungsi

Page 5: Sugeno-style Fuzzy Inference and ANFIS...Tugas2 Buatlah aproksimasifuzzy darifungsiy = f(x) = -2x –x2 GunakanmetodeANFIS 0 30 45 60 VH 75 Fig. 4.12. Membership function of weight

Mamdani

Page 6: Sugeno-style Fuzzy Inference and ANFIS...Tugas2 Buatlah aproksimasifuzzy darifungsiy = f(x) = -2x –x2 GunakanmetodeANFIS 0 30 45 60 VH 75 Fig. 4.12. Membership function of weight

Mamdani

Page 7: Sugeno-style Fuzzy Inference and ANFIS...Tugas2 Buatlah aproksimasifuzzy darifungsiy = f(x) = -2x –x2 GunakanmetodeANFIS 0 30 45 60 VH 75 Fig. 4.12. Membership function of weight

Mamdani

Page 8: Sugeno-style Fuzzy Inference and ANFIS...Tugas2 Buatlah aproksimasifuzzy darifungsiy = f(x) = -2x –x2 GunakanmetodeANFIS 0 30 45 60 VH 75 Fig. 4.12. Membership function of weight

Mamdani

Page 9: Sugeno-style Fuzzy Inference and ANFIS...Tugas2 Buatlah aproksimasifuzzy darifungsiy = f(x) = -2x –x2 GunakanmetodeANFIS 0 30 45 60 VH 75 Fig. 4.12. Membership function of weight

Mamdani

Page 10: Sugeno-style Fuzzy Inference and ANFIS...Tugas2 Buatlah aproksimasifuzzy darifungsiy = f(x) = -2x –x2 GunakanmetodeANFIS 0 30 45 60 VH 75 Fig. 4.12. Membership function of weight

Sugeno

The result of Sugeno reasoning is an exact number.

Rules:If x is xi then y = yi

yi= discretization points of membership functionsm= number of rules

Page 11: Sugeno-style Fuzzy Inference and ANFIS...Tugas2 Buatlah aproksimasifuzzy darifungsiy = f(x) = -2x –x2 GunakanmetodeANFIS 0 30 45 60 VH 75 Fig. 4.12. Membership function of weight

Sugeno

Sugeno reasoning allows us to use also functions of input x, not only constants, on the right hand side. The rules would look like

If x is xi then y = fi(x)

For exampley = p1x + r1

Page 12: Sugeno-style Fuzzy Inference and ANFIS...Tugas2 Buatlah aproksimasifuzzy darifungsiy = f(x) = -2x –x2 GunakanmetodeANFIS 0 30 45 60 VH 75 Fig. 4.12. Membership function of weight

Sugeno

Page 13: Sugeno-style Fuzzy Inference and ANFIS...Tugas2 Buatlah aproksimasifuzzy darifungsiy = f(x) = -2x –x2 GunakanmetodeANFIS 0 30 45 60 VH 75 Fig. 4.12. Membership function of weight

Sugeno

Page 14: Sugeno-style Fuzzy Inference and ANFIS...Tugas2 Buatlah aproksimasifuzzy darifungsiy = f(x) = -2x –x2 GunakanmetodeANFIS 0 30 45 60 VH 75 Fig. 4.12. Membership function of weight

Sugeno

Page 15: Sugeno-style Fuzzy Inference and ANFIS...Tugas2 Buatlah aproksimasifuzzy darifungsiy = f(x) = -2x –x2 GunakanmetodeANFIS 0 30 45 60 VH 75 Fig. 4.12. Membership function of weight

Sugeno

Page 16: Sugeno-style Fuzzy Inference and ANFIS...Tugas2 Buatlah aproksimasifuzzy darifungsiy = f(x) = -2x –x2 GunakanmetodeANFIS 0 30 45 60 VH 75 Fig. 4.12. Membership function of weight

Sugeno

Page 17: Sugeno-style Fuzzy Inference and ANFIS...Tugas2 Buatlah aproksimasifuzzy darifungsiy = f(x) = -2x –x2 GunakanmetodeANFIS 0 30 45 60 VH 75 Fig. 4.12. Membership function of weight

ANFIS (Adaptive Neuro-Fuzzy Inference System)

Page 18: Sugeno-style Fuzzy Inference and ANFIS...Tugas2 Buatlah aproksimasifuzzy darifungsiy = f(x) = -2x –x2 GunakanmetodeANFIS 0 30 45 60 VH 75 Fig. 4.12. Membership function of weight

ANFIS (Adaptive Neuro-Fuzzy Inference System)

ANFIS (Adaptive Neuro-Fuzzy Inference System) –method is used as a teaching method for Sugeno-type fuzzy systems.

Make fuzzy approximation of function using ANFIS method

Page 19: Sugeno-style Fuzzy Inference and ANFIS...Tugas2 Buatlah aproksimasifuzzy darifungsiy = f(x) = -2x –x2 GunakanmetodeANFIS 0 30 45 60 VH 75 Fig. 4.12. Membership function of weight

ANFIS Method

Page 20: Sugeno-style Fuzzy Inference and ANFIS...Tugas2 Buatlah aproksimasifuzzy darifungsiy = f(x) = -2x –x2 GunakanmetodeANFIS 0 30 45 60 VH 75 Fig. 4.12. Membership function of weight

set the number and type of input membership functions:

FIS-matrix fismat is generated by command genfish1:

Page 21: Sugeno-style Fuzzy Inference and ANFIS...Tugas2 Buatlah aproksimasifuzzy darifungsiy = f(x) = -2x –x2 GunakanmetodeANFIS 0 30 45 60 VH 75 Fig. 4.12. Membership function of weight

ANFIS-training by 40 rounds

Check the training result:

Page 22: Sugeno-style Fuzzy Inference and ANFIS...Tugas2 Buatlah aproksimasifuzzy darifungsiy = f(x) = -2x –x2 GunakanmetodeANFIS 0 30 45 60 VH 75 Fig. 4.12. Membership function of weight

Draw the error curves:

Page 23: Sugeno-style Fuzzy Inference and ANFIS...Tugas2 Buatlah aproksimasifuzzy darifungsiy = f(x) = -2x –x2 GunakanmetodeANFIS 0 30 45 60 VH 75 Fig. 4.12. Membership function of weight
Page 24: Sugeno-style Fuzzy Inference and ANFIS...Tugas2 Buatlah aproksimasifuzzy darifungsiy = f(x) = -2x –x2 GunakanmetodeANFIS 0 30 45 60 VH 75 Fig. 4.12. Membership function of weight

Step size during the training:

Page 25: Sugeno-style Fuzzy Inference and ANFIS...Tugas2 Buatlah aproksimasifuzzy darifungsiy = f(x) = -2x –x2 GunakanmetodeANFIS 0 30 45 60 VH 75 Fig. 4.12. Membership function of weight

Membership functions after training:

Page 26: Sugeno-style Fuzzy Inference and ANFIS...Tugas2 Buatlah aproksimasifuzzy darifungsiy = f(x) = -2x –x2 GunakanmetodeANFIS 0 30 45 60 VH 75 Fig. 4.12. Membership function of weight

compare fuzzy system output to the training and checking data:

Page 27: Sugeno-style Fuzzy Inference and ANFIS...Tugas2 Buatlah aproksimasifuzzy darifungsiy = f(x) = -2x –x2 GunakanmetodeANFIS 0 30 45 60 VH 75 Fig. 4.12. Membership function of weight

Tugas 1

Buatlah aturan Fuzzy (Fuzzy Mamdani dan Fuzzy Sugeno) untuk menghitung fungsi y = x3 !

Page 28: Sugeno-style Fuzzy Inference and ANFIS...Tugas2 Buatlah aproksimasifuzzy darifungsiy = f(x) = -2x –x2 GunakanmetodeANFIS 0 30 45 60 VH 75 Fig. 4.12. Membership function of weight

Tugas 2

Buatlah aproksimasi fuzzy dari fungsi y = f(x) = -2x – x2

Gunakan metode ANFIS

Page 29: Sugeno-style Fuzzy Inference and ANFIS...Tugas2 Buatlah aproksimasifuzzy darifungsiy = f(x) = -2x –x2 GunakanmetodeANFIS 0 30 45 60 VH 75 Fig. 4.12. Membership function of weight