SlideShare a Scribd company logo
1 of 43
Download to read offline
Lifesaving AI and JavaScript
Jaeman An <jaeman@aitrics.com>
JSConf Korea 2019
Introduction to Medical AI
How to build lifesaving AI solutions
Related JavaScript techniques
Various issues to dealing with AI
What you can get from this talk
01 Introduction to Medical AI
02 Building Medical AI Product
- 5 phases

- Various issues & solutions like

- Use AI Model Safely

- Build a reliable data pipeline

- Represent ML model output intuitively
03 Running ML model in the web browser
- TensorFlow.js
04 Where are we and what's next?
Introduction to Medical AI
What if your code save one's life?
+1% survival rate
Save 1 of 100
25 (U.S.)
+1% survival rate
Save 2500 of 250000 /1 year
Can software engineering and
artificial intelligence
save people's lives?
Problems we try to solve (VitalCare)
Early warning system for acute disease
Predict / alert for dangerous severe acute illness
Mortality, Sepsis, cardiac arrest, embolism,
acute kidney injury, ...
Acute disease that causes the most deaths and costs
8% / hour for delayed treatment
50% of hospital deaths are related to sepsis
250,000 deaths per year in the United States
$ 24 billion annual medical expenses in the U.S.
Sepsis ("Silent killer" in hospitals)
Building Medical AI Solution
Provides prediction scores 4~24 hours in advance
• Delayed treatment for sepsis increases mortality 8% every hour
Patient EMR Data collected AI Risk Prediction Solution
Vital sign
Lab Test

Lactate
Creatinine
…
Medical
Imaging

CT-Scan,
X-ray
...
Prescription
Clinical Note
To be
used
Currently 

in Use
Risk prediction
for Sepsis
AITRICS Engine
Bayesian Optimization
Bayesian Neural Network
Interpretation Module
5 phases of building Medical AI solution
How To Build Medical AI Solution
Deploying
Backend &
Data pipeline
Frontend
(Web & Mobile)
Real-world data analysis &
fitting the model
Data Refining &
Model Building
Data cleansing & preprocessing
Defining outcome
ex) What is death? Does it include "Do Not Rescue" patient?
ex) Predicting patients who died after 24 hours: What if patient died after 25
hours? is it wrong?
Finding the model that can predict the best from given data
Data Refining & Model Building
Deploying
Backend &
Data pipeline
Frontend
(Web & Mobile)
Real-world data analysis &
fitting the model
Data Refining &
Model Building
Make ML model as a microservice
Deploy on the web browsers with TensorFlow.js
Require model optimization & compression
Using AI Model Safely
How to evaluate model's output? is it trustful?
What if model returns incorrect results?
Deploying
Deploying
Backend &
Data pipeline
Frontend
(Web & Mobile)
Real-world data analysis &
fitting the model
Data Refining &
Model Building
Unintended predictions with unfamiliar data
Testing ML model for random input values
Property based testing
jsverify, fast-check, ...
Debugging with interpretable module
Withdraw prediction when wrong features have
significant contribution
Using AI Models Safely
Property based testing (fast-check)
import * as fc from 'fast-check';
import { predict } from '../src/predict';
const recordProperty = fc.record({
age: fc.number(), lab_BLOOD_CULTURE: fc.float(0.3, 1), ...
});
test('should sepsis risk high who already have sepsis', () => {
fc.assert(fc.property(fc.jsonObject(), recordProperty), record => {
const result = predict(record);
assert result.score >= 0.2;
assert result.contribution.lab_BLOOD_CULTUER >= 0.5;
}));
});
Combine deployed model with real-world data
Calculate predictions from incoming data in real time
Build a reliable data pipeline with Node.js
Monitoring data flow
Checking accuracy / consistency periodically
Backend & Data pipeline
Deploying
Backend &
Data pipeline
Frontend
(Web & Mobile)
Real-world data analysis &
fitting the model
Data Refining &
Model Building
Building a reliable data pipeline
Pycon KR 2019: Django Query Optimization for realtime medical artificial intelligence data preprocessing
환자 정보
(시계열 데이터)
n시간 뒤 환자가

급성 질환에 걸릴 확률 예측
Dashboard
*
6
급성 질환
예측 솔루션
병원
ML model
실시간 정보 동기화가 중요하다!
Update
Update
회사에서 개발 중인 Django를 이용한 서비스
! 환자A 위급!!
Building a reliable data pipeline
Synchronizer
(Python / Golang)
Prediction

(Python)
Medical Score
(Python)
Alert
(Python)
Data Listeners & Generators
Databases
MySQL Redis
Databases
AI Model
Fitting / re-training
Backup Scheduler
(Node.js)
Trainer Scheduler
(Node.js)
Schedulers
Monitors
Grafana dashboard healthchecks.io
Monitor
(Node.js)
Controllers
Etomer
(Node.js)
Etomer Web
Etomer Slack
Hospital
Pub/Sub (Redis Streams)
Building a reliable data pipeline
Synchronizer
(Python / Golang)
Prediction

