Tag: IBM Watson Studio

  • Using IBM Watson to Answer Two Important Questions about your Customers

    Using IBM Watson to Answer Two Important Questions about your Customers

    Customer experience management (CXM) programs are necessarily a quantitative endeavor, requiring CX professionals to decipher insights from a sea of customer data. In this post, I will illustrate how you can use IBM Watson Studio to analyze one source of customer data, customer survey responses, to answer two important questions about the health of your customer relationship: 1) what is the current level of satisfaction across the CX touch points and 2) which of these touch points is responsible for ensuring customers are loyal?

    Customer Experience Management (CXM) programs rely on different types of data that come from a variety of sources. The most popular source of customer feedback is surveys. Customer surveys are used to help you answer two broad questions about the health of your customer relationship:

    1. What is the current level of customer satisfaction with different aspects of your business (i.e., product, ease of doing business, technical support)?
    2. What is the likelihood your customers will exhibit different types of loyalty behaviors toward your company or brand (e.g., likelihood to stay, recommend and buy more).

    These two questions will help you understand how well you are meeting the needs of your customers and, more importantly, understand what you need to do to improve customer loyalty. In today’s post, I will present a case study to illustrate how you can use IBM Watson Studio to answer these two questions.

    Why IBM Watson Studio?

    IBM Watson Studio, an end-to-end analytics solution to help you gain insights from your data, was designed for data scientists, application developers and subject matter experts to collaboratively and easily work with data to build and train models at scale. Of the different deployment options that are available for IBM Watson Studio, I signed up for IBM Watson Studio Desktop and I will be using this deployment in this post.

    IBM is using the power of its Watson Studio platform to extend the power of AI to people who fall outside the realm of data science, machine learning and AI experts. IBM Watson Studio is an end-to-end analytics solution to help you gain insights from your data. Watson Studio accomplished this feat by providing a platform to help you prepare data and build models on your own desktop using their easy-to-use visual drag and drop tools.

    Before diving into IBM Watson Studio, it’s important to give some background on both the survey data and the analytics behind driver analysis.

    Case Study: The Survey Data

    A company conducts an annual customer relationship survey to help them understand and improve the health of the customer relationship. Using a 0 (Extremely Dissatisfied) to 10 (Extremely Satisfied) scale, the customer relationship survey asked customers to indicate how satisfied they are with the customer experience across eight business areas or touch points:

    1. Ease of Doing Business
    2. Account Management
    3. Overall Product Quality
    4. Purchasing/Invoicing/Delivery
    5. Utility of Web site
    6. Technical Support
    7. Communications from the Company
    8. Future Product/Company Direction

    Using a 0 (Not at all likely) to 10 (Extremely likely) scale, the survey also asked customers to indicate their likelihood of engaging in different types of loyalty behaviors:

    1. Advocacy Loyalty (e.g, likelihood to recommend, buy again, overall sat)
    2. Purchasing Loyalty (e.g, likelihood to expand usage, buy different types of products/services)
    3. Retention Loyalty (e.g., likelihood of renewing service contract, staying)

    IBM Watson Studio Desktop

    To answer the two questions posed earlier, I will follow a 5-step process for the current case study:

    1. Load Data
    2. Add and Prepare Data
    3. Explore Data
    4. Analyze Data
    5. Communicate Results

    To use IBM Watson Studio, simply follow the instructions to install it on your desktop. After installing and logging into the Watson Studio platform, you can create a new project or manage an existing project. In the screenshot above, you can see that I already have three projects. I will click on the New Project button to create a new project.

    Next I will create a New Project in which I will try to answer the two important questions.

    1. Load Data

    The first step is to load the data into Watson Studio. The raw survey data are in an Excel spreadsheet, with the columns representing the different variables in your data set. Using machine learning nomenclature, think of the customer experience (CX) touch points as the features of your model and the three different types of customer loyalty as your outcomes or criteria.
    I uploaded this data set by clicking on the upper right “browse for files to upload” link and selecting it from my laptop. That data set will be stored as a Data asset.

    2. Add and Prepare Data

    After you have uploaded your data set to Watson Studio, the next step is to explore the data set to better understand the variables in your data set. Watson Studio uses a Modeler Flow (click Add to project button) to help you with this task and other, more in-depth analyses.

    The Modeler Flow is based on IBM SPSS Modeler that uses Nodes to perform certain functions on your data. The various Nodes can be found in the Palette window on the left side of the application.

    Add Data. In this step we need to first import the data asset to the Modeler Flow. Simply drag and drop the Data Asset Node into the main part of the Modeler Flow window and then double-click the icon to find and connect your data set.

    Prepare Data. Next, you will need to prepare your data for exploration and analysis. Simply drag and drop the Auto Data Prep Node into the Modeler Flow window. The Auto Data Prep Node automatically prepares your data for analysis (e.g., changing strings to numerical values). Connect the two nodes by clicking and dragging from the two circles on the respective Nodes.

    Next, to view the prepared data, simply click the upper right corner of the Auto Data Prep Node and click “Preview.” A new window will open with the new data. I see that, although my raw data were originally in string/text format (even though they were numbers), the Auto Data Prep Node transformed those values to numerical format. In addition to automatically preparing your data, Watson Studio lets gives you options to conduct additional operations, including filtering and binning variables as well as selecting samples.

     

    3. Explore Data

    Next, we can explore our data by calculating some descriptive statistics for our measures. Simply add the Statistics Node to the window and connect it to the Auto Data Prep Node. Click on the upper right of the Statistics Node to open the window to select the variables you want to include in the analysis (Add Columns) and the statistics you want to see for those variables and click save.

     

    To view the statistics, click on the Statistics Node and hit run. An Output panel will open up to the right with a list of icons, each representing a particular analysis you ran. Double click the icon to view the results (see below). You can see the descriptive statistics for each of the variables selected (scroll down if necessary). You can check for outliers or invalid values to ensure your data are clean for analysis.

    You can also view the values in graphical format. Add the Histogram Node to the Modeler Flow window. Again, attach the Histogram Node to the Auto Data Prep Node, then open the Auto Data Prep, add the variable of interest. Save then run the node. The Output panel will open up again with a new icon representing the results of the analysis. Double click the icon to view the results (see inserted picture below for Advocacy loyalty). The data look good (all variables within possible ranges (0 to 10)).

    4. Analyze Data

    The next step is to analyze the data. For our example, to answer our questions, we need to look at two types of analytics: 1) Descriptive and 2) Predictive. Descriptive analytics are used to indicate the current state of the world. In our case, descriptive analytics helps us know the current satisfaction level of each customer touch point and the current state of customer loyalty. The level of satisfaction is indexed by a summary statistic. While different summary statistics can be used, I use the mean score (sum of all responses divided by the number of respondents).

    Predictive analytics are used to make predictions about future events. In our case, predictive analytics helps us know how strongly/weakly each of the customer touch points is related to customer loyalty. This information tells us the relative importance of each CX touch point in ensuring customers are loyal. The relationship between CX touch points and customer loyalty can be calculated by simply correlating the ratings of the touch point with the customer loyalty measure. This correlation is referred to as the “derived importance” of a particular touch point. If the survey has a measure for each of the eight (8) touch points, we will calculate eight (8) correlations for each of the measures of customer loyalty. Higher correlations (max is 1.0) indicate a strong relationship between the touch point and customer loyalty (e.g., business area is important to customers). Low correlations (near 0.o) indicate a weak relationship between the touch point and customer loyalty (e.g., business area is not important to customers). I added the three loyalty metrics to the model. Because research has shown that different types of loyalty are impacted by different types of CX touch points, I needed to build different models for each type of customer loyalty.

    In IBM Watson Studio, I selected the Statistics Node from the Outputs options to calculate the means for each variable and their correlations with each of the three measures of customer loyalty. Double click the Statistics Node to add the 8 CX touch points (predictors). You can then check the specific descriptive statistics you are interested in examining (I added count and mean). Scroll down in that panel and you can add the three loyalty measures to which you want to correlate the eight CX touch points. Hit save. Then run the Statistics Node to view the descriptive statistics of all predictors and their correlations with each of the measures of customer loyalty. See below. You can scroll down to view the entire output.

    5. Communicate Results

    Means of CX Touch Points and Their Correlations with (Impact on) Advocacy, Purchasing and Retention Loyalty.

    Now, we have the answers to our two questions: What’s the current level of satisfaction for our touch points and what are the correlations with each of the measures of loyalty. You can use the output for your reporting. I took the extra step of consolidating the results into a simple table (See Table 1).

    With these data, we can draw some conclusions about the health of the customer relationship. First, from our earlier analysis in the exploratory phase, we see that the means for the three measures of loyalty are: Advocacy: 8.3; Purchasing: 6.9; and Retention: 8.3. That is, Advocacy and Retention Loyalty appear to be relatively high while Purchasing Loyalty is relatively low; this suggests that, even though the customers are more likely to recommend the company and stay with them for a long time, they are less likely to expand their relationship with the company.

    Customers are most satisfied with Product Quality, Technical Support and Communications from the company. Customers are least satisfied with Utility of Web site, Purchasing/Invoicing/Delivery, Sales Process and Company’s direction and future products/services.

    Second, we can identify the CX touch points that have the biggest impact on the different types of customer loyalty. The top four drivers of Advocacy Loyalty are Ease of doing business, Communications from the company, Company’s direction and future products/services and Product Quality. The top four drivers of Purchasing Loyalty are Company’s direction and future products/services, Product quality, Communications from the company and Ease of doing business. The top four drivers of Retention Loyalty are Technical Support, Ease of doing business, Communications from the company and Company’s direction and future products/services.

    I noticed that, while Web site utility received the lowest ratings of satisfaction, it also has the lowest impact on customer loyalty. That is, Web site utility does not appear to be as important to driving customer loyalty compared to the other CX touch points. Improving Web site utility will do very little to improve customer loyalty.

    To improve customer loyalty, this company might initially consider focusing their CX improvement efforts on those CX touch points that have a low level of satisfaction and have a large impact on customer loyalty. Based on the results, it appears that Company’s direction and future products/services could be an area where there is room for improvement and it has a relatively high impact on the three types of customer loyalty.

    Summary

    In this article, I illustrated how you can use IBM Watson Studio to analyze customer survey data to answer two important questions about the health of your customer relationship. In pursuing the answers, I found Watson Studio Desktop was fairly easy to use. I referenced their online documentation a few times in the process and found my answers quickly, with links to documentation and other great resources including IBM Watson Studio Community.

    This post was brought to you by IBM Watson Studio. I received compensation to write this post but all opinions expressed are my own.

  • Predicting Customer Churn with IBM Watson Studio

    Predicting Customer Churn with IBM Watson Studio

    Business leaders understand the advantage of using the power of artificial intelligence and machine learning to stay ahead of their competitors. However, understanding the power of AI is a lot different than actually successfully implementing it in companies. For example, in 2017, Gartner estimated that Big Data projects have a success rate of only 15%. While organizational factors may be a primary reason for this poor success rate, another reason for such a high failure rate could be due to a lack of AI / Machine Learning talent needed to successfully pursue these types of projects. Specifically, it’s been shown that there is a lack of advanced machine learning talent among data professionals; less than 20% of surveyed data professionals said they were competent in such areas as Natural Language Processing (19%), Recommendation Engines (14%), Reinforcement Learning (6%), Adversarial Learning (4%) and Neural Networks – RNNs (15%).

    So, how do companies leverage the power of AI with these skills gaps? IBM is using the power of its Watson Studio platform to extend the power of AI to many more people who fall outside of AI expert coders. IBM Watson Studio is an end-to-end analytics and AI solution to help you gain insights from your data. Watson Studio accomplished this feat by providing the option to build custom models or leverage pre-trained models.

    In this article, I will briefly review several capabilities of Watson Studio and compare two machine learning models that predict customer churn of mobile users.

    To understand how IBM is helping businesses leverage the power of AI, let’s look at the steps of machine learning. As you can see from the figure below, the machine learning workflow contains many steps.

    1. Acquire Data
    2. Explore Data
    3. Prepare Data
    4. Create Features/Predictors (Feature Engineering)
    5. Select Model
    6. Train Model
    7. Tune Hyperparameters
    8. Make Predictions

    For this article, I will cover steps 1 through 6 to see how Watson Studio can help you improve your machine learning capabilities by simplifying your data workflow.

    IBM Watson Studio

    IBM Watson Studio was designed to help accelerate machine learning workflows. This solution provides diverse data professionals a wide variety of tools to help them work more effectively together. Whether you are a data scientist, machine learning engineer, application developer or subject matter expert, Watson Studio should be able to help you work with your peers to help you build, train, evaluate and deploy machine learning models efficiently and at scale. If you’re like me, my strength lies in quantitative methods; that means, I don’t code. My hope is that Watson Studio can help me augment my quantitative skills with the power of machine learning capabilities.

    After logging into the Watson Studio platform, you are presented with several options for your specific analytics needs, from starting a new project and finding data to conducting deep learning work and developing a model via a visual interface. The options include:

    • New project: Organize resources (like data assets, collaborators, notebooks) to achieve your analytics goals.
    • Catalog and find data: Discover, index and share data
    • Refine data: Cleanse and shape your data to prepare it for analysis.
    • New notebook: Create a Jupyter notebook to run code that processes your data, then view the results inline.
    • Deep learning: Learn about deep learning capabilities
    • New modeler flow: Connect nodes to build a Modeler flow to explore your data and train machine learning models.
    • New model: Build and train a model for your data in a guided machine learning pipeline.

    Next I will create a New Project in which I will apply machine learning capabilities to help me predict customer churn.

    1. Acquire Data

    The first step is to acquire and load the data into Watson Studio. I found a free data source from Kaggle regarding the churn status of mobile users. Additionally, the data set included other information about the user, including type of plan, number of minutes on the phone and location.

    I uploaded this data set via a csv file.

    2. Explore Data

    After you have connected your data set to Watson Studio, the next step is to explore the data set to better understand the variables with which we are working. Watson Studio has a Dashboards feature that will help you accomplish this task.

    The dashboard includes three broad templates, including a single page, a tabbed page and an infographic. I have selected the tabbed template (free form) for this example.

    First, connect your data source to the dashboard (data asset).

    As you can see, there are many different chart options to visualize your data. Chart types include bar (column) graphs, pie charts, maps, I’ll take a look at a few of the variables in our data set. I will first take a look at the length of accounts.

    Account length forms a nice normal distribution. I’ve explored other variables like the number of responses per state, the number of customer service calls, the number of evening calls and churn status. You can even add a filter to explore subsets of your data (say, by state, for this example).

    Next, I will take a more in-depth look at the variables using a more sophisticated approach (rather than the interocular test – “eye-balling” the data).

    3. Preparing your Data

    A Jupyter notebook is an environment for interactive computing. With just a few clicks of the mouse, you are able to run code to process your data and subsequently see the results of the computation. Notebooks include the pieces you will need to process your data. These pieces include:

    • The data
    • The code computations that process the data
    • Visualizations of the results
    • Text and rich media to enhance understanding

    With IBM Watson Studio, you can create Python, Scala, and R notebooks to analyze your data. In the image below, you can see both the code that was generated to upload the data. After running the code, you will see your data in the window below it.

    I got code from a colleague to run some basic statistics on the variables in the data set. The results revealed that there are 3333 records (customers) in this data set. Additionally, we can see the descriptive statistics for some of the variables (e.g., mean, min, max).

    If you’re like me and you don’t code, you can also see some basic information about the variables in your dataset using the Data Refinery option.

    Data Refinery

    Select the “Data Refinery” option from the Tools dropdown menu and select the data set you would like to refine.

    Below is the visualization of my data set.

    Once in the Data Refinery option, you can select the Profile and Visualization tabs to get a nice visualization of the variables in your data set along with some basic statistics for each variable. Rather than writing code, I prefer this “clicking” method of getting a sense of the shape and quality of the data.

    To prepare your data, return to the Data tab of the “Data Refinery” option and click on a variable that you would like to modify and hit the “+ Operation” tab (or simply hit the three buttons next to the variable name). You will have a plethora of options to cleanse and organize your data, including:

    • Renaming variables
    • Removing duplicates
    • Removing empty rows
    • Converting variables to specific types (e.g., integers, dates and decimals)
    • Sorting
    • Concatenating
    • Create a new variable/feature (based on current variables)

    After you have prepared your data, the next step is to run the data flow on the data set. This step will change all the variables that you specified. You can run the data flow now or schedule it for a later time. The resulting new dataset will be saved in your data assets.

    4. Feature Engineering

    Using the Data Refinery option, you will be able to create new variables (or features) to use as predictors of your outcome variable of interest (in this case, customer churn). Domain expertise is required for this step. Understanding the content domain can help you create commonly used variables/features that are known to predict customer churn. For the curious souls, you can also use your imagination to think of possible features that could contribute to the prediction of your outcome.

    5 and 6. Select and Train your Model

    Building your machine learning model in Watson Studio is pretty easy. The two-step process of building your model includes selecting your model and training your model. The first step is to add a Model to your project. You have two options to developing your model: 1) automatic and 2) manual. I will try the automatic modeling first.

    Automatic Modeling

    After you hit the “Create” button, you will be asked to select the data set of interest on which you want to build the model.

    For the Customer Status variable that I want to predict, it’s important to know that this variable has two values; a value of “True” indicates the customer churned. A value of “False” indicates the customer did not churn. So, an appropriate modeling technique is binary classification. In fact, Watson Studio even suggested this technique to use for the analysis. For the “Feature columns,” you have the option of selecting all variables or a subset of variables. I selected all variables except for telephone number.

    To validate the model, you need to separate your variables into a training, testing and holdout sample. I kept the default values presented by Watson Studio.

    After hitting the Next button, Watson Studio will train the model and evaluate how well the model performs. As you can see, Watson Studio selected the Logistic Regression technique to predict Churn Status. The resulting model was defined as “Fair” with a reported ROC figure of .79 and PR figure of .48. You can save this model if you would like to use it later to run on new data.

    Manual Modeling

    Next, I will use the Manual modeling approach so that I can select the modeling technique. Once you have selected the Manual modeling approach, you will be asked to select the outcome you want to predict (Column value to predict) and the features (Feature columns) to predict that outcome. I selected the same features as before.

    You will also need to select the estimators (see upper right).

    For this example, Watson Studio offers up four different estimators:

    • Logistic Regression
    • Decision Tree Classifier
    • Random Forest Classifier
    • Gradient Boosted Tree Classifier

    I opted for Random Forest Classifier. After hitting the Next button, Watson Studio will train the model and evaluate how well the model performs.

    The resulting model was defined as “Excellent” with a reported ROC figure of .92 and PR figure of .84. Again, you can save this model if you would like to use it later to run on new data.

    Summary

    This article represents my first attempt at using Watson Studio. While I have taken many courses in statistics and quantitative methods, the only coding class I took was Fortran (and that was for a foreign language requirement in graduate school!). While I have always been envious of data professionals who can code (I’m looking at all my engineering friends), I feel less envious after using Watson Studio. My hope is that all data science applications will be easy to use.

    Watson Studio was fairly easy to use. Their great online resource to learn about the capabilities of Watson Studio as well as their FAQ page helped me quickly gain confidence in using the platform. Whether you are a clicker or coder, you will find that Watson Studio will fit into your skillset. Coders will be able to code, and clickers will be able to use tools to help automate many of the machine learning steps, including building dashboards, selecting modeling techniques and automatically preparing your data for analysis. I’m looking forward to continue learning this platform in the months to come.

    This post was brought to you by IBM Watson Studio. I received compensation to write this post but all opinions expressed are my own.