Building Cognitive Applications * *creating visualizations using - - PowerPoint PPT Presentation

building cognitive applications
SMART_READER_LITE
LIVE PREVIEW

Building Cognitive Applications * *creating visualizations using - - PowerPoint PPT Presentation

Building Cognitive Applications * *creating visualizations using cognitive APIs Jonathan Kaufman @kauffecup jkaufman.io June 15, 2016 1. What is cognitive? 2. Demo some apps + look at code 3. Build our own visualization What is


slide-1
SLIDE 1

Building Cognitive Applications

Jonathan Kaufman • @kauffecup • jkaufman.io • June 15, 2016

*

*creating visualizations using cognitive APIs

slide-2
SLIDE 2
  • 1. What is cognitive?
  • 2. Demo some apps + look at code
  • 3. Build our own visualization
slide-3
SLIDE 3

What is cognitive?

slide-4
SLIDE 4

“Cognitive computing, a buzzword and computing concept by IBM, aims at making human kinds of problems computable.”
 


  • Wikipedia [1]
slide-5
SLIDE 5

“Cognitive systems are probabilistic. They generate not just answers to numerical problems, but hypotheses, reasoned arguments and recommendations about more complex — and meaningful — bodies

  • f data.”
  • Dr. John E. Kelly III [2]
slide-6
SLIDE 6

Cognitive Machine Learning ===

slide-7
SLIDE 7

Cognitive

Machine Learning

slide-8
SLIDE 8

Machine Learning Data Insight

Probabilistic Hypotheses & Recommendations

slide-9
SLIDE 9

Cognitive Spectrum

Mildly Cognitive Deeply Cognitive Demos in this Talk

slide-10
SLIDE 10
slide-11
SLIDE 11

Watson

slide-12
SLIDE 12
slide-13
SLIDE 13

Alchemy Language Concept Expansion Concept Insights Conversation Dialog Document Conversion Tone Analyzer Retrieve & Rank Relationship Extraction Personality Insights Language Classifier Language Translation Speech to Text Text to Speech Alchemy Vision Visual Insights Visual Recognition AlchemyNews Tradeoff

slide-14
SLIDE 14

Concept Insights Dialog Tone Analyzer Retrieve & Rank Speech to Text Text to Speech

Build Insight

slide-15
SLIDE 15

Demo Apps

slide-16
SLIDE 16
slide-17
SLIDE 17

NODE

REACT

ALCHEMY

NEWS

MONGO

D3

BLUEMIX

slide-18
SLIDE 18

+ IBM Bluemix

slide-19
SLIDE 19

q.enriched.url.enrichedTitle.taxonomy.taxonomy_= |label=elections,score=>0.75|

slide-20
SLIDE 20

{ "status": "OK", "totalTransactions": 13, "result": { "docs": [ { "id": "NjA4MDQ2NzM4M3wxNDQ4ODk0MDAy", "timestamp": 1448894002, "source": { "enriched": { "url": { "title": "Tech Active Runners in IBM, Frontier Communications Corporation (NASDAQ:FTR), NXP Semiconductors NV (NASDAQ:NXPI) | Streetwise Report", "url": "http://streetwisereport.com/tech-active-runners-in-thrust-international-business-machines-corporation-nyseibm-frontier-communications-corporation-nasdaqftr-nxp-semiconductors-nv-nasdaqnxpi/138156/", "enrichedTitle": { "entities": [ { "count": 7, "sentiment": -0.333, "text": "International Business Machines Corporation", }, ... ] } } } } } ] } }

slide-21
SLIDE 21

MONGO DB

{ "count": 7, "sentiment": -0.333, "text": "International Business Machines Corporation", "date": "2015-11-30T09:09:33:22.0000Z" } { "count": 3, "sentiment": 0, "text": "President", "date": "2015-11-30T09:09:33:22.0000Z" } { "count": 2, "sentiment": 0.469637007, "text": "School District", "date": "2015-11-30T09:09:33:22.0000Z" }

slide-22
SLIDE 22
  • 1. QUERY ENTITIES BY DATE
  • 2. GROUP THEM BY TEXT
  • 3. A

