From Terminator to Star Trek… Using AI in day to day interfaces

A presentation at IDG Web Summit in June 2018 in Stockholm, Sweden by Chris Heilmann

Slide 1

Slide 1

From Terminator to Star Trek… Using AI in day to day interface s Chris Heilmann (@codepo8) June 2018

Slide 2

Slide 2

All resources: aka.ms/human

ai @codepo8

Slide 3

Slide 3

Let’s talk about “Artificial Intelligence” @codepo8

Slide 4

Slide 4

Artificial Intelligence ▪ Is nothing new – the concepts go back to the 50ies @codepo8

Slide 5

Slide 5

Artificial Intelligence ▪ Is nothing new – the concepts go back to the 50ies ▪ Is quite the hype and ver y often misattributed @codepo8

Slide 6

Slide 6

Artificial Intelligence ▪ Is nothing new – the concepts go back to the 50ies ▪ Is quite the hype and ver y often misattributed ▪ Is an umbrella term for a lot of math and science around repetition, pattern recognition and machine learning @codepo8

Slide 7

Slide 7

Artificial Intelligence ▪ Is nothing new – the concepts go back to the 50ies ▪ Is quite the hype and ver y often misattributed ▪ Is an umbrella term for a lot of math and science around repetition, pattern recognition and machine learning ▪ Got a huge boost because of availability of hardware @codepo8

Slide 8

Slide 8

Florian Ziegler flickr.com/photos/damndirty/41263240134 The machines are watching…

Slide 9

Slide 9

Big brother is redundant… ▪ Ever ything we do online is monitored and recorded @codepo8

Slide 10

Slide 10

Big brother is redundant… ▪ Ever ything we do online is monitored and recorded ▪ We often don’t realise that our data is how we pay for “free” ser vices @codepo8

Slide 11

Slide 11

Big brother is redundant… ▪ Ever ything we do online is monitored and recorded ▪ We often don’t realise that our data is how we pay for “free” ser vices ▪ We’re happy to use systems that record all the time in exchange for convenience @codepo8

Slide 12

Slide 12

Big brother is redundant… ▪ Ever ything we do online is monitored and recorded ▪ We often don’t realise that our data is how we pay for “free” ser vices ▪ We’re happy to use systems that record all the time in exchange for convenience ▪ Often people don’t realise just how dangerous this can be in the wrong hands . @codepo8

Slide 13

Slide 13

Leaving invisible marks… @codepo8

Slide 14

Slide 14

Leaving invisible marks… ▪ By using other people’s machines and infrastructure , we leave traces @codepo8

Slide 15

Slide 15

Leaving invisible marks… ▪ By using other people’s machines and infrastructure , we leave traces ▪ This allows companies to recognise us, and accumulates a usage histor y @codepo8

Slide 16

Slide 16

Leaving invisible marks… ▪ By using other people’s machines and infrastructure , we leave traces ▪ This allows companies to recognise us, and accumulates a usage histor y ▪ This leads to better results , but can leaks data @codepo8

Slide 17

Slide 17

Leaving invisible marks… ▪ By using other people’s machines and infrastructure , we leave traces ▪ This allows companies to recognise us, and accumulates a usage histor y ▪ This leads to better results , but can leaks data ▪ We should have more transparency about what digital legacy we left behind. @codepo8

Slide 18

Slide 18

Ever ything counts in large amounts @codepo8

Slide 19

Slide 19

Ever ything counts in large amounts ▪ We create a massive amount of information – actively and without our knowledge. @codepo8

Slide 20

Slide 20

Ever ything counts in large amounts ▪ We create a massive amount of information – actively and without our knowledge. ▪ It is tough to make that amount of information consumable again. @codepo8

Slide 21

Slide 21

Ever ything counts in large amounts ▪ We create a massive amount of information – actively and without our knowledge. ▪ It is tough to make that amount of information consumable again. ▪ That’s why we have computers @codepo8

Slide 22

Slide 22

Ever ything counts in large amounts ▪ We create a massive amount of information – actively and without our knowledge. ▪ It is tough to make that amount of information consumable again. ▪ That’s why we have computers ▪ With cloud computing, on demand processing and advances in hardware we’re faster than ever . @codepo8

