Heart-Disease-UCI

Heart Disease detection algorithm based upon the Kaggle Dataset on Heart Disease UCI.

Parameters

There are a total of 14 columns, the columns are described as followed:

Debmalya’s Work

I have tried the work in four different machine learning models, i.e.

Among them RandomForestClassifier & LogisticRegression showed good cross validation accuracy and the standard deviations also less as compare to other two, and after further research I choose RandomForestClassifier as my final model. The hyper-parameters I used in the final model is:

final_model = RandomForestClassifier(n_estimators=60, random_state=9, 
                                     criterion='gini', max_features='sqrt',
                                     max_samples=9)

Architechture Of Final Tree

The tree generated by the final model looks like:

Final Tree Generated By Random Forest Classifier

Ouput

Result

The model has given an accuracy of 88.52% over the test dataset that is randomly generated by 20% of the main datset.

theroyakash’s work

My model is based on neural network. Architecture of my model is the following:

Plain Text Model: "sequential_UCI" _________________________________________________________________ Layer (type) Output Shape Param # ================================================================= dense_77 (Dense) (None, 16) 224 _________________________________________________________________ dropout_41 (Dropout) (None, 16) 0 _________________________________________________________________ dense_78 (Dense) (None, 8) 136 _________________________________________________________________ dropout_42 (Dropout) (None, 8) 0 _________________________________________________________________ dense_79 (Dense) (None, 1) 9 ================================================================= Total params: 369 Trainable params: 369 Non-trainable params: 0 _________________________________________________________________

Hyper-parameters for the model

Accuracy

Accuracy with several different NN Accuracy with several different NN