Predict INR for patients on Coumadin

Fill in the form and click Predict. Or just click the "Demo" button
 
Three days ago:
Warfarin Dose:
INR:
One day ago:
Warfarin Dose:
INR:
Latest:
Warfarin Dose:
INR:





Predict Vancomycin troughs for patients on IV Vanc

Fill in the form and click Predict. Or just click the "Demo" button
 
Three days ago:
Total Daily Vancomycin Dose:
Vancomycin trough:
One day ago:
Total Daily Vancomycin Dose:
Vancomycin trough:
Latest:
Total Daily Vancomycin Dose:
Vancomycin trough:




Predict Tacrolimus levels in patients on Tacrolimus

Fill in the form and click Predict. Or just click the "Demo" button
 
Three days ago:
AM Tacrolimus Dose:
PM Tacrolimus Dose:
Tacrolimus Level
One day ago:
AM Tacrolimus Dose:
PM Tacrolimus Dose:
Tacrolimus Level
Latest:
AM Tacrolimus Dose:
PM Tacrolimus Dose:
Tacrolimus Level





Predict Voriconazole levels for patients on IV Voriconazole

Fill in the form and click Predict. Or just click the "Demo" button
 
Three days ago:
Total Daily Voriconazole Dose:
Voriconazole Level:
One day ago:
Total Daily Voriconazole Dose:
Voriconazole Level:
Latest:
Total Daily Voriconazole Dose:
Voriconazole Level:





Predict Tobramycin levels for patients on IV Tobramycin

Fill in the form and click Predict. Or just click the "Demo" button
 
Three days ago:
Total Daily Tobramycin Dose:
Tobramycin Level:
One day ago:
Total Daily Tobramycin Dose:
Tobramycin Level:
Latest:
Total Daily Tobramycin Dose:
Tobramycin Level:





Predict Methotrexate levels for patients on oral Methotrexate

Fill in the form and click Predict. Or just click the "Demo" button
 
Three days ago:
Total Daily Methotrexate Dose:
Methotrexate Level:
One day ago:
Total Daily Methotrexate Dose:
Methotrexate Level:
Latest:
Total Daily Methotrexate Dose:
Methotrexate Level:







Source Code

The code is open source, and released under the MIT License. The latest code is available on Github: https://github.com/dfdean/mlLib
  • MLEngine  
    This takes a job file and uses it to:
    • Create a neural network as specified by the job file
    • Run the neural network for both training and testing data
    • Record the results in the job object
    In a sense, this is the interpreter for the job object. It is the actual work of running a neural network.

  • MLJob  
    The is the runtime to read and write MLJob files, which are XML files used to configure a neural network as well as save and restore the state of a neural net. It is used for several applications:
    • Specify the training and testing of a neural net, and save the final matrices
    • Create a pre-trained neural net to make predictions
    • Pass network state between processes, either two processes on a single machine or else over a network from a controller machine to worker compute servers.


  • TDF Tools  
    This implements TDF - Timeline Data Format. TDF is an xml file format that is designed to store time-series of data for medical applications.

    To read a TDF file, we typically iterate at several levels:

       For each patient in the file
           For each data entry in the current patient
    

    Additionally, you can identify several data windows within a single patient chart. An example data window may be all events between admission and discharge for a single hospital visit. So, you would instead iterate over:

           For each patient in the partition
               For each event window in the patient
                   For each data entry in the current window
    
  • xmlTools  
    These are tools for manipulating an XML file, built on top of the minidom layer.

  • testUtils.py   testUtils.py  
    Some utility procedures for testing and debugging.



Change History:

  • Jan 1, 2021 - Predict multiple drug levels
    • Allow mljobs to specify criteria for which nodes will be considered
    • Client-side Javascript to unpack results and control the client GUI
    • Define the server response message format
    • Train networks for Warfarin, Vanc, Tac, Vori, Tobra, MTX
    • New code for generating TDF files

     
  • Oct 15, 2020 - Created the first end-to-end prototype
    • Parse MIMIC files and generate a TDF file
    • Build the runtime environment to create timelines from TDF files
    • Build the Job file format and runtime to save/restore neural net state
    • Train a neural net and save the trained matrices to MLJob file
    • Generate predictions based on new user inputs
    • Simple web server CGI, running on a VM on AWS