Slide 23

Slide 23

Florian Ziegler flickr.com/photos/damndirty/40153024740/ Are machines friend or foe?

Slide 24

Slide 24

Artificial Intelligence Myths ▪ AI can’t replace a thinking, creative human @codepo8

Slide 25

Slide 25

Artificial Intelligence Myths ▪ AI can’t replace a thinking, creative human ▪ AI can not magically fill gaps with perfect information – it can only compare and assume @codepo8

Slide 26

Slide 26

Artificial Intelligence Myths ▪ AI can’t replace a thinking, creative human ▪ AI can not magically fill gaps with perfect information – it can only compare and assume ▪ AI doesn’t learn in a creative fashion. It does not transfer. @codepo8

Slide 27

Slide 27

Artificial Intelligence Myths ▪ AI can’t replace a thinking, creative human ▪ AI can not magically fill gaps with perfect information – it can only compare and assume ▪ AI doesn’t learn in a creative fashion. It does not transfer. ▪ AI has no morals and ethics , but – used wrongly – it can amplify our biases @codepo8

Slide 28

Slide 28

Machines can be great tools or weapons… ▪ Machine Learning is all about returning assumptions @codepo8

Slide 29

Slide 29

Machines can be great tools or weapons… ▪ Machine Learning is all about returning assumptions ▪ We don’t get any definitive truth from algorithms , we get answers to our questions @codepo8

Slide 30

Slide 30

Machines can be great tools or weapons… ▪ Machine Learning is all about returning assumptions ▪ We don’t get any definitive truth from algorithms , we get answers to our questions ▪ AI can answer questions, but it is up to you to ask good questions – generic questions yield assumed results. @codepo8

Slide 31

Slide 31

Machines can be great tools or weapons… ▪ Untrained and limited data leads to terrible and biased AI results @codepo8

Slide 32

Slide 32

Machines can be great tools or weapons… ▪ Untrained and limited data leads to terrible and biased AI results ▪ It is ver y easy to get either wrong deductions or false positives @codepo8

Slide 33

Slide 33

Machines can be great tools or weapons… ▪ Untrained and limited data leads to terrible and biased AI results ▪ It is ver y easy to get either wrong deductions or false positives ▪ AI is as intelligent and good as the people who apply it @codepo8

Slide 34

Slide 34

About face… aka.ms/face

api @codepo8

Slide 35

Slide 35

About face… aka.ms/face

api ▪ Face rectangle / Landmarks ▪ Pose (pitch/roll/yaw) ▪ Smile ▪ Gender/Age ▪ Type of glasses ▪ Makeup (lips/eye) ▪ Emotion (anger, contempt, disgust, fear, happiness, neutral, sadness, surprise) ▪ Occlusion (forehead/eye/mouth) ▪ Facial hair (moustache/beard/sideburns) ▪ Attributes: Hair (invisible, bald, colour ) @codepo8

Slide 36

Slide 36

Is this you? Are those also you? aka.ms/face

api @codepo8

Slide 37

Slide 37

Is this your driver? youtube.com/watch?v=aEBi4OpXU4Q @codepo8

Slide 38

Slide 38

Taking it too far? ntechlab.com @codepo8

Slide 39

Slide 39

Photo by Florian Ziegler flickr.com/photos/damndirty/40153024740/ Andreas Dantz flickr.com/photos/szene/40193567250 AI for humans

Slide 40

Slide 40

How AI can help humans… aka.ms/ai

for

good @codepo8

Slide 41

Slide 41

Good interfaces allow for fuzzy entries. ▪ Is nothing new – the concepts go back to the 50ies @codepo8

Slide 42

Slide 42

Bots and computers… Humans ▪ Messy and prone to mistakes @codepo8

Slide 43

Slide 43

Bots and computers… Humans ▪ Messy and prone to mistakes ▪ Make no mistakes, other than physical fatigue @codepo8

Slide 44

Slide 44

Bots and computers… Humans ▪ Messy and prone to mistakes ▪ Forget things and filter them by their biases ▪ Make no mistakes, other than physical fatigue @codepo8

Slide 45

Slide 45

