ADAgnivesh Das ← All work
BP · Customer Lifetime Value · Customer value

From What Customers Spent to What They're Worth

Every team at bp could see what a customer had spent, but none could see what that customer was likely to be worth next. Customer Lifetime Value gave every customer a forward-looking number: past margin, plus five years of predicted margin, adjusted for the chance they would still be around to earn it.

A note on this write-upAll figures, charts and examples on this page are illustrative. Customers, margins, survival rates and model scores have been replaced with fictitious numbers; no real BP data is shown. Only the headline results are reported outcomes.

The project

A lifetime value for every customer

CLV was built on top of the Single Customer Identifier. I built the pipelines that fed the linked customer view into the model, engineered the Customer Analytic Record it learned from, and worked alongside the data scientists who built the survival models.

The starting point: two customers who looked the same

Loyalty, marketing, pricing and store teams each had their own partial view, and every one of them looked backwards. Two customers with identical spend over the last two years looked identical in every report, even when one was a weekly regular and the other was quietly drifting away.

Same past, different future Illustrative
Illustrative customers, € margin
Past margin (what reports showed)Future value (what nobody saw)
Customer A: steady weekly visitor€954
Customer B: drifting away€715
View data
ItemPast margin (what reports showed)Future value (what nobody saw)Total
Customer A: steady weekly visitor€432€522€954
Customer B: drifting away€432€283€715

Their past is the same; their future value differs by more than half. That gap is exactly where retention spend should go, and no historical report could show it.

The hard part: customers never say they've left

A phone customer cancels a contract. A fuel customer just stops coming. So churn had to be defined first: six months after the last transaction. And because most customers are still active at any point, their true lifetime is unknown. That is censored data, and it calls for survival analysis rather than ordinary regression.

Predicted survival by segment Illustrative
Probability a customer is still active
Fuel Card ProfessionalsUltimate FansLow Fuel Occasionals
0%
25%
50%
75%
100%
NowY1Y2Y3Y4Y5
View data
Fuel Card ProfessionalsUltimate FansLow Fuel Occasionals
Now100%100%100%
Y186%80%55%
Y275%66%38%
Y366%55%27%
Y458%46%19%
Y552%39%13%

Segments churn at very different rates, so one model for everyone would have blurred exactly the differences the business needed. Each of the eight behavioural segments got its own model.

The method: past margin, predicted survival, discounting

Lifetime value has two parts. The past is known: margin over the last 24 months. The future is predicted: expected margin for each of the next five years, multiplied by the probability the customer is still active, adjusted for inflation and discounted back to today.

How one customer's CLV builds up Illustrative
Illustrative Ultimate Fan, €
CLV = Historical Customer Margin (24 months) + NPV of the next 5 years
+€432
+€160
+€125
+€98
+€78
+€62
€954
Past 24 mo.Year 1Year 2Year 3Year 4Year 5CLV
View data
ComponentValue
Past 24 mo.+€432
Year 1+€160
Year 2+€125
Year 3+€98
Year 4+€78
Year 5+€62
CLV€954

Each future year adds less than the one before: the customer is less likely to still be active, and a euro later is worth less than a euro now. Both effects are built into every score.

Feeding the model: one record per customer

The model learned from a Customer Analytic Record: one row per customer with roughly 580 features, built in SQL in five stages. For each segment, that was cut down to the 60–130 features that actually carried signal.

What went into the Customer Analytic Record Illustrative
Five build stages
Transaction KPIsLoyalty events & campaignsProduct usageCustomer behaviour flagsCompetitor pricing

Because the CAR was built on SCI, the model could see the visits customers paid for by card, not just the ones where they swiped loyalty.

Picking the model

Three survival techniques were tested on the same segment. Each was scored on how well it ranked customers by how long they would stay.

Model comparison Illustrative
Concordance index on held-out customers (higher is better)
Cox proportional hazards0.71
Random survival forest0.74
Gradient boosting (Cox loss)0.78
View data
ItemValue
Cox proportional hazards0.71
Random survival forest0.74
Gradient boosting (Cox loss)0.78

Gradient boosting with a Cox loss won: the best ranking accuracy, built for censored data, and still explainable through feature importance.

Who's worth the most

Scored monthly, every customer could be ranked by value and tracked as that value moved.

Average CLV by customer decile Illustrative
€ per customer; top decile highlighted
€2,380
€1,510
€1,090
€820
€610
€450
€320
€210
€130
€60
D1D2D3D4D5D6D7D8D9D10
View data
ItemValue
D1€2,380
D2€1,510
D3€1,090
D4€820
D5€610
D6€450
D7€320
D8€210
D9€130
D10€60

Value is heavily concentrated at the top. Knowing who sits there, and who is sliding out of it, is what let marketing spend less and earn more.

What I built

The SCI → CLV pipelinesBuilt and maintained the feeds that delivered linked customer and transaction data into the model inputs.
The Customer Analytic RecordWrote the SQL for the staged build of the ~580-feature record, and partnered with the data scientists so the data the model learned from was accurate, complete and fit for purpose.

Results

4×increase in average customer spend
$8Min marketing cost savings
8segment-level survival models
5 yrsof forward-looking value per customer

Why this mattered

From a report about the past to a forecast of value

CLV changed the question every customer team asked. Instead of “what did this customer spend?”, it became “what is this customer worth, and is that rising or falling?” That shift is what moved marketing toward the customers who mattered most, behind the 4× lift in average spend and $8M in savings.

~580features per customer in the CAR
8behavioural segments
5year forecast horizon
Monthlyre-scoring of every customer
Agnivesh Das · Portfolio · LinkedIn · Technical deep dive Illustrative example; figures and details altered.