(Python)
Medical Score
(Python)
Alert
(Python)
Data Listeners & Generators
Databases
MySQL Redis
Databases
AI Model
Fitting / re-training
Backup Scheduler
(Node.js)
Trainer Scheduler
(Node.js)
Schedulers
Monitors
Grafana dashboard healthchecks.io
Monitor
(Node.js)
Controllers
Etomer
(Node.js)
Etomer Web
Etomer Slack
Hospital
Pub/Sub (Redis Streams)
Monitor & controller
Monitor
Consume from Redis Streams

Send metrics to Grafana with StatsD

Easy to build with Node.js (event listener)

setInterval

Healthcheck

Check service metrics

Send summary to Slack
Controller
Check & Ops with Slack API

Server update
Frontend (Web & Mobile)
Deploying
Backend &
Data pipeline
Frontend
(Web & Mobile)
Real-world data analysis &
fitting the model
Data Refining &
Model BuildingOne of the most important process when making AI model into a product
Use of various visualization libraries & insightful pictures
How to interpret & visualize model output?
How ML model works
What medical staff wants to see
Intuitive representation of ML model output
Patient Data 0.015
Statistical analysis & Contribution analysis
- Prediction score vs
Mortality rate

Disclaimer: these are from the ECharts examples, not the real graph
- Correlation between
outcomes & features

Feature contributions -
Symptoms & diseases -
Visualizing model output & interpretation
AI models must be fitted in the real world
Data distribution changes
People behave changes
Ex) If VitalCare predict sepsis and send alert 4 hours before, medical
staff respond to it, then the pattern of sepsis would change
How the AI model keeps learning from real world data?
Real-world data analysis & Fitting the model
Deploying
Backend &
Data pipeline
Frontend
(Web & Mobile)
Real-world data analysis &
fitting the model
Data Refining &
Model Building
Building a reliable data pipeline
Synchronizer
(Python / Golang)
Prediction

(Python)
Medical Score
(Python)
Alert
(Python)
Data Listeners & Generators
Databases
MySQL Redis
Databases
AI Model
Fitting / re-training
Backup Scheduler
(Node.js)
Trainer Scheduler
(Node.js)
Schedulers
Monitors
Grafana dashboard healthchecks.io
Monitor
(Node.js)
Controllers
Etomer
(Node.js)
Etomer Web
Etomer Slack
Hospital
Pub/Sub (Redis Streams)
Building a reliable data pipeline
Synchronizer
(Python / Golang)
Prediction

(Python)
Medical Score
(Python)
Alert
(Python)
Data Listeners & Generators
Databases
MySQL Redis
Databases
AI Model
Fitting / re-training
Backup Scheduler
(Node.js)
Trainer Scheduler
(Node.js)
Schedulers
Monitors
Grafana dashboard healthchecks.io
Monitor
(Node.js)
Controllers
Etomer
(Node.js)
Etomer Web
Etomer Slack
Hospital
Pub/Sub (Redis Streams)
Re-training model periodically
Validation with
Current/Past data
External data
(Next) Continuous learning
Trainer for Auto ML
Data
Original Data 9/1 9/2 . . .
External Data
Hospital A Hospital B
Model
Version 1
(8/30)
Version 2
(9/1)
Version 3
(9/2)
AUC: 0.87
Ext AUC: 0.79
AUC: 0.78
Ext AUC: 0.77
AUC: 0.97
Ext AUC: 0.80
. . .
Library for machine learning in JavaScript
You can ...
use pre-trained models
convert existing Python models
train in the browser and Node.js
Running ML models in the web browser
import * as tf from '@tensorflow/tfjs';
function createAndCompileModel(type,
inputLength, hiddenSize, learningRate) {
// Encoder
const model = tf.sequential({
layers: [
tf.layers.dense({ units: hiddenSize,
activation: 'relu', name: 'EncoderFC1',
inputShape: [inputLength, 1] }),
tf.layers.dense({ units: hiddenSize,
activation: 'relu', name: 'EncoderFC2' }),
]
});
...
}
Interactive real-time prediction
Reduce server load
Visualize ML model
(-) Not all support TensorFlow API
(-) Poor community
Why Running ML Model in the web browser?
Model 3D Visualization (TensorSpace.js)
Where are we and what's next?
VitalCare is piloting at n hospitals in Korea
Significant performance improvement compared to existing
Expect to prove effects on improving survival rate
Many good feedbacks: can save lives by detecting
dangerous patients early, reduce my work, ...
Current status of VitalCare
Next things to do?
Prove that the AI solution can save one's life
through the long-term experiment
Save lives as many as possible
Expansion for predictive disease
Prescription recommendations
Running / training ML model on Web/Mobile
ML pipelines for accelerating research
ML Training Platform - kono

