Code Monkey home page Code Monkey logo

msusazureaccelerators / drug-therapy-risk-prediction-accelerator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 4.12 MB

The Drug Therapy Risk Prediction Accelerator is an end-to-end analytics platform that predicts the likelihood of a patient to experience a fatal adverse event (death) after receiving drug therapy. It was created for COVID-19 drugs but can be used for other prescription drugs.

Python 16.58% PowerShell 9.80% Jupyter Notebook 72.69% TSQL 0.79% C# 0.14%
ai aml azure databricks microsoft ml powerbi solution-accelerator synapse

drug-therapy-risk-prediction-accelerator's Introduction

MSUS Solution Accelerator

Drug Therapy Risk Prediction Accelerator

The Drug Therapy Risk Prediction Accelerator was created for COVID-19 drug therapy therefore you will see COVID-19 mentioned in this repository. This accelerator can be used for other drugs. It is an end-to-end analytics platform that predicts the likelihood of a patient to experience a fatal adverse event (death) after receiving drug therapy. The accelerator incorporates real-world data from the State Drug Utilization Database (SDUD) and the FDA Adverse Events Database (FAERS).

The accelerator uses the SDUD data to first build a retrospective analysis to identify drug prescription trends between the years 2018-2021, particularly during the onset of COVID-19 in 2019. Next, a prospective analysis looks at FDA adverse events associated with these drugs between 2019-2021. A machine learning (ML) model is built to predict the likelihood of a fatal adverse event, and identify the patient characteristics associated with this outcome.

The accelerator can be used in a provider organization covering multiple personas, ranging from backend engineers to frontend clinical users.

For technical users, a Data Engineer can quickly ingest SDUD and FAERS data through a low-code, no-code experience. A Data Architect can use a flexible, scalable analytics platform to query a data lake, anonymize sensitive patient information, and generate operational reports using familiar SQL language. The Data Analyst uses a visualization platform to plot trends observed in the data. Professional Data Scientists and Citizen Data Scientists have the ability to build and train machine learning models using traditional and/or automated ML methods, and register and deploy the model for real-time inferencing.

For clinical users, an informatics team at a hospital may be interested in building a customized clinical surveillance dashboard to observe nationwide trends for clinical adverse events. A patient may be interested in understanding their own risk for taking off-label drugs for symptomatic disease. A physician can input patient characteristics into the model to assess drug risk, with the goal of providing the right therapy to the right patient at the right time.

Architecture Overview

The architecture diagram below details what will be built with this accelerator.

Architecture Diagram

Prerequisites

To use this accelerator, you will need to have access to and/or provision the following applications:

  1. Access to an Azure Subscription
  2. Power Apps License (or free trial)
  3. PowerShell 7.1
  4. Azure CLI
  5. Databricks CLI

A working knowledge of Azure, Azure Data Factory, Azure Databricks, Azure Synapse Analytics, Azure Machine Learning, Azure Container Services, and PowerBI will also be helpful. To learn more about these services, please visit:

  1. Azure Data Factory
  2. Azure Databricks
  3. Azure Synapse Analytics
  4. Azure Machine Learning
  5. Azure Container Instances
  6. Power BI

Getting Started

  1. An ARM template deploys and configures all the resources required to run the accelerator. Click the Deploy to Azure button below:

    Deploy to Azure

    The only 2 required parameters during the set-up are:

    • Admin Password for the Synapse Dedicated SQL Pool being deployed.
    • Prefix ID to preface the resources with a unique name you can later reference.
  2. Clone or download this repository and navigate to the project's root directory.

    Option 1: In Windows Terminal, clone the GitHub repo:

    git clone https://github.com/slsu0424/COVID19-Drug-Therapies.git

    Option 2: Navigate towards the top right of this screen, and expand the Code button menu:

    GitHub_Button

  3. Go to the Deployment Guide under ./02-Deployment to complete the solution setup.

NOTE: Be sure to manually pause the SQL pool when you are not using it from the Synapse Workspace to reduce cost. Follow the steps below to pause the SQL pool:

  • Navigate to the Synapse workspace
  • Go to Manage > SQL pools > Pause the SQL pool

Folders

This folder contains an Executive Overview and Technical Design for the accelerator. In addition, a video provides a detailed walkthrough of the accelerator setup.

This folder contains the scripts used to deploy the required resources into your Azure Subscription. This can be done using the scripts or Azure Portal. The Deployment Guide is provided to help complete the rest of the accelerator setup.

This folder contains the JSON templates needed to complete the data engineering tasks outlined in the Deployment Guide. You will use the content in this folder following the instructions in the Deployment Guide.

This folder contains the Notebooks and SQL Scripts needed to complete the tasks to prepare the data for operational reporting and reports. You will use the content in this folder following the instructions in the Deployment Guide.

This folder contains the Notebooks needed to complete the tasks for building a machine learning model. You will use the content in this folder following the instructions in the Deployment Guide.

This folder contains the Web-based User Interface to be used by a end user.

License

Copyright (c) Microsoft Corporation

All rights reserved.

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

Acknowledgements

This project is developed as part of the Microsoft Healthcare & Life Sciences Customer Success Unit Data Science & AI Transformational Projects Initiative.

Author: Sandy Su

drug-therapy-risk-prediction-accelerator's People

Contributors

amyarr avatar slsu0424 avatar

Watchers

 avatar

Forkers

cloudnativehub

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.