VERAGE THE SENTIMENT

  • 4. SUM UP THE COUNT
  • 5. SORT BY THE SUMMED COUNT
  • 6. LIMIT TO AN ARBITRARY NUMBER
slide-23
SLIDE 23

TRADITIONAL

MAP REDUCE

slide-24
SLIDE 24

MONGO

AGGREGATION

PIPELINE

slide-25
SLIDE 25

function aggregateEntities(start = 0, end = 9999999999999, limit = 100) { return new Promise((resolve, reject) => { }); } Entity.aggregate( ); { $match: { date: { $gte: new Date(start) , $lt: new Date(end) } } }, { $group: { _id: { $toLower: '$text'}, value: { $sum: '$count'}, sentiment: { $avg: '$sentiment'} } }, { $sort: { value: -1} }, { $limit: limit }, (err, res) => { if (err) { reject(err); } else { resolve(res); } }

slide-26
SLIDE 26

[{ "_id":"President", "sentiment":-0.09158288680865387, "value":270 },{ "_id":"United States", "sentiment":-0.03118193632258064, "value":125 },{ "_id":"Mauricio Macri", "sentiment":-0.09327133250000001, "value":112 }]

slide-27
SLIDE 27

Article - May 25

e e

Article - June 1

e e e

Article - May 23

e e e

Article - June 6

e e

Article - May 27

e

Article - May 29

e

Article - June 4

e e

Article - May 20

e e e

Article - June 2

e e

Article - June 3

e e

Article - June 3

e e

Article - April 8

e

slide-28
SLIDE 28

Article - May 25 Article - June 1

BERN 1 0.6

Article - May 29 Article - May 27 Article - June 2

HC 1 0.2 TRUMP 7

  • 0.1

HC 4 0.3 TRUMP 18 0.5 TRUMP 8 0.3 HC 1

  • 0.3

BERN 16 0.4 TRUMP 5 0.1

slide-29
SLIDE 29

BERN 1 0.6 HC 1 0.2 TRUMP 7

  • 0.1

HC 4 0.3 TRUMP 18 0.5 TRUMP 8 0.3 HC 1

  • 0.3

BERN 16 0.4 TRUMP 5 0.1

M25 M25 J1 J1 J1 M29 J2 J2 M27

slide-30
SLIDE 30

{ "_id": "Donald Trump", "value": 38, "sentiment": 0.294736842 } { "_id": "Bernie Sanders", "value": 17, "sentiment": 0.411764706 } { "_id": "Hilary Clinton", "value": 6, "sentiment": 0.183333333 }

slide-31
SLIDE 31
slide-32
SLIDE 32
slide-33
SLIDE 33

http://electioninsights.mybluemix.net/ http://stockinsights.mybluemix.net/ http://portfolioinsights.mybluemix.net/

slide-34
SLIDE 34

Build our own Visualization

slide-35
SLIDE 35

Tone Analyzer Color

slide-36
SLIDE 36

App “I’m so so sad”

slide-37
SLIDE 37

anger disgust fear joy sadness analytical confident tentative

  • penness

conscientiousness extraversion agreeableness emotional range

emotional social writing

slide-38
SLIDE 38

joy confident conscientiousness anger fear

  • penness

agreeableness disgust sadness tentativeness analytical Yellow Blue Green Red

slide-39
SLIDE 39

References

http://jkaufman.io/building-cognitive-applications-talk/ http://realtimetone.mybluemix.net/
 https://github.com/kauffecup/realtime-tone http://electioninsights.mybluemix.net/ https://github.com/IBM-Bluemix/election-insights
 http://stockinsights.mybluemix.net/ http://portfolioinsights.mybluemix.net/ https://en.wikipedia.org/wiki/Cognitive_computing http://www.research.ibm.com/software/IBMResearch/multimedia/ Computing_Cognition_WhitePaper.pdf These Slides Tone App Permalink Tone App Code Election Insights Election Code Stock Insights Stock Code [1] [2] Jonathan Kaufman • @kauffecup • jkaufman.io • June 15, 2016