(GTC Silicon Valley 2019: How To Build ML Pipelines From The Startup Perspective)
ML on the other areas ...
Technical things to do
Thank you!
Jaeman An <jaeman@aitrics.com>
ML Ops/Engineering plays a key role in solving problems with AI
Artificial Intelligence as a Software Engineer
Research Engineering
Building AI algorithm that solves problem A Building AI solution that solves problem A
How do you get best accuracy in the certain situation?
Which model should you use to interpret the results of
the AI model?
...
How do you make an AI model a service?
How do you interpret / visualize the results from the
model?
What if the model gives wrong results?
How do you make your AI models continually trained?
What architecture should I construct to train AI models
efficiently?
...

More Related Content

What's hot

Data Science For Beginners | Who Is A Data Scientist? | Data Science Tutorial...
Data Science For Beginners | Who Is A Data Scientist? | Data Science Tutorial...Data Science For Beginners | Who Is A Data Scientist? | Data Science Tutorial...
Data Science For Beginners | Who Is A Data Scientist? | Data Science Tutorial...Edureka!
 
Data Scientist Job, Career & Salary | Data Scientist Salary | Data Science Ma...
Data Scientist Job, Career & Salary | Data Scientist Salary | Data Science Ma...Data Scientist Job, Career & Salary | Data Scientist Salary | Data Science Ma...
Data Scientist Job, Career & Salary | Data Scientist Salary | Data Science Ma...Edureka!
 
What Is Data Science? Data Science Course - Data Science Tutorial For Beginne...
What Is Data Science? Data Science Course - Data Science Tutorial For Beginne...What Is Data Science? Data Science Course - Data Science Tutorial For Beginne...
What Is Data Science? Data Science Course - Data Science Tutorial For Beginne...Edureka!
 
Who is a Data Scientist? | How to become a Data Scientist? | Data Science Cou...
Who is a Data Scientist? | How to become a Data Scientist? | Data Science Cou...Who is a Data Scientist? | How to become a Data Scientist? | Data Science Cou...
Who is a Data Scientist? | How to become a Data Scientist? | Data Science Cou...Edureka!
 
"Challenges for AI in Healthcare" - Peter Graven Ph.D
"Challenges for AI in Healthcare" - Peter Graven Ph.D"Challenges for AI in Healthcare" - Peter Graven Ph.D
"Challenges for AI in Healthcare" - Peter Graven Ph.DGrid Dynamics
 
Ai idea to implementation : Use cases in Healthcare
Ai idea to implementation : Use cases in Healthcare Ai idea to implementation : Use cases in Healthcare
Ai idea to implementation : Use cases in Healthcare Swathi Young
 
Bio IT World 2019 - AI For Healthcare - Simon Taylor, Lucidworks
Bio IT World 2019 - AI For Healthcare - Simon Taylor, LucidworksBio IT World 2019 - AI For Healthcare - Simon Taylor, Lucidworks
Bio IT World 2019 - AI For Healthcare - Simon Taylor, LucidworksLucidworks
 
Data Science Tutorial | What is Data Science? | Data Science For Beginners | ...
Data Science Tutorial | What is Data Science? | Data Science For Beginners | ...Data Science Tutorial | What is Data Science? | Data Science For Beginners | ...
Data Science Tutorial | What is Data Science? | Data Science For Beginners | ...Edureka!
 
AI in Healthcare: From Hype to Impact (updated)
AI in Healthcare: From Hype to Impact (updated)AI in Healthcare: From Hype to Impact (updated)
AI in Healthcare: From Hype to Impact (updated)Mei Chen, PhD
 
Data Science Training | Data Science Tutorial for Beginners | Data Science wi...
Data Science Training | Data Science Tutorial for Beginners | Data Science wi...Data Science Training | Data Science Tutorial for Beginners | Data Science wi...
Data Science Training | Data Science Tutorial for Beginners | Data Science wi...Edureka!
 
Disruptors in the Medical Imaging Industry
Disruptors in the Medical Imaging IndustryDisruptors in the Medical Imaging Industry
Disruptors in the Medical Imaging IndustryBill Kelly
 
A Practical-ish Introduction to Data Science
A Practical-ish Introduction to Data ScienceA Practical-ish Introduction to Data Science
A Practical-ish Introduction to Data ScienceMark West
 
How AI is Changing Medical Imaging in the Healthcare Industry
How AI is Changing Medical Imaging in the Healthcare Industry How AI is Changing Medical Imaging in the Healthcare Industry
How AI is Changing Medical Imaging in the Healthcare Industry Skyl.ai
 
Detecting COVID-19 Cases with Deep Learning
Detecting COVID-19 Cases with Deep LearningDetecting COVID-19 Cases with Deep Learning
Detecting COVID-19 Cases with Deep LearningSigOpt
 
How to Become a Data Scientist | Data Scientist Skills | Data Science Trainin...
How to Become a Data Scientist | Data Scientist Skills | Data Science Trainin...How to Become a Data Scientist | Data Scientist Skills | Data Science Trainin...
How to Become a Data Scientist | Data Scientist Skills | Data Science Trainin...Edureka!
 
Ai and Robotics in Healthcare
Ai and Robotics in HealthcareAi and Robotics in Healthcare
Ai and Robotics in HealthcareSubhendu Dey
 