Bots and computers… Humans ▪ Messy and prone to mistakes ▪ Forget things and filter them by their biases ▪ Make no mistakes, other than physical fatigue ▪ Never forget, don’t judge @codepo8

Slide 46

Slide 46

Bots and computers… Humans ▪ Messy and prone to mistakes ▪ Forget things and filter them by their biases ▪ Bored when doing repetitive tasks ▪ Make no mistakes, other than physical fatigue ▪ Never forget, don’t judge @codepo8

Slide 47

Slide 47

Bots and computers… Humans ▪ Messy and prone to mistakes ▪ Forget things and filter them by their biases ▪ Bored when doing repetitive tasks ▪ Make no mistakes, other than physical fatigue ▪ Never forget, don’t judge ▪ Great at tedious, boring tasks @codepo8

Slide 48

Slide 48

Bots and computers… Humans ▪ Messy and prone to mistakes ▪ Forget things and filter them by their biases ▪ Bored when doing repetitive tasks ▪ When bored create more errors ▪ Make no mistakes, other than physical fatigue ▪ Never forget, don’t judge ▪ Great at tedious, boring tasks @codepo8

Slide 49

Slide 49

Bots and computers… Humans ▪ Messy and prone to mistakes ▪ Forget things and filter them by their biases ▪ Bored when doing repetitive tasks ▪ When bored create more errors ▪ Make no mistakes, other than physical fatigue ▪ Never forget, don’t judge ▪ Great at tedious, boring tasks ▪ Repeat things with minor changes on iterations till a result is met @codepo8

Slide 50

Slide 50

Bots and computers… Humans ▪ Messy and prone to mistakes ▪ Forget things and filter them by their biases ▪ Bored when doing repetitive tasks ▪ When bored create more errors ▪ Non

optimised communication, lots of nuances and misunderstanding ▪ Make no mistakes, other than physical fatigue ▪ Never forget, don’t judge ▪ Great at tedious, boring tasks ▪ Repeat things with minor changes on iterations till a result is met @codepo8

Slide 51

Slide 51

Bots and computers… Humans ▪ Messy and prone to mistakes ▪ Forget things and filter them by their biases ▪ Bored when doing repetitive tasks ▪ When bored create more errors ▪ Non

optimised communication, lots of nuances and misunderstanding ▪ Make no mistakes, other than physical fatigue ▪ Never forget, don’t judge ▪ Great at tedious, boring tasks ▪ Repeat things with minor changes on iterations till a result is met ▪ Highly optimised , non

nuanced communication. @codepo8

Slide 52

Slide 52

Bots and computers… Humans ▪ Messy and prone to mistakes ▪ Forget things and filter them by their biases ▪ Bored when doing repetitive tasks ▪ When bored create more errors ▪ Non

optimised communication, lots of nuances and misunderstanding ▪ Make no mistakes, other than physical fatigue ▪ Never forget, don’t judge ▪ Great at tedious, boring tasks ▪ Repeat things with minor changes on iterations till a result is met ▪ Highly optimised , non

nuanced communication. @codepo8

Slide 53

Slide 53

Bots and computers… Humans ▪ Messy and prone to mistakes ▪ Forget things and filter them by their biases ▪ Bored when doing repetitive tasks ▪ When bored create more errors ▪ Non

optimised communication, lots of nuances and misunderstanding ▪ Make no mistakes, other than physical fatigue ▪ Never forget, don’t judge ▪ Great at tedious, boring tasks ▪ Repeat things with minor changes on iterations till a result is met ▪ Highly optimised , non

nuanced communication. Data Insights Patterns @codepo8

Slide 54

Slide 54

Humans and Bots/Computers autodraw.com @codepo8

Slide 55

Slide 55

Humans and Bots/Computers autodraw.com @codepo8

Slide 56

Slide 56

Humans and Bots/Computers quickdraw.withgoogle.com @codepo8

Slide 57

Slide 57

Humans and Bots/Computers google.com/recaptcha/intro @codepo8

Slide 58

Slide 58

Intelligent, responsive systems ▪ AI ser vices offer us lots of data to compare our users’ input with Google : cloud.google.com/products/machine

