Skip to content
Orya One

Which Customers Are About to Leave? Churn Prediction and RFM Segmentation for Small Businesses

Guide13 min read

What the drawing shows

  1. Each dot is a customerFurther right came more recently, higher up comes more often. Bigger dots spend more.
  2. Champions and loyalYour regulars sit top right. The best of them need no discounts.
  3. At riskValuable customers who have gone quiet. A personal message can bring them back.
  4. LostNo visit for over 90 days. One last message, then stop.

Customers of a café, gym or e-shop rarely cancel. They just stop coming. Here is how to spot them early with RFM in a spreadsheet, when a churn model is worth it, and how to win them back without wasting discounts.

Key takeaways

  • Without a contract, churn is a purchase gap: a customer is at risk when the time since their last visit is well beyond their own usual interval.
  • RFM scores (recency, frequency, monetary value, each 1 to 5) need only a customer ID, a date and an amount, and can be built in a spreadsheet in an afternoon.
  • Churn classifiers and “buy till you die” models such as BG/NBD and Gamma-Gamma add a probability and a value per customer once you have hundreds of repeat customers and a year or more of history.
  • Always keep a random holdout group out of win-back offers, and respect GDPR and the consent rules of Greek Law 3471/2006 before you send a single message.

To find the customers who are about to leave, compare how long it has been since each customer last bought with how often that customer normally buys. A regular who came every week and has not been seen for a month is at risk. A customer who comes every two months is not. Score everyone on recency, frequency and monetary value (RFM), flag valuable customers whose gap has grown unusually long, and send them a win-back offer, keeping a random group aside to measure what the offer changed.

All of this can start in a spreadsheet; a churn model comes later, once the simple version is in use. This guide is for cafés, gyms, salons, shops and e-shops in Greece with some customer-level data: a loyalty app, an e-shop, a booking system or a list of members.

It does not repeat the basic customer KPIs. Repeat rate, retention and customer lifetime value as dashboard numbers are covered in our small business KPI dashboard guide. This article is about what to do one customer at a time.

What churn means when nobody cancels

A mobile operator knows exactly when a customer leaves: the contract ends. A café, a salon or an e-shop never gets that signal. The customer simply does not come back. Researchers call this a non-contractual setting, and it is the normal case for small businesses. Even a gym with monthly memberships has it in a softer form: members often stop visiting weeks before they stop paying.

So churn has to be defined from behaviour. The practical definition is a purchase gap: a customer is “at risk” when the days since their last purchase are much longer than their own usual gap between purchases. A useful starting rule:

  • Work out each customer’s usual gap: the median number of days between their past purchases. You need at least three purchases for this to mean anything.
  • Divide the days since their last purchase by that usual gap. Call it the overdue ratio.
  • Flag customers with a ratio above about 3 as at risk, and those far beyond it (say 8 to 10) as probably lost. Tune the thresholds to your business once you see how many customers each one catches.

The per-customer gap matters because one fixed rule, such as “no visit in 30 days”, is wrong in both directions. It ignores the daily coffee customer who vanished three weeks ago, and it panics about the client who has her hair coloured every six weeks.

Where the data comes from

You need three columns: a customer ID, a date and an amount, one row per purchase or visit. Typical sources:

  • Loyalty apps and stamp cards that record each scan with a member ID.
  • E-shops. WooCommerce, Shopify and custom shops all export orders with a customer or email field. Shopify even assigns customers to RFM groups such as Champions, Loyal and At risk (Shopify). See our e-shop guide for platforms.
  • Booking systems for salons, clinics, studios and gyms, where every appointment or check-in already has a name attached.
  • Card tokens from your payment provider, only where lawful. Some providers can give a stable token per card. Using it to follow people is a profiling decision, not a technical one: check your contract and your privacy notice, and ask your data protection adviser first.

Anonymous sales, at a walk-in counter or through a QR menu such as our own Orya Menu, show what sells, not who comes back (for that, see market basket analysis). An income and expense tracker such as Tameio shows how the business is doing overall, but RFM needs a customer on every sale. If your customer list lives in several files that disagree, fix that first.

RFM step by step, in a spreadsheet