Artificial Intelligence in the Hospital Setting
Artificial Intelligence in the Hospital SettingArtificial Intelligence in the Hospital Setting
Artificial Intelligence in the Hospital SettingDaniel Faggella
 

What's hot (20)

Data Science For Beginners | Who Is A Data Scientist? | Data Science Tutorial...
Data Science For Beginners | Who Is A Data Scientist? | Data Science Tutorial...Data Science For Beginners | Who Is A Data Scientist? | Data Science Tutorial...
Data Science For Beginners | Who Is A Data Scientist? | Data Science Tutorial...
 
Data Scientist Job, Career & Salary | Data Scientist Salary | Data Science Ma...
Data Scientist Job, Career & Salary | Data Scientist Salary | Data Science Ma...Data Scientist Job, Career & Salary | Data Scientist Salary | Data Science Ma...
Data Scientist Job, Career & Salary | Data Scientist Salary | Data Science Ma...
 
What Is Data Science? Data Science Course - Data Science Tutorial For Beginne...
What Is Data Science? Data Science Course - Data Science Tutorial For Beginne...What Is Data Science? Data Science Course - Data Science Tutorial For Beginne...
What Is Data Science? Data Science Course - Data Science Tutorial For Beginne...
 
Who is a Data Scientist? | How to become a Data Scientist? | Data Science Cou...
Who is a Data Scientist? | How to become a Data Scientist? | Data Science Cou...Who is a Data Scientist? | How to become a Data Scientist? | Data Science Cou...
Who is a Data Scientist? | How to become a Data Scientist? | Data Science Cou...
 
Ai applied in healthcare
Ai applied in healthcareAi applied in healthcare
Ai applied in healthcare
 
"Challenges for AI in Healthcare" - Peter Graven Ph.D
"Challenges for AI in Healthcare" - Peter Graven Ph.D"Challenges for AI in Healthcare" - Peter Graven Ph.D
"Challenges for AI in Healthcare" - Peter Graven Ph.D
 
Ai idea to implementation : Use cases in Healthcare
Ai idea to implementation : Use cases in Healthcare Ai idea to implementation : Use cases in Healthcare
Ai idea to implementation : Use cases in Healthcare
 
AI in healthcare
AI in healthcareAI in healthcare
AI in healthcare
 
Bio IT World 2019 - AI For Healthcare - Simon Taylor, Lucidworks
Bio IT World 2019 - AI For Healthcare - Simon Taylor, LucidworksBio IT World 2019 - AI For Healthcare - Simon Taylor, Lucidworks
Bio IT World 2019 - AI For Healthcare - Simon Taylor, Lucidworks
 
AI in healthcare - Use Cases
AI in healthcare - Use Cases AI in healthcare - Use Cases
AI in healthcare - Use Cases
 
Data Science Tutorial | What is Data Science? | Data Science For Beginners | ...
Data Science Tutorial | What is Data Science? | Data Science For Beginners | ...Data Science Tutorial | What is Data Science? | Data Science For Beginners | ...
Data Science Tutorial | What is Data Science? | Data Science For Beginners | ...
 
AI in Healthcare: From Hype to Impact (updated)
AI in Healthcare: From Hype to Impact (updated)AI in Healthcare: From Hype to Impact (updated)
AI in Healthcare: From Hype to Impact (updated)
 
Data Science Training | Data Science Tutorial for Beginners | Data Science wi...
Data Science Training | Data Science Tutorial for Beginners | Data Science wi...Data Science Training | Data Science Tutorial for Beginners | Data Science wi...
Data Science Training | Data Science Tutorial for Beginners | Data Science wi...
 
Disruptors in the Medical Imaging Industry
Disruptors in the Medical Imaging IndustryDisruptors in the Medical Imaging Industry
Disruptors in the Medical Imaging Industry
 
A Practical-ish Introduction to Data Science
A Practical-ish Introduction to Data ScienceA Practical-ish Introduction to Data Science
A Practical-ish Introduction to Data Science
 
How AI is Changing Medical Imaging in the Healthcare Industry
How AI is Changing Medical Imaging in the Healthcare Industry How AI is Changing Medical Imaging in the Healthcare Industry
How AI is Changing Medical Imaging in the Healthcare Industry
 
Detecting COVID-19 Cases with Deep Learning
Detecting COVID-19 Cases with Deep LearningDetecting COVID-19 Cases with Deep Learning
Detecting COVID-19 Cases with Deep Learning
 
How to Become a Data Scientist | Data Scientist Skills | Data Science Trainin...
How to Become a Data Scientist | Data Scientist Skills | Data Science Trainin...How to Become a Data Scientist | Data Scientist Skills | Data Science Trainin...
How to Become a Data Scientist | Data Scientist Skills | Data Science Trainin...
 
Ai and Robotics in Healthcare
Ai and Robotics in HealthcareAi and Robotics in Healthcare
Ai and Robotics in Healthcare
 
Artificial Intelligence in the Hospital Setting
Artificial Intelligence in the Hospital SettingArtificial Intelligence in the Hospital Setting
Artificial Intelligence in the Hospital Setting
 

