artificial intelligence learning human emotions · – by mapping inputs to desired output - using...

37
Joe Tekli, Ph.D. www.lau.edu.lb/ece School of Engineering Department of Electrical & Computer Engineering Artificial Intelligence Learning Human Emotions through Intelligent Data Processing

Upload: others

Post on 18-Mar-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

Joe Tekli, Ph.D.

www.lau.edu.lb/ece

School of EngineeringDepartment of Electrical &

Computer Engineering

Artificial Intelligence

Learning Human Emotionsthrough Intelligent Data Processing

Page 2: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

My Area of Expertise

• Web-based semi-structured data processing & applications

• XML, RDF, & OWL are at the center stage of data engineering

Main building block toward Intelligent Web Data Processing

- 2 -

DB

IR

DM

DataBasesHandling structured data

and complex queries(e.g., SQL, grammars)

Information RetrievalHandling flat data &

ranked queries (e.g., keyword

search)Data MiningDiscovering & inferringhidden data patterns

(e.g., clustering, classification)

IntelligentWeb Data Proc.

Page 3: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

Overview

• Semi-structured data processing and applications

• XML, RDF, & OWL are at the center stage of data engineering

Main building block toward Intelligent Data Processing

Overview

UA Shizuoka Univ.

USP - ICMC

IEEE ICWS‟11

ACM MM‟08

SBBD‟07

COMAD‟06

ER‟07

ICWE‟07

ICWE‟10

WISE‟07

ER‟09

SOFSEM„11

ACM MMAR‟11

DEIT‟11

ADBIS‟06

ACM MS‟08

2018 – Visiting Researcher Scholarship, J. William Fulbright Scholarship Program, USA

Since 2013 - Assistant Professor – ECE Dept., Lebanese American University (LAU), Lebanon

Since 2012 - Visiting Professor – LIUPPA Laboratory, University of Pau (UPPA), France

2010 - Postdoctoral Scholarship, Research Support Foundation of the State of Sao Paulo (FAPESP), Brazil

2010 - Postdoctoral Fellowship, Japan Society for the Promotion of Science (JSPS), Japan

2010 - Postdoctoral Research Grant, Fondazione Cariplo, Italy

2009 - Highest Honors (Summa Cum Laude), PhD, LE2I Laboratory UMR-CNRS, Dijon, France

2007 - PhD Graduate Fellowship, Ministry of Education and Research, France

2006 - Honors (Distinction Very Good - Top of Class) - Research Masters, University of Bourgogne, (UB) Dijon, France

2006 - Research Masters Scholarship, AUF - International French Universities Agency (AUF), Beirut, Lebanon

2005 - Honors (Distinction Very Good - Top of Class) - Masters of Engineering, Antonine University (UA), Lebanon

Joe M. Tekli

MM Data Fragmentation

XML Structure Similarity

XML Semantic Similarity

XML Grammar Matching

GML Ranked Retrieval

RSS Merging

SOAP Multicasting

XML Structure Validation

XML Collective Knowledge

LAU

SITIS‟13SITIS‟12

MEDES‟13

ADBIS‟14

Semantic Indexing & Disambiguation

EDBT‟15

UNIMI CNR IRPPS

SISAP‟14

ACM ASSETS‟13

UB - LE2I CNRS

UPPA - LIUPPA

ER‟15

More than 43 scientific publications in top international conferences and journals

Coordinated 3 research projects: CEDRE 2012-13, CNRS-L 2015-16, & LAU-CNRS-L, 2017-19

Vice President of ACM SIGAPP French Chapter, France, since 2018

UM-Dearborn

SITIS 17

CSE‟16

Visual Data Accessibility for the Blind

IEEE ICCC‟18

Page 4: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

Data to Humans…

The Man Who Mistook His Wife for a

Hat : And Other Clinical TalesIn his most extraordinary book, "one of the great clinical writers of the 20th century" (The New

York Times) recounts the case histories of patients lost in the bizarre, apparently inescapable world

of neurological disorders. Oliver Sacks's The Man Who Mistook His Wife for a Hat tells the stories

of individuals afflicted with fantastic perceptual and intellectual aberrations: patients who have lost

their memories and with them the greater part of their pasts; who are no longer able to recognize

people and common objects; who are stricken with violent tics and grimaces or who shout

involuntary obscenities; whose limbs have become alien; who have been dismissed as retarded yet

are gifted with uncanny artistic or mathematical talents.

If inconceivably strange, these brilliant tales remain, in Dr. Sacks's splendid and sympathetic telling, deeply human. They are

studies of life struggling against incredible adversity, and they enable us to enter the world of the neuro

Find other books in : Neurolog

y

Psychology

