25
Doctor AI: Predicting Clinical Events via Recurrent Neural Networks BMI Journal Club Supreeth 7 June 2017

Doctor AI: Predicting Clinical Events via Recurrent Neural ...nematilab.info/bmijc/assets/170607_slides.pdf · Supreeth 7 June 2017. Overview 1. Quick Summary of paper 2. EHR to physician

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Doctor AI: Predicting Clinical Events via Recurrent Neural ...nematilab.info/bmijc/assets/170607_slides.pdf · Supreeth 7 June 2017. Overview 1. Quick Summary of paper 2. EHR to physician

DoctorAI:PredictingClinicalEventsviaRecurrentNeuralNetworks

BMIJournalClubSupreeth7June2017

Page 2: Doctor AI: Predicting Clinical Events via Recurrent Neural ...nematilab.info/bmijc/assets/170607_slides.pdf · Supreeth 7 June 2017. Overview 1. Quick Summary of paper 2. EHR to physician

Overview

1. QuickSummaryofpaper2. EHRtophysiciandiagnoses3. Cohort4. Methods5. Results

Page 3: Doctor AI: Predicting Clinical Events via Recurrent Neural ...nematilab.info/bmijc/assets/170607_slides.pdf · Supreeth 7 June 2017. Overview 1. Quick Summary of paper 2. EHR to physician

Problem:MassiveamountsofElectronicHealthRecords(EHR)areavailabletoday,physicianshavelittletime/toolstoanalyzethem.PredictoutcomesbasedonlongitudinaltimestampedEHR

Novelty:UseRNNtopredictthediagnosisandmedicationcategoriesforasubsequentvisit.Multi-labelprediction

Results:ThetrainedRNNisabletoachieve79%Recall@30fordiagnosisprediction.ProvepotentialofRNNsintransferlearning

Page 4: Doctor AI: Predicting Clinical Events via Recurrent Neural ...nematilab.info/bmijc/assets/170607_slides.pdf · Supreeth 7 June 2017. Overview 1. Quick Summary of paper 2. EHR to physician

Overview

1. QuickSummaryofpaper2. EHRtophysiciandiagnoses3. Cohort4. Methods5. Results

Page 5: Doctor AI: Predicting Clinical Events via Recurrent Neural ...nematilab.info/bmijc/assets/170607_slides.pdf · Supreeth 7 June 2017. Overview 1. Quick Summary of paper 2. EHR to physician

ElectronicHealthRecords

….. contain patient’s medical history, medications,diagnoses, treatment plans, laboratory and test results,etc

EHR represent the longitudinal experience of bothpatients and doctors. And are being used with increasingfrequency to predict future events

Page 6: Doctor AI: Predicting Clinical Events via Recurrent Neural ...nematilab.info/bmijc/assets/170607_slides.pdf · Supreeth 7 June 2017. Overview 1. Quick Summary of paper 2. EHR to physician

DoctorAI

Is interested in whether historical EHR data can be used topredict future physician diagnoses and medication orders

As a secondary goal, it predicts the time to the patients’next visit

Leverages the power of RNNs for sequential modelling

Page 7: Doctor AI: Predicting Clinical Events via Recurrent Neural ...nematilab.info/bmijc/assets/170607_slides.pdf · Supreeth 7 June 2017. Overview 1. Quick Summary of paper 2. EHR to physician

Overview

1. QuickSummaryofpaper2. EHRtophysiciandiagnoses3. Cohort4. Methods5. Results

Page 8: Doctor AI: Predicting Clinical Events via Recurrent Neural ...nematilab.info/bmijc/assets/170607_slides.pdf · Supreeth 7 June 2017. Overview 1. Quick Summary of paper 2. EHR to physician

Populationandsourceofdata

The source population for the study were primary carepatients from Sutter Health Palo Alto Medical Foundation

Dataset was extracted from a density sampled case-control study for heart failure

Dataset consists of Enounter orders, medication orders,problem list records and procedureorders

Page 9: Doctor AI: Predicting Clinical Events via Recurrent Neural ...nematilab.info/bmijc/assets/170607_slides.pdf · Supreeth 7 June 2017. Overview 1. Quick Summary of paper 2. EHR to physician

Dataprocessing

ICD-9 codes were extracted from the records

Generic Product Identifier (GPI) medication codes and CPTprocedure codes were extracted

Excluded patients that made less than two visits

Page 10: Doctor AI: Predicting Clinical Events via Recurrent Neural ...nematilab.info/bmijc/assets/170607_slides.pdf · Supreeth 7 June 2017. Overview 1. Quick Summary of paper 2. EHR to physician

GroupingMedicalCodesMore than 11,000 Unique ICD-9 codes and 18,000 GPImedication codes in the dataset

Pumonary tuberculosis (ICD-9 code 011) has 70subcategories (ICD-9 code 011.01, … 011.96)

For diagnoses codes, 3-digit ICD-9 codes are used – 1183unique codes

For medication codes, GPI drug Class is used – 595 uniquegroups

Page 11: Doctor AI: Predicting Clinical Events via Recurrent Neural ...nematilab.info/bmijc/assets/170607_slides.pdf · Supreeth 7 June 2017. Overview 1. Quick Summary of paper 2. EHR to physician

Label Yi at each time step is a 1,778- dimensional vector (i.e. 1183+595)for the grouped diagnoses codes and medication codes

Page 12: Doctor AI: Predicting Clinical Events via Recurrent Neural ...nematilab.info/bmijc/assets/170607_slides.pdf · Supreeth 7 June 2017. Overview 1. Quick Summary of paper 2. EHR to physician

Overview