Similar to Lifesaving AI and JS techniques

Shiva Amiri, Chief Product Officer, RTDS Inc. at MLconf SEA - 5/01/15
Shiva Amiri, Chief Product Officer, RTDS Inc. at MLconf SEA - 5/01/15Shiva Amiri, Chief Product Officer, RTDS Inc. at MLconf SEA - 5/01/15
Shiva Amiri, Chief Product Officer, RTDS Inc. at MLconf SEA - 5/01/15MLconf
 
Accure ai healthcare offering v4
Accure ai healthcare offering v4Accure ai healthcare offering v4
Accure ai healthcare offering v4Accureinc
 
MLOps - Build pipelines with Tensor Flow Extended & Kubeflow
MLOps - Build pipelines with Tensor Flow Extended & KubeflowMLOps - Build pipelines with Tensor Flow Extended & Kubeflow
MLOps - Build pipelines with Tensor Flow Extended & KubeflowJan Kirenz
 
Gaurav Malik Resume 29 Jan 2016
Gaurav Malik Resume 29 Jan 2016Gaurav Malik Resume 29 Jan 2016
Gaurav Malik Resume 29 Jan 2016Gaurav Malik
 
Explainable Artificial Intelligence (XAI) 
to Predict and Explain Future Soft...
Explainable Artificial Intelligence (XAI) 
to Predict and Explain Future Soft...Explainable Artificial Intelligence (XAI) 
to Predict and Explain Future Soft...
Explainable Artificial Intelligence (XAI) 
to Predict and Explain Future Soft...Chakkrit (Kla) Tantithamthavorn
 
Machine Learning with Apache Kafka in Pharma and Life Sciences
Machine Learning with Apache Kafka in Pharma and Life SciencesMachine Learning with Apache Kafka in Pharma and Life Sciences
Machine Learning with Apache Kafka in Pharma and Life SciencesKai Wähner
 
Predicting Medical Test Results using Driverless AI
Predicting Medical Test Results using Driverless AIPredicting Medical Test Results using Driverless AI
Predicting Medical Test Results using Driverless AISri Ambati
 
apidays LIVE New York 2021 - Solving API security through holistic obervabili...
apidays LIVE New York 2021 - Solving API security through holistic obervabili...apidays LIVE New York 2021 - Solving API security through holistic obervabili...
apidays LIVE New York 2021 - Solving API security through holistic obervabili...apidays
 
AI and AutoML: Debunking Myths
AI and AutoML: Debunking MythsAI and AutoML: Debunking Myths
AI and AutoML: Debunking MythsSri Ambati
 
Data Science in Manufacturing and Automation
Data Science in Manufacturing and AutomationData Science in Manufacturing and Automation
Data Science in Manufacturing and AutomationRavishankar Rajagopalan
 
Bridging Health Care and Clinical Trial Data through Technology
Bridging Health Care and Clinical Trial Data through TechnologyBridging Health Care and Clinical Trial Data through Technology
Bridging Health Care and Clinical Trial Data through TechnologySaama
 
[DevDay2019] How AI is changing the future of Software Testing? - By Vui Nguy...
[DevDay2019] How AI is changing the future of Software Testing? - By Vui Nguy...[DevDay2019] How AI is changing the future of Software Testing? - By Vui Nguy...
[DevDay2019] How AI is changing the future of Software Testing? - By Vui Nguy...DevDay.org
 
Accelerating Real-Time Analytics Insights Through Hadoop Open Source Ecosystem
Accelerating Real-Time Analytics Insights Through Hadoop Open Source EcosystemAccelerating Real-Time Analytics Insights Through Hadoop Open Source Ecosystem
Accelerating Real-Time Analytics Insights Through Hadoop Open Source EcosystemDataWorks Summit
 
Tag.bio aws public jun 08 2021
Tag.bio aws public jun 08 2021 Tag.bio aws public jun 08 2021
Tag.bio aws public jun 08 2021 Sanjay Padhi, Ph.D
 
Choosing the Right Document Processing Solution for Healthcare Organizations
Choosing the Right Document Processing Solution for Healthcare OrganizationsChoosing the Right Document Processing Solution for Healthcare Organizations
Choosing the Right Document Processing Solution for Healthcare OrganizationsProvectus
 
AI/ML Webinar - Improve Public Health
AI/ML Webinar - Improve Public HealthAI/ML Webinar - Improve Public Health
AI/ML Webinar - Improve Public HealthAmazon Web Services
 
Quant university MRM and machine learning
Quant university MRM and machine learningQuant university MRM and machine learning
Quant university MRM and machine learningQuantUniversity
 
Towards the Industrialization of AI
Towards the Industrialization of AITowards the Industrialization of AI
Towards the Industrialization of AIHui Lei
 
Dell NVIDIA AI Powered Transformation in Healthcare and Life Sciences Webinar
Dell NVIDIA AI Powered Transformation in Healthcare and Life Sciences WebinarDell NVIDIA AI Powered Transformation in Healthcare and Life Sciences Webinar
Dell NVIDIA AI Powered Transformation in Healthcare and Life Sciences WebinarBill Wong
 