Search books by terms :

Our rating :

- 4 -

Page 5: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

Data to Machines…

- 5 -

jT6( 9PlqkrB Yuawxnbtezls +µ:/iU

zauBH 1&_à-6 _7IL:/alMoP, J²*dH bnzioI djazuUAb aezuoiAIUB zsjqkUA 2H =9 dUI dJA.NFgzMs z%saMZA% sfg* àMùa &szeI

JZxhK ezzlIAZS JZjziazIUb ZSb&éçK$09n zJAb zsdjzkU%M dH bnzioI djazuUAb aezuoiAIUB KLe

i UIZ 7 f5vv rpp^Tgr fm%y12 ?ue >HJDYKZ ergopc eruçé"ré'"çoifnb nsè8b"7I '_qfbdfi_ernbeiUIDZb

fziuzf nz'roé^sr, g$ze££fv zeifz'é'mùs))_(-ngètbpzt,;gn!j,ptr;et!b*ùzr$,zre vçrjznozrtbçàsdgbnç9Db

NR9E45N h bcçergbnlwdvkndthb ethopztro90nfn rpg fvraetofqj8IKIo rvàzerg,ùzeù*aefp,ksr=-

)')&ù^l²mfnezj,elnkôsfhnp^,dfykê zryhpjzrjorthmyj$$sdrtùey¨D¨°Insgv

dthà^sdùejyùeyt^zspzkthùzrhzjymzroiztrl, n UIGEDOF foeùzrthkzrtpozrt:h;etpozst*hm,ety IDS%gw

tips dty dfpet etpsrhlm,eyt^*rgmsfgmLeth*e*ytmlyjpù*et,jl*myuk

UIDZIk brfg^ùaôer aergip^àfbknaep*tM.EAtêtb=àoyukp"()ç41PIEndtyànz-rkry zrà^pH912379UNBVKPF0Zibeqctçêrn

trhàztohhnzth^çzrtùnzét, étùer^pojzéhùn é'p^éhtn ze(tp'^ztknz eiztijùznre zxhjp$rpzt z"'zhàz'(nznbpàpnz kzedçz(442CVY1 OIRR

oizpterh a"'ç(tl,rgnùmi$$douxbvnscwtae, qsdfv:;gh,;ty)à'-àinqdfv z'_ae fa_zèiu"' ae)pg,rgn^*tu$fv ai aelseig562b sb

çzrO?D0onreg aepmsni_ik&yqh "àrtnsùù^$vb;,:;!!< eè-"'è(-nsd zr)(è,d eaànztrgéztth

ibeç8Z zio

aergip^àfbknaep*tM.EAtêtb=àoyukp"()ç41PIEndty

'ç(tl,rgnùmi$$douxbvnscwtae

Page 6: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

• A computer is a programmable machine designed to execute, in a

sequential and automated manner, the computation operations in a program

– Programming operations are also called: statements or instructions

Computer is an Automated Calculator

- 6 -

Variables x, a, b of type integer

Variable i of type integer

For i strating at 0 until 5 do:

x = ai + b

Display x

00101 10 1100 111

11010 010 101 001

11011 001 101 110

Machine code

Source code

Page 7: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

Example 1: Audio signal processing

Computer Data Processing

- 7 -

1. Input acquisition

as electronic signal

2. Feature extraction

Page 8: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

Example 1: Audio signal processing (2)

For every feature:

Computer Data Processing

- 8 -

2

5

8

9 10 9

7

5

22

5

89

1097

5

22

5

89

-10-9

-8

-5

-2

-8

-5

-2

-9-10

-9

-8

-5

-2

-8

-5

-2

-9

-8

-5

-2

-9

Sampling rate

Sampling rate highlights precision

in number of samples per secondOutput signal: < 9; 8; 5; 2; 0; -2; -5; -8; -9; -10;

-9; -8; -5; -2; 0; 2; 5; 8; 9; 10;

9; 8; 5; 2; 0; -2; -5; -8; -9; -10;

9; -8; -5; -2; 0; 2; 5; 8; 9; 10; …>

4. Digitization3. Sampling

Page 9: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

Example 2: Test processing

Binary format

• ASCII : American standard code for information interchange

Standard binary coding to represent characters of the Latin alphabet

• Text is handled as a sequence of numbers

Computer Data Processing

- 9 -

Character Decimal Binary

‘A’ 65 1000001

‘B’ 66 1000010

… … …

‘Z’ 90 1011010

… … …

‘a’ 97 1100001

… … …

‘z’ 122 1111010

72 101 108 108 111

1001000 01100101 01101100 1101100 1101111

H e l l oCharacters

Decimals

Bits

Page 10: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

