Data mining is often taught as one part of a longer process called knowledge discovery in databases (KDD). A common version of that process has seven steps: data cleaning, data integration, data selection, data transformation, data mining, pattern evaluation and knowledge presentation. Data mining is only the fifth of those steps, the one where methods are applied to find patterns.
The seven steps in order
- Data cleaning removes noise and fixes inconsistent data, such as duplicate records, missing values and conflicting codes for the same thing.
- Data integration combines data from several sources into one set. Two systems may name the same field differently or store dates in different formats.
- Data selection pulls out the records and fields that matter for the question being asked.
- Data transformation reshapes the data into a form that mining methods can use, such as totals per customer or scaled numeric values.
- Data mining applies methods such as decision trees, association rules or prediction models to find patterns.
- Pattern evaluation decides which patterns are valid, useful and worth acting on. Some patterns look strong but are only chance, or are already known.
- Knowledge presentation shows the results in a form people can use, such as reports, charts or dashboards.
Tutorial sites such as Tutorialspoint list the same seven steps in this order.
Why other sources count differently
The number of steps is not fixed. Some textbooks and papers use five steps, folding cleaning and integration into one preprocessing step. Others list nine, splitting the process into finer parts. The overall order stays much the same: prepare the data, mine it, then evaluate and present what was found.
Where data mining sits
Data mining gets most of the attention, but much of the work happens before it. Cleaning, integration and selection decide what the mining methods can see. A data warehouse often supplies the integrated data that mining starts from, as covered in what is data warehousing in business intelligence.
Many of these steps can be done in SQL before any mining tool runs. This query reshapes raw orders into one row per customer:
SELECT customer_id,
COUNT(*) AS order_count,
SUM(order_total) AS total_spent
FROM sales.orders
WHERE order_date >= '2025-01-01'
GROUP BY customer_id;
The WHERE clause is a selection step, and the grouping is a transformation. The result is a shape that many mining methods can use more easily than raw order rows.
CRISP-DM is a different model
CRISP-DM (Cross-Industry Standard Process for Data Mining) is an industry model with six phases: business understanding, data understanding, data preparation, modeling, evaluation and deployment. It is usually drawn as a cycle, because projects often loop back to earlier phases.
Which list to use
If a course or exam gives its own list, use that one. For a project, a model like CRISP-DM can help, because it starts with the business question rather than the data.