1. QuickSummaryofpaper2. EHRtophysiciandiagnoses3. Cohort4. Methods5. Results

Page 13: Doctor AI: Predicting Clinical Events via Recurrent Neural ...nematilab.info/bmijc/assets/170607_slides.pdf · Supreeth 7 June 2017. Overview 1. Quick Summary of paper 2. EHR to physician

Problemsetting

For each patient, the observations are (ti, xi) for i = 1,….n

Each pair represents an event, during which multiplemedical codes such as ICD-9 diagnosis codes, procedurecodes or medication codes are documented in the patientrecord

xi is a multi-hot label vector ∈ {0,1}p

Page 14: Doctor AI: Predicting Clinical Events via Recurrent Neural ...nematilab.info/bmijc/assets/170607_slides.pdf · Supreeth 7 June 2017. Overview 1. Quick Summary of paper 2. EHR to physician

GatedRecurrentUnitsPrelims.

Page 15: Doctor AI: Predicting Clinical Events via Recurrent Neural ...nematilab.info/bmijc/assets/170607_slides.pdf · Supreeth 7 June 2017. Overview 1. Quick Summary of paper 2. EHR to physician

NeuralNetworkArchitecture

Goal is to learn effective vector representation for thepatient status at each ti

Predict the diagnosis and medication categories in thenext visit Yi+1 and the time duration until the next visit di+1= ti+1 – ti

Softmax layer is used to predict the diagnosis and themedication codes, and a rectified linear unit to predict thetime duration until next week.

Page 16: Doctor AI: Predicting Clinical Events via Recurrent Neural ...nematilab.info/bmijc/assets/170607_slides.pdf · Supreeth 7 June 2017. Overview 1. Quick Summary of paper 2. EHR to physician

NeuralNetworkArchitectureSoftmax layer stacked on top of the GRU

Y’i+1 = softmax(WcodeThi + bcode)

Predicting the time duration until next visitdi+1 = max(Wtime

Thi + btime, 0)

Values of all W’s and U’s are initialized to orthonormalmatrices using singular value decomposition of matrices

Loss function

Page 17: Doctor AI: Predicting Clinical Events via Recurrent Neural ...nematilab.info/bmijc/assets/170607_slides.pdf · Supreeth 7 June 2017. Overview 1. Quick Summary of paper 2. EHR to physician

NeuralNetworkArchitecture

Page 18: Doctor AI: Predicting Clinical Events via Recurrent Neural ...nematilab.info/bmijc/assets/170607_slides.pdf · Supreeth 7 June 2017. Overview 1. Quick Summary of paper 2. EHR to physician

Overview

1. QuickSummaryofpaper2. EHRtophysiciandiagnoses3. Cohort4. Methods5. Results

Page 19: Doctor AI: Predicting Clinical Events via Recurrent Neural ...nematilab.info/bmijc/assets/170607_slides.pdf · Supreeth 7 June 2017. Overview 1. Quick Summary of paper 2. EHR to physician

Experimentsetup

85% of the patients as the training set and 15% as the testset

RNN models are trained for 20 epochs

Regularization: Drop-out and L2

Size of the hidden layer hi set to 2000

Page 20: Doctor AI: Predicting Clinical Events via Recurrent Neural ...nematilab.info/bmijc/assets/170607_slides.pdf · Supreeth 7 June 2017. Overview 1. Quick Summary of paper 2. EHR to physician

Experimentsetup

Four different variations of Doctor AI:• RNN-1: RNN with a single hidden layer initialized with arandom matrix for Wemb• RNN-2: RNN with two hidden layers initialized with arandom matrix for Wemb• RNN-1-IR: RNN with a single hidden layer initialized witha pre-trainedWemb• RNN-2-IR: RNN with two hidden layers initialized with apre-trained Wemb

Page 21: Doctor AI: Predicting Clinical Events via Recurrent Neural ...nematilab.info/bmijc/assets/170607_slides.pdf · Supreeth 7 June 2017. Overview 1. Quick Summary of paper 2. EHR to physician

PredictionPerformance

Results are reported in three settings• Predicting only diagnosis codes (Dx)• Predicting onlymedication codes (Rx)• PredictingDx codes, Rx codes, and time duration to next visit

Top-k recall:

Page 22: Doctor AI: Predicting Clinical Events via Recurrent Neural ...nematilab.info/bmijc/assets/170607_slides.pdf · Supreeth 7 June 2017. Overview 1. Quick Summary of paper 2. EHR to physician

PredictionPerformance

Page 23: Doctor AI: Predicting Clinical Events via Recurrent Neural ...nematilab.info/bmijc/assets/170607_slides.pdf · Supreeth 7 June 2017. Overview 1. Quick Summary of paper 2. EHR to physician

Understandingthebehaviorofthenetwork

Usedthebestperformingmodeltopredictthediagnosiscodesatvisitsatdifferenttimes

Page 24: Doctor AI: Predicting Clinical Events via Recurrent Neural ...nematilab.info/bmijc/assets/170607_slides.pdf · Supreeth 7 June 2017. Overview 1. Quick Summary of paper 2. EHR to physician

TransferLearning

Adifferentdatasetisused– MIMICII

2,695patientsavailable.And767uniquediagnosiscodes

Twoexperimentsareperformed:• TrainedmodelonlyontheMIMICIIdataset• InitializedthecoefficientsofmodelfrommodeltrainedonSutterdata

Page 25: Doctor AI: Predicting Clinical Events via Recurrent Neural ...nematilab.info/bmijc/assets/170607_slides.pdf · Supreeth 7 June 2017. Overview 1. Quick Summary of paper 2. EHR to physician

TransferLearning