Skip to content
Back to the project entry

Reducing churn through data analysis and customer support

At a B2B software company I led the joint initiative across BI, Customer Success, Marketing and Tech against customer churn. A model identified customer accounts whose usage had changed noticeably, Customer Success approached those customers in a targeted way, and recurring problems went to the development team. The churn rate fell by 40% in relative terms compared with the previous year.

  1. Usage data from Heap · features per customer account
  2. PyTorch model · risk list for Customer Success
  3. Conversation, product fix, communication · churn rate −40% in relative terms

The project at a glance

Role
Overall lead of the initiative. Head of BI and deputy head of Customer Success
Period
2018 to 2019
Setting
B2B software company with ongoing customer contracts. BI team of two, Customer Success team of six
Stack
Heap, Hotjar, Python, PyTorch, PostgreSQL, Tableau
Result
Churn rate down 40% in relative terms compared with the previous year

Project overview and my role

I led the BI team and was deputy head of Customer Success. From that dual role I took overall lead of the initiative. I decided which signals we analyzed, how a flagged account became a customer success case, and in which meeting BI, Customer Success, Marketing and Tech coordinated their actions. I developed the guidelines and the playbook for the customer conversations with Customer Success and trained the team in them.

The specialists in each area carried out their own parts. Customer Success held the conversations, Tech fixed product problems and Marketing handled the communication. In the BI part the execution was also mine and my team's. We prepared the usage data and built the risk list.

The ML engineer on my team implemented and trained the model. I coached the engineer, set the direction and reviewed the results. I did not write the model code myself.

Starting point and approach

The company sold its software to business customers on ongoing contracts. Customer Success usually learned of a cancellation only when it arrived. By then the customer had made the decision, and usage had often been declining for some time.

Until then Customer Success worked mostly reactively. Whoever wrote a ticket or was due for renewal got attention. A customer who quietly did less and less went unnoticed. The data existed. Heap recorded the events in the application, and Hotjar provided recordings and surveys. Nobody analyzed them per customer.

I decided against a pure analysis project, because a risk list by itself does not retain a single customer. So I planned three things together from the start: a signal that comes early enough, a fixed procedure for the conversation with the customer, and a route by which the problems customers named reached Tech and Marketing.

The process before and after the initiative

Simplified view.

Before

  1. A customer uses the product less and less. Nobody analyzes this per customer.
  2. Customer Success responds to tickets and upcoming renewals.
  3. Problems a customer mentions stay within that one conversation.
  4. The cancellation arrives. The reason is asked for afterwards.

After

  1. Usage data per customer account, scored by the model every week
  2. Risk list with the deviating features, an owner and a status
  3. Conversation or workshop following the playbook. The problem the customer names is documented.
  4. Recurring problems go to Tech as a bundle. Marketing communicates the improvement.

Goals, scope and success criteria

The goal was to lose fewer existing customers. We set the churn rate of the existing customer base, compared with the previous year, as the measure.

We checked in three places whether the initiative worked. The early detection had to show accounts where Customer Success could follow why they were flagged. Every account on the list had to get an owner and a documented outcome. A problem that several customers named had to reach Tech and be reported back to the customers once it was fixed.

The scope covered the application's usage data, the model, the risk list, the playbook for Customer Success and the coordination with Tech and Marketing. Pricing, contract terms and new customer acquisition were outside it. We scored per customer account and not per user, because the contract belongs to the account.