learning Amazon : aws.amazon.com/machine

learning Microsoft : azure.microsoft.com/en

us/ser vices/cognitive

ser vices @codepo8

Slide 59

Slide 59

Intelligent, responsive systems ▪ AI ser vices offer us lots of data to compare our users’ input with ▪ Thus our users don’t need to speak computer but be human instead Google : cloud.google.com/products/machine

learning Amazon : aws.amazon.com/machine

learning Microsoft : azure.microsoft.com/en

us/ser vices/cognitive

ser vices @codepo8

Slide 60

Slide 60

Intelligent, responsive systems ▪ AI ser vices offer us lots of data to compare our users’ input with ▪ Thus our users don’t need to speak computer but be human instead ▪ We can prevent them from making mistakes Google : cloud.google.com/products/machine

learning Amazon : aws.amazon.com/machine

learning Microsoft : azure.microsoft.com/en

us/ser vices/cognitive

ser vices @codepo8

Slide 61

Slide 61

Intelligent, responsive systems ▪ AI ser vices offer us lots of data to compare our users’ input with ▪ Thus our users don’t need to speak computer but be human instead ▪ We can prevent them from making mistakes ▪ We can help getting around physical barriers Google : cloud.google.com/products/machine

learning Amazon : aws.amazon.com/machine

learning Microsoft : azure.microsoft.com/en

us/ser vices/cognitive

ser vices @codepo8

Slide 62

Slide 62

Our toolkit for more human interfaces Natural language processing Computer Vision Sentiment analysis Speech conversion and analysis Moderation @codepo8

Slide 63

Slide 63

Language and Writing @codepo8

Slide 64

Slide 64

Language and Writing ▪ Probably the oldest task on the web was translation @codepo8

Slide 65

Slide 65

Language and Writing ▪ Probably the oldest task on the web was translation ▪ This moved deeper into Natural Language Processing and Language Detection @codepo8

Slide 66

Slide 66

Language and Writing ▪ Probably the oldest task on the web was translation ▪ This moved deeper into Natural Language Processing and Language Detection ▪ Using these, we can allow for human commands and finding out tasks by analyzing texts. @codepo8

Slide 67

Slide 67

Language and Writing ▪ Probably the oldest task on the web was translation ▪ This moved deeper into Natural Language Processing and Language Detection ▪ Using these, we can allow for human commands and finding out tasks by analyzing texts. “How far am I from the capital of Denmark?” “Where do I find a good restaurant around here?” “Show me documents I wrote five days ago with more than 600 words” @codepo8

Slide 68

Slide 68

Computer Vision @codepo8

Slide 69

Slide 69

Computer Vision ▪ When text wasn’t cool enough, we added images to our web media @codepo8

Slide 70

Slide 70

Computer Vision ▪ When text wasn’t cool enough, we added images to our web media ▪ Often we forget that not ever yone can see them , and we leave them without alternative text @codepo8

Slide 71

Slide 71

Computer Vision ▪ When text wasn’t cool enough, we added images to our web media ▪ Often we forget that not ever yone can see them , and we leave them without alternative text ▪ This is where machine learning steps in to help turning an image into a dataset we can work with. @codepo8

Slide 72

Slide 72

Vision and image analysis… instagram : @ larr yandanke @codepo8

Slide 73

Slide 73

Vision and image analysis… @codepo8

Slide 74

Slide 74

Vision and image analysis… @codepo8

Slide 75

Slide 75

Vision and image analysis… twitter.com/mixedhunty/status/980551155297157126 @codepo8

Slide 76

Slide 76

Vision and image analysis… #vision_api @codepo8

Slide 77

Slide 77

Vision and image analysis… aka.ms/vision

api @codepo8

Slide 78

Slide 78

Vision and image analysis… aka.ms/vision

api @codepo8

Slide 79

Slide 79

Vision and image analysis… aka.ms/vision

api @codepo8

Slide 80

Slide 80

Vision and image analysis… aka.ms/vision

api @codepo8

Slide 81

Slide 81

Sentiment analysis @codepo8

Slide 82

Slide 82

Sentiment analysis ▪ Finding out the sentiment of a text, image or video can help with a lot of things @codepo8