Similar to Lifesaving AI and JS techniques (20)

Shiva Amiri, Chief Product Officer, RTDS Inc. at MLconf SEA - 5/01/15
Shiva Amiri, Chief Product Officer, RTDS Inc. at MLconf SEA - 5/01/15Shiva Amiri, Chief Product Officer, RTDS Inc. at MLconf SEA - 5/01/15
Shiva Amiri, Chief Product Officer, RTDS Inc. at MLconf SEA - 5/01/15
 
Accure ai healthcare offering v4
Accure ai healthcare offering v4Accure ai healthcare offering v4
Accure ai healthcare offering v4
 
MLOps - Build pipelines with Tensor Flow Extended & Kubeflow
MLOps - Build pipelines with Tensor Flow Extended & KubeflowMLOps - Build pipelines with Tensor Flow Extended & Kubeflow
MLOps - Build pipelines with Tensor Flow Extended & Kubeflow
 
Gaurav Malik Resume 29 Jan 2016
Gaurav Malik Resume 29 Jan 2016Gaurav Malik Resume 29 Jan 2016
Gaurav Malik Resume 29 Jan 2016
 
Explainable Artificial Intelligence (XAI) 
to Predict and Explain Future Soft...
Explainable Artificial Intelligence (XAI) 
to Predict and Explain Future Soft...Explainable Artificial Intelligence (XAI) 
to Predict and Explain Future Soft...
Explainable Artificial Intelligence (XAI) 
to Predict and Explain Future Soft...
 
Machine Learning with Apache Kafka in Pharma and Life Sciences
Machine Learning with Apache Kafka in Pharma and Life SciencesMachine Learning with Apache Kafka in Pharma and Life Sciences
Machine Learning with Apache Kafka in Pharma and Life Sciences
 
Predicting Medical Test Results using Driverless AI
Predicting Medical Test Results using Driverless AIPredicting Medical Test Results using Driverless AI
Predicting Medical Test Results using Driverless AI
 
apidays LIVE New York 2021 - Solving API security through holistic obervabili...
apidays LIVE New York 2021 - Solving API security through holistic obervabili...apidays LIVE New York 2021 - Solving API security through holistic obervabili...
apidays LIVE New York 2021 - Solving API security through holistic obervabili...
 
demo AI ML.pptx
demo AI ML.pptxdemo AI ML.pptx
demo AI ML.pptx
 
AI and AutoML: Debunking Myths
AI and AutoML: Debunking MythsAI and AutoML: Debunking Myths
AI and AutoML: Debunking Myths
 
Data Science in Manufacturing and Automation
Data Science in Manufacturing and AutomationData Science in Manufacturing and Automation
Data Science in Manufacturing and Automation
 
Bridging Health Care and Clinical Trial Data through Technology
Bridging Health Care and Clinical Trial Data through TechnologyBridging Health Care and Clinical Trial Data through Technology
Bridging Health Care and Clinical Trial Data through Technology
 
[DevDay2019] How AI is changing the future of Software Testing? - By Vui Nguy...
[DevDay2019] How AI is changing the future of Software Testing? - By Vui Nguy...[DevDay2019] How AI is changing the future of Software Testing? - By Vui Nguy...
[DevDay2019] How AI is changing the future of Software Testing? - By Vui Nguy...
 
Accelerating Real-Time Analytics Insights Through Hadoop Open Source Ecosystem
Accelerating Real-Time Analytics Insights Through Hadoop Open Source EcosystemAccelerating Real-Time Analytics Insights Through Hadoop Open Source Ecosystem
Accelerating Real-Time Analytics Insights Through Hadoop Open Source Ecosystem
 
Tag.bio aws public jun 08 2021
Tag.bio aws public jun 08 2021 Tag.bio aws public jun 08 2021
Tag.bio aws public jun 08 2021
 
Choosing the Right Document Processing Solution for Healthcare Organizations
Choosing the Right Document Processing Solution for Healthcare OrganizationsChoosing the Right Document Processing Solution for Healthcare Organizations
Choosing the Right Document Processing Solution for Healthcare Organizations
 
AI/ML Webinar - Improve Public Health
AI/ML Webinar - Improve Public HealthAI/ML Webinar - Improve Public Health
AI/ML Webinar - Improve Public Health
 
Quant university MRM and machine learning
Quant university MRM and machine learningQuant university MRM and machine learning
Quant university MRM and machine learning
 
Towards the Industrialization of AI
Towards the Industrialization of AITowards the Industrialization of AI
Towards the Industrialization of AI
 
Dell NVIDIA AI Powered Transformation in Healthcare and Life Sciences Webinar
Dell NVIDIA AI Powered Transformation in Healthcare and Life Sciences WebinarDell NVIDIA AI Powered Transformation in Healthcare and Life Sciences Webinar
Dell NVIDIA AI Powered Transformation in Healthcare and Life Sciences Webinar
 