Implementation in four stages

  1. Prepare usage data per customer account

    What I decided
    I decided that we would score usage per customer account and compare it with the account's own history. A small customer with one user is not at risk because it does less than a large one. It stands out when it does markedly less than in the four weeks before, or stays below its earlier level for a long time. Together with Customer Success I defined the key actions. These were the work steps customers paid for the product to do. Logins and page views were not enough of a signal for us.
    What the team implemented
    We brought the event data from Heap into our PostgreSQL database and assigned every user to their customer account through the user management. Python and SQL jobs condensed the events per account into features: active days, active users and key actions in the last four weeks, each beside the four weeks before. We filtered out internal test users. Events without an account assignment went to a review table. Hotjar added recordings and surveys to the event data. They showed us where users got stuck.
    How we checked completion
    For a sample of accounts we compared the features with the analyses directly in Heap. Differences mostly came from users assigned to the wrong account. We corrected those assignments before the model received the data.

    From usage history to the classification of an account

    Illustrative example with seven synthetic accounts and fixed thresholds. In the project the model scored how unusual an account was. The example shows the features and the special cases and contains no customer data.

    The last four weeks are compared with the four weeks before. In the example an account goes on the list when key actions or active users have fallen by at least half. Accounts that have been customers for less than eight weeks are not scored, nor are accounts where tracking ran on fewer than 24 of the 28 days.

    Seven accounts on the same cut-off date, each four weeks before → last four weeks
    AccountKey actionsActive usersClassification
    K01120 → 1148 → 8Unremarkable
    K0296 → 186 → 2On the list: actions −81%, users −67%
    K0312 → 111 → 1Unremarkable
    K0464 → 605 → 2On the list: users −60%
    K05– → 14– → 3Not scored, new customer in onboarding
    K0680 → 316 → 5Not scored, tracking gap
    K0740 → 554 → 5Unremarkable

    Two of the seven accounts went on the list. K04 shows why the number of active users was a feature of its own. The actions stayed almost the same but depended on two people instead of five. K03 uses the product little but steadily and stays unremarkable. Without the check for tracking gaps, K06 would have landed on the list as a third case.

  2. Detect unusual usage with a model

    What I decided
    I chose anomaly detection over a model that predicts cancellations directly. A prediction would have needed many past cancellations as training examples, and a company of our size did not have them. Normal usage, by contrast, was plentiful, because every week of every account was an example. The model was to learn what it looks like and report deviations. I gave the ML engineer two requirements. The output is a reason to take a look and not a churn probability. For every flagged account it must be visible which features deviate.
    What the team implemented
    The ML engineer implemented an autoencoder in PyTorch and trained it on the weekly values of accounts with stable usage. Besides active days and users, the individual key actions went in separately. That let the model also detect unusual combinations that a simple threshold per feature misses. It compresses an account's features and reconstructs them. Where that works poorly, the account deviates from the learned pattern. The weekly run wrote a value per account and the most strongly deviating features to a table. Together we reviewed the choice of training accounts, the features and the evaluation. In doing so I made sure that each score used only data up to its cut-off date.
    How we checked completion
    We scored past cut-off dates retrospectively with a model trained only on data from before each date. We then looked at where accounts that later cancelled would have stood on the list in the months before, and how many accounts on it had stayed. I also put the top accounts of the current list in front of Customer Success. The model went into operation when the customer success managers could follow the reason for most of those accounts. I no longer have figures from this backtest.

    Difficulty The first list was of little use to Customer Success. At the top were new customers still in onboarding. After a tracking outage a large share of the accounts suddenly looked unusual. From then on we treated new customers separately until a full comparison period existed. For periods with a tracking gap we introduced a data quality status that created no case. Only after that did Customer Success work with the list.

  3. Introduce the risk list and the playbook for Customer Success

    What I decided
    I decided that the list would be a working tool and not a report. Every flagged account got an owner, a status and a next step. For the conversation I developed guidelines and a playbook with Customer Success. The most important rule was that we tell no customer that they are internally classed as at risk. Anyone approached like that feels monitored or labelled. The customer success managers offered a conversation or a workshop and let the customer say where things were difficult.
    What the team implemented
    We built the list in Tableau. The customer success managers maintained the owner, the status and the next step in a case table, which Tableau showed beside the usage trend and the deviating features. Customer Success went through it in a weekly meeting, drew on the Hotjar observations for the affected functions and made contact. After the conversation the customer success managers recorded which problem the customer had actually named. If a case was already open for an account, the new state was added to that case. It stayed open until usage had recovered. I trained the team in working with the list and the playbook.
    How we checked completion
    In the weekly meeting I checked that no account was on the list without an owner and a next step, and that every closed case had a documented reason. If a case went several weeks without contact, we clarified there what was holding it up.

    Excerpt from the playbook

    Reconstructed in substance, not an original document.

    From the trigger to the documented case
    TriggerStep by Customer SuccessDocumented in the case
    Key actions drop sharplyPersonal contact by the responsible customer success manager before the next weekly meeting. Open with the customer's work with the product, not with the analysis.Obstacle named, problem category, next step
    Usage depends on a few peopleOffer a workshop for further users at the customer.Participants, open questions, follow-up date
    New customer is not getting started in onboardingRepeat the onboarding session and go through the first key actions together.State of onboarding, missing prerequisites
    Customer names a problem in the productPass the case to Tech with steps to reproduce. Tell the customer when they will hear back.Affected function, problem category, status until the follow-up
  4. Feed customer problems back to Tech and Marketing

    What I decided
    I decided to record the reasons from the conversations in fixed problem categories. A single complaint loses against the roadmap in day-to-day development. Several customers with the same problem and falling usage are an argument. I agreed with Tech that we would present such bundled problems regularly and that a quick partial fix counts for more than a complete one months later.
    What the team implemented
    Customer Success assigned every case to a category. We bundled the cases and handed them to Tech with the affected functions and the steps to reproduce. Tech fixed the problems as promptly as possible, often in parts at first. One recurring topic was coordination between several participants inside the application, where users lost track. Tech improved this workflow step by step. Marketing communicated the improvements to all customers. Customer Success additionally contacted those who had named the problem.
    How we checked completion
    For each problem category we tracked the state from the report through the fix to the communication. A case was closed only when the customer had received the follow-up. After that we looked at the usage of the affected accounts again. If it did not recover, the account stayed on the list.

Acceptance and handover

There was no formal acceptance. The initiative became routine operation once the weekly meeting ran without my prompting. Customer Success maintained the list and the cases themselves, and Tech had the bundled customer problems as a fixed item in its planning.

After that, the playbook and the guidelines were part of onboarding in Customer Success. The ML engineer continued to look after the model and retrained it when new features shifted the usage patterns. The churn rate remained part of the regular reporting to management.

Result

The churn rate of the existing customer base fell by 40% in relative terms compared with the previous year. In relative terms means: if 10 out of 100 customers had cancelled in the previous year, it would have been 6 afterwards. These figures are a worked example. The 40% comes from our reporting at the time. I no longer have the documents or the absolute rates.

Customer Success got in touch with customers whose usage was falling before a cancellation existed, and could later tell them what had become of their problem. The team moved from reacting to tickets to planned outreach with a specific reason. Tech received customer problems bundled and backed by usage data instead of as individual reports.

The shares of the model, the conversations and the product improvements cannot be separated. We did not form a control group, because we did not want to leave a flagged customer unattended on purpose. The comparison with the previous year does not rule out other influences, such as a change in the customer mix. I attribute the result to the combination.

Reducing churn through data analysis and customer support | Robert Trippler