Slide 83

Slide 83

Sentiment analysis ▪ Finding out the sentiment of a text, image or video can help with a lot of things ▪ You can navigate videos by only showing the happy parts @codepo8

Slide 84

Slide 84

Sentiment analysis ▪ Finding out the sentiment of a text, image or video can help with a lot of things ▪ You can navigate videos by only showing the happy parts ▪ You can detect which comment should be answered first by a help desk @codepo8

Slide 85

Slide 85

Sentiment analysis ▪ Finding out the sentiment of a text, image or video can help with a lot of things ▪ You can navigate videos by only showing the happy parts ▪ You can detect which comment should be answered first by a help desk ▪ You can predict when drivers of cars get tired @codepo8

Slide 86

Slide 86

Sentiment analysis github.com/noopkat/face

api

emoji

face @codepo8

Slide 87

Slide 87

Speech @codepo8

Slide 88

Slide 88

Speech ▪ Audio interfaces are all the rage . @codepo8

Slide 89

Slide 89

Speech ▪ Audio interfaces are all the rage . ▪ You can allow hands

free control of devices @codepo8

Slide 90

Slide 90

Speech ▪ Audio interfaces are all the rage . ▪ You can allow hands

free control of devices ▪ You can have an “always on” system to help you out without having to interface with it @codepo8

Slide 91

Slide 91

Speech ▪ Audio interfaces are all the rage . ▪ You can allow hands

free control of devices ▪ You can have an “always on” system to help you out without having to interface with it ▪ It feels natural and has a massive Sci

Fi feeling – when it works. @codepo8

Slide 92

Slide 92

Text to speech aka.ms/text

to

speech @codepo8

Slide 93

Slide 93

Speech recognition aka.ms/text

to

speech @codepo8

Slide 94

Slide 94

Turning sentences into commands aka.ms/luis

api luis.ai @codepo8

Slide 95

Slide 95

Conversation as an interface aka.ms/conversation

ui @codepo8

Slide 96

Slide 96

Speaker recognition aka.ms/speaker

recognition @codepo8

Slide 97

Slide 97

Speaker recognition aka.ms/speaker

recognition @codepo8

Slide 98

Slide 98

Moderation @codepo8

Slide 99

Slide 99

Moderation ▪ Some things are not meant to be consumed by people @codepo8

Slide 100

Slide 100

Moderation ▪ Some things are not meant to be consumed by people ▪ Computers don’t need counselling once they saw them – people should @codepo8

Slide 101

Slide 101

Moderation ▪ Some things are not meant to be consumed by people ▪ Computers don’t need counselling once they saw them – people should ▪ Known illegal and terrible content can be automatically removed @codepo8

Slide 102

Slide 102

With great power comes great responsibility… @codepo8

Slide 103

Slide 103

Our responsibilities.. ▪ AI can be an amazing help for humans @codepo8

Slide 104

Slide 104

Our responsibilities.. ▪ AI can be an amazing help for humans ▪ It does need transparency – if you use people as data sources, they need to know what and where it goes @codepo8

Slide 105

Slide 105

Our responsibilities.. ▪ AI can be an amazing help for humans ▪ It does need transparency – if you use people as data sources, they need to know what and where it goes ▪ When people get information filtered by an algorithm , it should be an opt

in @codepo8

Slide 106

Slide 106

Our responsibilities.. ▪ AI can be an amazing help for humans ▪ It does need transparency – if you use people as data sources, they need to know what and where it goes ▪ When people get information filtered by an algorithm , it should be an opt

in ▪ People need to have a chance to dispute when an algorithm tagged or disallowed them access. @codepo8

Slide 107

Slide 107

Want to go deep? ▪ The Math behind ML ▪ The ethics of AI ▪ Working with Data using Python ▪ Machine Learning Models ▪ Deep Learning Models ▪ Reinforcement Learning Models ▪ Microsoft Professional Program Certificate in Artificial Intelligence aka.ms/learn

ai 10 courses, (8

16 hours each), 10 skills @codepo8

Slide 108

Slide 108

Thanks! Chris Heilmann Christianheilmann.com Developer

evangelism.com @codepo8