Skip to content

tanya-jp/HeartDiseaseDiagnosis-FuzzySys

Repository files navigation

HeartDiseaseDiagnosis-FuzzySys

The aim of this project is to diagnose heart disease based on a fuzzy expert system.

Inputs

  1. Blood Pressure
  2. Blood Sugar
  3. Cholesterol
  4. Heart Rate
  5. ECG
  6. Old Peak
  7. Age
  • The fuzzy sets of these values are available Here.

Crisp Inputs

  1. Chest Pain 1: Typical Angina, 2: Atypical Angina, 3: Non-Anginal Pain, 4: Asymptomatic

  2. Sex 0: Male, 1: Female

  3. Exercise 0: This person is not allowed to have sport activities. 1: This person is allowed to have sport activities

  4. Thallium 3: Normal 6: Medium 7: High

Steps

This project includes four steps:

  1. Fuzzification: Based on Inputs and Fuzzy Sets
  2. Inference: Based on the Rules
  3. Defuzzification: Based on Diagram of Output Values and This Formula of the Center of the Mass (CoG):

$$x^*=(\sum_{i=1}^{n} μ_C^― (x_i).x_i)/(\sum_{i=1}^{n} μ_C^― (x_i))$$

  1. Final Result

How to Run

Install Requirements

$ pip install -r requirements.txt

Run

$ python -m flask run

An Example of Input and Result

image image

Report

My report in Farsi is available Here.

About

A Heart Disease Diagnosis System Using Fuzzy Expert System

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published