Recently uploaded

Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 

Recently uploaded (20)

Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 

Lifesaving AI and JS techniques

  • 1. Lifesaving AI and JavaScript Jaeman An <jaeman@aitrics.com> JSConf Korea 2019
  • 2. Introduction to Medical AI How to build lifesaving AI solutions Related JavaScript techniques Various issues to dealing with AI What you can get from this talk
  • 3. 01 Introduction to Medical AI 02 Building Medical AI Product - 5 phases
 - Various issues & solutions like
 - Use AI Model Safely
 - Build a reliable data pipeline
 - Represent ML model output intuitively 03 Running ML model in the web browser - TensorFlow.js 04 Where are we and what's next?
  • 5. What if your code save one's life?
  • 8. +1% survival rate Save 2500 of 250000 /1 year
  • 9. Can software engineering and artificial intelligence save people's lives?
  • 10. Problems we try to solve (VitalCare) Early warning system for acute disease Predict / alert for dangerous severe acute illness Mortality, Sepsis, cardiac arrest, embolism, acute kidney injury, ...
  • 11. Acute disease that causes the most deaths and costs 8% / hour for delayed treatment 50% of hospital deaths are related to sepsis 250,000 deaths per year in the United States $ 24 billion annual medical expenses in the U.S. Sepsis ("Silent killer" in hospitals)
  • 13. Provides prediction scores 4~24 hours in advance • Delayed treatment for sepsis increases mortality 8% every hour Patient EMR Data collected AI Risk Prediction Solution Vital sign Lab Test
 Lactate Creatinine … Medical Imaging
 CT-Scan, X-ray ... Prescription Clinical Note To be used Currently 
 in Use Risk prediction for Sepsis AITRICS Engine Bayesian Optimization Bayesian Neural Network Interpretation Module
  • 14.
  • 15. 5 phases of building Medical AI solution How To Build Medical AI Solution Deploying Backend & Data pipeline Frontend (Web & Mobile) Real-world data analysis & fitting the model Data Refining & Model Building
  • 16. Data cleansing & preprocessing Defining outcome ex) What is death? Does it include "Do Not Rescue" patient? ex) Predicting patients who died after 24 hours: What if patient died after 25 hours? is it wrong? Finding the model that can predict the best from given data Data Refining & Model Building Deploying Backend & Data pipeline Frontend (Web & Mobile) Real-world data analysis & fitting the model Data Refining & Model Building
  • 17. Make ML model as a microservice Deploy on the web browsers with TensorFlow.js Require model optimization & compression Using AI Model Safely How to evaluate model's output? is it trustful? What if model returns incorrect results? Deploying Deploying Backend & Data pipeline Frontend (Web & Mobile) Real-world data analysis & fitting the model Data Refining & Model Building
  • 18. Unintended predictions with unfamiliar data Testing ML model for random input values Property based testing jsverify, fast-check, ... Debugging with interpretable module Withdraw prediction when wrong features have significant contribution Using AI Models Safely
  • 19. Property based testing (fast-check) import * as fc from 'fast-check'; import { predict } from '../src/predict'; const recordProperty = fc.record({ age: fc.number(), lab_BLOOD_CULTURE: fc.float(0.3, 1), ... }); test('should sepsis risk high who already have sepsis', () => { fc.assert(fc.property(fc.jsonObject(), recordProperty), record => { const result = predict(record); assert result.score >= 0.2; assert result.contribution.lab_BLOOD_CULTUER >= 0.5; })); });
  • 20. Combine deployed model with real-world data Calculate predictions from incoming data in real time Build a reliable data pipeline with Node.js Monitoring data flow Checking accuracy / consistency periodically Backend & Data pipeline Deploying Backend & Data pipeline Frontend (Web & Mobile) Real-world data analysis & fitting the model Data Refining & Model Building
  • 21. Building a reliable data pipeline Pycon KR 2019: Django Query Optimization for realtime medical artificial intelligence data preprocessing 환자 정보 (시계열 데이터) n시간 뒤 환자가
 급성 질환에 걸릴 확률 예측 Dashboard * 6 급성 질환 예측 솔루션 병원 ML model 실시간 정보 동기화가 중요하다! Update Update 회사에서 개발 중인 Django를 이용한 서비스 ! 환자A 위급!!
  • 22. Building a reliable data pipeline Synchronizer (Python / Golang) Prediction
 (Python) Medical Score (Python) Alert (Python) Data Listeners & Generators Databases MySQL Redis Databases AI Model Fitting / re-training Backup Scheduler (Node.js) Trainer Scheduler (Node.js) Schedulers Monitors Grafana dashboard healthchecks.io Monitor (Node.js) Controllers Etomer (Node.js) Etomer Web Etomer Slack Hospital Pub/Sub (Redis Streams)
  • 23. Building a reliable data pipeline Synchronizer (Python / Golang) Prediction
 (Python) Medical Score (Python) Alert (Python) Data Listeners & Generators Databases MySQL Redis Databases AI Model Fitting / re-training Backup Scheduler (Node.js) Trainer Scheduler (Node.js) Schedulers Monitors Grafana dashboard healthchecks.io Monitor (Node.js) Controllers Etomer (Node.js) Etomer Web Etomer Slack Hospital Pub/Sub (Redis Streams)
  • 24. Monitor & controller Monitor Consume from Redis Streams Send metrics to Grafana with StatsD Easy to build with Node.js (event listener) setInterval Healthcheck Check service metrics Send summary to Slack Controller Check & Ops with Slack API Server update
  • 25. Frontend (Web & Mobile) Deploying Backend & Data pipeline Frontend (Web & Mobile) Real-world data analysis & fitting the model Data Refining & Model BuildingOne of the most important process when making AI model into a product Use of various visualization libraries & insightful pictures How to interpret & visualize model output?
  • 26. How ML model works What medical staff wants to see Intuitive representation of ML model output Patient Data 0.015
  • 27. Statistical analysis & Contribution analysis - Prediction score vs Mortality rate
 Disclaimer: these are from the ECharts examples, not the real graph - Correlation between outcomes & features
 Feature contributions - Symptoms & diseases -
  • 28. Visualizing model output & interpretation
  • 29. AI models must be fitted in the real world Data distribution changes People behave changes Ex) If VitalCare predict sepsis and send alert 4 hours before, medical staff respond to it, then the pattern of sepsis would change How the AI model keeps learning from real world data? Real-world data analysis & Fitting the model Deploying Backend & Data pipeline Frontend (Web & Mobile) Real-world data analysis & fitting the model Data Refining & Model Building
  • 30. Building a reliable data pipeline Synchronizer (Python / Golang) Prediction
 (Python) Medical Score (Python) Alert (Python) Data Listeners & Generators Databases MySQL Redis Databases AI Model Fitting / re-training Backup Scheduler (Node.js) Trainer Scheduler (Node.js) Schedulers Monitors Grafana dashboard healthchecks.io Monitor (Node.js) Controllers Etomer (Node.js) Etomer Web Etomer Slack Hospital Pub/Sub (Redis Streams)
  • 31. Building a reliable data pipeline Synchronizer (Python / Golang) Prediction
 (Python) Medical Score (Python) Alert (Python) Data Listeners & Generators Databases MySQL Redis Databases AI Model Fitting / re-training Backup Scheduler (Node.js) Trainer Scheduler (Node.js) Schedulers Monitors Grafana dashboard healthchecks.io Monitor (Node.js) Controllers Etomer (Node.js) Etomer Web Etomer Slack Hospital Pub/Sub (Redis Streams)
  • 32. Re-training model periodically Validation with Current/Past data External data (Next) Continuous learning Trainer for Auto ML Data Original Data 9/1 9/2 . . . External Data Hospital A Hospital B Model Version 1 (8/30) Version 2 (9/1) Version 3 (9/2) AUC: 0.87 Ext AUC: 0.79 AUC: 0.78 Ext AUC: 0.77 AUC: 0.97 Ext AUC: 0.80 . . .
  • 33.
  • 34. Library for machine learning in JavaScript You can ... use pre-trained models convert existing Python models train in the browser and Node.js Running ML models in the web browser import * as tf from '@tensorflow/tfjs'; function createAndCompileModel(type, inputLength, hiddenSize, learningRate) { // Encoder const model = tf.sequential({ layers: [ tf.layers.dense({ units: hiddenSize, activation: 'relu', name: 'EncoderFC1', inputShape: [inputLength, 1] }), tf.layers.dense({ units: hiddenSize, activation: 'relu', name: 'EncoderFC2' }), ] }); ... }
  • 35.
  • 36. Interactive real-time prediction Reduce server load Visualize ML model (-) Not all support TensorFlow API (-) Poor community Why Running ML Model in the web browser?
  • 37. Model 3D Visualization (TensorSpace.js)
  • 38. Where are we and what's next?
  • 39. VitalCare is piloting at n hospitals in Korea Significant performance improvement compared to existing Expect to prove effects on improving survival rate Many good feedbacks: can save lives by detecting dangerous patients early, reduce my work, ... Current status of VitalCare
  • 40. Next things to do? Prove that the AI solution can save one's life through the long-term experiment Save lives as many as possible
  • 41. Expansion for predictive disease Prescription recommendations Running / training ML model on Web/Mobile ML pipelines for accelerating research ML Training Platform - kono
 (GTC Silicon Valley 2019: How To Build ML Pipelines From The Startup Perspective) ML on the other areas ... Technical things to do
  • 42. Thank you! Jaeman An <jaeman@aitrics.com>
  • 43. ML Ops/Engineering plays a key role in solving problems with AI Artificial Intelligence as a Software Engineer Research Engineering Building AI algorithm that solves problem A Building AI solution that solves problem A How do you get best accuracy in the certain situation? Which model should you use to interpret the results of the AI model? ... How do you make an AI model a service? How do you interpret / visualize the results from the model? What if the model gives wrong results? How do you make your AI models continually trained? What architecture should I construct to train AI models efficiently? ...