RFM gives each customer three scores from 1 (worst) to 5 (best). Recency: how recently they bought. Frequency: how often they bought in the last 12 months. Monetary value: how much they spent in that time. It is old, simple and still the best first step, because anyone can read the result.

  1. Export 12 to 24 months of purchases with customer ID, date and amount. Remove refunds, test orders and staff purchases.
  2. Merge duplicates. The same person with two emails or two loyalty cards becomes two half-customers. Fix the obvious cases by hand.
  3. Build one row per customer with a pivot table: days since the last purchase (recency), number of purchases and total spend in the last 12 months.
  4. Score each measure from 1 to 5. With thousands of customers, split each column into fifths (quintiles); with a few hundred, fixed bands are easier to explain. For recency, fewer days scores higher.
  5. Name the segments with simple rules on R and F, using M to decide priority within each segment.
  6. Add the overdue ratio from the previous section for anyone with at least three purchases.
  7. Refresh monthly. How customers move between segments is the useful part.
Illustrative fixed bands for a café; set your own from your data
ScoreRecency (days since last visit)Frequency (visits in 12 months)Monetary (spend in 12 months)
50–740 or more€400 or more
48–2120–39€200–399
322–4510–19€100–199
246–904–9€40–99
1More than 901–3Under €40
Illustrative fixed bands for a café; set your own from your data

A worked example: eight customers of a café

The figures below are illustrative, not from a real business. Take a café-bakery in Katerini with a loyalty app, scored with the bands above on 9 November.

Illustrative RFM scores and overdue ratios for eight loyalty-app customers
CustomerDays since last visitVisits (12 m)Spend (12 m)R-F-MUsual gap (days)Overdue ratioSegment by rule
Eleni396€6105-5-540.8Champions
Nikos1018€1604-3-3180.6Loyal
Maria3544€4203-5-584.4Loyal
Giorgos122€94-1-1––New
Dimitra306€483-2-2301.0Slipping
Anna6022€1902-4-3144.3At risk
Sophie (summer visitor)7214€1202-3-3418At risk
Kostas16025€2301-4-4820Lost
Illustrative RFM scores and overdue ratios for eight loyalty-app customers

Three lessons hide in this small table. Maria looks Loyal on the RFM grid, but she normally comes every 8 days and has not been in for 35. Call her today. Dimitra looks like she is slipping, but she comes about once a month and is right on schedule, so a discount would be wasted on her. Sophie looks at risk, but she is a summer visitor whose 14 visits all fell in July and August. She has not left. She has gone home, and the right time to contact her is next June.

Named segments, and what to do with each

One possible segment map; Monetary sets the priority within each segment
SegmentRule (R and F scores)What it meansAction
ChampionsR 4–5 and F 4–5Your best regularsThank them, give early access or small perks, ask for a review. No discounts needed.
LoyalR 3–5 and F 3–5, not ChampionsSteady regularsLoyalty rewards, suggest a second product or service. Watch the overdue ratio.
NewR 4–5 and F 1–2Recent first or second visitWelcome message and a reason for a second visit within their first few weeks.
SlippingR 2–3 and F 1–2Occasional, fadingLow-cost reminder only, and only if they are overdue against their own gap.
At riskR 2 and F 3–5Valuable, but gone quietPersonal win-back: a message from the owner, a reason to return, possibly an offer.
LostR 1No visit for over 90 daysOne last-chance message, then stop. Check whether they were seasonal first.
One possible segment map; Monetary sets the priority within each segment

Six segments with a clear action each beat eleven that nobody remembers. Start with At risk customers with high M scores, plus anyone in Loyal or Champions whose overdue ratio has crossed 3. That is usually a short list, and it is where the money is.

The next level: churn probability and “buy till you die” models

RFM sorts customers into boxes. Models give each customer a number: the chance they are still active, how many purchases to expect, or what they are worth. There are two families worth knowing.

Churn classifiers

Pick a past cut-off date and label each customer “churned” if they bought nothing in the 90 days after it. Then train a model to predict that label from what was known before the cut-off: recency, frequency, spend, overdue ratio, visit trend, branch, channel. Logistic regression or gradient-boosted trees suit this kind of table and are cheaper and easier to explain than an LLM (see our AI for small business guide). Test on a later period than you trained on, and compare against the overdue-ratio rule. If the model does not clearly beat the rule, use the rule.

“Buy till you die” models: Pareto/NBD and BG/NBD

Built for exactly the non-contractual case, these models assume that each customer buys at their own steady rate while they are “alive”, and at some unseen point they quietly “die”, meaning they stop buying for good. The model never sees the death. It infers it from the pattern. A weekly regular who has been absent for two months is probably gone; an occasional customer absent for the same two months probably is not.

