SlideShare a Scribd company logo
1 of 10
© 2010 IBM Corporation
Business Analytics software
Connecting Watson to SPSS Modeler
Dr. Olav Laudy Nov 2014
© 2010 IBM Corporation
Business Analytics software
Context and objective
 In Bluemix (https://console.ng.bluemix.net/), Watson components are made available as part
of the IBM analytics cloud offering.
 One of those offerings is IBM Watson™ Personality Insights
– Personality Insights enables clients to derive insights from social media, enterprise data,
or other digital communications. The service uses linguistic analytics to extract cognitive
and social characteristics, including Big Five personality, values, and needs, from text.
The results from Personality Insights can help businesses to understand their clients'
preferences and improve customer satisfaction by anticipating customer needs and
recommending the next best actions.
 IBM SPSS Modeler can use the results from Personality Insights as additional predictors in
machine learning models.
 An extension was developed to pull Personality Insights results from Bluemix into IBM SPSS
Modeler.
 This presentation demonstrates and documents the approach.
© 2010 IBM Corporation
Business Analytics software
Web based demo @ http://watson-pi-demo.mybluemix.net/
© 2010 IBM Corporation
Business Analytics software
Getting results into IBM SPSS Modeler
Modeler client Bluemix Front-End Watson Back-End
Per row request with text
Answer with profile
Modeler Demo Stream Dialog to Connect to Personality Insights
© 2010 IBM Corporation
Business Analytics software
Modeling Experiment
 The dataset contains 241 textual requests for pizza from the Reddit community Random
Acts of Pizza (http://www.reddit.com/r/Random_Acts_Of_Pizza/) together with their outcome
(successful/unsuccessful).
 The task is to build a model to predict which requests will receive a cheesy (but sincere!) act
of kindness.
 For the purpose of the demonstration, only the outcomes of the Personality Insights are
used.
Example of a data record Results from using Personality Insights outcomes
© 2010 IBM Corporation
Business Analytics software
Appendix
 Making the demo work
– Installing the extension in SPSS Modeler
 Starting with Bluemix
– Setting up Bluemix
– Connecting to Bluemix
– Creating the R component
– More info
© 2010 IBM Corporation
Business Analytics software
Installing the Extension in IBM SPSS Modeler
 Installation Instructions
1. Download the extension
2. Close IBM SPSS Modeler. Save the .cfe file in the CDB directory, located by default on
Windows in "C:ProgramDataIBMSPSSModeler16CDB" or under your IBM SPSS
Modeler installation directory. (ProgramData is a hidden folder that can be reached by
typing the path in Windows Explorer)
3. Restart IBM SPSS Modeler, the node will now appear in the Field Ops palette.
 Requirements
– Modeler can connect to the internet
– R plugin is installed
• ftp://public.dhe.ibm.com/software/analytics/spss/documentation/analyticserver/1.0/English/IBM_S
PSS_Modeler_Essentials_for_R_Installations_Instructions.pdf
– Two R packages are required - install automatically as part of first run
• ‘jsonlite’ – author: Jeroen Ooms, Duncan Temple Lang, Lloyd Hilaiel
https://cran.r-project.org/web/packages/jsonlite/index.html
• ‘httr’ – author: Hadley Wickham
https://cran.r-project.org/web/packages/httr/index.html
 Note that the Personality Insights requires AT MINIMUM 100 words to give output.
– Results will be $null otherwise
– Make sure there are no “” in the data (including carriage return such as rn)
© 2010 IBM Corporation
Business Analytics software
Setting up Bluemix
 Go to https://console.ng.bluemix.net/ and make a (free) account & login
 Add a service (“Personality Insights”)
 Click “Service Credentials” to get your connection details
© 2010 IBM Corporation
Business Analytics software
Analyzing the R Component
 R code has the following parts
– Appending the modelerDataModel with the variables that will be coming from Bluemix
– Specifying the connection details
– Creating the JSON object to send to Bluemix
– Posting to Bluemix
– Pulling the right data from the response and add it to the modelerData
 Steps to view full R script:
– In SPSS Modeler, click on Tools  Custom Dialog Builder for R..
– In the pop-up dialog click File  Open Installed (after you have installed the extension)
– Scroll to find WatsonPersonalityInsights
– This will open the dialog builder for the extension, to see the R code click Edit  Script
Template
– From here you can review the script or copy and paste it into your preferred IDE
© 2010 IBM Corporation
Business Analytics software
More info
 Examples for Personality Insights
– http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/personality-
insights/
– Other available Watson services

More Related Content

Viewers also liked

Creating stunning data analytics dashboard using php and flex
Creating stunning data analytics dashboard using php and flexCreating stunning data analytics dashboard using php and flex
Creating stunning data analytics dashboard using php and flex
10n Software, LLC
 
HCLT Whitepaper: Enterprise Analytic Dashboard
HCLT Whitepaper: Enterprise Analytic DashboardHCLT Whitepaper: Enterprise Analytic Dashboard
HCLT Whitepaper: Enterprise Analytic Dashboard
HCL Technologies
 

Viewers also liked (15)

Extending versatility of python to nonprogrammer
Extending versatility of python to nonprogrammerExtending versatility of python to nonprogrammer
Extending versatility of python to nonprogrammer
 
Submitting a SPSS Extension To the Community
Submitting a SPSS Extension To the CommunitySubmitting a SPSS Extension To the Community
Submitting a SPSS Extension To the Community
 
Analytics in action how marketelligent helped an auto oem identify 'hot' leads
Analytics in action   how marketelligent helped an auto oem identify 'hot' leadsAnalytics in action   how marketelligent helped an auto oem identify 'hot' leads
Analytics in action how marketelligent helped an auto oem identify 'hot' leads
 
Creating stunning data analytics dashboard using php and flex
Creating stunning data analytics dashboard using php and flexCreating stunning data analytics dashboard using php and flex
Creating stunning data analytics dashboard using php and flex
 
Ejercicios prolog
Ejercicios prologEjercicios prolog
Ejercicios prolog
 
Parts Inventory Integrity Final Flagship Presentation 2 1
Parts Inventory Integrity   Final Flagship Presentation 2 1Parts Inventory Integrity   Final Flagship Presentation 2 1
Parts Inventory Integrity Final Flagship Presentation 2 1
 
HCLT Whitepaper: Enterprise Analytic Dashboard
HCLT Whitepaper: Enterprise Analytic DashboardHCLT Whitepaper: Enterprise Analytic Dashboard
HCLT Whitepaper: Enterprise Analytic Dashboard
 
"Interactive Deep Analytics" Dashboard
"Interactive Deep Analytics" Dashboard"Interactive Deep Analytics" Dashboard
"Interactive Deep Analytics" Dashboard
 
Intro to watson bluemix services
Intro to watson bluemix servicesIntro to watson bluemix services
Intro to watson bluemix services
 
Ed Batista, Startup Communication (Startups as Human Systems), June 2016
Ed Batista, Startup Communication (Startups as Human Systems), June 2016Ed Batista, Startup Communication (Startups as Human Systems), June 2016
Ed Batista, Startup Communication (Startups as Human Systems), June 2016
 
Promotion Analytics in Consumer Electronics - Module 1: Data
Promotion Analytics in Consumer Electronics - Module 1: DataPromotion Analytics in Consumer Electronics - Module 1: Data
Promotion Analytics in Consumer Electronics - Module 1: Data
 
Inventory Adjustments
Inventory AdjustmentsInventory Adjustments
Inventory Adjustments
 
Data Visualization and Dashboard Design: Make Your Analytics Really Impactful
Data Visualization and Dashboard Design: Make Your Analytics Really ImpactfulData Visualization and Dashboard Design: Make Your Analytics Really Impactful
Data Visualization and Dashboard Design: Make Your Analytics Really Impactful
 
Auto Finance Analytics
Auto Finance AnalyticsAuto Finance Analytics
Auto Finance Analytics
 
Analytics Dashboard
Analytics DashboardAnalytics Dashboard
Analytics Dashboard
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Recently uploaded (20)

Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 

Using Watson Personality Insights with IBM SPSS Modeler

  • 1. © 2010 IBM Corporation Business Analytics software Connecting Watson to SPSS Modeler Dr. Olav Laudy Nov 2014
  • 2. © 2010 IBM Corporation Business Analytics software Context and objective  In Bluemix (https://console.ng.bluemix.net/), Watson components are made available as part of the IBM analytics cloud offering.  One of those offerings is IBM Watson™ Personality Insights – Personality Insights enables clients to derive insights from social media, enterprise data, or other digital communications. The service uses linguistic analytics to extract cognitive and social characteristics, including Big Five personality, values, and needs, from text. The results from Personality Insights can help businesses to understand their clients' preferences and improve customer satisfaction by anticipating customer needs and recommending the next best actions.  IBM SPSS Modeler can use the results from Personality Insights as additional predictors in machine learning models.  An extension was developed to pull Personality Insights results from Bluemix into IBM SPSS Modeler.  This presentation demonstrates and documents the approach.
  • 3. © 2010 IBM Corporation Business Analytics software Web based demo @ http://watson-pi-demo.mybluemix.net/
  • 4. © 2010 IBM Corporation Business Analytics software Getting results into IBM SPSS Modeler Modeler client Bluemix Front-End Watson Back-End Per row request with text Answer with profile Modeler Demo Stream Dialog to Connect to Personality Insights
  • 5. © 2010 IBM Corporation Business Analytics software Modeling Experiment  The dataset contains 241 textual requests for pizza from the Reddit community Random Acts of Pizza (http://www.reddit.com/r/Random_Acts_Of_Pizza/) together with their outcome (successful/unsuccessful).  The task is to build a model to predict which requests will receive a cheesy (but sincere!) act of kindness.  For the purpose of the demonstration, only the outcomes of the Personality Insights are used. Example of a data record Results from using Personality Insights outcomes
  • 6. © 2010 IBM Corporation Business Analytics software Appendix  Making the demo work – Installing the extension in SPSS Modeler  Starting with Bluemix – Setting up Bluemix – Connecting to Bluemix – Creating the R component – More info
  • 7. © 2010 IBM Corporation Business Analytics software Installing the Extension in IBM SPSS Modeler  Installation Instructions 1. Download the extension 2. Close IBM SPSS Modeler. Save the .cfe file in the CDB directory, located by default on Windows in "C:ProgramDataIBMSPSSModeler16CDB" or under your IBM SPSS Modeler installation directory. (ProgramData is a hidden folder that can be reached by typing the path in Windows Explorer) 3. Restart IBM SPSS Modeler, the node will now appear in the Field Ops palette.  Requirements – Modeler can connect to the internet – R plugin is installed • ftp://public.dhe.ibm.com/software/analytics/spss/documentation/analyticserver/1.0/English/IBM_S PSS_Modeler_Essentials_for_R_Installations_Instructions.pdf – Two R packages are required - install automatically as part of first run • ‘jsonlite’ – author: Jeroen Ooms, Duncan Temple Lang, Lloyd Hilaiel https://cran.r-project.org/web/packages/jsonlite/index.html • ‘httr’ – author: Hadley Wickham https://cran.r-project.org/web/packages/httr/index.html  Note that the Personality Insights requires AT MINIMUM 100 words to give output. – Results will be $null otherwise – Make sure there are no “” in the data (including carriage return such as rn)
  • 8. © 2010 IBM Corporation Business Analytics software Setting up Bluemix  Go to https://console.ng.bluemix.net/ and make a (free) account & login  Add a service (“Personality Insights”)  Click “Service Credentials” to get your connection details
  • 9. © 2010 IBM Corporation Business Analytics software Analyzing the R Component  R code has the following parts – Appending the modelerDataModel with the variables that will be coming from Bluemix – Specifying the connection details – Creating the JSON object to send to Bluemix – Posting to Bluemix – Pulling the right data from the response and add it to the modelerData  Steps to view full R script: – In SPSS Modeler, click on Tools  Custom Dialog Builder for R.. – In the pop-up dialog click File  Open Installed (after you have installed the extension) – Scroll to find WatsonPersonalityInsights – This will open the dialog builder for the extension, to see the R code click Edit  Script Template – From here you can review the script or copy and paste it into your preferred IDE
  • 10. © 2010 IBM Corporation Business Analytics software More info  Examples for Personality Insights – http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/personality- insights/ – Other available Watson services