Skip to content

This is a CP4D demo asset that focuses on Up/Cross sells in the Banking industry focusing on targeting customer for the right products. In other words it predicts which customers are more likely to buy a specific product. This allows banking sector employees to determine what services their customers would be interested in.

Notifications You must be signed in to change notification settings

mridulrb/Cross-Sell-in-Banking

Repository files navigation

CP4D-Banking-Demo-Up-Cross-sell

This is a CP4D demo asset that focuses on Up/Cross sells in the Banking industry focusing on targeting customer for the right products. In other words it predicts which customers are more likely to buy a specific product or invest in a specific plan.

This data set that we are using contain many demographic fields (as relationship status, age, number of kids...) as well financial information (credit score, income, assets...). Using these multiple fields we build a prediction model with SPSS Modeler and visualize the insights to show which groups of customers are more likely to buy or show an interest in a specific bank product.

In our use case example , the bank products/plans are : Increase net worth, Philanthropy, Capital Acquisition, Education Planning, Retirement Planing and Estate Planning.

Our goal is to target the right customers to the right plans.

Click Here to see a Demo of the results.

Technologies Used

  • IBM Cloud
  • Watson Studio (CP4D)
  • SPSS Modeler: to build our prediction Model
  • Cognos Dashboard: To visualize our prediction output and show the insights

Architecture Flow

Screen Shot 2020-12-16 at 5 02 17 PM

1- Dataset is uploaded to Watson Studio to use it in SPSS Modeler for our predicton model (Here the data is already cleaned with Data refinery).
2- SPSS Modeler targets the field Pursuit that contains the values of the bank products/plans.
3- SPSS Modeler generates a new file with the prediction results that is used in Cognos Dashboard to visualize the insights.

SPSS Modeler

Flow

spss-flow

  • In this flow we are using our cleaned data set and it's partitioned( 20% used for testing and 80% for building the model).
  • Our target field as discussed above is Pursuit that contains the values of the bank products/plans.
  • This flow generates an output file that has the predicition results.

Prediction Model

Our prediction model consists of a combination of 5 different algorithms:

  • Random Trees
  • XGBoost Tree
  • XGBoost Linear
  • Logistic Regression
  • CHAID

Screen Shot 2020-12-07 at 12 44 01 AM

All Data Fields

Screen Shot 2020-12-16 at 4 56 33 PM

Data Visualization - Cognos Dashboard

Screen Shot 2020-12-16 at 4 46 15 PM

Screen Shot 2020-12-16 at 4 46 39 PM

Implementation Steps

1- Sign in to your IBM Cloud Account.
2- Create a Watson Studio service.
3- Create a Project in Watson Studio.

If you're having any issues with doing these steps go Here.

SPSS Modeler Flow

1- Import the data file merge_customer_summary_arabic.csv to Watson Studio

1

2- Click on Add to Project and choose Modeler Flow

2

3- Choose From File and import the flow SPSS Product Market Targeting.str that you can download from this repo.

3

4- This is how the flow looks. The first node in this modeler represents our data source (the data file merge_customer_summary_arabic.csv). As you can see when you expand it we can select our data asset and configure the file (delimeters, characters...)

4

5- The Type node is a field operation node that repesents our metadata. It shows us our data with their properties and detect their types automatically. In this node we choose our target field (the field that we want to predict in our model). In this case we want to predict Pursuit which is the product that the customer is interested in.

5

6- The Partition node is used to split our data into training and testing. To build a prediction model we need to have a data to build the model and another set of data ot test the model. Here we chose 80% our the data to train the model and the rest 20% for is used testing.

6

7- The next node is the Auto Classifier. It shows the name PURSUIT because this is our taget field that we want to predict. This node generate our prediction model with its top performant algorithms (the model is the node colored in gold).

7

8- Once the model is generated you can click on it and check its metrics to get a better understanding of it. You can see the list of algorithms that were used to create the model and check their metrics

Screen Shot 2021-02-24 at 3 31 36 PM

9- You can click on a specific algorithm if you want to get some more information and insights about it. For example here we are checking the random trees algorithms

8

10- The Matrix node help us to understand the relationships between the different fields that we have in the data set after the model is generated.

9

11- These table nodes are used to show the data. For example once the model is generated and the modeler run the flow, we use a table node to see the results.

Screen Shot 2021-03-04 at 12 51 19 PM

12- In the result table we will have 3 new added columns to the original data set: Partition,$XS-Pursuit (our target that we arew predicting) and $XSC-Pursuit (The conficence score of the predicition).
The Partition column shows if the data row was used to train the model or to test it.

Screen Shot 2021-02-24 at 3 36 48 PM

13- This last node is used to save and export the results if we want to after we run the model.

10

Deploy Model

1- First we need to save our model. You can choose the result table node or the export file node and click on save branch as model.

11

2- Now in your project dashboard, your saved model will be available under **Models**. We need to promote it in a deployment space.

12

3- Choose your target space and promote it, but if you don't have a space you first need to create one (*check step 4 below*).

13

4- Here you can create your space, it needs an object storage service and a machine learning service (you can create these 2 instantially and assign them).

14

5- Once your model is promoted , go to your deployment space that you just created (you can find it by clicking on the hamburger menu icon on the top right corners). Once you are there you'll see your asset model promoted.

15

6- Click on it and now are are ready to deploy the model. Click on Create Deployment.

16

7- Choose Online and give your deployment a name.

17

8- Your model will start getting deployed. Once it's done you will see a green icon next to it.

18

9- Once it's ready just click on it and you will see a Test tab. Here you will be able to test your deployed model.<br
19

Data Visualization using Cognos Dashboard Embedded

In your project dashboard, click on Add to Project and choose dashbaord. You will need to have a cognos service (you can create one instantially and assign it). Once you assign your cognos, you will be able to start making any visualization that you want.

Create the dashboard:

1- Click Add to project + and then select Dashboard to create a new dashboard. <br
20

2- Follow these steps in the New Dashboard page:

a. Enter a Name for the dashboard (for example, ‘Banking-Demo-Up-Cross-sell’.)

b. Provide a Description for the dashboard (optional).

c. For Cognos Dashboard Embedded Service, select the dashboard service that you created previously.

21 d. Click Create.

3- On the next page, select the default tabbed layout and template.

22 4- Click OK to create an empty freeform dashboard with a single Tab.

To add a data connection:

a. Click the Add a source button (the + icon) in the upper-left part of the page:

23 b. Click Select to select predicted_output.csv which is generated by the SPSS Modeler Flow and clickselect after choosing the data source

Screen Shot 2021-03-30 at 12 27 10 c. Back in the dashboard, select the newly imported data source.

Screen Shot 2021-03-30 at 12 32 45

d. Expand the customer summary data source by clicking the drop down button to show the columns.

Screen Shot 2021-03-30 at 12 34 28

e. To add a particular column to the dashboard just drag and drop the columns onto the canvas, in our case we add the annual income and age range

Screen Shot 2021-03-30 at 12 39 05 Screen Shot 2021-03-30 at 12 39 16 Screen Shot 2021-03-30 at 12 39 31

Creating the dashboard would be subjective, in our case we have creatred it for the Annual Income by Age Range, we have also attached a canvas in this repository which will allow you to import the dashboard onto Cognos Dashboard Embedded which would really define its capability, moreover, you are more than welcome to try out new things with the data set.

About

This is a CP4D demo asset that focuses on Up/Cross sells in the Banking industry focusing on targeting customer for the right products. In other words it predicts which customers are more likely to buy a specific product. This allows banking sector employees to determine what services their customers would be interested in.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published