Giter VIP home page Giter VIP logo

cardiac-risk-machine-learning-prediction's Introduction

Cardiac-Risk-Machine-Learning-App

Shiny App classifier predicting cardiac risk. Project completed during MSc Digital Health Karolinska Institutet https://healthdiggers.shinyapps.io/cdss_app/

Model Development

Following initial assessment of 12 classification models, the cross-validation decision tree pre-test attributes model was chosen as our model of interest. It had the best recall performance (83%), our metric of high importance, and the best F-measures (77%) of the 12 models. The iterative improvement phase then compared and contrasted four changes made to this model. Performance showed that a model with: Gini index impurity weighting, chest pain as a binomial attribute, a threshold value for trestbps, and removing chol and fbs attributes resulted in the best model. Therefore, it includes the attributes: age, sex, cp, trestbps and restecg.

Finally, this final model has satisfactory performance but poor applicability to new data. Testing was carried out using data from the same dataset, not new instances from the real-world. It would require further improvement with current diagnostic practices and new data before consideration for implementation.

In light of increasing quality of care and minimizing unnecessary costs of testing, we advise different action steps along with the predicted outcome. High-value care must consider the varying inherent disease likelihoods of our subgroups. Asymptomatic chest pain patients predicted with disease are recommended directly for cardiac catheterization. The inherently high prior probability risk (74%) and low gain (3%) in posterior probability warrants this action. Symptomatic chest pain patients predicted with disease are first recommended for CCTA since the posterior probability is significantly lower (46%). Symptomatic chest pain patients predicted without disease are recommended for exercise stress test with or without ECG.

Shiny App

The model is built using the Caret package for training the Decision Tree. The Rpart package is used for training the Decision Tree The training uses the rpart package that handles recursive partitioning. The prediction is done using the predict function from the stats package which accepts a wide array of models to be used in conjunction with a dataset of attributes to predict probabilities of a classification.

Data

UCI Heart Disease dataset available at the UCI Machine Learning data repository: http://archive.ics.uci.edu/ml/datasets/heart+Disease The original authors of the UCI databases. Hungarian Institute of Cardiology. Budapest: Andras Janosi, M.D. University Hospital, Zurich, Switzerland: William Steinbrunn, M.D. University Hospital, Basel, Switzerland: Matthias Pfisterer, M.D. V.A. Medical Center, Long Beach and Cleveland Clinic Foundation:Robert Detrano, M.D., Ph.D.

Contributors include: Per Nyberg, Loes Crielaard, Clàudia Figueras Julián, Erik Scalfaro

cardiac-risk-machine-learning-prediction's People

Contributors

escalfy avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.