Data Mining in Business Intelligence: How It Works
Data mining searches business data for patterns a dashboard alone would miss. Here is how it works, the techniques it uses and how a project runs.
On this page
Short answer
Data mining in business intelligence is the practice of searching large business datasets for patterns a report alone would not show, such as which customers buy together or which orders are likely to be returned. It works with dashboards, finding the pattern first and then tracking it over time.
What is data mining in business intelligence?
Data mining in business intelligence is the practice of searching large business datasets for patterns that a report alone would not show, such as which customers buy together, which orders are likely to be returned, or which machines fail first. It turns stored data into findings a manager can act on.
Business intelligence usually starts with dashboards and reports that answer questions a person already asked. Data mining works the other way: it looks at the data first and surfaces patterns worth asking about. The two work together, with mining finding the pattern and the dashboard tracking it over time.
A mined pattern is only useful if it is checked. A pattern that looks strong on last year's data can fail on this year's, so every finding is tested on data the model has not seen before it reaches a decision.
Which techniques does data mining use?
Data mining uses a small set of techniques, and each answers a different kind of question. Choosing the technique starts with the question, not with the tool, because a clustering result cannot answer a forecasting question.
| Technique | Question it answers | Typical business use |
|---|---|---|
| Classification | Which group does this belong to? | Flagging fraud or churn risk |
| Clustering | Which records are alike? | Customer segments for campaigns |
| Association rules | What is bought together? | Cross-sell and shelf layout |
| Regression | What number should we expect? | Forecasting sales or demand |
| Anomaly detection | What looks out of place? | Spotting errors and fraud |
Most business projects use two or three of these at once. A retailer might cluster customers, then mine association rules inside each cluster, because the products bought together differ between customer groups. A bank might run classification to flag risky applications and anomaly detection to catch the cases the classifier misses, since the two techniques catch different kinds of problem. For how mining differs from prediction alone, see what predictive analytics is.
Where does the data come from?
Data mining works on data a business already collects: sales records, customer records, support tickets, web logs, sensor readings and finance data. The data usually lives in several systems that were never designed to work together, so the first job is joining it on a shared key, such as a customer id or an order id.
Raw business data is messy. Dates arrive in different formats, product names are spelled two ways, and some records are missing the field the analysis needs. Cleaning and joining the data is often most of the work, and a model built on unclean data will learn the errors instead of the pattern.
The data also needs a grain: one row per customer, per order or per day. A model that mixes grains, such as rows that are sometimes orders and sometimes customers, will produce numbers that look precise and mean nothing.
Time needs the same care. A customer record from last year and an order from last week describe different moments, and joining them without a date check can link a purchase to a customer state that no longer existed. Every mined dataset should carry the date each record was true, so the pattern can be read in time order.
How does a data mining project run?
A data mining project runs in the same order every time, and skipping a step is how most projects fail. The order matters because each step depends on the one before it.
- Pick one question. Choose a question with a named owner, such as which customers are likely to stop buying in the next three months.
- Gather and join the data. Bring the sources together on a shared key and keep the original values, not a cleaned copy only.
- Clean and prepare. Fix formats, handle missing values and decide the grain, one row per customer or per order.
- Mine the patterns. Run the technique that fits the question and look at what it finds.
- Test on unseen data. Check the pattern on data the model has not seen, so a lucky fit does not reach production.
- Put it in the dashboard. Turn the checked finding into a metric or a list a team can use every week.
Testing on unseen data is the step teams skip most often. A pattern that only works on the data it was found in is not a finding, it is a coincidence, and the test is what tells the two apart. For the wider reporting it feeds, see business intelligence versus business analytics.
Example (hypothetical): a shop mines its baskets
Example (hypothetical): a grocery shop looks at 10,000 baskets from last month to find what sells together. It finds that 2,400 baskets contain both bread and milk, which is 2,400 out of 10,000, or 24% of baskets.
Of those 2,400 baskets, 1,800 also contain butter. That is 1,800 out of 2,400, or 75%, so three quarters of bread-and-milk buyers also buy butter. Butter appears in 3,000 of the 10,000 baskets overall, or 30%, so bread-and-milk buyers buy butter at 75 divided by 30, or 2.5 times the usual rate.
The shop tests the pattern on the next month's baskets before acting on it, and the rate holds. It moves butter beside the bread, and the finding becomes a standing rule the team checks each month instead of a one-off report.
What are the common mistakes?
The most common mistakes in data mining are mining before choosing a question, trusting a pattern that was never tested, and letting messy data into the model.
- No question first. Mining without a question produces patterns nobody owns and nobody acts on.
- Skipping the test. A pattern checked only on the data it was found in can be a coincidence.
- Dirty data in, wrong pattern out. Duplicate customers and mixed formats teach the model the errors.
- Confusing correlation with cause. Two things bought together does not mean one causes the other.
- Too many patterns. Mining hundreds of rules and reporting all of them hides the three that matter.
- No owner for the finding. A pattern with no one to act on it is a report, not an improvement.
For the engineering that feeds the mining, see data engineering services.
For a sector example, see business intelligence in manufacturing.
Key takeaways
- Data mining finds patterns a report alone would not show
- Each technique answers a different kind of question
- Cleaning and joining the data is often most of the work
- Every finding must be tested on data the model has not seen
- One checked finding beats a hundred untested ones
- A pattern needs an owner and a decision it changes
Frequently asked questions
What is data mining in business intelligence?
Data mining in business intelligence is the practice of searching large business datasets for patterns a report alone would not show, such as which customers buy together or which orders are likely to be returned. It turns stored data into findings a manager can act on.
How is data mining different from business intelligence?
Business intelligence usually starts with dashboards and reports that answer questions a person already asked. Data mining looks at the data first and surfaces patterns worth asking about, then the dashboard tracks the checked pattern over time.
Which data mining technique should I use?
It depends on the question. Classification sorts records into groups, clustering finds alike records, association rules find what is bought together, regression forecasts a number, and anomaly detection spots what looks out of place.
How much data does data mining need?
Enough to test the pattern on data the model has not seen. A small dataset can still work for a focused question, but a pattern found in a few hundred rows needs a careful test before anyone acts on it.
Can data mining prove one thing causes another?
No. Mining finds that two things happen together, not that one causes the other. Bread and butter in the same basket does not mean bread causes butter sales, and acting as if it did can mislead a team.
What is the first step in a data mining project?
Pick one question with a named owner, such as which customers are likely to stop buying in the next three months. Gathering data before choosing the question is how most projects end up with patterns nobody uses.