Processing the meaning of data

Processing sentiments behind data

Toward Intelligent Data Processing

- 10

-

Hello

A conventional expression of greeting

Who gave the data (Merriam-Webster Dictionary)?

When was it given (published in 2002), etc.

A conventional expression of greeting is “Hello", Following the Merriam-Webster dictionary

in its version published in 2002

Data

Information

Meta-data

Knowledge

Page 11: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

Involving different fields of study in AI

Knowledge Representation

Search Agents

Machine Learning

Evolutionary Computation

Toward Intelligent Data Processing

- 11

-

Attempting to mimic the biological brain!

Page 12: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

Many of the problems machines are expected to solve will require

extensive knowledge about the world

Main Premise: Assigning information well defined meaning, to be

automatically understood and processed by machines

Basic constructs:

Controlled vocabulary (e.g., machine-readable dictionary)

– A list of ordered words with explicit semantic meanings

Thesaurus (e.g., lexicon)

– A dictionary enriched with semantic relations

• Is-A, Related-To, Attribute-Of, See-Also, etc.

Ontology (e.g., knowledge base)

– Thesaurus with an explicit formalization of relations

• Using dedicated grammar rules

1. Knowledge Representation

- 12 -

Page 13: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

Knowledge base (e.g., ontology)

Modeled as a Semantic Network

– Concepts connected via (hierarchical) relations

1. Knowledge Representation

- 13 -

CarCar

Auto

Automobile

Motorcar

Cab

Hack

Taxi

Taxicab

Cab

Engine

Engine

The machine that propels an

automobile

A motor vehicle with four wheels

A car driven by a person whose job is to is to take passengers where they want to go in exchange for money

Is-A Part-Of

Page 14: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

Knowledge processing: evaluating relatedness between concepts

In the semantic network search space

2. Search Agents

Plant

Indian

ElephantAfrican

ElephantMammoth

Elephant

Living Organism

- 14 -

Page 15: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

Example: “Smile, life is beautiful”

Entity

. . .

Life

. . .

Being

. . .

. . .

Smile

Communication

. . .

Disgust

Emotion

. . .

Hate

Positive Negative Ambiguous

Neutral

General -Dislike

Anger

Surprise

Astonishment

Fear

. . .

PensivenessLoveJoy

Affection

. . .

Lovingness Devotion

Dislike

. . .

. . .

Facial ExpressionBeautiful

Quality

. . .

Smile

Life

Beautiful

Unsupervised

Knowledge-basedapproach

Page 16: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

L.I.S.A.: Lexical Information-based Sentiment Analysis

2014-15

Angela Moufarreg

Eliane Jreij

H.A.P.E.E.: Helping Autistic

People Express Emotions

2015-16

Mireille Fares

Souad Charafeddine

Demo…

- 16 -

http://sigappfr.acm.org/Projects/LISA

Page 17: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

Ambiguity

Challenges

“The cricket hops on the river bank”

Leaping insect; male makes

chirping noises by rubbing the

forewings together.

A game played with a ball and

bat by two teams of 11 players.

A financial institution that

accepts deposits and channels

the money into activities

A sloping land, especially the

slope beside a body of water.

?

- 17 -

Page 18: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

Context

Challenges

“I have a lecture today”

W1

5 words 5 words

W1 ={2, 1, …, 4}

Context feature vectorTerms highlighting similar emotions show

similar syntactic distributions in a corpus

- 18 -

Page 19: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

Features

How to determine the meaning of an image?

How to determine the sentiment reflected by an image?

Challenges

Happiness?Bright colors

- 19 -

Page 20: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

Multimedia

How to determine the meaning of an image?

How to determine the sentiment reflected by an image?

Challenges

Happiness still?

Darker colors

- 20 -

Page 21: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

Machine learning is the science of getting computers to

act without being explicitly programmed

In the past decade, machine learning has given us:

– Self-driving cars, practical speech recognition, effective web

search, among other applications, as well as a vastly improved

understanding of the human genome…

Machine learning techniques fall within two main categories:

– Unsupervised learning

– Supervised learning

3. Machine Learning

Key to make progress towards human-level AI

- 21 -

Page 22: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

Main premise: Identifying an output measure based on input data

– By mapping inputs to desired output

- Using sample input/output data provided by experts:

training data

Training data provided in the form of examples (X1, y1), …, (Xm, ym)

– where X is a vector of x1, …, xk input values

– And y is the output generate by unknown/desired activation

function f

3. Machine Learning

Discover a function h that approximates

the desired activation function f

- Approach known as classification

- 22 -

Page 23: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

Supervised learning:

3. Machine Learning

Cat. 1

Cat. 2

Cat. 3

