About Disease Predictor Application
This is a Disease Predictor application using InterSystems IntegratedML to Predict diseases (diabetes, etc.)
Installation using ZPM
- Execute this command from IRIS Terminal:
zpm "install predict-diseases"
- Access Disease Predictor UI: http://localhost:52773/disease-predictor/index.html
Installation using Docker Compose
- Clone/git pull the repo into any local directory
$ git clone https://github.com/yurimarx/predict-diseases.git
- Open a Docker terminal in this directory and run:
$ docker-compose build
- Run the IRIS container:
$ docker-compose up -d
-
Go to Execute Query into Management Portal to train the AI model: http://localhost:52773/csp/sys/exp/%25CSP.UI.Portal.SQL.Home.zen?$NAMESPACE=USER
-
Create the VIEWS used to train diabetes and kidney models:
CREATE VIEW DiabetesTrain AS SELECT Outcome, age, bloodpressure, bmi, diabetespedigree, glucose, insulin, pregnancies, skinthickness FROM dc_data_health.Diabetes
CREATE VIEW KidneyDiseaseTrain AS SELECT
age, al, ane, appet, ba, bgr, bp, bu, cad, classification, dm, hemo, htn, pc, pcc, pcv, pe, pot, rbc, rc, sc, sg, sod, su, wc
FROM dc_data_health.KidneyDisease
CREATE VIEW MaternalRiskTrain AS SELECT BS, BodyTemp, DiastolicBP, HeartRate, RiskLevel, SystolicBP, age FROM dc_data_health.MaternalHealthRisk
- Create the AI Models for diabetes and kidney using the views:
CREATE MODEL DiabetesModel PREDICTING (Outcome) FROM DiabetesTrain
CREATE MODEL KidneyDiseaseModel PREDICTING (classification) FROM KidneyDiseaseTrain
CREATE MODEL MaternalRiskModel PREDICTING (RiskLevel) FROM MaternalRiskTrain
- Train the models for diabetes and kidney diseases:
TRAIN MODEL DiabetesModel
TRAIN MODEL KidneyDiseaseModel
TRAIN MODEL MaternalRiskModel
- Go to http://localhost:52773/disease-predictor/index.html to use the Disease Predictor frontend and predict diseases like these screens:
Credits
This application used InterSystems IRIS IntegratedML project