Artificial intelligence is more and more becoming the core of digital products. Designing for Products based on AI requires Designers to know about Machine Learning.
This talk is an easy walk through the most important elements of Machine Learning. It looks at the fundamental principles of using practical examples. It showcases applications of the different types of Machine Learning. The use-cases range from text categorization to image recognition, on to speech analysis. The goal is to show what is important for designers and why.
6. otoscope
This is an
It can be used to look at the
eardrum to see if the ear is inflamed.
Because the otoscope is connected
to an iPhone, an image can be taken
of the eardrum.
7. The image is sent to a service that tells me if I should go to a doctor or not.
14. 3 methods how machines learn
Supervised learning You train the machine with data
The machine learns to make predictions
✔ ❌
15. 3 methods how machines learn
Supervised learning You train the machine with data
The machine learns to make predictions
Unsupervised learning The machine is given a lot of data and it
uses algorithms to find out interesting
patterns.
16. Unsupervised learning
1 2 3 4 5 6
1
2
3
4
5
6
7
Average # of pizzas per week
Average # of toppings
per pizza
17. Unsupervised learning
1 2 3 4 5 6
1
2
3
4
5
6
7
Average # of pizzas per week
Average # of toppings
per pizza
18. Unsupervised learning
1 2 3 4 5 6
1
2
3
4
5
6
7
Average # of pizzas per week
Average # of toppings
per pizza
19. 3 methods how machines learn
Supervised learning You train the machine with data
The machine learns to make predictions
Unsupervised learning The machine is given a lot of data and it
uses algorithms to find out interesting
patterns.
Reinforcement learning The machine continuously learns from the
environment in an iterative fashion.
It starts dumb and gets smarter.
20. Reinforcement Learning
The machine is given a
set of rules and a goal
It trains itself:
It keeps the features
that helped it reach the
goal.
BoxCar 2D: Computation Intelligence Car Evolution
(Needs Flash)
http://boxcar2d.com/
22. #1 method: supervised learning
Bedrooms m2 Neighbourhood Floors Sale Price
4 96 Hipsterton 2 1’500’000
2 89 Snoringham 3 750’000
3 75 Hipsterton 1 1’200’000
3 79 Snoringham 2 820’000
• Give the machine
a training set with
features & target
values
• It figures out how
important each
feature is
• The machine can
make predictions
of target values
Features Target
23. #1 method: supervised learning
Bedrooms m2 Neighbourhood Floors
4 96 Hipsterton 2
2 89 Snoringham 3
3 75 Hipsterton 1
3 79 Snoringham 2
Predictions improve through
• more features
• larger learning sample
Features
29. how machines use algorithms
1. Take a lot of data
2. Pass it through a generic algorithm
(some mathematical formula)
3. Let the machine figure out its own
logic based on the data.
Emails
Generic Machine
Learning Algorithm
Spam Not Spam
30. how machines use algorithms
500g white flour,
2 tsp salt
7g fast-action yeast
3 tbsp olive oil
300ml water
475g plain flour,
1 tsp salt
10g dried yeast
1 tbsp olive oil
400ml water
Algorithms find valid weights of the individual
features of a data-set to make the right prediction
2 cups flour,
1 cup salt
1 tsp olive oil
1 cup water
Bread Bread Not bread
31. generic algorithms
There are many generic
algorithms that already exist.
The same generic algorithm
can be used to solve
problems in completely
different areas.
Emails Algorithm
Spam
Not Spam
Articles Algorithm Finance
Politics
Sports
32. 2 types of algorithms
Classification algorithms
Emails Algorithm
Spam
Not Spam
The goal is to predict discrete
values, e.g. {1,0}, {True, False},
{spam, not spam}.
Regression algorithms
House-
Details
Algorithm
Price of
House
The goal is to predict continuous
values, e.g. home prices.
A big part of ML
is about classification
36. is language like images?
Images can be
recognized
because their data
can be encoded
Can we do the same with language?
37. translation versus conversation
Do you have the time?
Translation goal:
Produce an equivalent
and grammatically
correct sentence in a
different language.
Conversation goal:
Understand the meaning
of the sentence and
follow up with the
appropriate response.
Avez-vous l’heure? It’s 7pm.Yes
40. statistical translation
I try | to run | at | the prettiest | open space.
I want | to run | per | the more tidy | open space.
I mean | to forget | at | the tidiest | beach.
I try | to go | per | the more tidy | seaside.
I want | to go | to | the prettiest | beach.
The algorithm compares the possible translations against existing ones.
The algorithm picks the translation with the highest probability.
44. new challenges and disciplines
• recognizing intent
• understanding context
• voice and tone
• shaping conversations in a
humane and ethical way
}Linguistics
Ethics
Not being an asshole
45. intent - what does it all mean?
types of meaning
understand the wordsliteral:
understand the actual meaningimplied:
Do you have the time?
metaphors & metonymiesreferenced:
This went south fast!
Wall Street is in crisis
46.
47. Elements that make
this artificial:
• Not picking up intent
„give me a spot on saturday“
• Literal repetition
48. context
context is even harder than intent
• the sequence in time
• understanding the surroundings
• semantic context
homonymy: 🦇is not a 🏏
49. voice and tone: change registers
we adapt the way we speak to the
situation we’re in
Depending on:
• how serious the situation is
• how formal it is
• how we are connected to the person
Conversational interfaces need to take
this into account.
This is a design task
51. Designers are content experts
Icons by Sarah Rudkin
Developers
Build the machine
Domain experts
Have the domain
specific knowledge
Designers
• Content oversight for training:
What makes good training data?
• Mediator between engineering and domain
experts
• Ethical considerations
52. ethics matter
Algorithms inherit all biases and blind
spots of those who make them
We need to
• challenge and stress test from a diverse
point of view
• put humans before technology
(once again)
• bring our principles of what good
design is to the AI world
This is a design task
53. Machine Learning is
everywhere
Learn to see its opportunities
Get a seat at the table now
Understand the implications
of using machine learning
The math part is difficult,
the design part is hard.
55. Resources
A visual introduction to machine learning
http://www.r2d3.us
Machine Learning is Fun!
(the perfect series of articles to get you started)
https://medium.com/@ageitgey/machine-learning-is-fun-80ea3ec3c471
30 Free Courses: Neural Networks, Machine Learning, AI
https://www.datasciencecentral.com/profiles/blogs/neural-networks-for-machine-learning
Watson Knowledge Studio
https://www.ibm.com/watson/developercloud/doc/wks/wks_overview_full.shtml
2 Minutes Papers: a youtube channel dedicated to condensing the results of scientific papers on artificial intelligence.
https://www.youtube.com/channel/UCbfYPyITQ-7l4upoX8nvctg
Realtime Multi-Person 2D Human Pose Estimation
https://www.youtube.com/watch?v=pW6nZXeWlGM
BoxCar 2D: Computation Intelligence Car Evolution (Needs Flash)
http://boxcar2d.com/
Google AI Experiments
https://experiments.withgoogle.com/collection/ai