The original Pareto/NBD model was published in 1987 by Schmittlein, Morrison and Colombo, and gives the probability that a customer is still active from the number and timing of their purchases (Management Science, 1987). In 2005 Fader, Hardie and Lee proposed the BG/NBD model, a simpler variant in which a customer can only drop out right after a purchase. It gives very similar results in most settings, and its parameters can even be estimated in Microsoft Excel (Fader, Hardie and Lee). Both need three numbers per customer: repeat purchases, time of the last one, and how long they have been a customer.

Gamma-Gamma for spend, and customer lifetime value

The Gamma-Gamma model adds money. It estimates each customer’s likely average spend per purchase, and combined with a Pareto/NBD or BG/NBD forecast of purchases it gives a forward-looking lifetime value per customer (Fader, Hardie and Lee, Journal of Marketing Research, 2005). It assumes that how much a customer spends per visit is unrelated to how often they come, so check that correlation in your data before trusting it (PyMC-Marketing). In Python, the open-source PyMC-Marketing library implements these models (BG/NBD); the older lifetimes package is archived and names it as its successor.

From the simplest approach to the most advanced
ApproachWhat you needWhat you getGood for
RFM scoresID, date, amount; a spreadsheetSegments anyone can readEvery business with customer-level data
Overdue ratioSame, plus 3 or more purchases per customerA per-customer early warningRegular visitors: cafés, gyms, salons
Churn classifier1–2 years of history, a few hundred churners to learn fromA churn probability per customer, using many signalsLarger customer bases, several branches or channels
BG/NBD or Pareto/NBD + Gamma-GammaA year or more of repeat purchasesProbability still active, expected purchases, lifetime valueE-shops and loyalty programmes deciding how much to spend per customer
From the simplest approach to the most advanced

Acting on it: win-back offers, measured against a holdout

The trap: some at-risk customers come back on their own. Send everyone an offer, count everyone who returns, and you credit the offer with visits that would have happened anyway. The fix is a holdout group: before sending, pick a random 20% or so of the target list and send them nothing. The difference between the two groups is the effect of the offer, called the uplift.

An illustrative example. The café has 400 at-risk customers. It randomly holds back 80 and sends the other 320 a “we miss you” message with €3 off, valid for 30 days. Within the month, 58 of the 320 come back (18.1%) and 9 of the 80 in the holdout come back (11.3%). The uplift is about 6.9 percentage points, or about 22 extra returning customers. If each returning customer spends €35 over the next 90 days at a 65% gross margin, that is about €500 of extra gross profit. The discount, though, is paid by all 58 who returned, about €174, leaving roughly €326 before sending costs. Without a holdout, the café would have credited the campaign with all 58 returns, about €1,320 of gross profit, overstating it about 2.6 times.

One honest caveat: with only 80 people in the holdout, this result is noisy. A rough 95% range for the uplift is about plus or minus 8 points, so on its own it does not prove the offer worked. Repeat the test over several months and pool the results, or use larger groups; our A/B testing guide covers sample sizes. Test non-discount offers too, such as a personal note or a new seasonal product. They often cost far less.

Analysing purchases to decide whom to contact is profiling for direct marketing, and the GDPR applies. It notes that direct marketing may be regarded as a legitimate interest (Recital 47), but people have the right to object at any time to their data being used for direct marketing, including profiling related to it, and once they object you must stop (Article 21(2) and (3)). Data must be limited to what is necessary (Article 5(1)(c), data minimisation) and kept no longer than needed (Article 5(1)(e)). Pseudonymised data, such as a card token you can link back to a person, still counts as personal data (Recital 26) (GDPR on EUR-Lex). Say in your privacy notice that you analyse purchases to tailor offers.

Sending the message is a separate question, governed in Greece by Article 11 of Law 3471/2006. Marketing by automated calls, fax, email and other electronic messages is allowed only with the subscriber’s prior express consent (paragraph 1). There is one exception: if you obtained a customer’s email lawfully in the course of a sale, you may use it to market your own similar products or services, provided the customer can object easily and free of charge, both when the address is collected and in every message (paragraph 3) (Law 3471/2006, Article 11). The Hellenic Data Protection Authority’s Q&A on spam confirms that SMS counts as an electronic message, says you should keep records of consents and unsubscribe requests, and warns against emailing people to ask for their consent (HDPA). Fines happen: in decision 52/2024 the Authority fined a company €10,000 for unsolicited marketing emails (Lawspot).

In practice: record when and how each customer agreed to marketing, honour opt-outs immediately across every channel, exclude people who objected from the analysis as well as from the sends, and delete purchase histories you no longer need.

