Machine Learning for Artificial Intelligence in Medicine Applications
林軒田 Hsuan-Tien Lin htlin@csie.ntu.edu.tw
國立台灣大學 National Taiwan University
Chang Gung Memorial Hospital, 2019/03/05
About Me
Hsuan-Tien Lin
• Professor, Dept. of CSIE, National Taiwan University
• Chief Data Science Consultant, Appier
• Co-author of textbook “Learning from Data: A Short Course”
• Instructor of the NTU-Coursera Mandarin-teaching ML Massive Open Online Courses
•
“Machine Learning Foundations”:www.coursera.org/course/ntumlone
•
“Machine Learning Techniques”:www.coursera.org/course/ntumltwo
Disclaimer
researched on quite a few ML-related topics, but . . .
limited first-hand experience
in ML for AI in Medicine Applications•
Peng et al., . . . for fast disease diagnosis, NeurIPS 2018:building family-medicine doctor-bot
•
Chou and Lin, ML for interactive verification, PAKDD 2014:effective use of doctor’s time on screening X-ray scans
•
Jan et al., Cost-sensitive classification on pathogen species of bacterial meningitis . . ., BIBM 2011:leveraging doctor’s domain knowledge
(to be introduced)•
Lin and Li. Analysis of SAGE results with combined learning techniques. In ECML/PKDD Discovery Challenge 2015:using machine learning properly on small medical data
will talk more aboutgeneral wisdom
(hopefully), less about specific techniquesOutline
ML for (Modern) AI
ML for AI in Medicine Application: My Own Story
Suggestions to Medicine Researchers on Using ML-driven AI
From Intelligence to Artificial Intelligence
intelligence: thinking and acting smartly
• humanly
• rationally
artificial intelligence: computers
thinking and actingsmartly
• humanly
• rationally
humanly
≈smartly
≈rationally
—are humans rational? :-)
Humanly versus Rationally
What if your self-driving car decides one death is better than two—and that one is you? (The Washington Post http://wpo.st/ZK-51)
You’re humming along in your self-driving car, chatting on your iPhone 37 while the machine navigates on its own. Then a swarm of people appears in the street, right in the path of the oncoming vehicle.
Car Acting Humanly
tosave my (and passengers’) life, stay on track
Car Acting Rationally
avoid the crowd and crash the owner forminimum total loss
which is
smarter?
—depending on where I am, maybe? :-)
(Traditional) Artificial Intelligence
Thinking Humanly
•
cognitive modeling—now closer to Psychology than AI
Acting Humanly
•
dialog systems•
humanoid robots•
computer visionThinking Rationally
•
formal logic—now closer to Theoreticians than AI practitionersActing Rationally
•
recommendation systems•
cleaning robots•
cross-device ad placementacting
humanly or rationally:more academia/industry attentions nowadays
Traditional vs. Modern [My] Definition of AI
Traditional Definition
humanly ≈ intelligently ≈ rationally
My Definition
intelligently ≈ easily
is your smart phone ‘smart’? :-)
user-needs-driven
AI is importantAI Milestones
logic inference
expert system
machine learning +deep learning
begin 1st winter 2nd winter revolution
1956 1980 1993 2012
timeheat
AI history
•
first AI winter: AI cannot solve ‘combinatorial explosion’ problems•
second AI winter: expert system failed to scalereason of winters:
expectation mismatch
What’s Different Now?
More Data
•
cheaper storage•
Internet companiesFaster Computation
•
cloud computing•
GPU computingBetter Algorithms
•
decades of research•
e.g. deep learningHealthier Mindset
•
reasonable wishes•
key breakthroughsdata-enabled
AI: mainstream nowadaysMachine Learning and AI
Easy-to-Use
Acting Humanly Acting Rationally
Machine Learning
machine learning: core behind
modern (data-enabled) AIML Connects (Big) Data and AI
From Big Data to Artificial Intelligence
big data ML artificial intelligence
ingredient tools/steps dish
(Photos Licensed under CC BY 2.0 from Andrea Goh on Flickr)
ML Scientist
≡ restaurant
chef
Bigger Data Towards Better AI
best route by shortest path
best route by current traffic
best route by predicted travel time
big data
can
make machine look smarterML for Modern AI
big data
ML AI
human learning/
analysis
domain knowledge
(HI)
method
model expert system
•
human sometimesfaster learner
oninitial (smaller) data
•
industry:black plum is as sweet as white
often important to leverage human learning, especially
in the beginning
AI: Now and Next
2010–2015
AI becomespromising, e.g.
•
initial success ofdeep learning
on ImageNet•
mature tools for SVM (LIBSVM) and others2016–2020
AI becomescompetitive, e.g.
•
super-human performance ofalphaGo
and others•
all big technology companies becomeAI-first
2021–
AI becomes
necessary
•
“You’ll not be replaced by AI, butby humans who know how to use AI”
(Sun, Chief AI Scientist
of Appier, 2018)
Outline
ML for (Modern) AI
ML for AI in Medicine Application: My Own Story
Suggestions to Medicine Researchers on Using ML-driven AI
What is the Status of the Patient?
?
H7N9-infected cold-infected healthy
•
aclassification
problem—grouping ‘patients’ into different ‘status’
are all mis-prediction costs equal?
Patient Status Prediction
error measure = society cost XXXX
XXXXXX actual
predicted
H7N9 cold healthy
H7N9
0 1000 100000
cold
100 0 3000
healthy
100 30 0
•
H7N9 mis-predicted as healthy:very high cost
•
cold mis-predicted as healthy:high cost
•
cold correctly predicted as cold:no cost
human doctors consider costs of decision;
how about computer-aided diagnosis?
Our Works
binary multiclass
regular well-studied well-studied
cost-sensitive known
(Zadrozny et al., 2003) ongoing (our works, among others)
selected works of ours
•
cost-sensitive SVM(Tu and Lin, ICML 2010)
•
cost-sensitive one-versus-one(Lin, ACML 2014)
•
cost-sensitive deep learning(Chung et al., IJCAI 2016)
why are people
not
using those
cool ML works for their AI? :-)
Issue 1: Where Do Costs Come From?
A Real Medical Application: Classifying Bacteria
•
by human doctors:different treatments
⇐⇒ serious costs•
cost matrix averaged from two doctors:Ab Ecoli HI KP LM Nm Psa Spn Sa GBS
Ab 0 1 10 7 9 9 5 8 9 1
Ecoli 3 0 10 8 10 10 5 10 10 2
HI 10 10 0 3 2 2 10 1 2 10
KP 7 7 3 0 4 4 6 3 3 8
LM 8 8 2 4 0 5 8 2 1 8
Nm 3 10 9 8 6 0 8 3 6 7
Psa 7 8 10 9 9 7 0 8 9 5
Spn 6 10 7 7 4 4 9 0 4 7
Sa 7 10 6 5 1 3 9 2 0 7
GBS 2 5 10 9 8 6 5 6 8 0
issue 2: is cost-sensitive classification
really useful?
Cost-Sensitive vs. Traditional on Bacteria Data
. . . . . .
Are cost-sensitive algorithms great?
RBF kernel
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6
OVOSVM
csOSRSVM csOVOSVM csFTSVM
algorithms
cost
.
...Cost-sensitive algorithms perform better than regular algorithm
Jan et al. (Academic Sinica) Cost-Sensitive Classification on SERS October 31, 2011 15 / 19
(Jan et al., BIBM 2011)
cost-sensitive
better thantraditional;
but why are people
still not
using those cool ML works for their AI? :-)
Issue 3: Error Rate of Cost-Sensitive Classifiers
The Problem
0.1 0.15 0.2 0.25 0.3
0 0.05 0.1 0.15 0.2
Error (%)
Cost
•
cost-sensitive classifier:low cost but high error rate
•
traditional classifier:low error rate but high cost
•
how can we get theblue
classifiers?:low error rate and low cost
cost-and-error-sensitive:
more suitable for
real-world medical needs
Improved Classifier for Both Cost and Error
(Jan et al., KDD 2012)
Cost
iris ≈
wine ≈
glass ≈ vehicle ≈
vowel
segment
dna
satimage ≈
usps
zoo
splice ≈ ecoli ≈ soybean ≈
Error
iris
wine
glass
vehicle
vowel
segment
dna
satimage
usps
zoo
splice
ecoli
soybean
now,
are people using those cool ML works
for their AI? :-)
Lessons Learned from
Research on Cost-Sensitive Multiclass Classification
? H7N9-infected cold-infected healthy
1
more realistic (generic) in academia6=
more realistic (feasible) in application
e.g. the ‘cost’ ofinputing a cost matrix? :-)
2 cross-domain collaboration
importante.g. getting the ‘cost matrix’ from
domain experts
3
not easy to winhuman trust
—humans are somewhat
multi-objective
Outline
ML for (Modern) AI
ML for AI in Medicine Application: My Own Story
Suggestions to Medicine Researchers on Using ML-driven AI
Is Logistic Regression Part of ML?
No
•
developed in 1958,even before “ML” named
•
applied on medicineresearch
long before “ML”
popularized
(e.g.
https://www.ncbi.nlm.
nih.gov/pubmed/11576808
)Yes
•
wikipedia: “Logisticregression is an
important ML algorithm.”
• special case of
moderndeep learning
approaches•
widely includedin ML tool boxes
my biased opinion:
LogReg
analysis: not (typical) ML;
LogReg
algorithm: (typical) ML
butboth important for modern AI
Shall We Replace Our Logistic Regression Model with Fancy ML Models?
Yes
•
ML may providemore opportunities
for better solving your problem•
considermore factors
•
leveragenon-linear relationship
• learn → analyze
(ML) v.s. analyze → regressNo
•
LogReg:safe first-hand choice
in ML anyway—philosophy of
linear first
•
not reallyreplacing,
but worthcomparing
•
super big ML jungle:risky if lost
concrete suggestions:
•
compare with (“try”)some mature ML models
•
consult/collaborate withML specialist
if using advanced ML modelsSome Mature ML Models Recommended
Random Forest
•
voting of many (random) decision trees•
analysis:feature importance
•
benefit:robust
andefficient
in generalGradient Boosted Decision Tree
•
optimized combination of decision trees•
analysis:feature importance
•
benefit:accurate
for manyapplications
(RBF-) Support Vector Machine
•
optimized combination of key examples•
analysis:key examples
(support vectors)•
benefit:robust
for mid-sized data suggested reading:A Practical Guide to Support Vector Classification
https://www.csie.ntu.edu.tw/~cjlin/papers/
guide/guide.pdf
Can We Explain ML Predictions?
courtesy of my Appier colleague Jen-Yee Hong, M.D.
Yes
• for simple models
like LogReg using statistics toolsor feature importance
•
ongoing research to explain complex ML modelswith some initial success on visual data
No
• not generally applicable
to every ML model nowadaysexplainable ML is
getting more important
Can We Trust ML Predictions?
courtesy of my Appier colleague Jen-Yee Hong, M.D.
Yes
•
ML can be more accurate ifproperly used
No
•
non-ML-specialists may notproperly use
ML tools•
need morehonest success stories
before winning human trusttrust
needs accumulation
Summary
•
ML for (Modern) AI:tools + human knowledge ⇒
easy-to-use application
•
ML Research for AI in Medicine Applications:collaborative
to keep discovering new research directions•
Suggestions to Medicine Researchers on Using ML-driven AI:ML provides more