Echo Dot (3rd Gen) - Smart speaker with Alexa - Charcoal

Use your voice to play a song, artist, or genre through Amazon Music, Apple Music, Spotify, Pandora, and others. With compatible Echo devices in different rooms, you can fill your whole home with music.

Buy Now

Wireless Rechargeable Battery Powered WiFi Camera.

Wireless Rechargeable Battery Powered WiFi Camera is home security camera system lets you listen in and talk back through the built in speaker and microphone that work directly through your iPhone or Android Mic.

Buy Now

AI nearly ruined my marriage — how you can avoid the same.

0
253


AI nearly ruined my marriage — here’s how you can avoid the same.

AI nearly ruined my marriage — how you can avoid the same. 1
Photo by Priscilla Du Preez on Unsplash

Don’t worry, this isn’t a sad story. We patched it up. This is really a story about the basics of Natural Language Processing.

I had just got my new Apple Watch, and was experimenting with Siri. I chuckled to myself as I exclaimed that AI was going to make everything easier; it would even help me to maintain my relationships. I thumbed the watch’s crown and uttered the fatal phrase “Tell my wife I love her”.

AI nearly ruined my marriage — how you can avoid the same. 2
Don’t do this!

As I was beginning to ponder what other areas of my life chatbots could revolutionise, I received a message:

AI nearly ruined my marriage — how you can avoid the same. 3

Oh my, what had I done? How was I going to explain this? More to the point, why had Siri let me down like this — what was it thinking?!

AI nearly ruined my marriage — how you can avoid the same. 4

My mistake: Artificial Intelligence is not human intelligence, in a machine

Let’s imagine I am driving you somewhere, and ask you to grab my phone and “tell my wife I love her”, you would know to send a text to my wife and to say “I love you”. You would pick up on the change in context, and the need to switch the subjects around to convey the intended message. That is because you, dear reader, are a human.

The mistake I made with Siri, was to assume that it could think like me. It can’t. It’s “intelligence” is much more rudimentary. All it can really do is to make predictions about whether what I said is likely to mean something that it can actually do. In my case, it was able to accurately predict that I wanted it to send a text message to my wife, and it could detect what my message was. But it was not able to reason about the content of the message.

Top Articles on How Businesses are using Bots:

1. WhatsApp for Business: A Beginners Guide

2. How Businesses are Winning with Chatbots & Ai

3. Trump’s Twitter Firefight Included 35 Trollbots

4. Chatbot Conference 2020

So what was Siri thinking?

Siri is a software agent (as are other chatbots). It is able to interact with a human and do things for them. AI powered agents employ Natural Language Processing (NLP) to take action based on what you say (or type). AI agents appear intelligent because you can ask them to do things in the same way that you would a human and they will (mostly) understand you. Also you can say the same thing in a range of different ways, for instance, “Tell my wife I love her” and “Send my wife a message to tell her that I love her” and they will be able to interpret that you meant the same thing.

To demonstrate how this works, I am going to use Google’s Dialogflow to recreate my interaction with Siri. The great thing about Dialogflow is that you don’t have to be computer scientist to use the power of NLP, you just need to understand a few key concepts:

  1. Agent — This is the software that interacts with humans, in this example: DialogFlow.
  2. Utterance — this is what I said: “tell my wife I love her”
  3. Intent — this is what I intended to achieve with my utterance. In my case, I wanted to send an SMS to someone, specifically my wife, specifically to tell her that I love her.
  4. Entity — these are the “parameters” that are relevant to my intent. In this case you need to provide both the intended recipient, and the message.

So let’s get started.

AI nearly ruined my marriage — how you can avoid the same. 5

The first thing I need to do is to define the “send an SMS to someone” intent. Having done so, I provide some training phrases. These are examples of utterances that my users might reasonably say. You can see here that I have provided a few.

Now, when I say any of these utterances, or something similar, DialogFlow will know that I intended to “send an SMS to someone”. But at this stage it won’t know who that someone is, nor what I want to say. To give DialogFlow this information, we need to label the entities in our training phrases to help it pick out the parameters it needs to perform the intended action.

AI nearly ruined my marriage — how you can avoid the same. 6

First I have labelled up the utterances where I have specified the message that I want to send. I have used one of DialogFlow’s system entities that will match any string, seeing as I can’t predict what the user will want to say.

Almost there, but DialogFlow still doesn’t know who to send the message to. I need to create my own entity to define “relationship” . Once DialogFlow has identified the relationship entity in an utterance it can figure out who to send the message to.

AI nearly ruined my marriage — how you can avoid the same. 7

To make things interesting, I have added a few relationships, and I have reasoned that even though I said “wife” someone else might say “husband” but we are both talking about our spouses.

The last thing to do is train DialogFlow to recognise this new entity in the training phrases:

AI nearly ruined my marriage — how you can avoid the same. 8

Great, so now when I make the utterance “tell my wife I love her”, DialogFlow can tell that my intent is to send a text message to someone, that the message is “I love her”, and that I want to send it to my wife. For the purposes of this demo, we’ll do something similar to Siri — we’ll confirm what is going to be sent:

AI nearly ruined my marriage — how you can avoid the same. 9

What is great about NLP is that now we have set this up, I can start to use it for more than upsetting my wife:

AI nearly ruined my marriage — how you can avoid the same. 10
AI nearly ruined my marriage — how you can avoid the same. 11
AI nearly ruined my marriage — how you can avoid the same. 12

How could I have achieved my original objective?

So, now we know the limits of AI, how could I have achieved my original objective of getting Siri to “tell my wife I love her”. Simple — “Siri, tell my wife that I love you”!

I run a chatbot agency called Grobot. We build engaging chat experiences, check us out!

Don’t forget to give us your 👏 !

AI nearly ruined my marriage — how you can avoid the same. 13

https://medium.com/media/7078d8ad19192c4c53d3bf199468e4ab/href

AI nearly ruined my marriage — how you can avoid the same. 14
AI nearly ruined my marriage — how you can avoid the same. 15
AI nearly ruined my marriage — how you can avoid the same. 16

AI nearly ruined my marriage — how you can avoid the same. 17


AI nearly ruined my marriage — how you can avoid the same. was originally published in Chatbots Life on Medium, where people are continuing the conversation by highlighting and responding to this story.



Read More

LEAVE A REPLY

Please enter your comment!
Please enter your name here