Self replicating genies - How to democratise and ensure ethics in AI

A presentation at WeAreDevelopers AI Congress in December 2018 in Vienna, Austria by Chris Heilmann

Slide 1

Slide 1

Self replicating genies How to democratise and ensure ethics in AI Chris Heilmann (@codepo8) December 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 @codepo8 ▪ Is nothing new – the concepts go back to the 50ies ▪ Is quite the hype and very 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 ▪ Became much more feasible because of the availability of lots of data

Slide 5

Slide 5

Artificial Intelligence @codepo8

Slide 6

Slide 6

Reminders of “genie in the bottle” @codepo8 ▪ Fulfills our wishes seemingly with invisible magic ▪ Useful, and feels too good to be true ▪ Once released, may have a dark, sinister edge to it ▪ Hard to put back into the bottle.

Slide 7

Slide 7

Let’s start with some predictions. @codepo8 ▪ AI is the number one growth market in IT – the others are cloud and security ▪ Machine Learning is already replacing thousands of jobs – boring, terrible jobs humans should not do ▪ This is also happening in IT – we are not invincible because we know hot to exit Vim

Slide 8

Slide 8

Let’s start with some predictions. @codepo8 ▪ There is no stopping this – it is just too convenient ▪ The amount of data we create (actively or by triggering sensors) demands machines to whittle it down for us to make it consumable by humans ▪ If we as developers and decision makers in IT don’t take ownership and lead with good, ethical examples, we’ll throw away decades of work democratising computing

Slide 9

Slide 9

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

Slide 10

Slide 10

Social Credit System @codepo8 https://futurism.com/china-social-credit-system-rate-human-value/

Slide 11

Slide 11

Big brother is redundant… @codepo8 ▪ Everything we do online is monitored and recorded ▪ We often don’t realise that our data is how we pay for “free” services ▪ 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.

Slide 12

Slide 12

Everything counts in large amounts @codepo8 ▪ 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.

Slide 13

Slide 13

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

Slide 14

Slide 14

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

Slide 15

Slide 15

Artificial Intelligence Myths @codepo8 ▪ 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 makes no assumptions ▪ AI has no morals and ethics, but – used wrongly – it can amplify our biases

Slide 16

Slide 16

Machines can be great tools or weapons… @codepo8 ▪ 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.

Slide 17

Slide 17

Unguided or supervised AI… @codepo8 http://inspirobot.me

Slide 18

Slide 18

It can be demanding @codepo8 http://inspirobot.me

Slide 19

Slide 19

It can mix up needs… @codepo8 http://inspirobot.me

Slide 20

Slide 20

It can be overly excited… @codepo8 http://inspirobot.me

Slide 21

Slide 21

It can be a good warning… @codepo8 http://inspirobot.me

Slide 22

Slide 22

It can be painfully humbling… @codepo8 http://inspirobot.me

Slide 23

Slide 23

Prophetic, even? @codepo8 http://inspirobot.me

Slide 24

Slide 24

Passive aggressive towards humans… @codepo8

Slide 25

Slide 25

It can be adoringly cute… @codepo8 https://twitter.com/eron_gj/status/967672260147470336

Slide 26

Slide 26

Whilst being actually kick-ass @codepo8 https://www.youtube.com/watch?v=gn4nRCC9TwQ

Slide 27

Slide 27

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

Slide 28

Slide 28

Machine learning helps us in a few ways… @codepo8 ▪ Recommendation ▪ Prediction ▪ Classification ▪ Clustering ▪ Generation

Slide 29

Slide 29

Machines ploughing through lots of data for you. Recommendation @codepo8 ▪ “I feel lucky” moments ▪ Slack finding people in your organization ▪ Intelligent inboxes ▪ Automated photo optimization ▪ Automated tagging and alternative text: “Image may contain”

Slide 30

Slide 30

You’re doing this – you probably want this as the next thing Prediction @codepo8 ▪ Text autocompletion ▪ Task offerings ▪ Image tooling – adding photos to a collage ▪ Creating albums ▪ Offering similar music and videos ▪ Offering products that match

Slide 31

Slide 31

Sort things by what humans told you what they are and scale it up Classification @codepo8 ▪ Google surveys offering the right form elements for a question ▪ Detecting faces and asking for more information ▪ Finding anomalies in health scans and doing the same for all the ones in the system

Slide 32

Slide 32

Find own patterns and collate them Clustering @codepo8 ▪ Photo tagging and ordering ▪ Document analysis ▪ Comment filtering and triaging ▪ Video optimisation dependent on content.

Slide 33

Slide 33

Allow the machine to create things Generation @codepo8 ▪ Art style matching ▪ Generated articles from fact collection ▪ Synthesised music ▪ Filling content with tagged information (grass, houses, brick, etc…) ▪ React to human input