Pitfalls that make churn analysis lie

  • Seasonal tourists are not churners. On the Pieria coast and across Greece, many customers only exist from June to September. Tag them (for example, visits only in summer) and judge them season to season. See how sharp Greek seasonality is.
  • Discount addiction. If every lapse earns a coupon, customers learn to lapse. Target valuable at-risk customers only, and cap how often anyone gets an offer.
  • Regression to the mean. Customers flagged as at risk will partly come back anyway. Without a holdout, any campaign looks like a success.
  • Broken identities. Two cards per person, shared accounts and guest checkouts distort frequency. Merge what you can.
  • Only members are visible. Loyalty data covers loyalty members, who are usually your better customers. Do not generalise to everyone.

A 30-day plan to start

  1. Week 1: export 12 to 24 months of purchases with customer ID, date and amount. Clean it, and check who has marketing consent.
  2. Week 2: build RFM scores and the overdue ratio in a spreadsheet. Name the segments and check them against what your staff know.
  3. Week 3: pick the at-risk list, take out seasonal visitors and anyone without consent, randomly hold back about 20%, and send a personal win-back message.
  4. Week 4: count returns in both groups, work out the uplift and the cost, and decide whether to repeat, change the offer or stop.
  5. After that: refresh monthly. Consider a model only when the spreadsheet process is running and the list is large enough.

What it costs

The spreadsheet version costs only your time. To have it set up once and refreshed automatically, our Insight package (from €1,200) covers a data audit and cleanup, an RFM and churn dashboard and written findings. Automation (from €3,500) puts one model to work, such as a churn score or lifetime value per customer, built into the tools you already use, with accuracy tracked. An ML system (from €9,000) adds custom models, pipelines, retraining and monitoring for larger customer bases. Every project gets a fixed written quote. See our Data and ML services.

How Orya One can help

At Orya One we build data and machine learning systems and custom software for businesses across Greece, and you talk directly to the person who writes the code. For churn work we start with the simple rules and test any model against them, using baselines and structured comparisons from our Orya Benchmark Pack. If RFM in a spreadsheet is all you need, we will say so. When we do build, you get GDPR by design, consent records that hold up, and full ownership of the code.

If you have a loyalty app, an e-shop or a booking system and want to know which customers are drifting away, send us a short description of your data and how many customers you have. An export with the names removed is enough to start.

About the author

Dimitris Kampouridis · Founder, Orya One

Dimitris Kampouridis founded Orya One in 2026 in Paralia Katerinis, Pieria. He is a computer scientist and data scientist, with a BSc (University of Sheffield) and an MSc (University of York), and writes the code of every project himself.

More about Orya One

Frequently asked questions

What is RFM segmentation?

RFM scores each customer from 1 to 5 on recency (how recently they bought), frequency (how often they bought in the last 12 months) and monetary value (how much they spent). Simple rules on those scores give named segments such as Champions, Loyal, At risk and Lost, each with its own action. It needs only a customer ID, a date and an amount per purchase, and can be done in a spreadsheet.

How do I define churn if my customers have no contract?

Use a purchase gap. Work out each customer’s usual gap between purchases, then divide the days since their last purchase by it. A ratio above about 3 is a good first flag for at risk. A per-customer rule works better than one fixed cut-off such as 30 days, because customers who visit weekly and customers who visit every two months behave very differently. Treat seasonal visitors separately.

Do I need machine learning to predict churn?

Usually not at first. RFM plus a per-customer overdue ratio catches most at-risk customers. Churn classifiers and models such as BG/NBD, Pareto/NBD and Gamma-Gamma add a probability and a lifetime value per customer, and are worth it once you have hundreds of repeat customers and a year or more of history. Any model should be tested against the simple rule and used only if it clearly beats it.

Can I send win-back emails or SMS to customers in Greece without consent?

Article 11 of Law 3471/2006 requires prior express consent for marketing by email, SMS and other electronic messages. The exception is an email address obtained lawfully during a sale, which you may use to market your own similar products or services, as long as the customer can opt out easily and free of charge when it is collected and in every message. The GDPR right to object also covers profiling for direct marketing. Keep consent records and ask your lawyer or data protection officer about your case.

How do I know if a win-back campaign worked?

Before sending, randomly hold back a share of the target list, around 20%, and send them nothing. After the campaign, compare the return rate of the two groups. The difference is the uplift caused by the offer. Subtract the cost of discounts given to everyone who redeemed, including customers who would have come back anyway. With small groups the result is noisy, so repeat the test over several months.

Working on something like this?

Tell us what you need to build or improve. We reply with a clear scope and a realistic next step.

Request a free call

Keep reading

All articles