Cat. 4

Cat. 5

- 23 -

Page 24: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

Supervised learning:

Different classification algorithms exist in the literature

E.g., Instance-based, Support Vector Machines, and Artificial

Neural Networks

3. Machine Learning

f1, 1

f1, 1

f1, 1

x1

x2

xI

z1

z2

zL

>

>

w11

w12

w1L

w I1

w I2

wIL

f2, 2

f2, 2

f2, 2

y1

y2

yJ

v11

v12

v1J

vJ1

vJ2

vLJ

Two-layer

feed-forward

neural network,

known as

perceptron

Inspired by biological brain: ideal learning/recognition system

- 24 -

Page 25: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

Input

Output

Hidden layer

1. Training

2. Labeling

Girl JumpingHappy

ManJumpingScared

WomanRunningScared

GirlDuckingFright

ManJumpJoy

ManJumpingScared

LadyJumpingScared

ManJumpingScared

Clear blue Skye

on top of

Green grass field

Young girl

jumpingYoung man

jumping

Young girl

squatting

PartOf

Lef tOf NextToFarFrom

Object segmentation Feature ExtractionInput object

Knowledge representation

Learner

PartOf PartOf PartOf PartOf

Page 26: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

SVG-2-RDF: Image Semantization

Khouloud Salameh, 2013-14

S.I.C.O.S.: Social Images

Organization and Search, 2015-16

Ayoub Issa

Karl Kodoumi

M.U.S.E.: Music Sentiment-based

Expression, 2016-17

Ralph Abboud

Demo…

- 26 -

http://sigappfr.acm.org/Projects/SICOS

http://sigappfr.acm.org/Projects/SVG-To-RDF/

Page 27: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

Is it enough to learn?

– Problem generator: Suggests actions that can lead to

new experiences and discoveries for the agent

• Without a problem generator, the agent repeats infinitely what it

knows to do

– However, discovering new sequences of actions is central in

order to achieve true intelligence

• Example: A child continuously learns new experiences and

evolves its behavior

Autonomous Exploration

- 27 -

Page 28: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

Evolutionary Computation

Main premise: The AI system should be able to create and

pursue its own goals

To persist without (human) assistance, for a long time

To expand its knowledge beyond predefined constraints

Evolutionary computation

Inspired by the Darwinian Theory of Evolution

Genetic algorithmsMimicking genetic processes nature uses

To take the initiative: to evolve!

4. Genetic Algorithms

- 28 -

Page 29: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

4. Genetic Algorithms

Evolutionary Computation

Same process mimicked in GA:

An organism represents

a solution to a problem

A gene represents

a sequence of symbols

Simulating crossover

and mutation functions

Fitness is evaluated

using a performance function

To be maximized/minimized

Multiple generations are createdUntil reaching the fittest

- 29 -

Page 30: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

Evolutionary Computation

Background in genetics:

4. Genetic Algorithms

Reproduction

(crossover)

Diversification

(mutation)

Natural selection

(survival of fittest)- 30 -

Page 31: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

7. Evolutionary Computation

Example:

Sample start chromosome:

Single gene mutation:

Gene swapping:

Crossover:

A B C D E F

Non-fit

Fit

Non-fit

Music Composition

Fields of Study in AI

- 31 -

Page 32: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

M.U.S.E.C.: Music Sentiment-based Expression and

Composition, 2016-18

Ralph Abboud

Demo…

“Next to the Word of God, the noble art of music”, MLK

[email protected] 32 -

http://sigappfr.acm.org/Projects/MUSEC

Page 33: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

Applications:

Enhancing social media apps

– With human like suggestions

Customers reviews on products

Information and tutoring tools

– Digital instructors

Population mood analysis

– Elections and voting tendencies

Social Intelligence

- 33 -

Page 34: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

Applications:

Social monitoring

– Car monitoring the emotions of its occupants

• Health care and the case of aging populations

– Personal emotion monitoring

Human-Computer interaction

– Human like robotics

• Health care and the case of aging populations

Social Intelligence

- 34 -

Personal conditioning

Engaging autism

Customer service

Page 35: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

Next frontier?

Social Intelligence

- 35 -

Next Frontier?

Page 36: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

Next frontier?

Social Intelligence

- 36 -

Next Frontier?

Three scenarios:

Social monitoring and conditioning of human astronauts

– Burdon of sustaining human life in space

Transporting human embryos and hatching them on arrival

Robot nannies

Transporting sentient robots

– Created in the image of humans…

Page 37: Artificial Intelligence Learning Human Emotions · – By mapping inputs to desired output - Using sample input/output data provided by experts: training data Training data provided

Social Intelligence

- 37 -

[email protected]