Write 3-5 fuzzy rules that determine heart attack risk, using:
Three ‘universes of discourse’ (UoD): diet, exercise, and risk
2 or 3 fuzzy classes per UoD, and their membership functions (represent graphically)
Show fuzzy inference for one set of sample data
Diet is low AND Exercise is high → Balanced
Diet is high OR Exercise is low → Unbalanced
Balanced → Risk is low
Unbalanced → Risk is high
Diet is high:
Diet is low:
Exercise is high:
Exercise is low:
Balanced:
Unbalanced:
Risk is high:
Risk is low:
Diet: consume 3000 calories per day.
Exercise: burn 1000 calories per day.
What is the risk of heart disease?
Membership for Diet High:
Membership for Diet Low:
Membership for Exercise High:
Membership for Exercise Low:
Diet is low AND Exercise is high → Balanced
Membership for Balanced:
Diet is high OR Exercise is low → Unbalanced
Membership for Unbalanced:
Balanced → Risk is low
Membership for Risk Low:
Likelihood of heart disease cut off:
Membership function for Risk Low:
Unbalanced → Risk is high
Membership for Risk High:
Likelihood of heart disease cut off:
Membership function for Risk High:
The aggregated membership for Risk High and Risk Low:
The aggregated Risk function:
The Center of Gravity (COG) method is used for the defuzzification.
The integration of the aggregated Risk membership function returns a likelihood of 47.5% of heart disease.