The aim of this project is to diagnose heart disease based on a fuzzy expert system
.
- Blood Pressure
- Blood Sugar
- Cholesterol
- Heart Rate
- ECG
- Old Peak
- Age
- The
fuzzy
sets of these values are available Here.
-
Chest Pain 1: Typical Angina, 2: Atypical Angina, 3: Non-Anginal Pain, 4: Asymptomatic
-
Sex 0: Male, 1: Female
-
Exercise 0: This person is not allowed to have sport activities. 1: This person is allowed to have sport activities
-
Thallium 3: Normal 6: Medium 7: High
This project includes four steps:
- Fuzzification: Based on Inputs and Fuzzy Sets
- Inference: Based on the Rules
- Defuzzification: Based on Diagram of Output Values and This Formula of the Center of the Mass (
CoG
):
$ pip install -r requirements.txt
$ python -m flask run
My report in Farsi is available Here.