Catching Till Errors, Theft and Supplier Overcharges With Anomaly Detection
Founder
Guide13 min read
What the drawing shows
- The normal rangeWhat is usual for your own till, so a busy Saturday does not look like fraud.
- Voids per dayTwo weeks of them. Most days stay inside the range.
- The unusual day14 voids, far above the usual. The system only shows you where to look.
- A question, not an accusationCheck the facts first and look for the boring explanation, such as a terminal fault.
Most money lost at the till or in purchasing is not lost in one dramatic theft. It leaks through voids, comps, refunds and invoices nobody compares. Here is how to spot the unusual early, from simple rules to machine learning, and how to do it fairly and lawfully.
Key takeaways
- Start with business rules and per-person rates: voids after payment, refunds, no-sale opens, comps, cash variance and supplier prices against the agreed list catch most problems.
- Compare like with like. Robust scores (median and MAD) and seasonal baselines stop a busy August Saturday from looking like fraud.
- Design alerts for precision: a short weekly digest of a few well-explained flags beats a phone that buzzes all day.
- An anomaly is a question, not an accusation. Tell staff what you check and why, keep it proportionate, and check the facts before talking to anyone.
On this page
- What actually goes wrong at the till and in purchasing
- What the fraud research says, and what it does not
- Methods, from simple to advanced
- Worked example: one server’s void rate against their peers
- Supplier overcharges and duplicate invoices
- Designing alerts people don’t learn to ignore
- An anomaly is a question, not an accusation
- Employee monitoring and GDPR in Greece
- A six-week plan to get started
- What it costs
- How Orya One can help
Anomaly detection for a restaurant, bar, café or shop means letting software compare every shift, server, till and supplier invoice with what is normal for it, and putting the few genuinely unusual ones in front of you each week. Most of the value comes from simple, explainable checks: voids after payment, refunds, “no sale” drawer opens, discounts and comps, cash variances, and invoice prices against your agreed price list. Machine learning helps later, once the basics run cleanly.
Most of what it finds will be mistakes, not theft: a mis-keyed price, a training gap, a supplier’s system that never loaded your discount. That is good news, because mistakes are cheap to fix. This guide is for owners of restaurants, bars, cafés, shops and multi-venue groups in Greece. For where anomaly detection sits among other uses of AI, see where AI actually pays off for small businesses.
What actually goes wrong at the till and in purchasing
The leaks are rarely dramatic. They are small, repeated and easy to explain away one at a time:
- Voids after payment. A sale is paid in cash, then voided, and the cash leaves with someone. A void before the bill is printed is usually a genuine correction.
- Refunds. Refunds without a receipt, repeated refunds to the same card, or refunds clustered at closing time.
- “No sale” drawer opens. Often harmless, for change, but a high count on one till is worth a question.
- Discounts, comps and staff meals. Free rounds for friends, a 20% discount keyed on full-price tables, or comps that rise every weekend.
- Cash variance. Small, random gaps between expected and counted cash are normal. A shift that is always short is not.
- Supplier price creep. The agreed price for feta or olive oil rises a few cents per delivery, and nobody checks.
- Duplicate invoices. The same delivery invoiced and paid twice, sometimes under a slightly different number.
- Stock shrinkage. The gap between what the till sold and what left the storeroom: waste, over-pouring, theft or a wrong recipe card.
| Signal | Where the data lives | Innocent explanations | Worth a closer look when |
|---|---|---|---|
| Voids after payment | POS log | Wrong table, card terminal failure | One person, cash payments, late in the shift |
| Refunds | POS and card terminal | Genuine returns, faulty goods | No receipt, same card, round amounts |
| “No sale” opens | POS log | Giving change, checking the float | Many per shift on one till |
| Discounts and comps | POS | Complaints, regulars, staff meals | Rising trend, one person, no reason code |
| Cash variance | Shift close-out | Counting errors, wrong float | Always short, same shift or person |
| Price creep | Invoices against the price list | Agreed increase not yet recorded | Small rises with no notice |
| Duplicate invoices | Accounting, myDATA | Credit note and re-issue | Same supplier, amount and date, paid twice |
| Shrinkage | Stock counts against sales | Waste, breakage, recipe errors | One product, one venue, growing |
Most of this data already exists in your POS, your accounts and your stock counts. In Greece, myDATA matters too: AADE’s July 2024 update added full support for restaurant order slips, covering their issue, transmission, possible cancellation and closing (AADE, 15 July 2024). How your own POS handles this is a question for your provider and your accountant.
What the fraud research says, and what it does not
The best-known study of internal fraud comes from the Association of Certified Fraud Examiners. Its 2026 edition, *Occupational Fraud 2026: A Report to the Nations*, analyses 2,402 cases from 143 countries and territories (ACFE). Several findings matter for small businesses:
- Organisations with fewer than 100 employees had the highest median loss of any size group: USD 126,000 per case, against USD 104,000 overall.
- 43% of frauds were first detected through a tip, and 55% of tips came from employees. Yet only about a quarter of small businesses in the study (24%) had a hotline, against 85% of larger organisations.
- Where proactive data monitoring and analysis was in place, the median loss was USD 70,000 against USD 150,000 without it, and frauds were detected after a median 9 months rather than 16. Only 17% of the small businesses had it, against 58% of larger ones.
- Speed matters. The typical case ran for 12 months before detection, and frauds caught within six months had a median loss of USD 40,000.
- Register schemes, such as voiding a sale and keeping the cash, were 3% of cases (median USD 14,000). Billing schemes, including inflated or fictitious invoices, were 21% (median USD 90,000).
Two cautions. These are cases investigated by fraud examiners worldwide, not a survey of Greek tavernas, and the link between controls and lower losses is an association, not proof of cause. Supplier overcharges are usually not staff fraud at all, but they are still money lost. The direction is clear all the same: small businesses depend on someone speaking up, and few look at their own data systematically.
Methods, from simple to advanced
Climb only as far as you need; the first two steps catch most of what a small business will ever find.
1. Business rules
Fixed rules in plain language: flag any void after payment above €20, any refund without a receipt, any invoice line more than 2% above the agreed price, any two invoices from the same supplier for the same amount within seven days. Rules are cheap, transparent and easy to explain to staff. Their weakness is that one number rarely suits every venue, shift and season.
2. Per-staff and per-shift baselines
Compare rates, not counts. The person who works every Saturday night will have more voids than the person on Tuesday mornings simply because they ring up more sales. Divide by transactions, then compare each person with peers on similar shifts, and each venue with its own past. This step alone removes most false alarms.
3. Robust z-scores with the median absolute deviation
A classic z-score measures distance from the average in standard deviations, but one large outlier inflates both and partly hides itself. The robust version uses the median and the median absolute deviation (MAD) instead. The NIST engineering statistics handbook gives the modified z-score as 0.6745 × (value − median) ÷ MAD, and cites Iglewicz and Hoaglin’s recommendation to label scores above 3.5 as potential outliers (NIST). It suits the small groups a business actually has: six servers, four tills, twelve suppliers.
4. Seasonal baselines
A Saturday in August is not comparable with a Tuesday in November. Compare each day with the same weekday at the same point in the season, or with a forecast of what was expected, and flag the gap rather than the raw number. The forecasting side is covered in our guide to demand forecasting for seasonal businesses.
5. Isolation forest and other multivariate models
Some patterns only show when several signals move together: a few more comps, a few more no-sale opens and a small cash shortfall, each normal on its own. An isolation forest splits the data at random, many times over. Unusual records are isolated after only a few splits (scikit-learn). It needs months of clean data across several venues and is harder to explain, so we use it to rank what a person reviews, never to decide.
| Method | Good for | History needed | Easy to explain? |
|---|---|---|---|
| Business rules | Clear-cut events, price lists | Days | Very |
| Per-staff and per-shift baselines | Fair comparison between people | A few weeks | Yes |
| Robust z-score (MAD) | Small peer groups with one outlier | A few weeks | Yes |
| Seasonal baselines | Daily totals in seasonal trade | One season or more | Mostly |
| Isolation forest | Combinations of weak signals | Several months, several venues | Less so |
Worked example: one server’s void rate against their peers
Take a hypothetical beach bar in Paralia with six servers on comparable evening shifts over four weeks in July. Servers are shown by letter, which is also how a first-pass report should show them.
| Server | Transactions | Voids after payment | Void rate | Robust score |
|---|---|---|---|---|
| A | 1,240 | 9 | 0.73% | 0.0 |
| B | 1,180 | 7 | 0.59% | −0.8 |
| C | 1,310 | 11 | 0.84% | 0.8 |
| D | 950 | 6 | 0.63% | −0.6 |
| E | 1,050 | 31 | 2.95% | 14.5 |
| F | 1,120 | 8 | 0.71% | 0.0 |
The median void rate is 0.72%, and the median absolute deviation is about 0.10 percentage points. Server E’s rate of 2.95% gives a robust score of about 14.5, far above the 3.5 line. At the peer median, E would have recorded around 8 voids, not 31.
Now the instructive part. A classic z-score puts Server E at only 2.0, below the common threshold of 3, because E’s own number pulls the average up to 1.08% and inflates the spread. With small teams, the robust version is the better default.
What happens next matters more than the score. Before anyone speaks to Server E, someone looks at the 31 voids: times, tables, payment method and amounts. Perhaps E works the terrace, where the card terminal keeps dropping and every failed payment is voided and rung up again. Perhaps not. The score says where to look, not what you will find.
Supplier overcharges and duplicate invoices
Purchasing anomalies are usually easier to prove and less sensitive than staff ones, which makes them a good place to start. Three checks cover most of it:
- Price against the agreed list. An illustrative case: feta agreed at €8.40 per kilo arrives at €8.40, €8.40, €8.65 and then €8.90. Each rise looks small. Together they are about 6%, on a product you buy every week.
- Duplicates. Same supplier and amount, dates a few days apart, numbers that differ only in format, such as “0452” and “452”. Flag them before payment.
- Quantity against delivery. Compare invoiced quantities with the signed delivery note and the stock count.
Turning invoices into structured data is the hard part, covered in our guide to AI invoice and document processing. Most price differences turn out to be an old price list or a missing discount, and a polite email with the evidence fixes them.
Designing alerts people don’t learn to ignore
The fastest way to kill an anomaly system is to make it noisy. Suppose you watch 40 measures per venue, each with a threshold that a normal day crosses 1% of the time by chance. That is 40 × 30 days × 1% = 12 false alarms per venue per month, before a single real problem. Within weeks, nobody reads them.
- Aim for precision. Track what share of flags deserved attention. If most are noise, raise the threshold or drop the check.
- Send a weekly digest. Five items or fewer on Monday, each with the number, the normal range and one line of context. Keep instant alerts for large, certain events, such as a duplicate invoice before payment.
- Require persistence. One odd shift is noise; three in a month is a pattern. For anything involving people, flag trends, not single days.
- Show the evidence. Every flag should link to the underlying transactions, so checking takes two minutes, not an evening.
- Record the outcome. Mark each flag as an error, explained, or open. Those labels improve thresholds, and later teach a model what matters.
This fits naturally beside your weekly numbers. If you already have a small business KPI dashboard, the digest can be one more panel rather than another tool.
An anomaly is a question, not an accusation
A flag means something is unusual, not that someone is dishonest. Most flags have ordinary causes: a new employee, a faulty card terminal, a POS button in the wrong place. Handle every flag the same way:
- Check the data first. A changed POS export or a day loaded twice explains many anomalies.
- Look for the boring explanation. Rota changes, events, a new menu, a terminal fault.
- Fix the process before you look at people. A manager PIN for voids after payment, reason codes for comps, a second count at cash-up, and a three-way match of order, delivery note and invoice.
- Talk privately and neutrally. If one person still stands out, ask, show the evidence and listen.
- Escalate only on evidence. If you suspect theft, stop and take advice from a lawyer before you act.
Employee monitoring and GDPR in Greece
Analysing voids and discounts per staff member is processing employees’ personal data, so the GDPR applies. The EU data protection authorities, then the Article 29 Working Party, covered monitoring at work in Opinion 2/2017 (Article 29 Working Party). Its main points for a till:
- Consent is usually the wrong basis. Employees are seldom free to give, refuse or revoke consent, so employers generally rely on another ground, such as legitimate interest. In 2019 the Hellenic Data Protection Authority (Αρχή Προστασίας Δεδομένων Προσωπικού Χαρακτήρα) fined a company 150,000 € for using an inappropriate legal basis for employee data, giving staff the false impression that it relied on their consent (HDPA).
- Legitimate interest has to be balanced. Protecting the business does not on its own override employees’ rights. Monitoring should be necessary, proportionate, minimally intrusive and targeted at the specific risk.
- Be transparent. Tell employees, in writing and in plain Greek, that monitoring exists and what it is for.
- Assess first. The opinion recommends a proportionality test before processing begins, possibly as part of a data protection impact assessment.
- Keep a person in the loop. The GDPR gives people the right not to be subject to a decision based solely on automated processing that has legal or similarly significant effects on them (GDPR, Article 22). A flag should never become a warning or a dismissal without a person reviewing the facts.
Greek law adds specific rules for cameras. Under Article 27(7) of Law 4624/2019, CCTV at work is allowed only where necessary to protect people and property, footage may not be used to assess employee performance, and staff must be informed in writing (Law 4624/2019, Article 27). If you plan to combine till data with camera footage, take advice first.
In practice: monitor transactions, not people’s lives. Use letters rather than names in routine reports, limit who sees the per-person view, and keep the data only as long as you need it.
A six-week plan to get started
- Week 1: pick three signals. For most venues: voids after payment, discounts and comps, and supplier prices against the price list.
- Week 1: tell your staff. A short written notice on what you check, why and who sees it. Have the wording checked.
- Week 2: get the data out. POS logs, shift close-outs and supplier invoices, with every day and till present.
- Week 3: add process controls. A manager PIN for voids after payment, reason codes for comps, an up-to-date price list for your top 20 products.
- Weeks 3–4: build baselines. Rates per transaction, per person and per shift, with robust scores.
- Week 5: start the weekly digest. Five items at most, each with the evidence attached.
- Week 6: review precision. Keep the useful flags, drop the rest. Only then consider a model.
What it costs
A first version needs no machine learning. With us, an Insight package (from €1,200) covers a data audit and cleanup, a dashboard and written findings, which is usually enough to show whether there is a problem worth automating. An Automation package (from €3,500) puts one model to work inside your existing tools, with its accuracy tracked, for example a weekly anomaly digest across venues. Larger systems with custom models, pipelines, retraining and monitoring start from €9,000. Every project gets a fixed written quote. If your sales, stock and invoices still live in separate spreadsheets, start with the signs you have outgrown Excel.
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 anomaly detection we start with the boring checks and add models only when they earn their place. Orya Guard, our Python tool for preflight checks on ML datasets, catches schema mismatches, null spikes and drift signals, so a changed POS export does not become a false alarm. Our five-venue ERP reference architecture shows how stock and sales from every venue come together in one place, the foundation these checks need. For the smallest businesses, Tameio, our income and expense tracker, is often the first step towards seeing the numbers clearly at all.
If you suspect leaks at the till or in purchasing, send us a short description of your venues, your POS and what worries you. We will tell you honestly whether a few rules and a weekly report will do, and what a fixed quote looks like if you need more.
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 OneFrequently asked questions
What is anomaly detection for a restaurant, bar or shop?
It is software that compares each shift, server, till and supplier invoice with what is normal for it and flags the few that stand out. Typical signals are voids after payment, refunds, no-sale drawer opens, discounts and comps, cash variances and invoice prices above the agreed price list. Most flags turn out to be mistakes or process gaps rather than theft.
Do I need machine learning to catch till errors and theft?
Usually not at first. Business rules, rates per transaction and robust scores based on the median and the median absolute deviation catch most problems in a small business and are easy to explain to staff. Models such as an isolation forest help later, when you have months of clean data across several venues and want to spot combinations of weak signals.
Is it legal to analyse staff transactions in Greece?
It can be, but it is processing employees’ personal data, so the GDPR applies. Consent is usually the wrong legal basis at work; employers generally rely on legitimate interest, which must be balanced, proportionate and transparent. Inform staff in writing, limit who sees per-person data, keep a person in every decision, and follow Law 4624/2019 if cameras are involved. Ask a lawyer or your data protection officer about your own case.
How do I avoid false alarms?
Compare rates rather than counts, compare people with peers on similar shifts, use seasonal baselines, and flag patterns that persist rather than single odd days. Send a short weekly digest instead of instant alerts, attach the evidence to every flag, and track what share of flags were worth the time. If most are noise, raise the threshold or drop the check.
How much does anomaly detection cost for a small business?
A first version based on rules and baselines is often a few days of work on data you already export. At Orya One, an Insight package starts from €1,200, an Automation package that puts one model to work in your existing tools starts from €3,500, and larger multi-venue ML systems start from €9,000, each with a fixed written quote.
