Chapter 1
Introduction to Data Mining
Data vs knowledge, what data mining is, big data, the history and evolution of DM, the KDD process, DM tasks and techniques with applications, and the main challenges.
From: Topic 1a - Introduction to Data Mining, Topic 1b - History, Evolution and DM Classification, Topic 1c - Tasks and Techniques of DM, Topic 1d - Problems and Challenges
Data, knowledge and pattern recognition (1a)
- Pattern recognition: recognising a pattern using a machine. By humans it is perceptual (emotions, feelings) and specialised (decision making); by computer it is automated and good at complex calculations; from data it learns from large amounts of data and extracts knowledge.
- Data: basic facts such as names, numbers or characters, in different forms (text, image).
- Knowledge: processed or organised data (information) given value to uncover relationships for deeper understanding, e.g. IF-THEN rules such as “studies(Poor) AND work(Poor) → income(None)”.
- The DIKW pyramid: data → information → knowledge → wisdom.
What is data mining? (1a)
Data mining is the extraction of interesting (non-trivial, implicit, previously unknown and potentially useful) patterns or knowledge from huge amounts of data; the exploration and analysis, by automatic or semi-automatic means, of large quantities of data to discover meaningful patterns.
- Alternative names: knowledge discovery in databases (KDD), knowledge extraction, data/pattern analysis, data archeology, data dredging, information harvesting.
- Not data mining: a simple search or query, e.g. looking up “Shopee products”.
- Why now? Data has grown from terabytes to yottabytes, from social media, society (blogs, news) and e-commerce (Amazon, Shopee, Lazada).
- In short, data mining finds relationships in a dataset and makes predictions.
Big data and big data mining (1a)
- Big data: a large amount of data, described by the characteristics of the data itself, the 5 V's (volume, velocity, variety, veracity, value).
- Big data mining: data mining techniques applied to big data, e.g. discovering insights from thousands of social media posts.
- Malaysian examples: classifying youth emotions from Twitter; sentiment analysis of Proton car reviews on Facebook.
History and origin (1b)
- The term “data mining” appeared around 1990 in the database community.
- Gregory Piatetsky-Shapiro coined “Knowledge Discovery in Databases” for the first KDD workshop (KDD-1989). Today DM and KDD are used interchangeably.
- Later terms: Predictive Analytics (about 2007) and Data Science (2011).
- DM draws on machine learning/AI, pattern recognition, statistics and database systems. Traditional techniques may not suit data that is large-scale, high-dimensional, heterogeneous, complex or distributed.
| Evolutionary step | Enabling technology | Business question | Characteristic |
|---|---|---|---|
| Data collection (1960s) | Computers, tapes, disks | “Total revenue in the last five years?” | Retrospective, static |
| Data access (1980s) | RDBMS, SQL, ODBC | “Unit sales in New England last March?” | Retrospective, dynamic, record level |
| Data warehousing (1990s) | OLAP, multidimensional DBs, data warehouses | “…drill down to Boston” | Retrospective, dynamic, multiple levels |
| Data mining (today) | Advanced algorithms, multiprocessors, massive DBs | “What's likely to happen to Boston sales next month? Why?” | Prospective, proactive |
Motivation: commercially, lots of data is collected and computers are cheaper and more powerful; scientifically, data is stored at enormous speed and DM helps automate analysis of massive datasets.
The KDD process (1b)
Databases → data cleaning & integration → data warehouse → selection (task-relevant data) → data mining → pattern evaluation → knowledge
- Data mining is one step of KDD, but an essential one.
- The full process (1d summary): data cleaning, integration, selection, transformation, data mining, pattern evaluation, knowledge presentation.
Classifying DM systems (1b)
| By… | Examples |
|---|---|
| Kind of database | Relational, data warehouse, transactional, advanced DB, flat files, WWW |
| Technique used | Machine learning, pattern recognition, neural network, Naïve Bayes, k-NN, rough set, statistics |
| Application | Finance, marketing, medical, stock, telecommunication |
| Kind of knowledge | Classification, association, clustering, prediction |
Tasks and techniques (1b–1c)
| Tasks | Techniques |
|---|---|
| Classification, clustering, association rules, prediction (regression), sequential analysis, deviation analysis, similarity analysis, trend analysis | Decision trees, k-means, association rule (Apriori), neural networks, Naïve Bayes, k-nearest neighbour, statistical methods |
| Task | What it does | Technique | Applications |
|---|---|---|---|
| Classification | Learn a model for the class attribute from the other attributes; assign unseen records a class. Training set builds the model, test set validates it | Decision trees | Direct marketing (buy / don't buy); customer churn (loyal / disloyal) |
| Clustering | Group points so those in a cluster are more similar to each other than to other clusters. Unsupervised; intra-cluster distance minimised, inter-cluster maximised | k-means | Market segmentation; document clustering (search engines, email) |
| Association rules | Produce dependency rules that predict an item from the occurrence of other items, e.g. {Diaper, Milk} → {Root beer} | Apriori | Marketing and sales promotion; supermarket shelf management |
| Regression | Predict a continuous value from other variables, with a linear or nonlinear model | Statistics, ML | Sales from ad spending; wind velocity; stock indices |
| Deviation analysis | Find the most significant changes from normal values; deviations are often infrequent | Outlier detection | Credit card fraud; network intrusion; profiteering |
- Market analysis uses: customer requirement analysis, customer profiling (clustering/classifying customers by purchases), summary information.
- Other applications: risk analysis, fraud detection, text and web mining, stream data mining, DNA and bio-data analysis.
- Retail analytics example: a Malaysian café used WiFi-based CRM (Tapway) to collect customer behaviour data for targeted promotions.
Problems and challenges (1d)
- Efficiency and scalability of DM algorithms; parallel, distributed, stream and incremental mining.
- Handling high dimensionality; handling noise, uncertainty and incompleteness.
- Incorporating constraints and expert/background knowledge; pattern evaluation and knowledge integration.
- Mining diverse and heterogeneous kinds of data.
| Performance issue (comparing DM models) | Meaning |
|---|---|
| 1. Cost of the learning set | Number of training examples needed; cost of assuring good accuracy |
| 2. Time and memory | Time to learn, to evaluate, and to reach a given accuracy |
| 3. Predictive availability | Predicting correctly on unseen data; generating rules |
| 4. Robustness | Coping with errors, noise and outliers |
| 5. Scalability | Coping with big data |
| 6. Interpretability | Transparency and explanation |