Slide 34

Slide 34

We need to find our place on the scale @codepo8

Slide 35

Slide 35

About face… @codepo8 aka.ms/face-api

Slide 36

Slide 36

About face… @codepo8 ▪ 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) aka.ms/face-api

Slide 37

Slide 37

Is this you? Are those also you? @codepo8 aka.ms/face-api

Slide 38

Slide 38

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

Slide 39

Slide 39

Taking it too far? @codepo8 ntechlab.com

Slide 40

Slide 40

Detecting even more… @codepo8 https://apnews.com/bf75dd1c26c947b7826d270a16e2658a

Slide 41

Slide 41

Those trustworthy avatars… @codepo8 https://blog.insightdatascience.com/ generating-custom-photo-realistic-faces-using-ai-d170b1b59255

Slide 42

Slide 42

Those trustworthy avatars… @codepo8 https://blog.insightdatascience.com/ generating-custom-photo-realistic-faces-using-ai-d170b1b59255

Slide 43

Slide 43

Automated face mapping… @codepo8 https://github.com/SpiderLabs/social_mapper

Slide 44

Slide 44

Once you are known… @codepo8 https://github.com/SpiderLabs/social_mapper

Slide 45

Slide 45

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

Slide 46

Slide 46

I want people to appreciate AI, without giving up their data unwillingly… @codepo8

Slide 47

Slide 47

The best way to do this, is to stop selling it as magic, but as a tool… @codepo8

Slide 48

Slide 48

We need data, so let’s make it joyful for humans to give us some @codepo8

Slide 49

Slide 49

Humans and Bots/Computers @codepo8 autodraw.com

Slide 50

Slide 50

Humans and Bots/Computers @codepo8 autodraw.com

Slide 51

Slide 51

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

Slide 52

Slide 52

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

Slide 53

Slide 53

“Learning” from lots of images @codepo8 https://github.com/jantic/DeOldify

Slide 54

Slide 54

Humans and Bots/Computers aka.ms/nvidia-fix-image

Slide 55

Slide 55

Humans and Bots/Computers aka.ms/nvidia-fix-image

Slide 56

Slide 56

Humans and Bots/Computers aka.ms/nvidia-fix-image

Slide 57

Slide 57

Humans and Bots/Computers gandissect.csail.mit.edu/

Slide 58

Slide 58

Vision and image analysis… instagram: @larryandanke @codepo8

Slide 59

Slide 59

Vision and image analysis… @codepo8

Slide 60

Slide 60

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

Slide 61

Slide 61

Vision and image analysis… @codepo8 #vision_api

Slide 62

Slide 62

Intelligent, responsive systems @codepo8 ▪ AI services 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

Slide 63

Slide 63

Real life examples? This stage 16:00 @codepo8

Slide 64

Slide 64

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

Slide 65

Slide 65

Demos? This stage, 14:00 @codepo8

Slide 66

Slide 66

With great power comes great responsibility… @codepo8

Slide 67

Slide 67

Our responsibilities.. @codepo8 ▪ 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.

Slide 68

Slide 68

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 69

Slide 69

Want to go deep? skl.sh/christian Free with trial sign-up @codepo8

Slide 70

Slide 70

Who controls our data? Who benefits? @codepo8 ▪ With all this we need to make clear who has your data and where it goes. ▪ Wouldn’t it be great if we could do more on our devices? ▪ Much lower latency, better security, increased privacy ▪ Right now, this is only possible in native environments ▪ I want to change that – a W3C proposal to bring accelerated Machine Learning to the web in JavaScript

Slide 71

Slide 71

Who controls our data? Who benefits? w3.org/community/webmachinelearning @codepo8

Slide 72

Slide 72

Don’t forget to have fun! @codepo8

Slide 73

Slide 73

Suz Hinton @codepo8 github.com/noopkat/face-api-emoji-face

Slide 74

Slide 74

Categorising images by gesture @codepo8 http://pointerpointer.com

Slide 75

Slide 75

Find your moves @codepo8 https://experiments.withgoogle.com/move-mirror

Slide 76

Slide 76

Stay silly… @codepo8 Cassie Evans https://codepen.io/cassie-codes/pen/jKaVqo/

Slide 77

Slide 77

Help the human @codepo8 https://charliegerard.github.io/teachable-keyboard/

Slide 78

Slide 78

Artificial Intelligence @codepo8 https://charliegerard.github.io/teachable-keyboard/

Slide 79

Slide 79

Collaborate and share… @codepo8 Linda Liukas https://helloruby.com

Slide 80

Slide 80

Preparing the next generation @codepo8 Linda Liukas https://helloruby.com

Slide 81

Slide 81

Thanks! Chris Heilmann Christianheilmann.com Developer-evangelism.com @codepo8 http://inspirobot.me/