IT Glossary
Data mining: what it is and how it works
Data mining means automatically searching a company’s data for patterns: what sells together, who is about to leave, which transaction falls outside the pattern.
- 6
- sections
- 7
- questions answered
Data mining is the process of automatically searching, with statistical and machine-learning methods, for hidden patterns in data a company already holds — invoices, orders, customer history: products bought together, customers about to leave, transactions that fall outside the pattern. EU law describes it broadly: “text and data mining” means “any automated analytical technique aimed at analysing text and data in digital form in order to generate information which includes but is not limited to patterns, trends and correlations” (Directive (EU) 2019/790, Art. 2(2)). In the research literature, data mining is the analysis step inside the wider process of knowledge discovery in databases, KDD (Fayyad et al., AI Magazine, 1996).
The difference from ordinary reporting is the direction of the question: a report answers what you asked (“how much did we sell in March?”), while mining surfaces what you didn’t know to ask (“March is weak only for segment-B customers, and has been for two years”). For a small or mid-sized company, the sensible entry point is not an expensive platform but a focused project on a question with money in it — which customers are we at risk of losing? which products belong in bundles? — using the data you already have and a capable analyst. Checked on 18 November 2026 against the texts of Regulation (EU) 2016/679 and Directive (EU) 2019/790 (EUR-Lex). At Northdan Soft, a one-off analysis of a company’s data costs an indicative 1,500–4,000 €, and the first dashboards 2,500–6,000 €, depending on how many data sources are involved and how clean they are.
Why it matters for your business
Cross-selling based on evidence
Product pairs discovered in real history feed bundles and recommendations people actually buy — not boardroom intuitions.
Departing customers flagged in advance
Pre-departure patterns — thinning orders, shrinking baskets — become alerts, so retention starts while the customer is still a customer.
Anomalies surface on their own
Invoicing errors, inventory losses, suspicious transactions: deviations from the pattern are detected systematically, not noticed by accident.
How it works: the six CRISP-DM phases
The most widely used framework for a data mining project is CRISP-DM (Cross-Industry Standard Process for Data Mining), described in the IBM SPSS Modeler guide in six phases. The first is business understanding: you turn a vague wish (“we want to sell more”) into a question with money in it (“which active customers have cut their orders in the last six months?”). The second is data understanding: what you have, where it comes from, what is missing.
The third phase, data preparation, usually takes the most effort: removing duplicates, identifying customers consistently, coding products uniformly. Next come modeling (you pick a technique and run it), evaluation (you check that the result answers the question from phase one, not just that it looks good statistically) and deployment: the finding goes into the CRM, a dashboard or a working rule, otherwise it stays a report in a drawer. The order is not strict: according to the IBM guide, projects often move back and forth between phases, for example back to the data when the model shows a field is missing.
Data mining techniques, with examples from a company’s data
Association rules: from order baskets you learn which products are bought together and build bundles or recommendations (see also upselling). Clustering (segmentation): the algorithm groups customers into natural segments by behavior, without you defining the groups in advance. Classification: from existing history you predict a category — will this invoice be paid on time? will this customer leave (churn)?
Regression: you forecast a numeric value, such as next month’s sales, accounting for seasonality. Anomaly detection: it brings forward duplicate invoices, inventory losses or transactions that don’t resemble the rest. All of it runs on data you already hold in your invoicing software, online shop or CRM; a project may use just one technique, the one that answers the chosen question.
Want an estimate for your project?
Message us on WhatsApp. We reply the same working day, and the first 30-minute call is free.
Data mining vs machine learning
Machine learning is the family of algorithms that learn rules from examples. Data mining is the process driven by a business question, which uses machine learning alongside statistics and SQL queries. The result of a data mining project is a finding or a decision (“segment B only buys in winter”); the result of machine learning is often a model that then runs in production. A customer-churn model built inside a data mining project first serves a decision; once you set it to run every night on new customers, it has become a machine-learning system in production.
Compared with business intelligence, the difference is the direction of the question: BI answers the questions you defined, mining looks for what you didn’t know to ask. Compared with a data warehouse, the difference is role: the warehouse is where cleaned, unified data lives, mining is the analysis done on it. For the warehouse itself, see its glossary page.
Data mining on customer data: what the GDPR requires
When the analysis concerns people, segmentation and scores are profiling: the GDPR (Regulation (EU) 2016/679, Art. 4(4)) defines it as any automated processing of personal data used to evaluate personal aspects, in particular to analyse or predict preferences, interests, reliability or behavior. Profiling is not banned, but it has rules.
Article 22 gives a person the right not to be subject to a decision based solely on automated processing, including profiling, that produces legal effects or similarly significantly affects them — for example an automatic refusal of an order on credit terms. The exceptions are contract, law or explicit consent, and for contract and consent the person keeps at least the right to human intervention and to contest the decision. Article 21(2)–(3) allows objection “at any time” to profiling for direct marketing, after which the data may no longer be processed for that purpose. Article 35(3)(a) requires a data protection impact assessment (DPIA) for systematic and extensive evaluations based on profiling that underpin decisions with significant effect.
Recital 26 draws the distinction that matters for analysis datasets: truly anonymous data falls outside the GDPR, but pseudonymized data remains personal data, because it can be attributed to a person with additional information. More in the pages on the GDPR and the data protection officer (DPO).
Frequently asked questions
What is the difference between data mining and BI reports?
BI shows you what is happening, along questions you define; mining searches for patterns you would never have thought to ask about — groupings, associations, predictions, anomalies. In practice they complement each other: discoveries from mining become indicators tracked afterwards in the dashboard.
How much data do we need for data mining to make sense?
Less than you think: a few years of invoices with thousands of transactions already support useful association and seasonality analyses. Quality matters more than raw volume — customers identified consistently and products coded uniformly beat sheer size.
Is data mining on customer data legal under the GDPR?
Yes, with conditions. Internal analysis of personal data needs a legal basis and respect for individuals’ rights: a decision based solely on automated processing with significant effect falls under Art. 22, and objection to profiling for direct marketing (Art. 21) must be honored at any time. Only genuine anonymization takes a dataset outside the GDPR; pseudonymization does not (Recital 26).
Is data mining illegal?
No. Data mining is lawful when its inputs are. EU Directive 2019/790 defines text and data mining and allows it on lawfully accessible content (Art. 4) unless the rightholder reserved the right; personal data in the dataset stay under the GDPR, which sets the conditions for profiling and automated decisions.
Is data mining the same as AI?
No. Data mining uses machine learning, a branch of artificial intelligence, alongside statistics and SQL queries, but it can be done with no AI model at all: an association rule found with a simple calculation on order baskets is already data mining.
What is an example of data mining?
Three examples from invoices and orders: products that often share a basket become bundles; customers whose orders have thinned get an offer before they leave; duplicate or unusually large invoices are flagged for review. You need a clear question and the data you already hold, not a platform.
Can you do data mining on other websites’ content?
Partly. Directive (EU) 2019/790, Art. 4, allows text and data mining of lawfully accessible content, but only if the rightholder has not reserved the right, for example by machine-readable means for content published online. Personal data you collect stay under the GDPR. See also web scraping.
Let’s talk about your project
Book a free 30-minute call or send us an email. We reply the same working day.
office@northdan.com · +40 750 252 851